]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
eb730a0c | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
eb730a0c JS |
273 | PACKAGE_VERSION='2.6.2' |
274 | PACKAGE_STRING='wxWidgets 2.6.2' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
8c80d384 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
eb730a0c | 797 | \`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
eb730a0c | 863 | short | recursive ) echo "Configuration of wxWidgets 2.6.2:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 908 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
36b6448c | 911 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
912 | --enable-dialupman use dialup network classes |
913 | --enable-dynlib use wxLibrary class for DLL loading | |
914 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
915 | --enable-exceptions build exception-safe library | |
916 | --enable-ffile use wxFFile class | |
917 | --enable-file use wxFile class | |
918 | --enable-filesystem use virtual file systems classes | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
921 | --enable-fs_zip use virtual ZIP filesystems | |
922 | --enable-geometry use geometry class | |
923 | --enable-log use logging system | |
924 | --enable-longlong use wxLongLong class | |
925 | --enable-mimetype use wxMimeTypesManager | |
926 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
927 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 928 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 929 | --enable-std_string use standard C++ string classes |
07158944 | 930 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 931 | --enable-stopwatch use wxStopWatch class |
07158944 | 932 | --enable-streams use wxStream etc classes |
a848cd7e SC |
933 | --enable-sysoptions use wxSystemOptions |
934 | --enable-textbuf use wxTextBuffer class | |
935 | --enable-textfile use wxTextFile class | |
936 | --enable-timer use wxTimer class | |
937 | --enable-unicode compile wxString with Unicode support | |
938 | --enable-sound use wxSound class | |
3b57de8b | 939 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 940 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 941 | --enable-zipstream use wxZip streams |
a848cd7e SC |
942 | --enable-url use wxURL class |
943 | --enable-protocol use wxProtocol class | |
944 | --enable-protocol-http HTTP support in wxProtocol | |
945 | --enable-protocol-ftp FTP support in wxProtocol | |
946 | --enable-protocol-file FILE support in wxProtocol | |
947 | --enable-threads use threads | |
948 | --enable-docview use document view architecture | |
949 | --enable-help use help subsystem | |
950 | --enable-mshtmlhelp use MS HTML Help (win32) | |
951 | --enable-html use wxHTML sub-library | |
952 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 953 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
954 | --enable-constraints use layout-constraints system |
955 | --enable-printarch use printing architecture | |
956 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 957 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
958 | --enable-loggui use standard GUI logger |
959 | --enable-logwin use wxLogWindow | |
960 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 961 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
962 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
963 | --enable-prologio not available; see contrib | |
964 | --enable-resources not available; see contrib | |
965 | --enable-clipboard use wxClipboard class | |
966 | --enable-dnd use Drag'n'Drop classes | |
967 | --enable-metafile use win32 metafiles | |
968 | --enable-controls use all usual controls | |
969 | --enable-accel use accelerators | |
970 | --enable-button use wxButton class | |
971 | --enable-bmpbutton use wxBitmapButton class | |
972 | --enable-calendar use wxCalendarCtrl class | |
973 | --enable-caret use wxCaret class | |
974 | --enable-checkbox use wxCheckBox class | |
975 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
976 | --enable-choice use wxChoice class | |
92bbdbcd | 977 | --enable-choicebook use wxChoicebook class |
a848cd7e | 978 | --enable-combobox use wxComboBox class |
da98e9be | 979 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
980 | --enable-display use wxDisplay class |
981 | --enable-gauge use wxGauge class | |
982 | --enable-grid use wxGrid class | |
983 | --enable-imaglist use wxImageList class | |
984 | --enable-listbook use wxListbook class | |
985 | --enable-listbox use wxListBox class | |
986 | --enable-listctrl use wxListCtrl class | |
987 | --enable-notebook use wxNotebook class | |
988 | --enable-radiobox use wxRadioBox class | |
989 | --enable-radiobtn use wxRadioButton class | |
990 | --enable-sash use wxSashWindow class | |
991 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
992 | --enable-slider use wxSlider class | |
993 | --enable-spinbtn use wxSpinButton class | |
994 | --enable-spinctrl use wxSpinCtrl class | |
995 | --enable-splitter use wxSplitterWindow class | |
996 | --enable-statbmp use wxStaticBitmap class | |
997 | --enable-statbox use wxStaticBox class | |
998 | --enable-statline use wxStaticLine class | |
999 | --enable-stattext use wxStaticText class | |
1000 | --enable-statusbar use wxStatusBar class | |
1001 | --enable-tabdialog use wxTabControl class | |
1002 | --enable-textctrl use wxTextCtrl class | |
1003 | --enable-togglebtn use wxToggleButton class | |
1004 | --enable-toolbar use wxToolBar class | |
1005 | --enable-tbarnative use native wxToolBar class | |
1006 | --enable-tbarsmpl use wxToolBarSimple class | |
1007 | --enable-treectrl use wxTreeCtrl class | |
1008 | --enable-tipwindow use wxTipWindow class | |
1009 | --enable-popupwin use wxPopUpWindow class | |
1010 | --enable-commondlg use all common dialogs | |
1011 | --enable-choicedlg use wxChoiceDialog | |
1012 | --enable-coldlg use wxColourDialog | |
1013 | --enable-filedlg use wxFileDialog | |
1014 | --enable-finddlg use wxFindReplaceDialog | |
1015 | --enable-fontdlg use wxFontDialog | |
1016 | --enable-dirdlg use wxDirDialog | |
1017 | --enable-msgdlg use wxMessageDialog | |
1018 | --enable-numberdlg use wxNumberEntryDialog | |
1019 | --enable-splash use wxSplashScreen | |
1020 | --enable-textdlg use wxTextDialog | |
1021 | --enable-tipdlg use startup tips | |
1022 | --enable-progressdlg use wxProgressDialog | |
1023 | --enable-wizarddlg use wxWizard | |
1024 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1025 | --enable-miniframe use wxMiniFrame class | |
1026 | --enable-tooltips use wxToolTip class | |
1027 | --enable-splines use spline drawing code | |
fbe2ca43 | 1028 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1029 | --enable-validators use wxValidator and derived classes |
1030 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1031 | --enable-joystick use wxJoystick |
38b4a946 | 1032 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1033 | --enable-dragimage use wxDragImage |
1034 | --enable-accessibility enable accessibility support | |
38b4a946 | 1035 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1036 | --enable-palette use wxPalette class |
1037 | --enable-image use wxImage class | |
1038 | --enable-gif use gif images (GIF file format) | |
1039 | --enable-pcx use pcx images (PCX file format) | |
1040 | --enable-iff use iff images (IFF file format) | |
1041 | --enable-pnm use pnm images (PNM file format) | |
1042 | --enable-xpm use xpm images (XPM file format) | |
1043 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1044 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1045 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1046 | --disable-largefile omit support for large files | |
1047 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1048 | --disable-gtktest Do not try to compile and run a test GTK program | |
1049 | --disable-sdltest Do not try to compile and run a test SDL program | |
1050 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1051 | --disable-precomp-headers |
1052 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1053 | |
1054 | Optional Packages: | |
1055 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1056 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f34ca037 | 1057 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1058 | --with-motif use Motif/Lesstif |
1059 | --with-mac use Mac OS X | |
1060 | --with-cocoa use Cocoa | |
1061 | --with-wine use Wine | |
1062 | --with-msw use MS-Windows | |
1063 | --with-pm use OS/2 Presentation Manager | |
1064 | --with-mgl use SciTech MGL | |
1065 | --with-microwin use MicroWindows | |
1066 | --with-x11 use X11 | |
1067 | --with-libpng use libpng (PNG image format) | |
1068 | --with-libjpeg use libjpeg (JPEG file format) | |
1069 | --with-libtiff use libtiff (TIFF file format) | |
1070 | --with-libxpm use libxpm (XPM file format) | |
1071 | --with-libmspack use libmspack (CHM help files loading) | |
1072 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1073 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1074 | --with-opengl use OpenGL (or Mesa) |
1075 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1076 | --with-regex enable support for wxRegEx class | |
1077 | --with-zlib use zlib for LZW compression | |
1078 | --with-odbc use the IODBC and wxODBC classes | |
1079 | --with-expat enable XML support using expat parser | |
ceec2216 | 1080 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1081 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1082 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1083 | --with-x use the X Window System | |
1084 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1085 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1086 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1087 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1088 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1089 | ||
1090 | Some influential environment variables: | |
dcc1b6ad VS |
1091 | CC C compiler command |
1092 | CFLAGS C compiler flags | |
1093 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1094 | nonstandard directory <lib dir> | |
1095 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1096 | headers in a nonstandard directory <include dir> | |
1097 | CPP C preprocessor | |
1098 | CXX C++ compiler command | |
1099 | CXXFLAGS C++ compiler flags | |
1100 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1101 | |
1102 | Use these variables to override the choices made by `configure' or to help | |
1103 | it to find libraries and programs with nonstandard names/locations. | |
1104 | ||
77ffb593 | 1105 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1106 | _ACEOF |
1107 | fi | |
1108 | ||
1109 | if test "$ac_init_help" = "recursive"; then | |
1110 | # If there are subdirs, report their specific --help. | |
1111 | ac_popdir=`pwd` | |
1112 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1113 | test -d $ac_dir || continue | |
1114 | ac_builddir=. | |
1115 | ||
1116 | if test "$ac_dir" != .; then | |
1117 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1118 | # A "../" for each directory in $ac_dir_suffix. | |
1119 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1120 | else | |
1121 | ac_dir_suffix= ac_top_builddir= | |
1122 | fi | |
1123 | ||
1124 | case $srcdir in | |
1125 | .) # No --srcdir option. We are building in place. | |
1126 | ac_srcdir=. | |
1127 | if test -z "$ac_top_builddir"; then | |
1128 | ac_top_srcdir=. | |
1129 | else | |
1130 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1131 | fi ;; | |
1132 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1133 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1134 | ac_top_srcdir=$srcdir ;; | |
1135 | *) # Relative path. | |
1136 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1137 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1138 | esac | |
ac1cb8d3 VS |
1139 | |
1140 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1141 | # the directories may not exist. | |
1142 | case `pwd` in | |
1143 | .) ac_abs_builddir="$ac_dir";; | |
1144 | *) | |
1145 | case "$ac_dir" in | |
1146 | .) ac_abs_builddir=`pwd`;; | |
1147 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1148 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1149 | esac;; | |
1150 | esac | |
1151 | case $ac_abs_builddir in | |
1152 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1153 | *) | |
1154 | case ${ac_top_builddir}. in | |
1155 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1156 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1157 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1158 | esac;; | |
1159 | esac | |
1160 | case $ac_abs_builddir in | |
1161 | .) ac_abs_srcdir=$ac_srcdir;; | |
1162 | *) | |
1163 | case $ac_srcdir in | |
1164 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1165 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1166 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1167 | esac;; | |
1168 | esac | |
1169 | case $ac_abs_builddir in | |
1170 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1171 | *) | |
1172 | case $ac_top_srcdir in | |
1173 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1174 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1175 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1176 | esac;; | |
1177 | esac | |
a848cd7e SC |
1178 | |
1179 | cd $ac_dir | |
1180 | # Check for guested configure; otherwise get Cygnus style configure. | |
1181 | if test -f $ac_srcdir/configure.gnu; then | |
1182 | echo | |
1183 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1184 | elif test -f $ac_srcdir/configure; then | |
1185 | echo | |
1186 | $SHELL $ac_srcdir/configure --help=recursive | |
1187 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1188 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1189 | echo |
1190 | $ac_configure --help | |
1191 | else | |
1192 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1193 | fi | |
6ebeb4c7 | 1194 | cd "$ac_popdir" |
a848cd7e SC |
1195 | done |
1196 | fi | |
1197 | ||
1198 | test -n "$ac_init_help" && exit 0 | |
1199 | if $ac_init_version; then | |
1200 | cat <<\_ACEOF | |
eb730a0c | 1201 | wxWidgets configure 2.6.2 |
ac1cb8d3 | 1202 | generated by GNU Autoconf 2.59 |
a848cd7e | 1203 | |
ac1cb8d3 | 1204 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1205 | This configure script is free software; the Free Software Foundation |
1206 | gives unlimited permission to copy, distribute and modify it. | |
1207 | _ACEOF | |
1208 | exit 0 | |
1209 | fi | |
1210 | exec 5>config.log | |
1211 | cat >&5 <<_ACEOF | |
1212 | This file contains any messages produced by compilers while | |
1213 | running configure, to aid debugging if configure makes a mistake. | |
1214 | ||
eb730a0c | 1215 | It was created by wxWidgets $as_me 2.6.2, which was |
ac1cb8d3 | 1216 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1217 | |
1218 | $ $0 $@ | |
1219 | ||
1220 | _ACEOF | |
1221 | { | |
1222 | cat <<_ASUNAME | |
1223 | ## --------- ## | |
1224 | ## Platform. ## | |
1225 | ## --------- ## | |
1226 | ||
1227 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1228 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1229 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1230 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1231 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1232 | ||
1233 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1234 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1235 | ||
1236 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1237 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1238 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1239 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1240 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1241 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1242 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1243 | ||
1244 | _ASUNAME | |
1245 | ||
1246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1247 | for as_dir in $PATH | |
1248 | do | |
1249 | IFS=$as_save_IFS | |
1250 | test -z "$as_dir" && as_dir=. | |
1251 | echo "PATH: $as_dir" | |
1252 | done | |
1253 | ||
1254 | } >&5 | |
1255 | ||
1256 | cat >&5 <<_ACEOF | |
1257 | ||
1258 | ||
1259 | ## ----------- ## | |
1260 | ## Core tests. ## | |
1261 | ## ----------- ## | |
1262 | ||
1263 | _ACEOF | |
1264 | ||
1265 | ||
1266 | # Keep a trace of the command line. | |
1267 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1268 | # Strip out --silent because we don't want to record it for future runs. | |
1269 | # Also quote any args containing shell meta-characters. | |
1270 | # Make two passes to allow for proper duplicate-argument suppression. | |
1271 | ac_configure_args= | |
1272 | ac_configure_args0= | |
1273 | ac_configure_args1= | |
1274 | ac_sep= | |
1275 | ac_must_keep_next=false | |
1276 | for ac_pass in 1 2 | |
1277 | do | |
1278 | for ac_arg | |
1279 | do | |
1280 | case $ac_arg in | |
1281 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1282 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1283 | | -silent | --silent | --silen | --sile | --sil) | |
1284 | continue ;; | |
1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1286 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1287 | esac | |
1288 | case $ac_pass in | |
1289 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1290 | 2) | |
1291 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1292 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1293 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1294 | else |
ac1cb8d3 VS |
1295 | case $ac_arg in |
1296 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1297 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1298 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1299 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1300 | case "$ac_configure_args0 " in | |
1301 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1302 | esac | |
1303 | ;; | |
1304 | -* ) ac_must_keep_next=true ;; | |
1305 | esac | |
a848cd7e SC |
1306 | fi |
1307 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1308 | # Get rid of the leading space. | |
1309 | ac_sep=" " | |
1310 | ;; | |
1311 | esac | |
1312 | done | |
1313 | done | |
1314 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1315 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1316 | ||
1317 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1318 | # config.log. We remove comments because anyway the quotes in there | |
1319 | # would cause problems or look ugly. | |
1320 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1321 | # such as our DU 5.0 friend, will then `close' the trap. | |
1322 | trap 'exit_status=$? | |
1323 | # Save into config.log some information that might help in debugging. | |
1324 | { | |
1325 | echo | |
1326 | ||
1327 | cat <<\_ASBOX | |
1328 | ## ---------------- ## | |
1329 | ## Cache variables. ## | |
1330 | ## ---------------- ## | |
1331 | _ASBOX | |
1332 | echo | |
1333 | # The following way of writing the cache mishandles newlines in values, | |
1334 | { | |
1335 | (set) 2>&1 | | |
1336 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1337 | *ac_space=\ *) | |
1338 | sed -n \ | |
ac1cb8d3 VS |
1339 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1340 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1341 | ;; |
1342 | *) | |
1343 | sed -n \ | |
ac1cb8d3 | 1344 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1345 | ;; |
1346 | esac; | |
1347 | } | |
1348 | echo | |
1349 | ||
1350 | cat <<\_ASBOX | |
1351 | ## ----------------- ## | |
1352 | ## Output variables. ## | |
1353 | ## ----------------- ## | |
1354 | _ASBOX | |
1355 | echo | |
1356 | for ac_var in $ac_subst_vars | |
1357 | do | |
1358 | eval ac_val=$`echo $ac_var` | |
1359 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1360 | done | sort | |
1361 | echo | |
1362 | ||
1363 | if test -n "$ac_subst_files"; then | |
1364 | cat <<\_ASBOX | |
1365 | ## ------------- ## | |
1366 | ## Output files. ## | |
1367 | ## ------------- ## | |
1368 | _ASBOX | |
1369 | echo | |
1370 | for ac_var in $ac_subst_files | |
1371 | do | |
1372 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1373 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1374 | done | sort |
1375 | echo | |
1376 | fi | |
1377 | ||
1378 | if test -s confdefs.h; then | |
1379 | cat <<\_ASBOX | |
1380 | ## ----------- ## | |
1381 | ## confdefs.h. ## | |
1382 | ## ----------- ## | |
1383 | _ASBOX | |
1384 | echo | |
1385 | sed "/^$/d" confdefs.h | sort | |
1386 | echo | |
1387 | fi | |
1388 | test "$ac_signal" != 0 && | |
1389 | echo "$as_me: caught signal $ac_signal" | |
1390 | echo "$as_me: exit $exit_status" | |
1391 | } >&5 | |
ac1cb8d3 | 1392 | rm -f core *.core && |
a848cd7e SC |
1393 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1394 | exit $exit_status | |
1395 | ' 0 | |
1396 | for ac_signal in 1 2 13 15; do | |
1397 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1398 | done | |
1399 | ac_signal=0 | |
1400 | ||
1401 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1402 | rm -rf conftest* confdefs.h | |
1403 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1404 | echo >confdefs.h | |
1405 | ||
1406 | # Predefined preprocessor variables. | |
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | cat >>confdefs.h <<_ACEOF | |
1429 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1430 | _ACEOF | |
1431 | ||
1432 | ||
1433 | # Let the site file select an alternate cache file if it wants to. | |
1434 | # Prefer explicitly selected file to automatically selected ones. | |
1435 | if test -z "$CONFIG_SITE"; then | |
1436 | if test "x$prefix" != xNONE; then | |
1437 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1438 | else | |
1439 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1440 | fi | |
1441 | fi | |
1442 | for ac_site_file in $CONFIG_SITE; do | |
1443 | if test -r "$ac_site_file"; then | |
1444 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1445 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1446 | sed 's/^/| /' "$ac_site_file" >&5 | |
1447 | . "$ac_site_file" | |
1448 | fi | |
1449 | done | |
1450 | ||
1451 | if test -r "$cache_file"; then | |
1452 | # Some versions of bash will fail to source /dev/null (special | |
1453 | # files actually), so we avoid doing that. | |
1454 | if test -f "$cache_file"; then | |
1455 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1456 | echo "$as_me: loading cache $cache_file" >&6;} | |
1457 | case $cache_file in | |
1458 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1459 | *) . ./$cache_file;; | |
1460 | esac | |
1461 | fi | |
1462 | else | |
1463 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1464 | echo "$as_me: creating cache $cache_file" >&6;} | |
1465 | >$cache_file | |
1466 | fi | |
1467 | ||
1468 | # Check that the precious variables saved in the cache have kept the same | |
1469 | # value. | |
1470 | ac_cache_corrupted=false | |
1471 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1472 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1473 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1474 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1475 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1476 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1477 | case $ac_old_set,$ac_new_set in | |
1478 | set,) | |
1479 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1480 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1481 | ac_cache_corrupted=: ;; | |
1482 | ,set) | |
1483 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1484 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1485 | ac_cache_corrupted=: ;; | |
1486 | ,);; | |
1487 | *) | |
1488 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1489 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1490 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1491 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1492 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1493 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1494 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1495 | ac_cache_corrupted=: |
a848cd7e SC |
1496 | fi;; |
1497 | esac | |
1498 | # Pass precious variables to config.status. | |
1499 | if test "$ac_new_set" = set; then | |
1500 | case $ac_new_val in | |
1501 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1502 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1503 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1504 | esac | |
1505 | case " $ac_configure_args " in | |
1506 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1507 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1508 | esac | |
1509 | fi | |
1510 | done | |
1511 | if $ac_cache_corrupted; then | |
1512 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1513 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1514 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1515 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1516 | { (exit 1); exit 1; }; } | |
1517 | fi | |
1518 | ||
1519 | ac_ext=c | |
1520 | ac_cpp='$CPP $CPPFLAGS' | |
1521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ac_aux_dir= | |
1555 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1556 | if test -f $ac_dir/install-sh; then | |
1557 | ac_aux_dir=$ac_dir | |
1558 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1559 | break | |
1560 | elif test -f $ac_dir/install.sh; then | |
1561 | ac_aux_dir=$ac_dir | |
1562 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1563 | break | |
1564 | elif test -f $ac_dir/shtool; then | |
1565 | ac_aux_dir=$ac_dir | |
1566 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1567 | break | |
1568 | fi | |
1569 | done | |
1570 | if test -z "$ac_aux_dir"; then | |
1571 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1572 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1573 | { (exit 1); exit 1; }; } | |
1574 | fi | |
1575 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1576 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1577 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1578 | ||
1579 | # Make sure we can run config.sub. | |
1580 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1581 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1582 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ||
1585 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1586 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1587 | if test "${ac_cv_build+set}" = set; then | |
1588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1589 | else | |
1590 | ac_cv_build_alias=$build_alias | |
1591 | test -z "$ac_cv_build_alias" && | |
1592 | ac_cv_build_alias=`$ac_config_guess` | |
1593 | test -z "$ac_cv_build_alias" && | |
1594 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1595 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1596 | { (exit 1); exit 1; }; } | |
1597 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1598 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1599 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1600 | { (exit 1); exit 1; }; } | |
1601 | ||
1602 | fi | |
1603 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1604 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1605 | build=$ac_cv_build | |
1606 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1607 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1608 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1609 | ||
1610 | ||
1611 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1612 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1613 | if test "${ac_cv_host+set}" = set; then | |
1614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1615 | else | |
1616 | ac_cv_host_alias=$host_alias | |
1617 | test -z "$ac_cv_host_alias" && | |
1618 | ac_cv_host_alias=$ac_cv_build_alias | |
1619 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1620 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1621 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1622 | { (exit 1); exit 1; }; } | |
1623 | ||
1624 | fi | |
1625 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1626 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1627 | host=$ac_cv_host | |
1628 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1629 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1630 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1631 | ||
1632 | ||
1633 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1634 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1635 | if test "${ac_cv_target+set}" = set; then | |
1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1637 | else | |
1638 | ac_cv_target_alias=$target_alias | |
1639 | test "x$ac_cv_target_alias" = "x" && | |
1640 | ac_cv_target_alias=$ac_cv_host_alias | |
1641 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1642 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1643 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1644 | { (exit 1); exit 1; }; } | |
1645 | ||
1646 | fi | |
1647 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1648 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1649 | target=$ac_cv_target | |
1650 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1651 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1652 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1653 | ||
1654 | ||
1655 | # The aliases save the names the user supplied, while $host etc. | |
1656 | # will get canonicalized. | |
1657 | test -n "$target_alias" && | |
1658 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1659 | NONENONEs,x,x, && | |
1660 | program_prefix=${target_alias}- | |
1661 | ||
1662 | ||
1663 | ||
ceec2216 | 1664 | wx_major_version_number=2 |
e0d84535 | 1665 | wx_minor_version_number=6 |
eb730a0c | 1666 | wx_release_number=2 |
063c96c1 | 1667 | wx_subrelease_number=1 |
a848cd7e | 1668 | |
ceec2216 RL |
1669 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1670 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1671 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1672 | |
ceec2216 | 1673 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1674 | |
a848cd7e SC |
1675 | |
1676 | ||
1677 | ||
1678 | USE_UNIX=1 | |
1679 | USE_OS2=0 | |
1680 | USE_WIN32=0 | |
1681 | USE_DOS=0 | |
1682 | USE_BEOS=0 | |
1683 | USE_MAC=0 | |
1684 | ||
1685 | USE_AIX= | |
1686 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1687 | USE_GNU= USE_HPUX= | |
1688 | USE_LINUX= | |
1689 | USE_NETBSD= | |
1690 | USE_OPENBSD= | |
1691 | USE_OSF= USE_SGI= | |
1692 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1693 | USE_ULTRIX= | |
1694 | USE_UNIXWARE= | |
1695 | ||
1696 | USE_ALPHA= | |
1697 | ||
1698 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1699 | ||
1700 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1701 | ||
1702 | DEFAULT_wxUSE_COCOA=0 | |
1703 | DEFAULT_wxUSE_GTK=0 | |
1704 | DEFAULT_wxUSE_MAC=0 | |
1705 | DEFAULT_wxUSE_MGL=0 | |
1706 | DEFAULT_wxUSE_MICROWIN=0 | |
1707 | DEFAULT_wxUSE_MOTIF=0 | |
1708 | DEFAULT_wxUSE_MSW=0 | |
1709 | DEFAULT_wxUSE_PM=0 | |
1710 | DEFAULT_wxUSE_X11=0 | |
1711 | ||
1712 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1721 | ||
1722 | PROGRAM_EXT= | |
1723 | SO_SUFFIX=so | |
1724 | SAMPLES_RPATH_FLAG= | |
1725 | SAMPLES_RPATH_POSTLINK= | |
1726 | ||
a03b8b04 RD |
1727 | DEFAULT_STD_FLAG=yes |
1728 | ||
a848cd7e SC |
1729 | case "${host}" in |
1730 | *-hp-hpux* ) | |
1731 | USE_HPUX=1 | |
1732 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1733 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1734 | SO_SUFFIX=sl | |
1735 | cat >>confdefs.h <<\_ACEOF | |
1736 | #define __HPUX__ 1 | |
1737 | _ACEOF | |
1738 | ||
1739 | ;; | |
1740 | *-*-linux* ) | |
1741 | USE_LINUX=1 | |
1742 | cat >>confdefs.h <<\_ACEOF | |
1743 | #define __LINUX__ 1 | |
1744 | _ACEOF | |
1745 | ||
1746 | TMP=`uname -m` | |
1747 | if test "x$TMP" = "xalpha"; then | |
1748 | USE_ALPHA=1 | |
1749 | cat >>confdefs.h <<\_ACEOF | |
1750 | #define __ALPHA__ 1 | |
1751 | _ACEOF | |
1752 | ||
1753 | fi | |
1754 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1755 | ;; | |
1756 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1757 | USE_GNU=1 | |
1758 | TMP=`uname -m` | |
1759 | if test "x$TMP" = "xalpha"; then | |
1760 | USE_ALPHA=1 | |
1761 | cat >>confdefs.h <<\_ACEOF | |
1762 | #define __ALPHA__ 1 | |
1763 | _ACEOF | |
1764 | ||
1765 | fi | |
1766 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1767 | ;; | |
1768 | *-*-irix5* | *-*-irix6* ) | |
1769 | USE_SGI=1 | |
1770 | USE_SVR4=1 | |
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SGI__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | cat >>confdefs.h <<\_ACEOF | |
1776 | #define __SVR4__ 1 | |
1777 | _ACEOF | |
1778 | ||
1779 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1780 | ;; | |
1781 | *-*-solaris2* ) | |
1782 | USE_SUN=1 | |
1783 | USE_SOLARIS=1 | |
1784 | USE_SVR4=1 | |
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SUN__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SOLARIS__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SVR4__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1798 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1799 | ;; | |
1800 | *-*-sunos4* ) | |
1801 | USE_SUN=1 | |
1802 | USE_SUNOS=1 | |
1803 | USE_BSD=1 | |
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __SUN__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __SUNOS__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __BSD__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1817 | ;; | |
1818 | *-*-freebsd*) | |
1819 | USE_BSD=1 | |
1820 | USE_FREEBSD=1 | |
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __FREEBSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __BSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1830 | ;; | |
1831 | *-*-openbsd*) | |
1832 | USE_BSD=1 | |
1833 | USE_OPENBSD=1 | |
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __OPENBSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __BSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1843 | ;; | |
1844 | *-*-netbsd*) | |
1845 | USE_BSD=1 | |
1846 | USE_NETBSD=1 | |
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __NETBSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __BSD__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1856 | ;; | |
1857 | *-*-osf* ) | |
1858 | USE_ALPHA=1 | |
1859 | USE_OSF=1 | |
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __ALPHA__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | cat >>confdefs.h <<\_ACEOF | |
1865 | #define __OSF__ 1 | |
1866 | _ACEOF | |
1867 | ||
1868 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1869 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1870 | ;; | |
1871 | *-*-dgux5* ) | |
1872 | USE_ALPHA=1 | |
1873 | USE_SVR4=1 | |
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __ALPHA__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SVR4__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1883 | ;; | |
1884 | *-*-sysv5* ) | |
1885 | USE_SYSV=1 | |
1886 | USE_SVR4=1 | |
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __SYSV__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | cat >>confdefs.h <<\_ACEOF | |
1892 | #define __SVR4__ 1 | |
1893 | _ACEOF | |
1894 | ||
1895 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1896 | ;; | |
1897 | *-*-aix* ) | |
1898 | USE_AIX=1 | |
1899 | USE_SYSV=1 | |
1900 | USE_SVR4=1 | |
1901 | SO_SUFFIX=a | |
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __AIX__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SYSV__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | cat >>confdefs.h <<\_ACEOF | |
1911 | #define __SVR4__ 1 | |
1912 | _ACEOF | |
1913 | ||
1914 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1915 | ;; | |
1916 | ||
1917 | *-*-*UnixWare*) | |
1918 | USE_SYSV=1 | |
1919 | USE_SVR4=1 | |
1920 | USE_UNIXWARE=1 | |
1921 | cat >>confdefs.h <<\_ACEOF | |
1922 | #define __UNIXWARE__ 1 | |
1923 | _ACEOF | |
1924 | ||
1925 | ;; | |
1926 | ||
1927 | *-*-cygwin* | *-*-mingw32* ) | |
1928 | SO_SUFFIX=dll | |
1929 | PROGRAM_EXT=".exe" | |
a848cd7e | 1930 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1931 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1932 | ;; |
1933 | ||
1934 | *-pc-msdosdjgpp ) | |
1935 | USE_UNIX=0 | |
1936 | USE_DOS=1 | |
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __DOS__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | PROGRAM_EXT=".exe" | |
1942 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1943 | ;; |
1944 | ||
1945 | *-pc-os2_emx | *-pc-os2-emx ) | |
1946 | cat >>confdefs.h <<\_ACEOF | |
1947 | #define __EMX__ 1 | |
1948 | _ACEOF | |
1949 | ||
1950 | USE_OS2=1 | |
1951 | cat >>confdefs.h <<\_ACEOF | |
1952 | #define __OS2__ 1 | |
1953 | _ACEOF | |
1954 | ||
1955 | PROGRAM_EXT=".exe" | |
1956 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1957 | CXX=gcc | |
1958 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1959 | ac_executable_extensions=".exe" | |
1960 | export ac_executable_extensions | |
1961 | ac_save_IFS="$IFS" | |
1962 | IFS='\\' | |
1963 | ac_TEMP_PATH= | |
1964 | for ac_dir in $PATH; do | |
1965 | IFS=$ac_save_IFS | |
1966 | if test -z "$ac_TEMP_PATH"; then | |
1967 | ac_TEMP_PATH="$ac_dir" | |
1968 | else | |
1969 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1970 | fi | |
1971 | done | |
1972 | export PATH="$ac_TEMP_PATH" | |
1973 | unset ac_TEMP_PATH | |
a03b8b04 | 1974 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1975 | ;; |
1976 | ||
cfda0ea8 | 1977 | *-*-darwin* ) |
a848cd7e SC |
1978 | USE_BSD=1 |
1979 | USE_DARWIN=1 | |
1980 | SO_SUFFIX=dylib | |
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __BSD__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __DARWIN__ 1 | |
a848cd7e SC |
1987 | _ACEOF |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define TARGET_CARBON 1 | |
1991 | _ACEOF | |
1992 | ||
1993 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1994 | DEFAULT_STD_FLAG=no |
a848cd7e | 1995 | ;; |
1e9e8aba DE |
1996 | powerpc-apple-macos* ) |
1997 | USE_UNIX=0 | |
1998 | ac_cv_c_bigendian=yes | |
1999 | SO_SUFFIX=shlib | |
2000 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2001 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2002 | ;; |
a848cd7e SC |
2003 | |
2004 | *-*-beos* ) | |
2005 | USE_BEOS=1 | |
2006 | cat >>confdefs.h <<\_ACEOF | |
2007 | #define __BEOS__ 1 | |
2008 | _ACEOF | |
2009 | ||
2010 | ;; | |
2011 | ||
2012 | *) | |
2013 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2014 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2015 | { (exit 1); exit 1; }; } | |
2016 | esac | |
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | wx_arg_cache_file="configarg.cache" | |
2022 | echo "loading argument cache $wx_arg_cache_file" | |
2023 | rm -f ${wx_arg_cache_file}.tmp | |
2024 | touch ${wx_arg_cache_file}.tmp | |
2025 | touch ${wx_arg_cache_file} | |
2026 | ||
2027 | ||
2028 | DEBUG_CONFIGURE=0 | |
2029 | if test $DEBUG_CONFIGURE = 1; then | |
2030 | DEFAULT_wxUSE_UNIVERSAL=no | |
2031 | DEFAULT_wxUSE_STL=no | |
2032 | ||
2033 | DEFAULT_wxUSE_NANOX=no | |
2034 | ||
2035 | DEFAULT_wxUSE_THREADS=yes | |
2036 | ||
2037 | DEFAULT_wxUSE_SHARED=yes | |
2038 | DEFAULT_wxUSE_OPTIMISE=no | |
2039 | DEFAULT_wxUSE_PROFILE=no | |
2040 | DEFAULT_wxUSE_NO_DEPS=no | |
2041 | DEFAULT_wxUSE_NO_RTTI=no | |
2042 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2043 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2044 | DEFAULT_wxUSE_PERMISSIVE=no |
2045 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2046 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2047 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2048 | DEFAULT_wxUSE_MEM_TRACING=no | |
2049 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2050 | DEFAULT_wxUSE_DMALLOC=no | |
2051 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2052 | ||
2053 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2054 | DEFAULT_wxUSE_LOG=yes | |
2055 | DEFAULT_wxUSE_LOGWINDOW=no | |
2056 | DEFAULT_wxUSE_LOGGUI=no | |
2057 | DEFAULT_wxUSE_LOGDIALOG=no | |
2058 | ||
2059 | DEFAULT_wxUSE_GUI=yes | |
2060 | DEFAULT_wxUSE_CONTROLS=no | |
2061 | ||
2062 | DEFAULT_wxUSE_REGEX=no | |
2063 | DEFAULT_wxUSE_XML=no | |
2064 | DEFAULT_wxUSE_EXPAT=no | |
2065 | DEFAULT_wxUSE_ZLIB=no | |
2066 | DEFAULT_wxUSE_LIBPNG=no | |
2067 | DEFAULT_wxUSE_LIBJPEG=no | |
2068 | DEFAULT_wxUSE_LIBTIFF=no | |
2069 | DEFAULT_wxUSE_LIBXPM=no | |
2070 | DEFAULT_wxUSE_LIBMSPACK=no | |
2071 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2072 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2073 | DEFAULT_wxUSE_ODBC=no |
2074 | DEFAULT_wxUSE_OPENGL=no | |
2075 | ||
2076 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2077 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2078 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2079 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2080 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2081 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2082 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2083 | DEFAULT_wxUSE_DATETIME=no | |
2084 | DEFAULT_wxUSE_TIMER=no | |
2085 | DEFAULT_wxUSE_STOPWATCH=no | |
2086 | DEFAULT_wxUSE_FILE=no | |
2087 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2088 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2089 | DEFAULT_wxUSE_TEXTBUFFER=no |
2090 | DEFAULT_wxUSE_TEXTFILE=no | |
2091 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2092 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2093 | DEFAULT_wxUSE_INTL=no |
2094 | DEFAULT_wxUSE_CONFIG=no | |
2095 | DEFAULT_wxUSE_FONTMAP=no | |
2096 | DEFAULT_wxUSE_STREAMS=no | |
2097 | DEFAULT_wxUSE_SOCKETS=no | |
2098 | DEFAULT_wxUSE_OLE=no | |
2099 | DEFAULT_wxUSE_DATAOBJ=no | |
2100 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2101 | DEFAULT_wxUSE_JOYSTICK=no | |
2102 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2103 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2104 | DEFAULT_wxUSE_LONGLONG=no | |
2105 | DEFAULT_wxUSE_GEOMETRY=no | |
2106 | ||
2107 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2108 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2109 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2110 | ||
2111 | DEFAULT_wxUSE_CLIPBOARD=no | |
2112 | DEFAULT_wxUSE_TOOLTIPS=no | |
2113 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2114 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2115 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2116 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2117 | |
8a7b1113 | 2118 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2119 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2120 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2121 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2122 | ||
2123 | DEFAULT_wxUSE_RESOURCES=no | |
2124 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2125 | DEFAULT_wxUSE_IPC=no | |
2126 | DEFAULT_wxUSE_HELP=no | |
2127 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2128 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2129 | DEFAULT_wxUSE_TREELAYOUT=no | |
2130 | DEFAULT_wxUSE_METAFILE=no | |
2131 | DEFAULT_wxUSE_MIMETYPE=no | |
2132 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2133 | DEFAULT_wxUSE_PROTOCOL=no | |
2134 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2135 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2136 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2137 | DEFAULT_wxUSE_URL=no | |
2138 | ||
2139 | DEFAULT_wxUSE_COMMONDLGS=no | |
2140 | DEFAULT_wxUSE_CHOICEDLG=no | |
2141 | DEFAULT_wxUSE_COLOURDLG=no | |
2142 | DEFAULT_wxUSE_DIRDLG=no | |
2143 | DEFAULT_wxUSE_FILEDLG=no | |
2144 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2145 | DEFAULT_wxUSE_FONTDLG=no | |
2146 | DEFAULT_wxUSE_MSGDLG=no | |
2147 | DEFAULT_wxUSE_NUMBERDLG=no | |
2148 | DEFAULT_wxUSE_TEXTDLG=no | |
2149 | DEFAULT_wxUSE_SPLASH=no | |
2150 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2151 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2152 | DEFAULT_wxUSE_WIZARDDLG=no | |
2153 | ||
2154 | DEFAULT_wxUSE_MENUS=no | |
2155 | DEFAULT_wxUSE_MINIFRAME=no | |
2156 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2157 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2158 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2159 | DEFAULT_wxUSE_FILESYSTEM=no |
2160 | DEFAULT_wxUSE_FS_INET=no | |
2161 | DEFAULT_wxUSE_FS_ZIP=no | |
2162 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2163 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2164 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2165 | DEFAULT_wxUSE_VALIDATORS=no |
2166 | ||
2167 | DEFAULT_wxUSE_ACCEL=no | |
2168 | DEFAULT_wxUSE_BUTTON=no | |
2169 | DEFAULT_wxUSE_BMPBUTTON=no | |
2170 | DEFAULT_wxUSE_CALCTRL=no | |
2171 | DEFAULT_wxUSE_CARET=no | |
2172 | DEFAULT_wxUSE_CHECKBOX=no | |
2173 | DEFAULT_wxUSE_CHECKLST=no | |
2174 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2175 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2176 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2177 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2178 | DEFAULT_wxUSE_DISPLAY=no |
2179 | DEFAULT_wxUSE_GAUGE=no | |
2180 | DEFAULT_wxUSE_GRID=no | |
2181 | DEFAULT_wxUSE_IMAGLIST=no | |
2182 | DEFAULT_wxUSE_LISTBOOK=no | |
2183 | DEFAULT_wxUSE_LISTBOX=no | |
2184 | DEFAULT_wxUSE_LISTCTRL=no | |
2185 | DEFAULT_wxUSE_NOTEBOOK=no | |
2186 | DEFAULT_wxUSE_RADIOBOX=no | |
2187 | DEFAULT_wxUSE_RADIOBTN=no | |
2188 | DEFAULT_wxUSE_SASH=no | |
2189 | DEFAULT_wxUSE_SCROLLBAR=no | |
2190 | DEFAULT_wxUSE_SLIDER=no | |
2191 | DEFAULT_wxUSE_SPINBTN=no | |
2192 | DEFAULT_wxUSE_SPINCTRL=no | |
2193 | DEFAULT_wxUSE_SPLITTER=no | |
2194 | DEFAULT_wxUSE_STATBMP=no | |
2195 | DEFAULT_wxUSE_STATBOX=no | |
2196 | DEFAULT_wxUSE_STATLINE=no | |
2197 | DEFAULT_wxUSE_STATTEXT=no | |
2198 | DEFAULT_wxUSE_STATUSBAR=yes | |
2199 | DEFAULT_wxUSE_TABDIALOG=no | |
2200 | DEFAULT_wxUSE_TEXTCTRL=no | |
2201 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2202 | DEFAULT_wxUSE_TOOLBAR=no | |
2203 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2204 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2205 | DEFAULT_wxUSE_TREECTRL=no | |
2206 | DEFAULT_wxUSE_POPUPWIN=no | |
2207 | DEFAULT_wxUSE_TIPWINDOW=no | |
2208 | ||
2209 | DEFAULT_wxUSE_UNICODE=no | |
2210 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2211 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2212 | ||
2213 | DEFAULT_wxUSE_PALETTE=no | |
2214 | DEFAULT_wxUSE_IMAGE=no | |
2215 | DEFAULT_wxUSE_GIF=no | |
2216 | DEFAULT_wxUSE_PCX=no | |
2217 | DEFAULT_wxUSE_PNM=no | |
2218 | DEFAULT_wxUSE_IFF=no | |
2219 | DEFAULT_wxUSE_XPM=no | |
2220 | DEFAULT_wxUSE_ICO_CUR=no | |
2221 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2222 | ||
2223 | DEFAULT_wxUSE_MONOLITHIC=no | |
2224 | DEFAULT_wxUSE_PLUGINS=no | |
2225 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2226 | else | |
2227 | DEFAULT_wxUSE_UNIVERSAL=no | |
2228 | DEFAULT_wxUSE_STL=no | |
2229 | ||
2230 | DEFAULT_wxUSE_NANOX=no | |
2231 | ||
2232 | DEFAULT_wxUSE_THREADS=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_SHARED=yes | |
2235 | DEFAULT_wxUSE_OPTIMISE=yes | |
2236 | DEFAULT_wxUSE_PROFILE=no | |
2237 | DEFAULT_wxUSE_NO_DEPS=no | |
2238 | DEFAULT_wxUSE_NO_RTTI=no | |
2239 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2240 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2241 | DEFAULT_wxUSE_PERMISSIVE=no |
2242 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2243 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2244 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2245 | DEFAULT_wxUSE_MEM_TRACING=no | |
2246 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2247 | DEFAULT_wxUSE_DMALLOC=no | |
2248 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2249 | ||
2250 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2251 | DEFAULT_wxUSE_LOG=yes | |
2252 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2253 | DEFAULT_wxUSE_LOGGUI=yes | |
2254 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2255 | ||
2256 | DEFAULT_wxUSE_GUI=yes | |
2257 | ||
2258 | DEFAULT_wxUSE_REGEX=yes | |
2259 | DEFAULT_wxUSE_XML=yes | |
2260 | DEFAULT_wxUSE_EXPAT=yes | |
2261 | DEFAULT_wxUSE_ZLIB=yes | |
2262 | DEFAULT_wxUSE_LIBPNG=yes | |
2263 | DEFAULT_wxUSE_LIBJPEG=yes | |
2264 | DEFAULT_wxUSE_LIBTIFF=yes | |
2265 | DEFAULT_wxUSE_LIBXPM=yes | |
2266 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2267 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2268 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2269 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2270 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2271 | |
2272 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2273 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2274 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2275 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2276 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2277 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2278 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2279 | DEFAULT_wxUSE_DATETIME=yes | |
2280 | DEFAULT_wxUSE_TIMER=yes | |
2281 | DEFAULT_wxUSE_STOPWATCH=yes | |
2282 | DEFAULT_wxUSE_FILE=yes | |
2283 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2284 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2285 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2286 | DEFAULT_wxUSE_TEXTFILE=yes | |
2287 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2288 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2289 | DEFAULT_wxUSE_INTL=yes |
2290 | DEFAULT_wxUSE_CONFIG=yes | |
2291 | DEFAULT_wxUSE_FONTMAP=yes | |
2292 | DEFAULT_wxUSE_STREAMS=yes | |
2293 | DEFAULT_wxUSE_SOCKETS=yes | |
2294 | DEFAULT_wxUSE_OLE=yes | |
2295 | DEFAULT_wxUSE_DATAOBJ=yes | |
2296 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2297 | DEFAULT_wxUSE_JOYSTICK=yes | |
2298 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2299 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2300 | DEFAULT_wxUSE_LONGLONG=yes | |
2301 | DEFAULT_wxUSE_GEOMETRY=yes | |
2302 | ||
2303 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2304 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2305 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2306 | ||
2307 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2308 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2309 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2310 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2311 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2312 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2313 | |
8a7b1113 | 2314 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2315 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2316 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2317 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_RESOURCES=no | |
2320 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2321 | DEFAULT_wxUSE_IPC=yes | |
2322 | DEFAULT_wxUSE_HELP=yes | |
2323 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2324 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2325 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2326 | DEFAULT_wxUSE_METAFILE=yes | |
2327 | DEFAULT_wxUSE_MIMETYPE=yes | |
2328 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2329 | DEFAULT_wxUSE_PROTOCOL=yes | |
2330 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2331 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2332 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2333 | DEFAULT_wxUSE_URL=yes | |
2334 | ||
2335 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2336 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2337 | DEFAULT_wxUSE_COLOURDLG=yes | |
2338 | DEFAULT_wxUSE_DIRDLG=yes | |
2339 | DEFAULT_wxUSE_FILEDLG=yes | |
2340 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2341 | DEFAULT_wxUSE_FONTDLG=yes | |
2342 | DEFAULT_wxUSE_MSGDLG=yes | |
2343 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2344 | DEFAULT_wxUSE_TEXTDLG=yes | |
2345 | DEFAULT_wxUSE_SPLASH=yes | |
2346 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2347 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2348 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2349 | ||
2350 | DEFAULT_wxUSE_MENUS=yes | |
2351 | DEFAULT_wxUSE_MINIFRAME=yes | |
2352 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2353 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2354 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2355 | DEFAULT_wxUSE_FILESYSTEM=yes |
2356 | DEFAULT_wxUSE_FS_INET=yes | |
2357 | DEFAULT_wxUSE_FS_ZIP=yes | |
2358 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2359 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2360 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2361 | DEFAULT_wxUSE_VALIDATORS=yes |
2362 | ||
2363 | DEFAULT_wxUSE_ACCEL=yes | |
2364 | DEFAULT_wxUSE_BUTTON=yes | |
2365 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2366 | DEFAULT_wxUSE_CALCTRL=yes | |
2367 | DEFAULT_wxUSE_CARET=yes | |
2368 | DEFAULT_wxUSE_CHECKBOX=yes | |
2369 | DEFAULT_wxUSE_CHECKLST=yes | |
2370 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2371 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2372 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2373 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2374 | DEFAULT_wxUSE_DISPLAY=yes |
2375 | DEFAULT_wxUSE_GAUGE=yes | |
2376 | DEFAULT_wxUSE_GRID=yes | |
2377 | DEFAULT_wxUSE_IMAGLIST=yes | |
2378 | DEFAULT_wxUSE_LISTBOOK=yes | |
2379 | DEFAULT_wxUSE_LISTBOX=yes | |
2380 | DEFAULT_wxUSE_LISTCTRL=yes | |
2381 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2382 | DEFAULT_wxUSE_RADIOBOX=yes | |
2383 | DEFAULT_wxUSE_RADIOBTN=yes | |
2384 | DEFAULT_wxUSE_SASH=yes | |
2385 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2386 | DEFAULT_wxUSE_SLIDER=yes | |
2387 | DEFAULT_wxUSE_SPINBTN=yes | |
2388 | DEFAULT_wxUSE_SPINCTRL=yes | |
2389 | DEFAULT_wxUSE_SPLITTER=yes | |
2390 | DEFAULT_wxUSE_STATBMP=yes | |
2391 | DEFAULT_wxUSE_STATBOX=yes | |
2392 | DEFAULT_wxUSE_STATLINE=yes | |
2393 | DEFAULT_wxUSE_STATTEXT=yes | |
2394 | DEFAULT_wxUSE_STATUSBAR=yes | |
2395 | DEFAULT_wxUSE_TABDIALOG=no | |
2396 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2397 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2398 | DEFAULT_wxUSE_TOOLBAR=yes | |
2399 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2400 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2401 | DEFAULT_wxUSE_TREECTRL=yes | |
2402 | DEFAULT_wxUSE_POPUPWIN=yes | |
2403 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2404 | ||
78de529b | 2405 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2406 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2407 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2408 | ||
2409 | DEFAULT_wxUSE_PALETTE=yes | |
2410 | DEFAULT_wxUSE_IMAGE=yes | |
2411 | DEFAULT_wxUSE_GIF=yes | |
2412 | DEFAULT_wxUSE_PCX=yes | |
2413 | DEFAULT_wxUSE_IFF=no | |
2414 | DEFAULT_wxUSE_PNM=yes | |
2415 | DEFAULT_wxUSE_XPM=yes | |
2416 | DEFAULT_wxUSE_ICO_CUR=yes | |
2417 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2418 | ||
2419 | DEFAULT_wxUSE_MONOLITHIC=no | |
2420 | DEFAULT_wxUSE_PLUGINS=no | |
2421 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2422 | |
f34ca037 | 2423 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2424 | fi |
2425 | ||
2426 | ||
2427 | ||
f34ca037 | 2428 | |
a848cd7e SC |
2429 | for toolkit in `echo $ALL_TOOLKITS`; do |
2430 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2431 | if test "x$LINE" != "x" ; then | |
2432 | has_toolkit_in_cache=1 | |
2433 | eval "DEFAULT_$LINE" | |
2434 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2435 | |
2436 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2437 | if test "x$LINE" != "x" ; then | |
2438 | eval "DEFAULT_$LINE" | |
2439 | fi | |
a848cd7e SC |
2440 | fi |
2441 | done | |
2442 | ||
2443 | ||
2444 | ||
2445 | enablestring= | |
2446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2447 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2448 | no_cache=0 | |
2449 | # Check whether --enable-gui or --disable-gui was given. | |
2450 | if test "${enable_gui+set}" = set; then | |
2451 | enableval="$enable_gui" | |
2452 | ||
2453 | if test "$enableval" = yes; then | |
2454 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2455 | else | |
2456 | ac_cv_use_gui='wxUSE_GUI=no' | |
2457 | fi | |
2458 | ||
2459 | else | |
2460 | ||
2461 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2462 | if test "x$LINE" != x ; then | |
2463 | eval "DEFAULT_$LINE" | |
2464 | else | |
2465 | no_cache=1 | |
2466 | fi | |
2467 | ||
2468 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2469 | ||
2470 | fi; | |
2471 | ||
2472 | eval "$ac_cv_use_gui" | |
2473 | if test "$no_cache" != 1; then | |
2474 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2475 | fi | |
2476 | ||
2477 | if test "$wxUSE_GUI" = yes; then | |
2478 | echo "$as_me:$LINENO: result: yes" >&5 | |
2479 | echo "${ECHO_T}yes" >&6 | |
2480 | else | |
2481 | echo "$as_me:$LINENO: result: no" >&5 | |
2482 | echo "${ECHO_T}no" >&6 | |
2483 | fi | |
2484 | ||
2485 | ||
2486 | enablestring= | |
2487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2488 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2489 | no_cache=0 | |
2490 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2491 | if test "${enable_monolithic+set}" = set; then | |
2492 | enableval="$enable_monolithic" | |
2493 | ||
2494 | if test "$enableval" = yes; then | |
2495 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2496 | else | |
2497 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2498 | fi | |
2499 | ||
2500 | else | |
2501 | ||
2502 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2510 | ||
2511 | fi; | |
2512 | ||
2513 | eval "$ac_cv_use_monolithic" | |
2514 | if test "$no_cache" != 1; then | |
2515 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2516 | fi | |
2517 | ||
2518 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2519 | echo "$as_me:$LINENO: result: yes" >&5 | |
2520 | echo "${ECHO_T}yes" >&6 | |
2521 | else | |
2522 | echo "$as_me:$LINENO: result: no" >&5 | |
2523 | echo "${ECHO_T}no" >&6 | |
2524 | fi | |
2525 | ||
2526 | ||
2527 | enablestring= | |
2528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2529 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2530 | no_cache=0 | |
2531 | # Check whether --enable-plugins or --disable-plugins was given. | |
2532 | if test "${enable_plugins+set}" = set; then | |
2533 | enableval="$enable_plugins" | |
2534 | ||
2535 | if test "$enableval" = yes; then | |
2536 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2537 | else | |
2538 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2539 | fi | |
2540 | ||
2541 | else | |
2542 | ||
2543 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2544 | if test "x$LINE" != x ; then | |
2545 | eval "DEFAULT_$LINE" | |
2546 | else | |
2547 | no_cache=1 | |
2548 | fi | |
2549 | ||
2550 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2551 | ||
2552 | fi; | |
2553 | ||
2554 | eval "$ac_cv_use_plugins" | |
2555 | if test "$no_cache" != 1; then | |
2556 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2557 | fi | |
2558 | ||
2559 | if test "$wxUSE_PLUGINS" = yes; then | |
2560 | echo "$as_me:$LINENO: result: yes" >&5 | |
2561 | echo "${ECHO_T}yes" >&6 | |
2562 | else | |
2563 | echo "$as_me:$LINENO: result: no" >&5 | |
2564 | echo "${ECHO_T}no" >&6 | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | if test "$wxUSE_GUI" = "yes"; then | |
2569 | ||
2570 | ||
2571 | enablestring= | |
2572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2573 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2574 | no_cache=0 | |
2575 | # Check whether --enable-universal or --disable-universal was given. | |
2576 | if test "${enable_universal+set}" = set; then | |
2577 | enableval="$enable_universal" | |
2578 | ||
2579 | if test "$enableval" = yes; then | |
2580 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2581 | else | |
2582 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2583 | fi | |
2584 | ||
2585 | else | |
2586 | ||
2587 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2588 | if test "x$LINE" != x ; then | |
2589 | eval "DEFAULT_$LINE" | |
2590 | else | |
2591 | no_cache=1 | |
2592 | fi | |
2593 | ||
2594 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2595 | ||
2596 | fi; | |
2597 | ||
2598 | eval "$ac_cv_use_universal" | |
2599 | if test "$no_cache" != 1; then | |
2600 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2601 | fi | |
2602 | ||
2603 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2604 | echo "$as_me:$LINENO: result: yes" >&5 | |
2605 | echo "${ECHO_T}yes" >&6 | |
2606 | else | |
2607 | echo "$as_me:$LINENO: result: no" >&5 | |
2608 | echo "${ECHO_T}no" >&6 | |
2609 | fi | |
2610 | ||
2611 | ||
2612 | # Check whether --with-gtk or --without-gtk was given. | |
2613 | if test "${with_gtk+set}" = set; then | |
2614 | withval="$with_gtk" | |
2615 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2616 | fi; | |
2617 | ||
2618 | # Check whether --with-motif or --without-motif was given. | |
2619 | if test "${with_motif+set}" = set; then | |
2620 | withval="$with_motif" | |
2621 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2622 | fi; | |
2623 | ||
2624 | # Check whether --with-mac or --without-mac was given. | |
2625 | if test "${with_mac+set}" = set; then | |
2626 | withval="$with_mac" | |
c228d3a4 | 2627 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2628 | fi; |
2629 | ||
2630 | # Check whether --with-cocoa or --without-cocoa was given. | |
2631 | if test "${with_cocoa+set}" = set; then | |
2632 | withval="$with_cocoa" | |
c228d3a4 | 2633 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2634 | fi; |
2635 | ||
2636 | # Check whether --with-wine or --without-wine was given. | |
2637 | if test "${with_wine+set}" = set; then | |
2638 | withval="$with_wine" | |
2639 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2640 | fi; | |
2641 | ||
2642 | # Check whether --with-msw or --without-msw was given. | |
2643 | if test "${with_msw+set}" = set; then | |
2644 | withval="$with_msw" | |
2645 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2646 | fi; | |
2647 | ||
2648 | # Check whether --with-pm or --without-pm was given. | |
2649 | if test "${with_pm+set}" = set; then | |
2650 | withval="$with_pm" | |
2651 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2652 | fi; | |
2653 | ||
2654 | # Check whether --with-mgl or --without-mgl was given. | |
2655 | if test "${with_mgl+set}" = set; then | |
2656 | withval="$with_mgl" | |
2657 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2658 | fi; | |
2659 | ||
2660 | # Check whether --with-microwin or --without-microwin was given. | |
2661 | if test "${with_microwin+set}" = set; then | |
2662 | withval="$with_microwin" | |
2663 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2664 | fi; | |
2665 | ||
2666 | # Check whether --with-x11 or --without-x11 was given. | |
2667 | if test "${with_x11+set}" = set; then | |
2668 | withval="$with_x11" | |
2669 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2670 | fi; | |
2671 | ||
2672 | enablestring= | |
2673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2674 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2675 | no_cache=0 | |
2676 | # Check whether --enable-nanox or --disable-nanox was given. | |
2677 | if test "${enable_nanox+set}" = set; then | |
2678 | enableval="$enable_nanox" | |
2679 | ||
2680 | if test "$enableval" = yes; then | |
2681 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2682 | else | |
2683 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2684 | fi | |
2685 | ||
2686 | else | |
2687 | ||
2688 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2689 | if test "x$LINE" != x ; then | |
2690 | eval "DEFAULT_$LINE" | |
2691 | else | |
2692 | no_cache=1 | |
2693 | fi | |
2694 | ||
2695 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2696 | ||
2697 | fi; | |
2698 | ||
2699 | eval "$ac_cv_use_nanox" | |
2700 | if test "$no_cache" != 1; then | |
2701 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2702 | fi | |
2703 | ||
2704 | if test "$wxUSE_NANOX" = yes; then | |
2705 | echo "$as_me:$LINENO: result: yes" >&5 | |
2706 | echo "${ECHO_T}yes" >&6 | |
2707 | else | |
2708 | echo "$as_me:$LINENO: result: no" >&5 | |
2709 | echo "${ECHO_T}no" >&6 | |
2710 | fi | |
2711 | ||
2712 | ||
f34ca037 MW |
2713 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2714 | if test "${enable_gtk2+set}" = set; then | |
2715 | enableval="$enable_gtk2" | |
2716 | wxUSE_GTK2="$enableval" | |
2717 | fi; | |
a848cd7e | 2718 | |
a848cd7e SC |
2719 | enablestring= |
2720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2721 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2722 | no_cache=0 | |
2723 | # Check whether --enable-gpe or --disable-gpe was given. | |
2724 | if test "${enable_gpe+set}" = set; then | |
2725 | enableval="$enable_gpe" | |
2726 | ||
2727 | if test "$enableval" = yes; then | |
2728 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2729 | else | |
2730 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2731 | fi | |
2732 | ||
2733 | else | |
2734 | ||
2735 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2736 | if test "x$LINE" != x ; then | |
2737 | eval "DEFAULT_$LINE" | |
2738 | else | |
2739 | no_cache=1 | |
2740 | fi | |
2741 | ||
2742 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2743 | ||
2744 | fi; | |
2745 | ||
2746 | eval "$ac_cv_use_gpe" | |
2747 | if test "$no_cache" != 1; then | |
2748 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2749 | fi | |
2750 | ||
2751 | if test "$wxUSE_GPE" = yes; then | |
2752 | echo "$as_me:$LINENO: result: yes" >&5 | |
2753 | echo "${ECHO_T}yes" >&6 | |
2754 | else | |
2755 | echo "$as_me:$LINENO: result: no" >&5 | |
2756 | echo "${ECHO_T}no" >&6 | |
2757 | fi | |
2758 | ||
2759 | ||
2760 | ||
2761 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2762 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2763 | no_cache=0 | |
2764 | ||
2765 | # Check whether --with-libpng or --without-libpng was given. | |
2766 | if test "${with_libpng+set}" = set; then | |
2767 | withval="$with_libpng" | |
2768 | ||
2769 | if test "$withval" = yes; then | |
2770 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2771 | elif test "$withval" = no; then | |
2772 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2773 | elif test "$withval" = sys; then | |
2774 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2775 | elif test "$withval" = builtin; then | |
2776 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2777 | else | |
2778 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2779 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2780 | { (exit 1); exit 1; }; } | |
2781 | fi | |
2782 | ||
2783 | else | |
2784 | ||
2785 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2793 | ||
2794 | fi; | |
2795 | ||
2796 | eval "$ac_cv_use_libpng" | |
2797 | if test "$no_cache" != 1; then | |
2798 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2799 | fi | |
2800 | ||
2801 | if test "$wxUSE_LIBPNG" = yes; then | |
2802 | echo "$as_me:$LINENO: result: yes" >&5 | |
2803 | echo "${ECHO_T}yes" >&6 | |
2804 | elif test "$wxUSE_LIBPNG" = no; then | |
2805 | echo "$as_me:$LINENO: result: no" >&5 | |
2806 | echo "${ECHO_T}no" >&6 | |
2807 | elif test "$wxUSE_LIBPNG" = sys; then | |
2808 | echo "$as_me:$LINENO: result: system version" >&5 | |
2809 | echo "${ECHO_T}system version" >&6 | |
2810 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2811 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2812 | echo "${ECHO_T}builtin version" >&6 | |
2813 | else | |
2814 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2815 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2816 | { (exit 1); exit 1; }; } | |
2817 | fi | |
2818 | ||
2819 | ||
2820 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2821 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2822 | no_cache=0 | |
2823 | ||
2824 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2825 | if test "${with_libjpeg+set}" = set; then | |
2826 | withval="$with_libjpeg" | |
2827 | ||
2828 | if test "$withval" = yes; then | |
2829 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2830 | elif test "$withval" = no; then | |
2831 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2832 | elif test "$withval" = sys; then | |
2833 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2834 | elif test "$withval" = builtin; then | |
2835 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2836 | else | |
2837 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2838 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2839 | { (exit 1); exit 1; }; } | |
2840 | fi | |
2841 | ||
2842 | else | |
2843 | ||
2844 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2845 | if test "x$LINE" != x ; then | |
2846 | eval "DEFAULT_$LINE" | |
2847 | else | |
2848 | no_cache=1 | |
2849 | fi | |
2850 | ||
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2852 | ||
2853 | fi; | |
2854 | ||
2855 | eval "$ac_cv_use_libjpeg" | |
2856 | if test "$no_cache" != 1; then | |
2857 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2858 | fi | |
2859 | ||
2860 | if test "$wxUSE_LIBJPEG" = yes; then | |
2861 | echo "$as_me:$LINENO: result: yes" >&5 | |
2862 | echo "${ECHO_T}yes" >&6 | |
2863 | elif test "$wxUSE_LIBJPEG" = no; then | |
2864 | echo "$as_me:$LINENO: result: no" >&5 | |
2865 | echo "${ECHO_T}no" >&6 | |
2866 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2867 | echo "$as_me:$LINENO: result: system version" >&5 | |
2868 | echo "${ECHO_T}system version" >&6 | |
2869 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2870 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2871 | echo "${ECHO_T}builtin version" >&6 | |
2872 | else | |
2873 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2874 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2875 | { (exit 1); exit 1; }; } | |
2876 | fi | |
2877 | ||
2878 | ||
2879 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2880 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2881 | no_cache=0 | |
2882 | ||
2883 | # Check whether --with-libtiff or --without-libtiff was given. | |
2884 | if test "${with_libtiff+set}" = set; then | |
2885 | withval="$with_libtiff" | |
2886 | ||
2887 | if test "$withval" = yes; then | |
2888 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2889 | elif test "$withval" = no; then | |
2890 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2891 | elif test "$withval" = sys; then | |
2892 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2893 | elif test "$withval" = builtin; then | |
2894 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2895 | else | |
2896 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2897 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2898 | { (exit 1); exit 1; }; } | |
2899 | fi | |
2900 | ||
2901 | else | |
2902 | ||
2903 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2904 | if test "x$LINE" != x ; then | |
2905 | eval "DEFAULT_$LINE" | |
2906 | else | |
2907 | no_cache=1 | |
2908 | fi | |
2909 | ||
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2911 | ||
2912 | fi; | |
2913 | ||
2914 | eval "$ac_cv_use_libtiff" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_LIBTIFF" = yes; then | |
2920 | echo "$as_me:$LINENO: result: yes" >&5 | |
2921 | echo "${ECHO_T}yes" >&6 | |
2922 | elif test "$wxUSE_LIBTIFF" = no; then | |
2923 | echo "$as_me:$LINENO: result: no" >&5 | |
2924 | echo "${ECHO_T}no" >&6 | |
2925 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2926 | echo "$as_me:$LINENO: result: system version" >&5 | |
2927 | echo "${ECHO_T}system version" >&6 | |
2928 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2929 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2930 | echo "${ECHO_T}builtin version" >&6 | |
2931 | else | |
2932 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2933 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2934 | { (exit 1); exit 1; }; } | |
2935 | fi | |
2936 | ||
2937 | ||
2938 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2939 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2940 | no_cache=0 | |
2941 | ||
2942 | # Check whether --with-libxpm or --without-libxpm was given. | |
2943 | if test "${with_libxpm+set}" = set; then | |
2944 | withval="$with_libxpm" | |
2945 | ||
2946 | if test "$withval" = yes; then | |
2947 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2948 | elif test "$withval" = no; then | |
2949 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2950 | elif test "$withval" = sys; then | |
2951 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2952 | elif test "$withval" = builtin; then | |
2953 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2954 | else | |
2955 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2956 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2957 | { (exit 1); exit 1; }; } | |
2958 | fi | |
2959 | ||
2960 | else | |
2961 | ||
2962 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2963 | if test "x$LINE" != x ; then | |
2964 | eval "DEFAULT_$LINE" | |
2965 | else | |
2966 | no_cache=1 | |
2967 | fi | |
2968 | ||
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2970 | ||
2971 | fi; | |
2972 | ||
2973 | eval "$ac_cv_use_libxpm" | |
2974 | if test "$no_cache" != 1; then | |
2975 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2976 | fi | |
2977 | ||
2978 | if test "$wxUSE_LIBXPM" = yes; then | |
2979 | echo "$as_me:$LINENO: result: yes" >&5 | |
2980 | echo "${ECHO_T}yes" >&6 | |
2981 | elif test "$wxUSE_LIBXPM" = no; then | |
2982 | echo "$as_me:$LINENO: result: no" >&5 | |
2983 | echo "${ECHO_T}no" >&6 | |
2984 | elif test "$wxUSE_LIBXPM" = sys; then | |
2985 | echo "$as_me:$LINENO: result: system version" >&5 | |
2986 | echo "${ECHO_T}system version" >&6 | |
2987 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2988 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2989 | echo "${ECHO_T}builtin version" >&6 | |
2990 | else | |
2991 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2992 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2993 | { (exit 1); exit 1; }; } | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2998 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2999 | no_cache=0 | |
3000 | ||
3001 | # Check whether --with-libmspack or --without-libmspack was given. | |
3002 | if test "${with_libmspack+set}" = set; then | |
3003 | withval="$with_libmspack" | |
3004 | ||
3005 | if test "$withval" = yes; then | |
3006 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3007 | else | |
3008 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3009 | fi | |
3010 | ||
3011 | else | |
3012 | ||
3013 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3014 | if test "x$LINE" != x ; then | |
3015 | eval "DEFAULT_$LINE" | |
3016 | else | |
3017 | no_cache=1 | |
3018 | fi | |
3019 | ||
3020 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3021 | ||
3022 | fi; | |
3023 | ||
3024 | eval "$ac_cv_use_libmspack" | |
3025 | if test "$no_cache" != 1; then | |
3026 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3027 | fi | |
3028 | ||
3029 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3030 | echo "$as_me:$LINENO: result: yes" >&5 | |
3031 | echo "${ECHO_T}yes" >&6 | |
3032 | else | |
3033 | echo "$as_me:$LINENO: result: no" >&5 | |
3034 | echo "${ECHO_T}no" >&6 | |
3035 | fi | |
3036 | ||
3037 | ||
3038 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3039 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3040 | no_cache=0 | |
3041 | ||
3042 | # Check whether --with-sdl or --without-sdl was given. | |
3043 | if test "${with_sdl+set}" = set; then | |
3044 | withval="$with_sdl" | |
3045 | ||
3046 | if test "$withval" = yes; then | |
3047 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3048 | else | |
3049 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3050 | fi | |
3051 | ||
3052 | else | |
3053 | ||
3054 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3055 | if test "x$LINE" != x ; then | |
3056 | eval "DEFAULT_$LINE" | |
3057 | else | |
3058 | no_cache=1 | |
3059 | fi | |
3060 | ||
3061 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3062 | ||
3063 | fi; | |
3064 | ||
3065 | eval "$ac_cv_use_sdl" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_LIBSDL" = yes; then | |
3071 | echo "$as_me:$LINENO: result: yes" >&5 | |
3072 | echo "${ECHO_T}yes" >&6 | |
3073 | else | |
3074 | echo "$as_me:$LINENO: result: no" >&5 | |
3075 | echo "${ECHO_T}no" >&6 | |
3076 | fi | |
3077 | ||
3078 | ||
d1c38808 VZ |
3079 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3080 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3081 | no_cache=0 | |
3082 | ||
3083 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3084 | if test "${with_gnomeprint+set}" = set; then | |
3085 | withval="$with_gnomeprint" | |
3086 | ||
3087 | if test "$withval" = yes; then | |
3088 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3089 | else | |
3090 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3103 | ||
3104 | fi; | |
3105 | ||
3106 | eval "$ac_cv_use_gnomeprint" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3112 | echo "$as_me:$LINENO: result: yes" >&5 | |
3113 | echo "${ECHO_T}yes" >&6 | |
3114 | else | |
3115 | echo "$as_me:$LINENO: result: no" >&5 | |
3116 | echo "${ECHO_T}no" >&6 | |
3117 | fi | |
3118 | ||
3119 | ||
a848cd7e SC |
3120 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3121 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3122 | no_cache=0 | |
3123 | ||
3124 | # Check whether --with-opengl or --without-opengl was given. | |
3125 | if test "${with_opengl+set}" = set; then | |
3126 | withval="$with_opengl" | |
3127 | ||
3128 | if test "$withval" = yes; then | |
3129 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3130 | else | |
3131 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3144 | ||
3145 | fi; | |
3146 | ||
3147 | eval "$ac_cv_use_opengl" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_OPENGL" = yes; then | |
3153 | echo "$as_me:$LINENO: result: yes" >&5 | |
3154 | echo "${ECHO_T}yes" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | fi | |
3162 | ||
3163 | ||
3164 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3165 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3166 | no_cache=0 | |
3167 | ||
3168 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3169 | if test "${with_dmalloc+set}" = set; then | |
3170 | withval="$with_dmalloc" | |
3171 | ||
3172 | if test "$withval" = yes; then | |
3173 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3174 | else | |
3175 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3188 | ||
3189 | fi; | |
3190 | ||
3191 | eval "$ac_cv_use_dmalloc" | |
3192 | if test "$no_cache" != 1; then | |
3193 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3194 | fi | |
3195 | ||
3196 | if test "$wxUSE_DMALLOC" = yes; then | |
3197 | echo "$as_me:$LINENO: result: yes" >&5 | |
3198 | echo "${ECHO_T}yes" >&6 | |
3199 | else | |
3200 | echo "$as_me:$LINENO: result: no" >&5 | |
3201 | echo "${ECHO_T}no" >&6 | |
3202 | fi | |
3203 | ||
3204 | ||
3205 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3206 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3207 | no_cache=0 | |
3208 | ||
3209 | # Check whether --with-regex or --without-regex was given. | |
3210 | if test "${with_regex+set}" = set; then | |
3211 | withval="$with_regex" | |
3212 | ||
3213 | if test "$withval" = yes; then | |
3214 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3215 | elif test "$withval" = no; then | |
3216 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3217 | elif test "$withval" = sys; then | |
3218 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3219 | elif test "$withval" = builtin; then | |
3220 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3221 | else | |
3222 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3223 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3224 | { (exit 1); exit 1; }; } | |
3225 | fi | |
3226 | ||
3227 | else | |
3228 | ||
3229 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3237 | ||
3238 | fi; | |
3239 | ||
3240 | eval "$ac_cv_use_regex" | |
3241 | if test "$no_cache" != 1; then | |
3242 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3243 | fi | |
3244 | ||
3245 | if test "$wxUSE_REGEX" = yes; then | |
3246 | echo "$as_me:$LINENO: result: yes" >&5 | |
3247 | echo "${ECHO_T}yes" >&6 | |
3248 | elif test "$wxUSE_REGEX" = no; then | |
3249 | echo "$as_me:$LINENO: result: no" >&5 | |
3250 | echo "${ECHO_T}no" >&6 | |
3251 | elif test "$wxUSE_REGEX" = sys; then | |
3252 | echo "$as_me:$LINENO: result: system version" >&5 | |
3253 | echo "${ECHO_T}system version" >&6 | |
3254 | elif test "$wxUSE_REGEX" = builtin; then | |
3255 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3256 | echo "${ECHO_T}builtin version" >&6 | |
3257 | else | |
3258 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3259 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3260 | { (exit 1); exit 1; }; } | |
3261 | fi | |
3262 | ||
3263 | ||
3264 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3265 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3266 | no_cache=0 | |
3267 | ||
3268 | # Check whether --with-zlib or --without-zlib was given. | |
3269 | if test "${with_zlib+set}" = set; then | |
3270 | withval="$with_zlib" | |
3271 | ||
3272 | if test "$withval" = yes; then | |
3273 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3274 | elif test "$withval" = no; then | |
3275 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3276 | elif test "$withval" = sys; then | |
3277 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3278 | elif test "$withval" = builtin; then | |
3279 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3280 | else | |
3281 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3282 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3283 | { (exit 1); exit 1; }; } | |
3284 | fi | |
3285 | ||
3286 | else | |
3287 | ||
3288 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3296 | ||
3297 | fi; | |
3298 | ||
3299 | eval "$ac_cv_use_zlib" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_ZLIB" = yes; then | |
3305 | echo "$as_me:$LINENO: result: yes" >&5 | |
3306 | echo "${ECHO_T}yes" >&6 | |
3307 | elif test "$wxUSE_ZLIB" = no; then | |
3308 | echo "$as_me:$LINENO: result: no" >&5 | |
3309 | echo "${ECHO_T}no" >&6 | |
3310 | elif test "$wxUSE_ZLIB" = sys; then | |
3311 | echo "$as_me:$LINENO: result: system version" >&5 | |
3312 | echo "${ECHO_T}system version" >&6 | |
3313 | elif test "$wxUSE_ZLIB" = builtin; then | |
3314 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3315 | echo "${ECHO_T}builtin version" >&6 | |
3316 | else | |
3317 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3318 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3319 | { (exit 1); exit 1; }; } | |
3320 | fi | |
3321 | ||
3322 | ||
3323 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3324 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3325 | no_cache=0 | |
3326 | ||
3327 | # Check whether --with-odbc or --without-odbc was given. | |
3328 | if test "${with_odbc+set}" = set; then | |
3329 | withval="$with_odbc" | |
3330 | ||
3331 | if test "$withval" = yes; then | |
3332 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3333 | elif test "$withval" = no; then | |
3334 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3335 | elif test "$withval" = sys; then | |
3336 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3337 | elif test "$withval" = builtin; then | |
3338 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3339 | else | |
3340 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3341 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3342 | { (exit 1); exit 1; }; } | |
3343 | fi | |
3344 | ||
3345 | else | |
3346 | ||
3347 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3348 | if test "x$LINE" != x ; then | |
3349 | eval "DEFAULT_$LINE" | |
3350 | else | |
3351 | no_cache=1 | |
3352 | fi | |
3353 | ||
3354 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3355 | ||
3356 | fi; | |
3357 | ||
3358 | eval "$ac_cv_use_odbc" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_ODBC" = yes; then | |
3364 | echo "$as_me:$LINENO: result: yes" >&5 | |
3365 | echo "${ECHO_T}yes" >&6 | |
3366 | elif test "$wxUSE_ODBC" = no; then | |
3367 | echo "$as_me:$LINENO: result: no" >&5 | |
3368 | echo "${ECHO_T}no" >&6 | |
3369 | elif test "$wxUSE_ODBC" = sys; then | |
3370 | echo "$as_me:$LINENO: result: system version" >&5 | |
3371 | echo "${ECHO_T}system version" >&6 | |
3372 | elif test "$wxUSE_ODBC" = builtin; then | |
3373 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3374 | echo "${ECHO_T}builtin version" >&6 | |
3375 | else | |
3376 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3377 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3378 | { (exit 1); exit 1; }; } | |
3379 | fi | |
3380 | ||
3381 | ||
3382 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3383 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3384 | no_cache=0 | |
3385 | ||
3386 | # Check whether --with-expat or --without-expat was given. | |
3387 | if test "${with_expat+set}" = set; then | |
3388 | withval="$with_expat" | |
3389 | ||
3390 | if test "$withval" = yes; then | |
3391 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3392 | elif test "$withval" = no; then | |
3393 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3394 | elif test "$withval" = sys; then | |
3395 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3396 | elif test "$withval" = builtin; then | |
3397 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3398 | else | |
3399 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3400 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3401 | { (exit 1); exit 1; }; } | |
3402 | fi | |
3403 | ||
3404 | else | |
3405 | ||
3406 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3414 | ||
3415 | fi; | |
3416 | ||
3417 | eval "$ac_cv_use_expat" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_EXPAT" = yes; then | |
3423 | echo "$as_me:$LINENO: result: yes" >&5 | |
3424 | echo "${ECHO_T}yes" >&6 | |
3425 | elif test "$wxUSE_EXPAT" = no; then | |
3426 | echo "$as_me:$LINENO: result: no" >&5 | |
3427 | echo "${ECHO_T}no" >&6 | |
3428 | elif test "$wxUSE_EXPAT" = sys; then | |
3429 | echo "$as_me:$LINENO: result: system version" >&5 | |
3430 | echo "${ECHO_T}system version" >&6 | |
3431 | elif test "$wxUSE_EXPAT" = builtin; then | |
3432 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3433 | echo "${ECHO_T}builtin version" >&6 | |
3434 | else | |
3435 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3436 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3437 | { (exit 1); exit 1; }; } | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | ||
3442 | ||
3443 | enablestring= | |
3444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3445 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3446 | no_cache=0 | |
3447 | # Check whether --enable-shared or --disable-shared was given. | |
3448 | if test "${enable_shared+set}" = set; then | |
3449 | enableval="$enable_shared" | |
3450 | ||
3451 | if test "$enableval" = yes; then | |
3452 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3453 | else | |
3454 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3467 | ||
3468 | fi; | |
3469 | ||
3470 | eval "$ac_cv_use_shared" | |
3471 | if test "$no_cache" != 1; then | |
3472 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3473 | fi | |
3474 | ||
3475 | if test "$wxUSE_SHARED" = yes; then | |
3476 | echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6 | |
3478 | else | |
3479 | echo "$as_me:$LINENO: result: no" >&5 | |
3480 | echo "${ECHO_T}no" >&6 | |
3481 | fi | |
3482 | ||
3483 | ||
3484 | enablestring= | |
3485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3486 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3487 | no_cache=0 | |
3488 | # Check whether --enable-optimise or --disable-optimise was given. | |
3489 | if test "${enable_optimise+set}" = set; then | |
3490 | enableval="$enable_optimise" | |
3491 | ||
3492 | if test "$enableval" = yes; then | |
3493 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3494 | else | |
3495 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3496 | fi | |
3497 | ||
3498 | else | |
3499 | ||
3500 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3501 | if test "x$LINE" != x ; then | |
3502 | eval "DEFAULT_$LINE" | |
3503 | else | |
3504 | no_cache=1 | |
3505 | fi | |
3506 | ||
3507 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3508 | ||
3509 | fi; | |
3510 | ||
3511 | eval "$ac_cv_use_optimise" | |
3512 | if test "$no_cache" != 1; then | |
3513 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3514 | fi | |
3515 | ||
3516 | if test "$wxUSE_OPTIMISE" = yes; then | |
3517 | echo "$as_me:$LINENO: result: yes" >&5 | |
3518 | echo "${ECHO_T}yes" >&6 | |
3519 | else | |
3520 | echo "$as_me:$LINENO: result: no" >&5 | |
3521 | echo "${ECHO_T}no" >&6 | |
3522 | fi | |
3523 | ||
3524 | ||
3525 | enablestring= | |
3526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3527 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3528 | no_cache=0 | |
3529 | # Check whether --enable-debug or --disable-debug was given. | |
3530 | if test "${enable_debug+set}" = set; then | |
3531 | enableval="$enable_debug" | |
3532 | ||
3533 | if test "$enableval" = yes; then | |
3534 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3535 | else | |
3536 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3537 | fi | |
3538 | ||
3539 | else | |
3540 | ||
3541 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3542 | if test "x$LINE" != x ; then | |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
3548 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3549 | ||
3550 | fi; | |
3551 | ||
3552 | eval "$ac_cv_use_debug" | |
3553 | if test "$no_cache" != 1; then | |
3554 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3555 | fi | |
3556 | ||
3557 | if test "$wxUSE_DEBUG" = yes; then | |
3558 | echo "$as_me:$LINENO: result: yes" >&5 | |
3559 | echo "${ECHO_T}yes" >&6 | |
3560 | else | |
3561 | echo "$as_me:$LINENO: result: no" >&5 | |
3562 | echo "${ECHO_T}no" >&6 | |
3563 | fi | |
3564 | ||
3565 | ||
3566 | enablestring= | |
3567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3568 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3569 | no_cache=0 | |
3570 | # Check whether --enable-stl or --disable-stl was given. | |
3571 | if test "${enable_stl+set}" = set; then | |
3572 | enableval="$enable_stl" | |
3573 | ||
3574 | if test "$enableval" = yes; then | |
3575 | ac_cv_use_stl='wxUSE_STL=yes' | |
3576 | else | |
3577 | ac_cv_use_stl='wxUSE_STL=no' | |
3578 | fi | |
3579 | ||
3580 | else | |
3581 | ||
3582 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3583 | if test "x$LINE" != x ; then | |
3584 | eval "DEFAULT_$LINE" | |
3585 | else | |
3586 | no_cache=1 | |
3587 | fi | |
3588 | ||
3589 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3590 | ||
3591 | fi; | |
3592 | ||
3593 | eval "$ac_cv_use_stl" | |
3594 | if test "$no_cache" != 1; then | |
3595 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3596 | fi | |
3597 | ||
3598 | if test "$wxUSE_STL" = yes; then | |
3599 | echo "$as_me:$LINENO: result: yes" >&5 | |
3600 | echo "${ECHO_T}yes" >&6 | |
3601 | else | |
3602 | echo "$as_me:$LINENO: result: no" >&5 | |
3603 | echo "${ECHO_T}no" >&6 | |
3604 | fi | |
3605 | ||
3606 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3607 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3608 | |
3609 | enablestring= | |
3610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3611 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3612 | no_cache=0 | |
3613 | # Check whether --enable-omf or --disable-omf was given. | |
3614 | if test "${enable_omf+set}" = set; then | |
3615 | enableval="$enable_omf" | |
3616 | ||
3617 | if test "$enableval" = yes; then | |
3618 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3619 | else | |
3620 | ac_cv_use_omf='wxUSE_OMF=no' | |
3621 | fi | |
3622 | ||
3623 | else | |
3624 | ||
3625 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3626 | if test "x$LINE" != x ; then | |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
3632 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3633 | ||
3634 | fi; | |
3635 | ||
3636 | eval "$ac_cv_use_omf" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_OMF" = yes; then | |
3642 | echo "$as_me:$LINENO: result: yes" >&5 | |
3643 | echo "${ECHO_T}yes" >&6 | |
3644 | else | |
3645 | echo "$as_me:$LINENO: result: no" >&5 | |
3646 | echo "${ECHO_T}no" >&6 | |
3647 | fi | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | if test "$wxUSE_DEBUG" = "yes"; then | |
3652 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3653 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3654 | BUILD=debug | |
3655 | elif test "$wxUSE_DEBUG" = "no"; then | |
3656 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3657 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3658 | BUILD=release | |
3659 | fi | |
3660 | ||
3661 | ||
3662 | enablestring= | |
3663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3664 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3665 | no_cache=0 | |
3666 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3667 | if test "${enable_debug_flag+set}" = set; then | |
3668 | enableval="$enable_debug_flag" | |
3669 | ||
3670 | if test "$enableval" = yes; then | |
3671 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3672 | else | |
3673 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3674 | fi | |
3675 | ||
3676 | else | |
3677 | ||
3678 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3679 | if test "x$LINE" != x ; then | |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
3685 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3686 | ||
3687 | fi; | |
3688 | ||
3689 | eval "$ac_cv_use_debug_flag" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3695 | echo "$as_me:$LINENO: result: yes" >&5 | |
3696 | echo "${ECHO_T}yes" >&6 | |
3697 | else | |
3698 | echo "$as_me:$LINENO: result: no" >&5 | |
3699 | echo "${ECHO_T}no" >&6 | |
3700 | fi | |
3701 | ||
3702 | ||
3703 | enablestring= | |
3704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3705 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3706 | no_cache=0 | |
3707 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3708 | if test "${enable_debug_info+set}" = set; then | |
3709 | enableval="$enable_debug_info" | |
3710 | ||
3711 | if test "$enableval" = yes; then | |
3712 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3713 | else | |
3714 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3715 | fi | |
3716 | ||
3717 | else | |
3718 | ||
3719 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3720 | if test "x$LINE" != x ; then | |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
3726 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3727 | ||
3728 | fi; | |
3729 | ||
3730 | eval "$ac_cv_use_debug_info" | |
3731 | if test "$no_cache" != 1; then | |
3732 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3733 | fi | |
3734 | ||
3735 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3736 | echo "$as_me:$LINENO: result: yes" >&5 | |
3737 | echo "${ECHO_T}yes" >&6 | |
3738 | else | |
3739 | echo "$as_me:$LINENO: result: no" >&5 | |
3740 | echo "${ECHO_T}no" >&6 | |
3741 | fi | |
3742 | ||
3743 | ||
3744 | enablestring= | |
3745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3746 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3747 | no_cache=0 | |
3748 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3749 | if test "${enable_debug_gdb+set}" = set; then | |
3750 | enableval="$enable_debug_gdb" | |
3751 | ||
3752 | if test "$enableval" = yes; then | |
3753 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3754 | else | |
3755 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3756 | fi | |
3757 | ||
3758 | else | |
3759 | ||
3760 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3768 | ||
3769 | fi; | |
3770 | ||
3771 | eval "$ac_cv_use_debug_gdb" | |
3772 | if test "$no_cache" != 1; then | |
3773 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3774 | fi | |
3775 | ||
3776 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3777 | echo "$as_me:$LINENO: result: yes" >&5 | |
3778 | echo "${ECHO_T}yes" >&6 | |
3779 | else | |
3780 | echo "$as_me:$LINENO: result: no" >&5 | |
3781 | echo "${ECHO_T}no" >&6 | |
3782 | fi | |
3783 | ||
3784 | ||
3785 | enablestring= | |
3786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3787 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3788 | no_cache=0 | |
3789 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3790 | if test "${enable_debug_cntxt+set}" = set; then | |
3791 | enableval="$enable_debug_cntxt" | |
3792 | ||
3793 | if test "$enableval" = yes; then | |
3794 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3795 | else | |
3796 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3797 | fi | |
3798 | ||
3799 | else | |
3800 | ||
3801 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3802 | if test "x$LINE" != x ; then | |
3803 | eval "DEFAULT_$LINE" | |
3804 | else | |
3805 | no_cache=1 | |
3806 | fi | |
3807 | ||
3808 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3809 | ||
3810 | fi; | |
3811 | ||
3812 | eval "$ac_cv_use_debug_cntxt" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3818 | echo "$as_me:$LINENO: result: yes" >&5 | |
3819 | echo "${ECHO_T}yes" >&6 | |
3820 | else | |
3821 | echo "$as_me:$LINENO: result: no" >&5 | |
3822 | echo "${ECHO_T}no" >&6 | |
3823 | fi | |
3824 | ||
3825 | ||
3826 | enablestring= | |
3827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3828 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3829 | no_cache=0 | |
3830 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3831 | if test "${enable_mem_tracing+set}" = set; then | |
3832 | enableval="$enable_mem_tracing" | |
3833 | ||
3834 | if test "$enableval" = yes; then | |
3835 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3836 | else | |
3837 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3838 | fi | |
3839 | ||
3840 | else | |
3841 | ||
3842 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3843 | if test "x$LINE" != x ; then | |
3844 | eval "DEFAULT_$LINE" | |
3845 | else | |
3846 | no_cache=1 | |
3847 | fi | |
3848 | ||
3849 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3850 | ||
3851 | fi; | |
3852 | ||
3853 | eval "$ac_cv_use_mem_tracing" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3859 | echo "$as_me:$LINENO: result: yes" >&5 | |
3860 | echo "${ECHO_T}yes" >&6 | |
3861 | else | |
3862 | echo "$as_me:$LINENO: result: no" >&5 | |
3863 | echo "${ECHO_T}no" >&6 | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | enablestring= | |
3868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3869 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3870 | no_cache=0 | |
3871 | # Check whether --enable-profile or --disable-profile was given. | |
3872 | if test "${enable_profile+set}" = set; then | |
3873 | enableval="$enable_profile" | |
3874 | ||
3875 | if test "$enableval" = yes; then | |
3876 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3877 | else | |
3878 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3879 | fi | |
3880 | ||
3881 | else | |
3882 | ||
3883 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3891 | ||
3892 | fi; | |
3893 | ||
3894 | eval "$ac_cv_use_profile" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_PROFILE" = yes; then | |
3900 | echo "$as_me:$LINENO: result: yes" >&5 | |
3901 | echo "${ECHO_T}yes" >&6 | |
3902 | else | |
3903 | echo "$as_me:$LINENO: result: no" >&5 | |
3904 | echo "${ECHO_T}no" >&6 | |
3905 | fi | |
3906 | ||
3907 | ||
3908 | enablestring= | |
3909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3910 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3911 | no_cache=0 | |
3912 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3913 | if test "${enable_no_rtti+set}" = set; then | |
3914 | enableval="$enable_no_rtti" | |
3915 | ||
3916 | if test "$enableval" = yes; then | |
3917 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3918 | else | |
3919 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3920 | fi | |
3921 | ||
3922 | else | |
3923 | ||
3924 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3932 | ||
3933 | fi; | |
3934 | ||
3935 | eval "$ac_cv_use_no_rtti" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_NO_RTTI" = yes; then | |
3941 | echo "$as_me:$LINENO: result: yes" >&5 | |
3942 | echo "${ECHO_T}yes" >&6 | |
3943 | else | |
3944 | echo "$as_me:$LINENO: result: no" >&5 | |
3945 | echo "${ECHO_T}no" >&6 | |
3946 | fi | |
3947 | ||
3948 | ||
3949 | enablestring= | |
3950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3951 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3952 | no_cache=0 | |
3953 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3954 | if test "${enable_no_exceptions+set}" = set; then | |
3955 | enableval="$enable_no_exceptions" | |
3956 | ||
3957 | if test "$enableval" = yes; then | |
3958 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3959 | else | |
3960 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3961 | fi | |
3962 | ||
3963 | else | |
3964 | ||
3965 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3966 | if test "x$LINE" != x ; then | |
3967 | eval "DEFAULT_$LINE" | |
3968 | else | |
3969 | no_cache=1 | |
3970 | fi | |
3971 | ||
3972 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3973 | ||
3974 | fi; | |
3975 | ||
3976 | eval "$ac_cv_use_no_exceptions" | |
3977 | if test "$no_cache" != 1; then | |
3978 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3979 | fi | |
3980 | ||
3981 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3982 | echo "$as_me:$LINENO: result: yes" >&5 | |
3983 | echo "${ECHO_T}yes" >&6 | |
3984 | else | |
3985 | echo "$as_me:$LINENO: result: no" >&5 | |
3986 | echo "${ECHO_T}no" >&6 | |
3987 | fi | |
3988 | ||
3989 | ||
3990 | enablestring= | |
3991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3992 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3993 | no_cache=0 | |
3994 | # Check whether --enable-permissive or --disable-permissive was given. | |
3995 | if test "${enable_permissive+set}" = set; then | |
3996 | enableval="$enable_permissive" | |
3997 | ||
3998 | if test "$enableval" = yes; then | |
3999 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4000 | else | |
4001 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4002 | fi | |
4003 | ||
4004 | else | |
4005 | ||
4006 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4014 | ||
4015 | fi; | |
4016 | ||
4017 | eval "$ac_cv_use_permissive" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4023 | echo "$as_me:$LINENO: result: yes" >&5 | |
4024 | echo "${ECHO_T}yes" >&6 | |
4025 | else | |
4026 | echo "$as_me:$LINENO: result: no" >&5 | |
4027 | echo "${ECHO_T}no" >&6 | |
4028 | fi | |
4029 | ||
4030 | ||
4031 | enablestring= | |
4032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4033 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4034 | no_cache=0 | |
4035 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4036 | if test "${enable_no_deps+set}" = set; then | |
4037 | enableval="$enable_no_deps" | |
4038 | ||
4039 | if test "$enableval" = yes; then | |
4040 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4041 | else | |
4042 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4043 | fi | |
4044 | ||
4045 | else | |
4046 | ||
4047 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4055 | ||
4056 | fi; | |
4057 | ||
4058 | eval "$ac_cv_use_no_deps" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_NO_DEPS" = yes; then | |
4064 | echo "$as_me:$LINENO: result: yes" >&5 | |
4065 | echo "${ECHO_T}yes" >&6 | |
4066 | else | |
4067 | echo "$as_me:$LINENO: result: no" >&5 | |
4068 | echo "${ECHO_T}no" >&6 | |
4069 | fi | |
4070 | ||
4071 | ||
4072 | ||
4073 | enablestring= | |
4074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4075 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4076 | no_cache=0 | |
4077 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4078 | if test "${enable_compat22+set}" = set; then | |
4079 | enableval="$enable_compat22" | |
4080 | ||
4081 | if test "$enableval" = yes; then | |
4082 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4083 | else | |
4084 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4085 | fi | |
4086 | ||
4087 | else | |
4088 | ||
4089 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4090 | if test "x$LINE" != x ; then | |
4091 | eval "DEFAULT_$LINE" | |
4092 | else | |
4093 | no_cache=1 | |
4094 | fi | |
4095 | ||
4096 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4097 | ||
4098 | fi; | |
4099 | ||
4100 | eval "$ac_cv_use_compat22" | |
4101 | if test "$no_cache" != 1; then | |
4102 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4103 | fi | |
4104 | ||
4105 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4106 | echo "$as_me:$LINENO: result: yes" >&5 | |
4107 | echo "${ECHO_T}yes" >&6 | |
4108 | else | |
4109 | echo "$as_me:$LINENO: result: no" >&5 | |
4110 | echo "${ECHO_T}no" >&6 | |
4111 | fi | |
4112 | ||
4113 | ||
4114 | enablestring=disable | |
4115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4116 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4117 | no_cache=0 | |
4118 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4119 | if test "${enable_compat24+set}" = set; then | |
4120 | enableval="$enable_compat24" | |
4121 | ||
4122 | if test "$enableval" = yes; then | |
4123 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4124 | else | |
4125 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4126 | fi | |
4127 | ||
4128 | else | |
4129 | ||
4130 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4131 | if test "x$LINE" != x ; then | |
4132 | eval "DEFAULT_$LINE" | |
4133 | else | |
4134 | no_cache=1 | |
4135 | fi | |
4136 | ||
4137 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4138 | ||
4139 | fi; | |
4140 | ||
4141 | eval "$ac_cv_use_compat24" | |
4142 | if test "$no_cache" != 1; then | |
4143 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4144 | fi | |
4145 | ||
4146 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4147 | echo "$as_me:$LINENO: result: yes" >&5 | |
4148 | echo "${ECHO_T}yes" >&6 | |
4149 | else | |
4150 | echo "$as_me:$LINENO: result: no" >&5 | |
4151 | echo "${ECHO_T}no" >&6 | |
4152 | fi | |
4153 | ||
4154 | ||
ffa0583f RL |
4155 | |
4156 | enablestring= | |
4157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4158 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4159 | no_cache=0 | |
4160 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4161 | if test "${enable_rpath+set}" = set; then |
4162 | enableval="$enable_rpath" | |
ffa0583f RL |
4163 | |
4164 | if test "$enableval" = yes; then | |
4165 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4166 | else | |
4167 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4168 | fi | |
4169 | ||
4170 | else | |
4171 | ||
4172 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4173 | if test "x$LINE" != x ; then | |
4174 | eval "DEFAULT_$LINE" | |
4175 | else | |
4176 | no_cache=1 | |
4177 | fi | |
4178 | ||
4179 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4180 | ||
a848cd7e SC |
4181 | fi; |
4182 | ||
ffa0583f RL |
4183 | eval "$ac_cv_use_rpath" |
4184 | if test "$no_cache" != 1; then | |
4185 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4186 | fi | |
4187 | ||
4188 | if test "$wxUSE_RPATH" = yes; then | |
4189 | echo "$as_me:$LINENO: result: yes" >&5 | |
4190 | echo "${ECHO_T}yes" >&6 | |
4191 | else | |
4192 | echo "$as_me:$LINENO: result: no" >&5 | |
4193 | echo "${ECHO_T}no" >&6 | |
4194 | fi | |
4195 | ||
a848cd7e SC |
4196 | |
4197 | ||
4198 | ||
4199 | ||
4200 | enablestring= | |
4201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4202 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4203 | no_cache=0 | |
4204 | # Check whether --enable-intl or --disable-intl was given. | |
4205 | if test "${enable_intl+set}" = set; then | |
4206 | enableval="$enable_intl" | |
4207 | ||
4208 | if test "$enableval" = yes; then | |
4209 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4210 | else | |
4211 | ac_cv_use_intl='wxUSE_INTL=no' | |
4212 | fi | |
4213 | ||
4214 | else | |
4215 | ||
4216 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4217 | if test "x$LINE" != x ; then | |
4218 | eval "DEFAULT_$LINE" | |
4219 | else | |
4220 | no_cache=1 | |
4221 | fi | |
4222 | ||
4223 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4224 | ||
4225 | fi; | |
4226 | ||
4227 | eval "$ac_cv_use_intl" | |
4228 | if test "$no_cache" != 1; then | |
4229 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4230 | fi | |
4231 | ||
4232 | if test "$wxUSE_INTL" = yes; then | |
4233 | echo "$as_me:$LINENO: result: yes" >&5 | |
4234 | echo "${ECHO_T}yes" >&6 | |
4235 | else | |
4236 | echo "$as_me:$LINENO: result: no" >&5 | |
4237 | echo "${ECHO_T}no" >&6 | |
4238 | fi | |
4239 | ||
4240 | ||
4241 | enablestring= | |
4242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4243 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4244 | no_cache=0 | |
4245 | # Check whether --enable-config or --disable-config was given. | |
4246 | if test "${enable_config+set}" = set; then | |
4247 | enableval="$enable_config" | |
4248 | ||
4249 | if test "$enableval" = yes; then | |
4250 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4251 | else | |
4252 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4253 | fi | |
4254 | ||
4255 | else | |
4256 | ||
4257 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4258 | if test "x$LINE" != x ; then | |
4259 | eval "DEFAULT_$LINE" | |
4260 | else | |
4261 | no_cache=1 | |
4262 | fi | |
4263 | ||
4264 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4265 | ||
4266 | fi; | |
4267 | ||
4268 | eval "$ac_cv_use_config" | |
4269 | if test "$no_cache" != 1; then | |
4270 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4271 | fi | |
4272 | ||
4273 | if test "$wxUSE_CONFIG" = yes; then | |
4274 | echo "$as_me:$LINENO: result: yes" >&5 | |
4275 | echo "${ECHO_T}yes" >&6 | |
4276 | else | |
4277 | echo "$as_me:$LINENO: result: no" >&5 | |
4278 | echo "${ECHO_T}no" >&6 | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | ||
4283 | enablestring= | |
4284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4285 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4286 | no_cache=0 | |
4287 | # Check whether --enable-protocols or --disable-protocols was given. | |
4288 | if test "${enable_protocols+set}" = set; then | |
4289 | enableval="$enable_protocols" | |
4290 | ||
4291 | if test "$enableval" = yes; then | |
4292 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4293 | else | |
4294 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4295 | fi | |
4296 | ||
4297 | else | |
4298 | ||
4299 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4300 | if test "x$LINE" != x ; then | |
4301 | eval "DEFAULT_$LINE" | |
4302 | else | |
4303 | no_cache=1 | |
4304 | fi | |
4305 | ||
4306 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4307 | ||
4308 | fi; | |
4309 | ||
4310 | eval "$ac_cv_use_protocols" | |
4311 | if test "$no_cache" != 1; then | |
4312 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4313 | fi | |
4314 | ||
4315 | if test "$wxUSE_PROTOCOL" = yes; then | |
4316 | echo "$as_me:$LINENO: result: yes" >&5 | |
4317 | echo "${ECHO_T}yes" >&6 | |
4318 | else | |
4319 | echo "$as_me:$LINENO: result: no" >&5 | |
4320 | echo "${ECHO_T}no" >&6 | |
4321 | fi | |
4322 | ||
4323 | ||
4324 | enablestring= | |
4325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4326 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4327 | no_cache=0 | |
4328 | # Check whether --enable-ftp or --disable-ftp was given. | |
4329 | if test "${enable_ftp+set}" = set; then | |
4330 | enableval="$enable_ftp" | |
4331 | ||
4332 | if test "$enableval" = yes; then | |
4333 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4334 | else | |
4335 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4336 | fi | |
4337 | ||
4338 | else | |
4339 | ||
4340 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4341 | if test "x$LINE" != x ; then | |
4342 | eval "DEFAULT_$LINE" | |
4343 | else | |
4344 | no_cache=1 | |
4345 | fi | |
4346 | ||
4347 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4348 | ||
4349 | fi; | |
4350 | ||
4351 | eval "$ac_cv_use_ftp" | |
4352 | if test "$no_cache" != 1; then | |
4353 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4354 | fi | |
4355 | ||
4356 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4357 | echo "$as_me:$LINENO: result: yes" >&5 | |
4358 | echo "${ECHO_T}yes" >&6 | |
4359 | else | |
4360 | echo "$as_me:$LINENO: result: no" >&5 | |
4361 | echo "${ECHO_T}no" >&6 | |
4362 | fi | |
4363 | ||
4364 | ||
4365 | enablestring= | |
4366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4367 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4368 | no_cache=0 | |
4369 | # Check whether --enable-http or --disable-http was given. | |
4370 | if test "${enable_http+set}" = set; then | |
4371 | enableval="$enable_http" | |
4372 | ||
4373 | if test "$enableval" = yes; then | |
4374 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4375 | else | |
4376 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4377 | fi | |
4378 | ||
4379 | else | |
4380 | ||
4381 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4382 | if test "x$LINE" != x ; then | |
4383 | eval "DEFAULT_$LINE" | |
4384 | else | |
4385 | no_cache=1 | |
4386 | fi | |
4387 | ||
4388 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4389 | ||
4390 | fi; | |
4391 | ||
4392 | eval "$ac_cv_use_http" | |
4393 | if test "$no_cache" != 1; then | |
4394 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4395 | fi | |
4396 | ||
4397 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4398 | echo "$as_me:$LINENO: result: yes" >&5 | |
4399 | echo "${ECHO_T}yes" >&6 | |
4400 | else | |
4401 | echo "$as_me:$LINENO: result: no" >&5 | |
4402 | echo "${ECHO_T}no" >&6 | |
4403 | fi | |
4404 | ||
4405 | ||
4406 | enablestring= | |
4407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4408 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4409 | no_cache=0 | |
4410 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4411 | if test "${enable_fileproto+set}" = set; then | |
4412 | enableval="$enable_fileproto" | |
4413 | ||
4414 | if test "$enableval" = yes; then | |
4415 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4416 | else | |
4417 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4418 | fi | |
4419 | ||
4420 | else | |
4421 | ||
4422 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4423 | if test "x$LINE" != x ; then | |
4424 | eval "DEFAULT_$LINE" | |
4425 | else | |
4426 | no_cache=1 | |
4427 | fi | |
4428 | ||
4429 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4430 | ||
4431 | fi; | |
4432 | ||
4433 | eval "$ac_cv_use_fileproto" | |
4434 | if test "$no_cache" != 1; then | |
4435 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4436 | fi | |
4437 | ||
4438 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4439 | echo "$as_me:$LINENO: result: yes" >&5 | |
4440 | echo "${ECHO_T}yes" >&6 | |
4441 | else | |
4442 | echo "$as_me:$LINENO: result: no" >&5 | |
4443 | echo "${ECHO_T}no" >&6 | |
4444 | fi | |
4445 | ||
4446 | ||
4447 | enablestring= | |
4448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4449 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4450 | no_cache=0 | |
4451 | # Check whether --enable-sockets or --disable-sockets was given. | |
4452 | if test "${enable_sockets+set}" = set; then | |
4453 | enableval="$enable_sockets" | |
4454 | ||
4455 | if test "$enableval" = yes; then | |
4456 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4457 | else | |
4458 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4459 | fi | |
4460 | ||
4461 | else | |
4462 | ||
4463 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4464 | if test "x$LINE" != x ; then | |
4465 | eval "DEFAULT_$LINE" | |
4466 | else | |
4467 | no_cache=1 | |
4468 | fi | |
4469 | ||
4470 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4471 | ||
4472 | fi; | |
4473 | ||
4474 | eval "$ac_cv_use_sockets" | |
4475 | if test "$no_cache" != 1; then | |
4476 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4477 | fi | |
4478 | ||
4479 | if test "$wxUSE_SOCKETS" = yes; then | |
4480 | echo "$as_me:$LINENO: result: yes" >&5 | |
4481 | echo "${ECHO_T}yes" >&6 | |
4482 | else | |
4483 | echo "$as_me:$LINENO: result: no" >&5 | |
4484 | echo "${ECHO_T}no" >&6 | |
4485 | fi | |
4486 | ||
4487 | ||
4488 | enablestring= | |
4489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4490 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4491 | no_cache=0 | |
4492 | # Check whether --enable-ole or --disable-ole was given. | |
4493 | if test "${enable_ole+set}" = set; then | |
4494 | enableval="$enable_ole" | |
4495 | ||
4496 | if test "$enableval" = yes; then | |
4497 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4498 | else | |
4499 | ac_cv_use_ole='wxUSE_OLE=no' | |
4500 | fi | |
4501 | ||
4502 | else | |
4503 | ||
4504 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4512 | ||
4513 | fi; | |
4514 | ||
4515 | eval "$ac_cv_use_ole" | |
4516 | if test "$no_cache" != 1; then | |
4517 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4518 | fi | |
4519 | ||
4520 | if test "$wxUSE_OLE" = yes; then | |
4521 | echo "$as_me:$LINENO: result: yes" >&5 | |
4522 | echo "${ECHO_T}yes" >&6 | |
4523 | else | |
4524 | echo "$as_me:$LINENO: result: no" >&5 | |
4525 | echo "${ECHO_T}no" >&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | enablestring= | |
4530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4531 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4532 | no_cache=0 | |
4533 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4534 | if test "${enable_dataobj+set}" = set; then | |
4535 | enableval="$enable_dataobj" | |
4536 | ||
4537 | if test "$enableval" = yes; then | |
4538 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4539 | else | |
4540 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4541 | fi | |
4542 | ||
4543 | else | |
4544 | ||
4545 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4553 | ||
4554 | fi; | |
4555 | ||
4556 | eval "$ac_cv_use_dataobj" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_DATAOBJ" = yes; then | |
4562 | echo "$as_me:$LINENO: result: yes" >&5 | |
4563 | echo "${ECHO_T}yes" >&6 | |
4564 | else | |
4565 | echo "$as_me:$LINENO: result: no" >&5 | |
4566 | echo "${ECHO_T}no" >&6 | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | ||
4571 | enablestring= | |
4572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4573 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4574 | no_cache=0 | |
4575 | # Check whether --enable-ipc or --disable-ipc was given. | |
4576 | if test "${enable_ipc+set}" = set; then | |
4577 | enableval="$enable_ipc" | |
4578 | ||
4579 | if test "$enableval" = yes; then | |
4580 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4581 | else | |
4582 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4583 | fi | |
4584 | ||
4585 | else | |
4586 | ||
4587 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4588 | if test "x$LINE" != x ; then | |
4589 | eval "DEFAULT_$LINE" | |
4590 | else | |
4591 | no_cache=1 | |
4592 | fi | |
4593 | ||
4594 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4595 | ||
4596 | fi; | |
4597 | ||
4598 | eval "$ac_cv_use_ipc" | |
4599 | if test "$no_cache" != 1; then | |
4600 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4601 | fi | |
4602 | ||
4603 | if test "$wxUSE_IPC" = yes; then | |
4604 | echo "$as_me:$LINENO: result: yes" >&5 | |
4605 | echo "${ECHO_T}yes" >&6 | |
4606 | else | |
4607 | echo "$as_me:$LINENO: result: no" >&5 | |
4608 | echo "${ECHO_T}no" >&6 | |
4609 | fi | |
4610 | ||
4611 | ||
4612 | ||
4613 | enablestring= | |
4614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4615 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4616 | no_cache=0 | |
4617 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4618 | if test "${enable_apple_ieee+set}" = set; then | |
4619 | enableval="$enable_apple_ieee" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4623 | else | |
4624 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4637 | ||
4638 | fi; | |
4639 | ||
4640 | eval "$ac_cv_use_apple_ieee" | |
4641 | if test "$no_cache" != 1; then | |
4642 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4643 | fi | |
4644 | ||
4645 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4646 | echo "$as_me:$LINENO: result: yes" >&5 | |
4647 | echo "${ECHO_T}yes" >&6 | |
4648 | else | |
4649 | echo "$as_me:$LINENO: result: no" >&5 | |
4650 | echo "${ECHO_T}no" >&6 | |
4651 | fi | |
4652 | ||
4653 | ||
81f90336 MW |
4654 | enablestring= |
4655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4656 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4657 | no_cache=0 | |
4658 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4659 | if test "${enable_arcstream+set}" = set; then | |
4660 | enableval="$enable_arcstream" | |
4661 | ||
4662 | if test "$enableval" = yes; then | |
9e8e867f | 4663 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4664 | else |
9e8e867f | 4665 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4666 | fi |
4667 | ||
4668 | else | |
4669 | ||
9e8e867f | 4670 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4671 | if test "x$LINE" != x ; then |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
9e8e867f | 4677 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4678 | |
4679 | fi; | |
4680 | ||
4681 | eval "$ac_cv_use_arcstream" | |
4682 | if test "$no_cache" != 1; then | |
4683 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4684 | fi | |
4685 | ||
9e8e867f | 4686 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4687 | echo "$as_me:$LINENO: result: yes" >&5 |
4688 | echo "${ECHO_T}yes" >&6 | |
4689 | else | |
4690 | echo "$as_me:$LINENO: result: no" >&5 | |
4691 | echo "${ECHO_T}no" >&6 | |
4692 | fi | |
4693 | ||
4694 | ||
a848cd7e | 4695 | enablestring= |
36b6448c VZ |
4696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4697 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4698 | no_cache=0 |
36b6448c VZ |
4699 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4700 | if test "${enable_backtrace+set}" = set; then | |
4701 | enableval="$enable_backtrace" | |
a848cd7e SC |
4702 | |
4703 | if test "$enableval" = yes; then | |
36b6448c | 4704 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4705 | else |
36b6448c | 4706 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4707 | fi |
4708 | ||
4709 | else | |
4710 | ||
36b6448c | 4711 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4712 | if test "x$LINE" != x ; then |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
36b6448c | 4718 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4719 | |
4720 | fi; | |
4721 | ||
36b6448c | 4722 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4723 | if test "$no_cache" != 1; then |
36b6448c | 4724 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4725 | fi |
4726 | ||
36b6448c | 4727 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4728 | echo "$as_me:$LINENO: result: yes" >&5 |
4729 | echo "${ECHO_T}yes" >&6 | |
4730 | else | |
4731 | echo "$as_me:$LINENO: result: no" >&5 | |
4732 | echo "${ECHO_T}no" >&6 | |
4733 | fi | |
4734 | ||
4735 | ||
eaff0f0d | 4736 | enablestring= |
36b6448c VZ |
4737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4738 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4739 | no_cache=0 |
36b6448c VZ |
4740 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4741 | if test "${enable_catch_segvs+set}" = set; then | |
4742 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4743 | |
4744 | if test "$enableval" = yes; then | |
36b6448c | 4745 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4746 | else |
36b6448c | 4747 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4748 | fi |
4749 | ||
4750 | else | |
4751 | ||
36b6448c | 4752 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4753 | if test "x$LINE" != x ; then |
4754 | eval "DEFAULT_$LINE" | |
4755 | else | |
4756 | no_cache=1 | |
4757 | fi | |
4758 | ||
36b6448c | 4759 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4760 | |
4761 | fi; | |
4762 | ||
36b6448c | 4763 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4764 | if test "$no_cache" != 1; then |
36b6448c | 4765 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4766 | fi |
4767 | ||
36b6448c | 4768 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4769 | echo "$as_me:$LINENO: result: yes" >&5 |
4770 | echo "${ECHO_T}yes" >&6 | |
4771 | else | |
4772 | echo "$as_me:$LINENO: result: no" >&5 | |
4773 | echo "${ECHO_T}no" >&6 | |
4774 | fi | |
4775 | ||
4776 | ||
a848cd7e SC |
4777 | enablestring= |
4778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4779 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4780 | no_cache=0 | |
4781 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4782 | if test "${enable_cmdline+set}" = set; then | |
4783 | enableval="$enable_cmdline" | |
4784 | ||
4785 | if test "$enableval" = yes; then | |
4786 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4787 | else | |
4788 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4789 | fi | |
4790 | ||
4791 | else | |
4792 | ||
4793 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4794 | if test "x$LINE" != x ; then | |
4795 | eval "DEFAULT_$LINE" | |
4796 | else | |
4797 | no_cache=1 | |
4798 | fi | |
4799 | ||
4800 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4801 | ||
4802 | fi; | |
4803 | ||
4804 | eval "$ac_cv_use_cmdline" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4810 | echo "$as_me:$LINENO: result: yes" >&5 | |
4811 | echo "${ECHO_T}yes" >&6 | |
4812 | else | |
4813 | echo "$as_me:$LINENO: result: no" >&5 | |
4814 | echo "${ECHO_T}no" >&6 | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | enablestring= | |
4819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4820 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4821 | no_cache=0 | |
4822 | # Check whether --enable-datetime or --disable-datetime was given. | |
4823 | if test "${enable_datetime+set}" = set; then | |
4824 | enableval="$enable_datetime" | |
4825 | ||
4826 | if test "$enableval" = yes; then | |
4827 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4828 | else | |
4829 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4830 | fi | |
4831 | ||
4832 | else | |
4833 | ||
4834 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4842 | ||
4843 | fi; | |
4844 | ||
4845 | eval "$ac_cv_use_datetime" | |
4846 | if test "$no_cache" != 1; then | |
4847 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4848 | fi | |
4849 | ||
4850 | if test "$wxUSE_DATETIME" = yes; then | |
4851 | echo "$as_me:$LINENO: result: yes" >&5 | |
4852 | echo "${ECHO_T}yes" >&6 | |
4853 | else | |
4854 | echo "$as_me:$LINENO: result: no" >&5 | |
4855 | echo "${ECHO_T}no" >&6 | |
4856 | fi | |
4857 | ||
4858 | ||
36b6448c VZ |
4859 | enablestring= |
4860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4861 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4862 | no_cache=0 | |
4863 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4864 | if test "${enable_debugreport+set}" = set; then | |
4865 | enableval="$enable_debugreport" | |
4866 | ||
4867 | if test "$enableval" = yes; then | |
4868 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4869 | else | |
4870 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4871 | fi | |
4872 | ||
4873 | else | |
4874 | ||
4875 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4876 | if test "x$LINE" != x ; then | |
4877 | eval "DEFAULT_$LINE" | |
4878 | else | |
4879 | no_cache=1 | |
4880 | fi | |
4881 | ||
4882 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4883 | ||
4884 | fi; | |
4885 | ||
4886 | eval "$ac_cv_use_debugreport" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4892 | echo "$as_me:$LINENO: result: yes" >&5 | |
4893 | echo "${ECHO_T}yes" >&6 | |
4894 | else | |
4895 | echo "$as_me:$LINENO: result: no" >&5 | |
4896 | echo "${ECHO_T}no" >&6 | |
4897 | fi | |
4898 | ||
4899 | ||
a848cd7e SC |
4900 | enablestring= |
4901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4902 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4903 | no_cache=0 | |
4904 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4905 | if test "${enable_dialupman+set}" = set; then | |
4906 | enableval="$enable_dialupman" | |
4907 | ||
4908 | if test "$enableval" = yes; then | |
4909 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4910 | else | |
4911 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4912 | fi | |
4913 | ||
4914 | else | |
4915 | ||
4916 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4924 | ||
4925 | fi; | |
4926 | ||
4927 | eval "$ac_cv_use_dialupman" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4933 | echo "$as_me:$LINENO: result: yes" >&5 | |
4934 | echo "${ECHO_T}yes" >&6 | |
4935 | else | |
4936 | echo "$as_me:$LINENO: result: no" >&5 | |
4937 | echo "${ECHO_T}no" >&6 | |
4938 | fi | |
4939 | ||
4940 | ||
4941 | enablestring= | |
4942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4943 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4944 | no_cache=0 | |
4945 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4946 | if test "${enable_dynlib+set}" = set; then | |
4947 | enableval="$enable_dynlib" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4951 | else | |
4952 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4965 | ||
4966 | fi; | |
4967 | ||
4968 | eval "$ac_cv_use_dynlib" | |
4969 | if test "$no_cache" != 1; then | |
4970 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4971 | fi | |
4972 | ||
4973 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4974 | echo "$as_me:$LINENO: result: yes" >&5 | |
4975 | echo "${ECHO_T}yes" >&6 | |
4976 | else | |
4977 | echo "$as_me:$LINENO: result: no" >&5 | |
4978 | echo "${ECHO_T}no" >&6 | |
4979 | fi | |
4980 | ||
4981 | ||
4982 | enablestring= | |
4983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4984 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4985 | no_cache=0 | |
4986 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4987 | if test "${enable_dynamicloader+set}" = set; then | |
4988 | enableval="$enable_dynamicloader" | |
4989 | ||
4990 | if test "$enableval" = yes; then | |
4991 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4992 | else | |
4993 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4994 | fi | |
4995 | ||
4996 | else | |
4997 | ||
4998 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5006 | ||
5007 | fi; | |
5008 | ||
5009 | eval "$ac_cv_use_dynamicloader" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5015 | echo "$as_me:$LINENO: result: yes" >&5 | |
5016 | echo "${ECHO_T}yes" >&6 | |
5017 | else | |
5018 | echo "$as_me:$LINENO: result: no" >&5 | |
5019 | echo "${ECHO_T}no" >&6 | |
5020 | fi | |
5021 | ||
5022 | ||
5023 | enablestring= | |
5024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5025 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5026 | no_cache=0 | |
5027 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5028 | if test "${enable_exceptions+set}" = set; then | |
5029 | enableval="$enable_exceptions" | |
5030 | ||
5031 | if test "$enableval" = yes; then | |
5032 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5033 | else | |
5034 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5035 | fi | |
5036 | ||
5037 | else | |
5038 | ||
5039 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5040 | if test "x$LINE" != x ; then | |
5041 | eval "DEFAULT_$LINE" | |
5042 | else | |
5043 | no_cache=1 | |
5044 | fi | |
5045 | ||
5046 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5047 | ||
5048 | fi; | |
5049 | ||
5050 | eval "$ac_cv_use_exceptions" | |
5051 | if test "$no_cache" != 1; then | |
5052 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5053 | fi | |
5054 | ||
5055 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5056 | echo "$as_me:$LINENO: result: yes" >&5 | |
5057 | echo "${ECHO_T}yes" >&6 | |
5058 | else | |
5059 | echo "$as_me:$LINENO: result: no" >&5 | |
5060 | echo "${ECHO_T}no" >&6 | |
5061 | fi | |
5062 | ||
5063 | ||
5064 | enablestring= | |
5065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5066 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5067 | no_cache=0 | |
5068 | # Check whether --enable-ffile or --disable-ffile was given. | |
5069 | if test "${enable_ffile+set}" = set; then | |
5070 | enableval="$enable_ffile" | |
5071 | ||
5072 | if test "$enableval" = yes; then | |
5073 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5074 | else | |
5075 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5076 | fi | |
5077 | ||
5078 | else | |
5079 | ||
5080 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5088 | ||
5089 | fi; | |
5090 | ||
5091 | eval "$ac_cv_use_ffile" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_FFILE" = yes; then | |
5097 | echo "$as_me:$LINENO: result: yes" >&5 | |
5098 | echo "${ECHO_T}yes" >&6 | |
5099 | else | |
5100 | echo "$as_me:$LINENO: result: no" >&5 | |
5101 | echo "${ECHO_T}no" >&6 | |
5102 | fi | |
5103 | ||
5104 | ||
5105 | enablestring= | |
5106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5107 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5108 | no_cache=0 | |
5109 | # Check whether --enable-file or --disable-file was given. | |
5110 | if test "${enable_file+set}" = set; then | |
5111 | enableval="$enable_file" | |
5112 | ||
5113 | if test "$enableval" = yes; then | |
5114 | ac_cv_use_file='wxUSE_FILE=yes' | |
5115 | else | |
5116 | ac_cv_use_file='wxUSE_FILE=no' | |
5117 | fi | |
5118 | ||
5119 | else | |
5120 | ||
5121 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5129 | ||
5130 | fi; | |
5131 | ||
5132 | eval "$ac_cv_use_file" | |
5133 | if test "$no_cache" != 1; then | |
5134 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5135 | fi | |
5136 | ||
5137 | if test "$wxUSE_FILE" = yes; then | |
5138 | echo "$as_me:$LINENO: result: yes" >&5 | |
5139 | echo "${ECHO_T}yes" >&6 | |
5140 | else | |
5141 | echo "$as_me:$LINENO: result: no" >&5 | |
5142 | echo "${ECHO_T}no" >&6 | |
5143 | fi | |
5144 | ||
5145 | ||
5146 | enablestring= | |
5147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5148 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5149 | no_cache=0 | |
5150 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5151 | if test "${enable_filesystem+set}" = set; then | |
5152 | enableval="$enable_filesystem" | |
5153 | ||
5154 | if test "$enableval" = yes; then | |
5155 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5156 | else | |
5157 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5158 | fi | |
5159 | ||
5160 | else | |
5161 | ||
5162 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5163 | if test "x$LINE" != x ; then | |
5164 | eval "DEFAULT_$LINE" | |
5165 | else | |
5166 | no_cache=1 | |
5167 | fi | |
5168 | ||
5169 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5170 | ||
5171 | fi; | |
5172 | ||
5173 | eval "$ac_cv_use_filesystem" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5179 | echo "$as_me:$LINENO: result: yes" >&5 | |
5180 | echo "${ECHO_T}yes" >&6 | |
5181 | else | |
5182 | echo "$as_me:$LINENO: result: no" >&5 | |
5183 | echo "${ECHO_T}no" >&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | enablestring= | |
5188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5189 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5190 | no_cache=0 | |
5191 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5192 | if test "${enable_fontmap+set}" = set; then | |
5193 | enableval="$enable_fontmap" | |
5194 | ||
5195 | if test "$enableval" = yes; then | |
5196 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5197 | else | |
5198 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5199 | fi | |
5200 | ||
5201 | else | |
5202 | ||
5203 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5204 | if test "x$LINE" != x ; then | |
5205 | eval "DEFAULT_$LINE" | |
5206 | else | |
5207 | no_cache=1 | |
5208 | fi | |
5209 | ||
5210 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5211 | ||
5212 | fi; | |
5213 | ||
5214 | eval "$ac_cv_use_fontmap" | |
5215 | if test "$no_cache" != 1; then | |
5216 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5217 | fi | |
5218 | ||
5219 | if test "$wxUSE_FONTMAP" = yes; then | |
5220 | echo "$as_me:$LINENO: result: yes" >&5 | |
5221 | echo "${ECHO_T}yes" >&6 | |
5222 | else | |
5223 | echo "$as_me:$LINENO: result: no" >&5 | |
5224 | echo "${ECHO_T}no" >&6 | |
5225 | fi | |
5226 | ||
5227 | ||
5228 | enablestring= | |
5229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5230 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5231 | no_cache=0 | |
5232 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5233 | if test "${enable_fs_inet+set}" = set; then | |
5234 | enableval="$enable_fs_inet" | |
5235 | ||
5236 | if test "$enableval" = yes; then | |
5237 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5238 | else | |
5239 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5240 | fi | |
5241 | ||
5242 | else | |
5243 | ||
5244 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5252 | ||
5253 | fi; | |
5254 | ||
5255 | eval "$ac_cv_use_fs_inet" | |
5256 | if test "$no_cache" != 1; then | |
5257 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5258 | fi | |
5259 | ||
5260 | if test "$wxUSE_FS_INET" = yes; then | |
5261 | echo "$as_me:$LINENO: result: yes" >&5 | |
5262 | echo "${ECHO_T}yes" >&6 | |
5263 | else | |
5264 | echo "$as_me:$LINENO: result: no" >&5 | |
5265 | echo "${ECHO_T}no" >&6 | |
5266 | fi | |
5267 | ||
5268 | ||
5269 | enablestring= | |
5270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5271 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5272 | no_cache=0 | |
5273 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5274 | if test "${enable_fs_zip+set}" = set; then | |
5275 | enableval="$enable_fs_zip" | |
5276 | ||
5277 | if test "$enableval" = yes; then | |
5278 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5279 | else | |
5280 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5281 | fi | |
5282 | ||
5283 | else | |
5284 | ||
5285 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5293 | ||
5294 | fi; | |
5295 | ||
5296 | eval "$ac_cv_use_fs_zip" | |
5297 | if test "$no_cache" != 1; then | |
5298 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5299 | fi | |
5300 | ||
5301 | if test "$wxUSE_FS_ZIP" = yes; then | |
5302 | echo "$as_me:$LINENO: result: yes" >&5 | |
5303 | echo "${ECHO_T}yes" >&6 | |
5304 | else | |
5305 | echo "$as_me:$LINENO: result: no" >&5 | |
5306 | echo "${ECHO_T}no" >&6 | |
5307 | fi | |
5308 | ||
5309 | ||
5310 | enablestring= | |
5311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5312 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5313 | no_cache=0 | |
5314 | # Check whether --enable-geometry or --disable-geometry was given. | |
5315 | if test "${enable_geometry+set}" = set; then | |
5316 | enableval="$enable_geometry" | |
5317 | ||
5318 | if test "$enableval" = yes; then | |
5319 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5320 | else | |
5321 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5322 | fi | |
5323 | ||
5324 | else | |
5325 | ||
5326 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5327 | if test "x$LINE" != x ; then | |
5328 | eval "DEFAULT_$LINE" | |
5329 | else | |
5330 | no_cache=1 | |
5331 | fi | |
5332 | ||
5333 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5334 | ||
5335 | fi; | |
5336 | ||
5337 | eval "$ac_cv_use_geometry" | |
5338 | if test "$no_cache" != 1; then | |
5339 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5340 | fi | |
5341 | ||
5342 | if test "$wxUSE_GEOMETRY" = yes; then | |
5343 | echo "$as_me:$LINENO: result: yes" >&5 | |
5344 | echo "${ECHO_T}yes" >&6 | |
5345 | else | |
5346 | echo "$as_me:$LINENO: result: no" >&5 | |
5347 | echo "${ECHO_T}no" >&6 | |
5348 | fi | |
5349 | ||
5350 | ||
5351 | enablestring= | |
5352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5353 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5354 | no_cache=0 | |
5355 | # Check whether --enable-log or --disable-log was given. | |
5356 | if test "${enable_log+set}" = set; then | |
5357 | enableval="$enable_log" | |
5358 | ||
5359 | if test "$enableval" = yes; then | |
5360 | ac_cv_use_log='wxUSE_LOG=yes' | |
5361 | else | |
5362 | ac_cv_use_log='wxUSE_LOG=no' | |
5363 | fi | |
5364 | ||
5365 | else | |
5366 | ||
5367 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5368 | if test "x$LINE" != x ; then | |
5369 | eval "DEFAULT_$LINE" | |
5370 | else | |
5371 | no_cache=1 | |
5372 | fi | |
5373 | ||
5374 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5375 | ||
5376 | fi; | |
5377 | ||
5378 | eval "$ac_cv_use_log" | |
5379 | if test "$no_cache" != 1; then | |
5380 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5381 | fi | |
5382 | ||
5383 | if test "$wxUSE_LOG" = yes; then | |
5384 | echo "$as_me:$LINENO: result: yes" >&5 | |
5385 | echo "${ECHO_T}yes" >&6 | |
5386 | else | |
5387 | echo "$as_me:$LINENO: result: no" >&5 | |
5388 | echo "${ECHO_T}no" >&6 | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | enablestring= | |
5393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5394 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5395 | no_cache=0 | |
5396 | # Check whether --enable-longlong or --disable-longlong was given. | |
5397 | if test "${enable_longlong+set}" = set; then | |
5398 | enableval="$enable_longlong" | |
5399 | ||
5400 | if test "$enableval" = yes; then | |
5401 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5402 | else | |
5403 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5404 | fi | |
5405 | ||
5406 | else | |
5407 | ||
5408 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5409 | if test "x$LINE" != x ; then | |
5410 | eval "DEFAULT_$LINE" | |
5411 | else | |
5412 | no_cache=1 | |
5413 | fi | |
5414 | ||
5415 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5416 | ||
5417 | fi; | |
5418 | ||
5419 | eval "$ac_cv_use_longlong" | |
5420 | if test "$no_cache" != 1; then | |
5421 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5422 | fi | |
5423 | ||
5424 | if test "$wxUSE_LONGLONG" = yes; then | |
5425 | echo "$as_me:$LINENO: result: yes" >&5 | |
5426 | echo "${ECHO_T}yes" >&6 | |
5427 | else | |
5428 | echo "$as_me:$LINENO: result: no" >&5 | |
5429 | echo "${ECHO_T}no" >&6 | |
5430 | fi | |
5431 | ||
5432 | ||
5433 | enablestring= | |
5434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5435 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5436 | no_cache=0 | |
5437 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5438 | if test "${enable_mimetype+set}" = set; then | |
5439 | enableval="$enable_mimetype" | |
5440 | ||
5441 | if test "$enableval" = yes; then | |
5442 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5443 | else | |
5444 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5445 | fi | |
5446 | ||
5447 | else | |
5448 | ||
5449 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5450 | if test "x$LINE" != x ; then | |
5451 | eval "DEFAULT_$LINE" | |
5452 | else | |
5453 | no_cache=1 | |
5454 | fi | |
5455 | ||
5456 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5457 | ||
5458 | fi; | |
5459 | ||
5460 | eval "$ac_cv_use_mimetype" | |
5461 | if test "$no_cache" != 1; then | |
5462 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5463 | fi | |
5464 | ||
5465 | if test "$wxUSE_MIMETYPE" = yes; then | |
5466 | echo "$as_me:$LINENO: result: yes" >&5 | |
5467 | echo "${ECHO_T}yes" >&6 | |
5468 | else | |
5469 | echo "$as_me:$LINENO: result: no" >&5 | |
5470 | echo "${ECHO_T}no" >&6 | |
5471 | fi | |
5472 | ||
5473 | ||
5474 | enablestring= | |
5475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5476 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5477 | no_cache=0 | |
5478 | # Check whether --enable-mslu or --disable-mslu was given. | |
5479 | if test "${enable_mslu+set}" = set; then | |
5480 | enableval="$enable_mslu" | |
5481 | ||
5482 | if test "$enableval" = yes; then | |
5483 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5484 | else | |
5485 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5486 | fi | |
5487 | ||
5488 | else | |
5489 | ||
5490 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | else | |
5494 | no_cache=1 | |
5495 | fi | |
5496 | ||
5497 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5498 | ||
5499 | fi; | |
5500 | ||
5501 | eval "$ac_cv_use_mslu" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5507 | echo "$as_me:$LINENO: result: yes" >&5 | |
5508 | echo "${ECHO_T}yes" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | ||
5515 | enablestring= | |
5516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5517 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5518 | no_cache=0 | |
5519 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5520 | if test "${enable_snglinst+set}" = set; then | |
5521 | enableval="$enable_snglinst" | |
5522 | ||
5523 | if test "$enableval" = yes; then | |
5524 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5525 | else | |
5526 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5527 | fi | |
5528 | ||
5529 | else | |
5530 | ||
5531 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5539 | ||
5540 | fi; | |
5541 | ||
5542 | eval "$ac_cv_use_snglinst" | |
5543 | if test "$no_cache" != 1; then | |
5544 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5545 | fi | |
5546 | ||
5547 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5548 | echo "$as_me:$LINENO: result: yes" >&5 | |
5549 | echo "${ECHO_T}yes" >&6 | |
5550 | else | |
5551 | echo "$as_me:$LINENO: result: no" >&5 | |
5552 | echo "${ECHO_T}no" >&6 | |
5553 | fi | |
5554 | ||
5555 | ||
5556 | enablestring= | |
07158944 VZ |
5557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5558 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5559 | no_cache=0 |
07158944 VZ |
5560 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5561 | if test "${enable_std_iostreams+set}" = set; then | |
5562 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5563 | |
5564 | if test "$enableval" = yes; then | |
07158944 | 5565 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5566 | else |
07158944 | 5567 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5568 | fi |
5569 | ||
5570 | else | |
5571 | ||
07158944 | 5572 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5573 | if test "x$LINE" != x ; then |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
07158944 | 5579 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5580 | |
5581 | fi; | |
5582 | ||
07158944 | 5583 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5584 | if test "$no_cache" != 1; then |
07158944 | 5585 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5586 | fi |
5587 | ||
07158944 | 5588 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5589 | echo "$as_me:$LINENO: result: yes" >&5 |
5590 | echo "${ECHO_T}yes" >&6 | |
5591 | else | |
5592 | echo "$as_me:$LINENO: result: no" >&5 | |
5593 | echo "${ECHO_T}no" >&6 | |
5594 | fi | |
5595 | ||
5596 | ||
59746b65 MW |
5597 | enablestring= |
5598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5599 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5600 | no_cache=0 | |
5601 | # Check whether --enable-std_string or --disable-std_string was given. | |
5602 | if test "${enable_std_string+set}" = set; then | |
5603 | enableval="$enable_std_string" | |
5604 | ||
5605 | if test "$enableval" = yes; then | |
5606 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5607 | else | |
5608 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5609 | fi | |
5610 | ||
5611 | else | |
5612 | ||
5613 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5614 | if test "x$LINE" != x ; then | |
5615 | eval "DEFAULT_$LINE" | |
5616 | else | |
5617 | no_cache=1 | |
5618 | fi | |
5619 | ||
5620 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5621 | ||
5622 | fi; | |
5623 | ||
5624 | eval "$ac_cv_use_std_string" | |
5625 | if test "$no_cache" != 1; then | |
5626 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5627 | fi | |
5628 | ||
5629 | if test "$wxUSE_STD_STRING" = yes; then | |
5630 | echo "$as_me:$LINENO: result: yes" >&5 | |
5631 | echo "${ECHO_T}yes" >&6 | |
5632 | else | |
5633 | echo "$as_me:$LINENO: result: no" >&5 | |
5634 | echo "${ECHO_T}no" >&6 | |
5635 | fi | |
5636 | ||
5637 | ||
a848cd7e | 5638 | enablestring= |
07158944 VZ |
5639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5640 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5641 | no_cache=0 |
07158944 VZ |
5642 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5643 | if test "${enable_stdpaths+set}" = set; then | |
5644 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5645 | |
5646 | if test "$enableval" = yes; then | |
07158944 | 5647 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5648 | else |
07158944 | 5649 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5650 | fi |
5651 | ||
5652 | else | |
5653 | ||
07158944 | 5654 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5655 | if test "x$LINE" != x ; then |
5656 | eval "DEFAULT_$LINE" | |
5657 | else | |
5658 | no_cache=1 | |
5659 | fi | |
5660 | ||
07158944 | 5661 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5662 | |
5663 | fi; | |
5664 | ||
07158944 | 5665 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5666 | if test "$no_cache" != 1; then |
07158944 | 5667 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5668 | fi |
5669 | ||
07158944 | 5670 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5671 | echo "$as_me:$LINENO: result: yes" >&5 |
5672 | echo "${ECHO_T}yes" >&6 | |
5673 | else | |
5674 | echo "$as_me:$LINENO: result: no" >&5 | |
5675 | echo "${ECHO_T}no" >&6 | |
5676 | fi | |
5677 | ||
5678 | ||
5679 | enablestring= | |
5680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5681 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5682 | no_cache=0 | |
5683 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5684 | if test "${enable_stopwatch+set}" = set; then | |
5685 | enableval="$enable_stopwatch" | |
5686 | ||
5687 | if test "$enableval" = yes; then | |
5688 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5689 | else | |
5690 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5691 | fi | |
5692 | ||
5693 | else | |
5694 | ||
5695 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5703 | ||
5704 | fi; | |
5705 | ||
5706 | eval "$ac_cv_use_stopwatch" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_STOPWATCH" = yes; then | |
5712 | echo "$as_me:$LINENO: result: yes" >&5 | |
5713 | echo "${ECHO_T}yes" >&6 | |
5714 | else | |
5715 | echo "$as_me:$LINENO: result: no" >&5 | |
5716 | echo "${ECHO_T}no" >&6 | |
5717 | fi | |
5718 | ||
5719 | ||
07158944 VZ |
5720 | enablestring= |
5721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5722 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5723 | no_cache=0 | |
5724 | # Check whether --enable-streams or --disable-streams was given. | |
5725 | if test "${enable_streams+set}" = set; then | |
5726 | enableval="$enable_streams" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5730 | else | |
5731 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5744 | ||
5745 | fi; | |
5746 | ||
5747 | eval "$ac_cv_use_streams" | |
5748 | if test "$no_cache" != 1; then | |
5749 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5750 | fi | |
5751 | ||
5752 | if test "$wxUSE_STREAMS" = yes; then | |
5753 | echo "$as_me:$LINENO: result: yes" >&5 | |
5754 | echo "${ECHO_T}yes" >&6 | |
5755 | else | |
5756 | echo "$as_me:$LINENO: result: no" >&5 | |
5757 | echo "${ECHO_T}no" >&6 | |
5758 | fi | |
5759 | ||
5760 | ||
a848cd7e SC |
5761 | enablestring= |
5762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5763 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5764 | no_cache=0 | |
5765 | # Check whether --enable-system_options or --disable-system_options was given. | |
5766 | if test "${enable_system_options+set}" = set; then | |
5767 | enableval="$enable_system_options" | |
5768 | ||
5769 | if test "$enableval" = yes; then | |
5770 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5771 | else | |
5772 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5773 | fi | |
5774 | ||
5775 | else | |
5776 | ||
5777 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5778 | if test "x$LINE" != x ; then | |
5779 | eval "DEFAULT_$LINE" | |
5780 | else | |
5781 | no_cache=1 | |
5782 | fi | |
5783 | ||
5784 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5785 | ||
5786 | fi; | |
5787 | ||
5788 | eval "$ac_cv_use_system_options" | |
5789 | if test "$no_cache" != 1; then | |
5790 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5791 | fi | |
5792 | ||
5793 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5794 | echo "$as_me:$LINENO: result: yes" >&5 | |
5795 | echo "${ECHO_T}yes" >&6 | |
5796 | else | |
5797 | echo "$as_me:$LINENO: result: no" >&5 | |
5798 | echo "${ECHO_T}no" >&6 | |
5799 | fi | |
5800 | ||
5801 | ||
5802 | enablestring= | |
5803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5804 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5805 | no_cache=0 | |
5806 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5807 | if test "${enable_textbuf+set}" = set; then | |
5808 | enableval="$enable_textbuf" | |
5809 | ||
5810 | if test "$enableval" = yes; then | |
5811 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5812 | else | |
5813 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5814 | fi | |
5815 | ||
5816 | else | |
5817 | ||
5818 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5819 | if test "x$LINE" != x ; then | |
5820 | eval "DEFAULT_$LINE" | |
5821 | else | |
5822 | no_cache=1 | |
5823 | fi | |
5824 | ||
5825 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5826 | ||
5827 | fi; | |
5828 | ||
5829 | eval "$ac_cv_use_textbuf" | |
5830 | if test "$no_cache" != 1; then | |
5831 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5832 | fi | |
5833 | ||
5834 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5835 | echo "$as_me:$LINENO: result: yes" >&5 | |
5836 | echo "${ECHO_T}yes" >&6 | |
5837 | else | |
5838 | echo "$as_me:$LINENO: result: no" >&5 | |
5839 | echo "${ECHO_T}no" >&6 | |
5840 | fi | |
5841 | ||
5842 | ||
5843 | enablestring= | |
5844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5845 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5846 | no_cache=0 | |
5847 | # Check whether --enable-textfile or --disable-textfile was given. | |
5848 | if test "${enable_textfile+set}" = set; then | |
5849 | enableval="$enable_textfile" | |
5850 | ||
5851 | if test "$enableval" = yes; then | |
5852 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5853 | else | |
5854 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5855 | fi | |
5856 | ||
5857 | else | |
5858 | ||
5859 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5860 | if test "x$LINE" != x ; then | |
5861 | eval "DEFAULT_$LINE" | |
5862 | else | |
5863 | no_cache=1 | |
5864 | fi | |
5865 | ||
5866 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5867 | ||
5868 | fi; | |
5869 | ||
5870 | eval "$ac_cv_use_textfile" | |
5871 | if test "$no_cache" != 1; then | |
5872 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5873 | fi | |
5874 | ||
5875 | if test "$wxUSE_TEXTFILE" = yes; then | |
5876 | echo "$as_me:$LINENO: result: yes" >&5 | |
5877 | echo "${ECHO_T}yes" >&6 | |
5878 | else | |
5879 | echo "$as_me:$LINENO: result: no" >&5 | |
5880 | echo "${ECHO_T}no" >&6 | |
5881 | fi | |
5882 | ||
5883 | ||
5884 | enablestring= | |
5885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5886 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5887 | no_cache=0 | |
5888 | # Check whether --enable-timer or --disable-timer was given. | |
5889 | if test "${enable_timer+set}" = set; then | |
5890 | enableval="$enable_timer" | |
5891 | ||
5892 | if test "$enableval" = yes; then | |
5893 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5894 | else | |
5895 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5896 | fi | |
5897 | ||
5898 | else | |
5899 | ||
5900 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5901 | if test "x$LINE" != x ; then | |
5902 | eval "DEFAULT_$LINE" | |
5903 | else | |
5904 | no_cache=1 | |
5905 | fi | |
5906 | ||
5907 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5908 | ||
5909 | fi; | |
5910 | ||
5911 | eval "$ac_cv_use_timer" | |
5912 | if test "$no_cache" != 1; then | |
5913 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5914 | fi | |
5915 | ||
5916 | if test "$wxUSE_TIMER" = yes; then | |
5917 | echo "$as_me:$LINENO: result: yes" >&5 | |
5918 | echo "${ECHO_T}yes" >&6 | |
5919 | else | |
5920 | echo "$as_me:$LINENO: result: no" >&5 | |
5921 | echo "${ECHO_T}no" >&6 | |
5922 | fi | |
5923 | ||
5924 | ||
5925 | enablestring= | |
5926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5927 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5928 | no_cache=0 | |
5929 | # Check whether --enable-unicode or --disable-unicode was given. | |
5930 | if test "${enable_unicode+set}" = set; then | |
5931 | enableval="$enable_unicode" | |
5932 | ||
5933 | if test "$enableval" = yes; then | |
5934 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5935 | else | |
5936 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5937 | fi | |
5938 | ||
5939 | else | |
5940 | ||
5941 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5942 | if test "x$LINE" != x ; then | |
5943 | eval "DEFAULT_$LINE" | |
5944 | else | |
5945 | no_cache=1 | |
5946 | fi | |
5947 | ||
5948 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5949 | ||
5950 | fi; | |
5951 | ||
5952 | eval "$ac_cv_use_unicode" | |
5953 | if test "$no_cache" != 1; then | |
5954 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5955 | fi | |
5956 | ||
5957 | if test "$wxUSE_UNICODE" = yes; then | |
5958 | echo "$as_me:$LINENO: result: yes" >&5 | |
5959 | echo "${ECHO_T}yes" >&6 | |
5960 | else | |
5961 | echo "$as_me:$LINENO: result: no" >&5 | |
5962 | echo "${ECHO_T}no" >&6 | |
5963 | fi | |
5964 | ||
5965 | ||
5966 | enablestring= | |
5967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5968 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5969 | no_cache=0 | |
5970 | # Check whether --enable-sound or --disable-sound was given. | |
5971 | if test "${enable_sound+set}" = set; then | |
5972 | enableval="$enable_sound" | |
5973 | ||
5974 | if test "$enableval" = yes; then | |
5975 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5976 | else | |
5977 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5978 | fi | |
5979 | ||
5980 | else | |
5981 | ||
5982 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5990 | ||
5991 | fi; | |
5992 | ||
5993 | eval "$ac_cv_use_sound" | |
5994 | if test "$no_cache" != 1; then | |
5995 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5996 | fi | |
5997 | ||
5998 | if test "$wxUSE_SOUND" = yes; then | |
5999 | echo "$as_me:$LINENO: result: yes" >&5 | |
6000 | echo "${ECHO_T}yes" >&6 | |
6001 | else | |
6002 | echo "$as_me:$LINENO: result: no" >&5 | |
6003 | echo "${ECHO_T}no" >&6 | |
6004 | fi | |
6005 | ||
6006 | ||
3b57de8b RL |
6007 | enablestring= |
6008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6009 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6010 | no_cache=0 | |
6011 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6012 | if test "${enable_mediactrl+set}" = set; then | |
6013 | enableval="$enable_mediactrl" | |
6014 | ||
6015 | if test "$enableval" = yes; then | |
6016 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6017 | else | |
6018 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6019 | fi | |
6020 | ||
6021 | else | |
6022 | ||
6023 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6024 | if test "x$LINE" != x ; then | |
6025 | eval "DEFAULT_$LINE" | |
6026 | else | |
6027 | no_cache=1 | |
6028 | fi | |
6029 | ||
6030 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6031 | ||
6032 | fi; | |
6033 | ||
6034 | eval "$ac_cv_use_mediactrl" | |
6035 | if test "$no_cache" != 1; then | |
6036 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6037 | fi | |
6038 | ||
6039 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6040 | echo "$as_me:$LINENO: result: yes" >&5 | |
6041 | echo "${ECHO_T}yes" >&6 | |
6042 | else | |
6043 | echo "$as_me:$LINENO: result: no" >&5 | |
6044 | echo "${ECHO_T}no" >&6 | |
6045 | fi | |
6046 | ||
6047 | ||
a848cd7e SC |
6048 | enablestring= |
6049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6050 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6051 | no_cache=0 | |
6052 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6053 | if test "${enable_wxprintfv+set}" = set; then | |
6054 | enableval="$enable_wxprintfv" | |
6055 | ||
6056 | if test "$enableval" = yes; then | |
6057 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6058 | else | |
6059 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6060 | fi | |
6061 | ||
6062 | else | |
6063 | ||
6064 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6072 | ||
6073 | fi; | |
6074 | ||
6075 | eval "$ac_cv_use_wxprintfv" | |
6076 | if test "$no_cache" != 1; then | |
6077 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6078 | fi | |
6079 | ||
6080 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6081 | echo "$as_me:$LINENO: result: yes" >&5 | |
6082 | echo "${ECHO_T}yes" >&6 | |
6083 | else | |
6084 | echo "$as_me:$LINENO: result: no" >&5 | |
6085 | echo "${ECHO_T}no" >&6 | |
6086 | fi | |
6087 | ||
6088 | ||
6089 | enablestring= | |
6090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6091 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6092 | no_cache=0 | |
6093 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6094 | if test "${enable_zipstream+set}" = set; then | |
6095 | enableval="$enable_zipstream" | |
6096 | ||
6097 | if test "$enableval" = yes; then | |
6098 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6099 | else | |
6100 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6101 | fi | |
6102 | ||
6103 | else | |
6104 | ||
6105 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6106 | if test "x$LINE" != x ; then | |
6107 | eval "DEFAULT_$LINE" | |
6108 | else | |
6109 | no_cache=1 | |
6110 | fi | |
6111 | ||
6112 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6113 | ||
6114 | fi; | |
6115 | ||
6116 | eval "$ac_cv_use_zipstream" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6122 | echo "$as_me:$LINENO: result: yes" >&5 | |
6123 | echo "${ECHO_T}yes" >&6 | |
6124 | else | |
6125 | echo "$as_me:$LINENO: result: no" >&5 | |
6126 | echo "${ECHO_T}no" >&6 | |
6127 | fi | |
6128 | ||
6129 | ||
a848cd7e SC |
6130 | |
6131 | enablestring= | |
6132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6133 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6134 | no_cache=0 | |
6135 | # Check whether --enable-url or --disable-url was given. | |
6136 | if test "${enable_url+set}" = set; then | |
6137 | enableval="$enable_url" | |
6138 | ||
6139 | if test "$enableval" = yes; then | |
6140 | ac_cv_use_url='wxUSE_URL=yes' | |
6141 | else | |
6142 | ac_cv_use_url='wxUSE_URL=no' | |
6143 | fi | |
6144 | ||
6145 | else | |
6146 | ||
6147 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6148 | if test "x$LINE" != x ; then | |
6149 | eval "DEFAULT_$LINE" | |
6150 | else | |
6151 | no_cache=1 | |
6152 | fi | |
6153 | ||
6154 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6155 | ||
6156 | fi; | |
6157 | ||
6158 | eval "$ac_cv_use_url" | |
6159 | if test "$no_cache" != 1; then | |
6160 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6161 | fi | |
6162 | ||
6163 | if test "$wxUSE_URL" = yes; then | |
6164 | echo "$as_me:$LINENO: result: yes" >&5 | |
6165 | echo "${ECHO_T}yes" >&6 | |
6166 | else | |
6167 | echo "$as_me:$LINENO: result: no" >&5 | |
6168 | echo "${ECHO_T}no" >&6 | |
6169 | fi | |
6170 | ||
6171 | ||
6172 | enablestring= | |
6173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6174 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6175 | no_cache=0 | |
6176 | # Check whether --enable-protocol or --disable-protocol was given. | |
6177 | if test "${enable_protocol+set}" = set; then | |
6178 | enableval="$enable_protocol" | |
6179 | ||
6180 | if test "$enableval" = yes; then | |
6181 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6182 | else | |
6183 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6184 | fi | |
6185 | ||
6186 | else | |
6187 | ||
6188 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6189 | if test "x$LINE" != x ; then | |
6190 | eval "DEFAULT_$LINE" | |
6191 | else | |
6192 | no_cache=1 | |
6193 | fi | |
6194 | ||
6195 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6196 | ||
6197 | fi; | |
6198 | ||
6199 | eval "$ac_cv_use_protocol" | |
6200 | if test "$no_cache" != 1; then | |
6201 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6202 | fi | |
6203 | ||
6204 | if test "$wxUSE_PROTOCOL" = yes; then | |
6205 | echo "$as_me:$LINENO: result: yes" >&5 | |
6206 | echo "${ECHO_T}yes" >&6 | |
6207 | else | |
6208 | echo "$as_me:$LINENO: result: no" >&5 | |
6209 | echo "${ECHO_T}no" >&6 | |
6210 | fi | |
6211 | ||
6212 | ||
6213 | enablestring= | |
6214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6215 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6216 | no_cache=0 | |
6217 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6218 | if test "${enable_protocol_http+set}" = set; then | |
6219 | enableval="$enable_protocol_http" | |
6220 | ||
6221 | if test "$enableval" = yes; then | |
6222 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6223 | else | |
6224 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6225 | fi | |
6226 | ||
6227 | else | |
6228 | ||
6229 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6230 | if test "x$LINE" != x ; then | |
6231 | eval "DEFAULT_$LINE" | |
6232 | else | |
6233 | no_cache=1 | |
6234 | fi | |
6235 | ||
6236 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6237 | ||
6238 | fi; | |
6239 | ||
6240 | eval "$ac_cv_use_protocol_http" | |
6241 | if test "$no_cache" != 1; then | |
6242 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6243 | fi | |
6244 | ||
6245 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6246 | echo "$as_me:$LINENO: result: yes" >&5 | |
6247 | echo "${ECHO_T}yes" >&6 | |
6248 | else | |
6249 | echo "$as_me:$LINENO: result: no" >&5 | |
6250 | echo "${ECHO_T}no" >&6 | |
6251 | fi | |
6252 | ||
6253 | ||
6254 | enablestring= | |
6255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6256 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6257 | no_cache=0 | |
6258 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6259 | if test "${enable_protocol_ftp+set}" = set; then | |
6260 | enableval="$enable_protocol_ftp" | |
6261 | ||
6262 | if test "$enableval" = yes; then | |
6263 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6264 | else | |
6265 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6266 | fi | |
6267 | ||
6268 | else | |
6269 | ||
6270 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6271 | if test "x$LINE" != x ; then | |
6272 | eval "DEFAULT_$LINE" | |
6273 | else | |
6274 | no_cache=1 | |
6275 | fi | |
6276 | ||
6277 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6278 | ||
6279 | fi; | |
6280 | ||
6281 | eval "$ac_cv_use_protocol_ftp" | |
6282 | if test "$no_cache" != 1; then | |
6283 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6284 | fi | |
6285 | ||
6286 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6287 | echo "$as_me:$LINENO: result: yes" >&5 | |
6288 | echo "${ECHO_T}yes" >&6 | |
6289 | else | |
6290 | echo "$as_me:$LINENO: result: no" >&5 | |
6291 | echo "${ECHO_T}no" >&6 | |
6292 | fi | |
6293 | ||
6294 | ||
6295 | enablestring= | |
6296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6297 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6298 | no_cache=0 | |
6299 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6300 | if test "${enable_protocol_file+set}" = set; then | |
6301 | enableval="$enable_protocol_file" | |
6302 | ||
6303 | if test "$enableval" = yes; then | |
6304 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6305 | else | |
6306 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6307 | fi | |
6308 | ||
6309 | else | |
6310 | ||
6311 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6319 | ||
6320 | fi; | |
6321 | ||
6322 | eval "$ac_cv_use_protocol_file" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6328 | echo "$as_me:$LINENO: result: yes" >&5 | |
6329 | echo "${ECHO_T}yes" >&6 | |
6330 | else | |
6331 | echo "$as_me:$LINENO: result: no" >&5 | |
6332 | echo "${ECHO_T}no" >&6 | |
6333 | fi | |
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | enablestring= | |
6340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6341 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6342 | no_cache=0 | |
6343 | # Check whether --enable-threads or --disable-threads was given. | |
6344 | if test "${enable_threads+set}" = set; then | |
6345 | enableval="$enable_threads" | |
6346 | ||
6347 | if test "$enableval" = yes; then | |
6348 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6349 | else | |
6350 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6351 | fi | |
6352 | ||
6353 | else | |
6354 | ||
6355 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6356 | if test "x$LINE" != x ; then | |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
6362 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6363 | ||
6364 | fi; | |
6365 | ||
6366 | eval "$ac_cv_use_threads" | |
6367 | if test "$no_cache" != 1; then | |
6368 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6369 | fi | |
6370 | ||
6371 | if test "$wxUSE_THREADS" = yes; then | |
6372 | echo "$as_me:$LINENO: result: yes" >&5 | |
6373 | echo "${ECHO_T}yes" >&6 | |
6374 | else | |
6375 | echo "$as_me:$LINENO: result: no" >&5 | |
6376 | echo "${ECHO_T}no" >&6 | |
6377 | fi | |
6378 | ||
6379 | ||
6380 | if test "$wxUSE_GUI" = "yes"; then | |
6381 | ||
6382 | ||
6383 | ||
6384 | enablestring= | |
6385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6386 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6387 | no_cache=0 | |
6388 | # Check whether --enable-docview or --disable-docview was given. | |
6389 | if test "${enable_docview+set}" = set; then | |
6390 | enableval="$enable_docview" | |
6391 | ||
6392 | if test "$enableval" = yes; then | |
6393 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6394 | else | |
6395 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6396 | fi | |
6397 | ||
6398 | else | |
6399 | ||
6400 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6401 | if test "x$LINE" != x ; then | |
6402 | eval "DEFAULT_$LINE" | |
6403 | else | |
6404 | no_cache=1 | |
6405 | fi | |
6406 | ||
6407 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6408 | ||
6409 | fi; | |
6410 | ||
6411 | eval "$ac_cv_use_docview" | |
6412 | if test "$no_cache" != 1; then | |
6413 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6414 | fi | |
6415 | ||
6416 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6417 | echo "$as_me:$LINENO: result: yes" >&5 | |
6418 | echo "${ECHO_T}yes" >&6 | |
6419 | else | |
6420 | echo "$as_me:$LINENO: result: no" >&5 | |
6421 | echo "${ECHO_T}no" >&6 | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | enablestring= | |
6426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6427 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6428 | no_cache=0 | |
6429 | # Check whether --enable-help or --disable-help was given. | |
6430 | if test "${enable_help+set}" = set; then | |
6431 | enableval="$enable_help" | |
6432 | ||
6433 | if test "$enableval" = yes; then | |
6434 | ac_cv_use_help='wxUSE_HELP=yes' | |
6435 | else | |
6436 | ac_cv_use_help='wxUSE_HELP=no' | |
6437 | fi | |
6438 | ||
6439 | else | |
6440 | ||
6441 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6449 | ||
6450 | fi; | |
6451 | ||
6452 | eval "$ac_cv_use_help" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_HELP" = yes; then | |
6458 | echo "$as_me:$LINENO: result: yes" >&5 | |
6459 | echo "${ECHO_T}yes" >&6 | |
6460 | else | |
6461 | echo "$as_me:$LINENO: result: no" >&5 | |
6462 | echo "${ECHO_T}no" >&6 | |
6463 | fi | |
6464 | ||
6465 | ||
6466 | enablestring= | |
6467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6468 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6469 | no_cache=0 | |
6470 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6471 | if test "${enable_mshtmlhelp+set}" = set; then | |
6472 | enableval="$enable_mshtmlhelp" | |
6473 | ||
6474 | if test "$enableval" = yes; then | |
6475 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6476 | else | |
6477 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6478 | fi | |
6479 | ||
6480 | else | |
6481 | ||
6482 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6483 | if test "x$LINE" != x ; then | |
6484 | eval "DEFAULT_$LINE" | |
6485 | else | |
6486 | no_cache=1 | |
6487 | fi | |
6488 | ||
6489 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6490 | ||
6491 | fi; | |
6492 | ||
6493 | eval "$ac_cv_use_mshtmlhelp" | |
6494 | if test "$no_cache" != 1; then | |
6495 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6496 | fi | |
6497 | ||
6498 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6499 | echo "$as_me:$LINENO: result: yes" >&5 | |
6500 | echo "${ECHO_T}yes" >&6 | |
6501 | else | |
6502 | echo "$as_me:$LINENO: result: no" >&5 | |
6503 | echo "${ECHO_T}no" >&6 | |
6504 | fi | |
6505 | ||
6506 | ||
6507 | enablestring= | |
6508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6509 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6510 | no_cache=0 | |
6511 | # Check whether --enable-html or --disable-html was given. | |
6512 | if test "${enable_html+set}" = set; then | |
6513 | enableval="$enable_html" | |
6514 | ||
6515 | if test "$enableval" = yes; then | |
6516 | ac_cv_use_html='wxUSE_HTML=yes' | |
6517 | else | |
6518 | ac_cv_use_html='wxUSE_HTML=no' | |
6519 | fi | |
6520 | ||
6521 | else | |
6522 | ||
6523 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6524 | if test "x$LINE" != x ; then | |
6525 | eval "DEFAULT_$LINE" | |
6526 | else | |
6527 | no_cache=1 | |
6528 | fi | |
6529 | ||
6530 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6531 | ||
6532 | fi; | |
6533 | ||
6534 | eval "$ac_cv_use_html" | |
6535 | if test "$no_cache" != 1; then | |
6536 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6537 | fi | |
6538 | ||
6539 | if test "$wxUSE_HTML" = yes; then | |
6540 | echo "$as_me:$LINENO: result: yes" >&5 | |
6541 | echo "${ECHO_T}yes" >&6 | |
6542 | else | |
6543 | echo "$as_me:$LINENO: result: no" >&5 | |
6544 | echo "${ECHO_T}no" >&6 | |
6545 | fi | |
6546 | ||
6547 | ||
6548 | enablestring= | |
6549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6550 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6551 | no_cache=0 | |
6552 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6553 | if test "${enable_htmlhelp+set}" = set; then | |
6554 | enableval="$enable_htmlhelp" | |
6555 | ||
6556 | if test "$enableval" = yes; then | |
6557 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6558 | else | |
6559 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6560 | fi | |
6561 | ||
6562 | else | |
6563 | ||
6564 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6572 | ||
6573 | fi; | |
6574 | ||
6575 | eval "$ac_cv_use_htmlhelp" | |
6576 | if test "$no_cache" != 1; then | |
6577 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6578 | fi | |
6579 | ||
6580 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6581 | echo "$as_me:$LINENO: result: yes" >&5 | |
6582 | echo "${ECHO_T}yes" >&6 | |
6583 | else | |
6584 | echo "$as_me:$LINENO: result: no" >&5 | |
6585 | echo "${ECHO_T}no" >&6 | |
6586 | fi | |
6587 | ||
6588 | ||
9a8f0513 VS |
6589 | enablestring= |
6590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6591 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6592 | no_cache=0 | |
6593 | # Check whether --enable-xrc or --disable-xrc was given. | |
6594 | if test "${enable_xrc+set}" = set; then | |
6595 | enableval="$enable_xrc" | |
6596 | ||
6597 | if test "$enableval" = yes; then | |
6598 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6599 | else | |
6600 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6601 | fi | |
6602 | ||
6603 | else | |
6604 | ||
6605 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6606 | if test "x$LINE" != x ; then | |
6607 | eval "DEFAULT_$LINE" | |
6608 | else | |
6609 | no_cache=1 | |
6610 | fi | |
6611 | ||
6612 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6613 | ||
6614 | fi; | |
6615 | ||
6616 | eval "$ac_cv_use_xrc" | |
6617 | if test "$no_cache" != 1; then | |
6618 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6619 | fi | |
6620 | ||
6621 | if test "$wxUSE_XRC" = yes; then | |
6622 | echo "$as_me:$LINENO: result: yes" >&5 | |
6623 | echo "${ECHO_T}yes" >&6 | |
6624 | else | |
6625 | echo "$as_me:$LINENO: result: no" >&5 | |
6626 | echo "${ECHO_T}no" >&6 | |
6627 | fi | |
6628 | ||
6629 | ||
a848cd7e SC |
6630 | enablestring= |
6631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6632 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6633 | no_cache=0 | |
6634 | # Check whether --enable-constraints or --disable-constraints was given. | |
6635 | if test "${enable_constraints+set}" = set; then | |
6636 | enableval="$enable_constraints" | |
6637 | ||
6638 | if test "$enableval" = yes; then | |
6639 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6640 | else | |
6641 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6642 | fi | |
6643 | ||
6644 | else | |
6645 | ||
6646 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6647 | if test "x$LINE" != x ; then | |
6648 | eval "DEFAULT_$LINE" | |
6649 | else | |
6650 | no_cache=1 | |
6651 | fi | |
6652 | ||
6653 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6654 | ||
6655 | fi; | |
6656 | ||
6657 | eval "$ac_cv_use_constraints" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6663 | echo "$as_me:$LINENO: result: yes" >&5 | |
6664 | echo "${ECHO_T}yes" >&6 | |
6665 | else | |
6666 | echo "$as_me:$LINENO: result: no" >&5 | |
6667 | echo "${ECHO_T}no" >&6 | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | enablestring= | |
6672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6673 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6674 | no_cache=0 | |
6675 | # Check whether --enable-printarch or --disable-printarch was given. | |
6676 | if test "${enable_printarch+set}" = set; then | |
6677 | enableval="$enable_printarch" | |
6678 | ||
6679 | if test "$enableval" = yes; then | |
6680 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6681 | else | |
6682 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6683 | fi | |
6684 | ||
6685 | else | |
6686 | ||
6687 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6688 | if test "x$LINE" != x ; then | |
6689 | eval "DEFAULT_$LINE" | |
6690 | else | |
6691 | no_cache=1 | |
6692 | fi | |
6693 | ||
6694 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6695 | ||
6696 | fi; | |
6697 | ||
6698 | eval "$ac_cv_use_printarch" | |
6699 | if test "$no_cache" != 1; then | |
6700 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6701 | fi | |
6702 | ||
6703 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6704 | echo "$as_me:$LINENO: result: yes" >&5 | |
6705 | echo "${ECHO_T}yes" >&6 | |
6706 | else | |
6707 | echo "$as_me:$LINENO: result: no" >&5 | |
6708 | echo "${ECHO_T}no" >&6 | |
6709 | fi | |
6710 | ||
6711 | ||
6712 | enablestring= | |
6713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6714 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6715 | no_cache=0 | |
6716 | # Check whether --enable-mdi or --disable-mdi was given. | |
6717 | if test "${enable_mdi+set}" = set; then | |
6718 | enableval="$enable_mdi" | |
6719 | ||
6720 | if test "$enableval" = yes; then | |
8a7b1113 | 6721 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6722 | else |
8a7b1113 | 6723 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6724 | fi |
6725 | ||
6726 | else | |
6727 | ||
8a7b1113 | 6728 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6729 | if test "x$LINE" != x ; then |
6730 | eval "DEFAULT_$LINE" | |
6731 | else | |
6732 | no_cache=1 | |
6733 | fi | |
6734 | ||
8a7b1113 | 6735 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6736 | |
6737 | fi; | |
6738 | ||
6739 | eval "$ac_cv_use_mdi" | |
6740 | if test "$no_cache" != 1; then | |
6741 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6742 | fi | |
6743 | ||
8a7b1113 VZ |
6744 | if test "$wxUSE_MDI" = yes; then |
6745 | echo "$as_me:$LINENO: result: yes" >&5 | |
6746 | echo "${ECHO_T}yes" >&6 | |
6747 | else | |
6748 | echo "$as_me:$LINENO: result: no" >&5 | |
6749 | echo "${ECHO_T}no" >&6 | |
6750 | fi | |
6751 | ||
6752 | ||
6753 | enablestring= | |
6754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6755 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6756 | no_cache=0 | |
6757 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6758 | if test "${enable_mdidoc+set}" = set; then | |
6759 | enableval="$enable_mdidoc" | |
6760 | ||
6761 | if test "$enableval" = yes; then | |
6762 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6763 | else | |
6764 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6765 | fi | |
6766 | ||
6767 | else | |
6768 | ||
6769 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6770 | if test "x$LINE" != x ; then | |
6771 | eval "DEFAULT_$LINE" | |
6772 | else | |
6773 | no_cache=1 | |
6774 | fi | |
6775 | ||
6776 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6777 | ||
6778 | fi; | |
6779 | ||
6780 | eval "$ac_cv_use_mdidoc" | |
6781 | if test "$no_cache" != 1; then | |
6782 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6783 | fi | |
6784 | ||
a848cd7e SC |
6785 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6786 | echo "$as_me:$LINENO: result: yes" >&5 | |
6787 | echo "${ECHO_T}yes" >&6 | |
6788 | else | |
6789 | echo "$as_me:$LINENO: result: no" >&5 | |
6790 | echo "${ECHO_T}no" >&6 | |
6791 | fi | |
6792 | ||
6793 | ||
6794 | enablestring= | |
6795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6796 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6797 | no_cache=0 | |
6798 | # Check whether --enable-loggui or --disable-loggui was given. | |
6799 | if test "${enable_loggui+set}" = set; then | |
6800 | enableval="$enable_loggui" | |
6801 | ||
6802 | if test "$enableval" = yes; then | |
6803 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6804 | else | |
6805 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6806 | fi | |
6807 | ||
6808 | else | |
6809 | ||
6810 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6811 | if test "x$LINE" != x ; then | |
6812 | eval "DEFAULT_$LINE" | |
6813 | else | |
6814 | no_cache=1 | |
6815 | fi | |
6816 | ||
6817 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6818 | ||
6819 | fi; | |
6820 | ||
6821 | eval "$ac_cv_use_loggui" | |
6822 | if test "$no_cache" != 1; then | |
6823 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6824 | fi | |
6825 | ||
6826 | if test "$wxUSE_LOGGUI" = yes; then | |
6827 | echo "$as_me:$LINENO: result: yes" >&5 | |
6828 | echo "${ECHO_T}yes" >&6 | |
6829 | else | |
6830 | echo "$as_me:$LINENO: result: no" >&5 | |
6831 | echo "${ECHO_T}no" >&6 | |
6832 | fi | |
6833 | ||
6834 | ||
6835 | enablestring= | |
6836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6837 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6838 | no_cache=0 | |
6839 | # Check whether --enable-logwin or --disable-logwin was given. | |
6840 | if test "${enable_logwin+set}" = set; then | |
6841 | enableval="$enable_logwin" | |
6842 | ||
6843 | if test "$enableval" = yes; then | |
6844 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6845 | else | |
6846 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6847 | fi | |
6848 | ||
6849 | else | |
6850 | ||
6851 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6852 | if test "x$LINE" != x ; then | |
6853 | eval "DEFAULT_$LINE" | |
6854 | else | |
6855 | no_cache=1 | |
6856 | fi | |
6857 | ||
6858 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6859 | ||
6860 | fi; | |
6861 | ||
6862 | eval "$ac_cv_use_logwin" | |
6863 | if test "$no_cache" != 1; then | |
6864 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6865 | fi | |
6866 | ||
6867 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6868 | echo "$as_me:$LINENO: result: yes" >&5 | |
6869 | echo "${ECHO_T}yes" >&6 | |
6870 | else | |
6871 | echo "$as_me:$LINENO: result: no" >&5 | |
6872 | echo "${ECHO_T}no" >&6 | |
6873 | fi | |
6874 | ||
6875 | ||
6876 | enablestring= | |
6877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6878 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6879 | no_cache=0 | |
6880 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6881 | if test "${enable_logdialog+set}" = set; then | |
6882 | enableval="$enable_logdialog" | |
6883 | ||
6884 | if test "$enableval" = yes; then | |
6885 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6886 | else | |
6887 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6888 | fi | |
6889 | ||
6890 | else | |
6891 | ||
6892 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6893 | if test "x$LINE" != x ; then | |
6894 | eval "DEFAULT_$LINE" | |
6895 | else | |
6896 | no_cache=1 | |
6897 | fi | |
6898 | ||
6899 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6900 | ||
6901 | fi; | |
6902 | ||
6903 | eval "$ac_cv_use_logdialog" | |
6904 | if test "$no_cache" != 1; then | |
6905 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6906 | fi | |
6907 | ||
6908 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6909 | echo "$as_me:$LINENO: result: yes" >&5 | |
6910 | echo "${ECHO_T}yes" >&6 | |
6911 | else | |
6912 | echo "$as_me:$LINENO: result: no" >&5 | |
6913 | echo "${ECHO_T}no" >&6 | |
6914 | fi | |
6915 | ||
6916 | ||
646b6ec1 VS |
6917 | enablestring= |
6918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6919 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6920 | no_cache=0 | |
6921 | # Check whether --enable-webkit or --disable-webkit was given. | |
6922 | if test "${enable_webkit+set}" = set; then | |
6923 | enableval="$enable_webkit" | |
6924 | ||
6925 | if test "$enableval" = yes; then | |
6926 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6927 | else | |
6928 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6929 | fi | |
6930 | ||
6931 | else | |
6932 | ||
6933 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6934 | if test "x$LINE" != x ; then | |
6935 | eval "DEFAULT_$LINE" | |
6936 | else | |
6937 | no_cache=1 | |
6938 | fi | |
6939 | ||
6940 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6941 | ||
6942 | fi; | |
6943 | ||
6944 | eval "$ac_cv_use_webkit" | |
6945 | if test "$no_cache" != 1; then | |
6946 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6947 | fi | |
6948 | ||
6949 | if test "$wxUSE_WEBKIT" = yes; then | |
6950 | echo "$as_me:$LINENO: result: yes" >&5 | |
6951 | echo "${ECHO_T}yes" >&6 | |
6952 | else | |
6953 | echo "$as_me:$LINENO: result: no" >&5 | |
6954 | echo "${ECHO_T}no" >&6 | |
6955 | fi | |
6956 | ||
6957 | ||
a848cd7e SC |
6958 | |
6959 | enablestring= | |
6960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6961 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6962 | no_cache=0 | |
6963 | # Check whether --enable-postscript or --disable-postscript was given. | |
6964 | if test "${enable_postscript+set}" = set; then | |
6965 | enableval="$enable_postscript" | |
6966 | ||
6967 | if test "$enableval" = yes; then | |
6968 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6969 | else | |
6970 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6971 | fi | |
6972 | ||
6973 | else | |
6974 | ||
6975 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6976 | if test "x$LINE" != x ; then | |
6977 | eval "DEFAULT_$LINE" | |
6978 | else | |
6979 | no_cache=1 | |
6980 | fi | |
6981 | ||
6982 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6983 | ||
6984 | fi; | |
6985 | ||
6986 | eval "$ac_cv_use_postscript" | |
6987 | if test "$no_cache" != 1; then | |
6988 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6989 | fi | |
6990 | ||
6991 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6992 | echo "$as_me:$LINENO: result: yes" >&5 | |
6993 | echo "${ECHO_T}yes" >&6 | |
6994 | else | |
6995 | echo "$as_me:$LINENO: result: no" >&5 | |
6996 | echo "${ECHO_T}no" >&6 | |
6997 | fi | |
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | enablestring= | |
7004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7005 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7006 | no_cache=0 | |
7007 | # Check whether --enable-prologio or --disable-prologio was given. | |
7008 | if test "${enable_prologio+set}" = set; then | |
7009 | enableval="$enable_prologio" | |
7010 | ||
7011 | if test "$enableval" = yes; then | |
7012 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7013 | else | |
7014 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7015 | fi | |
7016 | ||
7017 | else | |
7018 | ||
7019 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7020 | if test "x$LINE" != x ; then | |
7021 | eval "DEFAULT_$LINE" | |
7022 | else | |
7023 | no_cache=1 | |
7024 | fi | |
7025 | ||
7026 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7027 | ||
7028 | fi; | |
7029 | ||
7030 | eval "$ac_cv_use_prologio" | |
7031 | if test "$no_cache" != 1; then | |
7032 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7033 | fi | |
7034 | ||
7035 | if test "$wxUSE_PROLOGIO" = yes; then | |
7036 | echo "$as_me:$LINENO: result: yes" >&5 | |
7037 | echo "${ECHO_T}yes" >&6 | |
7038 | else | |
7039 | echo "$as_me:$LINENO: result: no" >&5 | |
7040 | echo "${ECHO_T}no" >&6 | |
7041 | fi | |
7042 | ||
7043 | ||
7044 | enablestring= | |
7045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7046 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7047 | no_cache=0 | |
7048 | # Check whether --enable-resources or --disable-resources was given. | |
7049 | if test "${enable_resources+set}" = set; then | |
7050 | enableval="$enable_resources" | |
7051 | ||
7052 | if test "$enableval" = yes; then | |
7053 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7054 | else | |
7055 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7056 | fi | |
7057 | ||
7058 | else | |
7059 | ||
7060 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7061 | if test "x$LINE" != x ; then | |
7062 | eval "DEFAULT_$LINE" | |
7063 | else | |
7064 | no_cache=1 | |
7065 | fi | |
7066 | ||
7067 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7068 | ||
7069 | fi; | |
7070 | ||
7071 | eval "$ac_cv_use_resources" | |
7072 | if test "$no_cache" != 1; then | |
7073 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7074 | fi | |
7075 | ||
7076 | if test "$wxUSE_RESOURCES" = yes; then | |
7077 | echo "$as_me:$LINENO: result: yes" >&5 | |
7078 | echo "${ECHO_T}yes" >&6 | |
7079 | else | |
7080 | echo "$as_me:$LINENO: result: no" >&5 | |
7081 | echo "${ECHO_T}no" >&6 | |
7082 | fi | |
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | enablestring= | |
7088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7089 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7090 | no_cache=0 | |
7091 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7092 | if test "${enable_clipboard+set}" = set; then | |
7093 | enableval="$enable_clipboard" | |
7094 | ||
7095 | if test "$enableval" = yes; then | |
7096 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7097 | else | |
7098 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7099 | fi | |
7100 | ||
7101 | else | |
7102 | ||
7103 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7104 | if test "x$LINE" != x ; then | |
7105 | eval "DEFAULT_$LINE" | |
7106 | else | |
7107 | no_cache=1 | |
7108 | fi | |
7109 | ||
7110 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7111 | ||
7112 | fi; | |
7113 | ||
7114 | eval "$ac_cv_use_clipboard" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7120 | echo "$as_me:$LINENO: result: yes" >&5 | |
7121 | echo "${ECHO_T}yes" >&6 | |
7122 | else | |
7123 | echo "$as_me:$LINENO: result: no" >&5 | |
7124 | echo "${ECHO_T}no" >&6 | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | enablestring= | |
7129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7130 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7131 | no_cache=0 | |
7132 | # Check whether --enable-dnd or --disable-dnd was given. | |
7133 | if test "${enable_dnd+set}" = set; then | |
7134 | enableval="$enable_dnd" | |
7135 | ||
7136 | if test "$enableval" = yes; then | |
7137 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7138 | else | |
7139 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7140 | fi | |
7141 | ||
7142 | else | |
7143 | ||
7144 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7152 | ||
7153 | fi; | |
7154 | ||
7155 | eval "$ac_cv_use_dnd" | |
7156 | if test "$no_cache" != 1; then | |
7157 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7158 | fi | |
7159 | ||
7160 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7161 | echo "$as_me:$LINENO: result: yes" >&5 | |
7162 | echo "${ECHO_T}yes" >&6 | |
7163 | else | |
7164 | echo "$as_me:$LINENO: result: no" >&5 | |
7165 | echo "${ECHO_T}no" >&6 | |
7166 | fi | |
7167 | ||
7168 | ||
7169 | enablestring= | |
7170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7171 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7172 | no_cache=0 | |
7173 | # Check whether --enable-metafile or --disable-metafile was given. | |
7174 | if test "${enable_metafile+set}" = set; then | |
7175 | enableval="$enable_metafile" | |
7176 | ||
7177 | if test "$enableval" = yes; then | |
7178 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7179 | else | |
7180 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7181 | fi | |
7182 | ||
7183 | else | |
7184 | ||
7185 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7186 | if test "x$LINE" != x ; then | |
7187 | eval "DEFAULT_$LINE" | |
7188 | else | |
7189 | no_cache=1 | |
7190 | fi | |
7191 | ||
7192 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7193 | ||
7194 | fi; | |
7195 | ||
7196 | eval "$ac_cv_use_metafile" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_METAFILE" = yes; then | |
7202 | echo "$as_me:$LINENO: result: yes" >&5 | |
7203 | echo "${ECHO_T}yes" >&6 | |
7204 | else | |
7205 | echo "$as_me:$LINENO: result: no" >&5 | |
7206 | echo "${ECHO_T}no" >&6 | |
7207 | fi | |
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | enablestring= | |
7214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-controls or --disable-controls was given. | |
7218 | if test "${enable_controls+set}" = set; then | |
7219 | enableval="$enable_controls" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7223 | else | |
7224 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_controls" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_CONTROLS" = yes; then | |
7246 | echo "$as_me:$LINENO: result: yes" >&5 | |
7247 | echo "${ECHO_T}yes" >&6 | |
7248 | else | |
7249 | echo "$as_me:$LINENO: result: no" >&5 | |
7250 | echo "${ECHO_T}no" >&6 | |
7251 | fi | |
7252 | ||
7253 | ||
7254 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7255 | DEFAULT_wxUSE_ACCEL=yes | |
7256 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7257 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7258 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7259 | DEFAULT_wxUSE_CARET=yes |
7260 | DEFAULT_wxUSE_COMBOBOX=yes | |
7261 | DEFAULT_wxUSE_CHECKBOX=yes | |
7262 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7263 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7264 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7265 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7266 | DEFAULT_wxUSE_GAUGE=yes |
7267 | DEFAULT_wxUSE_GRID=yes | |
7268 | DEFAULT_wxUSE_IMAGLIST=yes | |
7269 | DEFAULT_wxUSE_LISTBOOK=yes | |
7270 | DEFAULT_wxUSE_LISTBOX=yes | |
7271 | DEFAULT_wxUSE_LISTCTRL=yes | |
7272 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7273 | DEFAULT_wxUSE_RADIOBOX=yes | |
7274 | DEFAULT_wxUSE_RADIOBTN=yes | |
7275 | DEFAULT_wxUSE_SASH=yes | |
7276 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7277 | DEFAULT_wxUSE_SLIDER=yes | |
7278 | DEFAULT_wxUSE_SPINBTN=yes | |
7279 | DEFAULT_wxUSE_SPINCTRL=yes | |
7280 | DEFAULT_wxUSE_SPLITTER=yes | |
7281 | DEFAULT_wxUSE_STATBMP=yes | |
7282 | DEFAULT_wxUSE_STATBOX=yes | |
7283 | DEFAULT_wxUSE_STATLINE=yes | |
7284 | DEFAULT_wxUSE_STATUSBAR=yes | |
7285 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7286 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7287 | DEFAULT_wxUSE_TOOLBAR=yes | |
7288 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7289 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7290 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7291 | DEFAULT_wxUSE_TREECTRL=yes | |
7292 | DEFAULT_wxUSE_POPUPWIN=yes | |
7293 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7294 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7295 | DEFAULT_wxUSE_ACCEL=no | |
7296 | DEFAULT_wxUSE_BMPBUTTON=no | |
7297 | DEFAULT_wxUSE_BUTTON=no | |
7298 | DEFAULT_wxUSE_CALCTRL=no | |
7299 | DEFAULT_wxUSE_CARET=no | |
7300 | DEFAULT_wxUSE_COMBOBOX=no | |
7301 | DEFAULT_wxUSE_CHECKBOX=no | |
7302 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7303 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7304 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7305 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7306 | DEFAULT_wxUSE_GAUGE=no |
7307 | DEFAULT_wxUSE_GRID=no | |
7308 | DEFAULT_wxUSE_IMAGLIST=no | |
7309 | DEFAULT_wxUSE_LISTBOOK=no | |
7310 | DEFAULT_wxUSE_LISTBOX=no | |
7311 | DEFAULT_wxUSE_LISTCTRL=no | |
7312 | DEFAULT_wxUSE_NOTEBOOK=no | |
7313 | DEFAULT_wxUSE_RADIOBOX=no | |
7314 | DEFAULT_wxUSE_RADIOBTN=no | |
7315 | DEFAULT_wxUSE_SASH=no | |
7316 | DEFAULT_wxUSE_SCROLLBAR=no | |
7317 | DEFAULT_wxUSE_SLIDER=no | |
7318 | DEFAULT_wxUSE_SPINBTN=no | |
7319 | DEFAULT_wxUSE_SPINCTRL=no | |
7320 | DEFAULT_wxUSE_SPLITTER=no | |
7321 | DEFAULT_wxUSE_STATBMP=no | |
7322 | DEFAULT_wxUSE_STATBOX=no | |
7323 | DEFAULT_wxUSE_STATLINE=no | |
7324 | DEFAULT_wxUSE_STATUSBAR=no | |
7325 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7326 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7327 | DEFAULT_wxUSE_TOOLBAR=no | |
7328 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7329 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7330 | DEFAULT_wxUSE_TOOLTIPS=no | |
7331 | DEFAULT_wxUSE_TREECTRL=no | |
7332 | DEFAULT_wxUSE_POPUPWIN=no | |
7333 | DEFAULT_wxUSE_TIPWINDOW=no | |
7334 | fi | |
7335 | ||
a848cd7e SC |
7336 | |
7337 | enablestring= | |
7338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7339 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7340 | no_cache=0 | |
7341 | # Check whether --enable-accel or --disable-accel was given. | |
7342 | if test "${enable_accel+set}" = set; then | |
7343 | enableval="$enable_accel" | |
7344 | ||
7345 | if test "$enableval" = yes; then | |
7346 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7347 | else | |
7348 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7349 | fi | |
7350 | ||
7351 | else | |
7352 | ||
7353 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7361 | ||
7362 | fi; | |
7363 | ||
7364 | eval "$ac_cv_use_accel" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_ACCEL" = yes; then | |
7370 | echo "$as_me:$LINENO: result: yes" >&5 | |
7371 | echo "${ECHO_T}yes" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | enablestring= | |
7379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7380 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7381 | no_cache=0 | |
7382 | # Check whether --enable-button or --disable-button was given. | |
7383 | if test "${enable_button+set}" = set; then | |
7384 | enableval="$enable_button" | |
7385 | ||
7386 | if test "$enableval" = yes; then | |
7387 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7388 | else | |
7389 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7390 | fi | |
7391 | ||
7392 | else | |
7393 | ||
7394 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7395 | if test "x$LINE" != x ; then | |
7396 | eval "DEFAULT_$LINE" | |
7397 | else | |
7398 | no_cache=1 | |
7399 | fi | |
7400 | ||
7401 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7402 | ||
7403 | fi; | |
7404 | ||
7405 | eval "$ac_cv_use_button" | |
7406 | if test "$no_cache" != 1; then | |
7407 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7408 | fi | |
7409 | ||
7410 | if test "$wxUSE_BUTTON" = yes; then | |
7411 | echo "$as_me:$LINENO: result: yes" >&5 | |
7412 | echo "${ECHO_T}yes" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | enablestring= | |
7420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7421 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7422 | no_cache=0 | |
7423 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7424 | if test "${enable_bmpbutton+set}" = set; then | |
7425 | enableval="$enable_bmpbutton" | |
7426 | ||
7427 | if test "$enableval" = yes; then | |
7428 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7429 | else | |
7430 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7431 | fi | |
7432 | ||
7433 | else | |
7434 | ||
7435 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7443 | ||
7444 | fi; | |
7445 | ||
7446 | eval "$ac_cv_use_bmpbutton" | |
7447 | if test "$no_cache" != 1; then | |
7448 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7449 | fi | |
7450 | ||
7451 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7452 | echo "$as_me:$LINENO: result: yes" >&5 | |
7453 | echo "${ECHO_T}yes" >&6 | |
7454 | else | |
7455 | echo "$as_me:$LINENO: result: no" >&5 | |
7456 | echo "${ECHO_T}no" >&6 | |
7457 | fi | |
7458 | ||
7459 | ||
7460 | enablestring= | |
7461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7462 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7463 | no_cache=0 | |
7464 | # Check whether --enable-calendar or --disable-calendar was given. | |
7465 | if test "${enable_calendar+set}" = set; then | |
7466 | enableval="$enable_calendar" | |
7467 | ||
7468 | if test "$enableval" = yes; then | |
7469 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7470 | else | |
7471 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7472 | fi | |
7473 | ||
7474 | else | |
7475 | ||
7476 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7477 | if test "x$LINE" != x ; then | |
7478 | eval "DEFAULT_$LINE" | |
7479 | else | |
7480 | no_cache=1 | |
7481 | fi | |
7482 | ||
7483 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7484 | ||
7485 | fi; | |
7486 | ||
7487 | eval "$ac_cv_use_calendar" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_CALCTRL" = yes; then | |
7493 | echo "$as_me:$LINENO: result: yes" >&5 | |
7494 | echo "${ECHO_T}yes" >&6 | |
7495 | else | |
7496 | echo "$as_me:$LINENO: result: no" >&5 | |
7497 | echo "${ECHO_T}no" >&6 | |
7498 | fi | |
7499 | ||
7500 | ||
7501 | enablestring= | |
7502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7503 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7504 | no_cache=0 | |
7505 | # Check whether --enable-caret or --disable-caret was given. | |
7506 | if test "${enable_caret+set}" = set; then | |
7507 | enableval="$enable_caret" | |
7508 | ||
7509 | if test "$enableval" = yes; then | |
7510 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7511 | else | |
7512 | ac_cv_use_caret='wxUSE_CARET=no' | |
7513 | fi | |
7514 | ||
7515 | else | |
7516 | ||
7517 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7518 | if test "x$LINE" != x ; then | |
7519 | eval "DEFAULT_$LINE" | |
7520 | else | |
7521 | no_cache=1 | |
7522 | fi | |
7523 | ||
7524 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7525 | ||
7526 | fi; | |
7527 | ||
7528 | eval "$ac_cv_use_caret" | |
7529 | if test "$no_cache" != 1; then | |
7530 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7531 | fi | |
7532 | ||
7533 | if test "$wxUSE_CARET" = yes; then | |
7534 | echo "$as_me:$LINENO: result: yes" >&5 | |
7535 | echo "${ECHO_T}yes" >&6 | |
7536 | else | |
7537 | echo "$as_me:$LINENO: result: no" >&5 | |
7538 | echo "${ECHO_T}no" >&6 | |
7539 | fi | |
7540 | ||
7541 | ||
7542 | enablestring= | |
7543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7544 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7545 | no_cache=0 | |
7546 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7547 | if test "${enable_checkbox+set}" = set; then | |
7548 | enableval="$enable_checkbox" | |
7549 | ||
7550 | if test "$enableval" = yes; then | |
7551 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7552 | else | |
7553 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7554 | fi | |
7555 | ||
7556 | else | |
7557 | ||
7558 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7559 | if test "x$LINE" != x ; then | |
7560 | eval "DEFAULT_$LINE" | |
7561 | else | |
7562 | no_cache=1 | |
7563 | fi | |
7564 | ||
7565 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7566 | ||
7567 | fi; | |
7568 | ||
7569 | eval "$ac_cv_use_checkbox" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_CHECKBOX" = yes; then | |
7575 | echo "$as_me:$LINENO: result: yes" >&5 | |
7576 | echo "${ECHO_T}yes" >&6 | |
7577 | else | |
7578 | echo "$as_me:$LINENO: result: no" >&5 | |
7579 | echo "${ECHO_T}no" >&6 | |
7580 | fi | |
7581 | ||
7582 | ||
7583 | enablestring= | |
7584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7585 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7586 | no_cache=0 | |
7587 | # Check whether --enable-checklst or --disable-checklst was given. | |
7588 | if test "${enable_checklst+set}" = set; then | |
7589 | enableval="$enable_checklst" | |
7590 | ||
7591 | if test "$enableval" = yes; then | |
7592 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7593 | else | |
7594 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7595 | fi | |
7596 | ||
7597 | else | |
7598 | ||
7599 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7607 | ||
7608 | fi; | |
7609 | ||
7610 | eval "$ac_cv_use_checklst" | |
7611 | if test "$no_cache" != 1; then | |
7612 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7613 | fi | |
7614 | ||
7615 | if test "$wxUSE_CHECKLST" = yes; then | |
7616 | echo "$as_me:$LINENO: result: yes" >&5 | |
7617 | echo "${ECHO_T}yes" >&6 | |
7618 | else | |
7619 | echo "$as_me:$LINENO: result: no" >&5 | |
7620 | echo "${ECHO_T}no" >&6 | |
7621 | fi | |
7622 | ||
7623 | ||
7624 | enablestring= | |
7625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7626 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7627 | no_cache=0 | |
7628 | # Check whether --enable-choice or --disable-choice was given. | |
7629 | if test "${enable_choice+set}" = set; then | |
7630 | enableval="$enable_choice" | |
7631 | ||
7632 | if test "$enableval" = yes; then | |
7633 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7634 | else | |
7635 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7636 | fi | |
7637 | ||
7638 | else | |
7639 | ||
7640 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7641 | if test "x$LINE" != x ; then | |
7642 | eval "DEFAULT_$LINE" | |
7643 | else | |
7644 | no_cache=1 | |
7645 | fi | |
7646 | ||
7647 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7648 | ||
7649 | fi; | |
7650 | ||
7651 | eval "$ac_cv_use_choice" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_CHOICE" = yes; then | |
7657 | echo "$as_me:$LINENO: result: yes" >&5 | |
7658 | echo "${ECHO_T}yes" >&6 | |
7659 | else | |
7660 | echo "$as_me:$LINENO: result: no" >&5 | |
7661 | echo "${ECHO_T}no" >&6 | |
7662 | fi | |
7663 | ||
7664 | ||
92bbdbcd WS |
7665 | enablestring= |
7666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7667 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7668 | no_cache=0 | |
7669 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7670 | if test "${enable_choicebook+set}" = set; then | |
7671 | enableval="$enable_choicebook" | |
7672 | ||
7673 | if test "$enableval" = yes; then | |
7674 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7675 | else | |
7676 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7677 | fi | |
7678 | ||
7679 | else | |
7680 | ||
7681 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7682 | if test "x$LINE" != x ; then | |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
7688 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7689 | ||
7690 | fi; | |
7691 | ||
7692 | eval "$ac_cv_use_choicebook" | |
7693 | if test "$no_cache" != 1; then | |
7694 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7695 | fi | |
7696 | ||
7697 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7698 | echo "$as_me:$LINENO: result: yes" >&5 | |
7699 | echo "${ECHO_T}yes" >&6 | |
7700 | else | |
7701 | echo "$as_me:$LINENO: result: no" >&5 | |
7702 | echo "${ECHO_T}no" >&6 | |
7703 | fi | |
7704 | ||
7705 | ||
a848cd7e SC |
7706 | enablestring= |
7707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7708 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7709 | no_cache=0 | |
7710 | # Check whether --enable-combobox or --disable-combobox was given. | |
7711 | if test "${enable_combobox+set}" = set; then | |
7712 | enableval="$enable_combobox" | |
7713 | ||
7714 | if test "$enableval" = yes; then | |
7715 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7716 | else | |
7717 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7718 | fi | |
7719 | ||
7720 | else | |
7721 | ||
7722 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7730 | ||
7731 | fi; | |
7732 | ||
7733 | eval "$ac_cv_use_combobox" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_COMBOBOX" = yes; then | |
7739 | echo "$as_me:$LINENO: result: yes" >&5 | |
7740 | echo "${ECHO_T}yes" >&6 | |
7741 | else | |
7742 | echo "$as_me:$LINENO: result: no" >&5 | |
7743 | echo "${ECHO_T}no" >&6 | |
7744 | fi | |
7745 | ||
7746 | ||
da98e9be VZ |
7747 | enablestring= |
7748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7749 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7750 | no_cache=0 | |
7751 | # Check whether --enable-datepick or --disable-datepick was given. | |
7752 | if test "${enable_datepick+set}" = set; then | |
7753 | enableval="$enable_datepick" | |
7754 | ||
7755 | if test "$enableval" = yes; then | |
7756 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7757 | else | |
7758 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7759 | fi | |
7760 | ||
7761 | else | |
7762 | ||
7763 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7771 | ||
7772 | fi; | |
7773 | ||
7774 | eval "$ac_cv_use_datepick" | |
7775 | if test "$no_cache" != 1; then | |
7776 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7777 | fi | |
7778 | ||
7779 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7780 | echo "$as_me:$LINENO: result: yes" >&5 | |
7781 | echo "${ECHO_T}yes" >&6 | |
7782 | else | |
7783 | echo "$as_me:$LINENO: result: no" >&5 | |
7784 | echo "${ECHO_T}no" >&6 | |
7785 | fi | |
7786 | ||
7787 | ||
a848cd7e SC |
7788 | enablestring= |
7789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7790 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7791 | no_cache=0 | |
7792 | # Check whether --enable-display or --disable-display was given. | |
7793 | if test "${enable_display+set}" = set; then | |
7794 | enableval="$enable_display" | |
7795 | ||
7796 | if test "$enableval" = yes; then | |
7797 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7798 | else | |
7799 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7800 | fi | |
7801 | ||
7802 | else | |
7803 | ||
7804 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7805 | if test "x$LINE" != x ; then | |
7806 | eval "DEFAULT_$LINE" | |
7807 | else | |
7808 | no_cache=1 | |
7809 | fi | |
7810 | ||
7811 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7812 | ||
7813 | fi; | |
7814 | ||
7815 | eval "$ac_cv_use_display" | |
7816 | if test "$no_cache" != 1; then | |
7817 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7818 | fi | |
7819 | ||
7820 | if test "$wxUSE_DISPLAY" = yes; then | |
7821 | echo "$as_me:$LINENO: result: yes" >&5 | |
7822 | echo "${ECHO_T}yes" >&6 | |
7823 | else | |
7824 | echo "$as_me:$LINENO: result: no" >&5 | |
7825 | echo "${ECHO_T}no" >&6 | |
7826 | fi | |
7827 | ||
7828 | ||
7829 | enablestring= | |
7830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7831 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7832 | no_cache=0 | |
7833 | # Check whether --enable-gauge or --disable-gauge was given. | |
7834 | if test "${enable_gauge+set}" = set; then | |
7835 | enableval="$enable_gauge" | |
7836 | ||
7837 | if test "$enableval" = yes; then | |
7838 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7839 | else | |
7840 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7841 | fi | |
7842 | ||
7843 | else | |
7844 | ||
7845 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7846 | if test "x$LINE" != x ; then | |
7847 | eval "DEFAULT_$LINE" | |
7848 | else | |
7849 | no_cache=1 | |
7850 | fi | |
7851 | ||
7852 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7853 | ||
7854 | fi; | |
7855 | ||
7856 | eval "$ac_cv_use_gauge" | |
7857 | if test "$no_cache" != 1; then | |
7858 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7859 | fi | |
7860 | ||
7861 | if test "$wxUSE_GAUGE" = yes; then | |
7862 | echo "$as_me:$LINENO: result: yes" >&5 | |
7863 | echo "${ECHO_T}yes" >&6 | |
7864 | else | |
7865 | echo "$as_me:$LINENO: result: no" >&5 | |
7866 | echo "${ECHO_T}no" >&6 | |
7867 | fi | |
7868 | ||
7869 | ||
7870 | enablestring= | |
7871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7872 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7873 | no_cache=0 | |
7874 | # Check whether --enable-grid or --disable-grid was given. | |
7875 | if test "${enable_grid+set}" = set; then | |
7876 | enableval="$enable_grid" | |
7877 | ||
7878 | if test "$enableval" = yes; then | |
7879 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7880 | else | |
7881 | ac_cv_use_grid='wxUSE_GRID=no' | |
7882 | fi | |
7883 | ||
7884 | else | |
7885 | ||
7886 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7887 | if test "x$LINE" != x ; then | |
7888 | eval "DEFAULT_$LINE" | |
7889 | else | |
7890 | no_cache=1 | |
7891 | fi | |
7892 | ||
7893 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7894 | ||
7895 | fi; | |
7896 | ||
7897 | eval "$ac_cv_use_grid" | |
7898 | if test "$no_cache" != 1; then | |
7899 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7900 | fi | |
7901 | ||
7902 | if test "$wxUSE_GRID" = yes; then | |
7903 | echo "$as_me:$LINENO: result: yes" >&5 | |
7904 | echo "${ECHO_T}yes" >&6 | |
7905 | else | |
7906 | echo "$as_me:$LINENO: result: no" >&5 | |
7907 | echo "${ECHO_T}no" >&6 | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | enablestring= | |
7912 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7913 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7914 | no_cache=0 | |
7915 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7916 | if test "${enable_imaglist+set}" = set; then | |
7917 | enableval="$enable_imaglist" | |
7918 | ||
7919 | if test "$enableval" = yes; then | |
7920 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7921 | else | |
7922 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7923 | fi | |
7924 | ||
7925 | else | |
7926 | ||
7927 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7928 | if test "x$LINE" != x ; then | |
7929 | eval "DEFAULT_$LINE" | |
7930 | else | |
7931 | no_cache=1 | |
7932 | fi | |
7933 | ||
7934 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7935 | ||
7936 | fi; | |
7937 | ||
7938 | eval "$ac_cv_use_imaglist" | |
7939 | if test "$no_cache" != 1; then | |
7940 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7941 | fi | |
7942 | ||
7943 | if test "$wxUSE_IMAGLIST" = yes; then | |
7944 | echo "$as_me:$LINENO: result: yes" >&5 | |
7945 | echo "${ECHO_T}yes" >&6 | |
7946 | else | |
7947 | echo "$as_me:$LINENO: result: no" >&5 | |
7948 | echo "${ECHO_T}no" >&6 | |
7949 | fi | |
7950 | ||
7951 | ||
7952 | enablestring= | |
7953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7954 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7955 | no_cache=0 | |
7956 | # Check whether --enable-listbook or --disable-listbook was given. | |
7957 | if test "${enable_listbook+set}" = set; then | |
7958 | enableval="$enable_listbook" | |
7959 | ||
7960 | if test "$enableval" = yes; then | |
7961 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7962 | else | |
7963 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7964 | fi | |
7965 | ||
7966 | else | |
7967 | ||
7968 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7969 | if test "x$LINE" != x ; then | |
7970 | eval "DEFAULT_$LINE" | |
7971 | else | |
7972 | no_cache=1 | |
7973 | fi | |
7974 | ||
7975 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7976 | ||
7977 | fi; | |
7978 | ||
7979 | eval "$ac_cv_use_listbook" | |
7980 | if test "$no_cache" != 1; then | |
7981 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7982 | fi | |
7983 | ||
7984 | if test "$wxUSE_LISTBOOK" = yes; then | |
7985 | echo "$as_me:$LINENO: result: yes" >&5 | |
7986 | echo "${ECHO_T}yes" >&6 | |
7987 | else | |
7988 | echo "$as_me:$LINENO: result: no" >&5 | |
7989 | echo "${ECHO_T}no" >&6 | |
7990 | fi | |
7991 | ||
7992 | ||
7993 | enablestring= | |
7994 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7995 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7996 | no_cache=0 | |
7997 | # Check whether --enable-listbox or --disable-listbox was given. | |
7998 | if test "${enable_listbox+set}" = set; then | |
7999 | enableval="$enable_listbox" | |
8000 | ||
8001 | if test "$enableval" = yes; then | |
8002 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8003 | else | |
8004 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8005 | fi | |
8006 | ||
8007 | else | |
8008 | ||
8009 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8010 | if test "x$LINE" != x ; then | |
8011 | eval "DEFAULT_$LINE" | |
8012 | else | |
8013 | no_cache=1 | |
8014 | fi | |
8015 | ||
8016 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8017 | ||
8018 | fi; | |
8019 | ||
8020 | eval "$ac_cv_use_listbox" | |
8021 | if test "$no_cache" != 1; then | |
8022 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8023 | fi | |
8024 | ||
8025 | if test "$wxUSE_LISTBOX" = yes; then | |
8026 | echo "$as_me:$LINENO: result: yes" >&5 | |
8027 | echo "${ECHO_T}yes" >&6 | |
8028 | else | |
8029 | echo "$as_me:$LINENO: result: no" >&5 | |
8030 | echo "${ECHO_T}no" >&6 | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | enablestring= | |
8035 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8036 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8037 | no_cache=0 | |
8038 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8039 | if test "${enable_listctrl+set}" = set; then | |
8040 | enableval="$enable_listctrl" | |
8041 | ||
8042 | if test "$enableval" = yes; then | |
8043 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8044 | else | |
8045 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8046 | fi | |
8047 | ||
8048 | else | |
8049 | ||
8050 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8051 | if test "x$LINE" != x ; then | |
8052 | eval "DEFAULT_$LINE" | |
8053 | else | |
8054 | no_cache=1 | |
8055 | fi | |
8056 | ||
8057 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8058 | ||
8059 | fi; | |
8060 | ||
8061 | eval "$ac_cv_use_listctrl" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_LISTCTRL" = yes; then | |
8067 | echo "$as_me:$LINENO: result: yes" >&5 | |
8068 | echo "${ECHO_T}yes" >&6 | |
8069 | else | |
8070 | echo "$as_me:$LINENO: result: no" >&5 | |
8071 | echo "${ECHO_T}no" >&6 | |
8072 | fi | |
8073 | ||
8074 | ||
8075 | enablestring= | |
8076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8077 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8078 | no_cache=0 | |
8079 | # Check whether --enable-notebook or --disable-notebook was given. | |
8080 | if test "${enable_notebook+set}" = set; then | |
8081 | enableval="$enable_notebook" | |
8082 | ||
8083 | if test "$enableval" = yes; then | |
8084 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8085 | else | |
8086 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8087 | fi | |
8088 | ||
8089 | else | |
8090 | ||
8091 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8099 | ||
8100 | fi; | |
8101 | ||
8102 | eval "$ac_cv_use_notebook" | |
8103 | if test "$no_cache" != 1; then | |
8104 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8105 | fi | |
8106 | ||
8107 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8108 | echo "$as_me:$LINENO: result: yes" >&5 | |
8109 | echo "${ECHO_T}yes" >&6 | |
8110 | else | |
8111 | echo "$as_me:$LINENO: result: no" >&5 | |
8112 | echo "${ECHO_T}no" >&6 | |
8113 | fi | |
8114 | ||
8115 | ||
8116 | enablestring= | |
8117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8118 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8119 | no_cache=0 | |
8120 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8121 | if test "${enable_radiobox+set}" = set; then | |
8122 | enableval="$enable_radiobox" | |
8123 | ||
8124 | if test "$enableval" = yes; then | |
8125 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8126 | else | |
8127 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8128 | fi | |
8129 | ||
8130 | else | |
8131 | ||
8132 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8133 | if test "x$LINE" != x ; then | |
8134 | eval "DEFAULT_$LINE" | |
8135 | else | |
8136 | no_cache=1 | |
8137 | fi | |
8138 | ||
8139 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8140 | ||
8141 | fi; | |
8142 | ||
8143 | eval "$ac_cv_use_radiobox" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_RADIOBOX" = yes; then | |
8149 | echo "$as_me:$LINENO: result: yes" >&5 | |
8150 | echo "${ECHO_T}yes" >&6 | |
8151 | else | |
8152 | echo "$as_me:$LINENO: result: no" >&5 | |
8153 | echo "${ECHO_T}no" >&6 | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | enablestring= | |
8158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8159 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8160 | no_cache=0 | |
8161 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8162 | if test "${enable_radiobtn+set}" = set; then | |
8163 | enableval="$enable_radiobtn" | |
8164 | ||
8165 | if test "$enableval" = yes; then | |
8166 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8167 | else | |
8168 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8169 | fi | |
8170 | ||
8171 | else | |
8172 | ||
8173 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8174 | if test "x$LINE" != x ; then | |
8175 | eval "DEFAULT_$LINE" | |
8176 | else | |
8177 | no_cache=1 | |
8178 | fi | |
8179 | ||
8180 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8181 | ||
8182 | fi; | |
8183 | ||
8184 | eval "$ac_cv_use_radiobtn" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_RADIOBTN" = yes; then | |
8190 | echo "$as_me:$LINENO: result: yes" >&5 | |
8191 | echo "${ECHO_T}yes" >&6 | |
8192 | else | |
8193 | echo "$as_me:$LINENO: result: no" >&5 | |
8194 | echo "${ECHO_T}no" >&6 | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | enablestring= | |
8199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8200 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8201 | no_cache=0 | |
8202 | # Check whether --enable-sash or --disable-sash was given. | |
8203 | if test "${enable_sash+set}" = set; then | |
8204 | enableval="$enable_sash" | |
8205 | ||
8206 | if test "$enableval" = yes; then | |
8207 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8208 | else | |
8209 | ac_cv_use_sash='wxUSE_SASH=no' | |
8210 | fi | |
8211 | ||
8212 | else | |
8213 | ||
8214 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8215 | if test "x$LINE" != x ; then | |
8216 | eval "DEFAULT_$LINE" | |
8217 | else | |
8218 | no_cache=1 | |
8219 | fi | |
8220 | ||
8221 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8222 | ||
8223 | fi; | |
8224 | ||
8225 | eval "$ac_cv_use_sash" | |
8226 | if test "$no_cache" != 1; then | |
8227 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8228 | fi | |
8229 | ||
8230 | if test "$wxUSE_SASH" = yes; then | |
8231 | echo "$as_me:$LINENO: result: yes" >&5 | |
8232 | echo "${ECHO_T}yes" >&6 | |
8233 | else | |
8234 | echo "$as_me:$LINENO: result: no" >&5 | |
8235 | echo "${ECHO_T}no" >&6 | |
8236 | fi | |
8237 | ||
8238 | ||
8239 | enablestring= | |
8240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8241 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8242 | no_cache=0 | |
8243 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8244 | if test "${enable_scrollbar+set}" = set; then | |
8245 | enableval="$enable_scrollbar" | |
8246 | ||
8247 | if test "$enableval" = yes; then | |
8248 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8249 | else | |
8250 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8251 | fi | |
8252 | ||
8253 | else | |
8254 | ||
8255 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8256 | if test "x$LINE" != x ; then | |
8257 | eval "DEFAULT_$LINE" | |
8258 | else | |
8259 | no_cache=1 | |
8260 | fi | |
8261 | ||
8262 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8263 | ||
8264 | fi; | |
8265 | ||
8266 | eval "$ac_cv_use_scrollbar" | |
8267 | if test "$no_cache" != 1; then | |
8268 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8269 | fi | |
8270 | ||
8271 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8272 | echo "$as_me:$LINENO: result: yes" >&5 | |
8273 | echo "${ECHO_T}yes" >&6 | |
8274 | else | |
8275 | echo "$as_me:$LINENO: result: no" >&5 | |
8276 | echo "${ECHO_T}no" >&6 | |
8277 | fi | |
8278 | ||
8279 | ||
8280 | enablestring= | |
8281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8282 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8283 | no_cache=0 | |
8284 | # Check whether --enable-slider or --disable-slider was given. | |
8285 | if test "${enable_slider+set}" = set; then | |
8286 | enableval="$enable_slider" | |
8287 | ||
8288 | if test "$enableval" = yes; then | |
8289 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8290 | else | |
8291 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8292 | fi | |
8293 | ||
8294 | else | |
8295 | ||
8296 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8297 | if test "x$LINE" != x ; then | |
8298 | eval "DEFAULT_$LINE" | |
8299 | else | |
8300 | no_cache=1 | |
8301 | fi | |
8302 | ||
8303 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8304 | ||
8305 | fi; | |
8306 | ||
8307 | eval "$ac_cv_use_slider" | |
8308 | if test "$no_cache" != 1; then | |
8309 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8310 | fi | |
8311 | ||
8312 | if test "$wxUSE_SLIDER" = yes; then | |
8313 | echo "$as_me:$LINENO: result: yes" >&5 | |
8314 | echo "${ECHO_T}yes" >&6 | |
8315 | else | |
8316 | echo "$as_me:$LINENO: result: no" >&5 | |
8317 | echo "${ECHO_T}no" >&6 | |
8318 | fi | |
8319 | ||
8320 | ||
8321 | enablestring= | |
8322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8323 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8324 | no_cache=0 | |
8325 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8326 | if test "${enable_spinbtn+set}" = set; then | |
8327 | enableval="$enable_spinbtn" | |
8328 | ||
8329 | if test "$enableval" = yes; then | |
8330 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8331 | else | |
8332 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8333 | fi | |
8334 | ||
8335 | else | |
8336 | ||
8337 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8338 | if test "x$LINE" != x ; then | |
8339 | eval "DEFAULT_$LINE" | |
8340 | else | |
8341 | no_cache=1 | |
8342 | fi | |
8343 | ||
8344 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8345 | ||
8346 | fi; | |
8347 | ||
8348 | eval "$ac_cv_use_spinbtn" | |
8349 | if test "$no_cache" != 1; then | |
8350 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8351 | fi | |
8352 | ||
8353 | if test "$wxUSE_SPINBTN" = yes; then | |
8354 | echo "$as_me:$LINENO: result: yes" >&5 | |
8355 | echo "${ECHO_T}yes" >&6 | |
8356 | else | |
8357 | echo "$as_me:$LINENO: result: no" >&5 | |
8358 | echo "${ECHO_T}no" >&6 | |
8359 | fi | |
8360 | ||
8361 | ||
8362 | enablestring= | |
8363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8364 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8365 | no_cache=0 | |
8366 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8367 | if test "${enable_spinctrl+set}" = set; then | |
8368 | enableval="$enable_spinctrl" | |
8369 | ||
8370 | if test "$enableval" = yes; then | |
8371 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8372 | else | |
8373 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8374 | fi | |
8375 | ||
8376 | else | |
8377 | ||
8378 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8379 | if test "x$LINE" != x ; then | |
8380 | eval "DEFAULT_$LINE" | |
8381 | else | |
8382 | no_cache=1 | |
8383 | fi | |
8384 | ||
8385 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8386 | ||
8387 | fi; | |
8388 | ||
8389 | eval "$ac_cv_use_spinctrl" | |
8390 | if test "$no_cache" != 1; then | |
8391 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8392 | fi | |
8393 | ||
8394 | if test "$wxUSE_SPINCTRL" = yes; then | |
8395 | echo "$as_me:$LINENO: result: yes" >&5 | |
8396 | echo "${ECHO_T}yes" >&6 | |
8397 | else | |
8398 | echo "$as_me:$LINENO: result: no" >&5 | |
8399 | echo "${ECHO_T}no" >&6 | |
8400 | fi | |
8401 | ||
8402 | ||
8403 | enablestring= | |
8404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8405 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8406 | no_cache=0 | |
8407 | # Check whether --enable-splitter or --disable-splitter was given. | |
8408 | if test "${enable_splitter+set}" = set; then | |
8409 | enableval="$enable_splitter" | |
8410 | ||
8411 | if test "$enableval" = yes; then | |
8412 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8413 | else | |
8414 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8415 | fi | |
8416 | ||
8417 | else | |
8418 | ||
8419 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8420 | if test "x$LINE" != x ; then | |
8421 | eval "DEFAULT_$LINE" | |
8422 | else | |
8423 | no_cache=1 | |
8424 | fi | |
8425 | ||
8426 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8427 | ||
8428 | fi; | |
8429 | ||
8430 | eval "$ac_cv_use_splitter" | |
8431 | if test "$no_cache" != 1; then | |
8432 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8433 | fi | |
8434 | ||
8435 | if test "$wxUSE_SPLITTER" = yes; then | |
8436 | echo "$as_me:$LINENO: result: yes" >&5 | |
8437 | echo "${ECHO_T}yes" >&6 | |
8438 | else | |
8439 | echo "$as_me:$LINENO: result: no" >&5 | |
8440 | echo "${ECHO_T}no" >&6 | |
8441 | fi | |
8442 | ||
8443 | ||
8444 | enablestring= | |
8445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8446 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8447 | no_cache=0 | |
8448 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8449 | if test "${enable_statbmp+set}" = set; then | |
8450 | enableval="$enable_statbmp" | |
8451 | ||
8452 | if test "$enableval" = yes; then | |
8453 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8454 | else | |
8455 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8456 | fi | |
8457 | ||
8458 | else | |
8459 | ||
8460 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8461 | if test "x$LINE" != x ; then | |
8462 | eval "DEFAULT_$LINE" | |
8463 | else | |
8464 | no_cache=1 | |
8465 | fi | |
8466 | ||
8467 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8468 | ||
8469 | fi; | |
8470 | ||
8471 | eval "$ac_cv_use_statbmp" | |
8472 | if test "$no_cache" != 1; then | |
8473 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8474 | fi | |
8475 | ||
8476 | if test "$wxUSE_STATBMP" = yes; then | |
8477 | echo "$as_me:$LINENO: result: yes" >&5 | |
8478 | echo "${ECHO_T}yes" >&6 | |
8479 | else | |
8480 | echo "$as_me:$LINENO: result: no" >&5 | |
8481 | echo "${ECHO_T}no" >&6 | |
8482 | fi | |
8483 | ||
8484 | ||
8485 | enablestring= | |
8486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8487 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8488 | no_cache=0 | |
8489 | # Check whether --enable-statbox or --disable-statbox was given. | |
8490 | if test "${enable_statbox+set}" = set; then | |
8491 | enableval="$enable_statbox" | |
8492 | ||
8493 | if test "$enableval" = yes; then | |
8494 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8495 | else | |
8496 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8497 | fi | |
8498 | ||
8499 | else | |
8500 | ||
8501 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8502 | if test "x$LINE" != x ; then | |
8503 | eval "DEFAULT_$LINE" | |
8504 | else | |
8505 | no_cache=1 | |
8506 | fi | |
8507 | ||
8508 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8509 | ||
8510 | fi; | |
8511 | ||
8512 | eval "$ac_cv_use_statbox" | |
8513 | if test "$no_cache" != 1; then | |
8514 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8515 | fi | |
8516 | ||
8517 | if test "$wxUSE_STATBOX" = yes; then | |
8518 | echo "$as_me:$LINENO: result: yes" >&5 | |
8519 | echo "${ECHO_T}yes" >&6 | |
8520 | else | |
8521 | echo "$as_me:$LINENO: result: no" >&5 | |
8522 | echo "${ECHO_T}no" >&6 | |
8523 | fi | |
8524 | ||
8525 | ||
8526 | enablestring= | |
8527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8528 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8529 | no_cache=0 | |
8530 | # Check whether --enable-statline or --disable-statline was given. | |
8531 | if test "${enable_statline+set}" = set; then | |
8532 | enableval="$enable_statline" | |
8533 | ||
8534 | if test "$enableval" = yes; then | |
8535 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8536 | else | |
8537 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8538 | fi | |
8539 | ||
8540 | else | |
8541 | ||
8542 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8543 | if test "x$LINE" != x ; then | |
8544 | eval "DEFAULT_$LINE" | |
8545 | else | |
8546 | no_cache=1 | |
8547 | fi | |
8548 | ||
8549 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8550 | ||
8551 | fi; | |
8552 | ||
8553 | eval "$ac_cv_use_statline" | |
8554 | if test "$no_cache" != 1; then | |
8555 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8556 | fi | |
8557 | ||
8558 | if test "$wxUSE_STATLINE" = yes; then | |
8559 | echo "$as_me:$LINENO: result: yes" >&5 | |
8560 | echo "${ECHO_T}yes" >&6 | |
8561 | else | |
8562 | echo "$as_me:$LINENO: result: no" >&5 | |
8563 | echo "${ECHO_T}no" >&6 | |
8564 | fi | |
8565 | ||
8566 | ||
8567 | enablestring= | |
8568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8569 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8570 | no_cache=0 | |
8571 | # Check whether --enable-stattext or --disable-stattext was given. | |
8572 | if test "${enable_stattext+set}" = set; then | |
8573 | enableval="$enable_stattext" | |
8574 | ||
8575 | if test "$enableval" = yes; then | |
8576 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8577 | else | |
8578 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8579 | fi | |
8580 | ||
8581 | else | |
8582 | ||
8583 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8584 | if test "x$LINE" != x ; then | |
8585 | eval "DEFAULT_$LINE" | |
8586 | else | |
8587 | no_cache=1 | |
8588 | fi | |
8589 | ||
8590 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8591 | ||
8592 | fi; | |
8593 | ||
8594 | eval "$ac_cv_use_stattext" | |
8595 | if test "$no_cache" != 1; then | |
8596 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8597 | fi | |
8598 | ||
8599 | if test "$wxUSE_STATTEXT" = yes; then | |
8600 | echo "$as_me:$LINENO: result: yes" >&5 | |
8601 | echo "${ECHO_T}yes" >&6 | |
8602 | else | |
8603 | echo "$as_me:$LINENO: result: no" >&5 | |
8604 | echo "${ECHO_T}no" >&6 | |
8605 | fi | |
8606 | ||
8607 | ||
8608 | enablestring= | |
8609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8610 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8611 | no_cache=0 | |
8612 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8613 | if test "${enable_statusbar+set}" = set; then | |
8614 | enableval="$enable_statusbar" | |
8615 | ||
8616 | if test "$enableval" = yes; then | |
8617 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8618 | else | |
8619 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8620 | fi | |
8621 | ||
8622 | else | |
8623 | ||
8624 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8625 | if test "x$LINE" != x ; then | |
8626 | eval "DEFAULT_$LINE" | |
8627 | else | |
8628 | no_cache=1 | |
8629 | fi | |
8630 | ||
8631 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8632 | ||
8633 | fi; | |
8634 | ||
8635 | eval "$ac_cv_use_statusbar" | |
8636 | if test "$no_cache" != 1; then | |
8637 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8638 | fi | |
8639 | ||
8640 | if test "$wxUSE_STATUSBAR" = yes; then | |
8641 | echo "$as_me:$LINENO: result: yes" >&5 | |
8642 | echo "${ECHO_T}yes" >&6 | |
8643 | else | |
8644 | echo "$as_me:$LINENO: result: no" >&5 | |
8645 | echo "${ECHO_T}no" >&6 | |
8646 | fi | |
8647 | ||
8648 | ||
8649 | enablestring= | |
8650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8651 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8652 | no_cache=0 | |
8653 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8654 | if test "${enable_tabdialog+set}" = set; then | |
8655 | enableval="$enable_tabdialog" | |
8656 | ||
8657 | if test "$enableval" = yes; then | |
8658 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8659 | else | |
8660 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8661 | fi | |
8662 | ||
8663 | else | |
8664 | ||
8665 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8666 | if test "x$LINE" != x ; then | |
8667 | eval "DEFAULT_$LINE" | |
8668 | else | |
8669 | no_cache=1 | |
8670 | fi | |
8671 | ||
8672 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8673 | ||
8674 | fi; | |
8675 | ||
8676 | eval "$ac_cv_use_tabdialog" | |
8677 | if test "$no_cache" != 1; then | |
8678 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8679 | fi | |
8680 | ||
8681 | if test "$wxUSE_TABDIALOG" = yes; then | |
8682 | echo "$as_me:$LINENO: result: yes" >&5 | |
8683 | echo "${ECHO_T}yes" >&6 | |
8684 | else | |
8685 | echo "$as_me:$LINENO: result: no" >&5 | |
8686 | echo "${ECHO_T}no" >&6 | |
8687 | fi | |
8688 | ||
8689 | ||
8690 | enablestring= | |
8691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8692 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8693 | no_cache=0 | |
8694 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8695 | if test "${enable_textctrl+set}" = set; then | |
8696 | enableval="$enable_textctrl" | |
8697 | ||
8698 | if test "$enableval" = yes; then | |
8699 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8700 | else | |
8701 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8702 | fi | |
8703 | ||
8704 | else | |
8705 | ||
8706 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8707 | if test "x$LINE" != x ; then | |
8708 | eval "DEFAULT_$LINE" | |
8709 | else | |
8710 | no_cache=1 | |
8711 | fi | |
8712 | ||
8713 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8714 | ||
8715 | fi; | |
8716 | ||
8717 | eval "$ac_cv_use_textctrl" | |
8718 | if test "$no_cache" != 1; then | |
8719 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8720 | fi | |
8721 | ||
8722 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8723 | echo "$as_me:$LINENO: result: yes" >&5 | |
8724 | echo "${ECHO_T}yes" >&6 | |
8725 | else | |
8726 | echo "$as_me:$LINENO: result: no" >&5 | |
8727 | echo "${ECHO_T}no" >&6 | |
8728 | fi | |
8729 | ||
8730 | ||
8731 | enablestring= | |
8732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8733 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8734 | no_cache=0 | |
8735 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8736 | if test "${enable_togglebtn+set}" = set; then | |
8737 | enableval="$enable_togglebtn" | |
8738 | ||
8739 | if test "$enableval" = yes; then | |
8740 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8741 | else | |
8742 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8743 | fi | |
8744 | ||
8745 | else | |
8746 | ||
8747 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8748 | if test "x$LINE" != x ; then | |
8749 | eval "DEFAULT_$LINE" | |
8750 | else | |
8751 | no_cache=1 | |
8752 | fi | |
8753 | ||
8754 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8755 | ||
8756 | fi; | |
8757 | ||
8758 | eval "$ac_cv_use_togglebtn" | |
8759 | if test "$no_cache" != 1; then | |
8760 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8761 | fi | |
8762 | ||
8763 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8764 | echo "$as_me:$LINENO: result: yes" >&5 | |
8765 | echo "${ECHO_T}yes" >&6 | |
8766 | else | |
8767 | echo "$as_me:$LINENO: result: no" >&5 | |
8768 | echo "${ECHO_T}no" >&6 | |
8769 | fi | |
8770 | ||
8771 | ||
8772 | enablestring= | |
8773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8774 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8775 | no_cache=0 | |
8776 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8777 | if test "${enable_toolbar+set}" = set; then | |
8778 | enableval="$enable_toolbar" | |
8779 | ||
8780 | if test "$enableval" = yes; then | |
8781 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8782 | else | |
8783 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8784 | fi | |
8785 | ||
8786 | else | |
8787 | ||
8788 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8789 | if test "x$LINE" != x ; then | |
8790 | eval "DEFAULT_$LINE" | |
8791 | else | |
8792 | no_cache=1 | |
8793 | fi | |
8794 | ||
8795 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8796 | ||
8797 | fi; | |
8798 | ||
8799 | eval "$ac_cv_use_toolbar" | |
8800 | if test "$no_cache" != 1; then | |
8801 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8802 | fi | |
8803 | ||
8804 | if test "$wxUSE_TOOLBAR" = yes; then | |
8805 | echo "$as_me:$LINENO: result: yes" >&5 | |
8806 | echo "${ECHO_T}yes" >&6 | |
8807 | else | |
8808 | echo "$as_me:$LINENO: result: no" >&5 | |
8809 | echo "${ECHO_T}no" >&6 | |
8810 | fi | |
8811 | ||
8812 | ||
8813 | enablestring= | |
8814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8815 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8816 | no_cache=0 | |
8817 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8818 | if test "${enable_tbarnative+set}" = set; then | |
8819 | enableval="$enable_tbarnative" | |
8820 | ||
8821 | if test "$enableval" = yes; then | |
8822 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8823 | else | |
8824 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8825 | fi | |
8826 | ||
8827 | else | |
8828 | ||
8829 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8830 | if test "x$LINE" != x ; then | |
8831 | eval "DEFAULT_$LINE" | |
8832 | else | |
8833 | no_cache=1 | |
8834 | fi | |
8835 | ||
8836 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8837 | ||
8838 | fi; | |
8839 | ||
8840 | eval "$ac_cv_use_tbarnative" | |
8841 | if test "$no_cache" != 1; then | |
8842 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8843 | fi | |
8844 | ||
8845 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8846 | echo "$as_me:$LINENO: result: yes" >&5 | |
8847 | echo "${ECHO_T}yes" >&6 | |
8848 | else | |
8849 | echo "$as_me:$LINENO: result: no" >&5 | |
8850 | echo "${ECHO_T}no" >&6 | |
8851 | fi | |
8852 | ||
8853 | ||
8854 | enablestring= | |
8855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8856 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8857 | no_cache=0 | |
8858 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8859 | if test "${enable_tbarsmpl+set}" = set; then | |
8860 | enableval="$enable_tbarsmpl" | |
8861 | ||
8862 | if test "$enableval" = yes; then | |
8863 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8864 | else | |
8865 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8866 | fi | |
8867 | ||
8868 | else | |
8869 | ||
8870 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8871 | if test "x$LINE" != x ; then | |
8872 | eval "DEFAULT_$LINE" | |
8873 | else | |
8874 | no_cache=1 | |
8875 | fi | |
8876 | ||
8877 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8878 | ||
8879 | fi; | |
8880 | ||
8881 | eval "$ac_cv_use_tbarsmpl" | |
8882 | if test "$no_cache" != 1; then | |
8883 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8884 | fi | |
8885 | ||
8886 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8887 | echo "$as_me:$LINENO: result: yes" >&5 | |
8888 | echo "${ECHO_T}yes" >&6 | |
8889 | else | |
8890 | echo "$as_me:$LINENO: result: no" >&5 | |
8891 | echo "${ECHO_T}no" >&6 | |
8892 | fi | |
8893 | ||
8894 | ||
8895 | enablestring= | |
8896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8897 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8898 | no_cache=0 | |
8899 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8900 | if test "${enable_treectrl+set}" = set; then | |
8901 | enableval="$enable_treectrl" | |
8902 | ||
8903 | if test "$enableval" = yes; then | |
8904 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8905 | else | |
8906 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8907 | fi | |
8908 | ||
8909 | else | |
8910 | ||
8911 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8912 | if test "x$LINE" != x ; then | |
8913 | eval "DEFAULT_$LINE" | |
8914 | else | |
8915 | no_cache=1 | |
8916 | fi | |
8917 | ||
8918 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8919 | ||
8920 | fi; | |
8921 | ||
8922 | eval "$ac_cv_use_treectrl" | |
8923 | if test "$no_cache" != 1; then | |
8924 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8925 | fi | |
8926 | ||
8927 | if test "$wxUSE_TREECTRL" = yes; then | |
8928 | echo "$as_me:$LINENO: result: yes" >&5 | |
8929 | echo "${ECHO_T}yes" >&6 | |
8930 | else | |
8931 | echo "$as_me:$LINENO: result: no" >&5 | |
8932 | echo "${ECHO_T}no" >&6 | |
8933 | fi | |
8934 | ||
8935 | ||
8936 | enablestring= | |
8937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8938 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8939 | no_cache=0 | |
8940 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8941 | if test "${enable_tipwindow+set}" = set; then | |
8942 | enableval="$enable_tipwindow" | |
8943 | ||
8944 | if test "$enableval" = yes; then | |
8945 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8946 | else | |
8947 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8948 | fi | |
8949 | ||
8950 | else | |
8951 | ||
8952 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8953 | if test "x$LINE" != x ; then | |
8954 | eval "DEFAULT_$LINE" | |
8955 | else | |
8956 | no_cache=1 | |
8957 | fi | |
8958 | ||
8959 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8960 | ||
8961 | fi; | |
8962 | ||
8963 | eval "$ac_cv_use_tipwindow" | |
8964 | if test "$no_cache" != 1; then | |
8965 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8966 | fi | |
8967 | ||
8968 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8969 | echo "$as_me:$LINENO: result: yes" >&5 | |
8970 | echo "${ECHO_T}yes" >&6 | |
8971 | else | |
8972 | echo "$as_me:$LINENO: result: no" >&5 | |
8973 | echo "${ECHO_T}no" >&6 | |
8974 | fi | |
8975 | ||
8976 | ||
8977 | enablestring= | |
8978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8979 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8980 | no_cache=0 | |
8981 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8982 | if test "${enable_popupwin+set}" = set; then | |
8983 | enableval="$enable_popupwin" | |
8984 | ||
8985 | if test "$enableval" = yes; then | |
8986 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8987 | else | |
8988 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8989 | fi | |
8990 | ||
8991 | else | |
8992 | ||
8993 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8994 | if test "x$LINE" != x ; then | |
8995 | eval "DEFAULT_$LINE" | |
8996 | else | |
8997 | no_cache=1 | |
8998 | fi | |
8999 | ||
9000 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9001 | ||
9002 | fi; | |
9003 | ||
9004 | eval "$ac_cv_use_popupwin" | |
9005 | if test "$no_cache" != 1; then | |
9006 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9007 | fi | |
9008 | ||
9009 | if test "$wxUSE_POPUPWIN" = yes; then | |
9010 | echo "$as_me:$LINENO: result: yes" >&5 | |
9011 | echo "${ECHO_T}yes" >&6 | |
9012 | else | |
9013 | echo "$as_me:$LINENO: result: no" >&5 | |
9014 | echo "${ECHO_T}no" >&6 | |
9015 | fi | |
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | enablestring= | |
9021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9023 | no_cache=0 | |
9024 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9025 | if test "${enable_commondlg+set}" = set; then | |
9026 | enableval="$enable_commondlg" | |
9027 | ||
9028 | if test "$enableval" = yes; then | |
9029 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9030 | else | |
9031 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9032 | fi | |
9033 | ||
9034 | else | |
9035 | ||
9036 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9037 | if test "x$LINE" != x ; then | |
9038 | eval "DEFAULT_$LINE" | |
9039 | else | |
9040 | no_cache=1 | |
9041 | fi | |
9042 | ||
9043 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9044 | ||
9045 | fi; | |
9046 | ||
9047 | eval "$ac_cv_use_commondlg" | |
9048 | if test "$no_cache" != 1; then | |
9049 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9050 | fi | |
9051 | ||
9052 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9053 | echo "$as_me:$LINENO: result: yes" >&5 | |
9054 | echo "${ECHO_T}yes" >&6 | |
9055 | else | |
9056 | echo "$as_me:$LINENO: result: no" >&5 | |
9057 | echo "${ECHO_T}no" >&6 | |
9058 | fi | |
9059 | ||
9060 | ||
9061 | enablestring= | |
9062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9063 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9064 | no_cache=0 | |
9065 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9066 | if test "${enable_choicedlg+set}" = set; then | |
9067 | enableval="$enable_choicedlg" | |
9068 | ||
9069 | if test "$enableval" = yes; then | |
9070 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9071 | else | |
9072 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9073 | fi | |
9074 | ||
9075 | else | |
9076 | ||
9077 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9078 | if test "x$LINE" != x ; then | |
9079 | eval "DEFAULT_$LINE" | |
9080 | else | |
9081 | no_cache=1 | |
9082 | fi | |
9083 | ||
9084 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9085 | ||
9086 | fi; | |
9087 | ||
9088 | eval "$ac_cv_use_choicedlg" | |
9089 | if test "$no_cache" != 1; then | |
9090 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9091 | fi | |
9092 | ||
9093 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9094 | echo "$as_me:$LINENO: result: yes" >&5 | |
9095 | echo "${ECHO_T}yes" >&6 | |
9096 | else | |
9097 | echo "$as_me:$LINENO: result: no" >&5 | |
9098 | echo "${ECHO_T}no" >&6 | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | enablestring= | |
9103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9104 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9105 | no_cache=0 | |
9106 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9107 | if test "${enable_coldlg+set}" = set; then | |
9108 | enableval="$enable_coldlg" | |
9109 | ||
9110 | if test "$enableval" = yes; then | |
9111 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9112 | else | |
9113 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9114 | fi | |
9115 | ||
9116 | else | |
9117 | ||
9118 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9119 | if test "x$LINE" != x ; then | |
9120 | eval "DEFAULT_$LINE" | |
9121 | else | |
9122 | no_cache=1 | |
9123 | fi | |
9124 | ||
9125 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9126 | ||
9127 | fi; | |
9128 | ||
9129 | eval "$ac_cv_use_coldlg" | |
9130 | if test "$no_cache" != 1; then | |
9131 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9132 | fi | |
9133 | ||
9134 | if test "$wxUSE_COLOURDLG" = yes; then | |
9135 | echo "$as_me:$LINENO: result: yes" >&5 | |
9136 | echo "${ECHO_T}yes" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | ||
9143 | enablestring= | |
9144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9145 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9146 | no_cache=0 | |
9147 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9148 | if test "${enable_filedlg+set}" = set; then | |
9149 | enableval="$enable_filedlg" | |
9150 | ||
9151 | if test "$enableval" = yes; then | |
9152 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9153 | else | |
9154 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9155 | fi | |
9156 | ||
9157 | else | |
9158 | ||
9159 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9160 | if test "x$LINE" != x ; then | |
9161 | eval "DEFAULT_$LINE" | |
9162 | else | |
9163 | no_cache=1 | |
9164 | fi | |
9165 | ||
9166 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9167 | ||
9168 | fi; | |
9169 | ||
9170 | eval "$ac_cv_use_filedlg" | |
9171 | if test "$no_cache" != 1; then | |
9172 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9173 | fi | |
9174 | ||
9175 | if test "$wxUSE_FILEDLG" = yes; then | |
9176 | echo "$as_me:$LINENO: result: yes" >&5 | |
9177 | echo "${ECHO_T}yes" >&6 | |
9178 | else | |
9179 | echo "$as_me:$LINENO: result: no" >&5 | |
9180 | echo "${ECHO_T}no" >&6 | |
9181 | fi | |
9182 | ||
9183 | ||
9184 | enablestring= | |
9185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9186 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9187 | no_cache=0 | |
9188 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9189 | if test "${enable_finddlg+set}" = set; then | |
9190 | enableval="$enable_finddlg" | |
9191 | ||
9192 | if test "$enableval" = yes; then | |
9193 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9194 | else | |
9195 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9196 | fi | |
9197 | ||
9198 | else | |
9199 | ||
9200 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9201 | if test "x$LINE" != x ; then | |
9202 | eval "DEFAULT_$LINE" | |
9203 | else | |
9204 | no_cache=1 | |
9205 | fi | |
9206 | ||
9207 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9208 | ||
9209 | fi; | |
9210 | ||
9211 | eval "$ac_cv_use_finddlg" | |
9212 | if test "$no_cache" != 1; then | |
9213 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9214 | fi | |
9215 | ||
9216 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9217 | echo "$as_me:$LINENO: result: yes" >&5 | |
9218 | echo "${ECHO_T}yes" >&6 | |
9219 | else | |
9220 | echo "$as_me:$LINENO: result: no" >&5 | |
9221 | echo "${ECHO_T}no" >&6 | |
9222 | fi | |
9223 | ||
9224 | ||
9225 | enablestring= | |
9226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9227 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9228 | no_cache=0 | |
9229 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9230 | if test "${enable_fontdlg+set}" = set; then | |
9231 | enableval="$enable_fontdlg" | |
9232 | ||
9233 | if test "$enableval" = yes; then | |
9234 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9235 | else | |
9236 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9237 | fi | |
9238 | ||
9239 | else | |
9240 | ||
9241 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9242 | if test "x$LINE" != x ; then | |
9243 | eval "DEFAULT_$LINE" | |
9244 | else | |
9245 | no_cache=1 | |
9246 | fi | |
9247 | ||
9248 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9249 | ||
9250 | fi; | |
9251 | ||
9252 | eval "$ac_cv_use_fontdlg" | |
9253 | if test "$no_cache" != 1; then | |
9254 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9255 | fi | |
9256 | ||
9257 | if test "$wxUSE_FONTDLG" = yes; then | |
9258 | echo "$as_me:$LINENO: result: yes" >&5 | |
9259 | echo "${ECHO_T}yes" >&6 | |
9260 | else | |
9261 | echo "$as_me:$LINENO: result: no" >&5 | |
9262 | echo "${ECHO_T}no" >&6 | |
9263 | fi | |
9264 | ||
9265 | ||
9266 | enablestring= | |
9267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9268 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9269 | no_cache=0 | |
9270 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9271 | if test "${enable_dirdlg+set}" = set; then | |
9272 | enableval="$enable_dirdlg" | |
9273 | ||
9274 | if test "$enableval" = yes; then | |
9275 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9276 | else | |
9277 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9278 | fi | |
9279 | ||
9280 | else | |
9281 | ||
9282 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9283 | if test "x$LINE" != x ; then | |
9284 | eval "DEFAULT_$LINE" | |
9285 | else | |
9286 | no_cache=1 | |
9287 | fi | |
9288 | ||
9289 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9290 | ||
9291 | fi; | |
9292 | ||
9293 | eval "$ac_cv_use_dirdlg" | |
9294 | if test "$no_cache" != 1; then | |
9295 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9296 | fi | |
9297 | ||
9298 | if test "$wxUSE_DIRDLG" = yes; then | |
9299 | echo "$as_me:$LINENO: result: yes" >&5 | |
9300 | echo "${ECHO_T}yes" >&6 | |
9301 | else | |
9302 | echo "$as_me:$LINENO: result: no" >&5 | |
9303 | echo "${ECHO_T}no" >&6 | |
9304 | fi | |
9305 | ||
9306 | ||
9307 | enablestring= | |
9308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9309 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9310 | no_cache=0 | |
9311 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9312 | if test "${enable_msgdlg+set}" = set; then | |
9313 | enableval="$enable_msgdlg" | |
9314 | ||
9315 | if test "$enableval" = yes; then | |
9316 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9317 | else | |
9318 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9319 | fi | |
9320 | ||
9321 | else | |
9322 | ||
9323 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9324 | if test "x$LINE" != x ; then | |
9325 | eval "DEFAULT_$LINE" | |
9326 | else | |
9327 | no_cache=1 | |
9328 | fi | |
9329 | ||
9330 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9331 | ||
9332 | fi; | |
9333 | ||
9334 | eval "$ac_cv_use_msgdlg" | |
9335 | if test "$no_cache" != 1; then | |
9336 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9337 | fi | |
9338 | ||
9339 | if test "$wxUSE_MSGDLG" = yes; then | |
9340 | echo "$as_me:$LINENO: result: yes" >&5 | |
9341 | echo "${ECHO_T}yes" >&6 | |
9342 | else | |
9343 | echo "$as_me:$LINENO: result: no" >&5 | |
9344 | echo "${ECHO_T}no" >&6 | |
9345 | fi | |
9346 | ||
9347 | ||
9348 | enablestring= | |
9349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9350 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9351 | no_cache=0 | |
9352 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9353 | if test "${enable_numberdlg+set}" = set; then | |
9354 | enableval="$enable_numberdlg" | |
9355 | ||
9356 | if test "$enableval" = yes; then | |
9357 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9358 | else | |
9359 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9360 | fi | |
9361 | ||
9362 | else | |
9363 | ||
9364 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9365 | if test "x$LINE" != x ; then | |
9366 | eval "DEFAULT_$LINE" | |
9367 | else | |
9368 | no_cache=1 | |
9369 | fi | |
9370 | ||
9371 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9372 | ||
9373 | fi; | |
9374 | ||
9375 | eval "$ac_cv_use_numberdlg" | |
9376 | if test "$no_cache" != 1; then | |
9377 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9378 | fi | |
9379 | ||
9380 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9381 | echo "$as_me:$LINENO: result: yes" >&5 | |
9382 | echo "${ECHO_T}yes" >&6 | |
9383 | else | |
9384 | echo "$as_me:$LINENO: result: no" >&5 | |
9385 | echo "${ECHO_T}no" >&6 | |
9386 | fi | |
9387 | ||
9388 | ||
9389 | enablestring= | |
9390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9391 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9392 | no_cache=0 | |
9393 | # Check whether --enable-splash or --disable-splash was given. | |
9394 | if test "${enable_splash+set}" = set; then | |
9395 | enableval="$enable_splash" | |
9396 | ||
9397 | if test "$enableval" = yes; then | |
9398 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9399 | else | |
9400 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9401 | fi | |
9402 | ||
9403 | else | |
9404 | ||
9405 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9406 | if test "x$LINE" != x ; then | |
9407 | eval "DEFAULT_$LINE" | |
9408 | else | |
9409 | no_cache=1 | |
9410 | fi | |
9411 | ||
9412 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9413 | ||
9414 | fi; | |
9415 | ||
9416 | eval "$ac_cv_use_splash" | |
9417 | if test "$no_cache" != 1; then | |
9418 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9419 | fi | |
9420 | ||
9421 | if test "$wxUSE_SPLASH" = yes; then | |
9422 | echo "$as_me:$LINENO: result: yes" >&5 | |
9423 | echo "${ECHO_T}yes" >&6 | |
9424 | else | |
9425 | echo "$as_me:$LINENO: result: no" >&5 | |
9426 | echo "${ECHO_T}no" >&6 | |
9427 | fi | |
9428 | ||
9429 | ||
9430 | enablestring= | |
9431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9432 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9433 | no_cache=0 | |
9434 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9435 | if test "${enable_textdlg+set}" = set; then | |
9436 | enableval="$enable_textdlg" | |
9437 | ||
9438 | if test "$enableval" = yes; then | |
9439 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9440 | else | |
9441 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9442 | fi | |
9443 | ||
9444 | else | |
9445 | ||
9446 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9447 | if test "x$LINE" != x ; then | |
9448 | eval "DEFAULT_$LINE" | |
9449 | else | |
9450 | no_cache=1 | |
9451 | fi | |
9452 | ||
9453 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9454 | ||
9455 | fi; | |
9456 | ||
9457 | eval "$ac_cv_use_textdlg" | |
9458 | if test "$no_cache" != 1; then | |
9459 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9460 | fi | |
9461 | ||
9462 | if test "$wxUSE_TEXTDLG" = yes; then | |
9463 | echo "$as_me:$LINENO: result: yes" >&5 | |
9464 | echo "${ECHO_T}yes" >&6 | |
9465 | else | |
9466 | echo "$as_me:$LINENO: result: no" >&5 | |
9467 | echo "${ECHO_T}no" >&6 | |
9468 | fi | |
9469 | ||
9470 | ||
9471 | enablestring= | |
9472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9473 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9474 | no_cache=0 | |
9475 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9476 | if test "${enable_tipdlg+set}" = set; then | |
9477 | enableval="$enable_tipdlg" | |
9478 | ||
9479 | if test "$enableval" = yes; then | |
9480 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9481 | else | |
9482 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9483 | fi | |
9484 | ||
9485 | else | |
9486 | ||
9487 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9488 | if test "x$LINE" != x ; then | |
9489 | eval "DEFAULT_$LINE" | |
9490 | else | |
9491 | no_cache=1 | |
9492 | fi | |
9493 | ||
9494 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9495 | ||
9496 | fi; | |
9497 | ||
9498 | eval "$ac_cv_use_tipdlg" | |
9499 | if test "$no_cache" != 1; then | |
9500 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9501 | fi | |
9502 | ||
9503 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9504 | echo "$as_me:$LINENO: result: yes" >&5 | |
9505 | echo "${ECHO_T}yes" >&6 | |
9506 | else | |
9507 | echo "$as_me:$LINENO: result: no" >&5 | |
9508 | echo "${ECHO_T}no" >&6 | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | enablestring= | |
9513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9514 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9515 | no_cache=0 | |
9516 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9517 | if test "${enable_progressdlg+set}" = set; then | |
9518 | enableval="$enable_progressdlg" | |
9519 | ||
9520 | if test "$enableval" = yes; then | |
9521 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9522 | else | |
9523 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9524 | fi | |
9525 | ||
9526 | else | |
9527 | ||
9528 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9529 | if test "x$LINE" != x ; then | |
9530 | eval "DEFAULT_$LINE" | |
9531 | else | |
9532 | no_cache=1 | |
9533 | fi | |
9534 | ||
9535 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9536 | ||
9537 | fi; | |
9538 | ||
9539 | eval "$ac_cv_use_progressdlg" | |
9540 | if test "$no_cache" != 1; then | |
9541 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9542 | fi | |
9543 | ||
9544 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9545 | echo "$as_me:$LINENO: result: yes" >&5 | |
9546 | echo "${ECHO_T}yes" >&6 | |
9547 | else | |
9548 | echo "$as_me:$LINENO: result: no" >&5 | |
9549 | echo "${ECHO_T}no" >&6 | |
9550 | fi | |
9551 | ||
9552 | ||
9553 | enablestring= | |
9554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9555 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9556 | no_cache=0 | |
9557 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9558 | if test "${enable_wizarddlg+set}" = set; then | |
9559 | enableval="$enable_wizarddlg" | |
9560 | ||
9561 | if test "$enableval" = yes; then | |
9562 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9563 | else | |
9564 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9565 | fi | |
9566 | ||
9567 | else | |
9568 | ||
9569 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9570 | if test "x$LINE" != x ; then | |
9571 | eval "DEFAULT_$LINE" | |
9572 | else | |
9573 | no_cache=1 | |
9574 | fi | |
9575 | ||
9576 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9577 | ||
9578 | fi; | |
9579 | ||
9580 | eval "$ac_cv_use_wizarddlg" | |
9581 | if test "$no_cache" != 1; then | |
9582 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9583 | fi | |
9584 | ||
9585 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9586 | echo "$as_me:$LINENO: result: yes" >&5 | |
9587 | echo "${ECHO_T}yes" >&6 | |
9588 | else | |
9589 | echo "$as_me:$LINENO: result: no" >&5 | |
9590 | echo "${ECHO_T}no" >&6 | |
9591 | fi | |
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | enablestring= | |
9597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9598 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9599 | no_cache=0 | |
9600 | # Check whether --enable-menus or --disable-menus was given. | |
9601 | if test "${enable_menus+set}" = set; then | |
9602 | enableval="$enable_menus" | |
9603 | ||
9604 | if test "$enableval" = yes; then | |
9605 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9606 | else | |
9607 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9608 | fi | |
9609 | ||
9610 | else | |
9611 | ||
9612 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9613 | if test "x$LINE" != x ; then | |
9614 | eval "DEFAULT_$LINE" | |
9615 | else | |
9616 | no_cache=1 | |
9617 | fi | |
9618 | ||
9619 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9620 | ||
9621 | fi; | |
9622 | ||
9623 | eval "$ac_cv_use_menus" | |
9624 | if test "$no_cache" != 1; then | |
9625 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9626 | fi | |
9627 | ||
9628 | if test "$wxUSE_MENUS" = yes; then | |
9629 | echo "$as_me:$LINENO: result: yes" >&5 | |
9630 | echo "${ECHO_T}yes" >&6 | |
9631 | else | |
9632 | echo "$as_me:$LINENO: result: no" >&5 | |
9633 | echo "${ECHO_T}no" >&6 | |
9634 | fi | |
9635 | ||
9636 | ||
9637 | enablestring= | |
9638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9639 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9640 | no_cache=0 | |
9641 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9642 | if test "${enable_miniframe+set}" = set; then | |
9643 | enableval="$enable_miniframe" | |
9644 | ||
9645 | if test "$enableval" = yes; then | |
9646 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9647 | else | |
9648 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9649 | fi | |
9650 | ||
9651 | else | |
9652 | ||
9653 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9654 | if test "x$LINE" != x ; then | |
9655 | eval "DEFAULT_$LINE" | |
9656 | else | |
9657 | no_cache=1 | |
9658 | fi | |
9659 | ||
9660 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9661 | ||
9662 | fi; | |
9663 | ||
9664 | eval "$ac_cv_use_miniframe" | |
9665 | if test "$no_cache" != 1; then | |
9666 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9667 | fi | |
9668 | ||
9669 | if test "$wxUSE_MINIFRAME" = yes; then | |
9670 | echo "$as_me:$LINENO: result: yes" >&5 | |
9671 | echo "${ECHO_T}yes" >&6 | |
9672 | else | |
9673 | echo "$as_me:$LINENO: result: no" >&5 | |
9674 | echo "${ECHO_T}no" >&6 | |
9675 | fi | |
9676 | ||
9677 | ||
9678 | enablestring= | |
9679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9680 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9681 | no_cache=0 | |
9682 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9683 | if test "${enable_tooltips+set}" = set; then | |
9684 | enableval="$enable_tooltips" | |
9685 | ||
9686 | if test "$enableval" = yes; then | |
9687 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9688 | else | |
9689 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9690 | fi | |
9691 | ||
9692 | else | |
9693 | ||
9694 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9695 | if test "x$LINE" != x ; then | |
9696 | eval "DEFAULT_$LINE" | |
9697 | else | |
9698 | no_cache=1 | |
9699 | fi | |
9700 | ||
9701 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9702 | ||
9703 | fi; | |
9704 | ||
9705 | eval "$ac_cv_use_tooltips" | |
9706 | if test "$no_cache" != 1; then | |
9707 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9708 | fi | |
9709 | ||
9710 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9711 | echo "$as_me:$LINENO: result: yes" >&5 | |
9712 | echo "${ECHO_T}yes" >&6 | |
9713 | else | |
9714 | echo "$as_me:$LINENO: result: no" >&5 | |
9715 | echo "${ECHO_T}no" >&6 | |
9716 | fi | |
9717 | ||
9718 | ||
9719 | enablestring= | |
9720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9721 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9722 | no_cache=0 | |
9723 | # Check whether --enable-splines or --disable-splines was given. | |
9724 | if test "${enable_splines+set}" = set; then | |
9725 | enableval="$enable_splines" | |
9726 | ||
9727 | if test "$enableval" = yes; then | |
9728 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9729 | else | |
9730 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9731 | fi | |
9732 | ||
9733 | else | |
9734 | ||
9735 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9736 | if test "x$LINE" != x ; then | |
9737 | eval "DEFAULT_$LINE" | |
9738 | else | |
9739 | no_cache=1 | |
9740 | fi | |
9741 | ||
9742 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9743 | ||
9744 | fi; | |
9745 | ||
9746 | eval "$ac_cv_use_splines" | |
9747 | if test "$no_cache" != 1; then | |
9748 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9749 | fi | |
9750 | ||
9751 | if test "$wxUSE_SPLINES" = yes; then | |
9752 | echo "$as_me:$LINENO: result: yes" >&5 | |
9753 | echo "${ECHO_T}yes" >&6 | |
9754 | else | |
9755 | echo "$as_me:$LINENO: result: no" >&5 | |
9756 | echo "${ECHO_T}no" >&6 | |
9757 | fi | |
9758 | ||
9759 | ||
fbe2ca43 SN |
9760 | enablestring= |
9761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9762 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9763 | no_cache=0 | |
9764 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9765 | if test "${enable_mousewheel+set}" = set; then | |
9766 | enableval="$enable_mousewheel" | |
9767 | ||
9768 | if test "$enableval" = yes; then | |
9769 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9770 | else | |
9771 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9772 | fi | |
9773 | ||
9774 | else | |
9775 | ||
9776 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9777 | if test "x$LINE" != x ; then | |
9778 | eval "DEFAULT_$LINE" | |
9779 | else | |
9780 | no_cache=1 | |
9781 | fi | |
9782 | ||
9783 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9784 | ||
9785 | fi; | |
9786 | ||
9787 | eval "$ac_cv_use_mousewheel" | |
9788 | if test "$no_cache" != 1; then | |
9789 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9790 | fi | |
9791 | ||
9792 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9793 | echo "$as_me:$LINENO: result: yes" >&5 | |
9794 | echo "${ECHO_T}yes" >&6 | |
9795 | else | |
9796 | echo "$as_me:$LINENO: result: no" >&5 | |
9797 | echo "${ECHO_T}no" >&6 | |
9798 | fi | |
9799 | ||
9800 | ||
a848cd7e SC |
9801 | enablestring= |
9802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9803 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9804 | no_cache=0 | |
9805 | # Check whether --enable-validators or --disable-validators was given. | |
9806 | if test "${enable_validators+set}" = set; then | |
9807 | enableval="$enable_validators" | |
9808 | ||
9809 | if test "$enableval" = yes; then | |
9810 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9811 | else | |
9812 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9813 | fi | |
9814 | ||
9815 | else | |
9816 | ||
9817 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9818 | if test "x$LINE" != x ; then | |
9819 | eval "DEFAULT_$LINE" | |
9820 | else | |
9821 | no_cache=1 | |
9822 | fi | |
9823 | ||
9824 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9825 | ||
9826 | fi; | |
9827 | ||
9828 | eval "$ac_cv_use_validators" | |
9829 | if test "$no_cache" != 1; then | |
9830 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9831 | fi | |
9832 | ||
9833 | if test "$wxUSE_VALIDATORS" = yes; then | |
9834 | echo "$as_me:$LINENO: result: yes" >&5 | |
9835 | echo "${ECHO_T}yes" >&6 | |
9836 | else | |
9837 | echo "$as_me:$LINENO: result: no" >&5 | |
9838 | echo "${ECHO_T}no" >&6 | |
9839 | fi | |
9840 | ||
9841 | ||
9842 | enablestring= | |
9843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9844 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9845 | no_cache=0 | |
9846 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9847 | if test "${enable_busyinfo+set}" = set; then | |
9848 | enableval="$enable_busyinfo" | |
9849 | ||
9850 | if test "$enableval" = yes; then | |
9851 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9852 | else | |
9853 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9854 | fi | |
9855 | ||
9856 | else | |
9857 | ||
9858 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9859 | if test "x$LINE" != x ; then | |
9860 | eval "DEFAULT_$LINE" | |
9861 | else | |
9862 | no_cache=1 | |
9863 | fi | |
9864 | ||
9865 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9866 | ||
9867 | fi; | |
9868 | ||
9869 | eval "$ac_cv_use_busyinfo" | |
9870 | if test "$no_cache" != 1; then | |
9871 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9872 | fi | |
9873 | ||
9874 | if test "$wxUSE_BUSYINFO" = yes; then | |
9875 | echo "$as_me:$LINENO: result: yes" >&5 | |
9876 | echo "${ECHO_T}yes" >&6 | |
9877 | else | |
9878 | echo "$as_me:$LINENO: result: no" >&5 | |
9879 | echo "${ECHO_T}no" >&6 | |
9880 | fi | |
9881 | ||
9882 | ||
9883 | enablestring= | |
9884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9885 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9886 | no_cache=0 | |
9887 | # Check whether --enable-joystick or --disable-joystick was given. | |
9888 | if test "${enable_joystick+set}" = set; then | |
9889 | enableval="$enable_joystick" | |
9890 | ||
9891 | if test "$enableval" = yes; then | |
9892 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9893 | else | |
9894 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9895 | fi | |
9896 | ||
9897 | else | |
9898 | ||
9899 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9900 | if test "x$LINE" != x ; then | |
9901 | eval "DEFAULT_$LINE" | |
9902 | else | |
9903 | no_cache=1 | |
9904 | fi | |
9905 | ||
9906 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9907 | ||
9908 | fi; | |
9909 | ||
9910 | eval "$ac_cv_use_joystick" | |
9911 | if test "$no_cache" != 1; then | |
9912 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9913 | fi | |
9914 | ||
9915 | if test "$wxUSE_JOYSTICK" = yes; then | |
9916 | echo "$as_me:$LINENO: result: yes" >&5 | |
9917 | echo "${ECHO_T}yes" >&6 | |
9918 | else | |
9919 | echo "$as_me:$LINENO: result: no" >&5 | |
9920 | echo "${ECHO_T}no" >&6 | |
9921 | fi | |
9922 | ||
9923 | ||
9924 | enablestring= | |
9925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9926 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9927 | no_cache=0 | |
9928 | # Check whether --enable-metafile or --disable-metafile was given. | |
9929 | if test "${enable_metafile+set}" = set; then | |
9930 | enableval="$enable_metafile" | |
9931 | ||
9932 | if test "$enableval" = yes; then | |
9933 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9934 | else | |
9935 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9936 | fi | |
9937 | ||
9938 | else | |
9939 | ||
9940 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9941 | if test "x$LINE" != x ; then | |
9942 | eval "DEFAULT_$LINE" | |
9943 | else | |
9944 | no_cache=1 | |
9945 | fi | |
9946 | ||
9947 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9948 | ||
9949 | fi; | |
9950 | ||
9951 | eval "$ac_cv_use_metafile" | |
9952 | if test "$no_cache" != 1; then | |
9953 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9954 | fi | |
9955 | ||
9956 | if test "$wxUSE_METAFILE" = yes; then | |
9957 | echo "$as_me:$LINENO: result: yes" >&5 | |
9958 | echo "${ECHO_T}yes" >&6 | |
9959 | else | |
9960 | echo "$as_me:$LINENO: result: no" >&5 | |
9961 | echo "${ECHO_T}no" >&6 | |
9962 | fi | |
9963 | ||
9964 | ||
9965 | enablestring= | |
9966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9967 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9968 | no_cache=0 | |
9969 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9970 | if test "${enable_dragimage+set}" = set; then | |
9971 | enableval="$enable_dragimage" | |
9972 | ||
9973 | if test "$enableval" = yes; then | |
9974 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9975 | else | |
9976 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9977 | fi | |
9978 | ||
9979 | else | |
9980 | ||
9981 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9982 | if test "x$LINE" != x ; then | |
9983 | eval "DEFAULT_$LINE" | |
9984 | else | |
9985 | no_cache=1 | |
9986 | fi | |
9987 | ||
9988 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9989 | ||
9990 | fi; | |
9991 | ||
9992 | eval "$ac_cv_use_dragimage" | |
9993 | if test "$no_cache" != 1; then | |
9994 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9995 | fi | |
9996 | ||
9997 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9998 | echo "$as_me:$LINENO: result: yes" >&5 | |
9999 | echo "${ECHO_T}yes" >&6 | |
10000 | else | |
10001 | echo "$as_me:$LINENO: result: no" >&5 | |
10002 | echo "${ECHO_T}no" >&6 | |
10003 | fi | |
10004 | ||
10005 | ||
10006 | enablestring= | |
10007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10008 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10009 | no_cache=0 | |
10010 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10011 | if test "${enable_accessibility+set}" = set; then | |
10012 | enableval="$enable_accessibility" | |
10013 | ||
10014 | if test "$enableval" = yes; then | |
10015 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10016 | else | |
10017 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10018 | fi | |
10019 | ||
10020 | else | |
10021 | ||
10022 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10023 | if test "x$LINE" != x ; then | |
10024 | eval "DEFAULT_$LINE" | |
10025 | else | |
10026 | no_cache=1 | |
10027 | fi | |
10028 | ||
10029 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10030 | ||
10031 | fi; | |
10032 | ||
10033 | eval "$ac_cv_use_accessibility" | |
10034 | if test "$no_cache" != 1; then | |
10035 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10036 | fi | |
10037 | ||
10038 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10039 | echo "$as_me:$LINENO: result: yes" >&5 | |
10040 | echo "${ECHO_T}yes" >&6 | |
10041 | else | |
10042 | echo "$as_me:$LINENO: result: no" >&5 | |
10043 | echo "${ECHO_T}no" >&6 | |
10044 | fi | |
10045 | ||
10046 | ||
38b4a946 VZ |
10047 | if test "$wxUSE_MSW" = "1"; then |
10048 | ||
10049 | enablestring= | |
10050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10051 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10052 | no_cache=0 | |
10053 | # Check whether --enable-dccache or --disable-dccache was given. | |
10054 | if test "${enable_dccache+set}" = set; then | |
10055 | enableval="$enable_dccache" | |
10056 | ||
10057 | if test "$enableval" = yes; then | |
10058 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10059 | else | |
10060 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10061 | fi | |
10062 | ||
10063 | else | |
10064 | ||
10065 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10066 | if test "x$LINE" != x ; then | |
10067 | eval "DEFAULT_$LINE" | |
10068 | else | |
10069 | no_cache=1 | |
10070 | fi | |
10071 | ||
10072 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10073 | ||
10074 | fi; | |
10075 | ||
10076 | eval "$ac_cv_use_dccache" | |
10077 | if test "$no_cache" != 1; then | |
10078 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10079 | fi | |
10080 | ||
10081 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10082 | echo "$as_me:$LINENO: result: yes" >&5 | |
10083 | echo "${ECHO_T}yes" >&6 | |
10084 | else | |
10085 | echo "$as_me:$LINENO: result: no" >&5 | |
10086 | echo "${ECHO_T}no" >&6 | |
10087 | fi | |
10088 | ||
10089 | fi | |
10090 | ||
a848cd7e SC |
10091 | |
10092 | ||
10093 | enablestring= | |
10094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10095 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10096 | no_cache=0 | |
10097 | # Check whether --enable-palette or --disable-palette was given. | |
10098 | if test "${enable_palette+set}" = set; then | |
10099 | enableval="$enable_palette" | |
10100 | ||
10101 | if test "$enableval" = yes; then | |
10102 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10103 | else | |
10104 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10105 | fi | |
10106 | ||
10107 | else | |
10108 | ||
10109 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10110 | if test "x$LINE" != x ; then | |
10111 | eval "DEFAULT_$LINE" | |
10112 | else | |
10113 | no_cache=1 | |
10114 | fi | |
10115 | ||
10116 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10117 | ||
10118 | fi; | |
10119 | ||
10120 | eval "$ac_cv_use_palette" | |
10121 | if test "$no_cache" != 1; then | |
10122 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10123 | fi | |
10124 | ||
10125 | if test "$wxUSE_PALETTE" = yes; then | |
10126 | echo "$as_me:$LINENO: result: yes" >&5 | |
10127 | echo "${ECHO_T}yes" >&6 | |
10128 | else | |
10129 | echo "$as_me:$LINENO: result: no" >&5 | |
10130 | echo "${ECHO_T}no" >&6 | |
10131 | fi | |
10132 | ||
10133 | ||
10134 | enablestring= | |
10135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10136 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10137 | no_cache=0 | |
10138 | # Check whether --enable-image or --disable-image was given. | |
10139 | if test "${enable_image+set}" = set; then | |
10140 | enableval="$enable_image" | |
10141 | ||
10142 | if test "$enableval" = yes; then | |
10143 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10144 | else | |
10145 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10146 | fi | |
10147 | ||
10148 | else | |
10149 | ||
10150 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10151 | if test "x$LINE" != x ; then | |
10152 | eval "DEFAULT_$LINE" | |
10153 | else | |
10154 | no_cache=1 | |
10155 | fi | |
10156 | ||
10157 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10158 | ||
10159 | fi; | |
10160 | ||
10161 | eval "$ac_cv_use_image" | |
10162 | if test "$no_cache" != 1; then | |
10163 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10164 | fi | |
10165 | ||
10166 | if test "$wxUSE_IMAGE" = yes; then | |
10167 | echo "$as_me:$LINENO: result: yes" >&5 | |
10168 | echo "${ECHO_T}yes" >&6 | |
10169 | else | |
10170 | echo "$as_me:$LINENO: result: no" >&5 | |
10171 | echo "${ECHO_T}no" >&6 | |
10172 | fi | |
10173 | ||
10174 | ||
10175 | enablestring= | |
10176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10177 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10178 | no_cache=0 | |
10179 | # Check whether --enable-gif or --disable-gif was given. | |
10180 | if test "${enable_gif+set}" = set; then | |
10181 | enableval="$enable_gif" | |
10182 | ||
10183 | if test "$enableval" = yes; then | |
10184 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10185 | else | |
10186 | ac_cv_use_gif='wxUSE_GIF=no' | |
10187 | fi | |
10188 | ||
10189 | else | |
10190 | ||
10191 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10192 | if test "x$LINE" != x ; then | |
10193 | eval "DEFAULT_$LINE" | |
10194 | else | |
10195 | no_cache=1 | |
10196 | fi | |
10197 | ||
10198 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10199 | ||
10200 | fi; | |
10201 | ||
10202 | eval "$ac_cv_use_gif" | |
10203 | if test "$no_cache" != 1; then | |
10204 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10205 | fi | |
10206 | ||
10207 | if test "$wxUSE_GIF" = yes; then | |
10208 | echo "$as_me:$LINENO: result: yes" >&5 | |
10209 | echo "${ECHO_T}yes" >&6 | |
10210 | else | |
10211 | echo "$as_me:$LINENO: result: no" >&5 | |
10212 | echo "${ECHO_T}no" >&6 | |
10213 | fi | |
10214 | ||
10215 | ||
10216 | enablestring= | |
10217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10218 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10219 | no_cache=0 | |
10220 | # Check whether --enable-pcx or --disable-pcx was given. | |
10221 | if test "${enable_pcx+set}" = set; then | |
10222 | enableval="$enable_pcx" | |
10223 | ||
10224 | if test "$enableval" = yes; then | |
10225 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10226 | else | |
10227 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10228 | fi | |
10229 | ||
10230 | else | |
10231 | ||
10232 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10233 | if test "x$LINE" != x ; then | |
10234 | eval "DEFAULT_$LINE" | |
10235 | else | |
10236 | no_cache=1 | |
10237 | fi | |
10238 | ||
10239 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10240 | ||
10241 | fi; | |
10242 | ||
10243 | eval "$ac_cv_use_pcx" | |
10244 | if test "$no_cache" != 1; then | |
10245 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10246 | fi | |
10247 | ||
10248 | if test "$wxUSE_PCX" = yes; then | |
10249 | echo "$as_me:$LINENO: result: yes" >&5 | |
10250 | echo "${ECHO_T}yes" >&6 | |
10251 | else | |
10252 | echo "$as_me:$LINENO: result: no" >&5 | |
10253 | echo "${ECHO_T}no" >&6 | |
10254 | fi | |
10255 | ||
10256 | ||
10257 | enablestring= | |
10258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10259 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10260 | no_cache=0 | |
10261 | # Check whether --enable-iff or --disable-iff was given. | |
10262 | if test "${enable_iff+set}" = set; then | |
10263 | enableval="$enable_iff" | |
10264 | ||
10265 | if test "$enableval" = yes; then | |
10266 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10267 | else | |
10268 | ac_cv_use_iff='wxUSE_IFF=no' | |
10269 | fi | |
10270 | ||
10271 | else | |
10272 | ||
10273 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10274 | if test "x$LINE" != x ; then | |
10275 | eval "DEFAULT_$LINE" | |
10276 | else | |
10277 | no_cache=1 | |
10278 | fi | |
10279 | ||
10280 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10281 | ||
10282 | fi; | |
10283 | ||
10284 | eval "$ac_cv_use_iff" | |
10285 | if test "$no_cache" != 1; then | |
10286 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10287 | fi | |
10288 | ||
10289 | if test "$wxUSE_IFF" = yes; then | |
10290 | echo "$as_me:$LINENO: result: yes" >&5 | |
10291 | echo "${ECHO_T}yes" >&6 | |
10292 | else | |
10293 | echo "$as_me:$LINENO: result: no" >&5 | |
10294 | echo "${ECHO_T}no" >&6 | |
10295 | fi | |
10296 | ||
10297 | ||
10298 | enablestring= | |
10299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10300 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10301 | no_cache=0 | |
10302 | # Check whether --enable-pnm or --disable-pnm was given. | |
10303 | if test "${enable_pnm+set}" = set; then | |
10304 | enableval="$enable_pnm" | |
10305 | ||
10306 | if test "$enableval" = yes; then | |
10307 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10308 | else | |
10309 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10310 | fi | |
10311 | ||
10312 | else | |
10313 | ||
10314 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10315 | if test "x$LINE" != x ; then | |
10316 | eval "DEFAULT_$LINE" | |
10317 | else | |
10318 | no_cache=1 | |
10319 | fi | |
10320 | ||
10321 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10322 | ||
10323 | fi; | |
10324 | ||
10325 | eval "$ac_cv_use_pnm" | |
10326 | if test "$no_cache" != 1; then | |
10327 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10328 | fi | |
10329 | ||
10330 | if test "$wxUSE_PNM" = yes; then | |
10331 | echo "$as_me:$LINENO: result: yes" >&5 | |
10332 | echo "${ECHO_T}yes" >&6 | |
10333 | else | |
10334 | echo "$as_me:$LINENO: result: no" >&5 | |
10335 | echo "${ECHO_T}no" >&6 | |
10336 | fi | |
10337 | ||
10338 | ||
10339 | enablestring= | |
10340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10341 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10342 | no_cache=0 | |
10343 | # Check whether --enable-xpm or --disable-xpm was given. | |
10344 | if test "${enable_xpm+set}" = set; then | |
10345 | enableval="$enable_xpm" | |
10346 | ||
10347 | if test "$enableval" = yes; then | |
10348 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10349 | else | |
10350 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10351 | fi | |
10352 | ||
10353 | else | |
10354 | ||
10355 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10356 | if test "x$LINE" != x ; then | |
10357 | eval "DEFAULT_$LINE" | |
10358 | else | |
10359 | no_cache=1 | |
10360 | fi | |
10361 | ||
10362 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10363 | ||
10364 | fi; | |
10365 | ||
10366 | eval "$ac_cv_use_xpm" | |
10367 | if test "$no_cache" != 1; then | |
10368 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10369 | fi | |
10370 | ||
10371 | if test "$wxUSE_XPM" = yes; then | |
10372 | echo "$as_me:$LINENO: result: yes" >&5 | |
10373 | echo "${ECHO_T}yes" >&6 | |
10374 | else | |
10375 | echo "$as_me:$LINENO: result: no" >&5 | |
10376 | echo "${ECHO_T}no" >&6 | |
10377 | fi | |
10378 | ||
10379 | ||
10380 | enablestring= | |
10381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10382 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10383 | no_cache=0 | |
10384 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10385 | if test "${enable_ico_cur+set}" = set; then | |
10386 | enableval="$enable_ico_cur" | |
10387 | ||
10388 | if test "$enableval" = yes; then | |
10389 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10390 | else | |
10391 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10392 | fi | |
10393 | ||
10394 | else | |
10395 | ||
10396 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10397 | if test "x$LINE" != x ; then | |
10398 | eval "DEFAULT_$LINE" | |
10399 | else | |
10400 | no_cache=1 | |
10401 | fi | |
10402 | ||
10403 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10404 | ||
10405 | fi; | |
10406 | ||
10407 | eval "$ac_cv_use_ico_cur" | |
10408 | if test "$no_cache" != 1; then | |
10409 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10410 | fi | |
10411 | ||
10412 | if test "$wxUSE_ICO_CUR" = yes; then | |
10413 | echo "$as_me:$LINENO: result: yes" >&5 | |
10414 | echo "${ECHO_T}yes" >&6 | |
10415 | else | |
10416 | echo "$as_me:$LINENO: result: no" >&5 | |
10417 | echo "${ECHO_T}no" >&6 | |
10418 | fi | |
10419 | ||
10420 | ||
10421 | fi | |
10422 | ||
10423 | ||
10424 | ||
ceec2216 RL |
10425 | # Check whether --with-flavour or --without-flavour was given. |
10426 | if test "${with_flavour+set}" = set; then | |
10427 | withval="$with_flavour" | |
10428 | WX_FLAVOUR="$withval" | |
10429 | fi; | |
10430 | ||
10431 | ||
10432 | ||
a848cd7e SC |
10433 | enablestring= |
10434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10435 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10436 | no_cache=0 | |
10437 | # Check whether --enable-official_build or --disable-official_build was given. | |
10438 | if test "${enable_official_build+set}" = set; then | |
10439 | enableval="$enable_official_build" | |
10440 | ||
10441 | if test "$enableval" = yes; then | |
10442 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10443 | else | |
10444 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10445 | fi | |
10446 | ||
10447 | else | |
10448 | ||
10449 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10450 | if test "x$LINE" != x ; then | |
10451 | eval "DEFAULT_$LINE" | |
10452 | else | |
10453 | no_cache=1 | |
10454 | fi | |
10455 | ||
10456 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10457 | ||
10458 | fi; | |
10459 | ||
10460 | eval "$ac_cv_use_official_build" | |
10461 | if test "$no_cache" != 1; then | |
10462 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10463 | fi | |
10464 | ||
10465 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10466 | echo "$as_me:$LINENO: result: yes" >&5 | |
10467 | echo "${ECHO_T}yes" >&6 | |
10468 | else | |
10469 | echo "$as_me:$LINENO: result: no" >&5 | |
10470 | echo "${ECHO_T}no" >&6 | |
10471 | fi | |
10472 | ||
10473 | # Check whether --enable-vendor or --disable-vendor was given. | |
10474 | if test "${enable_vendor+set}" = set; then | |
10475 | enableval="$enable_vendor" | |
10476 | VENDOR="$enableval" | |
10477 | fi; | |
10478 | if test "x$VENDOR" = "x"; then | |
10479 | VENDOR="custom" | |
10480 | fi | |
10481 | ||
a848cd7e SC |
10482 | |
10483 | ||
10484 | ||
10485 | echo "saving argument cache $wx_arg_cache_file" | |
10486 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10487 | ||
10488 | ||
10489 | ||
10490 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10491 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10492 | ||
10493 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10494 | if test "$wxUSE_WINE" = "yes"; then | |
10495 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10496 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10497 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10498 | wxUSE_SHARED=no | |
10499 | fi | |
10500 | ||
f597b41c | 10501 | |
a848cd7e SC |
10502 | if test "$wxUSE_GUI" = "yes"; then |
10503 | ||
10504 | if test "$USE_BEOS" = 1; then | |
10505 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10506 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10507 | { (exit 1); exit 1; }; } | |
10508 | fi | |
10509 | ||
10510 | if test "$TOOLKIT_GIVEN" = 1; then | |
10511 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10512 | var=wxUSE_$toolkit | |
10513 | eval "value=\$${var}" | |
f34ca037 MW |
10514 | if test "x$value" = "xno"; then |
10515 | eval "$var=0" | |
10516 | elif test "x$value" != "x"; then | |
10517 | eval "$var=1" | |
10518 | fi | |
10519 | ||
10520 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10521 | eval "wx${toolkit}_VERSION=$value" | |
10522 | fi | |
a848cd7e SC |
10523 | done |
10524 | else | |
10525 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10526 | if test "$has_toolkit_in_cache" != 1; then | |
10527 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10528 | else | |
10529 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10530 | |
10531 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10532 | if test "x$version" != "x"; then | |
10533 | eval "wx${toolkit}_VERSION=$version" | |
10534 | fi | |
a848cd7e SC |
10535 | fi |
10536 | eval "wxUSE_$toolkit=\$${var}" | |
10537 | done | |
10538 | fi | |
10539 | ||
10540 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10541 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10542 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10543 | ||
10544 | case "${host}" in | |
10545 | *-pc-os2_emx | *-pc-os2-emx ) | |
10546 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10547 | esac | |
10548 | ||
10549 | case "$NUM_TOOLKITS" in | |
10550 | 1) | |
10551 | ;; | |
10552 | 0) | |
10553 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10554 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10555 | { (exit 1); exit 1; }; } | |
10556 | ;; | |
10557 | *) | |
10558 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10559 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10560 | { (exit 1); exit 1; }; } | |
10561 | esac | |
10562 | ||
f34ca037 MW |
10563 | # to be removed when --disable-gtk2 isn't needed |
10564 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10565 | wxGTK_VERSION=2 | |
10566 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10567 | wxGTK_VERSION=1 | |
10568 | fi | |
10569 | ||
a848cd7e SC |
10570 | for toolkit in `echo $ALL_TOOLKITS`; do |
10571 | var=wxUSE_$toolkit | |
10572 | eval "value=\$${var}" | |
10573 | if test "x$value" != x; then | |
10574 | cache_var=CACHE_$toolkit | |
10575 | eval "cache=\$${cache_var}" | |
10576 | if test "$cache" = 1; then | |
10577 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10578 | eval "version=\$wx${toolkit}_VERSION" |
10579 | if test "x$version" != "x"; then | |
10580 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10581 | fi | |
a848cd7e SC |
10582 | fi |
10583 | if test "$value" = 1; then | |
10584 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10585 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10586 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10587 | fi | |
10588 | fi | |
10589 | done | |
10590 | else | |
10591 | if test "x$host_alias" != "x"; then | |
10592 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10593 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10594 | else | |
10595 | echo "$as_me:$LINENO: result: base only" >&5 | |
10596 | echo "${ECHO_T}base only" >&6 | |
10597 | fi | |
10598 | fi | |
10599 | ||
10600 | wants_win32=0 | |
10601 | doesnt_want_win32=0 | |
10602 | case "${host}" in | |
10603 | *-*-cygwin*) | |
10604 | if test "$wxUSE_MSW" = 1 ; then | |
10605 | wants_win32=1 | |
7275146d | 10606 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10607 | else |
10608 | doesnt_want_win32=1 | |
10609 | fi | |
10610 | ;; | |
10611 | *-*-mingw*) | |
10612 | wants_win32=1 | |
10613 | ;; | |
10614 | esac | |
10615 | ||
10616 | if test "$wxUSE_WINE" = "yes"; then | |
10617 | wants_win32=1 | |
10618 | CC=winegcc | |
10619 | CXX=wineg++ | |
a848cd7e SC |
10620 | LDFLAGS_GUI="-mwindows" |
10621 | fi | |
10622 | ||
10623 | if test "$wants_win32" = 1 ; then | |
10624 | USE_UNIX=0 | |
10625 | USE_WIN32=1 | |
10626 | cat >>confdefs.h <<\_ACEOF | |
10627 | #define __WIN32__ 1 | |
10628 | _ACEOF | |
10629 | ||
10630 | cat >>confdefs.h <<\_ACEOF | |
10631 | #define __WIN95__ 1 | |
10632 | _ACEOF | |
10633 | ||
10634 | cat >>confdefs.h <<\_ACEOF | |
10635 | #define __WINDOWS__ 1 | |
10636 | _ACEOF | |
10637 | ||
10638 | cat >>confdefs.h <<\_ACEOF | |
10639 | #define __GNUWIN32__ 1 | |
10640 | _ACEOF | |
10641 | ||
10642 | cat >>confdefs.h <<\_ACEOF | |
10643 | #define STRICT 1 | |
10644 | _ACEOF | |
10645 | ||
10646 | cat >>confdefs.h <<\_ACEOF | |
10647 | #define WINVER 0x0400 | |
10648 | _ACEOF | |
10649 | ||
10650 | fi | |
10651 | if test "$doesnt_want_win32" = 1 ; then | |
10652 | USE_UNIX=1 | |
10653 | USE_WIN32=0 | |
10654 | fi | |
10655 | ||
10656 | if test "$USE_UNIX" = 1 ; then | |
10657 | wxUSE_UNIX=yes | |
10658 | cat >>confdefs.h <<\_ACEOF | |
10659 | #define __UNIX__ 1 | |
10660 | _ACEOF | |
10661 | ||
10662 | fi | |
10663 | ||
10664 | ||
10665 | cat >confcache <<\_ACEOF | |
10666 | # This file is a shell script that caches the results of configure | |
10667 | # tests run on this system so they can be shared between configure | |
10668 | # scripts and configure runs, see configure's option --config-cache. | |
10669 | # It is not useful on other systems. If it contains results you don't | |
10670 | # want to keep, you may remove or edit it. | |
10671 | # | |
10672 | # config.status only pays attention to the cache file if you give it | |
10673 | # the --recheck option to rerun configure. | |
10674 | # | |
10675 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10676 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10677 | # following values. | |
10678 | ||
10679 | _ACEOF | |
10680 | ||
10681 | # The following way of writing the cache mishandles newlines in values, | |
10682 | # but we know of no workaround that is simple, portable, and efficient. | |
10683 | # So, don't put newlines in cache variables' values. | |
10684 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10685 | # and sets the high bit in the cache file unless we assign to the vars. | |
10686 | { | |
10687 | (set) 2>&1 | | |
10688 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10689 | *ac_space=\ *) | |
10690 | # `set' does not quote correctly, so add quotes (double-quote | |
10691 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10692 | sed -n \ | |
ac1cb8d3 VS |
10693 | "s/'/'\\\\''/g; |
10694 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10695 | ;; |
10696 | *) | |
10697 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10698 | sed -n \ | |
ac1cb8d3 | 10699 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10700 | ;; |
10701 | esac; | |
10702 | } | | |
10703 | sed ' | |
10704 | t clear | |
10705 | : clear | |
10706 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10707 | t end | |
10708 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10709 | : end' >>confcache | |
10710 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10711 | if test -w $cache_file; then | |
10712 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10713 | cat confcache >$cache_file | |
10714 | else | |
10715 | echo "not updating unwritable cache $cache_file" | |
10716 | fi | |
10717 | fi | |
10718 | rm -f confcache | |
10719 | ||
a848cd7e | 10720 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10721 | |
10722 | ||
10723 | ac_ext=c | |
a848cd7e SC |
10724 | ac_cpp='$CPP $CPPFLAGS' |
10725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10728 | if test -n "$ac_tool_prefix"; then | |
10729 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10730 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10733 | if test "${ac_cv_prog_CC+set}" = set; then | |
10734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10735 | else | |
10736 | if test -n "$CC"; then | |
10737 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10738 | else | |
10739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10740 | for as_dir in $PATH | |
10741 | do | |
10742 | IFS=$as_save_IFS | |
10743 | test -z "$as_dir" && as_dir=. | |
10744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10746 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10748 | break 2 | |
10749 | fi | |
10750 | done | |
10751 | done | |
10752 | ||
10753 | fi | |
10754 | fi | |
10755 | CC=$ac_cv_prog_CC | |
10756 | if test -n "$CC"; then | |
10757 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10758 | echo "${ECHO_T}$CC" >&6 | |
10759 | else | |
10760 | echo "$as_me:$LINENO: result: no" >&5 | |
10761 | echo "${ECHO_T}no" >&6 | |
10762 | fi | |
10763 | ||
10764 | fi | |
10765 | if test -z "$ac_cv_prog_CC"; then | |
10766 | ac_ct_CC=$CC | |
10767 | # Extract the first word of "gcc", so it can be a program name with args. | |
10768 | set dummy gcc; ac_word=$2 | |
10769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10771 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10773 | else | |
10774 | if test -n "$ac_ct_CC"; then | |
10775 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10776 | else | |
10777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10778 | for as_dir in $PATH | |
10779 | do | |
10780 | IFS=$as_save_IFS | |
10781 | test -z "$as_dir" && as_dir=. | |
10782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10784 | ac_cv_prog_ac_ct_CC="gcc" | |
10785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10786 | break 2 | |
10787 | fi | |
10788 | done | |
10789 | done | |
10790 | ||
10791 | fi | |
10792 | fi | |
10793 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10794 | if test -n "$ac_ct_CC"; then | |
10795 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10796 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10797 | else | |
10798 | echo "$as_me:$LINENO: result: no" >&5 | |
10799 | echo "${ECHO_T}no" >&6 | |
10800 | fi | |
10801 | ||
10802 | CC=$ac_ct_CC | |
10803 | else | |
10804 | CC="$ac_cv_prog_CC" | |
10805 | fi | |
10806 | ||
10807 | if test -z "$CC"; then | |
10808 | if test -n "$ac_tool_prefix"; then | |
10809 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10810 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10813 | if test "${ac_cv_prog_CC+set}" = set; then | |
10814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10815 | else | |
10816 | if test -n "$CC"; then | |
10817 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10818 | else | |
10819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10820 | for as_dir in $PATH | |
10821 | do | |
10822 | IFS=$as_save_IFS | |
10823 | test -z "$as_dir" && as_dir=. | |
10824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10826 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10828 | break 2 | |
10829 | fi | |
10830 | done | |
10831 | done | |
10832 | ||
10833 | fi | |
10834 | fi | |
10835 | CC=$ac_cv_prog_CC | |
10836 | if test -n "$CC"; then | |
10837 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10838 | echo "${ECHO_T}$CC" >&6 | |
10839 | else | |
10840 | echo "$as_me:$LINENO: result: no" >&5 | |
10841 | echo "${ECHO_T}no" >&6 | |
10842 | fi | |
10843 | ||
10844 | fi | |
10845 | if test -z "$ac_cv_prog_CC"; then | |
10846 | ac_ct_CC=$CC | |
10847 | # Extract the first word of "cc", so it can be a program name with args. | |
10848 | set dummy cc; ac_word=$2 | |
10849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10851 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10853 | else | |
10854 | if test -n "$ac_ct_CC"; then | |
10855 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10856 | else | |
10857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10858 | for as_dir in $PATH | |
10859 | do | |
10860 | IFS=$as_save_IFS | |
10861 | test -z "$as_dir" && as_dir=. | |
10862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10864 | ac_cv_prog_ac_ct_CC="cc" | |
10865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10866 | break 2 | |
10867 | fi | |
10868 | done | |
10869 | done | |
10870 | ||
10871 | fi | |
10872 | fi | |
10873 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10874 | if test -n "$ac_ct_CC"; then | |
10875 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10876 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10877 | else | |
10878 | echo "$as_me:$LINENO: result: no" >&5 | |
10879 | echo "${ECHO_T}no" >&6 | |
10880 | fi | |
10881 | ||
10882 | CC=$ac_ct_CC | |
10883 | else | |
10884 | CC="$ac_cv_prog_CC" | |
10885 | fi | |
10886 | ||
10887 | fi | |
10888 | if test -z "$CC"; then | |
10889 | # Extract the first word of "cc", so it can be a program name with args. | |
10890 | set dummy cc; ac_word=$2 | |
10891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10893 | if test "${ac_cv_prog_CC+set}" = set; then | |
10894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10895 | else | |
10896 | if test -n "$CC"; then | |
10897 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10898 | else | |
10899 | ac_prog_rejected=no | |
10900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10901 | for as_dir in $PATH | |
10902 | do | |
10903 | IFS=$as_save_IFS | |
10904 | test -z "$as_dir" && as_dir=. | |
10905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10907 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10908 | ac_prog_rejected=yes | |
10909 | continue | |
10910 | fi | |
10911 | ac_cv_prog_CC="cc" | |
10912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10913 | break 2 | |
10914 | fi | |
10915 | done | |
10916 | done | |
10917 | ||
10918 | if test $ac_prog_rejected = yes; then | |
10919 | # We found a bogon in the path, so make sure we never use it. | |
10920 | set dummy $ac_cv_prog_CC | |
10921 | shift | |
10922 | if test $# != 0; then | |
10923 | # We chose a different compiler from the bogus one. | |
10924 | # However, it has the same basename, so the bogon will be chosen | |
10925 | # first if we set CC to just the basename; use the full file name. | |
10926 | shift | |
10927 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10928 | fi | |
10929 | fi | |
10930 | fi | |
10931 | fi | |
10932 | CC=$ac_cv_prog_CC | |
10933 | if test -n "$CC"; then | |
10934 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10935 | echo "${ECHO_T}$CC" >&6 | |
10936 | else | |
10937 | echo "$as_me:$LINENO: result: no" >&5 | |
10938 | echo "${ECHO_T}no" >&6 | |
10939 | fi | |
10940 | ||
10941 | fi | |
10942 | if test -z "$CC"; then | |
10943 | if test -n "$ac_tool_prefix"; then | |
10944 | for ac_prog in cl | |
10945 | do | |
10946 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10947 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10950 | if test "${ac_cv_prog_CC+set}" = set; then | |
10951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10952 | else | |
10953 | if test -n "$CC"; then | |
10954 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10955 | else | |
10956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10957 | for as_dir in $PATH | |
10958 | do | |
10959 | IFS=$as_save_IFS | |
10960 | test -z "$as_dir" && as_dir=. | |
10961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10963 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10965 | break 2 | |
10966 | fi | |
10967 | done | |
10968 | done | |
10969 | ||
10970 | fi | |
10971 | fi | |
10972 | CC=$ac_cv_prog_CC | |
10973 | if test -n "$CC"; then | |
10974 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10975 | echo "${ECHO_T}$CC" >&6 | |
10976 | else | |
10977 | echo "$as_me:$LINENO: result: no" >&5 | |
10978 | echo "${ECHO_T}no" >&6 | |
10979 | fi | |
10980 | ||
10981 | test -n "$CC" && break | |
10982 | done | |
10983 | fi | |
10984 | if test -z "$CC"; then | |
10985 | ac_ct_CC=$CC | |
10986 | for ac_prog in cl | |
10987 | do | |
10988 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10989 | set dummy $ac_prog; ac_word=$2 | |
10990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10992 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10994 | else | |
10995 | if test -n "$ac_ct_CC"; then | |
10996 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10997 | else | |
10998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10999 | for as_dir in $PATH | |
11000 | do | |
11001 | IFS=$as_save_IFS | |
11002 | test -z "$as_dir" && as_dir=. | |
11003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11004 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11005 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11007 | break 2 | |
11008 | fi | |
11009 | done | |
11010 | done | |
11011 | ||
11012 | fi | |
11013 | fi | |
11014 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11015 | if test -n "$ac_ct_CC"; then | |
11016 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11017 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11018 | else | |
11019 | echo "$as_me:$LINENO: result: no" >&5 | |
11020 | echo "${ECHO_T}no" >&6 | |
11021 | fi | |
11022 | ||
11023 | test -n "$ac_ct_CC" && break | |
11024 | done | |
11025 | ||
11026 | CC=$ac_ct_CC | |
11027 | fi | |
11028 | ||
11029 | fi | |
11030 | ||
11031 | ||
11032 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11033 | See \`config.log' for more details." >&5 | |
11034 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11035 | See \`config.log' for more details." >&2;} | |
11036 | { (exit 1); exit 1; }; } | |
11037 | ||
11038 | # Provide some information about the compiler. | |
11039 | echo "$as_me:$LINENO:" \ | |
11040 | "checking for C compiler version" >&5 | |
11041 | ac_compiler=`set X $ac_compile; echo $2` | |
11042 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11043 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11044 | ac_status=$? | |
11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11046 | (exit $ac_status); } | |
11047 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11048 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11049 | ac_status=$? | |
11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11051 | (exit $ac_status); } | |
11052 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11053 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11054 | ac_status=$? | |
11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11056 | (exit $ac_status); } | |
11057 | ||
11058 | cat >conftest.$ac_ext <<_ACEOF | |
11059 | /* confdefs.h. */ | |
11060 | _ACEOF | |
11061 | cat confdefs.h >>conftest.$ac_ext | |
11062 | cat >>conftest.$ac_ext <<_ACEOF | |
11063 | /* end confdefs.h. */ | |
11064 | ||
11065 | int | |
11066 | main () | |
11067 | { | |
11068 | ||
11069 | ; | |
11070 | return 0; | |
11071 | } | |
11072 | _ACEOF | |
11073 | ac_clean_files_save=$ac_clean_files | |
11074 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11075 | # Try to create an executable without -o first, disregard a.out. | |
11076 | # It will help us diagnose broken compilers, and finding out an intuition | |
11077 | # of exeext. | |
ac1cb8d3 VS |
11078 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11079 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11080 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11081 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11082 | (eval $ac_link_default) 2>&5 | |
11083 | ac_status=$? | |
11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11085 | (exit $ac_status); }; then | |
11086 | # Find the output, starting from the most likely. This scheme is | |
11087 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11088 | # resort. | |
11089 | ||
11090 | # Be careful to initialize this variable, since it used to be cached. | |
11091 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11092 | ac_cv_exeext= | |
11093 | # b.out is created by i960 compilers. | |
11094 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11095 | do | |
11096 | test -f "$ac_file" || continue | |
11097 | case $ac_file in | |
11098 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11099 | ;; |
a848cd7e | 11100 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11101 | # This is the source file. |
11102 | ;; | |
a848cd7e | 11103 | [ab].out ) |
ac1cb8d3 VS |
11104 | # We found the default executable, but exeext='' is most |
11105 | # certainly right. | |
11106 | break;; | |
a848cd7e | 11107 | *.* ) |
ac1cb8d3 VS |
11108 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11109 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11110 | # but it would be cool to find out if it's true. Does anybody | |
11111 | # maintain Libtool? --akim. | |
11112 | export ac_cv_exeext | |
11113 | break;; | |
a848cd7e | 11114 | * ) |
ac1cb8d3 | 11115 | break;; |
a848cd7e SC |
11116 | esac |
11117 | done | |
11118 | else | |
11119 | echo "$as_me: failed program was:" >&5 | |
11120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11121 | ||
11122 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11123 | See \`config.log' for more details." >&5 | |
11124 | echo "$as_me: error: C compiler cannot create executables | |
11125 | See \`config.log' for more details." >&2;} | |
11126 | { (exit 77); exit 77; }; } | |
11127 | fi | |
11128 | ||
11129 | ac_exeext=$ac_cv_exeext | |
11130 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11131 | echo "${ECHO_T}$ac_file" >&6 | |
11132 | ||
11133 | # Check the compiler produces executables we can run. If not, either | |
11134 | # the compiler is broken, or we cross compile. | |
11135 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11136 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11137 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11138 | # If not cross compiling, check that we can run a simple program. | |
11139 | if test "$cross_compiling" != yes; then | |
11140 | if { ac_try='./$ac_file' | |
11141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11142 | (eval $ac_try) 2>&5 | |
11143 | ac_status=$? | |
11144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11145 | (exit $ac_status); }; }; then | |
11146 | cross_compiling=no | |
11147 | else | |
11148 | if test "$cross_compiling" = maybe; then | |
11149 | cross_compiling=yes | |
11150 | else | |
11151 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11152 | If you meant to cross compile, use \`--host'. | |
11153 | See \`config.log' for more details." >&5 | |
11154 | echo "$as_me: error: cannot run C compiled programs. | |
11155 | If you meant to cross compile, use \`--host'. | |
11156 | See \`config.log' for more details." >&2;} | |
11157 | { (exit 1); exit 1; }; } | |
11158 | fi | |
11159 | fi | |
11160 | fi | |
11161 | echo "$as_me:$LINENO: result: yes" >&5 | |
11162 | echo "${ECHO_T}yes" >&6 | |
11163 | ||
11164 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11165 | ac_clean_files=$ac_clean_files_save | |
11166 | # Check the compiler produces executables we can run. If not, either | |
11167 | # the compiler is broken, or we cross compile. | |
11168 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11169 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11170 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11171 | echo "${ECHO_T}$cross_compiling" >&6 | |
11172 | ||
11173 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11174 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11176 | (eval $ac_link) 2>&5 | |
11177 | ac_status=$? | |
11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11179 | (exit $ac_status); }; then | |
11180 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11181 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11182 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11183 | # `rm'. | |
11184 | for ac_file in conftest.exe conftest conftest.*; do | |
11185 | test -f "$ac_file" || continue | |
11186 | case $ac_file in | |
11187 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11188 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11189 | export ac_cv_exeext |
11190 | break;; | |
a848cd7e SC |
11191 | * ) break;; |
11192 | esac | |
11193 | done | |
11194 | else | |
11195 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11196 | See \`config.log' for more details." >&5 | |
11197 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11198 | See \`config.log' for more details." >&2;} | |
11199 | { (exit 1); exit 1; }; } | |
11200 | fi | |
11201 | ||
11202 | rm -f conftest$ac_cv_exeext | |
11203 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11204 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11205 | ||
11206 | rm -f conftest.$ac_ext | |
11207 | EXEEXT=$ac_cv_exeext | |
11208 | ac_exeext=$EXEEXT | |
11209 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11210 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11211 | if test "${ac_cv_objext+set}" = set; then | |
11212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11213 | else | |
11214 | cat >conftest.$ac_ext <<_ACEOF | |
11215 | /* confdefs.h. */ | |
11216 | _ACEOF | |
11217 | cat confdefs.h >>conftest.$ac_ext | |
11218 | cat >>conftest.$ac_ext <<_ACEOF | |
11219 | /* end confdefs.h. */ | |
11220 | ||
11221 | int | |
11222 | main () | |
11223 | { | |
11224 | ||
11225 | ; | |
11226 | return 0; | |
11227 | } | |
11228 | _ACEOF | |
11229 | rm -f conftest.o conftest.obj | |
11230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11231 | (eval $ac_compile) 2>&5 | |
11232 | ac_status=$? | |
11233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11234 | (exit $ac_status); }; then | |
11235 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11236 | case $ac_file in | |
11237 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11238 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11239 | break;; | |
11240 | esac | |
11241 | done | |
11242 | else | |
11243 | echo "$as_me: failed program was:" >&5 | |
11244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11245 | ||
11246 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11247 | See \`config.log' for more details." >&5 | |
11248 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11249 | See \`config.log' for more details." >&2;} | |
11250 | { (exit 1); exit 1; }; } | |
11251 | fi | |
11252 | ||
11253 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11254 | fi | |
11255 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11256 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11257 | OBJEXT=$ac_cv_objext | |
11258 | ac_objext=$OBJEXT | |
11259 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11260 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11261 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11263 | else | |
11264 | cat >conftest.$ac_ext <<_ACEOF | |
11265 | /* confdefs.h. */ | |
11266 | _ACEOF | |
11267 | cat confdefs.h >>conftest.$ac_ext | |
11268 | cat >>conftest.$ac_ext <<_ACEOF | |
11269 | /* end confdefs.h. */ | |
11270 | ||
11271 | int | |
11272 | main () | |
11273 | { | |
11274 | #ifndef __GNUC__ | |
11275 | choke me | |
11276 | #endif | |
11277 | ||
11278 | ; | |
11279 | return 0; | |
11280 | } | |
11281 | _ACEOF | |
11282 | rm -f conftest.$ac_objext | |
11283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11285 | ac_status=$? |
ac1cb8d3 VS |
11286 | grep -v '^ *+' conftest.er1 >conftest.err |
11287 | rm -f conftest.er1 | |
11288 | cat conftest.err >&5 | |
a848cd7e SC |
11289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11290 | (exit $ac_status); } && | |
6ebeb4c7 | 11291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11293 | (eval $ac_try) 2>&5 | |
11294 | ac_status=$? | |
11295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11296 | (exit $ac_status); }; } && | |
11297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11299 | (eval $ac_try) 2>&5 | |
11300 | ac_status=$? | |
11301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11302 | (exit $ac_status); }; }; then | |
11303 | ac_compiler_gnu=yes | |
11304 | else | |
11305 | echo "$as_me: failed program was:" >&5 | |
11306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11307 | ||
11308 | ac_compiler_gnu=no | |
11309 | fi | |
ac1cb8d3 | 11310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11311 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11312 | ||
11313 | fi | |
11314 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11315 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11316 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11317 | ac_test_CFLAGS=${CFLAGS+set} | |
11318 | ac_save_CFLAGS=$CFLAGS | |
9122d155 | 11319 | CFLAGS="-g" |
a848cd7e SC |
11320 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11321 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11322 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11324 | else | |
11325 | cat >conftest.$ac_ext <<_ACEOF | |
11326 | /* confdefs.h. */ | |
11327 | _ACEOF | |
11328 | cat confdefs.h >>conftest.$ac_ext | |
11329 | cat >>conftest.$ac_ext <<_ACEOF | |
11330 | /* end confdefs.h. */ | |
11331 | ||
11332 | int | |
11333 | main () | |
11334 | { | |
11335 | ||
11336 | ; | |
11337 | return 0; | |
11338 | } | |
11339 | _ACEOF | |
11340 | rm -f conftest.$ac_objext | |
11341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11342 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11343 | ac_status=$? |
ac1cb8d3 VS |
11344 | grep -v '^ *+' conftest.er1 >conftest.err |
11345 | rm -f conftest.er1 | |
11346 | cat conftest.err >&5 | |
a848cd7e SC |
11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11348 | (exit $ac_status); } && | |
6ebeb4c7 | 11349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11351 | (eval $ac_try) 2>&5 | |
11352 | ac_status=$? | |
11353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11354 | (exit $ac_status); }; } && | |
11355 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11357 | (eval $ac_try) 2>&5 | |
11358 | ac_status=$? | |
11359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11360 | (exit $ac_status); }; }; then | |
11361 | ac_cv_prog_cc_g=yes | |
11362 | else | |
11363 | echo "$as_me: failed program was:" >&5 | |
11364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11365 | ||
11366 | ac_cv_prog_cc_g=no | |
11367 | fi | |
ac1cb8d3 | 11368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11369 | fi |
11370 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11371 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11372 | if test "$ac_test_CFLAGS" = set; then | |
11373 | CFLAGS=$ac_save_CFLAGS | |
11374 | elif test $ac_cv_prog_cc_g = yes; then | |
11375 | if test "$GCC" = yes; then | |
11376 | CFLAGS="-g -O2" | |
11377 | else | |
11378 | CFLAGS="-g" | |
11379 | fi | |
11380 | else | |
11381 | if test "$GCC" = yes; then | |
11382 | CFLAGS="-O2" | |
11383 | else | |
11384 | CFLAGS= | |
11385 | fi | |
11386 | fi | |
11387 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11388 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11389 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11391 | else | |
11392 | ac_cv_prog_cc_stdc=no | |
11393 | ac_save_CC=$CC | |
11394 | cat >conftest.$ac_ext <<_ACEOF | |
11395 | /* confdefs.h. */ | |
11396 | _ACEOF | |
11397 | cat confdefs.h >>conftest.$ac_ext | |
11398 | cat >>conftest.$ac_ext <<_ACEOF | |
11399 | /* end confdefs.h. */ | |
11400 | #include <stdarg.h> | |
11401 | #include <stdio.h> | |
11402 | #include <sys/types.h> | |
11403 | #include <sys/stat.h> | |
11404 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11405 | struct buf { int x; }; | |
11406 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11407 | static char *e (p, i) | |
11408 | char **p; | |
11409 | int i; | |
11410 | { | |
11411 | return p[i]; | |
11412 | } | |
11413 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11414 | { | |
11415 | char *s; | |
11416 | va_list v; | |
11417 | va_start (v,p); | |
11418 | s = g (p, va_arg (v,int)); | |
11419 | va_end (v); | |
11420 | return s; | |
11421 | } | |
ac1cb8d3 VS |
11422 | |
11423 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11424 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11425 | These don't provoke an error unfortunately, instead are silently treated | |
11426 | as 'x'. The following induces an error, until -std1 is added to get | |
11427 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11428 | array size at least. It's necessary to write '\x00'==0 to get something | |
11429 | that's true only with -std1. */ | |
11430 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11431 | ||
a848cd7e SC |
11432 | int test (int i, double x); |
11433 | struct s1 {int (*f) (int a);}; | |
11434 | struct s2 {int (*f) (double a);}; | |
11435 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11436 | int argc; | |
11437 | char **argv; | |
11438 | int | |
11439 | main () | |
11440 | { | |
11441 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11442 | ; | |
11443 | return 0; | |
11444 | } | |
11445 | _ACEOF | |
11446 | # Don't try gcc -ansi; that turns off useful extensions and | |
11447 | # breaks some systems' header files. | |
11448 | # AIX -qlanglvl=ansi | |
11449 | # Ultrix and OSF/1 -std1 | |
11450 | # HP-UX 10.20 and later -Ae | |
11451 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11452 | # SVR4 -Xc -D__EXTENSIONS__ | |
11453 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11454 | do | |
11455 | CC="$ac_save_CC $ac_arg" | |
11456 | rm -f conftest.$ac_objext | |
11457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11458 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11459 | ac_status=$? |
ac1cb8d3 VS |
11460 | grep -v '^ *+' conftest.er1 >conftest.err |
11461 | rm -f conftest.er1 | |
11462 | cat conftest.err >&5 | |
a848cd7e SC |
11463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11464 | (exit $ac_status); } && | |
6ebeb4c7 | 11465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11467 | (eval $ac_try) 2>&5 | |
11468 | ac_status=$? | |
11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11470 | (exit $ac_status); }; } && | |
11471 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11473 | (eval $ac_try) 2>&5 | |
11474 | ac_status=$? | |
11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11476 | (exit $ac_status); }; }; then | |
11477 | ac_cv_prog_cc_stdc=$ac_arg | |
11478 | break | |
11479 | else | |
11480 | echo "$as_me: failed program was:" >&5 | |
11481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11482 | ||
11483 | fi | |
ac1cb8d3 | 11484 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11485 | done |
11486 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11487 | CC=$ac_save_CC | |
11488 | ||
11489 | fi | |
11490 | ||
11491 | case "x$ac_cv_prog_cc_stdc" in | |
11492 | x|xno) | |
11493 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11494 | echo "${ECHO_T}none needed" >&6 ;; | |
11495 | *) | |
11496 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11497 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11498 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11499 | esac | |
11500 | ||
11501 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11502 | # in C++ we need to declare it. In case someone uses the same compiler | |
11503 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11504 | # the declaration of exit, since it's the most demanding environment. | |
11505 | cat >conftest.$ac_ext <<_ACEOF | |
11506 | #ifndef __cplusplus | |
11507 | choke me | |
11508 | #endif | |
11509 | _ACEOF | |
11510 | rm -f conftest.$ac_objext | |
11511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11513 | ac_status=$? |
ac1cb8d3 VS |
11514 | grep -v '^ *+' conftest.er1 >conftest.err |
11515 | rm -f conftest.er1 | |
11516 | cat conftest.err >&5 | |
a848cd7e SC |
11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11518 | (exit $ac_status); } && | |
6ebeb4c7 | 11519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11521 | (eval $ac_try) 2>&5 | |
11522 | ac_status=$? | |
11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11524 | (exit $ac_status); }; } && | |
11525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11527 | (eval $ac_try) 2>&5 | |
11528 | ac_status=$? | |
11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11530 | (exit $ac_status); }; }; then | |
11531 | for ac_declaration in \ | |
ac1cb8d3 | 11532 | '' \ |
a848cd7e SC |
11533 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11534 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11535 | 'extern "C" void exit (int) throw ();' \ | |
11536 | 'extern "C" void exit (int);' \ | |
11537 | 'void exit (int);' | |
11538 | do | |
11539 | cat >conftest.$ac_ext <<_ACEOF | |
11540 | /* confdefs.h. */ | |
11541 | _ACEOF | |
11542 | cat confdefs.h >>conftest.$ac_ext | |
11543 | cat >>conftest.$ac_ext <<_ACEOF | |
11544 | /* end confdefs.h. */ | |
de59c161 | 11545 | $ac_declaration |
ac1cb8d3 | 11546 | #include <stdlib.h> |
a848cd7e SC |
11547 | int |
11548 | main () | |
11549 | { | |
11550 | exit (42); | |
11551 | ; | |
11552 | return 0; | |
11553 | } | |
11554 | _ACEOF | |
11555 | rm -f conftest.$ac_objext | |
11556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11558 | ac_status=$? |
ac1cb8d3 VS |
11559 | grep -v '^ *+' conftest.er1 >conftest.err |
11560 | rm -f conftest.er1 | |
11561 | cat conftest.err >&5 | |
a848cd7e SC |
11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11563 | (exit $ac_status); } && | |
6ebeb4c7 | 11564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11566 | (eval $ac_try) 2>&5 | |
11567 | ac_status=$? | |
11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11569 | (exit $ac_status); }; } && | |
11570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11572 | (eval $ac_try) 2>&5 | |
11573 | ac_status=$? | |
11574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11575 | (exit $ac_status); }; }; then | |
11576 | : | |
11577 | else | |
11578 | echo "$as_me: failed program was:" >&5 | |
11579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11580 | ||
11581 | continue | |
11582 | fi | |
ac1cb8d3 | 11583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11584 | cat >conftest.$ac_ext <<_ACEOF |
11585 | /* confdefs.h. */ | |
11586 | _ACEOF | |
11587 | cat confdefs.h >>conftest.$ac_ext | |
11588 | cat >>conftest.$ac_ext <<_ACEOF | |
11589 | /* end confdefs.h. */ | |
11590 | $ac_declaration | |
11591 | int | |
11592 | main () | |
11593 | { | |
11594 | exit (42); | |
11595 | ; | |
11596 | return 0; | |
11597 | } | |
11598 | _ACEOF | |
11599 | rm -f conftest.$ac_objext | |
11600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11602 | ac_status=$? |
ac1cb8d3 VS |
11603 | grep -v '^ *+' conftest.er1 >conftest.err |
11604 | rm -f conftest.er1 | |
11605 | cat conftest.err >&5 | |
a848cd7e SC |
11606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11607 | (exit $ac_status); } && | |
6ebeb4c7 | 11608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11610 | (eval $ac_try) 2>&5 | |
11611 | ac_status=$? | |
11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11613 | (exit $ac_status); }; } && | |
11614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11616 | (eval $ac_try) 2>&5 | |
11617 | ac_status=$? | |
11618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11619 | (exit $ac_status); }; }; then | |
11620 | break | |
11621 | else | |
11622 | echo "$as_me: failed program was:" >&5 | |
11623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11624 | ||
11625 | fi | |
ac1cb8d3 | 11626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11627 | done |
11628 | rm -f conftest* | |
11629 | if test -n "$ac_declaration"; then | |
11630 | echo '#ifdef __cplusplus' >>confdefs.h | |
11631 | echo $ac_declaration >>confdefs.h | |
11632 | echo '#endif' >>confdefs.h | |
11633 | fi | |
11634 | ||
11635 | else | |
11636 | echo "$as_me: failed program was:" >&5 | |
11637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11638 | ||
11639 | fi | |
ac1cb8d3 | 11640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11641 | ac_ext=c |
11642 | ac_cpp='$CPP $CPPFLAGS' | |
11643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11646 | ||
ab0ad5f1 VZ |
11647 | |
11648 | ||
11649 | ac_ext=c | |
11650 | ac_cpp='$CPP $CPPFLAGS' | |
11651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11654 | ||
11655 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
11656 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
11657 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
11658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11659 | else | |
11660 | cat >conftest.$ac_ext <<_ACEOF | |
11661 | /* confdefs.h. */ | |
11662 | _ACEOF | |
11663 | cat confdefs.h >>conftest.$ac_ext | |
11664 | cat >>conftest.$ac_ext <<_ACEOF | |
11665 | /* end confdefs.h. */ | |
11666 | ||
11667 | int | |
11668 | main () | |
11669 | { | |
11670 | ||
11671 | #ifndef __INTEL_COMPILER | |
11672 | choke me | |
11673 | #endif | |
11674 | ||
11675 | ; | |
11676 | return 0; | |
11677 | } | |
11678 | _ACEOF | |
11679 | rm -f conftest.$ac_objext | |
11680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11681 | (eval $ac_compile) 2>conftest.er1 | |
11682 | ac_status=$? | |
11683 | grep -v '^ *+' conftest.er1 >conftest.err | |
11684 | rm -f conftest.er1 | |
11685 | cat conftest.err >&5 | |
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11687 | (exit $ac_status); } && | |
11688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11690 | (eval $ac_try) 2>&5 | |
11691 | ac_status=$? | |
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11693 | (exit $ac_status); }; } && | |
11694 | { ac_try='test -s conftest.$ac_objext' | |
11695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11696 | (eval $ac_try) 2>&5 | |
11697 | ac_status=$? | |
11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11699 | (exit $ac_status); }; }; then | |
11700 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
11701 | else | |
11702 | echo "$as_me: failed program was:" >&5 | |
11703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11704 | ||
11705 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
11706 | ||
11707 | fi | |
11708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11709 | ||
11710 | ||
11711 | fi | |
11712 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
11713 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
11714 | ac_ext=c | |
11715 | ac_cpp='$CPP $CPPFLAGS' | |
11716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11719 | ||
11720 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
11721 | :; INTELCC=yes | |
11722 | else | |
11723 | :; | |
11724 | fi | |
11725 | ||
11726 | ||
11727 | if test "x$GCC" != "xyes"; then | |
11728 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 DE |
11729 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11730 | if test "${wx_cv_c_exto+set}" = set; then | |
11731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11732 | else | |
11733 | cat >conftest.$ac_ext <<_ACEOF | |
11734 | /* confdefs.h. */ | |
11735 | _ACEOF | |
11736 | cat confdefs.h >>conftest.$ac_ext | |
11737 | cat >>conftest.$ac_ext <<_ACEOF | |
11738 | /* end confdefs.h. */ | |
11739 | ||
11740 | int | |
11741 | main () | |
11742 | { | |
11743 | ||
11744 | ; | |
11745 | return 0; | |
11746 | } | |
11747 | _ACEOF | |
11748 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11750 | (eval $ac_compile) 2>&5 | |
11751 | ac_status=$? | |
11752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11753 | (exit $ac_status); }; then | |
11754 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11755 | case $ac_file in | |
11756 | conftest.$ac_ext.o) | |
11757 | wx_cv_c_exto="-ext o" | |
11758 | ;; | |
11759 | *) | |
11760 | ;; | |
11761 | esac | |
11762 | done | |
11763 | else | |
11764 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11765 | See \`config.log' for more details." >&5 | |
11766 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11767 | See \`config.log' for more details." >&2;} | |
11768 | { (exit 1); exit 1; }; } | |
11769 | ||
11770 | fi | |
11771 | ||
11772 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11773 | ||
11774 | fi | |
11775 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11776 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11777 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11778 | if test "c" = "c"; then | |
11779 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11780 | fi | |
11781 | if test "c" = "cxx"; then | |
11782 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11783 | fi | |
11784 | fi | |
11785 | ||
ab0ad5f1 VZ |
11786 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11787 | unset ac_cv_prog_cc_g | |
11788 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11789 | ac_save_CFLAGS=$CFLAGS |
9122d155 | 11790 | CFLAGS="-g" |
480ccd21 DE |
11791 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11792 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11793 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11795 | else | |
11796 | cat >conftest.$ac_ext <<_ACEOF | |
11797 | /* confdefs.h. */ | |
11798 | _ACEOF | |
11799 | cat confdefs.h >>conftest.$ac_ext | |
11800 | cat >>conftest.$ac_ext <<_ACEOF | |
11801 | /* end confdefs.h. */ | |
11802 | ||
11803 | int | |
11804 | main () | |
11805 | { | |
11806 | ||
11807 | ; | |
11808 | return 0; | |
11809 | } | |
11810 | _ACEOF | |
11811 | rm -f conftest.$ac_objext | |
11812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11813 | (eval $ac_compile) 2>conftest.er1 | |
11814 | ac_status=$? | |
11815 | grep -v '^ *+' conftest.er1 >conftest.err | |
11816 | rm -f conftest.er1 | |
11817 | cat conftest.err >&5 | |
11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11819 | (exit $ac_status); } && | |
6ebeb4c7 | 11820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11822 | (eval $ac_try) 2>&5 | |
11823 | ac_status=$? | |
11824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11825 | (exit $ac_status); }; } && | |
11826 | { ac_try='test -s conftest.$ac_objext' | |
11827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11828 | (eval $ac_try) 2>&5 | |
11829 | ac_status=$? | |
11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11831 | (exit $ac_status); }; }; then | |
11832 | ac_cv_prog_cc_g=yes | |
11833 | else | |
11834 | echo "$as_me: failed program was:" >&5 | |
11835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11836 | ||
11837 | ac_cv_prog_cc_g=no | |
11838 | fi | |
11839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11840 | fi | |
11841 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11842 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11843 | if test "$ac_test_CFLAGS" = set; then | |
11844 | CFLAGS=$ac_save_CFLAGS | |
11845 | elif test $ac_cv_prog_cc_g = yes; then | |
11846 | if test "$GCC" = yes; then | |
11847 | CFLAGS="-g -O2" | |
11848 | else | |
11849 | CFLAGS="-g" | |
11850 | fi | |
11851 | else | |
11852 | if test "$GCC" = yes; then | |
11853 | CFLAGS="-O2" | |
11854 | else | |
11855 | CFLAGS= | |
11856 | fi | |
11857 | fi | |
ab0ad5f1 VZ |
11858 | fi |
11859 | ac_ext=c | |
95986553 DE |
11860 | ac_cpp='$CPP $CPPFLAGS' |
11861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11864 | ||
11865 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11866 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11867 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11869 | else | |
11870 | cat >conftest.$ac_ext <<_ACEOF | |
11871 | /* confdefs.h. */ | |
11872 | _ACEOF | |
11873 | cat confdefs.h >>conftest.$ac_ext | |
11874 | cat >>conftest.$ac_ext <<_ACEOF | |
11875 | /* end confdefs.h. */ | |
11876 | ||
11877 | int | |
11878 | main () | |
11879 | { | |
11880 | #ifndef __MWERKS__ | |
11881 | choke me | |
11882 | #endif | |
11883 | ||
11884 | ; | |
11885 | return 0; | |
11886 | } | |
11887 | _ACEOF | |
11888 | rm -f conftest.$ac_objext | |
11889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11890 | (eval $ac_compile) 2>conftest.er1 | |
11891 | ac_status=$? | |
11892 | grep -v '^ *+' conftest.er1 >conftest.err | |
11893 | rm -f conftest.er1 | |
11894 | cat conftest.err >&5 | |
11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11896 | (exit $ac_status); } && | |
6ebeb4c7 | 11897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11899 | (eval $ac_try) 2>&5 | |
11900 | ac_status=$? | |
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11902 | (exit $ac_status); }; } && | |
11903 | { ac_try='test -s conftest.$ac_objext' | |
11904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11905 | (eval $ac_try) 2>&5 | |
11906 | ac_status=$? | |
11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11908 | (exit $ac_status); }; }; then | |
11909 | bakefile_compiler_mwerks=yes | |
11910 | else | |
11911 | echo "$as_me: failed program was:" >&5 | |
11912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11913 | ||
11914 | bakefile_compiler_mwerks=no | |
11915 | fi | |
11916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11917 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11918 | ||
11919 | fi | |
11920 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11921 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11922 | ||
0e6fa1d9 | 11923 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11924 | ac_ext=c |
11925 | ac_cpp='$CPP $CPPFLAGS' | |
11926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11929 | ||
11930 | ||
ab0ad5f1 | 11931 | ac_ext=c |
9273ffba DE |
11932 | ac_cpp='$CPP $CPPFLAGS' |
11933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11936 | ||
11937 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11938 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11939 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11941 | else | |
11942 | cat >conftest.$ac_ext <<_ACEOF | |
11943 | /* confdefs.h. */ | |
11944 | _ACEOF | |
11945 | cat confdefs.h >>conftest.$ac_ext | |
11946 | cat >>conftest.$ac_ext <<_ACEOF | |
11947 | /* end confdefs.h. */ | |
11948 | ||
11949 | int | |
11950 | main () | |
11951 | { | |
11952 | #ifndef __xlC__ | |
11953 | choke me | |
11954 | #endif | |
11955 | ||
11956 | ; | |
11957 | return 0; | |
11958 | } | |
11959 | _ACEOF | |
11960 | rm -f conftest.$ac_objext | |
11961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11962 | (eval $ac_compile) 2>conftest.er1 | |
11963 | ac_status=$? | |
11964 | grep -v '^ *+' conftest.er1 >conftest.err | |
11965 | rm -f conftest.er1 | |
11966 | cat conftest.err >&5 | |
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11968 | (exit $ac_status); } && | |
6ebeb4c7 | 11969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
11970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11971 | (eval $ac_try) 2>&5 | |
11972 | ac_status=$? | |
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11974 | (exit $ac_status); }; } && | |
11975 | { ac_try='test -s conftest.$ac_objext' | |
11976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11977 | (eval $ac_try) 2>&5 | |
11978 | ac_status=$? | |
11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11980 | (exit $ac_status); }; }; then | |
11981 | wx_compiler_xlc=yes | |
11982 | else | |
11983 | echo "$as_me: failed program was:" >&5 | |
11984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11985 | ||
11986 | wx_compiler_xlc=no | |
11987 | fi | |
11988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11989 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11990 | ||
11991 | fi | |
11992 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11993 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11994 | ||
0e6fa1d9 | 11995 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
11996 | ac_ext=c |
11997 | ac_cpp='$CPP $CPPFLAGS' | |
11998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12001 | ||
12002 | ||
a848cd7e | 12003 | |
6dcfc289 | 12004 | |
0ad5d837 VZ |
12005 | ac_ext=c |
12006 | ac_cpp='$CPP $CPPFLAGS' | |
12007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12010 | ||
12011 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12012 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12013 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12015 | else | |
12016 | cat >conftest.$ac_ext <<_ACEOF | |
12017 | /* confdefs.h. */ | |
12018 | _ACEOF | |
12019 | cat confdefs.h >>conftest.$ac_ext | |
12020 | cat >>conftest.$ac_ext <<_ACEOF | |
12021 | /* end confdefs.h. */ | |
12022 | ||
12023 | int | |
12024 | main () | |
12025 | { | |
12026 | ||
12027 | #ifndef _SGI_COMPILER_VERSION | |
12028 | choke me | |
12029 | #endif | |
12030 | ||
12031 | ; | |
12032 | return 0; | |
12033 | } | |
12034 | _ACEOF | |
12035 | rm -f conftest.$ac_objext | |
12036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12037 | (eval $ac_compile) 2>conftest.er1 | |
12038 | ac_status=$? | |
12039 | grep -v '^ *+' conftest.er1 >conftest.err | |
12040 | rm -f conftest.er1 | |
12041 | cat conftest.err >&5 | |
12042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12043 | (exit $ac_status); } && | |
12044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12046 | (eval $ac_try) 2>&5 | |
12047 | ac_status=$? | |
12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12049 | (exit $ac_status); }; } && | |
12050 | { ac_try='test -s conftest.$ac_objext' | |
12051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12052 | (eval $ac_try) 2>&5 | |
12053 | ac_status=$? | |
12054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12055 | (exit $ac_status); }; }; then | |
12056 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12057 | else | |
12058 | echo "$as_me: failed program was:" >&5 | |
12059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12060 | ||
12061 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12062 | ||
12063 | fi | |
12064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12065 | ||
12066 | ||
12067 | fi | |
12068 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12069 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12070 | ac_ext=c | |
12071 | ac_cpp='$CPP $CPPFLAGS' | |
12072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12075 | ||
12076 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12077 | :; SGICC=yes | |
12078 | else | |
12079 | :; | |
12080 | fi | |
12081 | ||
12082 | ||
12083 | ||
12084 | ||
a9e5b1f0 MW |
12085 | ac_ext=c |
12086 | ac_cpp='$CPP $CPPFLAGS' | |
12087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12090 | ||
12091 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12092 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12093 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12095 | else | |
12096 | cat >conftest.$ac_ext <<_ACEOF | |
12097 | /* confdefs.h. */ | |
12098 | _ACEOF | |
12099 | cat confdefs.h >>conftest.$ac_ext | |
12100 | cat >>conftest.$ac_ext <<_ACEOF | |
12101 | /* end confdefs.h. */ | |
12102 | ||
12103 | int | |
12104 | main () | |
12105 | { | |
12106 | ||
12107 | #ifndef __SUNPRO_C | |
12108 | choke me | |
12109 | #endif | |
12110 | ||
12111 | ; | |
12112 | return 0; | |
12113 | } | |
12114 | _ACEOF | |
12115 | rm -f conftest.$ac_objext | |
12116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12117 | (eval $ac_compile) 2>conftest.er1 | |
12118 | ac_status=$? | |
12119 | grep -v '^ *+' conftest.er1 >conftest.err | |
12120 | rm -f conftest.er1 | |
12121 | cat conftest.err >&5 | |
12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12123 | (exit $ac_status); } && | |
6ebeb4c7 | 12124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
12125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12126 | (eval $ac_try) 2>&5 | |
12127 | ac_status=$? | |
12128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12129 | (exit $ac_status); }; } && | |
12130 | { ac_try='test -s conftest.$ac_objext' | |
12131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12132 | (eval $ac_try) 2>&5 | |
12133 | ac_status=$? | |
12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12135 | (exit $ac_status); }; }; then | |
12136 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12137 | else | |
12138 | echo "$as_me: failed program was:" >&5 | |
12139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12140 | ||
12141 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12142 | ||
12143 | fi | |
12144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12145 | ||
12146 | ||
12147 | fi | |
12148 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12149 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12150 | ac_ext=c | |
12151 | ac_cpp='$CPP $CPPFLAGS' | |
12152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12155 | ||
12156 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12157 | :; SUNCC=yes | |
12158 | else | |
12159 | :; | |
12160 | fi | |
12161 | ||
12162 | ||
ab0ad5f1 | 12163 | fi |
a9e5b1f0 MW |
12164 | |
12165 | ||
a848cd7e SC |
12166 | ac_ext=c |
12167 | ac_cpp='$CPP $CPPFLAGS' | |
12168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12171 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12172 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12173 | # On Suns, sometimes $CPP names a directory. | |
12174 | if test -n "$CPP" && test -d "$CPP"; then | |
12175 | CPP= | |
12176 | fi | |
12177 | if test -z "$CPP"; then | |
12178 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12180 | else | |
12181 | # Double quotes because CPP needs to be expanded | |
12182 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12183 | do | |
12184 | ac_preproc_ok=false | |
12185 | for ac_c_preproc_warn_flag in '' yes | |
12186 | do | |
12187 | # Use a header file that comes with gcc, so configuring glibc | |
12188 | # with a fresh cross-compiler works. | |
12189 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12190 | # <limits.h> exists even on freestanding compilers. | |
12191 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12192 | # not just through cpp. "Syntax error" is here to catch this case. | |
12193 | cat >conftest.$ac_ext <<_ACEOF | |
12194 | /* confdefs.h. */ | |
12195 | _ACEOF | |
12196 | cat confdefs.h >>conftest.$ac_ext | |
12197 | cat >>conftest.$ac_ext <<_ACEOF | |
12198 | /* end confdefs.h. */ | |
12199 | #ifdef __STDC__ | |
12200 | # include <limits.h> | |
12201 | #else | |
12202 | # include <assert.h> | |
12203 | #endif | |
ac1cb8d3 | 12204 | Syntax error |
a848cd7e SC |
12205 | _ACEOF |
12206 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12208 | ac_status=$? | |
12209 | grep -v '^ *+' conftest.er1 >conftest.err | |
12210 | rm -f conftest.er1 | |
12211 | cat conftest.err >&5 | |
12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12213 | (exit $ac_status); } >/dev/null; then | |
12214 | if test -s conftest.err; then | |
12215 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12216 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12217 | else |
12218 | ac_cpp_err= | |
12219 | fi | |
12220 | else | |
12221 | ac_cpp_err=yes | |
12222 | fi | |
12223 | if test -z "$ac_cpp_err"; then | |
12224 | : | |
12225 | else | |
12226 | echo "$as_me: failed program was:" >&5 | |
12227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12228 | ||
12229 | # Broken: fails on valid input. | |
12230 | continue | |
12231 | fi | |
12232 | rm -f conftest.err conftest.$ac_ext | |
12233 | ||
12234 | # OK, works on sane cases. Now check whether non-existent headers | |
12235 | # can be detected and how. | |
12236 | cat >conftest.$ac_ext <<_ACEOF | |
12237 | /* confdefs.h. */ | |
12238 | _ACEOF | |
12239 | cat confdefs.h >>conftest.$ac_ext | |
12240 | cat >>conftest.$ac_ext <<_ACEOF | |
12241 | /* end confdefs.h. */ | |
12242 | #include <ac_nonexistent.h> | |
12243 | _ACEOF | |
12244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12246 | ac_status=$? | |
12247 | grep -v '^ *+' conftest.er1 >conftest.err | |
12248 | rm -f conftest.er1 | |
12249 | cat conftest.err >&5 | |
12250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12251 | (exit $ac_status); } >/dev/null; then | |
12252 | if test -s conftest.err; then | |
12253 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12254 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12255 | else |
12256 | ac_cpp_err= | |
12257 | fi | |
12258 | else | |
12259 | ac_cpp_err=yes | |
12260 | fi | |
12261 | if test -z "$ac_cpp_err"; then | |
12262 | # Broken: success on invalid input. | |
12263 | continue | |
12264 | else | |
12265 | echo "$as_me: failed program was:" >&5 | |
12266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12267 | ||
12268 | # Passes both tests. | |
12269 | ac_preproc_ok=: | |
12270 | break | |
12271 | fi | |
12272 | rm -f conftest.err conftest.$ac_ext | |
12273 | ||
12274 | done | |
12275 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12276 | rm -f conftest.err conftest.$ac_ext | |
12277 | if $ac_preproc_ok; then | |
12278 | break | |
12279 | fi | |
12280 | ||
12281 | done | |
12282 | ac_cv_prog_CPP=$CPP | |
12283 | ||
12284 | fi | |
12285 | CPP=$ac_cv_prog_CPP | |
12286 | else | |
12287 | ac_cv_prog_CPP=$CPP | |
12288 | fi | |
12289 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12290 | echo "${ECHO_T}$CPP" >&6 | |
12291 | ac_preproc_ok=false | |
12292 | for ac_c_preproc_warn_flag in '' yes | |
12293 | do | |
12294 | # Use a header file that comes with gcc, so configuring glibc | |
12295 | # with a fresh cross-compiler works. | |
12296 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12297 | # <limits.h> exists even on freestanding compilers. | |
12298 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12299 | # not just through cpp. "Syntax error" is here to catch this case. | |
12300 | cat >conftest.$ac_ext <<_ACEOF | |
12301 | /* confdefs.h. */ | |
12302 | _ACEOF | |
12303 | cat confdefs.h >>conftest.$ac_ext | |
12304 | cat >>conftest.$ac_ext <<_ACEOF | |
12305 | /* end confdefs.h. */ | |
12306 | #ifdef __STDC__ | |
12307 | # include <limits.h> | |
12308 | #else | |
12309 | # include <assert.h> | |
12310 | #endif | |
ac1cb8d3 | 12311 | Syntax error |
a848cd7e SC |
12312 | _ACEOF |
12313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12315 | ac_status=$? | |
12316 | grep -v '^ *+' conftest.er1 >conftest.err | |
12317 | rm -f conftest.er1 | |
12318 | cat conftest.err >&5 | |
12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12320 | (exit $ac_status); } >/dev/null; then | |
12321 | if test -s conftest.err; then | |
12322 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12323 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12324 | else |
12325 | ac_cpp_err= | |
12326 | fi | |
12327 | else | |
12328 | ac_cpp_err=yes | |
12329 | fi | |
12330 | if test -z "$ac_cpp_err"; then | |
12331 | : | |
12332 | else | |
12333 | echo "$as_me: failed program was:" >&5 | |
12334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12335 | ||
12336 | # Broken: fails on valid input. | |
12337 | continue | |
12338 | fi | |
12339 | rm -f conftest.err conftest.$ac_ext | |
12340 | ||
12341 | # OK, works on sane cases. Now check whether non-existent headers | |
12342 | # can be detected and how. | |
12343 | cat >conftest.$ac_ext <<_ACEOF | |
12344 | /* confdefs.h. */ | |
12345 | _ACEOF | |
12346 | cat confdefs.h >>conftest.$ac_ext | |
12347 | cat >>conftest.$ac_ext <<_ACEOF | |
12348 | /* end confdefs.h. */ | |
12349 | #include <ac_nonexistent.h> | |
12350 | _ACEOF | |
12351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12353 | ac_status=$? | |
12354 | grep -v '^ *+' conftest.er1 >conftest.err | |
12355 | rm -f conftest.er1 | |
12356 | cat conftest.err >&5 | |
12357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12358 | (exit $ac_status); } >/dev/null; then | |
12359 | if test -s conftest.err; then | |
12360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12362 | else |
12363 | ac_cpp_err= | |
12364 | fi | |
12365 | else | |
12366 | ac_cpp_err=yes | |
12367 | fi | |
12368 | if test -z "$ac_cpp_err"; then | |
12369 | # Broken: success on invalid input. | |
12370 | continue | |
12371 | else | |
12372 | echo "$as_me: failed program was:" >&5 | |
12373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12374 | ||
12375 | # Passes both tests. | |
12376 | ac_preproc_ok=: | |
12377 | break | |
12378 | fi | |
12379 | rm -f conftest.err conftest.$ac_ext | |
12380 | ||
12381 | done | |
12382 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12383 | rm -f conftest.err conftest.$ac_ext | |
12384 | if $ac_preproc_ok; then | |
12385 | : | |
12386 | else | |
12387 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12388 | See \`config.log' for more details." >&5 | |
12389 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12390 | See \`config.log' for more details." >&2;} | |
12391 | { (exit 1); exit 1; }; } | |
12392 | fi | |
12393 | ||
12394 | ac_ext=c | |
12395 | ac_cpp='$CPP $CPPFLAGS' | |
12396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12399 | ||
12400 | ||
12401 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12402 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12403 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12405 | else | |
12406 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12407 | then ac_cv_prog_egrep='grep -E' | |
12408 | else ac_cv_prog_egrep='egrep' | |
12409 | fi | |
12410 | fi | |
12411 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12412 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12413 | EGREP=$ac_cv_prog_egrep | |
12414 | ||
12415 | ||
12416 | if test $ac_cv_c_compiler_gnu = yes; then | |
12417 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12418 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12419 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12421 | else | |
12422 | ac_pattern="Autoconf.*'x'" | |
12423 | cat >conftest.$ac_ext <<_ACEOF | |
12424 | /* confdefs.h. */ | |
12425 | _ACEOF | |
12426 | cat confdefs.h >>conftest.$ac_ext | |
12427 | cat >>conftest.$ac_ext <<_ACEOF | |
12428 | /* end confdefs.h. */ | |
12429 | #include <sgtty.h> | |
12430 | Autoconf TIOCGETP | |
12431 | _ACEOF | |
12432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12433 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12434 | ac_cv_prog_gcc_traditional=yes | |
12435 | else | |
12436 | ac_cv_prog_gcc_traditional=no | |
12437 | fi | |
12438 | rm -f conftest* | |
12439 | ||
12440 | ||
12441 | if test $ac_cv_prog_gcc_traditional = no; then | |
12442 | cat >conftest.$ac_ext <<_ACEOF | |
12443 | /* confdefs.h. */ | |
12444 | _ACEOF | |
12445 | cat confdefs.h >>conftest.$ac_ext | |
12446 | cat >>conftest.$ac_ext <<_ACEOF | |
12447 | /* end confdefs.h. */ | |
12448 | #include <termio.h> | |
12449 | Autoconf TCGETA | |
12450 | _ACEOF | |
12451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12452 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12453 | ac_cv_prog_gcc_traditional=yes | |
12454 | fi | |
12455 | rm -f conftest* | |
12456 | ||
12457 | fi | |
12458 | fi | |
12459 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12460 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12461 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12462 | CC="$CC -traditional" | |
12463 | fi | |
12464 | fi | |
12465 | ||
12466 | ||
12467 | ||
12468 | ||
12469 | ac_ext=cc | |
12470 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12471 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12472 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12473 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12474 | ||
12475 | ||
12476 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12477 | |
12478 | ||
12479 | ac_ext=cc | |
a848cd7e SC |
12480 | ac_cpp='$CXXCPP $CPPFLAGS' |
12481 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12482 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12483 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12484 | if test -n "$ac_tool_prefix"; then | |
12485 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12486 | do | |
12487 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12488 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12491 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12493 | else | |
12494 | if test -n "$CXX"; then | |
12495 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12496 | else | |
12497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12498 | for as_dir in $PATH | |
12499 | do | |
12500 | IFS=$as_save_IFS | |
12501 | test -z "$as_dir" && as_dir=. | |
12502 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12504 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12506 | break 2 | |
12507 | fi | |
12508 | done | |
12509 | done | |
12510 | ||
12511 | fi | |
12512 | fi | |
12513 | CXX=$ac_cv_prog_CXX | |
12514 | if test -n "$CXX"; then | |
12515 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12516 | echo "${ECHO_T}$CXX" >&6 | |
12517 | else | |
12518 | echo "$as_me:$LINENO: result: no" >&5 | |
12519 | echo "${ECHO_T}no" >&6 | |
12520 | fi | |
12521 | ||
12522 | test -n "$CXX" && break | |
12523 | done | |
12524 | fi | |
12525 | if test -z "$CXX"; then | |
12526 | ac_ct_CXX=$CXX | |
12527 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12528 | do | |
12529 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12530 | set dummy $ac_prog; ac_word=$2 | |
12531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12533 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12535 | else | |
12536 | if test -n "$ac_ct_CXX"; then | |
12537 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12538 | else | |
12539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12540 | for as_dir in $PATH | |
12541 | do | |
12542 | IFS=$as_save_IFS | |
12543 | test -z "$as_dir" && as_dir=. | |
12544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12546 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12548 | break 2 | |
12549 | fi | |
12550 | done | |
12551 | done | |
12552 | ||
12553 | fi | |
12554 | fi | |
12555 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12556 | if test -n "$ac_ct_CXX"; then | |
12557 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12558 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12559 | else | |
12560 | echo "$as_me:$LINENO: result: no" >&5 | |
12561 | echo "${ECHO_T}no" >&6 | |
12562 | fi | |
12563 | ||
12564 | test -n "$ac_ct_CXX" && break | |
12565 | done | |
12566 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12567 | ||
12568 | CXX=$ac_ct_CXX | |
12569 | fi | |
12570 | ||
12571 | ||
12572 | # Provide some information about the compiler. | |
12573 | echo "$as_me:$LINENO:" \ | |
12574 | "checking for C++ compiler version" >&5 | |
12575 | ac_compiler=`set X $ac_compile; echo $2` | |
12576 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12577 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12578 | ac_status=$? | |
12579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12580 | (exit $ac_status); } | |
12581 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12582 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12583 | ac_status=$? | |
12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12585 | (exit $ac_status); } | |
12586 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12587 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12588 | ac_status=$? | |
12589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12590 | (exit $ac_status); } | |
12591 | ||
12592 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12593 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12594 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12596 | else | |
12597 | cat >conftest.$ac_ext <<_ACEOF | |
12598 | /* confdefs.h. */ | |
12599 | _ACEOF | |
12600 | cat confdefs.h >>conftest.$ac_ext | |
12601 | cat >>conftest.$ac_ext <<_ACEOF | |
12602 | /* end confdefs.h. */ | |
12603 | ||
12604 | int | |
12605 | main () | |
12606 | { | |
12607 | #ifndef __GNUC__ | |
12608 | choke me | |
12609 | #endif | |
12610 | ||
12611 | ; | |
12612 | return 0; | |
12613 | } | |
12614 | _ACEOF | |
12615 | rm -f conftest.$ac_objext | |
12616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12618 | ac_status=$? |
ac1cb8d3 VS |
12619 | grep -v '^ *+' conftest.er1 >conftest.err |
12620 | rm -f conftest.er1 | |
12621 | cat conftest.err >&5 | |
a848cd7e SC |
12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12623 | (exit $ac_status); } && | |
6ebeb4c7 | 12624 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12626 | (eval $ac_try) 2>&5 | |
12627 | ac_status=$? | |
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12629 | (exit $ac_status); }; } && | |
12630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12632 | (eval $ac_try) 2>&5 | |
12633 | ac_status=$? | |
12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12635 | (exit $ac_status); }; }; then | |
12636 | ac_compiler_gnu=yes | |
12637 | else | |
12638 | echo "$as_me: failed program was:" >&5 | |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12640 | ||
12641 | ac_compiler_gnu=no | |
12642 | fi | |
ac1cb8d3 | 12643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12644 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12645 | ||
12646 | fi | |
12647 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12648 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12649 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12650 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12651 | ac_save_CXXFLAGS=$CXXFLAGS | |
12652 | CXXFLAGS="-g" | |
12653 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12654 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12655 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12657 | else | |
12658 | cat >conftest.$ac_ext <<_ACEOF | |
12659 | /* confdefs.h. */ | |
12660 | _ACEOF | |
12661 | cat confdefs.h >>conftest.$ac_ext | |
12662 | cat >>conftest.$ac_ext <<_ACEOF | |
12663 | /* end confdefs.h. */ | |
12664 | ||
12665 | int | |
12666 | main () | |
12667 | { | |
12668 | ||
12669 | ; | |
12670 | return 0; | |
12671 | } | |
12672 | _ACEOF | |
12673 | rm -f conftest.$ac_objext | |
12674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12675 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12676 | ac_status=$? |
ac1cb8d3 VS |
12677 | grep -v '^ *+' conftest.er1 >conftest.err |
12678 | rm -f conftest.er1 | |
12679 | cat conftest.err >&5 | |
a848cd7e SC |
12680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12681 | (exit $ac_status); } && | |
6ebeb4c7 | 12682 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12684 | (eval $ac_try) 2>&5 | |
12685 | ac_status=$? | |
12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12687 | (exit $ac_status); }; } && | |
12688 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12690 | (eval $ac_try) 2>&5 | |
12691 | ac_status=$? | |
12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12693 | (exit $ac_status); }; }; then | |
12694 | ac_cv_prog_cxx_g=yes | |
12695 | else | |
12696 | echo "$as_me: failed program was:" >&5 | |
12697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12698 | ||
12699 | ac_cv_prog_cxx_g=no | |
12700 | fi | |
ac1cb8d3 | 12701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12702 | fi |
12703 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12704 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12705 | if test "$ac_test_CXXFLAGS" = set; then | |
12706 | CXXFLAGS=$ac_save_CXXFLAGS | |
12707 | elif test $ac_cv_prog_cxx_g = yes; then | |
12708 | if test "$GXX" = yes; then | |
9122d155 | 12709 | CXXFLAGS="-g -O2" |
a848cd7e | 12710 | else |
9122d155 | 12711 | CXXFLAGS="-g" |
a848cd7e SC |
12712 | fi |
12713 | else | |
12714 | if test "$GXX" = yes; then | |
12715 | CXXFLAGS="-O2" | |
12716 | else | |
12717 | CXXFLAGS= | |
12718 | fi | |
12719 | fi | |
12720 | for ac_declaration in \ | |
ac1cb8d3 | 12721 | '' \ |
a848cd7e SC |
12722 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12723 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12724 | 'extern "C" void exit (int) throw ();' \ | |
12725 | 'extern "C" void exit (int);' \ | |
12726 | 'void exit (int);' | |
12727 | do | |
12728 | cat >conftest.$ac_ext <<_ACEOF | |
12729 | /* confdefs.h. */ | |
12730 | _ACEOF | |
12731 | cat confdefs.h >>conftest.$ac_ext | |
12732 | cat >>conftest.$ac_ext <<_ACEOF | |
12733 | /* end confdefs.h. */ | |
de59c161 | 12734 | $ac_declaration |
ac1cb8d3 | 12735 | #include <stdlib.h> |
a848cd7e SC |
12736 | int |
12737 | main () | |
12738 | { | |
12739 | exit (42); | |
12740 | ; | |
12741 | return 0; | |
12742 | } | |
12743 | _ACEOF | |
12744 | rm -f conftest.$ac_objext | |
12745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12746 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12747 | ac_status=$? |
ac1cb8d3 VS |
12748 | grep -v '^ *+' conftest.er1 >conftest.err |
12749 | rm -f conftest.er1 | |
12750 | cat conftest.err >&5 | |
a848cd7e SC |
12751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12752 | (exit $ac_status); } && | |
6ebeb4c7 | 12753 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12755 | (eval $ac_try) 2>&5 | |
12756 | ac_status=$? | |
12757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12758 | (exit $ac_status); }; } && | |
12759 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12761 | (eval $ac_try) 2>&5 | |
12762 | ac_status=$? | |
12763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12764 | (exit $ac_status); }; }; then | |
12765 | : | |
12766 | else | |
12767 | echo "$as_me: failed program was:" >&5 | |
12768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12769 | ||
12770 | continue | |
12771 | fi | |
ac1cb8d3 | 12772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12773 | cat >conftest.$ac_ext <<_ACEOF |
12774 | /* confdefs.h. */ | |
12775 | _ACEOF | |
12776 | cat confdefs.h >>conftest.$ac_ext | |
12777 | cat >>conftest.$ac_ext <<_ACEOF | |
12778 | /* end confdefs.h. */ | |
12779 | $ac_declaration | |
12780 | int | |
12781 | main () | |
12782 | { | |
12783 | exit (42); | |
12784 | ; | |
12785 | return 0; | |
12786 | } | |
12787 | _ACEOF | |
12788 | rm -f conftest.$ac_objext | |
12789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12790 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12791 | ac_status=$? |
ac1cb8d3 VS |
12792 | grep -v '^ *+' conftest.er1 >conftest.err |
12793 | rm -f conftest.er1 | |
12794 | cat conftest.err >&5 | |
a848cd7e SC |
12795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12796 | (exit $ac_status); } && | |
6ebeb4c7 | 12797 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12799 | (eval $ac_try) 2>&5 | |
12800 | ac_status=$? | |
12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12802 | (exit $ac_status); }; } && | |
12803 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
12809 | break | |
12810 | else | |
12811 | echo "$as_me: failed program was:" >&5 | |
12812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12813 | ||
12814 | fi | |
ac1cb8d3 | 12815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12816 | done |
12817 | rm -f conftest* | |
12818 | if test -n "$ac_declaration"; then | |
12819 | echo '#ifdef __cplusplus' >>confdefs.h | |
12820 | echo $ac_declaration >>confdefs.h | |
12821 | echo '#endif' >>confdefs.h | |
12822 | fi | |
12823 | ||
12824 | ac_ext=cc | |
12825 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12826 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12827 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12828 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12829 | ||
ab0ad5f1 VZ |
12830 | |
12831 | ||
12832 | ac_ext=cc | |
12833 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12837 | ||
12838 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
12839 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
12840 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
12841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12842 | else | |
12843 | cat >conftest.$ac_ext <<_ACEOF | |
12844 | /* confdefs.h. */ | |
12845 | _ACEOF | |
12846 | cat confdefs.h >>conftest.$ac_ext | |
12847 | cat >>conftest.$ac_ext <<_ACEOF | |
12848 | /* end confdefs.h. */ | |
12849 | ||
12850 | int | |
12851 | main () | |
12852 | { | |
12853 | ||
12854 | #ifndef __INTEL_COMPILER | |
12855 | choke me | |
12856 | #endif | |
12857 | ||
12858 | ; | |
12859 | return 0; | |
12860 | } | |
12861 | _ACEOF | |
12862 | rm -f conftest.$ac_objext | |
12863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12864 | (eval $ac_compile) 2>conftest.er1 | |
12865 | ac_status=$? | |
12866 | grep -v '^ *+' conftest.er1 >conftest.err | |
12867 | rm -f conftest.er1 | |
12868 | cat conftest.err >&5 | |
12869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12870 | (exit $ac_status); } && | |
12871 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12873 | (eval $ac_try) 2>&5 | |
12874 | ac_status=$? | |
12875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12876 | (exit $ac_status); }; } && | |
12877 | { ac_try='test -s conftest.$ac_objext' | |
12878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12879 | (eval $ac_try) 2>&5 | |
12880 | ac_status=$? | |
12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12882 | (exit $ac_status); }; }; then | |
12883 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
12884 | else | |
12885 | echo "$as_me: failed program was:" >&5 | |
12886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12887 | ||
12888 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
12889 | ||
12890 | fi | |
12891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12892 | ||
12893 | ||
12894 | fi | |
12895 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
12896 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
12897 | ac_ext=cc | |
12898 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12902 | ||
12903 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
12904 | :; INTELCXX=yes | |
12905 | else | |
12906 | :; | |
12907 | fi | |
12908 | ||
12909 | ||
12910 | if test "x$GXX" != "xyes"; then | |
12911 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 DE |
12912 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12913 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12915 | else | |
12916 | cat >conftest.$ac_ext <<_ACEOF | |
12917 | /* confdefs.h. */ | |
12918 | _ACEOF | |
12919 | cat confdefs.h >>conftest.$ac_ext | |
12920 | cat >>conftest.$ac_ext <<_ACEOF | |
12921 | /* end confdefs.h. */ | |
12922 | ||
12923 | int | |
12924 | main () | |
12925 | { | |
12926 | ||
12927 | ; | |
12928 | return 0; | |
12929 | } | |
12930 | _ACEOF | |
12931 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12933 | (eval $ac_compile) 2>&5 | |
12934 | ac_status=$? | |
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12936 | (exit $ac_status); }; then | |
12937 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12938 | case $ac_file in | |
12939 | conftest.$ac_ext.o) | |
12940 | wx_cv_cxx_exto="-ext o" | |
12941 | ;; | |
12942 | *) | |
12943 | ;; | |
12944 | esac | |
12945 | done | |
12946 | else | |
12947 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12948 | See \`config.log' for more details." >&5 | |
12949 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12950 | See \`config.log' for more details." >&2;} | |
12951 | { (exit 1); exit 1; }; } | |
12952 | ||
12953 | fi | |
12954 | ||
12955 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12956 | ||
12957 | fi | |
12958 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12959 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12960 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12961 | if test "cxx" = "c"; then | |
12962 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12963 | fi | |
12964 | if test "cxx" = "cxx"; then | |
12965 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12966 | fi | |
12967 | fi | |
12968 | ||
ab0ad5f1 VZ |
12969 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
12970 | unset ac_cv_prog_cxx_g | |
12971 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
12972 | ac_save_CXXFLAGS=$CXXFLAGS |
12973 | CXXFLAGS="-g" | |
12974 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12975 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12976 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12978 | else | |
12979 | cat >conftest.$ac_ext <<_ACEOF | |
12980 | /* confdefs.h. */ | |
12981 | _ACEOF | |
12982 | cat confdefs.h >>conftest.$ac_ext | |
12983 | cat >>conftest.$ac_ext <<_ACEOF | |
12984 | /* end confdefs.h. */ | |
12985 | ||
12986 | int | |
12987 | main () | |
12988 | { | |
12989 | ||
12990 | ; | |
12991 | return 0; | |
12992 | } | |
12993 | _ACEOF | |
12994 | rm -f conftest.$ac_objext | |
12995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12996 | (eval $ac_compile) 2>conftest.er1 | |
12997 | ac_status=$? | |
12998 | grep -v '^ *+' conftest.er1 >conftest.err | |
12999 | rm -f conftest.er1 | |
13000 | cat conftest.err >&5 | |
13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13002 | (exit $ac_status); } && | |
6ebeb4c7 | 13003 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
13004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13005 | (eval $ac_try) 2>&5 | |
13006 | ac_status=$? | |
13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13008 | (exit $ac_status); }; } && | |
13009 | { ac_try='test -s conftest.$ac_objext' | |
13010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13011 | (eval $ac_try) 2>&5 | |
13012 | ac_status=$? | |
13013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13014 | (exit $ac_status); }; }; then | |
13015 | ac_cv_prog_cxx_g=yes | |
13016 | else | |
13017 | echo "$as_me: failed program was:" >&5 | |
13018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13019 | ||
13020 | ac_cv_prog_cxx_g=no | |
13021 | fi | |
13022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13023 | fi | |
13024 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13025 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13026 | if test "$ac_test_CXXFLAGS" = set; then | |
13027 | CXXFLAGS=$ac_save_CXXFLAGS | |
13028 | elif test $ac_cv_prog_cxx_g = yes; then | |
13029 | if test "$GXX" = yes; then | |
9122d155 | 13030 | CXXFLAGS="-g -O2" |
480ccd21 | 13031 | else |
9122d155 | 13032 | CXXFLAGS="-g" |
480ccd21 DE |
13033 | fi |
13034 | else | |
13035 | if test "$GXX" = yes; then | |
13036 | CXXFLAGS="-O2" | |
13037 | else | |
13038 | CXXFLAGS= | |
13039 | fi | |
13040 | fi | |
ab0ad5f1 VZ |
13041 | fi |
13042 | ac_ext=cc | |
95986553 DE |
13043 | ac_cpp='$CXXCPP $CPPFLAGS' |
13044 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13045 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13046 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13047 | ||
13048 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13049 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13050 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13052 | else | |
13053 | cat >conftest.$ac_ext <<_ACEOF | |
13054 | /* confdefs.h. */ | |
13055 | _ACEOF | |
13056 | cat confdefs.h >>conftest.$ac_ext | |
13057 | cat >>conftest.$ac_ext <<_ACEOF | |
13058 | /* end confdefs.h. */ | |
13059 | ||
13060 | int | |
13061 | main () | |
13062 | { | |
13063 | #ifndef __MWERKS__ | |
13064 | choke me | |
13065 | #endif | |
13066 | ||
13067 | ; | |
13068 | return 0; | |
13069 | } | |
13070 | _ACEOF | |
13071 | rm -f conftest.$ac_objext | |
13072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13073 | (eval $ac_compile) 2>conftest.er1 | |
13074 | ac_status=$? | |
13075 | grep -v '^ *+' conftest.er1 >conftest.err | |
13076 | rm -f conftest.er1 | |
13077 | cat conftest.err >&5 | |
13078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13079 | (exit $ac_status); } && | |
6ebeb4c7 | 13080 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
13081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13082 | (eval $ac_try) 2>&5 | |
13083 | ac_status=$? | |
13084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13085 | (exit $ac_status); }; } && | |
13086 | { ac_try='test -s conftest.$ac_objext' | |
13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13088 | (eval $ac_try) 2>&5 | |
13089 | ac_status=$? | |
13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13091 | (exit $ac_status); }; }; then | |
13092 | bakefile_compiler_mwerks=yes | |
13093 | else | |
13094 | echo "$as_me: failed program was:" >&5 | |
13095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13096 | ||
13097 | bakefile_compiler_mwerks=no | |
13098 | fi | |
13099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13100 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13101 | ||
13102 | fi | |
13103 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13104 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13105 | ||
0e6fa1d9 | 13106 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13107 | ac_ext=cc |
13108 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13109 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13110 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13111 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13112 | ||
13113 | ||
ab0ad5f1 | 13114 | ac_ext=cc |
9273ffba DE |
13115 | ac_cpp='$CXXCPP $CPPFLAGS' |
13116 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13117 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13118 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13119 | ||
13120 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13121 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
13122 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
13123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13124 | else | |
13125 | cat >conftest.$ac_ext <<_ACEOF | |
13126 | /* confdefs.h. */ | |
13127 | _ACEOF | |
13128 | cat confdefs.h >>conftest.$ac_ext | |
13129 | cat >>conftest.$ac_ext <<_ACEOF | |
13130 | /* end confdefs.h. */ | |
13131 | ||
13132 | int | |
13133 | main () | |
13134 | { | |
13135 | #ifndef __xlC__ | |
13136 | choke me | |
13137 | #endif | |
13138 | ||
13139 | ; | |
13140 | return 0; | |
13141 | } | |
13142 | _ACEOF | |
13143 | rm -f conftest.$ac_objext | |
13144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13145 | (eval $ac_compile) 2>conftest.er1 | |
13146 | ac_status=$? | |
13147 | grep -v '^ *+' conftest.er1 >conftest.err | |
13148 | rm -f conftest.er1 | |
13149 | cat conftest.err >&5 | |
13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13151 | (exit $ac_status); } && | |
6ebeb4c7 | 13152 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13154 | (eval $ac_try) 2>&5 | |
13155 | ac_status=$? | |
13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13157 | (exit $ac_status); }; } && | |
13158 | { ac_try='test -s conftest.$ac_objext' | |
13159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13160 | (eval $ac_try) 2>&5 | |
13161 | ac_status=$? | |
13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13163 | (exit $ac_status); }; }; then | |
13164 | wx_compiler_xlc=yes | |
13165 | else | |
13166 | echo "$as_me: failed program was:" >&5 | |
13167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13168 | ||
13169 | wx_compiler_xlc=no | |
13170 | fi | |
13171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13172 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
13173 | ||
13174 | fi | |
13175 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
13176 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
13177 | ||
0e6fa1d9 | 13178 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13179 | ac_ext=cc |
13180 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13181 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13182 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13183 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13184 | ||
13185 | ||
95986553 | 13186 | |
6dcfc289 | 13187 | |
0ad5d837 VZ |
13188 | ac_ext=cc |
13189 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13190 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13191 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13192 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13193 | ||
13194 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13195 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13196 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13198 | else | |
13199 | cat >conftest.$ac_ext <<_ACEOF | |
13200 | /* confdefs.h. */ | |
13201 | _ACEOF | |
13202 | cat confdefs.h >>conftest.$ac_ext | |
13203 | cat >>conftest.$ac_ext <<_ACEOF | |
13204 | /* end confdefs.h. */ | |
13205 | ||
13206 | int | |
13207 | main () | |
13208 | { | |
13209 | ||
13210 | #ifndef _SGI_COMPILER_VERSION | |
13211 | choke me | |
13212 | #endif | |
13213 | ||
13214 | ; | |
13215 | return 0; | |
13216 | } | |
13217 | _ACEOF | |
13218 | rm -f conftest.$ac_objext | |
13219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13220 | (eval $ac_compile) 2>conftest.er1 | |
13221 | ac_status=$? | |
13222 | grep -v '^ *+' conftest.er1 >conftest.err | |
13223 | rm -f conftest.er1 | |
13224 | cat conftest.err >&5 | |
13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13226 | (exit $ac_status); } && | |
13227 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
13228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13229 | (eval $ac_try) 2>&5 | |
13230 | ac_status=$? | |
13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13232 | (exit $ac_status); }; } && | |
13233 | { ac_try='test -s conftest.$ac_objext' | |
13234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13235 | (eval $ac_try) 2>&5 | |
13236 | ac_status=$? | |
13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13238 | (exit $ac_status); }; }; then | |
13239 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13240 | else | |
13241 | echo "$as_me: failed program was:" >&5 | |
13242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13243 | ||
13244 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13245 | ||
13246 | fi | |
13247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13248 | ||
13249 | ||
13250 | fi | |
13251 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13252 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13253 | ac_ext=cc | |
13254 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13255 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13256 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13257 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13258 | ||
13259 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13260 | :; SGICXX=yes | |
13261 | else | |
13262 | :; | |
13263 | fi | |
13264 | ||
13265 | ||
13266 | ||
13267 | ||
a9e5b1f0 MW |
13268 | ac_ext=cc |
13269 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13270 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13271 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13272 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13273 | ||
13274 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
13275 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
13276 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
13277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13278 | else | |
13279 | cat >conftest.$ac_ext <<_ACEOF | |
13280 | /* confdefs.h. */ | |
13281 | _ACEOF | |
13282 | cat confdefs.h >>conftest.$ac_ext | |
13283 | cat >>conftest.$ac_ext <<_ACEOF | |
13284 | /* end confdefs.h. */ | |
13285 | ||
13286 | int | |
13287 | main () | |
13288 | { | |
13289 | ||
13290 | #ifndef __SUNPRO_CC | |
13291 | choke me | |
13292 | #endif | |
13293 | ||
13294 | ; | |
13295 | return 0; | |
13296 | } | |
13297 | _ACEOF | |
13298 | rm -f conftest.$ac_objext | |
13299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13300 | (eval $ac_compile) 2>conftest.er1 | |
13301 | ac_status=$? | |
13302 | grep -v '^ *+' conftest.er1 >conftest.err | |
13303 | rm -f conftest.er1 | |
13304 | cat conftest.err >&5 | |
13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13306 | (exit $ac_status); } && | |
6ebeb4c7 | 13307 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
13308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13309 | (eval $ac_try) 2>&5 | |
13310 | ac_status=$? | |
13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13312 | (exit $ac_status); }; } && | |
13313 | { ac_try='test -s conftest.$ac_objext' | |
13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13315 | (eval $ac_try) 2>&5 | |
13316 | ac_status=$? | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); }; }; then | |
13319 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
13325 | ||
13326 | fi | |
13327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13328 | ||
13329 | ||
13330 | fi | |
13331 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
13332 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
13333 | ac_ext=cc | |
13334 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13335 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13336 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13337 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13338 | ||
13339 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
13340 | :; SUNCXX=yes | |
13341 | else | |
13342 | :; | |
13343 | fi | |
13344 | ||
13345 | ||
ab0ad5f1 | 13346 | fi |
a9e5b1f0 MW |
13347 | |
13348 | ||
a848cd7e SC |
13349 | ac_ext=c |
13350 | ac_cpp='$CPP $CPPFLAGS' | |
13351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13354 | ||
13355 | ||
a848cd7e SC |
13356 | if test -n "$ac_tool_prefix"; then |
13357 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
13358 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
13359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13361 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
13362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13363 | else | |
13364 | if test -n "$RANLIB"; then | |
13365 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
13366 | else | |
13367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13368 | for as_dir in $PATH | |
13369 | do | |
13370 | IFS=$as_save_IFS | |
13371 | test -z "$as_dir" && as_dir=. | |
13372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13374 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
13375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13376 | break 2 | |
13377 | fi | |
13378 | done | |
13379 | done | |
13380 | ||
13381 | fi | |
13382 | fi | |
13383 | RANLIB=$ac_cv_prog_RANLIB | |
13384 | if test -n "$RANLIB"; then | |
13385 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
13386 | echo "${ECHO_T}$RANLIB" >&6 | |
13387 | else | |
13388 | echo "$as_me:$LINENO: result: no" >&5 | |
13389 | echo "${ECHO_T}no" >&6 | |
13390 | fi | |
13391 | ||
13392 | fi | |
13393 | if test -z "$ac_cv_prog_RANLIB"; then | |
13394 | ac_ct_RANLIB=$RANLIB | |
13395 | # Extract the first word of "ranlib", so it can be a program name with args. | |
13396 | set dummy ranlib; ac_word=$2 | |
13397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13399 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
13400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13401 | else | |
13402 | if test -n "$ac_ct_RANLIB"; then | |
13403 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
13404 | else | |
13405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13406 | for as_dir in $PATH | |
13407 | do | |
13408 | IFS=$as_save_IFS | |
13409 | test -z "$as_dir" && as_dir=. | |
13410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13412 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
13413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13414 | break 2 | |
13415 | fi | |
13416 | done | |
13417 | done | |
13418 | ||
13419 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
13420 | fi | |
13421 | fi | |
13422 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
13423 | if test -n "$ac_ct_RANLIB"; then | |
13424 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
13425 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
13426 | else | |
13427 | echo "$as_me:$LINENO: result: no" >&5 | |
13428 | echo "${ECHO_T}no" >&6 | |
13429 | fi | |
13430 | ||
13431 | RANLIB=$ac_ct_RANLIB | |
13432 | else | |
13433 | RANLIB="$ac_cv_prog_RANLIB" | |
13434 | fi | |
13435 | ||
13436 | ||
8c80d384 DE |
13437 | if test -n "$ac_tool_prefix"; then |
13438 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13439 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
13440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13442 | if test "${ac_cv_prog_AR+set}" = set; then | |
13443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13444 | else | |
13445 | if test -n "$AR"; then | |
13446 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13447 | else | |
13448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13449 | for as_dir in $PATH | |
13450 | do | |
13451 | IFS=$as_save_IFS | |
13452 | test -z "$as_dir" && as_dir=. | |
13453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13455 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
13456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13457 | break 2 | |
13458 | fi | |
13459 | done | |
13460 | done | |
13461 | ||
13462 | fi | |
13463 | fi | |
13464 | AR=$ac_cv_prog_AR | |
13465 | if test -n "$AR"; then | |
13466 | echo "$as_me:$LINENO: result: $AR" >&5 | |
13467 | echo "${ECHO_T}$AR" >&6 | |
13468 | else | |
13469 | echo "$as_me:$LINENO: result: no" >&5 | |
13470 | echo "${ECHO_T}no" >&6 | |
13471 | fi | |
13472 | ||
8c80d384 DE |
13473 | fi |
13474 | if test -z "$ac_cv_prog_AR"; then | |
13475 | ac_ct_AR=$AR | |
13476 | # Extract the first word of "ar", so it can be a program name with args. | |
13477 | set dummy ar; ac_word=$2 | |
13478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13480 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
13481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13482 | else | |
13483 | if test -n "$ac_ct_AR"; then | |
13484 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13485 | else | |
13486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13487 | for as_dir in $PATH | |
13488 | do | |
13489 | IFS=$as_save_IFS | |
13490 | test -z "$as_dir" && as_dir=. | |
13491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13493 | ac_cv_prog_ac_ct_AR="ar" | |
13494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13495 | break 2 | |
13496 | fi | |
13497 | done | |
13498 | done | |
13499 | ||
13500 | fi | |
13501 | fi | |
13502 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13503 | if test -n "$ac_ct_AR"; then | |
13504 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
13505 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
13506 | else | |
13507 | echo "$as_me:$LINENO: result: no" >&5 | |
13508 | echo "${ECHO_T}no" >&6 | |
13509 | fi | |
13510 | ||
13511 | AR=$ac_ct_AR | |
13512 | else | |
13513 | AR="$ac_cv_prog_AR" | |
13514 | fi | |
13515 | ||
a848cd7e | 13516 | if test "x$AR" = "x" ; then |
77ffb593 JS |
13517 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
13518 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
13519 | { (exit 1); exit 1; }; } |
13520 | fi | |
13521 | ||
13522 | # Find a good install program. We prefer a C program (faster), | |
13523 | # so one script is as good as another. But avoid the broken or | |
13524 | # incompatible versions: | |
13525 | # SysV /etc/install, /usr/sbin/install | |
13526 | # SunOS /usr/etc/install | |
13527 | # IRIX /sbin/install | |
13528 | # AIX /bin/install | |
13529 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
13530 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
13531 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
13532 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 13533 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
13534 | # ./install, which can be erroneously created by make from ./install.sh. |
13535 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
13536 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
13537 | if test -z "$INSTALL"; then | |
13538 | if test "${ac_cv_path_install+set}" = set; then | |
13539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13540 | else | |
13541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13542 | for as_dir in $PATH | |
13543 | do | |
13544 | IFS=$as_save_IFS | |
13545 | test -z "$as_dir" && as_dir=. | |
13546 | # Account for people who put trailing slashes in PATH elements. | |
13547 | case $as_dir/ in | |
13548 | ./ | .// | /cC/* | \ | |
13549 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13550 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13551 | /usr/ucb/* ) ;; |
13552 | *) | |
13553 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13554 | # Don't use installbsd from OSF since it installs stuff as root | |
13555 | # by default. | |
13556 | for ac_prog in ginstall scoinst install; do | |
13557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13558 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13559 | if test $ac_prog = install && | |
13560 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13561 | # AIX install. It has an incompatible calling convention. | |
13562 | : | |
13563 | elif test $ac_prog = install && | |
13564 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13565 | # program-specific install script used by HP pwplus--don't use. | |
13566 | : | |
13567 | else | |
13568 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13569 | break 3 | |
13570 | fi | |
13571 | fi | |
a848cd7e SC |
13572 | done |
13573 | done | |
13574 | ;; | |
13575 | esac | |
13576 | done | |
13577 | ||
13578 | ||
13579 | fi | |
13580 | if test "${ac_cv_path_install+set}" = set; then | |
13581 | INSTALL=$ac_cv_path_install | |
13582 | else | |
13583 | # As a last resort, use the slow shell script. We don't cache a | |
13584 | # path for INSTALL within a source directory, because that will | |
13585 | # break other packages using the cache if that directory is | |
13586 | # removed, or if the path is relative. | |
13587 | INSTALL=$ac_install_sh | |
13588 | fi | |
13589 | fi | |
13590 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13591 | echo "${ECHO_T}$INSTALL" >&6 | |
13592 | ||
13593 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13594 | # It thinks the first close brace ends the variable substitution. | |
13595 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13596 | ||
13597 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13598 | ||
13599 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13600 | ||
13601 | ||
13602 | case ${INSTALL} in | |
13603 | /* ) # Absolute | |
13604 | ;; | |
13605 | ?:* ) # Drive letter, considered as absolute. | |
13606 | ;; | |
13607 | *) | |
13608 | INSTALL=`pwd`/${INSTALL} ;; | |
13609 | esac | |
13610 | ||
a848cd7e SC |
13611 | |
13612 | case "${host}" in | |
13613 | ||
cfda0ea8 | 13614 | *-*-darwin* ) |
a848cd7e SC |
13615 | INSTALL_PROGRAM="cp -fp" |
13616 | INSTALL_DATA="cp -fp" | |
13617 | ;; | |
13618 | *) | |
13619 | ;; | |
13620 | esac | |
13621 | ||
8c80d384 DE |
13622 | if test -n "$ac_tool_prefix"; then |
13623 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
13624 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
13625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13627 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13629 | else | |
13630 | if test -n "$STRIP"; then | |
13631 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13632 | else | |
13633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13634 | for as_dir in $PATH | |
13635 | do | |
13636 | IFS=$as_save_IFS | |
13637 | test -z "$as_dir" && as_dir=. | |
13638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13640 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
13641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13642 | break 2 | |
13643 | fi | |
13644 | done | |
13645 | done | |
13646 | ||
a848cd7e SC |
13647 | fi |
13648 | fi | |
13649 | STRIP=$ac_cv_prog_STRIP | |
13650 | if test -n "$STRIP"; then | |
13651 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13652 | echo "${ECHO_T}$STRIP" >&6 | |
13653 | else | |
13654 | echo "$as_me:$LINENO: result: no" >&5 | |
13655 | echo "${ECHO_T}no" >&6 | |
13656 | fi | |
13657 | ||
8c80d384 DE |
13658 | fi |
13659 | if test -z "$ac_cv_prog_STRIP"; then | |
13660 | ac_ct_STRIP=$STRIP | |
13661 | # Extract the first word of "strip", so it can be a program name with args. | |
13662 | set dummy strip; ac_word=$2 | |
13663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13665 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
13666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13667 | else | |
13668 | if test -n "$ac_ct_STRIP"; then | |
13669 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13670 | else | |
13671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13672 | for as_dir in $PATH | |
13673 | do | |
13674 | IFS=$as_save_IFS | |
13675 | test -z "$as_dir" && as_dir=. | |
13676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13678 | ac_cv_prog_ac_ct_STRIP="strip" | |
13679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13680 | break 2 | |
13681 | fi | |
13682 | done | |
13683 | done | |
13684 | ||
13685 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
13686 | fi | |
13687 | fi | |
13688 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
13689 | if test -n "$ac_ct_STRIP"; then | |
13690 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
13691 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
13692 | else | |
13693 | echo "$as_me:$LINENO: result: no" >&5 | |
13694 | echo "${ECHO_T}no" >&6 | |
13695 | fi | |
13696 | ||
13697 | STRIP=$ac_ct_STRIP | |
13698 | else | |
13699 | STRIP="$ac_cv_prog_STRIP" | |
13700 | fi | |
13701 | ||
13702 | ||
13703 | if test "$wxUSE_WINE" = "yes"; then | |
13704 | if test -n "$ac_tool_prefix"; then | |
13705 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
13706 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
13707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13709 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
13710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13711 | else | |
13712 | if test -n "$RESCOMP"; then | |
13713 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13714 | else | |
13715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13716 | for as_dir in $PATH | |
13717 | do | |
13718 | IFS=$as_save_IFS | |
13719 | test -z "$as_dir" && as_dir=. | |
13720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13721 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13722 | ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc" | |
13723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13724 | break 2 | |
13725 | fi | |
13726 | done | |
13727 | done | |
13728 | ||
13729 | fi | |
13730 | fi | |
13731 | RESCOMP=$ac_cv_prog_RESCOMP | |
13732 | if test -n "$RESCOMP"; then | |
13733 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13734 | echo "${ECHO_T}$RESCOMP" >&6 | |
13735 | else | |
13736 | echo "$as_me:$LINENO: result: no" >&5 | |
13737 | echo "${ECHO_T}no" >&6 | |
13738 | fi | |
13739 | ||
13740 | fi | |
13741 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13742 | ac_ct_RESCOMP=$RESCOMP | |
13743 | # Extract the first word of "wrc", so it can be a program name with args. | |
13744 | set dummy wrc; ac_word=$2 | |
13745 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13747 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
13748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13749 | else | |
13750 | if test -n "$ac_ct_RESCOMP"; then | |
13751 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
13752 | else | |
13753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13754 | for as_dir in $PATH | |
13755 | do | |
13756 | IFS=$as_save_IFS | |
13757 | test -z "$as_dir" && as_dir=. | |
13758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13759 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13760 | ac_cv_prog_ac_ct_RESCOMP="wrc" | |
13761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13762 | break 2 | |
13763 | fi | |
13764 | done | |
13765 | done | |
13766 | ||
13767 | fi | |
13768 | fi | |
13769 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13770 | if test -n "$ac_ct_RESCOMP"; then | |
13771 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13772 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13773 | else | |
13774 | echo "$as_me:$LINENO: result: no" >&5 | |
13775 | echo "${ECHO_T}no" >&6 | |
13776 | fi | |
13777 | ||
13778 | RESCOMP=$ac_ct_RESCOMP | |
13779 | else | |
13780 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13781 | fi | |
13782 | ||
13783 | else | |
13784 | case "${host}" in | |
13785 | *-*-cygwin* | *-*-mingw32* ) | |
13786 | if test -n "$ac_tool_prefix"; then | |
13787 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
13788 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
13789 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13791 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
13792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13793 | else | |
13794 | if test -n "$RESCOMP"; then | |
13795 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13796 | else | |
13797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13798 | for as_dir in $PATH | |
13799 | do | |
13800 | IFS=$as_save_IFS | |
13801 | test -z "$as_dir" && as_dir=. | |
13802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13803 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13804 | ac_cv_prog_RESCOMP="${ac_tool_prefix}windres" | |
13805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13806 | break 2 | |
13807 | fi | |
13808 | done | |
13809 | done | |
13810 | ||
13811 | fi | |
13812 | fi | |
13813 | RESCOMP=$ac_cv_prog_RESCOMP | |
13814 | if test -n "$RESCOMP"; then | |
13815 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13816 | echo "${ECHO_T}$RESCOMP" >&6 | |
13817 | else | |
13818 | echo "$as_me:$LINENO: result: no" >&5 | |
13819 | echo "${ECHO_T}no" >&6 | |
13820 | fi | |
13821 | ||
13822 | fi | |
13823 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13824 | ac_ct_RESCOMP=$RESCOMP | |
13825 | # Extract the first word of "windres", so it can be a program name with args. | |
13826 | set dummy windres; ac_word=$2 | |
13827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13829 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
13830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13831 | else | |
13832 | if test -n "$ac_ct_RESCOMP"; then | |
13833 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
13834 | else | |
13835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13836 | for as_dir in $PATH | |
13837 | do | |
13838 | IFS=$as_save_IFS | |
13839 | test -z "$as_dir" && as_dir=. | |
13840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13842 | ac_cv_prog_ac_ct_RESCOMP="windres" | |
13843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13844 | break 2 | |
13845 | fi | |
13846 | done | |
13847 | done | |
13848 | ||
13849 | fi | |
13850 | fi | |
13851 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13852 | if test -n "$ac_ct_RESCOMP"; then | |
13853 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13854 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13855 | else | |
13856 | echo "$as_me:$LINENO: result: no" >&5 | |
13857 | echo "${ECHO_T}no" >&6 | |
13858 | fi | |
13859 | ||
13860 | RESCOMP=$ac_ct_RESCOMP | |
13861 | else | |
13862 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13863 | fi | |
13864 | ||
13865 | if test -n "$ac_tool_prefix"; then | |
13866 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
13867 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
13868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13870 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
13871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13872 | else | |
13873 | if test -n "$DLLTOOL"; then | |
13874 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
13875 | else | |
13876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13877 | for as_dir in $PATH | |
13878 | do | |
13879 | IFS=$as_save_IFS | |
13880 | test -z "$as_dir" && as_dir=. | |
13881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13883 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
13884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13885 | break 2 | |
13886 | fi | |
13887 | done | |
13888 | done | |
13889 | ||
13890 | fi | |
13891 | fi | |
13892 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
13893 | if test -n "$DLLTOOL"; then | |
13894 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
13895 | echo "${ECHO_T}$DLLTOOL" >&6 | |
13896 | else | |
13897 | echo "$as_me:$LINENO: result: no" >&5 | |
13898 | echo "${ECHO_T}no" >&6 | |
13899 | fi | |
13900 | ||
13901 | fi | |
13902 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
13903 | ac_ct_DLLTOOL=$DLLTOOL | |
13904 | # Extract the first word of "dlltool", so it can be a program name with args. | |
13905 | set dummy dlltool; ac_word=$2 | |
13906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13908 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
13909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13910 | else | |
13911 | if test -n "$ac_ct_DLLTOOL"; then | |
13912 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
13913 | else | |
13914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13915 | for as_dir in $PATH | |
13916 | do | |
13917 | IFS=$as_save_IFS | |
13918 | test -z "$as_dir" && as_dir=. | |
13919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13921 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
13922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13923 | break 2 | |
13924 | fi | |
13925 | done | |
13926 | done | |
13927 | ||
13928 | fi | |
13929 | fi | |
13930 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
13931 | if test -n "$ac_ct_DLLTOOL"; then | |
13932 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
13933 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
13934 | else | |
13935 | echo "$as_me:$LINENO: result: no" >&5 | |
13936 | echo "${ECHO_T}no" >&6 | |
13937 | fi | |
13938 | ||
13939 | DLLTOOL=$ac_ct_DLLTOOL | |
13940 | else | |
13941 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
13942 | fi | |
13943 | ||
13944 | ;; | |
13945 | esac | |
13946 | fi | |
a848cd7e SC |
13947 | |
13948 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13949 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13950 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13952 | else | |
13953 | ||
13954 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
13955 | egrep -s GNU > /dev/null); then | |
13956 | wx_cv_prog_makeisgnu="yes" | |
13957 | else | |
13958 | wx_cv_prog_makeisgnu="no" | |
13959 | fi | |
13960 | ||
13961 | fi | |
13962 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
13963 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
13964 | ||
13965 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
13966 | IF_GNU_MAKE="" | |
13967 | else | |
13968 | IF_GNU_MAKE="#" | |
13969 | fi | |
13970 | ||
13971 | ||
13972 | ||
13973 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
13974 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13975 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13976 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13978 | else | |
13979 | ||
13980 | cat - << EOF > confMake | |
13981 | check : file | |
13982 | cp \$? \$@ | |
13983 | cp \$? final_file | |
13984 | EOF | |
13985 | ||
13986 | if test ! -d sub ; then | |
13987 | mkdir sub | |
13988 | fi | |
13989 | echo dummy > sub/file | |
13990 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13991 | RESULT=$? | |
13992 | rm -f sub/file check final_file confMake | |
13993 | rmdir sub | |
13994 | if test "$RESULT" = 0; then | |
13995 | wx_cv_prog_makevpath="yes" | |
13996 | else | |
13997 | wx_cv_prog_makevpath="no" | |
13998 | fi | |
13999 | ||
14000 | fi | |
14001 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14002 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14003 | ||
14004 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14005 | { { echo "$as_me:$LINENO: error: | |
14006 | You need a make-utility that is able to use the variable | |
14007 | VPATH correctly. | |
14008 | If your version of make does not support VPATH correctly, | |
14009 | please install GNU-make (possibly as gmake), and start | |
14010 | configure with the following command: | |
14011 | export MAKE=gmake; ./configure for sh-type shells | |
14012 | setenv MAKE gmake; ./configure for csh-type shells | |
14013 | Also please do remember to use gmake in this case every time | |
14014 | you are trying to compile. | |
14015 | " >&5 | |
14016 | echo "$as_me: error: | |
14017 | You need a make-utility that is able to use the variable | |
14018 | VPATH correctly. | |
14019 | If your version of make does not support VPATH correctly, | |
14020 | please install GNU-make (possibly as gmake), and start | |
14021 | configure with the following command: | |
14022 | export MAKE=gmake; ./configure for sh-type shells | |
14023 | setenv MAKE gmake; ./configure for csh-type shells | |
14024 | Also please do remember to use gmake in this case every time | |
14025 | you are trying to compile. | |
14026 | " >&2;} | |
14027 | { (exit 1); exit 1; }; } | |
14028 | fi fi | |
14029 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14030 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14031 | LN_S=$as_ln_s | |
14032 | if test "$LN_S" = "ln -s"; then | |
14033 | echo "$as_me:$LINENO: result: yes" >&5 | |
14034 | echo "${ECHO_T}yes" >&6 | |
14035 | else | |
14036 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14037 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14038 | fi | |
14039 | ||
14040 | ||
14041 | ||
2113bc77 | 14042 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
9273ffba DE |
14043 | CXXFLAGS="$CXXFLAGS -qunique" |
14044 | fi | |
14045 | ||
4d7ec9f1 DE |
14046 | case "${host}" in |
14047 | powerpc-*-darwin* ) | |
14048 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14049 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14050 | cat >conftest.$ac_ext <<_ACEOF | |
14051 | /* confdefs.h. */ | |
14052 | _ACEOF | |
14053 | cat confdefs.h >>conftest.$ac_ext | |
14054 | cat >>conftest.$ac_ext <<_ACEOF | |
14055 | /* end confdefs.h. */ | |
14056 | ||
14057 | int | |
14058 | main () | |
14059 | { | |
14060 | #ifndef __POWERPC__ | |
14061 | choke me for lack of PowerPC | |
14062 | #endif | |
14063 | ||
14064 | ; | |
14065 | return 0; | |
14066 | } | |
14067 | _ACEOF | |
14068 | rm -f conftest.$ac_objext | |
14069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14070 | (eval $ac_compile) 2>conftest.er1 | |
14071 | ac_status=$? | |
14072 | grep -v '^ *+' conftest.er1 >conftest.err | |
14073 | rm -f conftest.er1 | |
14074 | cat conftest.err >&5 | |
14075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14076 | (exit $ac_status); } && | |
6ebeb4c7 | 14077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14079 | (eval $ac_try) 2>&5 | |
14080 | ac_status=$? | |
14081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14082 | (exit $ac_status); }; } && | |
14083 | { ac_try='test -s conftest.$ac_objext' | |
14084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14085 | (eval $ac_try) 2>&5 | |
14086 | ac_status=$? | |
14087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14088 | (exit $ac_status); }; }; then | |
14089 | echo "$as_me:$LINENO: result: yes" >&5 | |
14090 | echo "${ECHO_T}yes" >&6 | |
14091 | else | |
14092 | echo "$as_me: failed program was:" >&5 | |
14093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14094 | ||
14095 | echo "$as_me:$LINENO: result: no" >&5 | |
14096 | echo "${ECHO_T}no" >&6 | |
14097 | cat >>confdefs.h <<\_ACEOF | |
14098 | #define __POWERPC__ 1 | |
14099 | _ACEOF | |
14100 | ||
14101 | ||
14102 | fi | |
14103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14104 | ;; |
14105 | esac | |
14106 | ||
14107 | case "${host}" in | |
14108 | *-*-darwin* ) | |
4d7ec9f1 DE |
14109 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14110 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14111 | cat >conftest.$ac_ext <<_ACEOF | |
14112 | /* confdefs.h. */ | |
14113 | _ACEOF | |
14114 | cat confdefs.h >>conftest.$ac_ext | |
14115 | cat >>conftest.$ac_ext <<_ACEOF | |
14116 | /* end confdefs.h. */ | |
14117 | #include <CoreFoundation/CFBase.h> | |
14118 | ||
14119 | int | |
14120 | main () | |
14121 | { | |
14122 | ||
14123 | ; | |
14124 | return 0; | |
14125 | } | |
14126 | _ACEOF | |
14127 | rm -f conftest.$ac_objext | |
14128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14129 | (eval $ac_compile) 2>conftest.er1 | |
14130 | ac_status=$? | |
14131 | grep -v '^ *+' conftest.er1 >conftest.err | |
14132 | rm -f conftest.er1 | |
14133 | cat conftest.err >&5 | |
14134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14135 | (exit $ac_status); } && | |
6ebeb4c7 | 14136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14138 | (eval $ac_try) 2>&5 | |
14139 | ac_status=$? | |
14140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14141 | (exit $ac_status); }; } && | |
14142 | { ac_try='test -s conftest.$ac_objext' | |
14143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14144 | (eval $ac_try) 2>&5 | |
14145 | ac_status=$? | |
14146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14147 | (exit $ac_status); }; }; then | |
14148 | echo "$as_me:$LINENO: result: yes" >&5 | |
14149 | echo "${ECHO_T}yes" >&6 | |
14150 | else | |
14151 | echo "$as_me: failed program was:" >&5 | |
14152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14153 | ||
14154 | echo "$as_me:$LINENO: result: no" >&5 | |
14155 | echo "${ECHO_T}no" >&6 | |
14156 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
14157 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
14158 | cat >conftest.$ac_ext <<_ACEOF | |
14159 | /* confdefs.h. */ | |
14160 | _ACEOF | |
14161 | cat confdefs.h >>conftest.$ac_ext | |
14162 | cat >>conftest.$ac_ext <<_ACEOF | |
14163 | /* end confdefs.h. */ | |
14164 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14165 | #include <CoreFoundation/CFBase.h> | |
14166 | ||
14167 | int | |
14168 | main () | |
14169 | { | |
14170 | ||
14171 | ; | |
14172 | return 0; | |
14173 | } | |
14174 | _ACEOF | |
14175 | rm -f conftest.$ac_objext | |
14176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14177 | (eval $ac_compile) 2>conftest.er1 | |
14178 | ac_status=$? | |
14179 | grep -v '^ *+' conftest.er1 >conftest.err | |
14180 | rm -f conftest.er1 | |
14181 | cat conftest.err >&5 | |
14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14183 | (exit $ac_status); } && | |
6ebeb4c7 | 14184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; } && | |
14190 | { ac_try='test -s conftest.$ac_objext' | |
14191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14192 | (eval $ac_try) 2>&5 | |
14193 | ac_status=$? | |
14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14195 | (exit $ac_status); }; }; then | |
14196 | echo "$as_me:$LINENO: result: yes" >&5 | |
14197 | echo "${ECHO_T}yes" >&6 | |
14198 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
14199 | else | |
14200 | echo "$as_me: failed program was:" >&5 | |
14201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14202 | ||
14203 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
14204 | See \`config.log' for more details." >&5 | |
14205 | echo "$as_me: error: no. CoreFoundation not available. | |
14206 | See \`config.log' for more details." >&2;} | |
14207 | { (exit 1); exit 1; }; } | |
14208 | ||
14209 | fi | |
14210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14211 | ||
14212 | ||
14213 | fi | |
14214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14215 | ;; | |
14216 | esac | |
14217 | ||
a848cd7e SC |
14218 | case "${host}" in |
14219 | *-pc-os2_emx | *-pc-os2-emx ) | |
14220 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
14221 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
14222 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
14223 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
14224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14225 | else | |
14226 | ac_check_lib_save_LIBS=$LIBS | |
14227 | LIBS="-lcExt $LIBS" | |
14228 | cat >conftest.$ac_ext <<_ACEOF | |
14229 | /* confdefs.h. */ | |
14230 | _ACEOF | |
14231 | cat confdefs.h >>conftest.$ac_ext | |
14232 | cat >>conftest.$ac_ext <<_ACEOF | |
14233 | /* end confdefs.h. */ | |
14234 | ||
14235 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14236 | #ifdef __cplusplus | |
14237 | extern "C" | |
14238 | #endif | |
14239 | /* We use char because int might match the return type of a gcc2 | |
14240 | builtin and then its argument prototype would still apply. */ | |
14241 | char drand48 (); | |
14242 | int | |
14243 | main () | |
14244 | { | |
14245 | drand48 (); | |
14246 | ; | |
14247 | return 0; | |
14248 | } | |
14249 | _ACEOF | |
14250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14252 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14253 | ac_status=$? |
ac1cb8d3 VS |
14254 | grep -v '^ *+' conftest.er1 >conftest.err |
14255 | rm -f conftest.er1 | |
14256 | cat conftest.err >&5 | |
a848cd7e SC |
14257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14258 | (exit $ac_status); } && | |
6ebeb4c7 | 14259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14261 | (eval $ac_try) 2>&5 | |
14262 | ac_status=$? | |
14263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14264 | (exit $ac_status); }; } && | |
14265 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14267 | (eval $ac_try) 2>&5 | |
14268 | ac_status=$? | |
14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14270 | (exit $ac_status); }; }; then | |
14271 | ac_cv_lib_cExt_drand48=yes | |
14272 | else | |
14273 | echo "$as_me: failed program was:" >&5 | |
14274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14275 | ||
14276 | ac_cv_lib_cExt_drand48=no | |
14277 | fi | |
ac1cb8d3 VS |
14278 | rm -f conftest.err conftest.$ac_objext \ |
14279 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14280 | LIBS=$ac_check_lib_save_LIBS |
14281 | fi | |
14282 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
14283 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
14284 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
14285 | LIBS="$LIBS -lcExt" | |
14286 | fi | |
14287 | ||
14288 | else | |
14289 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
14290 | fi | |
69120ee4 VZ |
14291 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
14292 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
14293 | if test "${wx_cv_gccversion+set}" = set; then |
14294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14295 | else | |
14296 | ||
391a765e VS |
14297 | if test "$cross_compiling" = yes; then |
14298 | wx_cv_gccversion="EMX2" | |
14299 | ||
14300 | else | |
14301 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
14302 | /* confdefs.h. */ |
14303 | _ACEOF | |
14304 | cat confdefs.h >>conftest.$ac_ext | |
14305 | cat >>conftest.$ac_ext <<_ACEOF | |
14306 | /* end confdefs.h. */ | |
14307 | ||
391a765e | 14308 | #include <stdio.h> |
a848cd7e | 14309 | |
391a765e VS |
14310 | int main() |
14311 | { | |
14312 | FILE *f=fopen("conftestval", "w"); | |
14313 | if (!f) exit(1); | |
14314 | fprintf(f, | |
a848cd7e | 14315 | #if (__GNUC__ < 3) |
391a765e VS |
14316 | "EMX2" |
14317 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
14318 | "EMX3" | |
14319 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
14320 | "Innotek5" | |
14321 | #else | |
14322 | "Innotek6" | |
a848cd7e | 14323 | #endif |
391a765e VS |
14324 | ); |
14325 | exit(0); | |
14326 | } | |
a848cd7e | 14327 | |
a848cd7e | 14328 | _ACEOF |
391a765e VS |
14329 | rm -f conftest$ac_exeext |
14330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14331 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
14332 | ac_status=$? |
14333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 14334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
14335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14336 | (eval $ac_try) 2>&5 | |
14337 | ac_status=$? | |
14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14339 | (exit $ac_status); }; }; then | |
391a765e | 14340 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 14341 | else |
391a765e VS |
14342 | echo "$as_me: program exited with status $ac_status" >&5 |
14343 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
14344 | sed 's/^/| /' conftest.$ac_ext >&5 |
14345 | ||
391a765e VS |
14346 | ( exit $ac_status ) |
14347 | wx_cv_gccversion="EMX2" | |
a848cd7e | 14348 | fi |
391a765e | 14349 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14350 | fi |
a848cd7e SC |
14351 | |
14352 | fi | |
14353 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
14354 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 14355 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
14356 | LIBS="$LIBS -lstdcpp" |
14357 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
14358 | else | |
391a765e | 14359 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 14360 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
14361 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
14362 | else | |
14363 | LIBS="$LIBS -lstdc++" | |
14364 | fi | |
14365 | fi | |
94acd38e DE |
14366 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
14367 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
14368 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
14369 | wxUSE_OMF=yes | |
2da0c077 | 14370 | enable_omf=yes |
a848cd7e SC |
14371 | fi |
14372 | ;; | |
14373 | *) | |
14374 | ||
14375 | ||
14376 | ||
14377 | ac_ext=cc | |
14378 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14379 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14380 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14381 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14382 | ||
14383 | ||
95986553 | 14384 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
14385 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
14386 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
14387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14388 | else | |
14389 | ||
14390 | cat >conftest.$ac_ext <<_ACEOF | |
14391 | /* confdefs.h. */ | |
14392 | _ACEOF | |
14393 | cat confdefs.h >>conftest.$ac_ext | |
14394 | cat >>conftest.$ac_ext <<_ACEOF | |
14395 | /* end confdefs.h. */ | |
14396 | ||
14397 | #include <string.h> | |
14398 | ||
14399 | int | |
14400 | main () | |
14401 | { | |
14402 | ||
14403 | strcasecmp("foo", "bar"); | |
14404 | ||
14405 | ; | |
14406 | return 0; | |
14407 | } | |
14408 | _ACEOF | |
14409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14411 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14412 | ac_status=$? |
ac1cb8d3 VS |
14413 | grep -v '^ *+' conftest.er1 >conftest.err |
14414 | rm -f conftest.er1 | |
14415 | cat conftest.err >&5 | |
a848cd7e SC |
14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14417 | (exit $ac_status); } && | |
6ebeb4c7 | 14418 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14420 | (eval $ac_try) 2>&5 | |
14421 | ac_status=$? | |
14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14423 | (exit $ac_status); }; } && | |
14424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14426 | (eval $ac_try) 2>&5 | |
14427 | ac_status=$? | |
14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14429 | (exit $ac_status); }; }; then | |
14430 | ac_cv_string_strcasecmp=yes | |
14431 | else | |
14432 | echo "$as_me: failed program was:" >&5 | |
14433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14434 | ||
14435 | ac_cv_string_strcasecmp=no | |
14436 | ||
14437 | fi | |
ac1cb8d3 VS |
14438 | rm -f conftest.err conftest.$ac_objext \ |
14439 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14440 | |
14441 | fi | |
14442 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
14443 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
14444 | ||
14445 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
14446 | cat >>confdefs.h <<\_ACEOF | |
14447 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
14448 | _ACEOF | |
14449 | ||
14450 | else | |
14451 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
14452 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
14453 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
14454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14455 | else | |
14456 | ||
14457 | cat >conftest.$ac_ext <<_ACEOF | |
14458 | /* confdefs.h. */ | |
14459 | _ACEOF | |
14460 | cat confdefs.h >>conftest.$ac_ext | |
14461 | cat >>conftest.$ac_ext <<_ACEOF | |
14462 | /* end confdefs.h. */ | |
14463 | ||
14464 | #include <strings.h> | |
14465 | ||
14466 | int | |
14467 | main () | |
14468 | { | |
14469 | ||
14470 | strcasecmp("foo", "bar"); | |
14471 | ||
14472 | ; | |
14473 | return 0; | |
14474 | } | |
14475 | _ACEOF | |
14476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14478 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14479 | ac_status=$? |
ac1cb8d3 VS |
14480 | grep -v '^ *+' conftest.er1 >conftest.err |
14481 | rm -f conftest.er1 | |
14482 | cat conftest.err >&5 | |
a848cd7e SC |
14483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14484 | (exit $ac_status); } && | |
6ebeb4c7 | 14485 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14487 | (eval $ac_try) 2>&5 | |
14488 | ac_status=$? | |
14489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14490 | (exit $ac_status); }; } && | |
14491 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14493 | (eval $ac_try) 2>&5 | |
14494 | ac_status=$? | |
14495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14496 | (exit $ac_status); }; }; then | |
14497 | ac_cv_strings_strcasecmp=yes | |
14498 | else | |
14499 | echo "$as_me: failed program was:" >&5 | |
14500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14501 | ||
14502 | ac_cv_strings_strcasecmp=no | |
14503 | ||
14504 | fi | |
ac1cb8d3 VS |
14505 | rm -f conftest.err conftest.$ac_objext \ |
14506 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14507 | |
14508 | fi | |
14509 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
14510 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
14511 | ||
0c3c69fc | 14512 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
14513 | cat >>confdefs.h <<\_ACEOF |
14514 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
14515 | _ACEOF | |
14516 | ||
14517 | else | |
14518 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
14519 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
14520 | { (exit 1); exit 1; }; } | |
14521 | fi | |
14522 | fi | |
14523 | ||
14524 | ac_ext=c | |
14525 | ac_cpp='$CPP $CPPFLAGS' | |
14526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14529 | ||
14530 | ;; | |
14531 | esac | |
14532 | ||
14533 | ||
14534 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
14535 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
14536 | if test "${ac_cv_header_stdc+set}" = set; then | |
14537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14538 | else | |
14539 | cat >conftest.$ac_ext <<_ACEOF | |
14540 | /* confdefs.h. */ | |
14541 | _ACEOF | |
14542 | cat confdefs.h >>conftest.$ac_ext | |
14543 | cat >>conftest.$ac_ext <<_ACEOF | |
14544 | /* end confdefs.h. */ | |
14545 | #include <stdlib.h> | |
14546 | #include <stdarg.h> | |
14547 | #include <string.h> | |
14548 | #include <float.h> | |
14549 | ||
14550 | int | |
14551 | main () | |
14552 | { | |
14553 | ||
14554 | ; | |
14555 | return 0; | |
14556 | } | |
14557 | _ACEOF | |
14558 | rm -f conftest.$ac_objext | |
14559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14560 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14561 | ac_status=$? |
ac1cb8d3 VS |
14562 | grep -v '^ *+' conftest.er1 >conftest.err |
14563 | rm -f conftest.er1 | |
14564 | cat conftest.err >&5 | |
a848cd7e SC |
14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14566 | (exit $ac_status); } && | |
6ebeb4c7 | 14567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14569 | (eval $ac_try) 2>&5 | |
14570 | ac_status=$? | |
14571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14572 | (exit $ac_status); }; } && | |
14573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14575 | (eval $ac_try) 2>&5 | |
14576 | ac_status=$? | |
14577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14578 | (exit $ac_status); }; }; then | |
14579 | ac_cv_header_stdc=yes | |
14580 | else | |
14581 | echo "$as_me: failed program was:" >&5 | |
14582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14583 | ||
14584 | ac_cv_header_stdc=no | |
14585 | fi | |
ac1cb8d3 | 14586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14587 | |
14588 | if test $ac_cv_header_stdc = yes; then | |
14589 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14590 | cat >conftest.$ac_ext <<_ACEOF | |
14591 | /* confdefs.h. */ | |
14592 | _ACEOF | |
14593 | cat confdefs.h >>conftest.$ac_ext | |
14594 | cat >>conftest.$ac_ext <<_ACEOF | |
14595 | /* end confdefs.h. */ | |
14596 | #include <string.h> | |
14597 | ||
14598 | _ACEOF | |
14599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14600 | $EGREP "memchr" >/dev/null 2>&1; then | |
14601 | : | |
14602 | else | |
14603 | ac_cv_header_stdc=no | |
14604 | fi | |
14605 | rm -f conftest* | |
14606 | ||
14607 | fi | |
14608 | ||
14609 | if test $ac_cv_header_stdc = yes; then | |
14610 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14611 | cat >conftest.$ac_ext <<_ACEOF | |
14612 | /* confdefs.h. */ | |
14613 | _ACEOF | |
14614 | cat confdefs.h >>conftest.$ac_ext | |
14615 | cat >>conftest.$ac_ext <<_ACEOF | |
14616 | /* end confdefs.h. */ | |
14617 | #include <stdlib.h> | |
14618 | ||
14619 | _ACEOF | |
14620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14621 | $EGREP "free" >/dev/null 2>&1; then | |
14622 | : | |
14623 | else | |
14624 | ac_cv_header_stdc=no | |
14625 | fi | |
14626 | rm -f conftest* | |
14627 | ||
14628 | fi | |
14629 | ||
14630 | if test $ac_cv_header_stdc = yes; then | |
14631 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14632 | if test "$cross_compiling" = yes; then | |
14633 | : | |
14634 | else | |
14635 | cat >conftest.$ac_ext <<_ACEOF | |
14636 | /* confdefs.h. */ | |
14637 | _ACEOF | |
14638 | cat confdefs.h >>conftest.$ac_ext | |
14639 | cat >>conftest.$ac_ext <<_ACEOF | |
14640 | /* end confdefs.h. */ | |
14641 | #include <ctype.h> | |
14642 | #if ((' ' & 0x0FF) == 0x020) | |
14643 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14644 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14645 | #else | |
14646 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
14647 | (('a' <= (c) && (c) <= 'i') \ |
14648 | || ('j' <= (c) && (c) <= 'r') \ | |
14649 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
14650 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
14651 | #endif | |
14652 | ||
14653 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14654 | int | |
14655 | main () | |
14656 | { | |
14657 | int i; | |
14658 | for (i = 0; i < 256; i++) | |
14659 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 14660 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
14661 | exit(2); |
14662 | exit (0); | |
14663 | } | |
14664 | _ACEOF | |
14665 | rm -f conftest$ac_exeext | |
14666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14667 | (eval $ac_link) 2>&5 | |
14668 | ac_status=$? | |
14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14672 | (eval $ac_try) 2>&5 | |
14673 | ac_status=$? | |
14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14675 | (exit $ac_status); }; }; then | |
14676 | : | |
14677 | else | |
14678 | echo "$as_me: program exited with status $ac_status" >&5 | |
14679 | echo "$as_me: failed program was:" >&5 | |
14680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14681 | ||
14682 | ( exit $ac_status ) | |
14683 | ac_cv_header_stdc=no | |
14684 | fi | |
ac1cb8d3 | 14685 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14686 | fi |
14687 | fi | |
14688 | fi | |
14689 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
14690 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
14691 | if test $ac_cv_header_stdc = yes; then | |
14692 | ||
14693 | cat >>confdefs.h <<\_ACEOF | |
14694 | #define STDC_HEADERS 1 | |
14695 | _ACEOF | |
14696 | ||
14697 | fi | |
14698 | ||
14699 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
14700 | ||
14701 | ||
14702 | ||
14703 | ||
14704 | ||
14705 | ||
14706 | ||
14707 | ||
14708 | ||
14709 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 14710 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
14711 | do |
14712 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14713 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14717 | else | |
14718 | cat >conftest.$ac_ext <<_ACEOF | |
14719 | /* confdefs.h. */ | |
14720 | _ACEOF | |
14721 | cat confdefs.h >>conftest.$ac_ext | |
14722 | cat >>conftest.$ac_ext <<_ACEOF | |
14723 | /* end confdefs.h. */ | |
14724 | $ac_includes_default | |
14725 | ||
14726 | #include <$ac_header> | |
14727 | _ACEOF | |
14728 | rm -f conftest.$ac_objext | |
14729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14730 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14731 | ac_status=$? |
ac1cb8d3 VS |
14732 | grep -v '^ *+' conftest.er1 >conftest.err |
14733 | rm -f conftest.er1 | |
14734 | cat conftest.err >&5 | |
a848cd7e SC |
14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14736 | (exit $ac_status); } && | |
6ebeb4c7 | 14737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14739 | (eval $ac_try) 2>&5 | |
14740 | ac_status=$? | |
14741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14742 | (exit $ac_status); }; } && | |
14743 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14745 | (eval $ac_try) 2>&5 | |
14746 | ac_status=$? | |
14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14748 | (exit $ac_status); }; }; then | |
14749 | eval "$as_ac_Header=yes" | |
14750 | else | |
14751 | echo "$as_me: failed program was:" >&5 | |
14752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14753 | ||
14754 | eval "$as_ac_Header=no" | |
14755 | fi | |
ac1cb8d3 | 14756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14757 | fi |
14758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14759 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14760 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14761 | cat >>confdefs.h <<_ACEOF | |
14762 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14763 | _ACEOF | |
14764 | ||
14765 | fi | |
14766 | ||
14767 | done | |
14768 | ||
14769 | ||
14770 | ||
14771 | for ac_header in stdlib.h | |
14772 | do | |
14773 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14775 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14779 | fi | |
14780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14782 | else | |
14783 | # Is the header compilable? | |
14784 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14785 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14786 | cat >conftest.$ac_ext <<_ACEOF | |
14787 | /* confdefs.h. */ | |
14788 | _ACEOF | |
14789 | cat confdefs.h >>conftest.$ac_ext | |
14790 | cat >>conftest.$ac_ext <<_ACEOF | |
14791 | /* end confdefs.h. */ | |
14792 | $ac_includes_default | |
14793 | #include <$ac_header> | |
14794 | _ACEOF | |
14795 | rm -f conftest.$ac_objext | |
14796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14798 | ac_status=$? |
ac1cb8d3 VS |
14799 | grep -v '^ *+' conftest.er1 >conftest.err |
14800 | rm -f conftest.er1 | |
14801 | cat conftest.err >&5 | |
a848cd7e SC |
14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14803 | (exit $ac_status); } && | |
6ebeb4c7 | 14804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14806 | (eval $ac_try) 2>&5 | |
14807 | ac_status=$? | |
14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14809 | (exit $ac_status); }; } && | |
14810 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14812 | (eval $ac_try) 2>&5 | |
14813 | ac_status=$? | |
14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14815 | (exit $ac_status); }; }; then | |
14816 | ac_header_compiler=yes | |
14817 | else | |
14818 | echo "$as_me: failed program was:" >&5 | |
14819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14820 | ||
14821 | ac_header_compiler=no | |
14822 | fi | |
ac1cb8d3 | 14823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14824 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14825 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14826 | ||
14827 | # Is the header present? | |
14828 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14829 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14830 | cat >conftest.$ac_ext <<_ACEOF | |
14831 | /* confdefs.h. */ | |
14832 | _ACEOF | |
14833 | cat confdefs.h >>conftest.$ac_ext | |
14834 | cat >>conftest.$ac_ext <<_ACEOF | |
14835 | /* end confdefs.h. */ | |
14836 | #include <$ac_header> | |
14837 | _ACEOF | |
14838 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14839 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14840 | ac_status=$? | |
14841 | grep -v '^ *+' conftest.er1 >conftest.err | |
14842 | rm -f conftest.er1 | |
14843 | cat conftest.err >&5 | |
14844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14845 | (exit $ac_status); } >/dev/null; then | |
14846 | if test -s conftest.err; then | |
14847 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14848 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14849 | else |
14850 | ac_cpp_err= | |
14851 | fi | |
14852 | else | |
14853 | ac_cpp_err=yes | |
14854 | fi | |
14855 | if test -z "$ac_cpp_err"; then | |
14856 | ac_header_preproc=yes | |
14857 | else | |
14858 | echo "$as_me: failed program was:" >&5 | |
14859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14860 | ||
14861 | ac_header_preproc=no | |
14862 | fi | |
14863 | rm -f conftest.err conftest.$ac_ext | |
14864 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14865 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14866 | ||
14867 | # So? What about this header? | |
ac1cb8d3 VS |
14868 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14869 | yes:no: ) | |
a848cd7e SC |
14870 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14871 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14873 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14874 | ac_header_preproc=yes | |
a848cd7e | 14875 | ;; |
ac1cb8d3 | 14876 | no:yes:* ) |
a848cd7e SC |
14877 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14878 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14879 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14880 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14881 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14882 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14883 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14884 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14886 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14887 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14888 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14889 | ( |
14890 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14891 | ## ----------------------------------------- ## |
14892 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14893 | ## ----------------------------------------- ## | |
a848cd7e SC |
14894 | _ASBOX |
14895 | ) | | |
14896 | sed "s/^/$as_me: WARNING: /" >&2 | |
14897 | ;; | |
14898 | esac | |
14899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14903 | else | |
ac1cb8d3 | 14904 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14905 | fi |
14906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14907 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14908 | ||
14909 | fi | |
14910 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14911 | cat >>confdefs.h <<_ACEOF | |
14912 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14913 | _ACEOF | |
14914 | ||
14915 | fi | |
14916 | ||
14917 | done | |
14918 | ||
14919 | ||
14920 | for ac_header in malloc.h | |
14921 | do | |
14922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14928 | fi | |
14929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14931 | else | |
14932 | # Is the header compilable? | |
14933 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14935 | cat >conftest.$ac_ext <<_ACEOF | |
14936 | /* confdefs.h. */ | |
14937 | _ACEOF | |
14938 | cat confdefs.h >>conftest.$ac_ext | |
14939 | cat >>conftest.$ac_ext <<_ACEOF | |
14940 | /* end confdefs.h. */ | |
14941 | $ac_includes_default | |
14942 | #include <$ac_header> | |
14943 | _ACEOF | |
14944 | rm -f conftest.$ac_objext | |
14945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14946 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14947 | ac_status=$? |
ac1cb8d3 VS |
14948 | grep -v '^ *+' conftest.er1 >conftest.err |
14949 | rm -f conftest.er1 | |
14950 | cat conftest.err >&5 | |
a848cd7e SC |
14951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14952 | (exit $ac_status); } && | |
6ebeb4c7 | 14953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14955 | (eval $ac_try) 2>&5 | |
14956 | ac_status=$? | |
14957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14958 | (exit $ac_status); }; } && | |
14959 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14961 | (eval $ac_try) 2>&5 | |
14962 | ac_status=$? | |
14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14964 | (exit $ac_status); }; }; then | |
14965 | ac_header_compiler=yes | |
14966 | else | |
14967 | echo "$as_me: failed program was:" >&5 | |
14968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14969 | ||
14970 | ac_header_compiler=no | |
14971 | fi | |
ac1cb8d3 | 14972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14973 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14974 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14975 | ||
14976 | # Is the header present? | |
14977 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14978 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14979 | cat >conftest.$ac_ext <<_ACEOF | |
14980 | /* confdefs.h. */ | |
14981 | _ACEOF | |
14982 | cat confdefs.h >>conftest.$ac_ext | |
14983 | cat >>conftest.$ac_ext <<_ACEOF | |
14984 | /* end confdefs.h. */ | |
14985 | #include <$ac_header> | |
14986 | _ACEOF | |
14987 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14988 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14989 | ac_status=$? | |
14990 | grep -v '^ *+' conftest.er1 >conftest.err | |
14991 | rm -f conftest.er1 | |
14992 | cat conftest.err >&5 | |
14993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14994 | (exit $ac_status); } >/dev/null; then | |
14995 | if test -s conftest.err; then | |
14996 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14997 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14998 | else |
14999 | ac_cpp_err= | |
15000 | fi | |
15001 | else | |
15002 | ac_cpp_err=yes | |
15003 | fi | |
15004 | if test -z "$ac_cpp_err"; then | |
15005 | ac_header_preproc=yes | |
15006 | else | |
15007 | echo "$as_me: failed program was:" >&5 | |
15008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15009 | ||
15010 | ac_header_preproc=no | |
15011 | fi | |
15012 | rm -f conftest.err conftest.$ac_ext | |
15013 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15014 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15015 | ||
15016 | # So? What about this header? | |
ac1cb8d3 VS |
15017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15018 | yes:no: ) | |
a848cd7e SC |
15019 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15020 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15022 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15023 | ac_header_preproc=yes | |
a848cd7e | 15024 | ;; |
ac1cb8d3 | 15025 | no:yes:* ) |
a848cd7e SC |
15026 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15027 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15028 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15029 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15030 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15031 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15032 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15033 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15035 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15036 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15037 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15038 | ( |
15039 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15040 | ## ----------------------------------------- ## |
15041 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15042 | ## ----------------------------------------- ## | |
a848cd7e SC |
15043 | _ASBOX |
15044 | ) | | |
15045 | sed "s/^/$as_me: WARNING: /" >&2 | |
15046 | ;; | |
15047 | esac | |
15048 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15049 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15052 | else | |
ac1cb8d3 | 15053 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15054 | fi |
15055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15057 | ||
15058 | fi | |
15059 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15060 | cat >>confdefs.h <<_ACEOF | |
15061 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15062 | _ACEOF | |
15063 | ||
15064 | fi | |
15065 | ||
15066 | done | |
15067 | ||
15068 | ||
15069 | for ac_header in unistd.h | |
15070 | do | |
15071 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15073 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15074 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15075 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15077 | fi | |
15078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15079 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15080 | else | |
15081 | # Is the header compilable? | |
15082 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15083 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15084 | cat >conftest.$ac_ext <<_ACEOF | |
15085 | /* confdefs.h. */ | |
15086 | _ACEOF | |
15087 | cat confdefs.h >>conftest.$ac_ext | |
15088 | cat >>conftest.$ac_ext <<_ACEOF | |
15089 | /* end confdefs.h. */ | |
15090 | $ac_includes_default | |
15091 | #include <$ac_header> | |
15092 | _ACEOF | |
15093 | rm -f conftest.$ac_objext | |
15094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15095 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15096 | ac_status=$? |
ac1cb8d3 VS |
15097 | grep -v '^ *+' conftest.er1 >conftest.err |
15098 | rm -f conftest.er1 | |
15099 | cat conftest.err >&5 | |
a848cd7e SC |
15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15101 | (exit $ac_status); } && | |
6ebeb4c7 | 15102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15104 | (eval $ac_try) 2>&5 | |
15105 | ac_status=$? | |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15107 | (exit $ac_status); }; } && | |
15108 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15110 | (eval $ac_try) 2>&5 | |
15111 | ac_status=$? | |
15112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15113 | (exit $ac_status); }; }; then | |
15114 | ac_header_compiler=yes | |
15115 | else | |
15116 | echo "$as_me: failed program was:" >&5 | |
15117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15118 | ||
15119 | ac_header_compiler=no | |
15120 | fi | |
ac1cb8d3 | 15121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15122 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15123 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15124 | ||
15125 | # Is the header present? | |
15126 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15127 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15128 | cat >conftest.$ac_ext <<_ACEOF | |
15129 | /* confdefs.h. */ | |
15130 | _ACEOF | |
15131 | cat confdefs.h >>conftest.$ac_ext | |
15132 | cat >>conftest.$ac_ext <<_ACEOF | |
15133 | /* end confdefs.h. */ | |
15134 | #include <$ac_header> | |
15135 | _ACEOF | |
15136 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15137 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15138 | ac_status=$? | |
15139 | grep -v '^ *+' conftest.er1 >conftest.err | |
15140 | rm -f conftest.er1 | |
15141 | cat conftest.err >&5 | |
15142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15143 | (exit $ac_status); } >/dev/null; then | |
15144 | if test -s conftest.err; then | |
15145 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15146 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15147 | else |
15148 | ac_cpp_err= | |
15149 | fi | |
15150 | else | |
15151 | ac_cpp_err=yes | |
15152 | fi | |
15153 | if test -z "$ac_cpp_err"; then | |
15154 | ac_header_preproc=yes | |
15155 | else | |
15156 | echo "$as_me: failed program was:" >&5 | |
15157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15158 | ||
15159 | ac_header_preproc=no | |
15160 | fi | |
15161 | rm -f conftest.err conftest.$ac_ext | |
15162 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15163 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15164 | ||
15165 | # So? What about this header? | |
ac1cb8d3 VS |
15166 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15167 | yes:no: ) | |
a848cd7e SC |
15168 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15169 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15170 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15171 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15172 | ac_header_preproc=yes | |
a848cd7e | 15173 | ;; |
ac1cb8d3 | 15174 | no:yes:* ) |
a848cd7e SC |
15175 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15176 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15177 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15178 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15179 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15180 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15181 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15182 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15184 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15185 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15186 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15187 | ( |
15188 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15189 | ## ----------------------------------------- ## |
15190 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15191 | ## ----------------------------------------- ## | |
a848cd7e SC |
15192 | _ASBOX |
15193 | ) | | |
15194 | sed "s/^/$as_me: WARNING: /" >&2 | |
15195 | ;; | |
15196 | esac | |
15197 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15199 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15201 | else | |
ac1cb8d3 | 15202 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15203 | fi |
15204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15205 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15206 | ||
15207 | fi | |
15208 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15209 | cat >>confdefs.h <<_ACEOF | |
15210 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15211 | _ACEOF | |
15212 | ||
15213 | fi | |
15214 | ||
15215 | done | |
15216 | ||
15217 | ||
15218 | for ac_header in wchar.h | |
15219 | do | |
15220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15226 | fi | |
15227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15229 | else | |
15230 | # Is the header compilable? | |
15231 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15233 | cat >conftest.$ac_ext <<_ACEOF | |
15234 | /* confdefs.h. */ | |
15235 | _ACEOF | |
15236 | cat confdefs.h >>conftest.$ac_ext | |
15237 | cat >>conftest.$ac_ext <<_ACEOF | |
15238 | /* end confdefs.h. */ | |
15239 | $ac_includes_default | |
15240 | #include <$ac_header> | |
15241 | _ACEOF | |
15242 | rm -f conftest.$ac_objext | |
15243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15244 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15245 | ac_status=$? |
ac1cb8d3 VS |
15246 | grep -v '^ *+' conftest.er1 >conftest.err |
15247 | rm -f conftest.er1 | |
15248 | cat conftest.err >&5 | |
a848cd7e SC |
15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15250 | (exit $ac_status); } && | |
6ebeb4c7 | 15251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15253 | (eval $ac_try) 2>&5 | |
15254 | ac_status=$? | |
15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15256 | (exit $ac_status); }; } && | |
15257 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15259 | (eval $ac_try) 2>&5 | |
15260 | ac_status=$? | |
15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15262 | (exit $ac_status); }; }; then | |
15263 | ac_header_compiler=yes | |
15264 | else | |
15265 | echo "$as_me: failed program was:" >&5 | |
15266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15267 | ||
15268 | ac_header_compiler=no | |
15269 | fi | |
ac1cb8d3 | 15270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15272 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15273 | ||
15274 | # Is the header present? | |
15275 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15277 | cat >conftest.$ac_ext <<_ACEOF | |
15278 | /* confdefs.h. */ | |
15279 | _ACEOF | |
15280 | cat confdefs.h >>conftest.$ac_ext | |
15281 | cat >>conftest.$ac_ext <<_ACEOF | |
15282 | /* end confdefs.h. */ | |
15283 | #include <$ac_header> | |
15284 | _ACEOF | |
15285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15287 | ac_status=$? | |
15288 | grep -v '^ *+' conftest.er1 >conftest.err | |
15289 | rm -f conftest.er1 | |
15290 | cat conftest.err >&5 | |
15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15292 | (exit $ac_status); } >/dev/null; then | |
15293 | if test -s conftest.err; then | |
15294 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15296 | else |
15297 | ac_cpp_err= | |
15298 | fi | |
15299 | else | |
15300 | ac_cpp_err=yes | |
15301 | fi | |
15302 | if test -z "$ac_cpp_err"; then | |
15303 | ac_header_preproc=yes | |
15304 | else | |
15305 | echo "$as_me: failed program was:" >&5 | |
15306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15307 | ||
15308 | ac_header_preproc=no | |
15309 | fi | |
15310 | rm -f conftest.err conftest.$ac_ext | |
15311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15312 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15313 | ||
15314 | # So? What about this header? | |
ac1cb8d3 VS |
15315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15316 | yes:no: ) | |
a848cd7e SC |
15317 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15318 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15320 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15321 | ac_header_preproc=yes | |
a848cd7e | 15322 | ;; |
ac1cb8d3 | 15323 | no:yes:* ) |
a848cd7e SC |
15324 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15325 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15326 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15327 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15328 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15329 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15330 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15331 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15333 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15334 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15335 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15336 | ( |
15337 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15338 | ## ----------------------------------------- ## |
15339 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15340 | ## ----------------------------------------- ## | |
a848cd7e SC |
15341 | _ASBOX |
15342 | ) | | |
15343 | sed "s/^/$as_me: WARNING: /" >&2 | |
15344 | ;; | |
15345 | esac | |
15346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15350 | else | |
ac1cb8d3 | 15351 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15352 | fi |
15353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15354 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15355 | ||
15356 | fi | |
15357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15358 | cat >>confdefs.h <<_ACEOF | |
15359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15360 | _ACEOF | |
15361 | ||
15362 | fi | |
15363 | ||
15364 | done | |
15365 | ||
15366 | ||
15367 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
15368 | ||
15369 | for ac_header in wcstr.h | |
15370 | do | |
15371 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15377 | fi | |
15378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15379 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15380 | else | |
15381 | # Is the header compilable? | |
15382 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15383 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15384 | cat >conftest.$ac_ext <<_ACEOF | |
15385 | /* confdefs.h. */ | |
15386 | _ACEOF | |
15387 | cat confdefs.h >>conftest.$ac_ext | |
15388 | cat >>conftest.$ac_ext <<_ACEOF | |
15389 | /* end confdefs.h. */ | |
15390 | $ac_includes_default | |
15391 | #include <$ac_header> | |
15392 | _ACEOF | |
15393 | rm -f conftest.$ac_objext | |
15394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15395 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15396 | ac_status=$? |
ac1cb8d3 VS |
15397 | grep -v '^ *+' conftest.er1 >conftest.err |
15398 | rm -f conftest.er1 | |
15399 | cat conftest.err >&5 | |
a848cd7e SC |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15401 | (exit $ac_status); } && | |
6ebeb4c7 | 15402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15404 | (eval $ac_try) 2>&5 | |
15405 | ac_status=$? | |
15406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15407 | (exit $ac_status); }; } && | |
15408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15410 | (eval $ac_try) 2>&5 | |
15411 | ac_status=$? | |
15412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15413 | (exit $ac_status); }; }; then | |
15414 | ac_header_compiler=yes | |
15415 | else | |
15416 | echo "$as_me: failed program was:" >&5 | |
15417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15418 | ||
15419 | ac_header_compiler=no | |
15420 | fi | |
ac1cb8d3 | 15421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15422 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15423 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15424 | ||
15425 | # Is the header present? | |
15426 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15427 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15428 | cat >conftest.$ac_ext <<_ACEOF | |
15429 | /* confdefs.h. */ | |
15430 | _ACEOF | |
15431 | cat confdefs.h >>conftest.$ac_ext | |
15432 | cat >>conftest.$ac_ext <<_ACEOF | |
15433 | /* end confdefs.h. */ | |
15434 | #include <$ac_header> | |
15435 | _ACEOF | |
15436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15438 | ac_status=$? | |
15439 | grep -v '^ *+' conftest.er1 >conftest.err | |
15440 | rm -f conftest.er1 | |
15441 | cat conftest.err >&5 | |
15442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15443 | (exit $ac_status); } >/dev/null; then | |
15444 | if test -s conftest.err; then | |
15445 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15446 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15447 | else |
15448 | ac_cpp_err= | |
15449 | fi | |
15450 | else | |
15451 | ac_cpp_err=yes | |
15452 | fi | |
15453 | if test -z "$ac_cpp_err"; then | |
15454 | ac_header_preproc=yes | |
15455 | else | |
15456 | echo "$as_me: failed program was:" >&5 | |
15457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15458 | ||
15459 | ac_header_preproc=no | |
15460 | fi | |
15461 | rm -f conftest.err conftest.$ac_ext | |
15462 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15463 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15464 | ||
15465 | # So? What about this header? | |
ac1cb8d3 VS |
15466 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15467 | yes:no: ) | |
a848cd7e SC |
15468 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15469 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15471 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15472 | ac_header_preproc=yes | |
a848cd7e | 15473 | ;; |
ac1cb8d3 | 15474 | no:yes:* ) |
a848cd7e SC |
15475 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15476 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15477 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15478 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15479 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15480 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15481 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15482 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15484 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15485 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15486 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15487 | ( |
15488 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15489 | ## ----------------------------------------- ## |
15490 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15491 | ## ----------------------------------------- ## | |
a848cd7e SC |
15492 | _ASBOX |
15493 | ) | | |
15494 | sed "s/^/$as_me: WARNING: /" >&2 | |
15495 | ;; | |
15496 | esac | |
15497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15501 | else | |
ac1cb8d3 | 15502 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15503 | fi |
15504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15506 | ||
15507 | fi | |
15508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15509 | cat >>confdefs.h <<_ACEOF | |
15510 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15511 | _ACEOF | |
15512 | ||
15513 | fi | |
15514 | ||
15515 | done | |
15516 | ||
15517 | fi | |
15518 | ||
15519 | ||
15520 | for ac_header in fnmatch.h | |
15521 | do | |
15522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15524 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15528 | fi | |
15529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15531 | else | |
15532 | # Is the header compilable? | |
15533 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15535 | cat >conftest.$ac_ext <<_ACEOF | |
15536 | /* confdefs.h. */ | |
15537 | _ACEOF | |
15538 | cat confdefs.h >>conftest.$ac_ext | |
15539 | cat >>conftest.$ac_ext <<_ACEOF | |
15540 | /* end confdefs.h. */ | |
15541 | $ac_includes_default | |
15542 | #include <$ac_header> | |
15543 | _ACEOF | |
15544 | rm -f conftest.$ac_objext | |
15545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15546 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15547 | ac_status=$? |
ac1cb8d3 VS |
15548 | grep -v '^ *+' conftest.er1 >conftest.err |
15549 | rm -f conftest.er1 | |
15550 | cat conftest.err >&5 | |
a848cd7e SC |
15551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15552 | (exit $ac_status); } && | |
6ebeb4c7 | 15553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15555 | (eval $ac_try) 2>&5 | |
15556 | ac_status=$? | |
15557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15558 | (exit $ac_status); }; } && | |
15559 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15561 | (eval $ac_try) 2>&5 | |
15562 | ac_status=$? | |
15563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15564 | (exit $ac_status); }; }; then | |
15565 | ac_header_compiler=yes | |
15566 | else | |
15567 | echo "$as_me: failed program was:" >&5 | |
15568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15569 | ||
15570 | ac_header_compiler=no | |
15571 | fi | |
ac1cb8d3 | 15572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15573 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15574 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15575 | ||
15576 | # Is the header present? | |
15577 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15578 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15579 | cat >conftest.$ac_ext <<_ACEOF | |
15580 | /* confdefs.h. */ | |
15581 | _ACEOF | |
15582 | cat confdefs.h >>conftest.$ac_ext | |
15583 | cat >>conftest.$ac_ext <<_ACEOF | |
15584 | /* end confdefs.h. */ | |
15585 | #include <$ac_header> | |
15586 | _ACEOF | |
15587 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15588 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15589 | ac_status=$? | |
15590 | grep -v '^ *+' conftest.er1 >conftest.err | |
15591 | rm -f conftest.er1 | |
15592 | cat conftest.err >&5 | |
15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15594 | (exit $ac_status); } >/dev/null; then | |
15595 | if test -s conftest.err; then | |
15596 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15597 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15598 | else |
15599 | ac_cpp_err= | |
15600 | fi | |
15601 | else | |
15602 | ac_cpp_err=yes | |
15603 | fi | |
15604 | if test -z "$ac_cpp_err"; then | |
15605 | ac_header_preproc=yes | |
15606 | else | |
15607 | echo "$as_me: failed program was:" >&5 | |
15608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15609 | ||
15610 | ac_header_preproc=no | |
15611 | fi | |
15612 | rm -f conftest.err conftest.$ac_ext | |
15613 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15614 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15615 | ||
15616 | # So? What about this header? | |
ac1cb8d3 VS |
15617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15618 | yes:no: ) | |
a848cd7e SC |
15619 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15620 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15622 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15623 | ac_header_preproc=yes | |
a848cd7e | 15624 | ;; |
ac1cb8d3 | 15625 | no:yes:* ) |
a848cd7e SC |
15626 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15627 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15628 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15629 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15630 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15631 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15632 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15633 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15634 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15635 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15636 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15637 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15638 | ( |
15639 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15640 | ## ----------------------------------------- ## |
15641 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15642 | ## ----------------------------------------- ## | |
a848cd7e SC |
15643 | _ASBOX |
15644 | ) | | |
15645 | sed "s/^/$as_me: WARNING: /" >&2 | |
15646 | ;; | |
15647 | esac | |
15648 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15649 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15652 | else | |
ac1cb8d3 | 15653 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15654 | fi |
15655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15656 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15657 | ||
15658 | fi | |
15659 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15660 | cat >>confdefs.h <<_ACEOF | |
15661 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15662 | _ACEOF | |
15663 | ||
15664 | fi | |
15665 | ||
15666 | done | |
15667 | ||
15668 | ||
a848cd7e SC |
15669 | |
15670 | for ac_header in langinfo.h | |
15671 | do | |
15672 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15674 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15678 | fi | |
15679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15681 | else | |
15682 | # Is the header compilable? | |
15683 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15684 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15685 | cat >conftest.$ac_ext <<_ACEOF | |
15686 | /* confdefs.h. */ | |
15687 | _ACEOF | |
15688 | cat confdefs.h >>conftest.$ac_ext | |
15689 | cat >>conftest.$ac_ext <<_ACEOF | |
15690 | /* end confdefs.h. */ | |
15691 | $ac_includes_default | |
15692 | #include <$ac_header> | |
15693 | _ACEOF | |
15694 | rm -f conftest.$ac_objext | |
15695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15697 | ac_status=$? |
ac1cb8d3 VS |
15698 | grep -v '^ *+' conftest.er1 >conftest.err |
15699 | rm -f conftest.er1 | |
15700 | cat conftest.err >&5 | |
a848cd7e SC |
15701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15702 | (exit $ac_status); } && | |
6ebeb4c7 | 15703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15705 | (eval $ac_try) 2>&5 | |
15706 | ac_status=$? | |
15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15708 | (exit $ac_status); }; } && | |
15709 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15711 | (eval $ac_try) 2>&5 | |
15712 | ac_status=$? | |
15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15714 | (exit $ac_status); }; }; then | |
15715 | ac_header_compiler=yes | |
15716 | else | |
15717 | echo "$as_me: failed program was:" >&5 | |
15718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15719 | ||
15720 | ac_header_compiler=no | |
15721 | fi | |
ac1cb8d3 | 15722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15724 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15725 | ||
15726 | # Is the header present? | |
15727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15729 | cat >conftest.$ac_ext <<_ACEOF | |
15730 | /* confdefs.h. */ | |
15731 | _ACEOF | |
15732 | cat confdefs.h >>conftest.$ac_ext | |
15733 | cat >>conftest.$ac_ext <<_ACEOF | |
15734 | /* end confdefs.h. */ | |
15735 | #include <$ac_header> | |
15736 | _ACEOF | |
15737 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15738 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15739 | ac_status=$? | |
15740 | grep -v '^ *+' conftest.er1 >conftest.err | |
15741 | rm -f conftest.er1 | |
15742 | cat conftest.err >&5 | |
15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15744 | (exit $ac_status); } >/dev/null; then | |
15745 | if test -s conftest.err; then | |
15746 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15747 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15748 | else |
15749 | ac_cpp_err= | |
15750 | fi | |
15751 | else | |
15752 | ac_cpp_err=yes | |
15753 | fi | |
15754 | if test -z "$ac_cpp_err"; then | |
15755 | ac_header_preproc=yes | |
15756 | else | |
15757 | echo "$as_me: failed program was:" >&5 | |
15758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15759 | ||
15760 | ac_header_preproc=no | |
15761 | fi | |
15762 | rm -f conftest.err conftest.$ac_ext | |
15763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15764 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15765 | ||
15766 | # So? What about this header? | |
ac1cb8d3 VS |
15767 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15768 | yes:no: ) | |
a848cd7e SC |
15769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15772 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15773 | ac_header_preproc=yes | |
a848cd7e | 15774 | ;; |
ac1cb8d3 | 15775 | no:yes:* ) |
a848cd7e SC |
15776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15780 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15781 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15782 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15783 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15784 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15786 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15787 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15788 | ( |
15789 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15790 | ## ----------------------------------------- ## |
15791 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15792 | ## ----------------------------------------- ## | |
a848cd7e SC |
15793 | _ASBOX |
15794 | ) | | |
15795 | sed "s/^/$as_me: WARNING: /" >&2 | |
15796 | ;; | |
15797 | esac | |
15798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15802 | else | |
ac1cb8d3 | 15803 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15804 | fi |
15805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15807 | ||
15808 | fi | |
15809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15810 | cat >>confdefs.h <<_ACEOF | |
15811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15812 | _ACEOF | |
15813 | ||
15814 | fi | |
15815 | ||
15816 | done | |
15817 | ||
15818 | ||
15819 | case "${host}" in | |
15820 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15821 | if test $ac_cv_header_langinfo_h = "yes" \ |
15822 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15823 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15824 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15825 | LIBS="$LIBS -lintl" |
15826 | fi | |
15827 | ;; | |
15828 | esac | |
15829 | ||
a848cd7e SC |
15830 | |
15831 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15832 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15833 | if test "${ac_cv_c_const+set}" = set; then | |
15834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15835 | else | |
15836 | cat >conftest.$ac_ext <<_ACEOF | |
15837 | /* confdefs.h. */ | |
15838 | _ACEOF | |
15839 | cat confdefs.h >>conftest.$ac_ext | |
15840 | cat >>conftest.$ac_ext <<_ACEOF | |
15841 | /* end confdefs.h. */ | |
15842 | ||
15843 | int | |
15844 | main () | |
15845 | { | |
15846 | /* FIXME: Include the comments suggested by Paul. */ | |
15847 | #ifndef __cplusplus | |
15848 | /* Ultrix mips cc rejects this. */ | |
15849 | typedef int charset[2]; | |
15850 | const charset x; | |
15851 | /* SunOS 4.1.1 cc rejects this. */ | |
15852 | char const *const *ccp; | |
15853 | char **p; | |
15854 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15855 | struct point {int x, y;}; | |
15856 | static struct point const zero = {0,0}; | |
15857 | /* AIX XL C 1.02.0.0 rejects this. | |
15858 | It does not let you subtract one const X* pointer from another in | |
15859 | an arm of an if-expression whose if-part is not a constant | |
15860 | expression */ | |
15861 | const char *g = "string"; | |
15862 | ccp = &g + (g ? g-g : 0); | |
15863 | /* HPUX 7.0 cc rejects these. */ | |
15864 | ++ccp; | |
15865 | p = (char**) ccp; | |
15866 | ccp = (char const *const *) p; | |
15867 | { /* SCO 3.2v4 cc rejects this. */ | |
15868 | char *t; | |
15869 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15870 | ||
15871 | *t++ = 0; | |
15872 | } | |
15873 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15874 | int x[] = {25, 17}; | |
15875 | const int *foo = &x[0]; | |
15876 | ++foo; | |
15877 | } | |
15878 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15879 | typedef const int *iptr; | |
15880 | iptr p = 0; | |
15881 | ++p; | |
15882 | } | |
15883 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15884 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15885 | struct s { int j; const int *ap[3]; }; | |
15886 | struct s *b; b->j = 5; | |
15887 | } | |
15888 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15889 | const int foo = 10; | |
15890 | } | |
15891 | #endif | |
15892 | ||
15893 | ; | |
15894 | return 0; | |
15895 | } | |
15896 | _ACEOF | |
15897 | rm -f conftest.$ac_objext | |
15898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15899 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15900 | ac_status=$? |
ac1cb8d3 VS |
15901 | grep -v '^ *+' conftest.er1 >conftest.err |
15902 | rm -f conftest.er1 | |
15903 | cat conftest.err >&5 | |
a848cd7e SC |
15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15905 | (exit $ac_status); } && | |
6ebeb4c7 | 15906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15908 | (eval $ac_try) 2>&5 | |
15909 | ac_status=$? | |
15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15911 | (exit $ac_status); }; } && | |
15912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15914 | (eval $ac_try) 2>&5 | |
15915 | ac_status=$? | |
15916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15917 | (exit $ac_status); }; }; then | |
15918 | ac_cv_c_const=yes | |
15919 | else | |
15920 | echo "$as_me: failed program was:" >&5 | |
15921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15922 | ||
15923 | ac_cv_c_const=no | |
15924 | fi | |
ac1cb8d3 | 15925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15926 | fi |
15927 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15928 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15929 | if test $ac_cv_c_const = no; then | |
15930 | ||
15931 | cat >>confdefs.h <<\_ACEOF | |
15932 | #define const | |
15933 | _ACEOF | |
15934 | ||
15935 | fi | |
15936 | ||
15937 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15938 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15939 | if test "${ac_cv_c_inline+set}" = set; then | |
15940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15941 | else | |
15942 | ac_cv_c_inline=no | |
15943 | for ac_kw in inline __inline__ __inline; do | |
15944 | cat >conftest.$ac_ext <<_ACEOF | |
15945 | /* confdefs.h. */ | |
15946 | _ACEOF | |
15947 | cat confdefs.h >>conftest.$ac_ext | |
15948 | cat >>conftest.$ac_ext <<_ACEOF | |
15949 | /* end confdefs.h. */ | |
15950 | #ifndef __cplusplus | |
15951 | typedef int foo_t; | |
15952 | static $ac_kw foo_t static_foo () {return 0; } | |
15953 | $ac_kw foo_t foo () {return 0; } | |
15954 | #endif | |
15955 | ||
15956 | _ACEOF | |
15957 | rm -f conftest.$ac_objext | |
15958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15960 | ac_status=$? |
ac1cb8d3 VS |
15961 | grep -v '^ *+' conftest.er1 >conftest.err |
15962 | rm -f conftest.er1 | |
15963 | cat conftest.err >&5 | |
a848cd7e SC |
15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15965 | (exit $ac_status); } && | |
6ebeb4c7 | 15966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15968 | (eval $ac_try) 2>&5 | |
15969 | ac_status=$? | |
15970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15971 | (exit $ac_status); }; } && | |
15972 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15974 | (eval $ac_try) 2>&5 | |
15975 | ac_status=$? | |
15976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15977 | (exit $ac_status); }; }; then | |
15978 | ac_cv_c_inline=$ac_kw; break | |
15979 | else | |
15980 | echo "$as_me: failed program was:" >&5 | |
15981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15982 | ||
15983 | fi | |
ac1cb8d3 | 15984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15985 | done |
15986 | ||
15987 | fi | |
15988 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15989 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15990 | |
15991 | ||
a848cd7e SC |
15992 | case $ac_cv_c_inline in |
15993 | inline | yes) ;; | |
ac1cb8d3 VS |
15994 | *) |
15995 | case $ac_cv_c_inline in | |
15996 | no) ac_val=;; | |
15997 | *) ac_val=$ac_cv_c_inline;; | |
15998 | esac | |
15999 | cat >>confdefs.h <<_ACEOF | |
16000 | #ifndef __cplusplus | |
16001 | #define inline $ac_val | |
16002 | #endif | |
de59c161 | 16003 | _ACEOF |
ac1cb8d3 | 16004 | ;; |
a848cd7e SC |
16005 | esac |
16006 | ||
16007 | ||
16008 | echo "$as_me:$LINENO: checking for char" >&5 | |
16009 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16010 | if test "${ac_cv_type_char+set}" = set; then | |
16011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16012 | else | |
16013 | cat >conftest.$ac_ext <<_ACEOF | |
16014 | /* confdefs.h. */ | |
16015 | _ACEOF | |
16016 | cat confdefs.h >>conftest.$ac_ext | |
16017 | cat >>conftest.$ac_ext <<_ACEOF | |
16018 | /* end confdefs.h. */ | |
16019 | $ac_includes_default | |
16020 | int | |
16021 | main () | |
16022 | { | |
16023 | if ((char *) 0) | |
16024 | return 0; | |
16025 | if (sizeof (char)) | |
16026 | return 0; | |
16027 | ; | |
16028 | return 0; | |
16029 | } | |
16030 | _ACEOF | |
16031 | rm -f conftest.$ac_objext | |
16032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16033 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16034 | ac_status=$? |
ac1cb8d3 VS |
16035 | grep -v '^ *+' conftest.er1 >conftest.err |
16036 | rm -f conftest.er1 | |
16037 | cat conftest.err >&5 | |
a848cd7e SC |
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16039 | (exit $ac_status); } && | |
6ebeb4c7 | 16040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16042 | (eval $ac_try) 2>&5 | |
16043 | ac_status=$? | |
16044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16045 | (exit $ac_status); }; } && | |
16046 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16048 | (eval $ac_try) 2>&5 | |
16049 | ac_status=$? | |
16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16051 | (exit $ac_status); }; }; then | |
16052 | ac_cv_type_char=yes | |
16053 | else | |
16054 | echo "$as_me: failed program was:" >&5 | |
16055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16056 | ||
16057 | ac_cv_type_char=no | |
16058 | fi | |
ac1cb8d3 | 16059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16060 | fi |
16061 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16062 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16063 | ||
16064 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16065 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16066 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16068 | else | |
16069 | if test "$ac_cv_type_char" = yes; then | |
16070 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16071 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16072 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16073 | # This bug is HP SR number 8606223364. | |
16074 | if test "$cross_compiling" = yes; then | |
16075 | # Depending upon the size, compute the lo and hi bounds. | |
16076 | cat >conftest.$ac_ext <<_ACEOF | |
16077 | /* confdefs.h. */ | |
16078 | _ACEOF | |
16079 | cat confdefs.h >>conftest.$ac_ext | |
16080 | cat >>conftest.$ac_ext <<_ACEOF | |
16081 | /* end confdefs.h. */ | |
16082 | $ac_includes_default | |
16083 | int | |
16084 | main () | |
16085 | { | |
16086 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16087 | test_array [0] = 0 | |
16088 | ||
16089 | ; | |
16090 | return 0; | |
16091 | } | |
16092 | _ACEOF | |
16093 | rm -f conftest.$ac_objext | |
16094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16095 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16096 | ac_status=$? |
ac1cb8d3 VS |
16097 | grep -v '^ *+' conftest.er1 >conftest.err |
16098 | rm -f conftest.er1 | |
16099 | cat conftest.err >&5 | |
a848cd7e SC |
16100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16101 | (exit $ac_status); } && | |
6ebeb4c7 | 16102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16104 | (eval $ac_try) 2>&5 | |
16105 | ac_status=$? | |
16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16107 | (exit $ac_status); }; } && | |
16108 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16110 | (eval $ac_try) 2>&5 | |
16111 | ac_status=$? | |
16112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16113 | (exit $ac_status); }; }; then | |
16114 | ac_lo=0 ac_mid=0 | |
16115 | while :; do | |
16116 | cat >conftest.$ac_ext <<_ACEOF | |
16117 | /* confdefs.h. */ | |
16118 | _ACEOF | |
16119 | cat confdefs.h >>conftest.$ac_ext | |
16120 | cat >>conftest.$ac_ext <<_ACEOF | |
16121 | /* end confdefs.h. */ | |
16122 | $ac_includes_default | |
16123 | int | |
16124 | main () | |
16125 | { | |
16126 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16127 | test_array [0] = 0 | |
16128 | ||
16129 | ; | |
16130 | return 0; | |
16131 | } | |
16132 | _ACEOF | |
16133 | rm -f conftest.$ac_objext | |
16134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16135 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16136 | ac_status=$? |
ac1cb8d3 VS |
16137 | grep -v '^ *+' conftest.er1 >conftest.err |
16138 | rm -f conftest.er1 | |
16139 | cat conftest.err >&5 | |
a848cd7e SC |
16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16141 | (exit $ac_status); } && | |
6ebeb4c7 | 16142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16144 | (eval $ac_try) 2>&5 | |
16145 | ac_status=$? | |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16147 | (exit $ac_status); }; } && | |
16148 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16150 | (eval $ac_try) 2>&5 | |
16151 | ac_status=$? | |
16152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16153 | (exit $ac_status); }; }; then | |
16154 | ac_hi=$ac_mid; break | |
16155 | else | |
16156 | echo "$as_me: failed program was:" >&5 | |
16157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16158 | ||
16159 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16160 | if test $ac_lo -le $ac_mid; then |
16161 | ac_lo= ac_hi= | |
16162 | break | |
16163 | fi | |
16164 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16165 | fi |
ac1cb8d3 | 16166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16167 | done |
16168 | else | |
16169 | echo "$as_me: failed program was:" >&5 | |
16170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16171 | ||
16172 | cat >conftest.$ac_ext <<_ACEOF | |
16173 | /* confdefs.h. */ | |
16174 | _ACEOF | |
16175 | cat confdefs.h >>conftest.$ac_ext | |
16176 | cat >>conftest.$ac_ext <<_ACEOF | |
16177 | /* end confdefs.h. */ | |
16178 | $ac_includes_default | |
16179 | int | |
16180 | main () | |
16181 | { | |
16182 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
16183 | test_array [0] = 0 | |
16184 | ||
16185 | ; | |
16186 | return 0; | |
16187 | } | |
16188 | _ACEOF | |
16189 | rm -f conftest.$ac_objext | |
16190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16191 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16192 | ac_status=$? |
ac1cb8d3 VS |
16193 | grep -v '^ *+' conftest.er1 >conftest.err |
16194 | rm -f conftest.er1 | |
16195 | cat conftest.err >&5 | |
a848cd7e SC |
16196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16197 | (exit $ac_status); } && | |
6ebeb4c7 | 16198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16200 | (eval $ac_try) 2>&5 | |
16201 | ac_status=$? | |
16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16203 | (exit $ac_status); }; } && | |
16204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16206 | (eval $ac_try) 2>&5 | |
16207 | ac_status=$? | |
16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16209 | (exit $ac_status); }; }; then | |
16210 | ac_hi=-1 ac_mid=-1 | |
16211 | while :; do | |
16212 | cat >conftest.$ac_ext <<_ACEOF | |
16213 | /* confdefs.h. */ | |
16214 | _ACEOF | |
16215 | cat confdefs.h >>conftest.$ac_ext | |
16216 | cat >>conftest.$ac_ext <<_ACEOF | |
16217 | /* end confdefs.h. */ | |
16218 | $ac_includes_default | |
16219 | int | |
16220 | main () | |
16221 | { | |
16222 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
16223 | test_array [0] = 0 | |
16224 | ||
16225 | ; | |
16226 | return 0; | |
16227 | } | |
16228 | _ACEOF | |
16229 | rm -f conftest.$ac_objext | |
16230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16231 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16232 | ac_status=$? |
ac1cb8d3 VS |
16233 | grep -v '^ *+' conftest.er1 >conftest.err |
16234 | rm -f conftest.er1 | |
16235 | cat conftest.err >&5 | |
a848cd7e SC |
16236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16237 | (exit $ac_status); } && | |
6ebeb4c7 | 16238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16240 | (eval $ac_try) 2>&5 | |
16241 | ac_status=$? | |
16242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16243 | (exit $ac_status); }; } && | |
16244 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16246 | (eval $ac_try) 2>&5 | |
16247 | ac_status=$? | |
16248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16249 | (exit $ac_status); }; }; then | |
16250 | ac_lo=$ac_mid; break | |
16251 | else | |
16252 | echo "$as_me: failed program was:" >&5 | |
16253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16254 | ||
16255 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16256 | if test $ac_mid -le $ac_hi; then |
16257 | ac_lo= ac_hi= | |
16258 | break | |
16259 | fi | |
16260 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16261 | fi |
ac1cb8d3 | 16262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16263 | done |
16264 | else | |
16265 | echo "$as_me: failed program was:" >&5 | |
16266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16267 | ||
16268 | ac_lo= ac_hi= | |
16269 | fi | |
ac1cb8d3 | 16270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16271 | fi |
ac1cb8d3 | 16272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16273 | # Binary search between lo and hi bounds. |
16274 | while test "x$ac_lo" != "x$ac_hi"; do | |
16275 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16276 | cat >conftest.$ac_ext <<_ACEOF | |
16277 | /* confdefs.h. */ | |
16278 | _ACEOF | |
16279 | cat confdefs.h >>conftest.$ac_ext | |
16280 | cat >>conftest.$ac_ext <<_ACEOF | |
16281 | /* end confdefs.h. */ | |
16282 | $ac_includes_default | |
16283 | int | |
16284 | main () | |
16285 | { | |
16286 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16287 | test_array [0] = 0 | |
16288 | ||
16289 | ; | |
16290 | return 0; | |
16291 | } | |
16292 | _ACEOF | |
16293 | rm -f conftest.$ac_objext | |
16294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16295 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16296 | ac_status=$? |
ac1cb8d3 VS |
16297 | grep -v '^ *+' conftest.er1 >conftest.err |
16298 | rm -f conftest.er1 | |
16299 | cat conftest.err >&5 | |
a848cd7e SC |
16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16301 | (exit $ac_status); } && | |
6ebeb4c7 | 16302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16304 | (eval $ac_try) 2>&5 | |
16305 | ac_status=$? | |
16306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16307 | (exit $ac_status); }; } && | |
16308 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16310 | (eval $ac_try) 2>&5 | |
16311 | ac_status=$? | |
16312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16313 | (exit $ac_status); }; }; then | |
16314 | ac_hi=$ac_mid | |
16315 | else | |
16316 | echo "$as_me: failed program was:" >&5 | |
16317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16318 | ||
16319 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16320 | fi | |
ac1cb8d3 | 16321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16322 | done |
16323 | case $ac_lo in | |
16324 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
16325 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16326 | See \`config.log' for more details." >&5 | |
16327 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16328 | See \`config.log' for more details." >&2;} | |
16329 | { (exit 1); exit 1; }; } ;; | |
16330 | esac | |
16331 | else | |
16332 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16333 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16334 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16335 | { (exit 1); exit 1; }; } |
16336 | else | |
16337 | cat >conftest.$ac_ext <<_ACEOF | |
16338 | /* confdefs.h. */ | |
16339 | _ACEOF | |
16340 | cat confdefs.h >>conftest.$ac_ext | |
16341 | cat >>conftest.$ac_ext <<_ACEOF | |
16342 | /* end confdefs.h. */ | |
16343 | $ac_includes_default | |
16344 | long longval () { return (long) (sizeof (char)); } | |
16345 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16346 | #include <stdio.h> | |
16347 | #include <stdlib.h> | |
16348 | int | |
16349 | main () | |
16350 | { | |
16351 | ||
16352 | FILE *f = fopen ("conftest.val", "w"); | |
16353 | if (! f) | |
16354 | exit (1); | |
16355 | if (((long) (sizeof (char))) < 0) | |
16356 | { | |
16357 | long i = longval (); | |
16358 | if (i != ((long) (sizeof (char)))) | |
16359 | exit (1); | |
16360 | fprintf (f, "%ld\n", i); | |
16361 | } | |
16362 | else | |
16363 | { | |
16364 | unsigned long i = ulongval (); | |
16365 | if (i != ((long) (sizeof (char)))) | |
16366 | exit (1); | |
16367 | fprintf (f, "%lu\n", i); | |
16368 | } | |
16369 | exit (ferror (f) || fclose (f) != 0); | |
16370 | ||
16371 | ; | |
16372 | return 0; | |
16373 | } | |
16374 | _ACEOF | |
16375 | rm -f conftest$ac_exeext | |
16376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16377 | (eval $ac_link) 2>&5 | |
16378 | ac_status=$? | |
16379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16382 | (eval $ac_try) 2>&5 | |
16383 | ac_status=$? | |
16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16385 | (exit $ac_status); }; }; then | |
16386 | ac_cv_sizeof_char=`cat conftest.val` | |
16387 | else | |
16388 | echo "$as_me: program exited with status $ac_status" >&5 | |
16389 | echo "$as_me: failed program was:" >&5 | |
16390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16391 | ||
16392 | ( exit $ac_status ) | |
16393 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16394 | See \`config.log' for more details." >&5 | |
16395 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16396 | See \`config.log' for more details." >&2;} | |
16397 | { (exit 1); exit 1; }; } | |
16398 | fi | |
ac1cb8d3 | 16399 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16400 | fi |
16401 | fi | |
16402 | rm -f conftest.val | |
16403 | else | |
16404 | ac_cv_sizeof_char=0 | |
16405 | fi | |
16406 | fi | |
16407 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
16408 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
16409 | cat >>confdefs.h <<_ACEOF | |
16410 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16411 | _ACEOF | |
16412 | ||
16413 | ||
16414 | echo "$as_me:$LINENO: checking for short" >&5 | |
16415 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16416 | if test "${ac_cv_type_short+set}" = set; then | |
16417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16418 | else | |
16419 | cat >conftest.$ac_ext <<_ACEOF | |
16420 | /* confdefs.h. */ | |
16421 | _ACEOF | |
16422 | cat confdefs.h >>conftest.$ac_ext | |
16423 | cat >>conftest.$ac_ext <<_ACEOF | |
16424 | /* end confdefs.h. */ | |
16425 | $ac_includes_default | |
16426 | int | |
16427 | main () | |
16428 | { | |
16429 | if ((short *) 0) | |
16430 | return 0; | |
16431 | if (sizeof (short)) | |
16432 | return 0; | |
16433 | ; | |
16434 | return 0; | |
16435 | } | |
16436 | _ACEOF | |
16437 | rm -f conftest.$ac_objext | |
16438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16440 | ac_status=$? |
ac1cb8d3 VS |
16441 | grep -v '^ *+' conftest.er1 >conftest.err |
16442 | rm -f conftest.er1 | |
16443 | cat conftest.err >&5 | |
a848cd7e SC |
16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16445 | (exit $ac_status); } && | |
6ebeb4c7 | 16446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16448 | (eval $ac_try) 2>&5 | |
16449 | ac_status=$? | |
16450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16451 | (exit $ac_status); }; } && | |
16452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16454 | (eval $ac_try) 2>&5 | |
16455 | ac_status=$? | |
16456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16457 | (exit $ac_status); }; }; then | |
16458 | ac_cv_type_short=yes | |
16459 | else | |
16460 | echo "$as_me: failed program was:" >&5 | |
16461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16462 | ||
16463 | ac_cv_type_short=no | |
16464 | fi | |
ac1cb8d3 | 16465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16466 | fi |
16467 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16468 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16469 | ||
16470 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16471 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16472 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16474 | else | |
16475 | if test "$ac_cv_type_short" = yes; then | |
16476 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16477 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16478 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16479 | # This bug is HP SR number 8606223364. | |
16480 | if test "$cross_compiling" = yes; then | |
16481 | # Depending upon the size, compute the lo and hi bounds. | |
16482 | cat >conftest.$ac_ext <<_ACEOF | |
16483 | /* confdefs.h. */ | |
16484 | _ACEOF | |
16485 | cat confdefs.h >>conftest.$ac_ext | |
16486 | cat >>conftest.$ac_ext <<_ACEOF | |
16487 | /* end confdefs.h. */ | |
16488 | $ac_includes_default | |
16489 | int | |
16490 | main () | |
16491 | { | |
16492 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16493 | test_array [0] = 0 | |
16494 | ||
16495 | ; | |
16496 | return 0; | |
16497 | } | |
16498 | _ACEOF | |
16499 | rm -f conftest.$ac_objext | |
16500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16501 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16502 | ac_status=$? |
ac1cb8d3 VS |
16503 | grep -v '^ *+' conftest.er1 >conftest.err |
16504 | rm -f conftest.er1 | |
16505 | cat conftest.err >&5 | |
a848cd7e SC |
16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16507 | (exit $ac_status); } && | |
6ebeb4c7 | 16508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; } && | |
16514 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16516 | (eval $ac_try) 2>&5 | |
16517 | ac_status=$? | |
16518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16519 | (exit $ac_status); }; }; then | |
16520 | ac_lo=0 ac_mid=0 | |
16521 | while :; do | |
16522 | cat >conftest.$ac_ext <<_ACEOF | |
16523 | /* confdefs.h. */ | |
16524 | _ACEOF | |
16525 | cat confdefs.h >>conftest.$ac_ext | |
16526 | cat >>conftest.$ac_ext <<_ACEOF | |
16527 | /* end confdefs.h. */ | |
16528 | $ac_includes_default | |
16529 | int | |
16530 | main () | |
16531 | { | |
16532 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16533 | test_array [0] = 0 | |
16534 | ||
16535 | ; | |
16536 | return 0; | |
16537 | } | |
16538 | _ACEOF | |
16539 | rm -f conftest.$ac_objext | |
16540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16541 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16542 | ac_status=$? |
ac1cb8d3 VS |
16543 | grep -v '^ *+' conftest.er1 >conftest.err |
16544 | rm -f conftest.er1 | |
16545 | cat conftest.err >&5 | |
a848cd7e SC |
16546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16547 | (exit $ac_status); } && | |
6ebeb4c7 | 16548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16550 | (eval $ac_try) 2>&5 | |
16551 | ac_status=$? | |
16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16553 | (exit $ac_status); }; } && | |
16554 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16556 | (eval $ac_try) 2>&5 | |
16557 | ac_status=$? | |
16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16559 | (exit $ac_status); }; }; then | |
16560 | ac_hi=$ac_mid; break | |
16561 | else | |
16562 | echo "$as_me: failed program was:" >&5 | |
16563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16564 | ||
16565 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16566 | if test $ac_lo -le $ac_mid; then |
16567 | ac_lo= ac_hi= | |
16568 | break | |
16569 | fi | |
16570 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16571 | fi |
ac1cb8d3 | 16572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16573 | done |
16574 | else | |
16575 | echo "$as_me: failed program was:" >&5 | |
16576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16577 | ||
16578 | cat >conftest.$ac_ext <<_ACEOF | |
16579 | /* confdefs.h. */ | |
16580 | _ACEOF | |
16581 | cat confdefs.h >>conftest.$ac_ext | |
16582 | cat >>conftest.$ac_ext <<_ACEOF | |
16583 | /* end confdefs.h. */ | |
16584 | $ac_includes_default | |
16585 | int | |
16586 | main () | |
16587 | { | |
16588 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16589 | test_array [0] = 0 | |
16590 | ||
16591 | ; | |
16592 | return 0; | |
16593 | } | |
16594 | _ACEOF | |
16595 | rm -f conftest.$ac_objext | |
16596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16597 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16598 | ac_status=$? |
ac1cb8d3 VS |
16599 | grep -v '^ *+' conftest.er1 >conftest.err |
16600 | rm -f conftest.er1 | |
16601 | cat conftest.err >&5 | |
a848cd7e SC |
16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16603 | (exit $ac_status); } && | |
6ebeb4c7 | 16604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16606 | (eval $ac_try) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); }; } && | |
16610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16612 | (eval $ac_try) 2>&5 | |
16613 | ac_status=$? | |
16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16615 | (exit $ac_status); }; }; then | |
16616 | ac_hi=-1 ac_mid=-1 | |
16617 | while :; do | |
16618 | cat >conftest.$ac_ext <<_ACEOF | |
16619 | /* confdefs.h. */ | |
16620 | _ACEOF | |
16621 | cat confdefs.h >>conftest.$ac_ext | |
16622 | cat >>conftest.$ac_ext <<_ACEOF | |
16623 | /* end confdefs.h. */ | |
16624 | $ac_includes_default | |
16625 | int | |
16626 | main () | |
16627 | { | |
16628 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16629 | test_array [0] = 0 | |
16630 | ||
16631 | ; | |
16632 | return 0; | |
16633 | } | |
16634 | _ACEOF | |
16635 | rm -f conftest.$ac_objext | |
16636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16637 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16638 | ac_status=$? |
ac1cb8d3 VS |
16639 | grep -v '^ *+' conftest.er1 >conftest.err |
16640 | rm -f conftest.er1 | |
16641 | cat conftest.err >&5 | |
a848cd7e SC |
16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16643 | (exit $ac_status); } && | |
6ebeb4c7 | 16644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16646 | (eval $ac_try) 2>&5 | |
16647 | ac_status=$? | |
16648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16649 | (exit $ac_status); }; } && | |
16650 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16652 | (eval $ac_try) 2>&5 | |
16653 | ac_status=$? | |
16654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16655 | (exit $ac_status); }; }; then | |
16656 | ac_lo=$ac_mid; break | |
16657 | else | |
16658 | echo "$as_me: failed program was:" >&5 | |
16659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16660 | ||
16661 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16662 | if test $ac_mid -le $ac_hi; then |
16663 | ac_lo= ac_hi= | |
16664 | break | |
16665 | fi | |
16666 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16667 | fi |
ac1cb8d3 | 16668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16669 | done |
16670 | else | |
16671 | echo "$as_me: failed program was:" >&5 | |
16672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16673 | ||
16674 | ac_lo= ac_hi= | |
16675 | fi | |
ac1cb8d3 | 16676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16677 | fi |
ac1cb8d3 | 16678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16679 | # Binary search between lo and hi bounds. |
16680 | while test "x$ac_lo" != "x$ac_hi"; do | |
16681 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16682 | cat >conftest.$ac_ext <<_ACEOF | |
16683 | /* confdefs.h. */ | |
16684 | _ACEOF | |
16685 | cat confdefs.h >>conftest.$ac_ext | |
16686 | cat >>conftest.$ac_ext <<_ACEOF | |
16687 | /* end confdefs.h. */ | |
16688 | $ac_includes_default | |
16689 | int | |
16690 | main () | |
16691 | { | |
16692 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16693 | test_array [0] = 0 | |
16694 | ||
16695 | ; | |
16696 | return 0; | |
16697 | } | |
16698 | _ACEOF | |
16699 | rm -f conftest.$ac_objext | |
16700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16702 | ac_status=$? |
ac1cb8d3 VS |
16703 | grep -v '^ *+' conftest.er1 >conftest.err |
16704 | rm -f conftest.er1 | |
16705 | cat conftest.err >&5 | |
a848cd7e SC |
16706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16707 | (exit $ac_status); } && | |
6ebeb4c7 | 16708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16710 | (eval $ac_try) 2>&5 | |
16711 | ac_status=$? | |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16713 | (exit $ac_status); }; } && | |
16714 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16716 | (eval $ac_try) 2>&5 | |
16717 | ac_status=$? | |
16718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16719 | (exit $ac_status); }; }; then | |
16720 | ac_hi=$ac_mid | |
16721 | else | |
16722 | echo "$as_me: failed program was:" >&5 | |
16723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16724 | ||
16725 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16726 | fi | |
ac1cb8d3 | 16727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16728 | done |
16729 | case $ac_lo in | |
16730 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16731 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16732 | See \`config.log' for more details." >&5 | |
16733 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16734 | See \`config.log' for more details." >&2;} | |
16735 | { (exit 1); exit 1; }; } ;; | |
16736 | esac | |
16737 | else | |
16738 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16739 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16740 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16741 | { (exit 1); exit 1; }; } |
16742 | else | |
16743 | cat >conftest.$ac_ext <<_ACEOF | |
16744 | /* confdefs.h. */ | |
16745 | _ACEOF | |
16746 | cat confdefs.h >>conftest.$ac_ext | |
16747 | cat >>conftest.$ac_ext <<_ACEOF | |
16748 | /* end confdefs.h. */ | |
16749 | $ac_includes_default | |
16750 | long longval () { return (long) (sizeof (short)); } | |
16751 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16752 | #include <stdio.h> | |
16753 | #include <stdlib.h> | |
16754 | int | |
16755 | main () | |
16756 | { | |
16757 | ||
16758 | FILE *f = fopen ("conftest.val", "w"); | |
16759 | if (! f) | |
16760 | exit (1); | |
16761 | if (((long) (sizeof (short))) < 0) | |
16762 | { | |
16763 | long i = longval (); | |
16764 | if (i != ((long) (sizeof (short)))) | |
16765 | exit (1); | |
16766 | fprintf (f, "%ld\n", i); | |
16767 | } | |
16768 | else | |
16769 | { | |
16770 | unsigned long i = ulongval (); | |
16771 | if (i != ((long) (sizeof (short)))) | |
16772 | exit (1); | |
16773 | fprintf (f, "%lu\n", i); | |
16774 | } | |
16775 | exit (ferror (f) || fclose (f) != 0); | |
16776 | ||
16777 | ; | |
16778 | return 0; | |
16779 | } | |
16780 | _ACEOF | |
16781 | rm -f conftest$ac_exeext | |
16782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16783 | (eval $ac_link) 2>&5 | |
16784 | ac_status=$? | |
16785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16788 | (eval $ac_try) 2>&5 | |
16789 | ac_status=$? | |
16790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16791 | (exit $ac_status); }; }; then | |
16792 | ac_cv_sizeof_short=`cat conftest.val` | |
16793 | else | |
16794 | echo "$as_me: program exited with status $ac_status" >&5 | |
16795 | echo "$as_me: failed program was:" >&5 | |
16796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16797 | ||
16798 | ( exit $ac_status ) | |
16799 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16800 | See \`config.log' for more details." >&5 | |
16801 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16802 | See \`config.log' for more details." >&2;} | |
16803 | { (exit 1); exit 1; }; } | |
16804 | fi | |
ac1cb8d3 | 16805 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16806 | fi |
16807 | fi | |
16808 | rm -f conftest.val | |
16809 | else | |
16810 | ac_cv_sizeof_short=0 | |
16811 | fi | |
16812 | fi | |
16813 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16814 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16815 | cat >>confdefs.h <<_ACEOF | |
16816 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16817 | _ACEOF | |
16818 | ||
16819 | ||
16820 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16821 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16822 | if test "${ac_cv_type_void_p+set}" = set; then | |
16823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16824 | else | |
16825 | cat >conftest.$ac_ext <<_ACEOF | |
16826 | /* confdefs.h. */ | |
16827 | _ACEOF | |
16828 | cat confdefs.h >>conftest.$ac_ext | |
16829 | cat >>conftest.$ac_ext <<_ACEOF | |
16830 | /* end confdefs.h. */ | |
16831 | $ac_includes_default | |
16832 | int | |
16833 | main () | |
16834 | { | |
16835 | if ((void * *) 0) | |
16836 | return 0; | |
16837 | if (sizeof (void *)) | |
16838 | return 0; | |
16839 | ; | |
16840 | return 0; | |
16841 | } | |
16842 | _ACEOF | |
16843 | rm -f conftest.$ac_objext | |
16844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16845 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16846 | ac_status=$? |
ac1cb8d3 VS |
16847 | grep -v '^ *+' conftest.er1 >conftest.err |
16848 | rm -f conftest.er1 | |
16849 | cat conftest.err >&5 | |
a848cd7e SC |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16851 | (exit $ac_status); } && | |
6ebeb4c7 | 16852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16854 | (eval $ac_try) 2>&5 | |
16855 | ac_status=$? | |
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16857 | (exit $ac_status); }; } && | |
16858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16860 | (eval $ac_try) 2>&5 | |
16861 | ac_status=$? | |
16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16863 | (exit $ac_status); }; }; then | |
16864 | ac_cv_type_void_p=yes | |
16865 | else | |
16866 | echo "$as_me: failed program was:" >&5 | |
16867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16868 | ||
16869 | ac_cv_type_void_p=no | |
16870 | fi | |
ac1cb8d3 | 16871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16872 | fi |
16873 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16874 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16875 | ||
16876 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16877 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16878 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16880 | else | |
16881 | if test "$ac_cv_type_void_p" = yes; then | |
16882 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16883 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16884 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16885 | # This bug is HP SR number 8606223364. | |
16886 | if test "$cross_compiling" = yes; then | |
16887 | # Depending upon the size, compute the lo and hi bounds. | |
16888 | cat >conftest.$ac_ext <<_ACEOF | |
16889 | /* confdefs.h. */ | |
16890 | _ACEOF | |
16891 | cat confdefs.h >>conftest.$ac_ext | |
16892 | cat >>conftest.$ac_ext <<_ACEOF | |
16893 | /* end confdefs.h. */ | |
16894 | $ac_includes_default | |
16895 | int | |
16896 | main () | |
16897 | { | |
16898 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16899 | test_array [0] = 0 | |
16900 | ||
16901 | ; | |
16902 | return 0; | |
16903 | } | |
16904 | _ACEOF | |
16905 | rm -f conftest.$ac_objext | |
16906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16907 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16908 | ac_status=$? |
ac1cb8d3 VS |
16909 | grep -v '^ *+' conftest.er1 >conftest.err |
16910 | rm -f conftest.er1 | |
16911 | cat conftest.err >&5 | |
a848cd7e SC |
16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16913 | (exit $ac_status); } && | |
6ebeb4c7 | 16914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16916 | (eval $ac_try) 2>&5 | |
16917 | ac_status=$? | |
16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16919 | (exit $ac_status); }; } && | |
16920 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16922 | (eval $ac_try) 2>&5 | |
16923 | ac_status=$? | |
16924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16925 | (exit $ac_status); }; }; then | |
16926 | ac_lo=0 ac_mid=0 | |
16927 | while :; do | |
16928 | cat >conftest.$ac_ext <<_ACEOF | |
16929 | /* confdefs.h. */ | |
16930 | _ACEOF | |
16931 | cat confdefs.h >>conftest.$ac_ext | |
16932 | cat >>conftest.$ac_ext <<_ACEOF | |
16933 | /* end confdefs.h. */ | |
16934 | $ac_includes_default | |
16935 | int | |
16936 | main () | |
16937 | { | |
16938 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16939 | test_array [0] = 0 | |
16940 | ||
16941 | ; | |
16942 | return 0; | |
16943 | } | |
16944 | _ACEOF | |
16945 | rm -f conftest.$ac_objext | |
16946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16947 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16948 | ac_status=$? |
ac1cb8d3 VS |
16949 | grep -v '^ *+' conftest.er1 >conftest.err |
16950 | rm -f conftest.er1 | |
16951 | cat conftest.err >&5 | |
a848cd7e SC |
16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16953 | (exit $ac_status); } && | |
6ebeb4c7 | 16954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16956 | (eval $ac_try) 2>&5 | |
16957 | ac_status=$? | |
16958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16959 | (exit $ac_status); }; } && | |
16960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16962 | (eval $ac_try) 2>&5 | |
16963 | ac_status=$? | |
16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16965 | (exit $ac_status); }; }; then | |
16966 | ac_hi=$ac_mid; break | |
16967 | else | |
16968 | echo "$as_me: failed program was:" >&5 | |
16969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16970 | ||
16971 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16972 | if test $ac_lo -le $ac_mid; then |
16973 | ac_lo= ac_hi= | |
16974 | break | |
16975 | fi | |
16976 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16977 | fi |
ac1cb8d3 | 16978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16979 | done |
16980 | else | |
16981 | echo "$as_me: failed program was:" >&5 | |
16982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16983 | ||
16984 | cat >conftest.$ac_ext <<_ACEOF | |
16985 | /* confdefs.h. */ | |
16986 | _ACEOF | |
16987 | cat confdefs.h >>conftest.$ac_ext | |
16988 | cat >>conftest.$ac_ext <<_ACEOF | |
16989 | /* end confdefs.h. */ | |
16990 | $ac_includes_default | |
16991 | int | |
16992 | main () | |
16993 | { | |
16994 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16995 | test_array [0] = 0 | |
16996 | ||
16997 | ; | |
16998 | return 0; | |
16999 | } | |
17000 | _ACEOF | |
17001 | rm -f conftest.$ac_objext | |
17002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17004 | ac_status=$? |
ac1cb8d3 VS |
17005 | grep -v '^ *+' conftest.er1 >conftest.err |
17006 | rm -f conftest.er1 | |
17007 | cat conftest.err >&5 | |
a848cd7e SC |
17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17009 | (exit $ac_status); } && | |
6ebeb4c7 | 17010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17012 | (eval $ac_try) 2>&5 | |
17013 | ac_status=$? | |
17014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17015 | (exit $ac_status); }; } && | |
17016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17018 | (eval $ac_try) 2>&5 | |
17019 | ac_status=$? | |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17021 | (exit $ac_status); }; }; then | |
17022 | ac_hi=-1 ac_mid=-1 | |
17023 | while :; do | |
17024 | cat >conftest.$ac_ext <<_ACEOF | |
17025 | /* confdefs.h. */ | |
17026 | _ACEOF | |
17027 | cat confdefs.h >>conftest.$ac_ext | |
17028 | cat >>conftest.$ac_ext <<_ACEOF | |
17029 | /* end confdefs.h. */ | |
17030 | $ac_includes_default | |
17031 | int | |
17032 | main () | |
17033 | { | |
17034 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17035 | test_array [0] = 0 | |
17036 | ||
17037 | ; | |
17038 | return 0; | |
17039 | } | |
17040 | _ACEOF | |
17041 | rm -f conftest.$ac_objext | |
17042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17043 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17044 | ac_status=$? |
ac1cb8d3 VS |
17045 | grep -v '^ *+' conftest.er1 >conftest.err |
17046 | rm -f conftest.er1 | |
17047 | cat conftest.err >&5 | |
a848cd7e SC |
17048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17049 | (exit $ac_status); } && | |
6ebeb4c7 | 17050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17052 | (eval $ac_try) 2>&5 | |
17053 | ac_status=$? | |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17055 | (exit $ac_status); }; } && | |
17056 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17058 | (eval $ac_try) 2>&5 | |
17059 | ac_status=$? | |
17060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17061 | (exit $ac_status); }; }; then | |
17062 | ac_lo=$ac_mid; break | |
17063 | else | |
17064 | echo "$as_me: failed program was:" >&5 | |
17065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17066 | ||
17067 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17068 | if test $ac_mid -le $ac_hi; then |
17069 | ac_lo= ac_hi= | |
17070 | break | |
17071 | fi | |
17072 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17073 | fi |
ac1cb8d3 | 17074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17075 | done |
17076 | else | |
17077 | echo "$as_me: failed program was:" >&5 | |
17078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17079 | ||
17080 | ac_lo= ac_hi= | |
17081 | fi | |
ac1cb8d3 | 17082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17083 | fi |
ac1cb8d3 | 17084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17085 | # Binary search between lo and hi bounds. |
17086 | while test "x$ac_lo" != "x$ac_hi"; do | |
17087 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17088 | cat >conftest.$ac_ext <<_ACEOF | |
17089 | /* confdefs.h. */ | |
17090 | _ACEOF | |
17091 | cat confdefs.h >>conftest.$ac_ext | |
17092 | cat >>conftest.$ac_ext <<_ACEOF | |
17093 | /* end confdefs.h. */ | |
17094 | $ac_includes_default | |
17095 | int | |
17096 | main () | |
17097 | { | |
17098 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17099 | test_array [0] = 0 | |
17100 | ||
17101 | ; | |
17102 | return 0; | |
17103 | } | |
17104 | _ACEOF | |
17105 | rm -f conftest.$ac_objext | |
17106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17107 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17108 | ac_status=$? |
ac1cb8d3 VS |
17109 | grep -v '^ *+' conftest.er1 >conftest.err |
17110 | rm -f conftest.er1 | |
17111 | cat conftest.err >&5 | |
a848cd7e SC |
17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17113 | (exit $ac_status); } && | |
6ebeb4c7 | 17114 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17116 | (eval $ac_try) 2>&5 | |
17117 | ac_status=$? | |
17118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17119 | (exit $ac_status); }; } && | |
17120 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17122 | (eval $ac_try) 2>&5 | |
17123 | ac_status=$? | |
17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17125 | (exit $ac_status); }; }; then | |
17126 | ac_hi=$ac_mid | |
17127 | else | |
17128 | echo "$as_me: failed program was:" >&5 | |
17129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17130 | ||
17131 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17132 | fi | |
ac1cb8d3 | 17133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17134 | done |
17135 | case $ac_lo in | |
17136 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
17137 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17138 | See \`config.log' for more details." >&5 | |
17139 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17140 | See \`config.log' for more details." >&2;} | |
17141 | { (exit 1); exit 1; }; } ;; | |
17142 | esac | |
17143 | else | |
17144 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17145 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17146 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17147 | { (exit 1); exit 1; }; } |
17148 | else | |
17149 | cat >conftest.$ac_ext <<_ACEOF | |
17150 | /* confdefs.h. */ | |
17151 | _ACEOF | |
17152 | cat confdefs.h >>conftest.$ac_ext | |
17153 | cat >>conftest.$ac_ext <<_ACEOF | |
17154 | /* end confdefs.h. */ | |
17155 | $ac_includes_default | |
17156 | long longval () { return (long) (sizeof (void *)); } | |
17157 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
17158 | #include <stdio.h> | |
17159 | #include <stdlib.h> | |
17160 | int | |
17161 | main () | |
17162 | { | |
17163 | ||
17164 | FILE *f = fopen ("conftest.val", "w"); | |
17165 | if (! f) | |
17166 | exit (1); | |
17167 | if (((long) (sizeof (void *))) < 0) | |
17168 | { | |
17169 | long i = longval (); | |
17170 | if (i != ((long) (sizeof (void *)))) | |
17171 | exit (1); | |
17172 | fprintf (f, "%ld\n", i); | |
17173 | } | |
17174 | else | |
17175 | { | |
17176 | unsigned long i = ulongval (); | |
17177 | if (i != ((long) (sizeof (void *)))) | |
17178 | exit (1); | |
17179 | fprintf (f, "%lu\n", i); | |
17180 | } | |
17181 | exit (ferror (f) || fclose (f) != 0); | |
17182 | ||
17183 | ; | |
17184 | return 0; | |
17185 | } | |
17186 | _ACEOF | |
17187 | rm -f conftest$ac_exeext | |
17188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17189 | (eval $ac_link) 2>&5 | |
17190 | ac_status=$? | |
17191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17192 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17194 | (eval $ac_try) 2>&5 | |
17195 | ac_status=$? | |
17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17197 | (exit $ac_status); }; }; then | |
17198 | ac_cv_sizeof_void_p=`cat conftest.val` | |
17199 | else | |
17200 | echo "$as_me: program exited with status $ac_status" >&5 | |
17201 | echo "$as_me: failed program was:" >&5 | |
17202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17203 | ||
17204 | ( exit $ac_status ) | |
17205 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17206 | See \`config.log' for more details." >&5 | |
17207 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17208 | See \`config.log' for more details." >&2;} | |
17209 | { (exit 1); exit 1; }; } | |
17210 | fi | |
ac1cb8d3 | 17211 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17212 | fi |
17213 | fi | |
17214 | rm -f conftest.val | |
17215 | else | |
17216 | ac_cv_sizeof_void_p=0 | |
17217 | fi | |
17218 | fi | |
17219 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
17220 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
17221 | cat >>confdefs.h <<_ACEOF | |
17222 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17223 | _ACEOF | |
17224 | ||
17225 | ||
17226 | echo "$as_me:$LINENO: checking for int" >&5 | |
17227 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
17228 | if test "${ac_cv_type_int+set}" = set; then | |
17229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17230 | else | |
17231 | cat >conftest.$ac_ext <<_ACEOF | |
17232 | /* confdefs.h. */ | |
17233 | _ACEOF | |
17234 | cat confdefs.h >>conftest.$ac_ext | |
17235 | cat >>conftest.$ac_ext <<_ACEOF | |
17236 | /* end confdefs.h. */ | |
17237 | $ac_includes_default | |
17238 | int | |
17239 | main () | |
17240 | { | |
17241 | if ((int *) 0) | |
17242 | return 0; | |
17243 | if (sizeof (int)) | |
17244 | return 0; | |
17245 | ; | |
17246 | return 0; | |
17247 | } | |
17248 | _ACEOF | |
17249 | rm -f conftest.$ac_objext | |
17250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17252 | ac_status=$? |
ac1cb8d3 VS |
17253 | grep -v '^ *+' conftest.er1 >conftest.err |
17254 | rm -f conftest.er1 | |
17255 | cat conftest.err >&5 | |
a848cd7e SC |
17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17257 | (exit $ac_status); } && | |
6ebeb4c7 | 17258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17260 | (eval $ac_try) 2>&5 | |
17261 | ac_status=$? | |
17262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17263 | (exit $ac_status); }; } && | |
17264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17266 | (eval $ac_try) 2>&5 | |
17267 | ac_status=$? | |
17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17269 | (exit $ac_status); }; }; then | |
17270 | ac_cv_type_int=yes | |
17271 | else | |
17272 | echo "$as_me: failed program was:" >&5 | |
17273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17274 | ||
17275 | ac_cv_type_int=no | |
17276 | fi | |
ac1cb8d3 | 17277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17278 | fi |
17279 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
17280 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
17281 | ||
17282 | echo "$as_me:$LINENO: checking size of int" >&5 | |
17283 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
17284 | if test "${ac_cv_sizeof_int+set}" = set; then | |
17285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17286 | else | |
17287 | if test "$ac_cv_type_int" = yes; then | |
17288 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17289 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17290 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17291 | # This bug is HP SR number 8606223364. | |
17292 | if test "$cross_compiling" = yes; then | |
17293 | # Depending upon the size, compute the lo and hi bounds. | |
17294 | cat >conftest.$ac_ext <<_ACEOF | |
17295 | /* confdefs.h. */ | |
17296 | _ACEOF | |
17297 | cat confdefs.h >>conftest.$ac_ext | |
17298 | cat >>conftest.$ac_ext <<_ACEOF | |
17299 | /* end confdefs.h. */ | |
17300 | $ac_includes_default | |
17301 | int | |
17302 | main () | |
17303 | { | |
17304 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
17305 | test_array [0] = 0 | |
17306 | ||
17307 | ; | |
17308 | return 0; | |
17309 | } | |
17310 | _ACEOF | |
17311 | rm -f conftest.$ac_objext | |
17312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17313 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17314 | ac_status=$? |
ac1cb8d3 VS |
17315 | grep -v '^ *+' conftest.er1 >conftest.err |
17316 | rm -f conftest.er1 | |
17317 | cat conftest.err >&5 | |
a848cd7e SC |
17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17319 | (exit $ac_status); } && | |
6ebeb4c7 | 17320 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17322 | (eval $ac_try) 2>&5 | |
17323 | ac_status=$? | |
17324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17325 | (exit $ac_status); }; } && | |
17326 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17328 | (eval $ac_try) 2>&5 | |
17329 | ac_status=$? | |
17330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17331 | (exit $ac_status); }; }; then | |
17332 | ac_lo=0 ac_mid=0 | |
17333 | while :; do | |
17334 | cat >conftest.$ac_ext <<_ACEOF | |
17335 | /* confdefs.h. */ | |
17336 | _ACEOF | |
17337 | cat confdefs.h >>conftest.$ac_ext | |
17338 | cat >>conftest.$ac_ext <<_ACEOF | |
17339 | /* end confdefs.h. */ | |
17340 | $ac_includes_default | |
17341 | int | |
17342 | main () | |
17343 | { | |
17344 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17345 | test_array [0] = 0 | |
17346 | ||
17347 | ; | |
17348 | return 0; | |
17349 | } | |
17350 | _ACEOF | |
17351 | rm -f conftest.$ac_objext | |
17352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17354 | ac_status=$? |
ac1cb8d3 VS |
17355 | grep -v '^ *+' conftest.er1 >conftest.err |
17356 | rm -f conftest.er1 | |
17357 | cat conftest.err >&5 | |
a848cd7e SC |
17358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17359 | (exit $ac_status); } && | |
6ebeb4c7 | 17360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17362 | (eval $ac_try) 2>&5 | |
17363 | ac_status=$? | |
17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17365 | (exit $ac_status); }; } && | |
17366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17368 | (eval $ac_try) 2>&5 | |
17369 | ac_status=$? | |
17370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17371 | (exit $ac_status); }; }; then | |
17372 | ac_hi=$ac_mid; break | |
17373 | else | |
17374 | echo "$as_me: failed program was:" >&5 | |
17375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17376 | ||
17377 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17378 | if test $ac_lo -le $ac_mid; then |
17379 | ac_lo= ac_hi= | |
17380 | break | |
17381 | fi | |
17382 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17383 | fi |
ac1cb8d3 | 17384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17385 | done |
17386 | else | |
17387 | echo "$as_me: failed program was:" >&5 | |
17388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17389 | ||
17390 | cat >conftest.$ac_ext <<_ACEOF | |
17391 | /* confdefs.h. */ | |
17392 | _ACEOF | |
17393 | cat confdefs.h >>conftest.$ac_ext | |
17394 | cat >>conftest.$ac_ext <<_ACEOF | |
17395 | /* end confdefs.h. */ | |
17396 | $ac_includes_default | |
17397 | int | |
17398 | main () | |
17399 | { | |
17400 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
17401 | test_array [0] = 0 | |
17402 | ||
17403 | ; | |
17404 | return 0; | |
17405 | } | |
17406 | _ACEOF | |
17407 | rm -f conftest.$ac_objext | |
17408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17410 | ac_status=$? |
ac1cb8d3 VS |
17411 | grep -v '^ *+' conftest.er1 >conftest.err |
17412 | rm -f conftest.er1 | |
17413 | cat conftest.err >&5 | |
a848cd7e SC |
17414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17415 | (exit $ac_status); } && | |
6ebeb4c7 | 17416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17418 | (eval $ac_try) 2>&5 | |
17419 | ac_status=$? | |
17420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17421 | (exit $ac_status); }; } && | |
17422 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17424 | (eval $ac_try) 2>&5 | |
17425 | ac_status=$? | |
17426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17427 | (exit $ac_status); }; }; then | |
17428 | ac_hi=-1 ac_mid=-1 | |
17429 | while :; do | |
17430 | cat >conftest.$ac_ext <<_ACEOF | |
17431 | /* confdefs.h. */ | |
17432 | _ACEOF | |
17433 | cat confdefs.h >>conftest.$ac_ext | |
17434 | cat >>conftest.$ac_ext <<_ACEOF | |
17435 | /* end confdefs.h. */ | |
17436 | $ac_includes_default | |
17437 | int | |
17438 | main () | |
17439 | { | |
17440 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
17441 | test_array [0] = 0 | |
17442 | ||
17443 | ; | |
17444 | return 0; | |
17445 | } | |
17446 | _ACEOF | |
17447 | rm -f conftest.$ac_objext | |
17448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17449 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17450 | ac_status=$? |
ac1cb8d3 VS |
17451 | grep -v '^ *+' conftest.er1 >conftest.err |
17452 | rm -f conftest.er1 | |
17453 | cat conftest.err >&5 | |
a848cd7e SC |
17454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17455 | (exit $ac_status); } && | |
6ebeb4c7 | 17456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17458 | (eval $ac_try) 2>&5 | |
17459 | ac_status=$? | |
17460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17461 | (exit $ac_status); }; } && | |
17462 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17464 | (eval $ac_try) 2>&5 | |
17465 | ac_status=$? | |
17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17467 | (exit $ac_status); }; }; then | |
17468 | ac_lo=$ac_mid; break | |
17469 | else | |
17470 | echo "$as_me: failed program was:" >&5 | |
17471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17472 | ||
17473 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17474 | if test $ac_mid -le $ac_hi; then |
17475 | ac_lo= ac_hi= | |
17476 | break | |
17477 | fi | |
17478 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17479 | fi |
ac1cb8d3 | 17480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17481 | done |
17482 | else | |
17483 | echo "$as_me: failed program was:" >&5 | |
17484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17485 | ||
17486 | ac_lo= ac_hi= | |
17487 | fi | |
ac1cb8d3 | 17488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17489 | fi |
ac1cb8d3 | 17490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17491 | # Binary search between lo and hi bounds. |
17492 | while test "x$ac_lo" != "x$ac_hi"; do | |
17493 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17494 | cat >conftest.$ac_ext <<_ACEOF | |
17495 | /* confdefs.h. */ | |
17496 | _ACEOF | |
17497 | cat confdefs.h >>conftest.$ac_ext | |
17498 | cat >>conftest.$ac_ext <<_ACEOF | |
17499 | /* end confdefs.h. */ | |
17500 | $ac_includes_default | |
17501 | int | |
17502 | main () | |
17503 | { | |
17504 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17505 | test_array [0] = 0 | |
17506 | ||
17507 | ; | |
17508 | return 0; | |
17509 | } | |
17510 | _ACEOF | |
17511 | rm -f conftest.$ac_objext | |
17512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17513 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17514 | ac_status=$? |
ac1cb8d3 VS |
17515 | grep -v '^ *+' conftest.er1 >conftest.err |
17516 | rm -f conftest.er1 | |
17517 | cat conftest.err >&5 | |
a848cd7e SC |
17518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17519 | (exit $ac_status); } && | |
6ebeb4c7 | 17520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17522 | (eval $ac_try) 2>&5 | |
17523 | ac_status=$? | |
17524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17525 | (exit $ac_status); }; } && | |
17526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17528 | (eval $ac_try) 2>&5 | |
17529 | ac_status=$? | |
17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17531 | (exit $ac_status); }; }; then | |
17532 | ac_hi=$ac_mid | |
17533 | else | |
17534 | echo "$as_me: failed program was:" >&5 | |
17535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17536 | ||
17537 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17538 | fi | |
ac1cb8d3 | 17539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17540 | done |
17541 | case $ac_lo in | |
17542 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17543 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17544 | See \`config.log' for more details." >&5 | |
17545 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17546 | See \`config.log' for more details." >&2;} | |
17547 | { (exit 1); exit 1; }; } ;; | |
17548 | esac | |
17549 | else | |
17550 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17551 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17552 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17553 | { (exit 1); exit 1; }; } |
17554 | else | |
17555 | cat >conftest.$ac_ext <<_ACEOF | |
17556 | /* confdefs.h. */ | |
17557 | _ACEOF | |
17558 | cat confdefs.h >>conftest.$ac_ext | |
17559 | cat >>conftest.$ac_ext <<_ACEOF | |
17560 | /* end confdefs.h. */ | |
17561 | $ac_includes_default | |
17562 | long longval () { return (long) (sizeof (int)); } | |
17563 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17564 | #include <stdio.h> | |
17565 | #include <stdlib.h> | |
17566 | int | |
17567 | main () | |
17568 | { | |
17569 | ||
17570 | FILE *f = fopen ("conftest.val", "w"); | |
17571 | if (! f) | |
17572 | exit (1); | |
17573 | if (((long) (sizeof (int))) < 0) | |
17574 | { | |
17575 | long i = longval (); | |
17576 | if (i != ((long) (sizeof (int)))) | |
17577 | exit (1); | |
17578 | fprintf (f, "%ld\n", i); | |
17579 | } | |
17580 | else | |
17581 | { | |
17582 | unsigned long i = ulongval (); | |
17583 | if (i != ((long) (sizeof (int)))) | |
17584 | exit (1); | |
17585 | fprintf (f, "%lu\n", i); | |
17586 | } | |
17587 | exit (ferror (f) || fclose (f) != 0); | |
17588 | ||
17589 | ; | |
17590 | return 0; | |
17591 | } | |
17592 | _ACEOF | |
17593 | rm -f conftest$ac_exeext | |
17594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17595 | (eval $ac_link) 2>&5 | |
17596 | ac_status=$? | |
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17600 | (eval $ac_try) 2>&5 | |
17601 | ac_status=$? | |
17602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17603 | (exit $ac_status); }; }; then | |
17604 | ac_cv_sizeof_int=`cat conftest.val` | |
17605 | else | |
17606 | echo "$as_me: program exited with status $ac_status" >&5 | |
17607 | echo "$as_me: failed program was:" >&5 | |
17608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17609 | ||
17610 | ( exit $ac_status ) | |
17611 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17612 | See \`config.log' for more details." >&5 | |
17613 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17614 | See \`config.log' for more details." >&2;} | |
17615 | { (exit 1); exit 1; }; } | |
17616 | fi | |
ac1cb8d3 | 17617 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17618 | fi |
17619 | fi | |
17620 | rm -f conftest.val | |
17621 | else | |
17622 | ac_cv_sizeof_int=0 | |
17623 | fi | |
17624 | fi | |
17625 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17626 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17627 | cat >>confdefs.h <<_ACEOF | |
17628 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17629 | _ACEOF | |
17630 | ||
17631 | ||
17632 | echo "$as_me:$LINENO: checking for long" >&5 | |
17633 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17634 | if test "${ac_cv_type_long+set}" = set; then | |
17635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17636 | else | |
17637 | cat >conftest.$ac_ext <<_ACEOF | |
17638 | /* confdefs.h. */ | |
17639 | _ACEOF | |
17640 | cat confdefs.h >>conftest.$ac_ext | |
17641 | cat >>conftest.$ac_ext <<_ACEOF | |
17642 | /* end confdefs.h. */ | |
17643 | $ac_includes_default | |
17644 | int | |
17645 | main () | |
17646 | { | |
17647 | if ((long *) 0) | |
17648 | return 0; | |
17649 | if (sizeof (long)) | |
17650 | return 0; | |
17651 | ; | |
17652 | return 0; | |
17653 | } | |
17654 | _ACEOF | |
17655 | rm -f conftest.$ac_objext | |
17656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17657 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17658 | ac_status=$? |
ac1cb8d3 VS |
17659 | grep -v '^ *+' conftest.er1 >conftest.err |
17660 | rm -f conftest.er1 | |
17661 | cat conftest.err >&5 | |
a848cd7e SC |
17662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17663 | (exit $ac_status); } && | |
6ebeb4c7 | 17664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17666 | (eval $ac_try) 2>&5 | |
17667 | ac_status=$? | |
17668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17669 | (exit $ac_status); }; } && | |
17670 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17672 | (eval $ac_try) 2>&5 | |
17673 | ac_status=$? | |
17674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17675 | (exit $ac_status); }; }; then | |
17676 | ac_cv_type_long=yes | |
17677 | else | |
17678 | echo "$as_me: failed program was:" >&5 | |
17679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17680 | ||
17681 | ac_cv_type_long=no | |
17682 | fi | |
ac1cb8d3 | 17683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17684 | fi |
17685 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17686 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17687 | ||
17688 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17689 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17690 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17692 | else | |
17693 | if test "$ac_cv_type_long" = yes; then | |
17694 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17695 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17696 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17697 | # This bug is HP SR number 8606223364. | |
17698 | if test "$cross_compiling" = yes; then | |
17699 | # Depending upon the size, compute the lo and hi bounds. | |
17700 | cat >conftest.$ac_ext <<_ACEOF | |
17701 | /* confdefs.h. */ | |
17702 | _ACEOF | |
17703 | cat confdefs.h >>conftest.$ac_ext | |
17704 | cat >>conftest.$ac_ext <<_ACEOF | |
17705 | /* end confdefs.h. */ | |
17706 | $ac_includes_default | |
17707 | int | |
17708 | main () | |
17709 | { | |
17710 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17711 | test_array [0] = 0 | |
17712 | ||
17713 | ; | |
17714 | return 0; | |
17715 | } | |
17716 | _ACEOF | |
17717 | rm -f conftest.$ac_objext | |
17718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17719 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17720 | ac_status=$? |
ac1cb8d3 VS |
17721 | grep -v '^ *+' conftest.er1 >conftest.err |
17722 | rm -f conftest.er1 | |
17723 | cat conftest.err >&5 | |
a848cd7e SC |
17724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17725 | (exit $ac_status); } && | |
6ebeb4c7 | 17726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17728 | (eval $ac_try) 2>&5 | |
17729 | ac_status=$? | |
17730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17731 | (exit $ac_status); }; } && | |
17732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17734 | (eval $ac_try) 2>&5 | |
17735 | ac_status=$? | |
17736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17737 | (exit $ac_status); }; }; then | |
17738 | ac_lo=0 ac_mid=0 | |
17739 | while :; do | |
17740 | cat >conftest.$ac_ext <<_ACEOF | |
17741 | /* confdefs.h. */ | |
17742 | _ACEOF | |
17743 | cat confdefs.h >>conftest.$ac_ext | |
17744 | cat >>conftest.$ac_ext <<_ACEOF | |
17745 | /* end confdefs.h. */ | |
17746 | $ac_includes_default | |
17747 | int | |
17748 | main () | |
17749 | { | |
17750 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17751 | test_array [0] = 0 | |
17752 | ||
17753 | ; | |
17754 | return 0; | |
17755 | } | |
17756 | _ACEOF | |
17757 | rm -f conftest.$ac_objext | |
17758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17759 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17760 | ac_status=$? |
ac1cb8d3 VS |
17761 | grep -v '^ *+' conftest.er1 >conftest.err |
17762 | rm -f conftest.er1 | |
17763 | cat conftest.err >&5 | |
a848cd7e SC |
17764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17765 | (exit $ac_status); } && | |
6ebeb4c7 | 17766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17768 | (eval $ac_try) 2>&5 | |
17769 | ac_status=$? | |
17770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17771 | (exit $ac_status); }; } && | |
17772 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17774 | (eval $ac_try) 2>&5 | |
17775 | ac_status=$? | |
17776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17777 | (exit $ac_status); }; }; then | |
17778 | ac_hi=$ac_mid; break | |
17779 | else | |
17780 | echo "$as_me: failed program was:" >&5 | |
17781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17782 | ||
17783 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17784 | if test $ac_lo -le $ac_mid; then |
17785 | ac_lo= ac_hi= | |
17786 | break | |
17787 | fi | |
17788 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17789 | fi |
ac1cb8d3 | 17790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17791 | done |
17792 | else | |
17793 | echo "$as_me: failed program was:" >&5 | |
17794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17795 | ||
17796 | cat >conftest.$ac_ext <<_ACEOF | |
17797 | /* confdefs.h. */ | |
17798 | _ACEOF | |
17799 | cat confdefs.h >>conftest.$ac_ext | |
17800 | cat >>conftest.$ac_ext <<_ACEOF | |
17801 | /* end confdefs.h. */ | |
17802 | $ac_includes_default | |
17803 | int | |
17804 | main () | |
17805 | { | |
17806 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17807 | test_array [0] = 0 | |
17808 | ||
17809 | ; | |
17810 | return 0; | |
17811 | } | |
17812 | _ACEOF | |
17813 | rm -f conftest.$ac_objext | |
17814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17815 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17816 | ac_status=$? |
ac1cb8d3 VS |
17817 | grep -v '^ *+' conftest.er1 >conftest.err |
17818 | rm -f conftest.er1 | |
17819 | cat conftest.err >&5 | |
a848cd7e SC |
17820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17821 | (exit $ac_status); } && | |
6ebeb4c7 | 17822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17824 | (eval $ac_try) 2>&5 | |
17825 | ac_status=$? | |
17826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17827 | (exit $ac_status); }; } && | |
17828 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17830 | (eval $ac_try) 2>&5 | |
17831 | ac_status=$? | |
17832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17833 | (exit $ac_status); }; }; then | |
17834 | ac_hi=-1 ac_mid=-1 | |
17835 | while :; do | |
17836 | cat >conftest.$ac_ext <<_ACEOF | |
17837 | /* confdefs.h. */ | |
17838 | _ACEOF | |
17839 | cat confdefs.h >>conftest.$ac_ext | |
17840 | cat >>conftest.$ac_ext <<_ACEOF | |
17841 | /* end confdefs.h. */ | |
17842 | $ac_includes_default | |
17843 | int | |
17844 | main () | |
17845 | { | |
17846 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17847 | test_array [0] = 0 | |
17848 | ||
17849 | ; | |
17850 | return 0; | |
17851 | } | |
17852 | _ACEOF | |
17853 | rm -f conftest.$ac_objext | |
17854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17855 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17856 | ac_status=$? |
ac1cb8d3 VS |
17857 | grep -v '^ *+' conftest.er1 >conftest.err |
17858 | rm -f conftest.er1 | |
17859 | cat conftest.err >&5 | |
a848cd7e SC |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17861 | (exit $ac_status); } && | |
6ebeb4c7 | 17862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17864 | (eval $ac_try) 2>&5 | |
17865 | ac_status=$? | |
17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17867 | (exit $ac_status); }; } && | |
17868 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17870 | (eval $ac_try) 2>&5 | |
17871 | ac_status=$? | |
17872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17873 | (exit $ac_status); }; }; then | |
17874 | ac_lo=$ac_mid; break | |
17875 | else | |
17876 | echo "$as_me: failed program was:" >&5 | |
17877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17878 | ||
17879 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17880 | if test $ac_mid -le $ac_hi; then |
17881 | ac_lo= ac_hi= | |
17882 | break | |
17883 | fi | |
17884 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17885 | fi |
ac1cb8d3 | 17886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17887 | done |
17888 | else | |
17889 | echo "$as_me: failed program was:" >&5 | |
17890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17891 | ||
17892 | ac_lo= ac_hi= | |
17893 | fi | |
ac1cb8d3 | 17894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17895 | fi |
ac1cb8d3 | 17896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17897 | # Binary search between lo and hi bounds. |
17898 | while test "x$ac_lo" != "x$ac_hi"; do | |
17899 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17900 | cat >conftest.$ac_ext <<_ACEOF | |
17901 | /* confdefs.h. */ | |
17902 | _ACEOF | |
17903 | cat confdefs.h >>conftest.$ac_ext | |
17904 | cat >>conftest.$ac_ext <<_ACEOF | |
17905 | /* end confdefs.h. */ | |
17906 | $ac_includes_default | |
17907 | int | |
17908 | main () | |
17909 | { | |
17910 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17911 | test_array [0] = 0 | |
17912 | ||
17913 | ; | |
17914 | return 0; | |
17915 | } | |
17916 | _ACEOF | |
17917 | rm -f conftest.$ac_objext | |
17918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17919 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17920 | ac_status=$? |
ac1cb8d3 VS |
17921 | grep -v '^ *+' conftest.er1 >conftest.err |
17922 | rm -f conftest.er1 | |
17923 | cat conftest.err >&5 | |
a848cd7e SC |
17924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17925 | (exit $ac_status); } && | |
6ebeb4c7 | 17926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17928 | (eval $ac_try) 2>&5 | |
17929 | ac_status=$? | |
17930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17931 | (exit $ac_status); }; } && | |
17932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17934 | (eval $ac_try) 2>&5 | |
17935 | ac_status=$? | |
17936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17937 | (exit $ac_status); }; }; then | |
17938 | ac_hi=$ac_mid | |
17939 | else | |
17940 | echo "$as_me: failed program was:" >&5 | |
17941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17942 | ||
17943 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17944 | fi | |
ac1cb8d3 | 17945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17946 | done |
17947 | case $ac_lo in | |
17948 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17949 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17950 | See \`config.log' for more details." >&5 | |
17951 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17952 | See \`config.log' for more details." >&2;} | |
17953 | { (exit 1); exit 1; }; } ;; | |
17954 | esac | |
17955 | else | |
17956 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17957 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17958 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17959 | { (exit 1); exit 1; }; } |
17960 | else | |
17961 | cat >conftest.$ac_ext <<_ACEOF | |
17962 | /* confdefs.h. */ | |
17963 | _ACEOF | |
17964 | cat confdefs.h >>conftest.$ac_ext | |
17965 | cat >>conftest.$ac_ext <<_ACEOF | |
17966 | /* end confdefs.h. */ | |
17967 | $ac_includes_default | |
17968 | long longval () { return (long) (sizeof (long)); } | |
17969 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17970 | #include <stdio.h> | |
17971 | #include <stdlib.h> | |
17972 | int | |
17973 | main () | |
17974 | { | |
17975 | ||
17976 | FILE *f = fopen ("conftest.val", "w"); | |
17977 | if (! f) | |
17978 | exit (1); | |
17979 | if (((long) (sizeof (long))) < 0) | |
17980 | { | |
17981 | long i = longval (); | |
17982 | if (i != ((long) (sizeof (long)))) | |
17983 | exit (1); | |
17984 | fprintf (f, "%ld\n", i); | |
17985 | } | |
17986 | else | |
17987 | { | |
17988 | unsigned long i = ulongval (); | |
17989 | if (i != ((long) (sizeof (long)))) | |
17990 | exit (1); | |
17991 | fprintf (f, "%lu\n", i); | |
17992 | } | |
17993 | exit (ferror (f) || fclose (f) != 0); | |
17994 | ||
17995 | ; | |
17996 | return 0; | |
17997 | } | |
17998 | _ACEOF | |
17999 | rm -f conftest$ac_exeext | |
18000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18001 | (eval $ac_link) 2>&5 | |
18002 | ac_status=$? | |
18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18004 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18006 | (eval $ac_try) 2>&5 | |
18007 | ac_status=$? | |
18008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18009 | (exit $ac_status); }; }; then | |
18010 | ac_cv_sizeof_long=`cat conftest.val` | |
18011 | else | |
18012 | echo "$as_me: program exited with status $ac_status" >&5 | |
18013 | echo "$as_me: failed program was:" >&5 | |
18014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18015 | ||
18016 | ( exit $ac_status ) | |
18017 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18018 | See \`config.log' for more details." >&5 | |
18019 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18020 | See \`config.log' for more details." >&2;} | |
18021 | { (exit 1); exit 1; }; } | |
18022 | fi | |
ac1cb8d3 | 18023 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18024 | fi |
18025 | fi | |
18026 | rm -f conftest.val | |
18027 | else | |
18028 | ac_cv_sizeof_long=0 | |
18029 | fi | |
18030 | fi | |
18031 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18032 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18033 | cat >>confdefs.h <<_ACEOF | |
18034 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18035 | _ACEOF | |
18036 | ||
18037 | ||
18038 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18039 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18040 | if test "${ac_cv_type_size_t+set}" = set; then | |
18041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18042 | else | |
18043 | cat >conftest.$ac_ext <<_ACEOF | |
18044 | /* confdefs.h. */ | |
18045 | _ACEOF | |
18046 | cat confdefs.h >>conftest.$ac_ext | |
18047 | cat >>conftest.$ac_ext <<_ACEOF | |
18048 | /* end confdefs.h. */ | |
18049 | $ac_includes_default | |
18050 | int | |
18051 | main () | |
18052 | { | |
18053 | if ((size_t *) 0) | |
18054 | return 0; | |
18055 | if (sizeof (size_t)) | |
18056 | return 0; | |
18057 | ; | |
18058 | return 0; | |
18059 | } | |
18060 | _ACEOF | |
18061 | rm -f conftest.$ac_objext | |
18062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18063 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18064 | ac_status=$? |
ac1cb8d3 VS |
18065 | grep -v '^ *+' conftest.er1 >conftest.err |
18066 | rm -f conftest.er1 | |
18067 | cat conftest.err >&5 | |
a848cd7e SC |
18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18069 | (exit $ac_status); } && | |
6ebeb4c7 | 18070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18072 | (eval $ac_try) 2>&5 | |
18073 | ac_status=$? | |
18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18075 | (exit $ac_status); }; } && | |
18076 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18078 | (eval $ac_try) 2>&5 | |
18079 | ac_status=$? | |
18080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18081 | (exit $ac_status); }; }; then | |
18082 | ac_cv_type_size_t=yes | |
18083 | else | |
18084 | echo "$as_me: failed program was:" >&5 | |
18085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18086 | ||
18087 | ac_cv_type_size_t=no | |
18088 | fi | |
ac1cb8d3 | 18089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18090 | fi |
18091 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18092 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18093 | ||
18094 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18095 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18096 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18098 | else | |
18099 | if test "$ac_cv_type_size_t" = yes; then | |
18100 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18101 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18102 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18103 | # This bug is HP SR number 8606223364. | |
18104 | if test "$cross_compiling" = yes; then | |
18105 | # Depending upon the size, compute the lo and hi bounds. | |
18106 | cat >conftest.$ac_ext <<_ACEOF | |
18107 | /* confdefs.h. */ | |
18108 | _ACEOF | |
18109 | cat confdefs.h >>conftest.$ac_ext | |
18110 | cat >>conftest.$ac_ext <<_ACEOF | |
18111 | /* end confdefs.h. */ | |
18112 | $ac_includes_default | |
18113 | int | |
18114 | main () | |
18115 | { | |
18116 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18117 | test_array [0] = 0 | |
18118 | ||
18119 | ; | |
18120 | return 0; | |
18121 | } | |
18122 | _ACEOF | |
18123 | rm -f conftest.$ac_objext | |
18124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18125 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18126 | ac_status=$? |
ac1cb8d3 VS |
18127 | grep -v '^ *+' conftest.er1 >conftest.err |
18128 | rm -f conftest.er1 | |
18129 | cat conftest.err >&5 | |
a848cd7e SC |
18130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18131 | (exit $ac_status); } && | |
6ebeb4c7 | 18132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18134 | (eval $ac_try) 2>&5 | |
18135 | ac_status=$? | |
18136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18137 | (exit $ac_status); }; } && | |
18138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18140 | (eval $ac_try) 2>&5 | |
18141 | ac_status=$? | |
18142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18143 | (exit $ac_status); }; }; then | |
18144 | ac_lo=0 ac_mid=0 | |
18145 | while :; do | |
18146 | cat >conftest.$ac_ext <<_ACEOF | |
18147 | /* confdefs.h. */ | |
18148 | _ACEOF | |
18149 | cat confdefs.h >>conftest.$ac_ext | |
18150 | cat >>conftest.$ac_ext <<_ACEOF | |
18151 | /* end confdefs.h. */ | |
18152 | $ac_includes_default | |
18153 | int | |
18154 | main () | |
18155 | { | |
18156 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18157 | test_array [0] = 0 | |
18158 | ||
18159 | ; | |
18160 | return 0; | |
18161 | } | |
18162 | _ACEOF | |
18163 | rm -f conftest.$ac_objext | |
18164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18165 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18166 | ac_status=$? |
ac1cb8d3 VS |
18167 | grep -v '^ *+' conftest.er1 >conftest.err |
18168 | rm -f conftest.er1 | |
18169 | cat conftest.err >&5 | |
a848cd7e SC |
18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18171 | (exit $ac_status); } && | |
6ebeb4c7 | 18172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18174 | (eval $ac_try) 2>&5 | |
18175 | ac_status=$? | |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18177 | (exit $ac_status); }; } && | |
18178 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18180 | (eval $ac_try) 2>&5 | |
18181 | ac_status=$? | |
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18183 | (exit $ac_status); }; }; then | |
18184 | ac_hi=$ac_mid; break | |
18185 | else | |
18186 | echo "$as_me: failed program was:" >&5 | |
18187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18188 | ||
18189 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18190 | if test $ac_lo -le $ac_mid; then |
18191 | ac_lo= ac_hi= | |
18192 | break | |
18193 | fi | |
18194 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18195 | fi |
ac1cb8d3 | 18196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18197 | done |
18198 | else | |
18199 | echo "$as_me: failed program was:" >&5 | |
18200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18201 | ||
18202 | cat >conftest.$ac_ext <<_ACEOF | |
18203 | /* confdefs.h. */ | |
18204 | _ACEOF | |
18205 | cat confdefs.h >>conftest.$ac_ext | |
18206 | cat >>conftest.$ac_ext <<_ACEOF | |
18207 | /* end confdefs.h. */ | |
18208 | $ac_includes_default | |
18209 | int | |
18210 | main () | |
18211 | { | |
18212 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
18213 | test_array [0] = 0 | |
18214 | ||
18215 | ; | |
18216 | return 0; | |
18217 | } | |
18218 | _ACEOF | |
18219 | rm -f conftest.$ac_objext | |
18220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18221 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18222 | ac_status=$? |
ac1cb8d3 VS |
18223 | grep -v '^ *+' conftest.er1 >conftest.err |
18224 | rm -f conftest.er1 | |
18225 | cat conftest.err >&5 | |
a848cd7e SC |
18226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18227 | (exit $ac_status); } && | |
6ebeb4c7 | 18228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18230 | (eval $ac_try) 2>&5 | |
18231 | ac_status=$? | |
18232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18233 | (exit $ac_status); }; } && | |
18234 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18236 | (eval $ac_try) 2>&5 | |
18237 | ac_status=$? | |
18238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18239 | (exit $ac_status); }; }; then | |
18240 | ac_hi=-1 ac_mid=-1 | |
18241 | while :; do | |
18242 | cat >conftest.$ac_ext <<_ACEOF | |
18243 | /* confdefs.h. */ | |
18244 | _ACEOF | |
18245 | cat confdefs.h >>conftest.$ac_ext | |
18246 | cat >>conftest.$ac_ext <<_ACEOF | |
18247 | /* end confdefs.h. */ | |
18248 | $ac_includes_default | |
18249 | int | |
18250 | main () | |
18251 | { | |
18252 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
18253 | test_array [0] = 0 | |
18254 | ||
18255 | ; | |
18256 | return 0; | |
18257 | } | |
18258 | _ACEOF | |
18259 | rm -f conftest.$ac_objext | |
18260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18261 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18262 | ac_status=$? |
ac1cb8d3 VS |
18263 | grep -v '^ *+' conftest.er1 >conftest.err |
18264 | rm -f conftest.er1 | |
18265 | cat conftest.err >&5 | |
a848cd7e SC |
18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18267 | (exit $ac_status); } && | |
6ebeb4c7 | 18268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18270 | (eval $ac_try) 2>&5 | |
18271 | ac_status=$? | |
18272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18273 | (exit $ac_status); }; } && | |
18274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18276 | (eval $ac_try) 2>&5 | |
18277 | ac_status=$? | |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18279 | (exit $ac_status); }; }; then | |
18280 | ac_lo=$ac_mid; break | |
18281 | else | |
18282 | echo "$as_me: failed program was:" >&5 | |
18283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18284 | ||
18285 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18286 | if test $ac_mid -le $ac_hi; then |
18287 | ac_lo= ac_hi= | |
18288 | break | |
18289 | fi | |
18290 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18291 | fi |
ac1cb8d3 | 18292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18293 | done |
18294 | else | |
18295 | echo "$as_me: failed program was:" >&5 | |
18296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18297 | ||
18298 | ac_lo= ac_hi= | |
18299 | fi | |
ac1cb8d3 | 18300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18301 | fi |
ac1cb8d3 | 18302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18303 | # Binary search between lo and hi bounds. |
18304 | while test "x$ac_lo" != "x$ac_hi"; do | |
18305 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18306 | cat >conftest.$ac_ext <<_ACEOF | |
18307 | /* confdefs.h. */ | |
18308 | _ACEOF | |
18309 | cat confdefs.h >>conftest.$ac_ext | |
18310 | cat >>conftest.$ac_ext <<_ACEOF | |
18311 | /* end confdefs.h. */ | |
18312 | $ac_includes_default | |
18313 | int | |
18314 | main () | |
18315 | { | |
18316 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18317 | test_array [0] = 0 | |
18318 | ||
18319 | ; | |
18320 | return 0; | |
18321 | } | |
18322 | _ACEOF | |
18323 | rm -f conftest.$ac_objext | |
18324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18325 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18326 | ac_status=$? |
ac1cb8d3 VS |
18327 | grep -v '^ *+' conftest.er1 >conftest.err |
18328 | rm -f conftest.er1 | |
18329 | cat conftest.err >&5 | |
a848cd7e SC |
18330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18331 | (exit $ac_status); } && | |
6ebeb4c7 | 18332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18334 | (eval $ac_try) 2>&5 | |
18335 | ac_status=$? | |
18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18337 | (exit $ac_status); }; } && | |
18338 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18340 | (eval $ac_try) 2>&5 | |
18341 | ac_status=$? | |
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18343 | (exit $ac_status); }; }; then | |
18344 | ac_hi=$ac_mid | |
18345 | else | |
18346 | echo "$as_me: failed program was:" >&5 | |
18347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18348 | ||
18349 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18350 | fi | |
ac1cb8d3 | 18351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18352 | done |
18353 | case $ac_lo in | |
18354 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
18355 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18356 | See \`config.log' for more details." >&5 | |
18357 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18358 | See \`config.log' for more details." >&2;} | |
18359 | { (exit 1); exit 1; }; } ;; | |
18360 | esac | |
18361 | else | |
18362 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18363 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18364 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18365 | { (exit 1); exit 1; }; } |
18366 | else | |
18367 | cat >conftest.$ac_ext <<_ACEOF | |
18368 | /* confdefs.h. */ | |
18369 | _ACEOF | |
18370 | cat confdefs.h >>conftest.$ac_ext | |
18371 | cat >>conftest.$ac_ext <<_ACEOF | |
18372 | /* end confdefs.h. */ | |
18373 | $ac_includes_default | |
18374 | long longval () { return (long) (sizeof (size_t)); } | |
18375 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
18376 | #include <stdio.h> | |
18377 | #include <stdlib.h> | |
18378 | int | |
18379 | main () | |
18380 | { | |
18381 | ||
18382 | FILE *f = fopen ("conftest.val", "w"); | |
18383 | if (! f) | |
18384 | exit (1); | |
18385 | if (((long) (sizeof (size_t))) < 0) | |
18386 | { | |
18387 | long i = longval (); | |
18388 | if (i != ((long) (sizeof (size_t)))) | |
18389 | exit (1); | |
18390 | fprintf (f, "%ld\n", i); | |
18391 | } | |
18392 | else | |
18393 | { | |
18394 | unsigned long i = ulongval (); | |
18395 | if (i != ((long) (sizeof (size_t)))) | |
18396 | exit (1); | |
18397 | fprintf (f, "%lu\n", i); | |
18398 | } | |
18399 | exit (ferror (f) || fclose (f) != 0); | |
18400 | ||
18401 | ; | |
18402 | return 0; | |
18403 | } | |
18404 | _ACEOF | |
18405 | rm -f conftest$ac_exeext | |
18406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18407 | (eval $ac_link) 2>&5 | |
18408 | ac_status=$? | |
18409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18412 | (eval $ac_try) 2>&5 | |
18413 | ac_status=$? | |
18414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18415 | (exit $ac_status); }; }; then | |
18416 | ac_cv_sizeof_size_t=`cat conftest.val` | |
18417 | else | |
18418 | echo "$as_me: program exited with status $ac_status" >&5 | |
18419 | echo "$as_me: failed program was:" >&5 | |
18420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18421 | ||
18422 | ( exit $ac_status ) | |
18423 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18424 | See \`config.log' for more details." >&5 | |
18425 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18426 | See \`config.log' for more details." >&2;} | |
18427 | { (exit 1); exit 1; }; } | |
18428 | fi | |
ac1cb8d3 | 18429 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18430 | fi |
18431 | fi | |
18432 | rm -f conftest.val | |
18433 | else | |
18434 | ac_cv_sizeof_size_t=0 | |
18435 | fi | |
18436 | fi | |
18437 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
18438 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
18439 | cat >>confdefs.h <<_ACEOF | |
18440 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
18441 | _ACEOF | |
18442 | ||
18443 | ||
18444 | ||
18445 | case "${host}" in | |
18446 | arm-*-linux* ) | |
18447 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18448 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18449 | if test "${ac_cv_type_long_long+set}" = set; then | |
18450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18451 | else | |
18452 | cat >conftest.$ac_ext <<_ACEOF | |
18453 | /* confdefs.h. */ | |
18454 | _ACEOF | |
18455 | cat confdefs.h >>conftest.$ac_ext | |
18456 | cat >>conftest.$ac_ext <<_ACEOF | |
18457 | /* end confdefs.h. */ | |
18458 | $ac_includes_default | |
18459 | int | |
18460 | main () | |
18461 | { | |
18462 | if ((long long *) 0) | |
18463 | return 0; | |
18464 | if (sizeof (long long)) | |
18465 | return 0; | |
18466 | ; | |
18467 | return 0; | |
18468 | } | |
18469 | _ACEOF | |
18470 | rm -f conftest.$ac_objext | |
18471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18472 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18473 | ac_status=$? |
ac1cb8d3 VS |
18474 | grep -v '^ *+' conftest.er1 >conftest.err |
18475 | rm -f conftest.er1 | |
18476 | cat conftest.err >&5 | |
a848cd7e SC |
18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18478 | (exit $ac_status); } && | |
6ebeb4c7 | 18479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18481 | (eval $ac_try) 2>&5 | |
18482 | ac_status=$? | |
18483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18484 | (exit $ac_status); }; } && | |
18485 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18487 | (eval $ac_try) 2>&5 | |
18488 | ac_status=$? | |
18489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18490 | (exit $ac_status); }; }; then | |
18491 | ac_cv_type_long_long=yes | |
18492 | else | |
18493 | echo "$as_me: failed program was:" >&5 | |
18494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18495 | ||
18496 | ac_cv_type_long_long=no | |
18497 | fi | |
ac1cb8d3 | 18498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18499 | fi |
18500 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18501 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18502 | ||
18503 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18504 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18505 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18507 | else | |
18508 | if test "$ac_cv_type_long_long" = yes; then | |
18509 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18510 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18511 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18512 | # This bug is HP SR number 8606223364. | |
18513 | if test "$cross_compiling" = yes; then | |
18514 | # Depending upon the size, compute the lo and hi bounds. | |
18515 | cat >conftest.$ac_ext <<_ACEOF | |
18516 | /* confdefs.h. */ | |
18517 | _ACEOF | |
18518 | cat confdefs.h >>conftest.$ac_ext | |
18519 | cat >>conftest.$ac_ext <<_ACEOF | |
18520 | /* end confdefs.h. */ | |
18521 | $ac_includes_default | |
18522 | int | |
18523 | main () | |
18524 | { | |
18525 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18526 | test_array [0] = 0 | |
18527 | ||
18528 | ; | |
18529 | return 0; | |
18530 | } | |
18531 | _ACEOF | |
18532 | rm -f conftest.$ac_objext | |
18533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18534 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18535 | ac_status=$? |
ac1cb8d3 VS |
18536 | grep -v '^ *+' conftest.er1 >conftest.err |
18537 | rm -f conftest.er1 | |
18538 | cat conftest.err >&5 | |
a848cd7e SC |
18539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18540 | (exit $ac_status); } && | |
6ebeb4c7 | 18541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18543 | (eval $ac_try) 2>&5 | |
18544 | ac_status=$? | |
18545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18546 | (exit $ac_status); }; } && | |
18547 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18549 | (eval $ac_try) 2>&5 | |
18550 | ac_status=$? | |
18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18552 | (exit $ac_status); }; }; then | |
18553 | ac_lo=0 ac_mid=0 | |
18554 | while :; do | |
18555 | cat >conftest.$ac_ext <<_ACEOF | |
18556 | /* confdefs.h. */ | |
18557 | _ACEOF | |
18558 | cat confdefs.h >>conftest.$ac_ext | |
18559 | cat >>conftest.$ac_ext <<_ACEOF | |
18560 | /* end confdefs.h. */ | |
18561 | $ac_includes_default | |
18562 | int | |
18563 | main () | |
18564 | { | |
18565 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18566 | test_array [0] = 0 | |
18567 | ||
18568 | ; | |
18569 | return 0; | |
18570 | } | |
18571 | _ACEOF | |
18572 | rm -f conftest.$ac_objext | |
18573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18574 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18575 | ac_status=$? |
ac1cb8d3 VS |
18576 | grep -v '^ *+' conftest.er1 >conftest.err |
18577 | rm -f conftest.er1 | |
18578 | cat conftest.err >&5 | |
a848cd7e SC |
18579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18580 | (exit $ac_status); } && | |
6ebeb4c7 | 18581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18583 | (eval $ac_try) 2>&5 | |
18584 | ac_status=$? | |
18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18586 | (exit $ac_status); }; } && | |
18587 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18589 | (eval $ac_try) 2>&5 | |
18590 | ac_status=$? | |
18591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18592 | (exit $ac_status); }; }; then | |
18593 | ac_hi=$ac_mid; break | |
18594 | else | |
18595 | echo "$as_me: failed program was:" >&5 | |
18596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18597 | ||
18598 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18599 | if test $ac_lo -le $ac_mid; then |
18600 | ac_lo= ac_hi= | |
18601 | break | |
18602 | fi | |
18603 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18604 | fi |
ac1cb8d3 | 18605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18606 | done |
18607 | else | |
18608 | echo "$as_me: failed program was:" >&5 | |
18609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18610 | ||
18611 | cat >conftest.$ac_ext <<_ACEOF | |
18612 | /* confdefs.h. */ | |
18613 | _ACEOF | |
18614 | cat confdefs.h >>conftest.$ac_ext | |
18615 | cat >>conftest.$ac_ext <<_ACEOF | |
18616 | /* end confdefs.h. */ | |
18617 | $ac_includes_default | |
18618 | int | |
18619 | main () | |
18620 | { | |
18621 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18622 | test_array [0] = 0 | |
18623 | ||
18624 | ; | |
18625 | return 0; | |
18626 | } | |
18627 | _ACEOF | |
18628 | rm -f conftest.$ac_objext | |
18629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18631 | ac_status=$? |
ac1cb8d3 VS |
18632 | grep -v '^ *+' conftest.er1 >conftest.err |
18633 | rm -f conftest.er1 | |
18634 | cat conftest.err >&5 | |
a848cd7e SC |
18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18636 | (exit $ac_status); } && | |
6ebeb4c7 | 18637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18639 | (eval $ac_try) 2>&5 | |
18640 | ac_status=$? | |
18641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18642 | (exit $ac_status); }; } && | |
18643 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18645 | (eval $ac_try) 2>&5 | |
18646 | ac_status=$? | |
18647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18648 | (exit $ac_status); }; }; then | |
18649 | ac_hi=-1 ac_mid=-1 | |
18650 | while :; do | |
18651 | cat >conftest.$ac_ext <<_ACEOF | |
18652 | /* confdefs.h. */ | |
18653 | _ACEOF | |
18654 | cat confdefs.h >>conftest.$ac_ext | |
18655 | cat >>conftest.$ac_ext <<_ACEOF | |
18656 | /* end confdefs.h. */ | |
18657 | $ac_includes_default | |
18658 | int | |
18659 | main () | |
18660 | { | |
18661 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18662 | test_array [0] = 0 | |
18663 | ||
18664 | ; | |
18665 | return 0; | |
18666 | } | |
18667 | _ACEOF | |
18668 | rm -f conftest.$ac_objext | |
18669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18670 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18671 | ac_status=$? |
ac1cb8d3 VS |
18672 | grep -v '^ *+' conftest.er1 >conftest.err |
18673 | rm -f conftest.er1 | |
18674 | cat conftest.err >&5 | |
a848cd7e SC |
18675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18676 | (exit $ac_status); } && | |
6ebeb4c7 | 18677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18679 | (eval $ac_try) 2>&5 | |
18680 | ac_status=$? | |
18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18682 | (exit $ac_status); }; } && | |
18683 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18685 | (eval $ac_try) 2>&5 | |
18686 | ac_status=$? | |
18687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18688 | (exit $ac_status); }; }; then | |
18689 | ac_lo=$ac_mid; break | |
18690 | else | |
18691 | echo "$as_me: failed program was:" >&5 | |
18692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18693 | ||
18694 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18695 | if test $ac_mid -le $ac_hi; then |
18696 | ac_lo= ac_hi= | |
18697 | break | |
18698 | fi | |
18699 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18700 | fi |
ac1cb8d3 | 18701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18702 | done |
18703 | else | |
18704 | echo "$as_me: failed program was:" >&5 | |
18705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18706 | ||
18707 | ac_lo= ac_hi= | |
18708 | fi | |
ac1cb8d3 | 18709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18710 | fi |
ac1cb8d3 | 18711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18712 | # Binary search between lo and hi bounds. |
18713 | while test "x$ac_lo" != "x$ac_hi"; do | |
18714 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18715 | cat >conftest.$ac_ext <<_ACEOF | |
18716 | /* confdefs.h. */ | |
18717 | _ACEOF | |
18718 | cat confdefs.h >>conftest.$ac_ext | |
18719 | cat >>conftest.$ac_ext <<_ACEOF | |
18720 | /* end confdefs.h. */ | |
18721 | $ac_includes_default | |
18722 | int | |
18723 | main () | |
18724 | { | |
18725 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18726 | test_array [0] = 0 | |
18727 | ||
18728 | ; | |
18729 | return 0; | |
18730 | } | |
18731 | _ACEOF | |
18732 | rm -f conftest.$ac_objext | |
18733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18734 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18735 | ac_status=$? |
ac1cb8d3 VS |
18736 | grep -v '^ *+' conftest.er1 >conftest.err |
18737 | rm -f conftest.er1 | |
18738 | cat conftest.err >&5 | |
a848cd7e SC |
18739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18740 | (exit $ac_status); } && | |
6ebeb4c7 | 18741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18743 | (eval $ac_try) 2>&5 | |
18744 | ac_status=$? | |
18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18746 | (exit $ac_status); }; } && | |
18747 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18749 | (eval $ac_try) 2>&5 | |
18750 | ac_status=$? | |
18751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18752 | (exit $ac_status); }; }; then | |
18753 | ac_hi=$ac_mid | |
18754 | else | |
18755 | echo "$as_me: failed program was:" >&5 | |
18756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18757 | ||
18758 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18759 | fi | |
ac1cb8d3 | 18760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18761 | done |
18762 | case $ac_lo in | |
18763 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18764 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18765 | See \`config.log' for more details." >&5 | |
18766 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18767 | See \`config.log' for more details." >&2;} | |
18768 | { (exit 1); exit 1; }; } ;; | |
18769 | esac | |
18770 | else | |
18771 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18772 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18773 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18774 | { (exit 1); exit 1; }; } |
18775 | else | |
18776 | cat >conftest.$ac_ext <<_ACEOF | |
18777 | /* confdefs.h. */ | |
18778 | _ACEOF | |
18779 | cat confdefs.h >>conftest.$ac_ext | |
18780 | cat >>conftest.$ac_ext <<_ACEOF | |
18781 | /* end confdefs.h. */ | |
18782 | $ac_includes_default | |
18783 | long longval () { return (long) (sizeof (long long)); } | |
18784 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18785 | #include <stdio.h> | |
18786 | #include <stdlib.h> | |
18787 | int | |
18788 | main () | |
18789 | { | |
18790 | ||
18791 | FILE *f = fopen ("conftest.val", "w"); | |
18792 | if (! f) | |
18793 | exit (1); | |
18794 | if (((long) (sizeof (long long))) < 0) | |
18795 | { | |
18796 | long i = longval (); | |
18797 | if (i != ((long) (sizeof (long long)))) | |
18798 | exit (1); | |
18799 | fprintf (f, "%ld\n", i); | |
18800 | } | |
18801 | else | |
18802 | { | |
18803 | unsigned long i = ulongval (); | |
18804 | if (i != ((long) (sizeof (long long)))) | |
18805 | exit (1); | |
18806 | fprintf (f, "%lu\n", i); | |
18807 | } | |
18808 | exit (ferror (f) || fclose (f) != 0); | |
18809 | ||
18810 | ; | |
18811 | return 0; | |
18812 | } | |
18813 | _ACEOF | |
18814 | rm -f conftest$ac_exeext | |
18815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18816 | (eval $ac_link) 2>&5 | |
18817 | ac_status=$? | |
18818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18821 | (eval $ac_try) 2>&5 | |
18822 | ac_status=$? | |
18823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18824 | (exit $ac_status); }; }; then | |
18825 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18826 | else | |
18827 | echo "$as_me: program exited with status $ac_status" >&5 | |
18828 | echo "$as_me: failed program was:" >&5 | |
18829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18830 | ||
18831 | ( exit $ac_status ) | |
18832 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18833 | See \`config.log' for more details." >&5 | |
18834 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18835 | See \`config.log' for more details." >&2;} | |
18836 | { (exit 1); exit 1; }; } | |
18837 | fi | |
ac1cb8d3 | 18838 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18839 | fi |
18840 | fi | |
18841 | rm -f conftest.val | |
18842 | else | |
18843 | ac_cv_sizeof_long_long=0 | |
18844 | fi | |
18845 | fi | |
18846 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18847 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18848 | cat >>confdefs.h <<_ACEOF | |
18849 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18850 | _ACEOF | |
18851 | ||
18852 | ||
18853 | ;; | |
18854 | *-hp-hpux* ) | |
18855 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18856 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18857 | if test "${ac_cv_type_long_long+set}" = set; then | |
18858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18859 | else | |
18860 | cat >conftest.$ac_ext <<_ACEOF | |
18861 | /* confdefs.h. */ | |
18862 | _ACEOF | |
18863 | cat confdefs.h >>conftest.$ac_ext | |
18864 | cat >>conftest.$ac_ext <<_ACEOF | |
18865 | /* end confdefs.h. */ | |
18866 | $ac_includes_default | |
18867 | int | |
18868 | main () | |
18869 | { | |
18870 | if ((long long *) 0) | |
18871 | return 0; | |
18872 | if (sizeof (long long)) | |
18873 | return 0; | |
18874 | ; | |
18875 | return 0; | |
18876 | } | |
18877 | _ACEOF | |
18878 | rm -f conftest.$ac_objext | |
18879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18880 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18881 | ac_status=$? |
ac1cb8d3 VS |
18882 | grep -v '^ *+' conftest.er1 >conftest.err |
18883 | rm -f conftest.er1 | |
18884 | cat conftest.err >&5 | |
a848cd7e SC |
18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18886 | (exit $ac_status); } && | |
6ebeb4c7 | 18887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18889 | (eval $ac_try) 2>&5 | |
18890 | ac_status=$? | |
18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18892 | (exit $ac_status); }; } && | |
18893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18895 | (eval $ac_try) 2>&5 | |
18896 | ac_status=$? | |
18897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18898 | (exit $ac_status); }; }; then | |
18899 | ac_cv_type_long_long=yes | |
18900 | else | |
18901 | echo "$as_me: failed program was:" >&5 | |
18902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18903 | ||
18904 | ac_cv_type_long_long=no | |
18905 | fi | |
ac1cb8d3 | 18906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18907 | fi |
18908 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18909 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18910 | ||
18911 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18912 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18913 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18915 | else | |
18916 | if test "$ac_cv_type_long_long" = yes; then | |
18917 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18918 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18919 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18920 | # This bug is HP SR number 8606223364. | |
18921 | if test "$cross_compiling" = yes; then | |
18922 | # Depending upon the size, compute the lo and hi bounds. | |
18923 | cat >conftest.$ac_ext <<_ACEOF | |
18924 | /* confdefs.h. */ | |
18925 | _ACEOF | |
18926 | cat confdefs.h >>conftest.$ac_ext | |
18927 | cat >>conftest.$ac_ext <<_ACEOF | |
18928 | /* end confdefs.h. */ | |
18929 | $ac_includes_default | |
18930 | int | |
18931 | main () | |
18932 | { | |
18933 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18934 | test_array [0] = 0 | |
18935 | ||
18936 | ; | |
18937 | return 0; | |
18938 | } | |
18939 | _ACEOF | |
18940 | rm -f conftest.$ac_objext | |
18941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18942 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18943 | ac_status=$? |
ac1cb8d3 VS |
18944 | grep -v '^ *+' conftest.er1 >conftest.err |
18945 | rm -f conftest.er1 | |
18946 | cat conftest.err >&5 | |
a848cd7e SC |
18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18948 | (exit $ac_status); } && | |
6ebeb4c7 | 18949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18951 | (eval $ac_try) 2>&5 | |
18952 | ac_status=$? | |
18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18954 | (exit $ac_status); }; } && | |
18955 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18957 | (eval $ac_try) 2>&5 | |
18958 | ac_status=$? | |
18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18960 | (exit $ac_status); }; }; then | |
18961 | ac_lo=0 ac_mid=0 | |
18962 | while :; do | |
18963 | cat >conftest.$ac_ext <<_ACEOF | |
18964 | /* confdefs.h. */ | |
18965 | _ACEOF | |
18966 | cat confdefs.h >>conftest.$ac_ext | |
18967 | cat >>conftest.$ac_ext <<_ACEOF | |
18968 | /* end confdefs.h. */ | |
18969 | $ac_includes_default | |
18970 | int | |
18971 | main () | |
18972 | { | |
18973 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18974 | test_array [0] = 0 | |
18975 | ||
18976 | ; | |
18977 | return 0; | |
18978 | } | |
18979 | _ACEOF | |
18980 | rm -f conftest.$ac_objext | |
18981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18982 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18983 | ac_status=$? |
ac1cb8d3 VS |
18984 | grep -v '^ *+' conftest.er1 >conftest.err |
18985 | rm -f conftest.er1 | |
18986 | cat conftest.err >&5 | |
a848cd7e SC |
18987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18988 | (exit $ac_status); } && | |
6ebeb4c7 | 18989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18991 | (eval $ac_try) 2>&5 | |
18992 | ac_status=$? | |
18993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18994 | (exit $ac_status); }; } && | |
18995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18997 | (eval $ac_try) 2>&5 | |
18998 | ac_status=$? | |
18999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19000 | (exit $ac_status); }; }; then | |
19001 | ac_hi=$ac_mid; break | |
19002 | else | |
19003 | echo "$as_me: failed program was:" >&5 | |
19004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19005 | ||
19006 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19007 | if test $ac_lo -le $ac_mid; then |
19008 | ac_lo= ac_hi= | |
19009 | break | |
19010 | fi | |
19011 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19012 | fi |
ac1cb8d3 | 19013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19014 | done |
19015 | else | |
19016 | echo "$as_me: failed program was:" >&5 | |
19017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19018 | ||
19019 | cat >conftest.$ac_ext <<_ACEOF | |
19020 | /* confdefs.h. */ | |
19021 | _ACEOF | |
19022 | cat confdefs.h >>conftest.$ac_ext | |
19023 | cat >>conftest.$ac_ext <<_ACEOF | |
19024 | /* end confdefs.h. */ | |
19025 | $ac_includes_default | |
19026 | int | |
19027 | main () | |
19028 | { | |
19029 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19030 | test_array [0] = 0 | |
19031 | ||
19032 | ; | |
19033 | return 0; | |
19034 | } | |
19035 | _ACEOF | |
19036 | rm -f conftest.$ac_objext | |
19037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19038 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19039 | ac_status=$? |
ac1cb8d3 VS |
19040 | grep -v '^ *+' conftest.er1 >conftest.err |
19041 | rm -f conftest.er1 | |
19042 | cat conftest.err >&5 | |
a848cd7e SC |
19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19044 | (exit $ac_status); } && | |
6ebeb4c7 | 19045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19047 | (eval $ac_try) 2>&5 | |
19048 | ac_status=$? | |
19049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19050 | (exit $ac_status); }; } && | |
19051 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19053 | (eval $ac_try) 2>&5 | |
19054 | ac_status=$? | |
19055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19056 | (exit $ac_status); }; }; then | |
19057 | ac_hi=-1 ac_mid=-1 | |
19058 | while :; do | |
19059 | cat >conftest.$ac_ext <<_ACEOF | |
19060 | /* confdefs.h. */ | |
19061 | _ACEOF | |
19062 | cat confdefs.h >>conftest.$ac_ext | |
19063 | cat >>conftest.$ac_ext <<_ACEOF | |
19064 | /* end confdefs.h. */ | |
19065 | $ac_includes_default | |
19066 | int | |
19067 | main () | |
19068 | { | |
19069 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19070 | test_array [0] = 0 | |
19071 | ||
19072 | ; | |
19073 | return 0; | |
19074 | } | |
19075 | _ACEOF | |
19076 | rm -f conftest.$ac_objext | |
19077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19078 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19079 | ac_status=$? |
ac1cb8d3 VS |
19080 | grep -v '^ *+' conftest.er1 >conftest.err |
19081 | rm -f conftest.er1 | |
19082 | cat conftest.err >&5 | |
a848cd7e SC |
19083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19084 | (exit $ac_status); } && | |
6ebeb4c7 | 19085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19087 | (eval $ac_try) 2>&5 | |
19088 | ac_status=$? | |
19089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19090 | (exit $ac_status); }; } && | |
19091 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19093 | (eval $ac_try) 2>&5 | |
19094 | ac_status=$? | |
19095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19096 | (exit $ac_status); }; }; then | |
19097 | ac_lo=$ac_mid; break | |
19098 | else | |
19099 | echo "$as_me: failed program was:" >&5 | |
19100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19101 | ||
19102 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19103 | if test $ac_mid -le $ac_hi; then |
19104 | ac_lo= ac_hi= | |
19105 | break | |
19106 | fi | |
19107 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19108 | fi |
ac1cb8d3 | 19109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19110 | done |
19111 | else | |
19112 | echo "$as_me: failed program was:" >&5 | |
19113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19114 | ||
19115 | ac_lo= ac_hi= | |
19116 | fi | |
ac1cb8d3 | 19117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19118 | fi |
ac1cb8d3 | 19119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19120 | # Binary search between lo and hi bounds. |
19121 | while test "x$ac_lo" != "x$ac_hi"; do | |
19122 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19123 | cat >conftest.$ac_ext <<_ACEOF | |
19124 | /* confdefs.h. */ | |
19125 | _ACEOF | |
19126 | cat confdefs.h >>conftest.$ac_ext | |
19127 | cat >>conftest.$ac_ext <<_ACEOF | |
19128 | /* end confdefs.h. */ | |
19129 | $ac_includes_default | |
19130 | int | |
19131 | main () | |
19132 | { | |
19133 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19134 | test_array [0] = 0 | |
19135 | ||
19136 | ; | |
19137 | return 0; | |
19138 | } | |
19139 | _ACEOF | |
19140 | rm -f conftest.$ac_objext | |
19141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19142 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19143 | ac_status=$? |
ac1cb8d3 VS |
19144 | grep -v '^ *+' conftest.er1 >conftest.err |
19145 | rm -f conftest.er1 | |
19146 | cat conftest.err >&5 | |
a848cd7e SC |
19147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19148 | (exit $ac_status); } && | |
6ebeb4c7 | 19149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19151 | (eval $ac_try) 2>&5 | |
19152 | ac_status=$? | |
19153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19154 | (exit $ac_status); }; } && | |
19155 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19157 | (eval $ac_try) 2>&5 | |
19158 | ac_status=$? | |
19159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19160 | (exit $ac_status); }; }; then | |
19161 | ac_hi=$ac_mid | |
19162 | else | |
19163 | echo "$as_me: failed program was:" >&5 | |
19164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19165 | ||
19166 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19167 | fi | |
ac1cb8d3 | 19168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19169 | done |
19170 | case $ac_lo in | |
19171 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19172 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19173 | See \`config.log' for more details." >&5 | |
19174 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19175 | See \`config.log' for more details." >&2;} | |
19176 | { (exit 1); exit 1; }; } ;; | |
19177 | esac | |
19178 | else | |
19179 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19180 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19181 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19182 | { (exit 1); exit 1; }; } |
19183 | else | |
19184 | cat >conftest.$ac_ext <<_ACEOF | |
19185 | /* confdefs.h. */ | |
19186 | _ACEOF | |
19187 | cat confdefs.h >>conftest.$ac_ext | |
19188 | cat >>conftest.$ac_ext <<_ACEOF | |
19189 | /* end confdefs.h. */ | |
19190 | $ac_includes_default | |
19191 | long longval () { return (long) (sizeof (long long)); } | |
19192 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19193 | #include <stdio.h> | |
19194 | #include <stdlib.h> | |
19195 | int | |
19196 | main () | |
19197 | { | |
19198 | ||
19199 | FILE *f = fopen ("conftest.val", "w"); | |
19200 | if (! f) | |
19201 | exit (1); | |
19202 | if (((long) (sizeof (long long))) < 0) | |
19203 | { | |
19204 | long i = longval (); | |
19205 | if (i != ((long) (sizeof (long long)))) | |
19206 | exit (1); | |
19207 | fprintf (f, "%ld\n", i); | |
19208 | } | |
19209 | else | |
19210 | { | |
19211 | unsigned long i = ulongval (); | |
19212 | if (i != ((long) (sizeof (long long)))) | |
19213 | exit (1); | |
19214 | fprintf (f, "%lu\n", i); | |
19215 | } | |
19216 | exit (ferror (f) || fclose (f) != 0); | |
19217 | ||
19218 | ; | |
19219 | return 0; | |
19220 | } | |
19221 | _ACEOF | |
19222 | rm -f conftest$ac_exeext | |
19223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19224 | (eval $ac_link) 2>&5 | |
19225 | ac_status=$? | |
19226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19227 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19229 | (eval $ac_try) 2>&5 | |
19230 | ac_status=$? | |
19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19232 | (exit $ac_status); }; }; then | |
19233 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19234 | else | |
19235 | echo "$as_me: program exited with status $ac_status" >&5 | |
19236 | echo "$as_me: failed program was:" >&5 | |
19237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19238 | ||
19239 | ( exit $ac_status ) | |
19240 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19241 | See \`config.log' for more details." >&5 | |
19242 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19243 | See \`config.log' for more details." >&2;} | |
19244 | { (exit 1); exit 1; }; } | |
19245 | fi | |
ac1cb8d3 | 19246 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19247 | fi |
19248 | fi | |
19249 | rm -f conftest.val | |
19250 | else | |
19251 | ac_cv_sizeof_long_long=0 | |
19252 | fi | |
19253 | fi | |
19254 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19255 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19256 | cat >>confdefs.h <<_ACEOF | |
19257 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19258 | _ACEOF | |
19259 | ||
19260 | ||
19261 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
19262 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
19263 | fi | |
19264 | ;; | |
19265 | * ) | |
19266 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19267 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19268 | if test "${ac_cv_type_long_long+set}" = set; then | |
19269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19270 | else | |
19271 | cat >conftest.$ac_ext <<_ACEOF | |
19272 | /* confdefs.h. */ | |
19273 | _ACEOF | |
19274 | cat confdefs.h >>conftest.$ac_ext | |
19275 | cat >>conftest.$ac_ext <<_ACEOF | |
19276 | /* end confdefs.h. */ | |
19277 | $ac_includes_default | |
19278 | int | |
19279 | main () | |
19280 | { | |
19281 | if ((long long *) 0) | |
19282 | return 0; | |
19283 | if (sizeof (long long)) | |
19284 | return 0; | |
19285 | ; | |
19286 | return 0; | |
19287 | } | |
19288 | _ACEOF | |
19289 | rm -f conftest.$ac_objext | |
19290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19291 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19292 | ac_status=$? |
ac1cb8d3 VS |
19293 | grep -v '^ *+' conftest.er1 >conftest.err |
19294 | rm -f conftest.er1 | |
19295 | cat conftest.err >&5 | |
a848cd7e SC |
19296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19297 | (exit $ac_status); } && | |
6ebeb4c7 | 19298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19300 | (eval $ac_try) 2>&5 | |
19301 | ac_status=$? | |
19302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19303 | (exit $ac_status); }; } && | |
19304 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19306 | (eval $ac_try) 2>&5 | |
19307 | ac_status=$? | |
19308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19309 | (exit $ac_status); }; }; then | |
19310 | ac_cv_type_long_long=yes | |
19311 | else | |
19312 | echo "$as_me: failed program was:" >&5 | |
19313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19314 | ||
19315 | ac_cv_type_long_long=no | |
19316 | fi | |
ac1cb8d3 | 19317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19318 | fi |
19319 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19320 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19321 | ||
19322 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19323 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19324 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19326 | else | |
19327 | if test "$ac_cv_type_long_long" = yes; then | |
19328 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19329 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19330 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19331 | # This bug is HP SR number 8606223364. | |
19332 | if test "$cross_compiling" = yes; then | |
19333 | # Depending upon the size, compute the lo and hi bounds. | |
19334 | cat >conftest.$ac_ext <<_ACEOF | |
19335 | /* confdefs.h. */ | |
19336 | _ACEOF | |
19337 | cat confdefs.h >>conftest.$ac_ext | |
19338 | cat >>conftest.$ac_ext <<_ACEOF | |
19339 | /* end confdefs.h. */ | |
19340 | $ac_includes_default | |
19341 | int | |
19342 | main () | |
19343 | { | |
19344 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19345 | test_array [0] = 0 | |
19346 | ||
19347 | ; | |
19348 | return 0; | |
19349 | } | |
19350 | _ACEOF | |
19351 | rm -f conftest.$ac_objext | |
19352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19354 | ac_status=$? |
ac1cb8d3 VS |
19355 | grep -v '^ *+' conftest.er1 >conftest.err |
19356 | rm -f conftest.er1 | |
19357 | cat conftest.err >&5 | |
a848cd7e SC |
19358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19359 | (exit $ac_status); } && | |
6ebeb4c7 | 19360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19362 | (eval $ac_try) 2>&5 | |
19363 | ac_status=$? | |
19364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19365 | (exit $ac_status); }; } && | |
19366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19368 | (eval $ac_try) 2>&5 | |
19369 | ac_status=$? | |
19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19371 | (exit $ac_status); }; }; then | |
19372 | ac_lo=0 ac_mid=0 | |
19373 | while :; do | |
19374 | cat >conftest.$ac_ext <<_ACEOF | |
19375 | /* confdefs.h. */ | |
19376 | _ACEOF | |
19377 | cat confdefs.h >>conftest.$ac_ext | |
19378 | cat >>conftest.$ac_ext <<_ACEOF | |
19379 | /* end confdefs.h. */ | |
19380 | $ac_includes_default | |
19381 | int | |
19382 | main () | |
19383 | { | |
19384 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19385 | test_array [0] = 0 | |
19386 | ||
19387 | ; | |
19388 | return 0; | |
19389 | } | |
19390 | _ACEOF | |
19391 | rm -f conftest.$ac_objext | |
19392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19393 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19394 | ac_status=$? |
ac1cb8d3 VS |
19395 | grep -v '^ *+' conftest.er1 >conftest.err |
19396 | rm -f conftest.er1 | |
19397 | cat conftest.err >&5 | |
a848cd7e SC |
19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19399 | (exit $ac_status); } && | |
6ebeb4c7 | 19400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19402 | (eval $ac_try) 2>&5 | |
19403 | ac_status=$? | |
19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19405 | (exit $ac_status); }; } && | |
19406 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19408 | (eval $ac_try) 2>&5 | |
19409 | ac_status=$? | |
19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19411 | (exit $ac_status); }; }; then | |
19412 | ac_hi=$ac_mid; break | |
19413 | else | |
19414 | echo "$as_me: failed program was:" >&5 | |
19415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19416 | ||
19417 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19418 | if test $ac_lo -le $ac_mid; then |
19419 | ac_lo= ac_hi= | |
19420 | break | |
19421 | fi | |
19422 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19423 | fi |
ac1cb8d3 | 19424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19425 | done |
19426 | else | |
19427 | echo "$as_me: failed program was:" >&5 | |
19428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19429 | ||
19430 | cat >conftest.$ac_ext <<_ACEOF | |
19431 | /* confdefs.h. */ | |
19432 | _ACEOF | |
19433 | cat confdefs.h >>conftest.$ac_ext | |
19434 | cat >>conftest.$ac_ext <<_ACEOF | |
19435 | /* end confdefs.h. */ | |
19436 | $ac_includes_default | |
19437 | int | |
19438 | main () | |
19439 | { | |
19440 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19441 | test_array [0] = 0 | |
19442 | ||
19443 | ; | |
19444 | return 0; | |
19445 | } | |
19446 | _ACEOF | |
19447 | rm -f conftest.$ac_objext | |
19448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19449 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19450 | ac_status=$? |
ac1cb8d3 VS |
19451 | grep -v '^ *+' conftest.er1 >conftest.err |
19452 | rm -f conftest.er1 | |
19453 | cat conftest.err >&5 | |
a848cd7e SC |
19454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19455 | (exit $ac_status); } && | |
6ebeb4c7 | 19456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19458 | (eval $ac_try) 2>&5 | |
19459 | ac_status=$? | |
19460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19461 | (exit $ac_status); }; } && | |
19462 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19464 | (eval $ac_try) 2>&5 | |
19465 | ac_status=$? | |
19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19467 | (exit $ac_status); }; }; then | |
19468 | ac_hi=-1 ac_mid=-1 | |
19469 | while :; do | |
19470 | cat >conftest.$ac_ext <<_ACEOF | |
19471 | /* confdefs.h. */ | |
19472 | _ACEOF | |
19473 | cat confdefs.h >>conftest.$ac_ext | |
19474 | cat >>conftest.$ac_ext <<_ACEOF | |
19475 | /* end confdefs.h. */ | |
19476 | $ac_includes_default | |
19477 | int | |
19478 | main () | |
19479 | { | |
19480 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19481 | test_array [0] = 0 | |
19482 | ||
19483 | ; | |
19484 | return 0; | |
19485 | } | |
19486 | _ACEOF | |
19487 | rm -f conftest.$ac_objext | |
19488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19490 | ac_status=$? |
ac1cb8d3 VS |
19491 | grep -v '^ *+' conftest.er1 >conftest.err |
19492 | rm -f conftest.er1 | |
19493 | cat conftest.err >&5 | |
a848cd7e SC |
19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19495 | (exit $ac_status); } && | |
6ebeb4c7 | 19496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19498 | (eval $ac_try) 2>&5 | |
19499 | ac_status=$? | |
19500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19501 | (exit $ac_status); }; } && | |
19502 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19504 | (eval $ac_try) 2>&5 | |
19505 | ac_status=$? | |
19506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19507 | (exit $ac_status); }; }; then | |
19508 | ac_lo=$ac_mid; break | |
19509 | else | |
19510 | echo "$as_me: failed program was:" >&5 | |
19511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19512 | ||
19513 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19514 | if test $ac_mid -le $ac_hi; then |
19515 | ac_lo= ac_hi= | |
19516 | break | |
19517 | fi | |
19518 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19519 | fi |
ac1cb8d3 | 19520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19521 | done |
19522 | else | |
19523 | echo "$as_me: failed program was:" >&5 | |
19524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19525 | ||
19526 | ac_lo= ac_hi= | |
19527 | fi | |
ac1cb8d3 | 19528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19529 | fi |
ac1cb8d3 | 19530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19531 | # Binary search between lo and hi bounds. |
19532 | while test "x$ac_lo" != "x$ac_hi"; do | |
19533 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19534 | cat >conftest.$ac_ext <<_ACEOF | |
19535 | /* confdefs.h. */ | |
19536 | _ACEOF | |
19537 | cat confdefs.h >>conftest.$ac_ext | |
19538 | cat >>conftest.$ac_ext <<_ACEOF | |
19539 | /* end confdefs.h. */ | |
19540 | $ac_includes_default | |
19541 | int | |
19542 | main () | |
19543 | { | |
19544 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19545 | test_array [0] = 0 | |
19546 | ||
19547 | ; | |
19548 | return 0; | |
19549 | } | |
19550 | _ACEOF | |
19551 | rm -f conftest.$ac_objext | |
19552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19553 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19554 | ac_status=$? |
ac1cb8d3 VS |
19555 | grep -v '^ *+' conftest.er1 >conftest.err |
19556 | rm -f conftest.er1 | |
19557 | cat conftest.err >&5 | |
a848cd7e SC |
19558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19559 | (exit $ac_status); } && | |
6ebeb4c7 | 19560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19562 | (eval $ac_try) 2>&5 | |
19563 | ac_status=$? | |
19564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19565 | (exit $ac_status); }; } && | |
19566 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19568 | (eval $ac_try) 2>&5 | |
19569 | ac_status=$? | |
19570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19571 | (exit $ac_status); }; }; then | |
19572 | ac_hi=$ac_mid | |
19573 | else | |
19574 | echo "$as_me: failed program was:" >&5 | |
19575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19576 | ||
19577 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19578 | fi | |
ac1cb8d3 | 19579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19580 | done |
19581 | case $ac_lo in | |
19582 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19583 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19584 | See \`config.log' for more details." >&5 | |
19585 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19586 | See \`config.log' for more details." >&2;} | |
19587 | { (exit 1); exit 1; }; } ;; | |
19588 | esac | |
19589 | else | |
19590 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19591 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19592 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19593 | { (exit 1); exit 1; }; } |
19594 | else | |
19595 | cat >conftest.$ac_ext <<_ACEOF | |
19596 | /* confdefs.h. */ | |
19597 | _ACEOF | |
19598 | cat confdefs.h >>conftest.$ac_ext | |
19599 | cat >>conftest.$ac_ext <<_ACEOF | |
19600 | /* end confdefs.h. */ | |
19601 | $ac_includes_default | |
19602 | long longval () { return (long) (sizeof (long long)); } | |
19603 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19604 | #include <stdio.h> | |
19605 | #include <stdlib.h> | |
19606 | int | |
19607 | main () | |
19608 | { | |
19609 | ||
19610 | FILE *f = fopen ("conftest.val", "w"); | |
19611 | if (! f) | |
19612 | exit (1); | |
19613 | if (((long) (sizeof (long long))) < 0) | |
19614 | { | |
19615 | long i = longval (); | |
19616 | if (i != ((long) (sizeof (long long)))) | |
19617 | exit (1); | |
19618 | fprintf (f, "%ld\n", i); | |
19619 | } | |
19620 | else | |
19621 | { | |
19622 | unsigned long i = ulongval (); | |
19623 | if (i != ((long) (sizeof (long long)))) | |
19624 | exit (1); | |
19625 | fprintf (f, "%lu\n", i); | |
19626 | } | |
19627 | exit (ferror (f) || fclose (f) != 0); | |
19628 | ||
19629 | ; | |
19630 | return 0; | |
19631 | } | |
19632 | _ACEOF | |
19633 | rm -f conftest$ac_exeext | |
19634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19635 | (eval $ac_link) 2>&5 | |
19636 | ac_status=$? | |
19637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19640 | (eval $ac_try) 2>&5 | |
19641 | ac_status=$? | |
19642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19643 | (exit $ac_status); }; }; then | |
19644 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19645 | else | |
19646 | echo "$as_me: program exited with status $ac_status" >&5 | |
19647 | echo "$as_me: failed program was:" >&5 | |
19648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19649 | ||
19650 | ( exit $ac_status ) | |
19651 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19652 | See \`config.log' for more details." >&5 | |
19653 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19654 | See \`config.log' for more details." >&2;} | |
19655 | { (exit 1); exit 1; }; } | |
19656 | fi | |
ac1cb8d3 | 19657 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19658 | fi |
19659 | fi | |
19660 | rm -f conftest.val | |
19661 | else | |
19662 | ac_cv_sizeof_long_long=0 | |
19663 | fi | |
19664 | fi | |
19665 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19666 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19667 | cat >>confdefs.h <<_ACEOF | |
19668 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19669 | _ACEOF | |
19670 | ||
19671 | ||
19672 | esac | |
19673 | ||
238ecede MW |
19674 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19675 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19676 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19678 | else | |
19679 | cat >conftest.$ac_ext <<_ACEOF | |
19680 | /* confdefs.h. */ | |
19681 | _ACEOF | |
19682 | cat confdefs.h >>conftest.$ac_ext | |
19683 | cat >>conftest.$ac_ext <<_ACEOF | |
19684 | /* end confdefs.h. */ | |
19685 | ||
83d8eb47 MW |
19686 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19687 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19688 | # error "fake wchar_t" |
19689 | #endif | |
19690 | #ifdef HAVE_WCHAR_H | |
19691 | # ifdef __CYGWIN__ | |
19692 | # include <stddef.h> | |
19693 | # endif | |
19694 | # include <wchar.h> | |
19695 | #endif | |
19696 | #ifdef HAVE_STDLIB_H | |
19697 | # include <stdlib.h> | |
19698 | #endif | |
19699 | #include <stdio.h> | |
19700 | ||
19701 | ||
19702 | ||
19703 | int | |
19704 | main () | |
19705 | { | |
19706 | if ((wchar_t *) 0) | |
19707 | return 0; | |
19708 | if (sizeof (wchar_t)) | |
19709 | return 0; | |
19710 | ; | |
19711 | return 0; | |
19712 | } | |
19713 | _ACEOF | |
19714 | rm -f conftest.$ac_objext | |
19715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19716 | (eval $ac_compile) 2>conftest.er1 | |
19717 | ac_status=$? | |
19718 | grep -v '^ *+' conftest.er1 >conftest.err | |
19719 | rm -f conftest.er1 | |
19720 | cat conftest.err >&5 | |
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19722 | (exit $ac_status); } && | |
6ebeb4c7 | 19723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19725 | (eval $ac_try) 2>&5 | |
19726 | ac_status=$? | |
19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19728 | (exit $ac_status); }; } && | |
19729 | { ac_try='test -s conftest.$ac_objext' | |
19730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19731 | (eval $ac_try) 2>&5 | |
19732 | ac_status=$? | |
19733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19734 | (exit $ac_status); }; }; then | |
19735 | ac_cv_type_wchar_t=yes | |
19736 | else | |
19737 | echo "$as_me: failed program was:" >&5 | |
19738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19739 | ||
19740 | ac_cv_type_wchar_t=no | |
19741 | fi | |
19742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19743 | fi | |
19744 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19745 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19746 | ||
a848cd7e SC |
19747 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19748 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19749 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19751 | else | |
238ecede MW |
19752 | if test "$ac_cv_type_wchar_t" = yes; then |
19753 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19754 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19755 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19756 | # This bug is HP SR number 8606223364. | |
19757 | if test "$cross_compiling" = yes; then | |
19758 | # Depending upon the size, compute the lo and hi bounds. | |
19759 | cat >conftest.$ac_ext <<_ACEOF | |
19760 | /* confdefs.h. */ | |
19761 | _ACEOF | |
19762 | cat confdefs.h >>conftest.$ac_ext | |
19763 | cat >>conftest.$ac_ext <<_ACEOF | |
19764 | /* end confdefs.h. */ | |
19765 | ||
83d8eb47 MW |
19766 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19767 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19768 | # error "fake wchar_t" |
19769 | #endif | |
19770 | #ifdef HAVE_WCHAR_H | |
19771 | # ifdef __CYGWIN__ | |
19772 | # include <stddef.h> | |
19773 | # endif | |
19774 | # include <wchar.h> | |
19775 | #endif | |
19776 | #ifdef HAVE_STDLIB_H | |
19777 | # include <stdlib.h> | |
19778 | #endif | |
19779 | #include <stdio.h> | |
19780 | ||
19781 | ||
19782 | ||
19783 | int | |
19784 | main () | |
19785 | { | |
19786 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19787 | test_array [0] = 0 | |
19788 | ||
19789 | ; | |
19790 | return 0; | |
19791 | } | |
19792 | _ACEOF | |
19793 | rm -f conftest.$ac_objext | |
19794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19795 | (eval $ac_compile) 2>conftest.er1 | |
19796 | ac_status=$? | |
19797 | grep -v '^ *+' conftest.er1 >conftest.err | |
19798 | rm -f conftest.er1 | |
19799 | cat conftest.err >&5 | |
19800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19801 | (exit $ac_status); } && | |
6ebeb4c7 | 19802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19804 | (eval $ac_try) 2>&5 | |
19805 | ac_status=$? | |
19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19807 | (exit $ac_status); }; } && | |
19808 | { ac_try='test -s conftest.$ac_objext' | |
19809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19810 | (eval $ac_try) 2>&5 | |
19811 | ac_status=$? | |
19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19813 | (exit $ac_status); }; }; then | |
19814 | ac_lo=0 ac_mid=0 | |
19815 | while :; do | |
19816 | cat >conftest.$ac_ext <<_ACEOF | |
19817 | /* confdefs.h. */ | |
19818 | _ACEOF | |
19819 | cat confdefs.h >>conftest.$ac_ext | |
19820 | cat >>conftest.$ac_ext <<_ACEOF | |
19821 | /* end confdefs.h. */ | |
19822 | ||
83d8eb47 MW |
19823 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19824 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19825 | # error "fake wchar_t" |
19826 | #endif | |
19827 | #ifdef HAVE_WCHAR_H | |
19828 | # ifdef __CYGWIN__ | |
19829 | # include <stddef.h> | |
19830 | # endif | |
19831 | # include <wchar.h> | |
19832 | #endif | |
19833 | #ifdef HAVE_STDLIB_H | |
19834 | # include <stdlib.h> | |
19835 | #endif | |
19836 | #include <stdio.h> | |
19837 | ||
19838 | ||
19839 | ||
19840 | int | |
19841 | main () | |
19842 | { | |
19843 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19844 | test_array [0] = 0 | |
19845 | ||
19846 | ; | |
19847 | return 0; | |
19848 | } | |
19849 | _ACEOF | |
19850 | rm -f conftest.$ac_objext | |
19851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19852 | (eval $ac_compile) 2>conftest.er1 | |
19853 | ac_status=$? | |
19854 | grep -v '^ *+' conftest.er1 >conftest.err | |
19855 | rm -f conftest.er1 | |
19856 | cat conftest.err >&5 | |
19857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19858 | (exit $ac_status); } && | |
6ebeb4c7 | 19859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19861 | (eval $ac_try) 2>&5 | |
19862 | ac_status=$? | |
19863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19864 | (exit $ac_status); }; } && | |
19865 | { ac_try='test -s conftest.$ac_objext' | |
19866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19867 | (eval $ac_try) 2>&5 | |
19868 | ac_status=$? | |
19869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19870 | (exit $ac_status); }; }; then | |
19871 | ac_hi=$ac_mid; break | |
19872 | else | |
19873 | echo "$as_me: failed program was:" >&5 | |
19874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19875 | ||
19876 | ac_lo=`expr $ac_mid + 1` | |
19877 | if test $ac_lo -le $ac_mid; then | |
19878 | ac_lo= ac_hi= | |
19879 | break | |
19880 | fi | |
19881 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19882 | fi | |
19883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19884 | done | |
19885 | else | |
19886 | echo "$as_me: failed program was:" >&5 | |
19887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19888 | ||
19889 | cat >conftest.$ac_ext <<_ACEOF | |
19890 | /* confdefs.h. */ | |
19891 | _ACEOF | |
19892 | cat confdefs.h >>conftest.$ac_ext | |
19893 | cat >>conftest.$ac_ext <<_ACEOF | |
19894 | /* end confdefs.h. */ | |
19895 | ||
83d8eb47 MW |
19896 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19897 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19898 | # error "fake wchar_t" |
19899 | #endif | |
19900 | #ifdef HAVE_WCHAR_H | |
19901 | # ifdef __CYGWIN__ | |
19902 | # include <stddef.h> | |
19903 | # endif | |
19904 | # include <wchar.h> | |
19905 | #endif | |
19906 | #ifdef HAVE_STDLIB_H | |
19907 | # include <stdlib.h> | |
19908 | #endif | |
19909 | #include <stdio.h> | |
19910 | ||
19911 | ||
19912 | ||
19913 | int | |
19914 | main () | |
19915 | { | |
19916 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19917 | test_array [0] = 0 | |
19918 | ||
19919 | ; | |
19920 | return 0; | |
19921 | } | |
19922 | _ACEOF | |
19923 | rm -f conftest.$ac_objext | |
19924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19925 | (eval $ac_compile) 2>conftest.er1 | |
19926 | ac_status=$? | |
19927 | grep -v '^ *+' conftest.er1 >conftest.err | |
19928 | rm -f conftest.er1 | |
19929 | cat conftest.err >&5 | |
19930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19931 | (exit $ac_status); } && | |
6ebeb4c7 | 19932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19934 | (eval $ac_try) 2>&5 | |
19935 | ac_status=$? | |
19936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19937 | (exit $ac_status); }; } && | |
19938 | { ac_try='test -s conftest.$ac_objext' | |
19939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19940 | (eval $ac_try) 2>&5 | |
19941 | ac_status=$? | |
19942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19943 | (exit $ac_status); }; }; then | |
19944 | ac_hi=-1 ac_mid=-1 | |
19945 | while :; do | |
19946 | cat >conftest.$ac_ext <<_ACEOF | |
19947 | /* confdefs.h. */ | |
19948 | _ACEOF | |
19949 | cat confdefs.h >>conftest.$ac_ext | |
19950 | cat >>conftest.$ac_ext <<_ACEOF | |
19951 | /* end confdefs.h. */ | |
19952 | ||
83d8eb47 MW |
19953 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19954 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19955 | # error "fake wchar_t" |
19956 | #endif | |
19957 | #ifdef HAVE_WCHAR_H | |
19958 | # ifdef __CYGWIN__ | |
19959 | # include <stddef.h> | |
19960 | # endif | |
19961 | # include <wchar.h> | |
19962 | #endif | |
19963 | #ifdef HAVE_STDLIB_H | |
19964 | # include <stdlib.h> | |
19965 | #endif | |
19966 | #include <stdio.h> | |
19967 | ||
19968 | ||
19969 | ||
19970 | int | |
19971 | main () | |
19972 | { | |
19973 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19974 | test_array [0] = 0 | |
19975 | ||
19976 | ; | |
19977 | return 0; | |
19978 | } | |
19979 | _ACEOF | |
19980 | rm -f conftest.$ac_objext | |
19981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19982 | (eval $ac_compile) 2>conftest.er1 | |
19983 | ac_status=$? | |
19984 | grep -v '^ *+' conftest.er1 >conftest.err | |
19985 | rm -f conftest.er1 | |
19986 | cat conftest.err >&5 | |
19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19988 | (exit $ac_status); } && | |
6ebeb4c7 | 19989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19991 | (eval $ac_try) 2>&5 | |
19992 | ac_status=$? | |
19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19994 | (exit $ac_status); }; } && | |
19995 | { ac_try='test -s conftest.$ac_objext' | |
19996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19997 | (eval $ac_try) 2>&5 | |
19998 | ac_status=$? | |
19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20000 | (exit $ac_status); }; }; then | |
20001 | ac_lo=$ac_mid; break | |
20002 | else | |
20003 | echo "$as_me: failed program was:" >&5 | |
20004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20005 | ||
20006 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20007 | if test $ac_mid -le $ac_hi; then | |
20008 | ac_lo= ac_hi= | |
20009 | break | |
20010 | fi | |
20011 | ac_mid=`expr 2 '*' $ac_mid` | |
20012 | fi | |
20013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20014 | done | |
20015 | else | |
20016 | echo "$as_me: failed program was:" >&5 | |
20017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20018 | ||
20019 | ac_lo= ac_hi= | |
20020 | fi | |
20021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20022 | fi | |
20023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20024 | # Binary search between lo and hi bounds. | |
20025 | while test "x$ac_lo" != "x$ac_hi"; do | |
20026 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20027 | cat >conftest.$ac_ext <<_ACEOF | |
20028 | /* confdefs.h. */ | |
20029 | _ACEOF | |
20030 | cat confdefs.h >>conftest.$ac_ext | |
20031 | cat >>conftest.$ac_ext <<_ACEOF | |
20032 | /* end confdefs.h. */ | |
20033 | ||
83d8eb47 MW |
20034 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20035 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20036 | # error "fake wchar_t" |
20037 | #endif | |
20038 | #ifdef HAVE_WCHAR_H | |
20039 | # ifdef __CYGWIN__ | |
20040 | # include <stddef.h> | |
20041 | # endif | |
20042 | # include <wchar.h> | |
20043 | #endif | |
20044 | #ifdef HAVE_STDLIB_H | |
20045 | # include <stdlib.h> | |
20046 | #endif | |
20047 | #include <stdio.h> | |
a848cd7e | 20048 | |
a848cd7e | 20049 | |
a848cd7e | 20050 | |
238ecede MW |
20051 | int |
20052 | main () | |
20053 | { | |
20054 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20055 | test_array [0] = 0 | |
a848cd7e | 20056 | |
238ecede MW |
20057 | ; |
20058 | return 0; | |
20059 | } | |
20060 | _ACEOF | |
20061 | rm -f conftest.$ac_objext | |
20062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20063 | (eval $ac_compile) 2>conftest.er1 | |
20064 | ac_status=$? | |
20065 | grep -v '^ *+' conftest.er1 >conftest.err | |
20066 | rm -f conftest.er1 | |
20067 | cat conftest.err >&5 | |
20068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20069 | (exit $ac_status); } && | |
6ebeb4c7 | 20070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20072 | (eval $ac_try) 2>&5 | |
20073 | ac_status=$? | |
20074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20075 | (exit $ac_status); }; } && | |
20076 | { ac_try='test -s conftest.$ac_objext' | |
20077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20078 | (eval $ac_try) 2>&5 | |
20079 | ac_status=$? | |
20080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20081 | (exit $ac_status); }; }; then | |
20082 | ac_hi=$ac_mid | |
20083 | else | |
20084 | echo "$as_me: failed program was:" >&5 | |
20085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20086 | ||
20087 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20088 | fi | |
20089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20090 | done | |
20091 | case $ac_lo in | |
20092 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
20093 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
20094 | See \`config.log' for more details." >&5 | |
20095 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20096 | See \`config.log' for more details." >&2;} | |
20097 | { (exit 1); exit 1; }; } ;; | |
20098 | esac | |
20099 | else | |
20100 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
20101 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20102 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 20103 | { (exit 1); exit 1; }; } |
a848cd7e SC |
20104 | else |
20105 | cat >conftest.$ac_ext <<_ACEOF | |
20106 | /* confdefs.h. */ | |
20107 | _ACEOF | |
20108 | cat confdefs.h >>conftest.$ac_ext | |
20109 | cat >>conftest.$ac_ext <<_ACEOF | |
20110 | /* end confdefs.h. */ | |
20111 | ||
83d8eb47 MW |
20112 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20113 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20114 | # error "fake wchar_t" |
20115 | #endif | |
20116 | #ifdef HAVE_WCHAR_H | |
20117 | # ifdef __CYGWIN__ | |
20118 | # include <stddef.h> | |
20119 | # endif | |
20120 | # include <wchar.h> | |
20121 | #endif | |
20122 | #ifdef HAVE_STDLIB_H | |
20123 | # include <stdlib.h> | |
20124 | #endif | |
20125 | #include <stdio.h> | |
20126 | ||
20127 | ||
20128 | ||
20129 | long longval () { return (long) (sizeof (wchar_t)); } | |
20130 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
20131 | #include <stdio.h> | |
20132 | #include <stdlib.h> | |
20133 | int | |
20134 | main () | |
20135 | { | |
a848cd7e | 20136 | |
238ecede MW |
20137 | FILE *f = fopen ("conftest.val", "w"); |
20138 | if (! f) | |
20139 | exit (1); | |
20140 | if (((long) (sizeof (wchar_t))) < 0) | |
20141 | { | |
20142 | long i = longval (); | |
20143 | if (i != ((long) (sizeof (wchar_t)))) | |
20144 | exit (1); | |
20145 | fprintf (f, "%ld\n", i); | |
20146 | } | |
20147 | else | |
20148 | { | |
20149 | unsigned long i = ulongval (); | |
20150 | if (i != ((long) (sizeof (wchar_t)))) | |
20151 | exit (1); | |
20152 | fprintf (f, "%lu\n", i); | |
20153 | } | |
20154 | exit (ferror (f) || fclose (f) != 0); | |
20155 | ||
20156 | ; | |
20157 | return 0; | |
20158 | } | |
a848cd7e SC |
20159 | _ACEOF |
20160 | rm -f conftest$ac_exeext | |
20161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20162 | (eval $ac_link) 2>&5 | |
20163 | ac_status=$? | |
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20165 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20167 | (eval $ac_try) 2>&5 | |
20168 | ac_status=$? | |
20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20170 | (exit $ac_status); }; }; then | |
238ecede | 20171 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
20172 | else |
20173 | echo "$as_me: program exited with status $ac_status" >&5 | |
20174 | echo "$as_me: failed program was:" >&5 | |
20175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20176 | ||
20177 | ( exit $ac_status ) | |
238ecede MW |
20178 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
20179 | See \`config.log' for more details." >&5 | |
20180 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20181 | See \`config.log' for more details." >&2;} | |
20182 | { (exit 1); exit 1; }; } | |
a848cd7e | 20183 | fi |
ac1cb8d3 | 20184 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20185 | fi |
a848cd7e | 20186 | fi |
238ecede MW |
20187 | rm -f conftest.val |
20188 | else | |
20189 | ac_cv_sizeof_wchar_t=0 | |
20190 | fi | |
20191 | fi | |
20192 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
20193 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 20194 | cat >>confdefs.h <<_ACEOF |
238ecede | 20195 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
20196 | _ACEOF |
20197 | ||
20198 | ||
47a7e797 MW |
20199 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
20200 | wxUSE_WCHAR_T=yes | |
20201 | else | |
20202 | wxUSE_WCHAR_T=no | |
20203 | fi | |
238ecede | 20204 | |
ba3d13e1 VZ |
20205 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
20206 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
20207 | if test "${wx_cv_func_va_copy+set}" = set; then | |
20208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20209 | else | |
20210 | ||
20211 | cat >conftest.$ac_ext <<_ACEOF | |
20212 | ||
20213 | #include <stdarg.h> | |
20214 | void foo(char *f, ...) | |
20215 | { | |
20216 | va_list ap1, ap2; | |
20217 | va_start(ap1, f); | |
20218 | va_copy(ap2, ap1); | |
20219 | va_end(ap2); | |
20220 | va_end(ap1); | |
20221 | } | |
5886b072 VZ |
20222 | int main() |
20223 | { | |
b902e639 VZ |
20224 | foo("hi", 17); |
20225 | return 0; | |
5886b072 | 20226 | } |
ba3d13e1 VZ |
20227 | _ACEOF |
20228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20230 | (eval $ac_link) 2>conftest.er1 | |
20231 | ac_status=$? | |
20232 | grep -v '^ *+' conftest.er1 >conftest.err | |
20233 | rm -f conftest.er1 | |
20234 | cat conftest.err >&5 | |
20235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20236 | (exit $ac_status); } && | |
6ebeb4c7 | 20237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
20238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20239 | (eval $ac_try) 2>&5 | |
20240 | ac_status=$? | |
20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20242 | (exit $ac_status); }; } && | |
20243 | { ac_try='test -s conftest$ac_exeext' | |
20244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20245 | (eval $ac_try) 2>&5 | |
20246 | ac_status=$? | |
20247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20248 | (exit $ac_status); }; }; then | |
20249 | wx_cv_func_va_copy=yes | |
20250 | else | |
20251 | echo "$as_me: failed program was:" >&5 | |
20252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20253 | ||
20254 | wx_cv_func_va_copy=no | |
20255 | ||
20256 | fi | |
20257 | rm -f conftest.err conftest.$ac_objext \ | |
20258 | conftest$ac_exeext conftest.$ac_ext | |
20259 | ||
20260 | ||
20261 | fi | |
20262 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
20263 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
20264 | ||
20265 | if test $wx_cv_func_va_copy = "yes"; then | |
20266 | cat >>confdefs.h <<\_ACEOF | |
20267 | #define HAVE_VA_COPY 1 | |
20268 | _ACEOF | |
20269 | ||
20270 | else | |
20271 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
20272 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
20273 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
20274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20275 | else | |
20276 | ||
20277 | if test "$cross_compiling" = yes; then | |
20278 | wx_cv_type_va_list_lvalue=yes | |
20279 | ||
20280 | else | |
20281 | cat >conftest.$ac_ext <<_ACEOF | |
20282 | ||
20283 | #include <stdarg.h> | |
20284 | int foo(char *f, ...) | |
20285 | { | |
20286 | va_list ap1, ap2; | |
20287 | va_start(ap1, f); | |
20288 | ap2 = ap1; | |
20289 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
20290 | return 1; | |
20291 | va_end(ap2); | |
20292 | va_end(ap1); | |
20293 | return 0; | |
20294 | } | |
20295 | int main() | |
20296 | { | |
20297 | return foo("hi", 17); | |
20298 | } | |
20299 | _ACEOF | |
20300 | rm -f conftest$ac_exeext | |
20301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20302 | (eval $ac_link) 2>&5 | |
20303 | ac_status=$? | |
20304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20307 | (eval $ac_try) 2>&5 | |
20308 | ac_status=$? | |
20309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20310 | (exit $ac_status); }; }; then | |
20311 | wx_cv_type_va_list_lvalue=yes | |
20312 | else | |
20313 | echo "$as_me: program exited with status $ac_status" >&5 | |
20314 | echo "$as_me: failed program was:" >&5 | |
20315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20316 | ||
20317 | ( exit $ac_status ) | |
20318 | wx_cv_type_va_list_lvalue=no | |
20319 | fi | |
20320 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20321 | fi | |
20322 | ||
20323 | ||
20324 | fi | |
20325 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
20326 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
20327 | ||
20328 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
20329 | cat >>confdefs.h <<\_ACEOF | |
20330 | #define VA_LIST_IS_ARRAY 1 | |
20331 | _ACEOF | |
20332 | ||
20333 | fi | |
20334 | fi | |
20335 | ||
a848cd7e SC |
20336 | # Check whether --enable-largefile or --disable-largefile was given. |
20337 | if test "${enable_largefile+set}" = set; then | |
20338 | enableval="$enable_largefile" | |
20339 | ||
20340 | fi; | |
20341 | if test "$enable_largefile" != no; then | |
20342 | wx_largefile=no | |
20343 | ||
20344 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20345 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20346 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
20347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20348 | else | |
20349 | ||
20350 | cat >conftest.$ac_ext <<_ACEOF | |
20351 | /* confdefs.h. */ | |
20352 | _ACEOF | |
20353 | cat confdefs.h >>conftest.$ac_ext | |
20354 | cat >>conftest.$ac_ext <<_ACEOF | |
20355 | /* end confdefs.h. */ | |
20356 | #define _FILE_OFFSET_BITS 64 | |
20357 | #include <sys/types.h> | |
20358 | int | |
20359 | main () | |
20360 | { | |
20361 | typedef struct { | |
20362 | unsigned int field: sizeof(off_t) == 8; | |
20363 | } wxlf; | |
20364 | ||
20365 | ; | |
20366 | return 0; | |
20367 | } | |
20368 | _ACEOF | |
20369 | rm -f conftest.$ac_objext | |
20370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20371 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20372 | ac_status=$? |
ac1cb8d3 VS |
20373 | grep -v '^ *+' conftest.er1 >conftest.err |
20374 | rm -f conftest.er1 | |
20375 | cat conftest.err >&5 | |
a848cd7e SC |
20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20377 | (exit $ac_status); } && | |
6ebeb4c7 | 20378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20380 | (eval $ac_try) 2>&5 | |
20381 | ac_status=$? | |
20382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20383 | (exit $ac_status); }; } && | |
20384 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20386 | (eval $ac_try) 2>&5 | |
20387 | ac_status=$? | |
20388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20389 | (exit $ac_status); }; }; then | |
20390 | ac_cv_sys_file_offset_bits=64 | |
20391 | else | |
20392 | echo "$as_me: failed program was:" >&5 | |
20393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20394 | ||
20395 | ac_cv_sys_file_offset_bits=no | |
20396 | fi | |
ac1cb8d3 | 20397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20398 | |
20399 | ||
20400 | fi | |
20401 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
20402 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
20403 | ||
20404 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
20405 | wx_largefile=yes | |
20406 | cat >>confdefs.h <<_ACEOF | |
20407 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20408 | _ACEOF | |
20409 | ||
20410 | fi | |
20411 | ||
20412 | if test "x$wx_largefile" != "xyes"; then | |
20413 | ||
20414 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
20415 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
20416 | if test "${ac_cv_sys_large_files+set}" = set; then | |
20417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20418 | else | |
20419 | ||
20420 | cat >conftest.$ac_ext <<_ACEOF | |
20421 | /* confdefs.h. */ | |
20422 | _ACEOF | |
20423 | cat confdefs.h >>conftest.$ac_ext | |
20424 | cat >>conftest.$ac_ext <<_ACEOF | |
20425 | /* end confdefs.h. */ | |
20426 | #define _LARGE_FILES 1 | |
20427 | #include <sys/types.h> | |
20428 | int | |
20429 | main () | |
20430 | { | |
20431 | typedef struct { | |
20432 | unsigned int field: sizeof(off_t) == 8; | |
20433 | } wxlf; | |
20434 | ||
20435 | ; | |
20436 | return 0; | |
20437 | } | |
20438 | _ACEOF | |
20439 | rm -f conftest.$ac_objext | |
20440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20442 | ac_status=$? |
ac1cb8d3 VS |
20443 | grep -v '^ *+' conftest.er1 >conftest.err |
20444 | rm -f conftest.er1 | |
20445 | cat conftest.err >&5 | |
a848cd7e SC |
20446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20447 | (exit $ac_status); } && | |
6ebeb4c7 | 20448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20450 | (eval $ac_try) 2>&5 | |
20451 | ac_status=$? | |
20452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20453 | (exit $ac_status); }; } && | |
20454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20456 | (eval $ac_try) 2>&5 | |
20457 | ac_status=$? | |
20458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20459 | (exit $ac_status); }; }; then | |
20460 | ac_cv_sys_large_files=1 | |
20461 | else | |
20462 | echo "$as_me: failed program was:" >&5 | |
20463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20464 | ||
20465 | ac_cv_sys_large_files=no | |
20466 | fi | |
ac1cb8d3 | 20467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20468 | |
20469 | ||
20470 | fi | |
20471 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
20472 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
20473 | ||
20474 | if test "$ac_cv_sys_large_files" != no; then | |
20475 | wx_largefile=yes | |
20476 | cat >>confdefs.h <<_ACEOF | |
20477 | #define _LARGE_FILES $ac_cv_sys_large_files | |
20478 | _ACEOF | |
20479 | ||
20480 | fi | |
20481 | ||
20482 | fi | |
20483 | ||
20484 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
20485 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
20486 | if test "x$wx_largefile" = "xyes"; then | |
20487 | cat >>confdefs.h <<\_ACEOF | |
20488 | #define HAVE_LARGEFILE_SUPPORT 1 | |
20489 | _ACEOF | |
20490 | ||
20491 | fi | |
20492 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
20493 | echo "${ECHO_T}$wx_largefile" >&6 | |
20494 | fi | |
20495 | ||
5b674b9d DE |
20496 | |
20497 | if test "x$wx_largefile" = "xyes"; then | |
20498 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
20499 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
00421666 MW |
20500 | |
20501 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
20502 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
20503 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
20504 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
20505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20506 | else | |
20507 | ||
20508 | ||
20509 | ||
20510 | ac_ext=cc | |
20511 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20512 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20513 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20514 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20515 | ||
20516 | cat >conftest.$ac_ext <<_ACEOF | |
20517 | /* confdefs.h. */ | |
20518 | _ACEOF | |
20519 | cat confdefs.h >>conftest.$ac_ext | |
20520 | cat >>conftest.$ac_ext <<_ACEOF | |
20521 | /* end confdefs.h. */ | |
20522 | ||
20523 | int | |
20524 | main () | |
20525 | { | |
20526 | ||
20527 | #ifndef __STDC_EXT__ | |
20528 | choke me | |
20529 | #endif | |
20530 | ||
20531 | ; | |
20532 | return 0; | |
20533 | } | |
20534 | _ACEOF | |
20535 | rm -f conftest.$ac_objext | |
20536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20537 | (eval $ac_compile) 2>conftest.er1 | |
20538 | ac_status=$? | |
20539 | grep -v '^ *+' conftest.er1 >conftest.err | |
20540 | rm -f conftest.er1 | |
20541 | cat conftest.err >&5 | |
20542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20543 | (exit $ac_status); } && | |
20544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
20545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20546 | (eval $ac_try) 2>&5 | |
20547 | ac_status=$? | |
20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20549 | (exit $ac_status); }; } && | |
20550 | { ac_try='test -s conftest.$ac_objext' | |
20551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20552 | (eval $ac_try) 2>&5 | |
20553 | ac_status=$? | |
20554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20555 | (exit $ac_status); }; }; then | |
20556 | wx_cv_STDC_EXT_required=no | |
20557 | else | |
20558 | echo "$as_me: failed program was:" >&5 | |
20559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20560 | ||
20561 | wx_cv_STDC_EXT_required=yes | |
20562 | ||
20563 | fi | |
20564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20565 | ac_ext=c | |
20566 | ac_cpp='$CPP $CPPFLAGS' | |
20567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20570 | ||
20571 | ||
20572 | ||
20573 | fi | |
20574 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
20575 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
20576 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
20577 | CXXFLAGS="$CXXFLAGS -D__STDC_EXT__" | |
20578 | fi | |
20579 | fi | |
5b674b9d DE |
20580 | else |
20581 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
20582 | fi | |
20583 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
20584 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
20585 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
20586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20587 | else | |
20588 | while :; do | |
20589 | ac_cv_sys_largefile_source=no | |
20590 | cat >conftest.$ac_ext <<_ACEOF | |
20591 | /* confdefs.h. */ | |
20592 | _ACEOF | |
20593 | cat confdefs.h >>conftest.$ac_ext | |
20594 | cat >>conftest.$ac_ext <<_ACEOF | |
20595 | /* end confdefs.h. */ | |
20596 | #include <stdio.h> | |
20597 | int | |
20598 | main () | |
20599 | { | |
20600 | return !fseeko; | |
20601 | ; | |
20602 | return 0; | |
20603 | } | |
20604 | _ACEOF | |
20605 | rm -f conftest.$ac_objext | |
20606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20607 | (eval $ac_compile) 2>conftest.er1 | |
20608 | ac_status=$? | |
20609 | grep -v '^ *+' conftest.er1 >conftest.err | |
20610 | rm -f conftest.er1 | |
20611 | cat conftest.err >&5 | |
20612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20613 | (exit $ac_status); } && | |
6ebeb4c7 | 20614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20616 | (eval $ac_try) 2>&5 | |
20617 | ac_status=$? | |
20618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20619 | (exit $ac_status); }; } && | |
20620 | { ac_try='test -s conftest.$ac_objext' | |
20621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20622 | (eval $ac_try) 2>&5 | |
20623 | ac_status=$? | |
20624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20625 | (exit $ac_status); }; }; then | |
20626 | break | |
20627 | else | |
20628 | echo "$as_me: failed program was:" >&5 | |
20629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20630 | ||
20631 | fi | |
20632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20633 | cat >conftest.$ac_ext <<_ACEOF | |
20634 | /* confdefs.h. */ | |
20635 | _ACEOF | |
20636 | cat confdefs.h >>conftest.$ac_ext | |
20637 | cat >>conftest.$ac_ext <<_ACEOF | |
20638 | /* end confdefs.h. */ | |
20639 | #define _LARGEFILE_SOURCE 1 | |
20640 | #include <stdio.h> | |
20641 | int | |
20642 | main () | |
20643 | { | |
20644 | return !fseeko; | |
20645 | ; | |
20646 | return 0; | |
20647 | } | |
20648 | _ACEOF | |
20649 | rm -f conftest.$ac_objext | |
20650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20651 | (eval $ac_compile) 2>conftest.er1 | |
20652 | ac_status=$? | |
20653 | grep -v '^ *+' conftest.er1 >conftest.err | |
20654 | rm -f conftest.er1 | |
20655 | cat conftest.err >&5 | |
20656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20657 | (exit $ac_status); } && | |
6ebeb4c7 | 20658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20660 | (eval $ac_try) 2>&5 | |
20661 | ac_status=$? | |
20662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20663 | (exit $ac_status); }; } && | |
20664 | { ac_try='test -s conftest.$ac_objext' | |
20665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20666 | (eval $ac_try) 2>&5 | |
20667 | ac_status=$? | |
20668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20669 | (exit $ac_status); }; }; then | |
20670 | ac_cv_sys_largefile_source=1; break | |
20671 | else | |
20672 | echo "$as_me: failed program was:" >&5 | |
20673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20674 | ||
20675 | fi | |
20676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20677 | break | |
20678 | done | |
20679 | fi | |
20680 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20681 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20682 | if test "$ac_cv_sys_largefile_source" != no; then | |
20683 | ||
20684 | cat >>confdefs.h <<_ACEOF | |
20685 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20686 | _ACEOF | |
20687 | ||
20688 | fi | |
20689 | rm -f conftest* | |
20690 | ||
20691 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20692 | # in glibc 2.1.3, but that breaks too many other things. | |
20693 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20694 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20695 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20696 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20698 | else | |
20699 | cat >conftest.$ac_ext <<_ACEOF | |
20700 | /* confdefs.h. */ | |
20701 | _ACEOF | |
20702 | cat confdefs.h >>conftest.$ac_ext | |
20703 | cat >>conftest.$ac_ext <<_ACEOF | |
20704 | /* end confdefs.h. */ | |
20705 | #include <stdio.h> | |
20706 | int | |
20707 | main () | |
20708 | { | |
20709 | return fseeko && fseeko (stdin, 0, 0); | |
20710 | ; | |
20711 | return 0; | |
20712 | } | |
20713 | _ACEOF | |
20714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20716 | (eval $ac_link) 2>conftest.er1 | |
20717 | ac_status=$? | |
20718 | grep -v '^ *+' conftest.er1 >conftest.err | |
20719 | rm -f conftest.er1 | |
20720 | cat conftest.err >&5 | |
20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20722 | (exit $ac_status); } && | |
6ebeb4c7 | 20723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20725 | (eval $ac_try) 2>&5 | |
20726 | ac_status=$? | |
20727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20728 | (exit $ac_status); }; } && | |
20729 | { ac_try='test -s conftest$ac_exeext' | |
20730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20731 | (eval $ac_try) 2>&5 | |
20732 | ac_status=$? | |
20733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20734 | (exit $ac_status); }; }; then | |
20735 | ac_cv_func_fseeko=yes | |
20736 | else | |
20737 | echo "$as_me: failed program was:" >&5 | |
20738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20739 | ||
20740 | ac_cv_func_fseeko=no | |
20741 | fi | |
20742 | rm -f conftest.err conftest.$ac_objext \ | |
20743 | conftest$ac_exeext conftest.$ac_ext | |
20744 | fi | |
20745 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20746 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20747 | if test $ac_cv_func_fseeko = yes; then | |
20748 | ||
20749 | cat >>confdefs.h <<\_ACEOF | |
20750 | #define HAVE_FSEEKO 1 | |
20751 | _ACEOF | |
20752 | ||
20753 | fi | |
20754 | ||
5b674b9d DE |
20755 | if test "$ac_cv_sys_largefile_source" != no; then |
20756 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20757 | fi |
20758 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20759 | fi | |
20760 | ||
20761 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20762 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20763 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20765 | else | |
20766 | ac_cv_c_bigendian=unknown | |
20767 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20768 | cat >conftest.$ac_ext <<_ACEOF | |
20769 | /* confdefs.h. */ | |
20770 | _ACEOF | |
20771 | cat confdefs.h >>conftest.$ac_ext | |
20772 | cat >>conftest.$ac_ext <<_ACEOF | |
20773 | /* end confdefs.h. */ | |
20774 | #include <sys/types.h> | |
20775 | #include <sys/param.h> | |
20776 | int | |
20777 | main () | |
20778 | { | |
20779 | ||
20780 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20781 | bogus endian macros | |
20782 | #endif | |
20783 | ; | |
20784 | return 0; | |
20785 | } | |
20786 | _ACEOF | |
20787 | rm -f conftest.$ac_objext | |
20788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20789 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20790 | ac_status=$? |
ac1cb8d3 VS |
20791 | grep -v '^ *+' conftest.er1 >conftest.err |
20792 | rm -f conftest.er1 | |
20793 | cat conftest.err >&5 | |
a848cd7e SC |
20794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20795 | (exit $ac_status); } && | |
6ebeb4c7 | 20796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20798 | (eval $ac_try) 2>&5 | |
20799 | ac_status=$? | |
20800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20801 | (exit $ac_status); }; } && | |
20802 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20804 | (eval $ac_try) 2>&5 | |
20805 | ac_status=$? | |
20806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20807 | (exit $ac_status); }; }; then | |
20808 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20809 | cat >conftest.$ac_ext <<_ACEOF | |
20810 | /* confdefs.h. */ | |
20811 | _ACEOF | |
20812 | cat confdefs.h >>conftest.$ac_ext | |
20813 | cat >>conftest.$ac_ext <<_ACEOF | |
20814 | /* end confdefs.h. */ | |
20815 | #include <sys/types.h> | |
20816 | #include <sys/param.h> | |
20817 | int | |
20818 | main () | |
20819 | { | |
20820 | ||
20821 | #if BYTE_ORDER != BIG_ENDIAN | |
20822 | not big endian | |
20823 | #endif | |
20824 | ; | |
20825 | return 0; | |
20826 | } | |
20827 | _ACEOF | |
20828 | rm -f conftest.$ac_objext | |
20829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20830 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20831 | ac_status=$? |
ac1cb8d3 VS |
20832 | grep -v '^ *+' conftest.er1 >conftest.err |
20833 | rm -f conftest.er1 | |
20834 | cat conftest.err >&5 | |
a848cd7e SC |
20835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20836 | (exit $ac_status); } && | |
6ebeb4c7 | 20837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20839 | (eval $ac_try) 2>&5 | |
20840 | ac_status=$? | |
20841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20842 | (exit $ac_status); }; } && | |
20843 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20845 | (eval $ac_try) 2>&5 | |
20846 | ac_status=$? | |
20847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20848 | (exit $ac_status); }; }; then | |
20849 | ac_cv_c_bigendian=yes | |
20850 | else | |
20851 | echo "$as_me: failed program was:" >&5 | |
20852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20853 | ||
20854 | ac_cv_c_bigendian=no | |
20855 | fi | |
ac1cb8d3 | 20856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20857 | else |
20858 | echo "$as_me: failed program was:" >&5 | |
20859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20860 | ||
20861 | fi | |
ac1cb8d3 | 20862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20863 | if test $ac_cv_c_bigendian = unknown; then |
20864 | if test "$cross_compiling" = yes; then | |
20865 | ac_cv_c_bigendian=unknown | |
20866 | else | |
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 | main () { | |
20874 | /* Are we little or big endian? From Harbison&Steele. */ | |
20875 | union | |
20876 | { | |
20877 | long l; | |
20878 | char c[sizeof (long)]; | |
20879 | } u; | |
20880 | u.l = 1; | |
20881 | exit (u.c[sizeof (long) - 1] == 1); | |
20882 | } | |
20883 | _ACEOF | |
20884 | rm -f conftest$ac_exeext | |
20885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20886 | (eval $ac_link) 2>&5 | |
20887 | ac_status=$? | |
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20891 | (eval $ac_try) 2>&5 | |
20892 | ac_status=$? | |
20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20894 | (exit $ac_status); }; }; then | |
20895 | ac_cv_c_bigendian=no | |
20896 | else | |
20897 | echo "$as_me: program exited with status $ac_status" >&5 | |
20898 | echo "$as_me: failed program was:" >&5 | |
20899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20900 | ||
20901 | ( exit $ac_status ) | |
20902 | ac_cv_c_bigendian=yes | |
20903 | fi | |
ac1cb8d3 | 20904 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20905 | fi |
20906 | fi | |
20907 | fi | |
20908 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20909 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20910 | if test $ac_cv_c_bigendian = unknown; then | |
20911 | { 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 | |
20912 | 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;} | |
20913 | fi | |
20914 | if test $ac_cv_c_bigendian = yes; then | |
20915 | cat >>confdefs.h <<\_ACEOF | |
20916 | #define WORDS_BIGENDIAN 1 | |
20917 | _ACEOF | |
20918 | ||
20919 | fi | |
20920 | ||
20921 | ||
20922 | ac_ext=cc | |
20923 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20924 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20925 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20926 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20927 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20928 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20929 | if test -z "$CXXCPP"; then | |
20930 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20932 | else | |
20933 | # Double quotes because CXXCPP needs to be expanded | |
20934 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20935 | do | |
20936 | ac_preproc_ok=false | |
20937 | for ac_cxx_preproc_warn_flag in '' yes | |
20938 | do | |
20939 | # Use a header file that comes with gcc, so configuring glibc | |
20940 | # with a fresh cross-compiler works. | |
20941 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20942 | # <limits.h> exists even on freestanding compilers. | |
20943 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20944 | # not just through cpp. "Syntax error" is here to catch this case. | |
20945 | cat >conftest.$ac_ext <<_ACEOF | |
20946 | /* confdefs.h. */ | |
20947 | _ACEOF | |
20948 | cat confdefs.h >>conftest.$ac_ext | |
20949 | cat >>conftest.$ac_ext <<_ACEOF | |
20950 | /* end confdefs.h. */ | |
20951 | #ifdef __STDC__ | |
20952 | # include <limits.h> | |
20953 | #else | |
20954 | # include <assert.h> | |
20955 | #endif | |
ac1cb8d3 | 20956 | Syntax error |
a848cd7e SC |
20957 | _ACEOF |
20958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20960 | ac_status=$? | |
20961 | grep -v '^ *+' conftest.er1 >conftest.err | |
20962 | rm -f conftest.er1 | |
20963 | cat conftest.err >&5 | |
20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 | (exit $ac_status); } >/dev/null; then | |
20966 | if test -s conftest.err; then | |
20967 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20968 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20969 | else |
20970 | ac_cpp_err= | |
20971 | fi | |
20972 | else | |
20973 | ac_cpp_err=yes | |
20974 | fi | |
20975 | if test -z "$ac_cpp_err"; then | |
20976 | : | |
20977 | else | |
20978 | echo "$as_me: failed program was:" >&5 | |
20979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20980 | ||
20981 | # Broken: fails on valid input. | |
20982 | continue | |
20983 | fi | |
20984 | rm -f conftest.err conftest.$ac_ext | |
20985 | ||
20986 | # OK, works on sane cases. Now check whether non-existent headers | |
20987 | # can be detected and how. | |
20988 | cat >conftest.$ac_ext <<_ACEOF | |
20989 | /* confdefs.h. */ | |
20990 | _ACEOF | |
20991 | cat confdefs.h >>conftest.$ac_ext | |
20992 | cat >>conftest.$ac_ext <<_ACEOF | |
20993 | /* end confdefs.h. */ | |
20994 | #include <ac_nonexistent.h> | |
20995 | _ACEOF | |
20996 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20997 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20998 | ac_status=$? | |
20999 | grep -v '^ *+' conftest.er1 >conftest.err | |
21000 | rm -f conftest.er1 | |
21001 | cat conftest.err >&5 | |
21002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21003 | (exit $ac_status); } >/dev/null; then | |
21004 | if test -s conftest.err; then | |
21005 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21006 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21007 | else |
21008 | ac_cpp_err= | |
21009 | fi | |
21010 | else | |
21011 | ac_cpp_err=yes | |
21012 | fi | |
21013 | if test -z "$ac_cpp_err"; then | |
21014 | # Broken: success on invalid input. | |
21015 | continue | |
21016 | else | |
21017 | echo "$as_me: failed program was:" >&5 | |
21018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21019 | ||
21020 | # Passes both tests. | |
21021 | ac_preproc_ok=: | |
21022 | break | |
21023 | fi | |
21024 | rm -f conftest.err conftest.$ac_ext | |
21025 | ||
21026 | done | |
21027 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21028 | rm -f conftest.err conftest.$ac_ext | |
21029 | if $ac_preproc_ok; then | |
21030 | break | |
21031 | fi | |
21032 | ||
21033 | done | |
21034 | ac_cv_prog_CXXCPP=$CXXCPP | |
21035 | ||
21036 | fi | |
21037 | CXXCPP=$ac_cv_prog_CXXCPP | |
21038 | else | |
21039 | ac_cv_prog_CXXCPP=$CXXCPP | |
21040 | fi | |
21041 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21042 | echo "${ECHO_T}$CXXCPP" >&6 | |
21043 | ac_preproc_ok=false | |
21044 | for ac_cxx_preproc_warn_flag in '' yes | |
21045 | do | |
21046 | # Use a header file that comes with gcc, so configuring glibc | |
21047 | # with a fresh cross-compiler works. | |
21048 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21049 | # <limits.h> exists even on freestanding compilers. | |
21050 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21051 | # not just through cpp. "Syntax error" is here to catch this case. | |
21052 | cat >conftest.$ac_ext <<_ACEOF | |
21053 | /* confdefs.h. */ | |
21054 | _ACEOF | |
21055 | cat confdefs.h >>conftest.$ac_ext | |
21056 | cat >>conftest.$ac_ext <<_ACEOF | |
21057 | /* end confdefs.h. */ | |
21058 | #ifdef __STDC__ | |
21059 | # include <limits.h> | |
21060 | #else | |
21061 | # include <assert.h> | |
21062 | #endif | |
ac1cb8d3 | 21063 | Syntax error |
a848cd7e SC |
21064 | _ACEOF |
21065 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21066 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21067 | ac_status=$? | |
21068 | grep -v '^ *+' conftest.er1 >conftest.err | |
21069 | rm -f conftest.er1 | |
21070 | cat conftest.err >&5 | |
21071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21072 | (exit $ac_status); } >/dev/null; then | |
21073 | if test -s conftest.err; then | |
21074 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21075 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21076 | else |
21077 | ac_cpp_err= | |
21078 | fi | |
21079 | else | |
21080 | ac_cpp_err=yes | |
21081 | fi | |
21082 | if test -z "$ac_cpp_err"; then | |
21083 | : | |
21084 | else | |
21085 | echo "$as_me: failed program was:" >&5 | |
21086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21087 | ||
21088 | # Broken: fails on valid input. | |
21089 | continue | |
21090 | fi | |
21091 | rm -f conftest.err conftest.$ac_ext | |
21092 | ||
21093 | # OK, works on sane cases. Now check whether non-existent headers | |
21094 | # can be detected and how. | |
21095 | cat >conftest.$ac_ext <<_ACEOF | |
21096 | /* confdefs.h. */ | |
21097 | _ACEOF | |
21098 | cat confdefs.h >>conftest.$ac_ext | |
21099 | cat >>conftest.$ac_ext <<_ACEOF | |
21100 | /* end confdefs.h. */ | |
21101 | #include <ac_nonexistent.h> | |
21102 | _ACEOF | |
21103 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21104 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21105 | ac_status=$? | |
21106 | grep -v '^ *+' conftest.er1 >conftest.err | |
21107 | rm -f conftest.er1 | |
21108 | cat conftest.err >&5 | |
21109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21110 | (exit $ac_status); } >/dev/null; then | |
21111 | if test -s conftest.err; then | |
21112 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21113 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21114 | else |
21115 | ac_cpp_err= | |
21116 | fi | |
21117 | else | |
21118 | ac_cpp_err=yes | |
21119 | fi | |
21120 | if test -z "$ac_cpp_err"; then | |
21121 | # Broken: success on invalid input. | |
21122 | continue | |
21123 | else | |
21124 | echo "$as_me: failed program was:" >&5 | |
21125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21126 | ||
21127 | # Passes both tests. | |
21128 | ac_preproc_ok=: | |
21129 | break | |
21130 | fi | |
21131 | rm -f conftest.err conftest.$ac_ext | |
21132 | ||
21133 | done | |
21134 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21135 | rm -f conftest.err conftest.$ac_ext | |
21136 | if $ac_preproc_ok; then | |
21137 | : | |
21138 | else | |
21139 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21140 | See \`config.log' for more details." >&5 | |
21141 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21142 | See \`config.log' for more details." >&2;} | |
21143 | { (exit 1); exit 1; }; } | |
21144 | fi | |
21145 | ||
21146 | ac_ext=cc | |
21147 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21151 | ||
21152 | ||
21153 | ||
21154 | ||
21155 | ||
21156 | ac_ext=cc | |
21157 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21158 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21159 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21160 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21161 | ||
21162 | ||
21163 | ||
21164 | for ac_header in iostream | |
21165 | do | |
21166 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21168 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21169 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21172 | fi | |
21173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21175 | else | |
21176 | # Is the header compilable? | |
21177 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21178 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21179 | cat >conftest.$ac_ext <<_ACEOF | |
21180 | /* confdefs.h. */ | |
21181 | _ACEOF | |
21182 | cat confdefs.h >>conftest.$ac_ext | |
21183 | cat >>conftest.$ac_ext <<_ACEOF | |
21184 | /* end confdefs.h. */ | |
21185 | $ac_includes_default | |
21186 | #include <$ac_header> | |
21187 | _ACEOF | |
21188 | rm -f conftest.$ac_objext | |
21189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21191 | ac_status=$? |
ac1cb8d3 VS |
21192 | grep -v '^ *+' conftest.er1 >conftest.err |
21193 | rm -f conftest.er1 | |
21194 | cat conftest.err >&5 | |
a848cd7e SC |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21196 | (exit $ac_status); } && | |
6ebeb4c7 | 21197 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21199 | (eval $ac_try) 2>&5 | |
21200 | ac_status=$? | |
21201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21202 | (exit $ac_status); }; } && | |
21203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21205 | (eval $ac_try) 2>&5 | |
21206 | ac_status=$? | |
21207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21208 | (exit $ac_status); }; }; then | |
21209 | ac_header_compiler=yes | |
21210 | else | |
21211 | echo "$as_me: failed program was:" >&5 | |
21212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21213 | ||
21214 | ac_header_compiler=no | |
21215 | fi | |
ac1cb8d3 | 21216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21217 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21218 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21219 | ||
21220 | # Is the header present? | |
21221 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21222 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21223 | cat >conftest.$ac_ext <<_ACEOF | |
21224 | /* confdefs.h. */ | |
21225 | _ACEOF | |
21226 | cat confdefs.h >>conftest.$ac_ext | |
21227 | cat >>conftest.$ac_ext <<_ACEOF | |
21228 | /* end confdefs.h. */ | |
21229 | #include <$ac_header> | |
21230 | _ACEOF | |
21231 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21232 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21233 | ac_status=$? | |
21234 | grep -v '^ *+' conftest.er1 >conftest.err | |
21235 | rm -f conftest.er1 | |
21236 | cat conftest.err >&5 | |
21237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21238 | (exit $ac_status); } >/dev/null; then | |
21239 | if test -s conftest.err; then | |
21240 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21241 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21242 | else |
21243 | ac_cpp_err= | |
21244 | fi | |
21245 | else | |
21246 | ac_cpp_err=yes | |
21247 | fi | |
21248 | if test -z "$ac_cpp_err"; then | |
21249 | ac_header_preproc=yes | |
21250 | else | |
21251 | echo "$as_me: failed program was:" >&5 | |
21252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21253 | ||
21254 | ac_header_preproc=no | |
21255 | fi | |
21256 | rm -f conftest.err conftest.$ac_ext | |
21257 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21258 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21259 | ||
21260 | # So? What about this header? | |
ac1cb8d3 VS |
21261 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21262 | yes:no: ) | |
a848cd7e SC |
21263 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21264 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21265 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21266 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21267 | ac_header_preproc=yes | |
a848cd7e | 21268 | ;; |
ac1cb8d3 | 21269 | no:yes:* ) |
a848cd7e SC |
21270 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21271 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21272 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21273 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21274 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21275 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21276 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21277 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21279 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21280 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21281 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21282 | ( |
21283 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21284 | ## ----------------------------------------- ## |
21285 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21286 | ## ----------------------------------------- ## | |
a848cd7e SC |
21287 | _ASBOX |
21288 | ) | | |
21289 | sed "s/^/$as_me: WARNING: /" >&2 | |
21290 | ;; | |
21291 | esac | |
21292 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21296 | else | |
ac1cb8d3 | 21297 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
21298 | fi |
21299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21300 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21301 | ||
21302 | fi | |
21303 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21304 | cat >>confdefs.h <<_ACEOF | |
21305 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21306 | _ACEOF | |
21307 | ||
21308 | fi | |
21309 | ||
21310 | done | |
21311 | ||
21312 | ||
21313 | if test "$ac_cv_header_iostream" = "yes" ; then | |
21314 | : | |
21315 | else | |
21316 | cat >>confdefs.h <<\_ACEOF | |
21317 | #define wxUSE_IOSTREAMH 1 | |
21318 | _ACEOF | |
21319 | ||
21320 | fi | |
21321 | ||
21322 | ac_ext=c | |
21323 | ac_cpp='$CPP $CPPFLAGS' | |
21324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21327 | ||
21328 | ||
21329 | ||
21330 | ||
21331 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
21332 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
21333 | if test "${wx_cv_cpp_bool+set}" = set; then | |
21334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21335 | else | |
21336 | ||
21337 | ||
21338 | ||
21339 | ac_ext=cc | |
21340 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21341 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21342 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21343 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21344 | ||
21345 | ||
21346 | cat >conftest.$ac_ext <<_ACEOF | |
21347 | /* confdefs.h. */ | |
21348 | _ACEOF | |
21349 | cat confdefs.h >>conftest.$ac_ext | |
21350 | cat >>conftest.$ac_ext <<_ACEOF | |
21351 | /* end confdefs.h. */ | |
21352 | ||
21353 | ||
21354 | int | |
21355 | main () | |
21356 | { | |
21357 | ||
21358 | bool b = true; | |
21359 | ||
21360 | return 0; | |
21361 | ||
21362 | ; | |
21363 | return 0; | |
21364 | } | |
21365 | _ACEOF | |
21366 | rm -f conftest.$ac_objext | |
21367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21368 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21369 | ac_status=$? |
ac1cb8d3 VS |
21370 | grep -v '^ *+' conftest.er1 >conftest.err |
21371 | rm -f conftest.er1 | |
21372 | cat conftest.err >&5 | |
a848cd7e SC |
21373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21374 | (exit $ac_status); } && | |
6ebeb4c7 | 21375 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21377 | (eval $ac_try) 2>&5 | |
21378 | ac_status=$? | |
21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21380 | (exit $ac_status); }; } && | |
21381 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21383 | (eval $ac_try) 2>&5 | |
21384 | ac_status=$? | |
21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21386 | (exit $ac_status); }; }; then | |
21387 | ||
21388 | wx_cv_cpp_bool=yes | |
21389 | ||
21390 | else | |
21391 | echo "$as_me: failed program was:" >&5 | |
21392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21393 | ||
21394 | ||
21395 | wx_cv_cpp_bool=no | |
21396 | ||
21397 | ||
21398 | fi | |
ac1cb8d3 | 21399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21400 | |
21401 | ac_ext=c | |
21402 | ac_cpp='$CPP $CPPFLAGS' | |
21403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21406 | ||
21407 | ||
21408 | fi | |
21409 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
21410 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21411 | ||
21412 | if test "$wx_cv_cpp_bool" = "yes"; then | |
21413 | cat >>confdefs.h <<\_ACEOF | |
21414 | #define HAVE_BOOL 1 | |
21415 | _ACEOF | |
21416 | ||
21417 | fi | |
21418 | ||
21419 | ||
21420 | ||
21421 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
21422 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
21423 | if test "${wx_cv_explicit+set}" = set; then | |
21424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21425 | else | |
21426 | ||
21427 | ||
21428 | ||
21429 | ac_ext=cc | |
21430 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21431 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21432 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21433 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21434 | ||
21435 | ||
21436 | cat >conftest.$ac_ext <<_ACEOF | |
21437 | /* confdefs.h. */ | |
21438 | _ACEOF | |
21439 | cat confdefs.h >>conftest.$ac_ext | |
21440 | cat >>conftest.$ac_ext <<_ACEOF | |
21441 | /* end confdefs.h. */ | |
21442 | ||
21443 | class Foo { public: explicit Foo(int) {} }; | |
21444 | ||
21445 | int | |
21446 | main () | |
21447 | { | |
21448 | ||
21449 | return 0; | |
21450 | ||
21451 | ; | |
21452 | return 0; | |
21453 | } | |
21454 | _ACEOF | |
21455 | rm -f conftest.$ac_objext | |
21456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21457 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21458 | ac_status=$? |
ac1cb8d3 VS |
21459 | grep -v '^ *+' conftest.er1 >conftest.err |
21460 | rm -f conftest.er1 | |
21461 | cat conftest.err >&5 | |
a848cd7e SC |
21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21463 | (exit $ac_status); } && | |
6ebeb4c7 | 21464 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21466 | (eval $ac_try) 2>&5 | |
21467 | ac_status=$? | |
21468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21469 | (exit $ac_status); }; } && | |
21470 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21472 | (eval $ac_try) 2>&5 | |
21473 | ac_status=$? | |
21474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21475 | (exit $ac_status); }; }; then | |
21476 | ||
21477 | cat >conftest.$ac_ext <<_ACEOF | |
21478 | /* confdefs.h. */ | |
21479 | _ACEOF | |
21480 | cat confdefs.h >>conftest.$ac_ext | |
21481 | cat >>conftest.$ac_ext <<_ACEOF | |
21482 | /* end confdefs.h. */ | |
21483 | ||
21484 | class Foo { public: explicit Foo(int) {} }; | |
21485 | static void TakeFoo(const Foo& foo) { } | |
21486 | ||
21487 | int | |
21488 | main () | |
21489 | { | |
21490 | ||
21491 | TakeFoo(17); | |
21492 | return 0; | |
21493 | ||
21494 | ; | |
21495 | return 0; | |
21496 | } | |
21497 | _ACEOF | |
21498 | rm -f conftest.$ac_objext | |
21499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21500 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21501 | ac_status=$? |
ac1cb8d3 VS |
21502 | grep -v '^ *+' conftest.er1 >conftest.err |
21503 | rm -f conftest.er1 | |
21504 | cat conftest.err >&5 | |
a848cd7e SC |
21505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21506 | (exit $ac_status); } && | |
6ebeb4c7 | 21507 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21509 | (eval $ac_try) 2>&5 | |
21510 | ac_status=$? | |
21511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21512 | (exit $ac_status); }; } && | |
21513 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21515 | (eval $ac_try) 2>&5 | |
21516 | ac_status=$? | |
21517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21518 | (exit $ac_status); }; }; then | |
21519 | wx_cv_explicit=no | |
21520 | else | |
21521 | echo "$as_me: failed program was:" >&5 | |
21522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21523 | ||
21524 | wx_cv_explicit=yes | |
21525 | ||
21526 | fi | |
ac1cb8d3 | 21527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21528 | |
21529 | else | |
21530 | echo "$as_me: failed program was:" >&5 | |
21531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21532 | ||
21533 | wx_cv_explicit=no | |
21534 | ||
21535 | fi | |
ac1cb8d3 | 21536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21537 | |
21538 | ac_ext=c | |
21539 | ac_cpp='$CPP $CPPFLAGS' | |
21540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21543 | ||
21544 | ||
21545 | fi | |
21546 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
21547 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
21548 | ||
21549 | if test "$wx_cv_explicit" = "yes"; then | |
21550 | cat >>confdefs.h <<\_ACEOF | |
21551 | #define HAVE_EXPLICIT 1 | |
21552 | _ACEOF | |
21553 | ||
21554 | fi | |
21555 | ||
21556 | ||
21557 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
21558 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
21559 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
21560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21561 | else | |
21562 | ||
21563 | ||
21564 | ac_ext=cc | |
21565 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21566 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21567 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21568 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21569 | ||
21570 | cat >conftest.$ac_ext <<_ACEOF | |
21571 | /* confdefs.h. */ | |
21572 | _ACEOF | |
21573 | cat confdefs.h >>conftest.$ac_ext | |
21574 | cat >>conftest.$ac_ext <<_ACEOF | |
21575 | /* end confdefs.h. */ | |
21576 | ||
21577 | int | |
21578 | main () | |
21579 | { | |
21580 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
21581 | ; | |
21582 | return 0; | |
21583 | } | |
21584 | _ACEOF | |
21585 | rm -f conftest.$ac_objext | |
21586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21588 | ac_status=$? |
ac1cb8d3 VS |
21589 | grep -v '^ *+' conftest.er1 >conftest.err |
21590 | rm -f conftest.er1 | |
21591 | cat conftest.err >&5 | |
a848cd7e SC |
21592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21593 | (exit $ac_status); } && | |
6ebeb4c7 | 21594 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21596 | (eval $ac_try) 2>&5 | |
21597 | ac_status=$? | |
21598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21599 | (exit $ac_status); }; } && | |
21600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21602 | (eval $ac_try) 2>&5 | |
21603 | ac_status=$? | |
21604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21605 | (exit $ac_status); }; }; then | |
21606 | ac_cv_cxx_const_cast=yes | |
21607 | else | |
21608 | echo "$as_me: failed program was:" >&5 | |
21609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21610 | ||
21611 | ac_cv_cxx_const_cast=no | |
21612 | fi | |
ac1cb8d3 | 21613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21614 | ac_ext=c |
21615 | ac_cpp='$CPP $CPPFLAGS' | |
21616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21619 | ||
21620 | ||
21621 | fi | |
21622 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21623 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21624 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21625 | ||
21626 | cat >>confdefs.h <<\_ACEOF | |
21627 | #define HAVE_CONST_CAST | |
21628 | _ACEOF | |
21629 | ||
21630 | fi | |
21631 | ||
7714864e RL |
21632 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21633 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21634 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21636 | else | |
21637 | ||
21638 | ||
21639 | ac_ext=cc | |
21640 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21641 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21642 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21643 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21644 | ||
21645 | cat >conftest.$ac_ext <<_ACEOF | |
21646 | /* confdefs.h. */ | |
21647 | _ACEOF | |
21648 | cat confdefs.h >>conftest.$ac_ext | |
21649 | cat >>conftest.$ac_ext <<_ACEOF | |
21650 | /* end confdefs.h. */ | |
21651 | #include <typeinfo> | |
21652 | class Base { public : Base () {} virtual void f () = 0;}; | |
21653 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21654 | class Unrelated { public : Unrelated () {} }; | |
21655 | int g (Unrelated&) { return 0; } | |
21656 | int | |
21657 | main () | |
21658 | { | |
21659 | ||
21660 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21661 | ; | |
21662 | return 0; | |
21663 | } | |
21664 | _ACEOF | |
21665 | rm -f conftest.$ac_objext | |
21666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21667 | (eval $ac_compile) 2>conftest.er1 | |
21668 | ac_status=$? | |
21669 | grep -v '^ *+' conftest.er1 >conftest.err | |
21670 | rm -f conftest.er1 | |
21671 | cat conftest.err >&5 | |
21672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21673 | (exit $ac_status); } && | |
6ebeb4c7 | 21674 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
21675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21676 | (eval $ac_try) 2>&5 | |
21677 | ac_status=$? | |
21678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21679 | (exit $ac_status); }; } && | |
21680 | { ac_try='test -s conftest.$ac_objext' | |
21681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21682 | (eval $ac_try) 2>&5 | |
21683 | ac_status=$? | |
21684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21685 | (exit $ac_status); }; }; then | |
21686 | ac_cv_cxx_reinterpret_cast=yes | |
21687 | else | |
21688 | echo "$as_me: failed program was:" >&5 | |
21689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21690 | ||
21691 | ac_cv_cxx_reinterpret_cast=no | |
21692 | fi | |
21693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21694 | ac_ext=c | |
21695 | ac_cpp='$CPP $CPPFLAGS' | |
21696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21699 | ||
21700 | ||
21701 | fi | |
21702 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21703 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21704 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21705 | ||
21706 | cat >>confdefs.h <<\_ACEOF | |
21707 | #define HAVE_REINTERPRET_CAST | |
21708 | _ACEOF | |
21709 | ||
21710 | fi | |
21711 | ||
a848cd7e SC |
21712 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21713 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21714 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21716 | else | |
21717 | ||
21718 | ||
21719 | ac_ext=cc | |
21720 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21721 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21722 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21723 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21724 | ||
21725 | cat >conftest.$ac_ext <<_ACEOF | |
21726 | /* confdefs.h. */ | |
21727 | _ACEOF | |
21728 | cat confdefs.h >>conftest.$ac_ext | |
21729 | cat >>conftest.$ac_ext <<_ACEOF | |
21730 | /* end confdefs.h. */ | |
21731 | #include <typeinfo> | |
21732 | class Base { public : Base () {} virtual void f () = 0; }; | |
21733 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21734 | int g (Derived&) { return 0; } | |
21735 | int | |
21736 | main () | |
21737 | { | |
21738 | ||
21739 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21740 | ; | |
21741 | return 0; | |
21742 | } | |
21743 | _ACEOF | |
21744 | rm -f conftest.$ac_objext | |
21745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21746 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21747 | ac_status=$? |
ac1cb8d3 VS |
21748 | grep -v '^ *+' conftest.er1 >conftest.err |
21749 | rm -f conftest.er1 | |
21750 | cat conftest.err >&5 | |
a848cd7e SC |
21751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21752 | (exit $ac_status); } && | |
6ebeb4c7 | 21753 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21755 | (eval $ac_try) 2>&5 | |
21756 | ac_status=$? | |
21757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21758 | (exit $ac_status); }; } && | |
21759 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21761 | (eval $ac_try) 2>&5 | |
21762 | ac_status=$? | |
21763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21764 | (exit $ac_status); }; }; then | |
21765 | ac_cv_cxx_static_cast=yes | |
21766 | else | |
21767 | echo "$as_me: failed program was:" >&5 | |
21768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21769 | ||
21770 | ac_cv_cxx_static_cast=no | |
21771 | fi | |
ac1cb8d3 | 21772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21773 | ac_ext=c |
21774 | ac_cpp='$CPP $CPPFLAGS' | |
21775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21778 | ||
21779 | ||
21780 | fi | |
21781 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21782 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21783 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21784 | ||
21785 | cat >>confdefs.h <<\_ACEOF | |
21786 | #define HAVE_STATIC_CAST | |
21787 | _ACEOF | |
21788 | ||
21789 | fi | |
21790 | ||
21791 | ||
3c28b7cb MW |
21792 | if test "x$SUNCXX" = xyes; then |
21793 | CXXFLAGS="$CXXFLAGS -features=tmplife" | |
21794 | fi | |
21795 | ||
9122d155 VZ |
21796 | if test "x$SUNCC" = xyes; then |
21797 | CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN" | |
21798 | fi | |
21799 | ||
0ad5d837 VZ |
21800 | if test "x$SGICC" = "xyes"; then |
21801 | CFLAGS="$CFLAGS -woff 3970" | |
21802 | fi | |
21803 | if test "x$SGICXX" = "xyes"; then | |
21804 | CXXFLAGS="$CXXFLAGS -woff 3970" | |
21805 | fi | |
21806 | ||
f56c22b4 | 21807 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
21808 | ac_ext=cc |
21809 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21810 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21811 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21812 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21813 | ||
21814 | ||
f56c22b4 MW |
21815 | if test "$wxUSE_UNICODE" = "yes"; then |
21816 | std_string="std::wstring" | |
21817 | char_type="wchar_t" | |
21818 | else | |
21819 | std_string="std::string" | |
21820 | char_type="char" | |
21821 | fi | |
21822 | ||
21823 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
21824 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21825 | cat >conftest.$ac_ext <<_ACEOF |
21826 | /* confdefs.h. */ | |
21827 | _ACEOF | |
21828 | cat confdefs.h >>conftest.$ac_ext | |
21829 | cat >>conftest.$ac_ext <<_ACEOF | |
21830 | /* end confdefs.h. */ | |
21831 | #include <string> | |
a848cd7e SC |
21832 | int |
21833 | main () | |
21834 | { | |
f56c22b4 | 21835 | $std_string foo; |
a848cd7e SC |
21836 | ; |
21837 | return 0; | |
21838 | } | |
21839 | _ACEOF | |
21840 | rm -f conftest.$ac_objext | |
21841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21842 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21843 | ac_status=$? |
ac1cb8d3 VS |
21844 | grep -v '^ *+' conftest.er1 >conftest.err |
21845 | rm -f conftest.er1 | |
21846 | cat conftest.err >&5 | |
a848cd7e SC |
21847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21848 | (exit $ac_status); } && | |
6ebeb4c7 | 21849 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21851 | (eval $ac_try) 2>&5 | |
21852 | ac_status=$? | |
21853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21854 | (exit $ac_status); }; } && | |
21855 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21857 | (eval $ac_try) 2>&5 | |
21858 | ac_status=$? | |
21859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21860 | (exit $ac_status); }; }; then | |
21861 | echo "$as_me:$LINENO: result: yes" >&5 | |
21862 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21863 | cat >>confdefs.h <<\_ACEOF |
21864 | #define HAVE_STD_WSTRING 1 | |
21865 | _ACEOF | |
21866 | ||
a848cd7e SC |
21867 | else |
21868 | echo "$as_me: failed program was:" >&5 | |
21869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21870 | ||
21871 | echo "$as_me:$LINENO: result: no" >&5 | |
21872 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
21873 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
21874 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
21875 | cat >conftest.$ac_ext <<_ACEOF |
21876 | /* confdefs.h. */ | |
21877 | _ACEOF | |
21878 | cat confdefs.h >>conftest.$ac_ext | |
21879 | cat >>conftest.$ac_ext <<_ACEOF | |
21880 | /* end confdefs.h. */ | |
21881 | ||
21882 | #ifdef HAVE_WCHAR_H | |
21883 | # ifdef __CYGWIN__ | |
21884 | # include <stddef.h> | |
21885 | # endif | |
21886 | # include <wchar.h> | |
21887 | #endif | |
21888 | #ifdef HAVE_STDLIB_H | |
21889 | # include <stdlib.h> | |
21890 | #endif | |
21891 | #include <stdio.h> | |
21892 | #include <string> | |
21893 | ||
21894 | int | |
21895 | main () | |
21896 | { | |
f56c22b4 MW |
21897 | std::basic_string<$char_type> foo; |
21898 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
21899 | ; |
21900 | return 0; | |
21901 | } | |
21902 | _ACEOF | |
21903 | rm -f conftest.$ac_objext | |
21904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21905 | (eval $ac_compile) 2>conftest.er1 | |
21906 | ac_status=$? | |
21907 | grep -v '^ *+' conftest.er1 >conftest.err | |
21908 | rm -f conftest.er1 | |
21909 | cat conftest.err >&5 | |
21910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21911 | (exit $ac_status); } && | |
6ebeb4c7 | 21912 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
21913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21914 | (eval $ac_try) 2>&5 | |
21915 | ac_status=$? | |
21916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21917 | (exit $ac_status); }; } && | |
21918 | { ac_try='test -s conftest.$ac_objext' | |
21919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21920 | (eval $ac_try) 2>&5 | |
21921 | ac_status=$? | |
21922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21923 | (exit $ac_status); }; }; then | |
21924 | echo "$as_me:$LINENO: result: yes" >&5 | |
21925 | echo "${ECHO_T}yes" >&6 | |
21926 | else | |
21927 | echo "$as_me: failed program was:" >&5 | |
21928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21929 | ||
21930 | echo "$as_me:$LINENO: result: no" >&5 | |
21931 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 21932 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
21933 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
21934 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
21935 | { (exit 1); exit 1; }; } | |
21936 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
21937 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
21938 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 21939 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
21940 | else |
21941 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
21942 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
21943 | wxUSE_STD_STRING=no | |
21944 | fi | |
21945 | ||
0a08f02a | 21946 | |
a848cd7e | 21947 | fi |
ac1cb8d3 | 21948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21949 | |
0a08f02a MB |
21950 | fi |
21951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21952 | ||
21953 | ac_ext=c | |
21954 | ac_cpp='$CPP $CPPFLAGS' | |
21955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
21957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21958 | ||
21959 | fi | |
21960 | ||
21961 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
21962 | ac_ext=cc | |
21963 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21964 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21965 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21966 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21967 | ||
21968 | ||
21969 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
21970 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
21971 | if test "${ac_cv_type_std__istream+set}" = set; then | |
21972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21973 | else | |
21974 | cat >conftest.$ac_ext <<_ACEOF | |
21975 | /* confdefs.h. */ | |
21976 | _ACEOF | |
21977 | cat confdefs.h >>conftest.$ac_ext | |
21978 | cat >>conftest.$ac_ext <<_ACEOF | |
21979 | /* end confdefs.h. */ | |
21980 | #include <iostream> | |
21981 | ||
21982 | int | |
21983 | main () | |
21984 | { | |
21985 | if ((std::istream *) 0) | |
21986 | return 0; | |
21987 | if (sizeof (std::istream)) | |
21988 | return 0; | |
21989 | ; | |
21990 | return 0; | |
21991 | } | |
21992 | _ACEOF | |
21993 | rm -f conftest.$ac_objext | |
21994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21995 | (eval $ac_compile) 2>conftest.er1 | |
21996 | ac_status=$? | |
21997 | grep -v '^ *+' conftest.er1 >conftest.err | |
21998 | rm -f conftest.er1 | |
21999 | cat conftest.err >&5 | |
22000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22001 | (exit $ac_status); } && | |
6ebeb4c7 | 22002 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22004 | (eval $ac_try) 2>&5 | |
22005 | ac_status=$? | |
22006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22007 | (exit $ac_status); }; } && | |
22008 | { ac_try='test -s conftest.$ac_objext' | |
22009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22010 | (eval $ac_try) 2>&5 | |
22011 | ac_status=$? | |
22012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22013 | (exit $ac_status); }; }; then | |
22014 | ac_cv_type_std__istream=yes | |
22015 | else | |
22016 | echo "$as_me: failed program was:" >&5 | |
22017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22018 | ||
22019 | ac_cv_type_std__istream=no | |
22020 | fi | |
22021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22022 | fi | |
22023 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22024 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22025 | if test $ac_cv_type_std__istream = yes; then | |
22026 | ||
22027 | cat >>confdefs.h <<_ACEOF | |
22028 | #define HAVE_STD__ISTREAM 1 | |
22029 | _ACEOF | |
22030 | ||
22031 | ||
22032 | else | |
22033 | wxUSE_STD_IOSTREAM=no | |
22034 | fi | |
22035 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22036 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22037 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22039 | else | |
22040 | cat >conftest.$ac_ext <<_ACEOF | |
22041 | /* confdefs.h. */ | |
22042 | _ACEOF | |
22043 | cat confdefs.h >>conftest.$ac_ext | |
22044 | cat >>conftest.$ac_ext <<_ACEOF | |
22045 | /* end confdefs.h. */ | |
22046 | #include <iostream> | |
22047 | ||
22048 | int | |
22049 | main () | |
22050 | { | |
22051 | if ((std::ostream *) 0) | |
22052 | return 0; | |
22053 | if (sizeof (std::ostream)) | |
22054 | return 0; | |
22055 | ; | |
22056 | return 0; | |
22057 | } | |
22058 | _ACEOF | |
22059 | rm -f conftest.$ac_objext | |
22060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22061 | (eval $ac_compile) 2>conftest.er1 | |
22062 | ac_status=$? | |
22063 | grep -v '^ *+' conftest.er1 >conftest.err | |
22064 | rm -f conftest.er1 | |
22065 | cat conftest.err >&5 | |
22066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22067 | (exit $ac_status); } && | |
6ebeb4c7 | 22068 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22070 | (eval $ac_try) 2>&5 | |
22071 | ac_status=$? | |
22072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22073 | (exit $ac_status); }; } && | |
22074 | { ac_try='test -s conftest.$ac_objext' | |
22075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22076 | (eval $ac_try) 2>&5 | |
22077 | ac_status=$? | |
22078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22079 | (exit $ac_status); }; }; then | |
22080 | ac_cv_type_std__ostream=yes | |
22081 | else | |
22082 | echo "$as_me: failed program was:" >&5 | |
22083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22084 | ||
22085 | ac_cv_type_std__ostream=no | |
22086 | fi | |
22087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22088 | fi | |
22089 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
22090 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
22091 | if test $ac_cv_type_std__ostream = yes; then | |
22092 | ||
22093 | cat >>confdefs.h <<_ACEOF | |
22094 | #define HAVE_STD__OSTREAM 1 | |
22095 | _ACEOF | |
22096 | ||
22097 | ||
22098 | else | |
22099 | wxUSE_STD_IOSTREAM=no | |
22100 | fi | |
22101 | ||
22102 | ||
22103 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
22104 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
22105 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
22106 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
22107 | { (exit 1); exit 1; }; } | |
22108 | else | |
22109 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 22110 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 22111 | fi |
f56c22b4 MW |
22112 | fi |
22113 | ||
22114 | ac_ext=c | |
22115 | ac_cpp='$CPP $CPPFLAGS' | |
22116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
22118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22119 | ||
22120 | fi | |
22121 | ||
22122 | if test "$wxUSE_STL" = "yes"; then | |
22123 | ac_ext=cc | |
22124 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22125 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22126 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22127 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22128 | ||
22129 | ||
22130 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
22131 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
22132 | cat >conftest.$ac_ext <<_ACEOF |
22133 | /* confdefs.h. */ | |
22134 | _ACEOF | |
22135 | cat confdefs.h >>conftest.$ac_ext | |
22136 | cat >>conftest.$ac_ext <<_ACEOF | |
22137 | /* end confdefs.h. */ | |
22138 | #include <string> | |
0a08f02a MB |
22139 | #include <functional> |
22140 | #include <algorithm> | |
22141 | #include <vector> | |
22142 | #include <list> | |
a848cd7e SC |
22143 | int |
22144 | main () | |
22145 | { | |
0a08f02a MB |
22146 | std::vector<int> moo; |
22147 | std::list<int> foo; | |
22148 | std::vector<int>::iterator it = | |
22149 | std::find_if(moo.begin(), moo.end(), | |
22150 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
22151 | ; |
22152 | return 0; | |
22153 | } | |
22154 | _ACEOF | |
22155 | rm -f conftest.$ac_objext | |
22156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22157 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22158 | ac_status=$? |
ac1cb8d3 VS |
22159 | grep -v '^ *+' conftest.er1 >conftest.err |
22160 | rm -f conftest.er1 | |
22161 | cat conftest.err >&5 | |
a848cd7e SC |
22162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22163 | (exit $ac_status); } && | |
6ebeb4c7 | 22164 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22166 | (eval $ac_try) 2>&5 | |
22167 | ac_status=$? | |
22168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22169 | (exit $ac_status); }; } && | |
22170 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22172 | (eval $ac_try) 2>&5 | |
22173 | ac_status=$? | |
22174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22175 | (exit $ac_status); }; }; then | |
22176 | echo "$as_me:$LINENO: result: yes" >&5 | |
22177 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
22178 | else |
22179 | echo "$as_me: failed program was:" >&5 | |
22180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22181 | ||
22182 | echo "$as_me:$LINENO: result: no" >&5 | |
22183 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
22184 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
22185 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
22186 | { (exit 1); exit 1; }; } | |
a848cd7e | 22187 | fi |
ac1cb8d3 | 22188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22189 | |
22190 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
22191 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
22192 | cat >conftest.$ac_ext <<_ACEOF | |
22193 | /* confdefs.h. */ | |
22194 | _ACEOF | |
22195 | cat confdefs.h >>conftest.$ac_ext | |
22196 | cat >>conftest.$ac_ext <<_ACEOF | |
22197 | /* end confdefs.h. */ | |
22198 | #include <string> | |
22199 | int | |
22200 | main () | |
22201 | { | |
22202 | std::string foo, bar; | |
22203 | foo.compare(bar); | |
22204 | foo.compare(1, 1, bar); | |
22205 | foo.compare(1, 1, bar, 1, 1); | |
22206 | foo.compare(""); | |
22207 | foo.compare(1, 1, ""); | |
22208 | foo.compare(1, 1, "", 2); | |
22209 | ; | |
22210 | return 0; | |
22211 | } | |
22212 | _ACEOF | |
22213 | rm -f conftest.$ac_objext | |
22214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22215 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22216 | ac_status=$? |
ac1cb8d3 VS |
22217 | grep -v '^ *+' conftest.er1 >conftest.err |
22218 | rm -f conftest.er1 | |
22219 | cat conftest.err >&5 | |
a848cd7e SC |
22220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22221 | (exit $ac_status); } && | |
6ebeb4c7 | 22222 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22224 | (eval $ac_try) 2>&5 | |
22225 | ac_status=$? | |
22226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22227 | (exit $ac_status); }; } && | |
22228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22230 | (eval $ac_try) 2>&5 | |
22231 | ac_status=$? | |
22232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22233 | (exit $ac_status); }; }; then | |
22234 | echo "$as_me:$LINENO: result: yes" >&5 | |
22235 | echo "${ECHO_T}yes" >&6 | |
22236 | cat >>confdefs.h <<\_ACEOF | |
22237 | #define HAVE_STD_STRING_COMPARE 1 | |
22238 | _ACEOF | |
22239 | ||
22240 | else | |
22241 | echo "$as_me: failed program was:" >&5 | |
22242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22243 | ||
22244 | echo "$as_me:$LINENO: result: no" >&5 | |
22245 | echo "${ECHO_T}no" >&6 | |
22246 | fi | |
ac1cb8d3 | 22247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22248 | |
22249 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22250 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22251 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22252 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22254 | fi | |
22255 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22256 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22257 | else | |
22258 | # Is the header compilable? | |
22259 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
22260 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
22261 | cat >conftest.$ac_ext <<_ACEOF | |
22262 | /* confdefs.h. */ | |
22263 | _ACEOF | |
22264 | cat confdefs.h >>conftest.$ac_ext | |
22265 | cat >>conftest.$ac_ext <<_ACEOF | |
22266 | /* end confdefs.h. */ | |
22267 | $ac_includes_default | |
22268 | #include <hash_map> | |
22269 | _ACEOF | |
22270 | rm -f conftest.$ac_objext | |
22271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22272 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22273 | ac_status=$? |
ac1cb8d3 VS |
22274 | grep -v '^ *+' conftest.er1 >conftest.err |
22275 | rm -f conftest.er1 | |
22276 | cat conftest.err >&5 | |
bdcade0a MB |
22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22278 | (exit $ac_status); } && | |
6ebeb4c7 | 22279 | { ac_try='test -z "$ac_cxx_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_objext' | |
bdcade0a MB |
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 | ac_header_compiler=yes | |
22292 | else | |
22293 | echo "$as_me: failed program was:" >&5 | |
22294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22295 | ||
22296 | ac_header_compiler=no | |
22297 | fi | |
ac1cb8d3 | 22298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22299 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22300 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22301 | ||
22302 | # Is the header present? | |
22303 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
22304 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
22305 | cat >conftest.$ac_ext <<_ACEOF | |
22306 | /* confdefs.h. */ | |
22307 | _ACEOF | |
22308 | cat confdefs.h >>conftest.$ac_ext | |
22309 | cat >>conftest.$ac_ext <<_ACEOF | |
22310 | /* end confdefs.h. */ | |
22311 | #include <hash_map> | |
22312 | _ACEOF | |
22313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22315 | ac_status=$? | |
22316 | grep -v '^ *+' conftest.er1 >conftest.err | |
22317 | rm -f conftest.er1 | |
22318 | cat conftest.err >&5 | |
22319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22320 | (exit $ac_status); } >/dev/null; then | |
22321 | if test -s conftest.err; then | |
22322 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22323 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22324 | else |
22325 | ac_cpp_err= | |
22326 | fi | |
22327 | else | |
22328 | ac_cpp_err=yes | |
22329 | fi | |
22330 | if test -z "$ac_cpp_err"; then | |
22331 | ac_header_preproc=yes | |
22332 | else | |
22333 | echo "$as_me: failed program was:" >&5 | |
22334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22335 | ||
22336 | ac_header_preproc=no | |
22337 | fi | |
22338 | rm -f conftest.err conftest.$ac_ext | |
22339 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22340 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22341 | ||
22342 | # So? What about this header? | |
ac1cb8d3 VS |
22343 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22344 | yes:no: ) | |
bdcade0a MB |
22345 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22346 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22347 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
22348 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
22349 | ac_header_preproc=yes | |
bdcade0a | 22350 | ;; |
ac1cb8d3 | 22351 | no:yes:* ) |
bdcade0a MB |
22352 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
22353 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22354 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
22355 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
22356 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
22357 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
22358 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22359 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22360 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
22361 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22362 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
22363 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22364 | ( |
22365 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22366 | ## ----------------------------------------- ## |
22367 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22368 | ## ----------------------------------------- ## | |
bdcade0a MB |
22369 | _ASBOX |
22370 | ) | | |
22371 | sed "s/^/$as_me: WARNING: /" >&2 | |
22372 | ;; | |
22373 | esac | |
22374 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22375 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22376 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22378 | else | |
22379 | ac_cv_header_hash_map=$ac_header_preproc | |
22380 | fi | |
22381 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22382 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22383 | ||
22384 | fi | |
22385 | if test $ac_cv_header_hash_map = yes; then | |
22386 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22387 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22388 | cat >conftest.$ac_ext <<_ACEOF | |
22389 | /* confdefs.h. */ | |
22390 | _ACEOF | |
22391 | cat confdefs.h >>conftest.$ac_ext | |
22392 | cat >>conftest.$ac_ext <<_ACEOF | |
22393 | /* end confdefs.h. */ | |
22394 | #include <hash_map> | |
22395 | #include <hash_set> | |
22396 | int | |
22397 | main () | |
22398 | { | |
22399 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
22400 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
22401 | ; | |
22402 | return 0; | |
22403 | } | |
22404 | _ACEOF | |
22405 | rm -f conftest.$ac_objext | |
22406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22407 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22408 | ac_status=$? |
ac1cb8d3 VS |
22409 | grep -v '^ *+' conftest.er1 >conftest.err |
22410 | rm -f conftest.er1 | |
22411 | cat conftest.err >&5 | |
bdcade0a MB |
22412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22413 | (exit $ac_status); } && | |
6ebeb4c7 | 22414 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22416 | (eval $ac_try) 2>&5 | |
22417 | ac_status=$? | |
22418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22419 | (exit $ac_status); }; } && | |
22420 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22422 | (eval $ac_try) 2>&5 | |
22423 | ac_status=$? | |
22424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22425 | (exit $ac_status); }; }; then | |
22426 | echo "$as_me:$LINENO: result: yes" >&5 | |
22427 | echo "${ECHO_T}yes" >&6 | |
22428 | cat >>confdefs.h <<\_ACEOF | |
22429 | #define HAVE_HASH_MAP 1 | |
22430 | _ACEOF | |
22431 | ||
22432 | cat >>confdefs.h <<\_ACEOF | |
22433 | #define HAVE_STD_HASH_MAP 1 | |
22434 | _ACEOF | |
22435 | ||
22436 | else | |
22437 | echo "$as_me: failed program was:" >&5 | |
22438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22439 | ||
22440 | echo "$as_me:$LINENO: result: no" >&5 | |
22441 | echo "${ECHO_T}no" >&6 | |
22442 | fi | |
ac1cb8d3 | 22443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22444 | |
22445 | fi | |
22446 | ||
22447 | ||
22448 | ||
22449 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22450 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22451 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22452 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22454 | fi | |
22455 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22456 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22457 | else | |
22458 | # Is the header compilable? | |
22459 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
22460 | echo $ECHO_N "checking ext/hash_map usability... $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 | $ac_includes_default | |
22468 | #include <ext/hash_map> | |
22469 | _ACEOF | |
22470 | rm -f conftest.$ac_objext | |
22471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22472 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22473 | ac_status=$? |
ac1cb8d3 VS |
22474 | grep -v '^ *+' conftest.er1 >conftest.err |
22475 | rm -f conftest.er1 | |
22476 | cat conftest.err >&5 | |
bdcade0a MB |
22477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22478 | (exit $ac_status); } && | |
6ebeb4c7 | 22479 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22481 | (eval $ac_try) 2>&5 | |
22482 | ac_status=$? | |
22483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22484 | (exit $ac_status); }; } && | |
22485 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22487 | (eval $ac_try) 2>&5 | |
22488 | ac_status=$? | |
22489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22490 | (exit $ac_status); }; }; then | |
22491 | ac_header_compiler=yes | |
22492 | else | |
22493 | echo "$as_me: failed program was:" >&5 | |
22494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22495 | ||
22496 | ac_header_compiler=no | |
22497 | fi | |
ac1cb8d3 | 22498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22499 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22500 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22501 | ||
22502 | # Is the header present? | |
22503 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
22504 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
22505 | cat >conftest.$ac_ext <<_ACEOF | |
22506 | /* confdefs.h. */ | |
22507 | _ACEOF | |
22508 | cat confdefs.h >>conftest.$ac_ext | |
22509 | cat >>conftest.$ac_ext <<_ACEOF | |
22510 | /* end confdefs.h. */ | |
22511 | #include <ext/hash_map> | |
22512 | _ACEOF | |
22513 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22514 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22515 | ac_status=$? | |
22516 | grep -v '^ *+' conftest.er1 >conftest.err | |
22517 | rm -f conftest.er1 | |
22518 | cat conftest.err >&5 | |
22519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22520 | (exit $ac_status); } >/dev/null; then | |
22521 | if test -s conftest.err; then | |
22522 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22523 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22524 | else |
22525 | ac_cpp_err= | |
22526 | fi | |
22527 | else | |
22528 | ac_cpp_err=yes | |
22529 | fi | |
22530 | if test -z "$ac_cpp_err"; then | |
22531 | ac_header_preproc=yes | |
22532 | else | |
22533 | echo "$as_me: failed program was:" >&5 | |
22534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22535 | ||
22536 | ac_header_preproc=no | |
22537 | fi | |
22538 | rm -f conftest.err conftest.$ac_ext | |
22539 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22540 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22541 | ||
22542 | # So? What about this header? | |
ac1cb8d3 VS |
22543 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22544 | yes:no: ) | |
bdcade0a MB |
22545 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22546 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22547 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
22548 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
22549 | ac_header_preproc=yes | |
bdcade0a | 22550 | ;; |
ac1cb8d3 | 22551 | no:yes:* ) |
bdcade0a MB |
22552 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
22553 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22554 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
22555 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
22556 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
22557 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
22558 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22559 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22560 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
22561 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22562 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
22563 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22564 | ( |
22565 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22566 | ## ----------------------------------------- ## |
22567 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22568 | ## ----------------------------------------- ## | |
bdcade0a MB |
22569 | _ASBOX |
22570 | ) | | |
22571 | sed "s/^/$as_me: WARNING: /" >&2 | |
22572 | ;; | |
22573 | esac | |
22574 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22575 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22576 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22578 | else | |
22579 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
22580 | fi | |
22581 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22582 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22583 | ||
22584 | fi | |
22585 | if test $ac_cv_header_ext_hash_map = yes; then | |
22586 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22587 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22588 | cat >conftest.$ac_ext <<_ACEOF | |
22589 | /* confdefs.h. */ | |
22590 | _ACEOF | |
22591 | cat confdefs.h >>conftest.$ac_ext | |
22592 | cat >>conftest.$ac_ext <<_ACEOF | |
22593 | /* end confdefs.h. */ | |
22594 | #include <ext/hash_map> | |
22595 | #include <ext/hash_set> | |
22596 | int | |
22597 | main () | |
22598 | { | |
22599 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
22600 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
22601 | ; | |
22602 | return 0; | |
22603 | } | |
22604 | _ACEOF | |
22605 | rm -f conftest.$ac_objext | |
22606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22607 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22608 | ac_status=$? |
ac1cb8d3 VS |
22609 | grep -v '^ *+' conftest.er1 >conftest.err |
22610 | rm -f conftest.er1 | |
22611 | cat conftest.err >&5 | |
bdcade0a MB |
22612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22613 | (exit $ac_status); } && | |
6ebeb4c7 | 22614 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22616 | (eval $ac_try) 2>&5 | |
22617 | ac_status=$? | |
22618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22619 | (exit $ac_status); }; } && | |
22620 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22622 | (eval $ac_try) 2>&5 | |
22623 | ac_status=$? | |
22624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22625 | (exit $ac_status); }; }; then | |
22626 | echo "$as_me:$LINENO: result: yes" >&5 | |
22627 | echo "${ECHO_T}yes" >&6 | |
22628 | cat >>confdefs.h <<\_ACEOF | |
22629 | #define HAVE_EXT_HASH_MAP 1 | |
22630 | _ACEOF | |
22631 | ||
22632 | cat >>confdefs.h <<\_ACEOF | |
22633 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
22634 | _ACEOF | |
22635 | ||
22636 | else | |
22637 | echo "$as_me: failed program was:" >&5 | |
22638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22639 | ||
22640 | echo "$as_me:$LINENO: result: no" >&5 | |
22641 | echo "${ECHO_T}no" >&6 | |
22642 | fi | |
ac1cb8d3 | 22643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22644 | |
22645 | fi | |
22646 | ||
22647 | ||
a848cd7e SC |
22648 | |
22649 | ac_ext=c | |
22650 | ac_cpp='$CPP $CPPFLAGS' | |
22651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22654 | ||
22655 | fi | |
22656 | ||
22657 | ||
22658 | SEARCH_INCLUDE="\ | |
22659 | /usr/local/include \ | |
22660 | \ | |
22661 | /usr/Motif-2.1/include \ | |
22662 | /usr/Motif-1.2/include \ | |
22663 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
22664 | \ |
22665 | /usr/dt/include \ | |
22666 | /usr/openwin/include \ | |
22667 | \ | |
22668 | /usr/include/Xm \ | |
22669 | \ | |
22670 | /usr/X11R6/include \ | |
22671 | /usr/X11R6.4/include \ | |
22672 | /usr/X11R5/include \ | |
22673 | /usr/X11R4/include \ | |
22674 | \ | |
22675 | /usr/include/X11R6 \ | |
22676 | /usr/include/X11R5 \ | |
22677 | /usr/include/X11R4 \ | |
22678 | \ | |
22679 | /usr/local/X11R6/include \ | |
22680 | /usr/local/X11R5/include \ | |
22681 | /usr/local/X11R4/include \ | |
22682 | \ | |
22683 | /usr/local/include/X11R6 \ | |
22684 | /usr/local/include/X11R5 \ | |
22685 | /usr/local/include/X11R4 \ | |
22686 | \ | |
22687 | /usr/X11/include \ | |
22688 | /usr/include/X11 \ | |
22689 | /usr/local/X11/include \ | |
22690 | /usr/local/include/X11 \ | |
22691 | \ | |
a848cd7e | 22692 | /usr/XFree86/include/X11 \ |
e051b34e MW |
22693 | /usr/pkg/include \ |
22694 | \ | |
a848cd7e SC |
22695 | /usr/openwin/share/include" |
22696 | ||
6f9cf1e6 | 22697 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 22698 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
22699 | |
22700 | case "${host}" in | |
22701 | *-*-irix6* ) | |
22702 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
22703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22704 | else | |
22705 | ||
c687b303 VZ |
22706 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
22707 | for e in a so sl dylib dll.a; do | |
22708 | libc="$d/libc.$e" | |
22709 | if test -f $libc; then | |
22710 | save_LIBS="$LIBS" | |
22711 | LIBS="$libc" | |
22712 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
22713 | int main() { return 0; } |
22714 | _ACEOF | |
22715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22717 | (eval $ac_link) 2>conftest.er1 | |
22718 | ac_status=$? | |
22719 | grep -v '^ *+' conftest.er1 >conftest.err | |
22720 | rm -f conftest.er1 | |
22721 | cat conftest.err >&5 | |
22722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22723 | (exit $ac_status); } && | |
22724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
22725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22726 | (eval $ac_try) 2>&5 | |
22727 | ac_status=$? | |
22728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22729 | (exit $ac_status); }; } && | |
22730 | { ac_try='test -s conftest$ac_exeext' | |
22731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22732 | (eval $ac_try) 2>&5 | |
22733 | ac_status=$? | |
22734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22735 | (exit $ac_status); }; }; then | |
22736 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
22737 | else | |
22738 | echo "$as_me: failed program was:" >&5 | |
22739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22740 | ||
22741 | fi | |
22742 | rm -f conftest.err conftest.$ac_objext \ | |
22743 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
22744 | LIBS="$save_LIBS" |
22745 | if test "x$wx_cv_std_libpath" != "x"; then | |
22746 | break 2 | |
22747 | fi | |
22748 | fi | |
22749 | done | |
22750 | done | |
22751 | if test "x$wx_cv_std_libpath" = "x"; then | |
22752 | wx_cv_std_libpath="lib" | |
0ad5d837 | 22753 | fi |
0ad5d837 VZ |
22754 | |
22755 | ||
22756 | fi | |
6f9cf1e6 MW |
22757 | |
22758 | ;; | |
22759 | ||
22760 | *-*-solaris2* ) | |
22761 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
22762 | wx_cv_std_libpath="lib/64" | |
22763 | else | |
22764 | wx_cv_std_libpath="lib" | |
22765 | fi | |
22766 | ;; | |
22767 | ||
22768 | *-*-linux* ) | |
22769 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
22770 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
22771 | wx_cv_std_libpath="lib64" | |
22772 | else | |
22773 | wx_cv_std_libpath="lib" | |
22774 | fi | |
c687b303 VZ |
22775 | ;; |
22776 | ||
22777 | *) | |
22778 | wx_cv_std_libpath="lib"; | |
22779 | ;; | |
22780 | esac | |
0ad5d837 | 22781 | |
6f9cf1e6 MW |
22782 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
22783 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
22784 | ||
22785 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 22786 | |
3eca31dc MW |
22787 | if test "$build" != "$host" -a "$GCC" = yes; then |
22788 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
22789 | cross_root=`dirname $cross_root` | |
22790 | cross_root=`dirname $cross_root` | |
22791 | ||
22792 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22793 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22794 | ||
22795 | if test -z "$PKG_CONFIG_PATH"; then | |
22796 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
22797 | export PKG_CONFIG_PATH | |
22798 | fi | |
22799 | ||
22800 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
22801 | ||
22802 | ac_find_includes= | |
22803 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
22804 | do | |
22805 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
22806 | ac_find_includes=$ac_dir | |
22807 | break | |
22808 | fi | |
22809 | done | |
22810 | ||
22811 | x_includes=$ac_find_includes | |
22812 | fi | |
22813 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
22814 | ||
0ad5d837 VZ |
22815 | ac_find_libraries= |
22816 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
22817 | do |
22818 | for ac_extension in a so sl dylib dll.a; do | |
22819 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
22820 | ac_find_libraries=$ac_dir | |
22821 | break 2 | |
22822 | fi | |
22823 | done | |
22824 | done | |
22825 | ||
22826 | x_libraries=$ac_find_libraries | |
22827 | fi | |
22828 | fi | |
22829 | fi | |
22830 | ||
a848cd7e SC |
22831 | |
22832 | cat >confcache <<\_ACEOF | |
22833 | # This file is a shell script that caches the results of configure | |
22834 | # tests run on this system so they can be shared between configure | |
22835 | # scripts and configure runs, see configure's option --config-cache. | |
22836 | # It is not useful on other systems. If it contains results you don't | |
22837 | # want to keep, you may remove or edit it. | |
22838 | # | |
22839 | # config.status only pays attention to the cache file if you give it | |
22840 | # the --recheck option to rerun configure. | |
22841 | # | |
22842 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22843 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22844 | # following values. | |
22845 | ||
22846 | _ACEOF | |
22847 | ||
22848 | # The following way of writing the cache mishandles newlines in values, | |
22849 | # but we know of no workaround that is simple, portable, and efficient. | |
22850 | # So, don't put newlines in cache variables' values. | |
22851 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22852 | # and sets the high bit in the cache file unless we assign to the vars. | |
22853 | { | |
22854 | (set) 2>&1 | | |
22855 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22856 | *ac_space=\ *) | |
22857 | # `set' does not quote correctly, so add quotes (double-quote | |
22858 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22859 | sed -n \ | |
ac1cb8d3 VS |
22860 | "s/'/'\\\\''/g; |
22861 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
22862 | ;; |
22863 | *) | |
22864 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22865 | sed -n \ | |
ac1cb8d3 | 22866 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
22867 | ;; |
22868 | esac; | |
22869 | } | | |
22870 | sed ' | |
22871 | t clear | |
22872 | : clear | |
22873 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22874 | t end | |
22875 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22876 | : end' >>confcache | |
22877 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
22878 | if test -w $cache_file; then | |
22879 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
22880 | cat confcache >$cache_file | |
22881 | else | |
22882 | echo "not updating unwritable cache $cache_file" | |
22883 | fi | |
22884 | fi | |
22885 | rm -f confcache | |
22886 | ||
22887 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
22888 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
22889 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
22890 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
22891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22892 | else | |
22893 | ||
22894 | cat >conftest.$ac_ext <<_ACEOF | |
22895 | /* confdefs.h. */ | |
22896 | _ACEOF | |
22897 | cat confdefs.h >>conftest.$ac_ext | |
22898 | cat >>conftest.$ac_ext <<_ACEOF | |
22899 | /* end confdefs.h. */ | |
22900 | #include <features.h> | |
22901 | int | |
22902 | main () | |
22903 | { | |
22904 | ||
22905 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 22906 | not glibc 2.1 |
a848cd7e SC |
22907 | #endif |
22908 | ||
22909 | ; | |
22910 | return 0; | |
22911 | } | |
22912 | _ACEOF | |
22913 | rm -f conftest.$ac_objext | |
22914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22916 | ac_status=$? |
ac1cb8d3 VS |
22917 | grep -v '^ *+' conftest.er1 >conftest.err |
22918 | rm -f conftest.er1 | |
22919 | cat conftest.err >&5 | |
a848cd7e SC |
22920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22921 | (exit $ac_status); } && | |
6ebeb4c7 | 22922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22924 | (eval $ac_try) 2>&5 | |
22925 | ac_status=$? | |
22926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22927 | (exit $ac_status); }; } && | |
22928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22930 | (eval $ac_try) 2>&5 | |
22931 | ac_status=$? | |
22932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22933 | (exit $ac_status); }; }; then | |
22934 | ||
22935 | wx_cv_lib_glibc21=yes | |
22936 | ||
22937 | else | |
22938 | echo "$as_me: failed program was:" >&5 | |
22939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22940 | ||
22941 | ||
22942 | wx_cv_lib_glibc21=no | |
22943 | ||
22944 | ||
22945 | fi | |
ac1cb8d3 | 22946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22947 | |
22948 | fi | |
22949 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22950 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22951 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
22952 | cat >>confdefs.h <<\_ACEOF | |
22953 | #define wxHAVE_GLIBC2 1 | |
22954 | _ACEOF | |
22955 | ||
22956 | fi | |
22957 | fi | |
22958 | ||
22959 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
22960 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
22961 | cat >>confdefs.h <<\_ACEOF | |
22962 | #define _GNU_SOURCE 1 | |
22963 | _ACEOF | |
22964 | ||
22965 | fi | |
22966 | fi | |
22967 | ||
22968 | ||
22969 | ||
22970 | if test "$wxUSE_REGEX" != "no"; then | |
22971 | cat >>confdefs.h <<\_ACEOF | |
22972 | #define wxUSE_REGEX 1 | |
22973 | _ACEOF | |
22974 | ||
22975 | ||
22976 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22977 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
22978 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
22979 | wxUSE_REGEX=builtin | |
22980 | fi | |
22981 | ||
22982 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22983 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22984 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22985 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22986 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22988 | fi | |
22989 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22990 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22991 | else | |
22992 | # Is the header compilable? | |
22993 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
22994 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
22995 | cat >conftest.$ac_ext <<_ACEOF | |
22996 | /* confdefs.h. */ | |
22997 | _ACEOF | |
22998 | cat confdefs.h >>conftest.$ac_ext | |
22999 | cat >>conftest.$ac_ext <<_ACEOF | |
23000 | /* end confdefs.h. */ | |
23001 | $ac_includes_default | |
23002 | #include <regex.h> | |
23003 | _ACEOF | |
23004 | rm -f conftest.$ac_objext | |
23005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23007 | ac_status=$? |
ac1cb8d3 VS |
23008 | grep -v '^ *+' conftest.er1 >conftest.err |
23009 | rm -f conftest.er1 | |
23010 | cat conftest.err >&5 | |
a848cd7e SC |
23011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23012 | (exit $ac_status); } && | |
6ebeb4c7 | 23013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23015 | (eval $ac_try) 2>&5 | |
23016 | ac_status=$? | |
23017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23018 | (exit $ac_status); }; } && | |
23019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23021 | (eval $ac_try) 2>&5 | |
23022 | ac_status=$? | |
23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23024 | (exit $ac_status); }; }; then | |
23025 | ac_header_compiler=yes | |
23026 | else | |
23027 | echo "$as_me: failed program was:" >&5 | |
23028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23029 | ||
23030 | ac_header_compiler=no | |
23031 | fi | |
ac1cb8d3 | 23032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23033 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23034 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23035 | ||
23036 | # Is the header present? | |
23037 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23038 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23039 | cat >conftest.$ac_ext <<_ACEOF | |
23040 | /* confdefs.h. */ | |
23041 | _ACEOF | |
23042 | cat confdefs.h >>conftest.$ac_ext | |
23043 | cat >>conftest.$ac_ext <<_ACEOF | |
23044 | /* end confdefs.h. */ | |
23045 | #include <regex.h> | |
23046 | _ACEOF | |
23047 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23049 | ac_status=$? | |
23050 | grep -v '^ *+' conftest.er1 >conftest.err | |
23051 | rm -f conftest.er1 | |
23052 | cat conftest.err >&5 | |
23053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23054 | (exit $ac_status); } >/dev/null; then | |
23055 | if test -s conftest.err; then | |
23056 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23057 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23058 | else |
23059 | ac_cpp_err= | |
23060 | fi | |
23061 | else | |
23062 | ac_cpp_err=yes | |
23063 | fi | |
23064 | if test -z "$ac_cpp_err"; then | |
23065 | ac_header_preproc=yes | |
23066 | else | |
23067 | echo "$as_me: failed program was:" >&5 | |
23068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23069 | ||
23070 | ac_header_preproc=no | |
23071 | fi | |
23072 | rm -f conftest.err conftest.$ac_ext | |
23073 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23074 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23075 | ||
23076 | # So? What about this header? | |
ac1cb8d3 VS |
23077 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23078 | yes:no: ) | |
a848cd7e SC |
23079 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23080 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23081 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
23082 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
23083 | ac_header_preproc=yes | |
a848cd7e | 23084 | ;; |
ac1cb8d3 | 23085 | no:yes:* ) |
a848cd7e SC |
23086 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
23087 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23088 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
23089 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
23090 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
23091 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
23092 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23093 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23094 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
23095 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23096 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
23097 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23098 | ( |
23099 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23100 | ## ----------------------------------------- ## |
23101 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23102 | ## ----------------------------------------- ## | |
a848cd7e SC |
23103 | _ASBOX |
23104 | ) | | |
23105 | sed "s/^/$as_me: WARNING: /" >&2 | |
23106 | ;; | |
23107 | esac | |
23108 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23109 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23110 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23112 | else | |
23113 | ac_cv_header_regex_h=$ac_header_preproc | |
23114 | fi | |
23115 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23116 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23117 | ||
23118 | fi | |
23119 | if test $ac_cv_header_regex_h = yes; then | |
23120 | ||
23121 | for ac_func in regcomp | |
23122 | do | |
23123 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23124 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23125 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23126 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23128 | else | |
23129 | cat >conftest.$ac_ext <<_ACEOF | |
23130 | /* confdefs.h. */ | |
23131 | _ACEOF | |
23132 | cat confdefs.h >>conftest.$ac_ext | |
23133 | cat >>conftest.$ac_ext <<_ACEOF | |
23134 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23135 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23136 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23137 | #define $ac_func innocuous_$ac_func | |
23138 | ||
a848cd7e SC |
23139 | /* System header to define __stub macros and hopefully few prototypes, |
23140 | which can conflict with char $ac_func (); below. | |
23141 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23142 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23143 | |
a848cd7e SC |
23144 | #ifdef __STDC__ |
23145 | # include <limits.h> | |
23146 | #else | |
23147 | # include <assert.h> | |
23148 | #endif | |
ac1cb8d3 VS |
23149 | |
23150 | #undef $ac_func | |
23151 | ||
a848cd7e SC |
23152 | /* Override any gcc2 internal prototype to avoid an error. */ |
23153 | #ifdef __cplusplus | |
23154 | extern "C" | |
23155 | { | |
23156 | #endif | |
23157 | /* We use char because int might match the return type of a gcc2 | |
23158 | builtin and then its argument prototype would still apply. */ | |
23159 | char $ac_func (); | |
23160 | /* The GNU C library defines this for functions which it implements | |
23161 | to always fail with ENOSYS. Some functions are actually named | |
23162 | something starting with __ and the normal name is an alias. */ | |
23163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23164 | choke me | |
23165 | #else | |
23166 | char (*f) () = $ac_func; | |
23167 | #endif | |
23168 | #ifdef __cplusplus | |
23169 | } | |
23170 | #endif | |
23171 | ||
23172 | int | |
23173 | main () | |
23174 | { | |
23175 | return f != $ac_func; | |
23176 | ; | |
23177 | return 0; | |
23178 | } | |
23179 | _ACEOF | |
23180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23182 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23183 | ac_status=$? |
ac1cb8d3 VS |
23184 | grep -v '^ *+' conftest.er1 >conftest.err |
23185 | rm -f conftest.er1 | |
23186 | cat conftest.err >&5 | |
a848cd7e SC |
23187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23188 | (exit $ac_status); } && | |
6ebeb4c7 | 23189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23191 | (eval $ac_try) 2>&5 | |
23192 | ac_status=$? | |
23193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23194 | (exit $ac_status); }; } && | |
23195 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23197 | (eval $ac_try) 2>&5 | |
23198 | ac_status=$? | |
23199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23200 | (exit $ac_status); }; }; then | |
23201 | eval "$as_ac_var=yes" | |
23202 | else | |
23203 | echo "$as_me: failed program was:" >&5 | |
23204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23205 | ||
23206 | eval "$as_ac_var=no" | |
23207 | fi | |
ac1cb8d3 VS |
23208 | rm -f conftest.err conftest.$ac_objext \ |
23209 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23210 | fi |
23211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23212 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23213 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23214 | cat >>confdefs.h <<_ACEOF | |
23215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23216 | _ACEOF | |
23217 | ||
23218 | fi | |
23219 | done | |
23220 | ||
23221 | fi | |
23222 | ||
23223 | ||
23224 | ||
23225 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
23226 | if test "$wxUSE_REGEX" = "sys" ; then | |
23227 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
23228 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
23229 | { (exit 1); exit 1; }; } | |
23230 | else | |
23231 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
23232 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
23233 | wxUSE_REGEX=builtin | |
23234 | fi | |
23235 | else | |
23236 | wxUSE_REGEX=sys | |
23237 | cat >>confdefs.h <<\_ACEOF | |
23238 | #define WX_NO_REGEX_ADVANCED 1 | |
23239 | _ACEOF | |
23240 | ||
23241 | fi | |
23242 | fi | |
23243 | fi | |
23244 | ||
23245 | ||
23246 | ZLIB_LINK= | |
23247 | if test "$wxUSE_ZLIB" != "no" ; then | |
23248 | cat >>confdefs.h <<\_ACEOF | |
23249 | #define wxUSE_ZLIB 1 | |
23250 | _ACEOF | |
23251 | ||
23252 | ||
23253 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
23254 | if test "$USE_DARWIN" = 1; then | |
23255 | system_zlib_h_ok="yes" | |
23256 | else | |
23257 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
23258 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
23259 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23261 | else | |
23262 | if test "$cross_compiling" = yes; then | |
23263 | unset ac_cv_header_zlib_h | |
23264 | ||
23265 | else | |
23266 | cat >conftest.$ac_ext <<_ACEOF | |
23267 | /* confdefs.h. */ | |
23268 | _ACEOF | |
23269 | cat confdefs.h >>conftest.$ac_ext | |
23270 | cat >>conftest.$ac_ext <<_ACEOF | |
23271 | /* end confdefs.h. */ | |
23272 | ||
23273 | #include <zlib.h> | |
23274 | #include <stdio.h> | |
23275 | ||
23276 | int main() | |
23277 | { | |
23278 | FILE *f=fopen("conftestval", "w"); | |
23279 | if (!f) exit(1); | |
23280 | fprintf(f, "%s", | |
23281 | ZLIB_VERSION[0] == '1' && | |
23282 | (ZLIB_VERSION[2] > '1' || | |
23283 | (ZLIB_VERSION[2] == '1' && | |
23284 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
23285 | exit(0); | |
23286 | } | |
23287 | ||
23288 | _ACEOF | |
23289 | rm -f conftest$ac_exeext | |
23290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23291 | (eval $ac_link) 2>&5 | |
23292 | ac_status=$? | |
23293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23294 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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); }; }; then | |
23300 | ac_cv_header_zlib_h=`cat conftestval` | |
23301 | else | |
23302 | echo "$as_me: program exited with status $ac_status" >&5 | |
23303 | echo "$as_me: failed program was:" >&5 | |
23304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23305 | ||
23306 | ( exit $ac_status ) | |
23307 | ac_cv_header_zlib_h=no | |
23308 | fi | |
ac1cb8d3 | 23309 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23310 | fi |
23311 | ||
23312 | fi | |
23313 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23314 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23315 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23316 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23317 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23318 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23320 | fi | |
23321 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23322 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23323 | else | |
23324 | # Is the header compilable? | |
23325 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
23326 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
23327 | cat >conftest.$ac_ext <<_ACEOF | |
23328 | /* confdefs.h. */ | |
23329 | _ACEOF | |
23330 | cat confdefs.h >>conftest.$ac_ext | |
23331 | cat >>conftest.$ac_ext <<_ACEOF | |
23332 | /* end confdefs.h. */ | |
23333 | $ac_includes_default | |
23334 | #include <zlib.h> | |
23335 | _ACEOF | |
23336 | rm -f conftest.$ac_objext | |
23337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23338 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23339 | ac_status=$? |
ac1cb8d3 VS |
23340 | grep -v '^ *+' conftest.er1 >conftest.err |
23341 | rm -f conftest.er1 | |
23342 | cat conftest.err >&5 | |
a848cd7e SC |
23343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23344 | (exit $ac_status); } && | |
6ebeb4c7 | 23345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23347 | (eval $ac_try) 2>&5 | |
23348 | ac_status=$? | |
23349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23350 | (exit $ac_status); }; } && | |
23351 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23353 | (eval $ac_try) 2>&5 | |
23354 | ac_status=$? | |
23355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23356 | (exit $ac_status); }; }; then | |
23357 | ac_header_compiler=yes | |
23358 | else | |
23359 | echo "$as_me: failed program was:" >&5 | |
23360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23361 | ||
23362 | ac_header_compiler=no | |
23363 | fi | |
ac1cb8d3 | 23364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23365 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23366 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23367 | ||
23368 | # Is the header present? | |
23369 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
23370 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
23371 | cat >conftest.$ac_ext <<_ACEOF | |
23372 | /* confdefs.h. */ | |
23373 | _ACEOF | |
23374 | cat confdefs.h >>conftest.$ac_ext | |
23375 | cat >>conftest.$ac_ext <<_ACEOF | |
23376 | /* end confdefs.h. */ | |
23377 | #include <zlib.h> | |
23378 | _ACEOF | |
23379 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23381 | ac_status=$? | |
23382 | grep -v '^ *+' conftest.er1 >conftest.err | |
23383 | rm -f conftest.er1 | |
23384 | cat conftest.err >&5 | |
23385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23386 | (exit $ac_status); } >/dev/null; then | |
23387 | if test -s conftest.err; then | |
23388 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23389 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23390 | else |
23391 | ac_cpp_err= | |
23392 | fi | |
23393 | else | |
23394 | ac_cpp_err=yes | |
23395 | fi | |
23396 | if test -z "$ac_cpp_err"; then | |
23397 | ac_header_preproc=yes | |
23398 | else | |
23399 | echo "$as_me: failed program was:" >&5 | |
23400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23401 | ||
23402 | ac_header_preproc=no | |
23403 | fi | |
23404 | rm -f conftest.err conftest.$ac_ext | |
23405 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23406 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23407 | ||
23408 | # So? What about this header? | |
ac1cb8d3 VS |
23409 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23410 | yes:no: ) | |
a848cd7e SC |
23411 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23412 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23413 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
23414 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
23415 | ac_header_preproc=yes | |
a848cd7e | 23416 | ;; |
ac1cb8d3 | 23417 | no:yes:* ) |
a848cd7e SC |
23418 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
23419 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23420 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
23421 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
23422 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
23423 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
23424 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23425 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23426 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
23427 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23428 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
23429 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23430 | ( |
23431 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23432 | ## ----------------------------------------- ## |
23433 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23434 | ## ----------------------------------------- ## | |
a848cd7e SC |
23435 | _ASBOX |
23436 | ) | | |
23437 | sed "s/^/$as_me: WARNING: /" >&2 | |
23438 | ;; | |
23439 | esac | |
23440 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23441 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23442 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23444 | else | |
23445 | ac_cv_header_zlib_h=$ac_header_preproc | |
23446 | fi | |
23447 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23448 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23449 | ||
23450 | fi | |
23451 | ||
23452 | ||
23453 | ||
23454 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
23455 | fi | |
23456 | ||
23457 | if test "$system_zlib_h_ok" = "yes"; then | |
23458 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
23459 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
23460 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
23461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23462 | else | |
23463 | ac_check_lib_save_LIBS=$LIBS | |
23464 | LIBS="-lz $LIBS" | |
23465 | cat >conftest.$ac_ext <<_ACEOF | |
23466 | /* confdefs.h. */ | |
23467 | _ACEOF | |
23468 | cat confdefs.h >>conftest.$ac_ext | |
23469 | cat >>conftest.$ac_ext <<_ACEOF | |
23470 | /* end confdefs.h. */ | |
23471 | ||
23472 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23473 | #ifdef __cplusplus | |
23474 | extern "C" | |
23475 | #endif | |
23476 | /* We use char because int might match the return type of a gcc2 | |
23477 | builtin and then its argument prototype would still apply. */ | |
23478 | char deflate (); | |
23479 | int | |
23480 | main () | |
23481 | { | |
23482 | deflate (); | |
23483 | ; | |
23484 | return 0; | |
23485 | } | |
23486 | _ACEOF | |
23487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23489 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23490 | ac_status=$? |
ac1cb8d3 VS |
23491 | grep -v '^ *+' conftest.er1 >conftest.err |
23492 | rm -f conftest.er1 | |
23493 | cat conftest.err >&5 | |
a848cd7e SC |
23494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23495 | (exit $ac_status); } && | |
6ebeb4c7 | 23496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23498 | (eval $ac_try) 2>&5 | |
23499 | ac_status=$? | |
23500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23501 | (exit $ac_status); }; } && | |
23502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23504 | (eval $ac_try) 2>&5 | |
23505 | ac_status=$? | |
23506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23507 | (exit $ac_status); }; }; then | |
23508 | ac_cv_lib_z_deflate=yes | |
23509 | else | |
23510 | echo "$as_me: failed program was:" >&5 | |
23511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23512 | ||
23513 | ac_cv_lib_z_deflate=no | |
23514 | fi | |
ac1cb8d3 VS |
23515 | rm -f conftest.err conftest.$ac_objext \ |
23516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23517 | LIBS=$ac_check_lib_save_LIBS |
23518 | fi | |
23519 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
23520 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
23521 | if test $ac_cv_lib_z_deflate = yes; then | |
23522 | ZLIB_LINK=" -lz" | |
23523 | fi | |
23524 | ||
23525 | fi | |
23526 | ||
23527 | if test "x$ZLIB_LINK" = "x" ; then | |
23528 | if test "$wxUSE_ZLIB" = "sys" ; then | |
23529 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
23530 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
23531 | { (exit 1); exit 1; }; } | |
23532 | else | |
23533 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
23534 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
23535 | wxUSE_ZLIB=builtin | |
23536 | fi | |
23537 | else | |
23538 | wxUSE_ZLIB=sys | |
23539 | fi | |
23540 | fi | |
23541 | fi | |
23542 | ||
23543 | ||
23544 | PNG_LINK= | |
23545 | if test "$wxUSE_LIBPNG" != "no" ; then | |
23546 | cat >>confdefs.h <<\_ACEOF | |
23547 | #define wxUSE_LIBPNG 1 | |
23548 | _ACEOF | |
23549 | ||
23550 | ||
23551 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
23552 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
23553 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
23554 | wxUSE_LIBPNG=sys | |
23555 | fi | |
23556 | ||
23557 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
23558 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
23559 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
23560 | wxUSE_LIBPNG=builtin | |
23561 | fi | |
23562 | ||
23563 | if test "$wxUSE_MGL" != 1 ; then | |
23564 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
23565 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
23566 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
23567 | if test "${ac_cv_header_png_h+set}" = set; then | |
23568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23569 | else | |
23570 | if test "$cross_compiling" = yes; then | |
23571 | unset ac_cv_header_png_h | |
23572 | ||
23573 | else | |
23574 | cat >conftest.$ac_ext <<_ACEOF | |
23575 | /* confdefs.h. */ | |
23576 | _ACEOF | |
23577 | cat confdefs.h >>conftest.$ac_ext | |
23578 | cat >>conftest.$ac_ext <<_ACEOF | |
23579 | /* end confdefs.h. */ | |
23580 | ||
23581 | #include <png.h> | |
23582 | #include <stdio.h> | |
23583 | ||
23584 | int main() | |
23585 | { | |
23586 | FILE *f=fopen("conftestval", "w"); | |
23587 | if (!f) exit(1); | |
23588 | fprintf(f, "%s", | |
23589 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
23590 | exit(0); | |
23591 | } | |
23592 | ||
23593 | _ACEOF | |
23594 | rm -f conftest$ac_exeext | |
23595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23596 | (eval $ac_link) 2>&5 | |
23597 | ac_status=$? | |
23598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23599 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23601 | (eval $ac_try) 2>&5 | |
23602 | ac_status=$? | |
23603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23604 | (exit $ac_status); }; }; then | |
23605 | ac_cv_header_png_h=`cat conftestval` | |
23606 | else | |
23607 | echo "$as_me: program exited with status $ac_status" >&5 | |
23608 | echo "$as_me: failed program was:" >&5 | |
23609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23610 | ||
23611 | ( exit $ac_status ) | |
23612 | ac_cv_header_png_h=no | |
23613 | fi | |
ac1cb8d3 | 23614 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23615 | fi |
23616 | ||
23617 | fi | |
23618 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23619 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23620 | if test "${ac_cv_header_png_h+set}" = set; then | |
23621 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23622 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23623 | if test "${ac_cv_header_png_h+set}" = set; then | |
23624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23625 | fi | |
23626 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23627 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23628 | else | |
23629 | # Is the header compilable? | |
23630 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
23631 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
23632 | cat >conftest.$ac_ext <<_ACEOF | |
23633 | /* confdefs.h. */ | |
23634 | _ACEOF | |
23635 | cat confdefs.h >>conftest.$ac_ext | |
23636 | cat >>conftest.$ac_ext <<_ACEOF | |
23637 | /* end confdefs.h. */ | |
23638 | $ac_includes_default | |
23639 | #include <png.h> | |
23640 | _ACEOF | |
23641 | rm -f conftest.$ac_objext | |
23642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23643 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23644 | ac_status=$? |
ac1cb8d3 VS |
23645 | grep -v '^ *+' conftest.er1 >conftest.err |
23646 | rm -f conftest.er1 | |
23647 | cat conftest.err >&5 | |
a848cd7e SC |
23648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23649 | (exit $ac_status); } && | |
6ebeb4c7 | 23650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23652 | (eval $ac_try) 2>&5 | |
23653 | ac_status=$? | |
23654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23655 | (exit $ac_status); }; } && | |
23656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23658 | (eval $ac_try) 2>&5 | |
23659 | ac_status=$? | |
23660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23661 | (exit $ac_status); }; }; then | |
23662 | ac_header_compiler=yes | |
23663 | else | |
23664 | echo "$as_me: failed program was:" >&5 | |
23665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23666 | ||
23667 | ac_header_compiler=no | |
23668 | fi | |
ac1cb8d3 | 23669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23670 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23671 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23672 | ||
23673 | # Is the header present? | |
23674 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
23675 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
23676 | cat >conftest.$ac_ext <<_ACEOF | |
23677 | /* confdefs.h. */ | |
23678 | _ACEOF | |
23679 | cat confdefs.h >>conftest.$ac_ext | |
23680 | cat >>conftest.$ac_ext <<_ACEOF | |
23681 | /* end confdefs.h. */ | |
23682 | #include <png.h> | |
23683 | _ACEOF | |
23684 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23685 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23686 | ac_status=$? | |
23687 | grep -v '^ *+' conftest.er1 >conftest.err | |
23688 | rm -f conftest.er1 | |
23689 | cat conftest.err >&5 | |
23690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23691 | (exit $ac_status); } >/dev/null; then | |
23692 | if test -s conftest.err; then | |
23693 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23694 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23695 | else |
23696 | ac_cpp_err= | |
23697 | fi | |
23698 | else | |
23699 | ac_cpp_err=yes | |
23700 | fi | |
23701 | if test -z "$ac_cpp_err"; then | |
23702 | ac_header_preproc=yes | |
23703 | else | |
23704 | echo "$as_me: failed program was:" >&5 | |
23705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23706 | ||
23707 | ac_header_preproc=no | |
23708 | fi | |
23709 | rm -f conftest.err conftest.$ac_ext | |
23710 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23711 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23712 | ||
23713 | # So? What about this header? | |
ac1cb8d3 VS |
23714 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23715 | yes:no: ) | |
a848cd7e SC |
23716 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23717 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23718 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
23719 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
23720 | ac_header_preproc=yes | |
a848cd7e | 23721 | ;; |
ac1cb8d3 | 23722 | no:yes:* ) |
a848cd7e SC |
23723 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
23724 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23725 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
23726 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
23727 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
23728 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
23729 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23730 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23731 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
23732 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23733 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
23734 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23735 | ( |
23736 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23737 | ## ----------------------------------------- ## |
23738 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23739 | ## ----------------------------------------- ## | |
a848cd7e SC |
23740 | _ASBOX |
23741 | ) | | |
23742 | sed "s/^/$as_me: WARNING: /" >&2 | |
23743 | ;; | |
23744 | esac | |
23745 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23746 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23747 | if test "${ac_cv_header_png_h+set}" = set; then | |
23748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23749 | else | |
23750 | ac_cv_header_png_h=$ac_header_preproc | |
23751 | fi | |
23752 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23753 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23754 | ||
23755 | fi | |
23756 | ||
23757 | ||
23758 | ||
23759 | if test "$ac_cv_header_png_h" = "yes"; then | |
23760 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
23761 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
23762 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
23763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23764 | else | |
23765 | ac_check_lib_save_LIBS=$LIBS | |
23766 | LIBS="-lpng -lz -lm $LIBS" | |
23767 | cat >conftest.$ac_ext <<_ACEOF | |
23768 | /* confdefs.h. */ | |
23769 | _ACEOF | |
23770 | cat confdefs.h >>conftest.$ac_ext | |
23771 | cat >>conftest.$ac_ext <<_ACEOF | |
23772 | /* end confdefs.h. */ | |
23773 | ||
23774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23775 | #ifdef __cplusplus | |
23776 | extern "C" | |
23777 | #endif | |
23778 | /* We use char because int might match the return type of a gcc2 | |
23779 | builtin and then its argument prototype would still apply. */ | |
23780 | char png_check_sig (); | |
23781 | int | |
23782 | main () | |
23783 | { | |
23784 | png_check_sig (); | |
23785 | ; | |
23786 | return 0; | |
23787 | } | |
23788 | _ACEOF | |
23789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23791 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23792 | ac_status=$? |
ac1cb8d3 VS |
23793 | grep -v '^ *+' conftest.er1 >conftest.err |
23794 | rm -f conftest.er1 | |
23795 | cat conftest.err >&5 | |
a848cd7e SC |
23796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23797 | (exit $ac_status); } && | |
6ebeb4c7 | 23798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23800 | (eval $ac_try) 2>&5 | |
23801 | ac_status=$? | |
23802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23803 | (exit $ac_status); }; } && | |
23804 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23806 | (eval $ac_try) 2>&5 | |
23807 | ac_status=$? | |
23808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23809 | (exit $ac_status); }; }; then | |
23810 | ac_cv_lib_png_png_check_sig=yes | |
23811 | else | |
23812 | echo "$as_me: failed program was:" >&5 | |
23813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23814 | ||
23815 | ac_cv_lib_png_png_check_sig=no | |
23816 | fi | |
ac1cb8d3 VS |
23817 | rm -f conftest.err conftest.$ac_objext \ |
23818 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23819 | LIBS=$ac_check_lib_save_LIBS |
23820 | fi | |
23821 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
23822 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
23823 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
23824 | PNG_LINK=" -lpng -lz" | |
23825 | fi | |
23826 | ||
23827 | fi | |
23828 | ||
23829 | if test "x$PNG_LINK" = "x" ; then | |
23830 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
23831 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
23832 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
23833 | { (exit 1); exit 1; }; } | |
23834 | else | |
23835 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
23836 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
23837 | wxUSE_LIBPNG=builtin | |
23838 | fi | |
23839 | else | |
23840 | wxUSE_LIBPNG=sys | |
23841 | fi | |
23842 | fi | |
23843 | fi | |
23844 | ||
23845 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
23846 | fi | |
23847 | ||
23848 | ||
23849 | JPEG_LINK= | |
23850 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
23851 | cat >>confdefs.h <<\_ACEOF | |
23852 | #define wxUSE_LIBJPEG 1 | |
23853 | _ACEOF | |
23854 | ||
23855 | ||
23856 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
23857 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
23858 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
23859 | wxUSE_LIBJPEG=sys | |
23860 | fi | |
23861 | ||
23862 | if test "$wxUSE_MGL" != 1 ; then | |
23863 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
23864 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
23865 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
23866 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
23867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23868 | else | |
23869 | cat >conftest.$ac_ext <<_ACEOF | |
23870 | /* confdefs.h. */ | |
23871 | _ACEOF | |
23872 | cat confdefs.h >>conftest.$ac_ext | |
23873 | cat >>conftest.$ac_ext <<_ACEOF | |
23874 | /* end confdefs.h. */ | |
23875 | ||
23876 | #undef HAVE_STDLIB_H | |
23877 | #include <stdio.h> | |
23878 | #include <jpeglib.h> | |
23879 | ||
23880 | int | |
23881 | main () | |
23882 | { | |
23883 | ||
23884 | ||
23885 | ; | |
23886 | return 0; | |
23887 | } | |
23888 | _ACEOF | |
23889 | rm -f conftest.$ac_objext | |
23890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23891 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23892 | ac_status=$? |
ac1cb8d3 VS |
23893 | grep -v '^ *+' conftest.er1 >conftest.err |
23894 | rm -f conftest.er1 | |
23895 | cat conftest.err >&5 | |
a848cd7e SC |
23896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23897 | (exit $ac_status); } && | |
6ebeb4c7 | 23898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23900 | (eval $ac_try) 2>&5 | |
23901 | ac_status=$? | |
23902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23903 | (exit $ac_status); }; } && | |
23904 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23906 | (eval $ac_try) 2>&5 | |
23907 | ac_status=$? | |
23908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23909 | (exit $ac_status); }; }; then | |
23910 | ac_cv_header_jpeglib_h=yes | |
23911 | else | |
23912 | echo "$as_me: failed program was:" >&5 | |
23913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23914 | ||
23915 | ac_cv_header_jpeglib_h=no | |
23916 | ||
23917 | fi | |
ac1cb8d3 | 23918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23919 | |
23920 | fi | |
23921 | ||
23922 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23923 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23924 | ||
23925 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23926 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23927 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23928 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23930 | else | |
23931 | ac_check_lib_save_LIBS=$LIBS | |
23932 | LIBS="-ljpeg $LIBS" | |
23933 | cat >conftest.$ac_ext <<_ACEOF | |
23934 | /* confdefs.h. */ | |
23935 | _ACEOF | |
23936 | cat confdefs.h >>conftest.$ac_ext | |
23937 | cat >>conftest.$ac_ext <<_ACEOF | |
23938 | /* end confdefs.h. */ | |
23939 | ||
23940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23941 | #ifdef __cplusplus | |
23942 | extern "C" | |
23943 | #endif | |
23944 | /* We use char because int might match the return type of a gcc2 | |
23945 | builtin and then its argument prototype would still apply. */ | |
23946 | char jpeg_read_header (); | |
23947 | int | |
23948 | main () | |
23949 | { | |
23950 | jpeg_read_header (); | |
23951 | ; | |
23952 | return 0; | |
23953 | } | |
23954 | _ACEOF | |
23955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23957 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23958 | ac_status=$? |
ac1cb8d3 VS |
23959 | grep -v '^ *+' conftest.er1 >conftest.err |
23960 | rm -f conftest.er1 | |
23961 | cat conftest.err >&5 | |
a848cd7e SC |
23962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23963 | (exit $ac_status); } && | |
6ebeb4c7 | 23964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23966 | (eval $ac_try) 2>&5 | |
23967 | ac_status=$? | |
23968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23969 | (exit $ac_status); }; } && | |
23970 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23972 | (eval $ac_try) 2>&5 | |
23973 | ac_status=$? | |
23974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23975 | (exit $ac_status); }; }; then | |
23976 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
23977 | else | |
23978 | echo "$as_me: failed program was:" >&5 | |
23979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23980 | ||
23981 | ac_cv_lib_jpeg_jpeg_read_header=no | |
23982 | fi | |
ac1cb8d3 VS |
23983 | rm -f conftest.err conftest.$ac_objext \ |
23984 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23985 | LIBS=$ac_check_lib_save_LIBS |
23986 | fi | |
23987 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
23988 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
23989 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
23990 | JPEG_LINK=" -ljpeg" | |
23991 | fi | |
23992 | ||
23993 | fi | |
23994 | ||
23995 | if test "x$JPEG_LINK" = "x" ; then | |
23996 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
23997 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
23998 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
23999 | { (exit 1); exit 1; }; } | |
24000 | else | |
24001 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24002 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24003 | wxUSE_LIBJPEG=builtin | |
24004 | fi | |
24005 | else | |
24006 | wxUSE_LIBJPEG=sys | |
24007 | fi | |
24008 | fi | |
24009 | fi | |
24010 | fi | |
24011 | ||
24012 | ||
24013 | TIFF_LINK= | |
24014 | TIFF_PREREQ_LINKS=-lm | |
24015 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24016 | cat >>confdefs.h <<\_ACEOF | |
24017 | #define wxUSE_LIBTIFF 1 | |
24018 | _ACEOF | |
24019 | ||
24020 | ||
24021 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24022 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24023 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24024 | fi | |
24025 | if test "$wxUSE_ZLIB" = "sys"; then | |
24026 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24027 | fi | |
24028 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24029 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24030 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24031 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24033 | fi | |
24034 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24035 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24036 | else | |
24037 | # Is the header compilable? | |
24038 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
24039 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
24040 | cat >conftest.$ac_ext <<_ACEOF | |
24041 | /* confdefs.h. */ | |
24042 | _ACEOF | |
24043 | cat confdefs.h >>conftest.$ac_ext | |
24044 | cat >>conftest.$ac_ext <<_ACEOF | |
24045 | /* end confdefs.h. */ | |
24046 | $ac_includes_default | |
24047 | #include <tiffio.h> | |
24048 | _ACEOF | |
24049 | rm -f conftest.$ac_objext | |
24050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24051 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24052 | ac_status=$? |
ac1cb8d3 VS |
24053 | grep -v '^ *+' conftest.er1 >conftest.err |
24054 | rm -f conftest.er1 | |
24055 | cat conftest.err >&5 | |
a848cd7e SC |
24056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24057 | (exit $ac_status); } && | |
6ebeb4c7 | 24058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24060 | (eval $ac_try) 2>&5 | |
24061 | ac_status=$? | |
24062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24063 | (exit $ac_status); }; } && | |
24064 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24066 | (eval $ac_try) 2>&5 | |
24067 | ac_status=$? | |
24068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24069 | (exit $ac_status); }; }; then | |
24070 | ac_header_compiler=yes | |
24071 | else | |
24072 | echo "$as_me: failed program was:" >&5 | |
24073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24074 | ||
24075 | ac_header_compiler=no | |
24076 | fi | |
ac1cb8d3 | 24077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24078 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24079 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24080 | ||
24081 | # Is the header present? | |
24082 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
24083 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
24084 | cat >conftest.$ac_ext <<_ACEOF | |
24085 | /* confdefs.h. */ | |
24086 | _ACEOF | |
24087 | cat confdefs.h >>conftest.$ac_ext | |
24088 | cat >>conftest.$ac_ext <<_ACEOF | |
24089 | /* end confdefs.h. */ | |
24090 | #include <tiffio.h> | |
24091 | _ACEOF | |
24092 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24094 | ac_status=$? | |
24095 | grep -v '^ *+' conftest.er1 >conftest.err | |
24096 | rm -f conftest.er1 | |
24097 | cat conftest.err >&5 | |
24098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24099 | (exit $ac_status); } >/dev/null; then | |
24100 | if test -s conftest.err; then | |
24101 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24102 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24103 | else |
24104 | ac_cpp_err= | |
24105 | fi | |
24106 | else | |
24107 | ac_cpp_err=yes | |
24108 | fi | |
24109 | if test -z "$ac_cpp_err"; then | |
24110 | ac_header_preproc=yes | |
24111 | else | |
24112 | echo "$as_me: failed program was:" >&5 | |
24113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24114 | ||
24115 | ac_header_preproc=no | |
24116 | fi | |
24117 | rm -f conftest.err conftest.$ac_ext | |
24118 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24119 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24120 | ||
24121 | # So? What about this header? | |
ac1cb8d3 VS |
24122 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24123 | yes:no: ) | |
a848cd7e SC |
24124 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24125 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24126 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
24127 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
24128 | ac_header_preproc=yes | |
a848cd7e | 24129 | ;; |
ac1cb8d3 | 24130 | no:yes:* ) |
a848cd7e SC |
24131 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
24132 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24133 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
24134 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
24135 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
24136 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
24137 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24138 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24139 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
24140 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24141 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
24142 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24143 | ( |
24144 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24145 | ## ----------------------------------------- ## |
24146 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24147 | ## ----------------------------------------- ## | |
a848cd7e SC |
24148 | _ASBOX |
24149 | ) | | |
24150 | sed "s/^/$as_me: WARNING: /" >&2 | |
24151 | ;; | |
24152 | esac | |
24153 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24154 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24155 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24157 | else | |
24158 | ac_cv_header_tiffio_h=$ac_header_preproc | |
24159 | fi | |
24160 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24161 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24162 | ||
24163 | fi | |
24164 | if test $ac_cv_header_tiffio_h = yes; then | |
24165 | ||
24166 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
24167 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
24168 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
24169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24170 | else | |
24171 | ac_check_lib_save_LIBS=$LIBS | |
24172 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
24173 | cat >conftest.$ac_ext <<_ACEOF | |
24174 | /* confdefs.h. */ | |
24175 | _ACEOF | |
24176 | cat confdefs.h >>conftest.$ac_ext | |
24177 | cat >>conftest.$ac_ext <<_ACEOF | |
24178 | /* end confdefs.h. */ | |
24179 | ||
24180 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24181 | #ifdef __cplusplus | |
24182 | extern "C" | |
24183 | #endif | |
24184 | /* We use char because int might match the return type of a gcc2 | |
24185 | builtin and then its argument prototype would still apply. */ | |
24186 | char TIFFError (); | |
24187 | int | |
24188 | main () | |
24189 | { | |
24190 | TIFFError (); | |
24191 | ; | |
24192 | return 0; | |
24193 | } | |
24194 | _ACEOF | |
24195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24197 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24198 | ac_status=$? |
ac1cb8d3 VS |
24199 | grep -v '^ *+' conftest.er1 >conftest.err |
24200 | rm -f conftest.er1 | |
24201 | cat conftest.err >&5 | |
a848cd7e SC |
24202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24203 | (exit $ac_status); } && | |
6ebeb4c7 | 24204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24206 | (eval $ac_try) 2>&5 | |
24207 | ac_status=$? | |
24208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24209 | (exit $ac_status); }; } && | |
24210 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24212 | (eval $ac_try) 2>&5 | |
24213 | ac_status=$? | |
24214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24215 | (exit $ac_status); }; }; then | |
24216 | ac_cv_lib_tiff_TIFFError=yes | |
24217 | else | |
24218 | echo "$as_me: failed program was:" >&5 | |
24219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24220 | ||
24221 | ac_cv_lib_tiff_TIFFError=no | |
24222 | fi | |
ac1cb8d3 VS |
24223 | rm -f conftest.err conftest.$ac_objext \ |
24224 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24225 | LIBS=$ac_check_lib_save_LIBS |
24226 | fi | |
24227 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
24228 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
24229 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
24230 | TIFF_LINK=" -ltiff" | |
24231 | fi | |
24232 | ||
24233 | ||
24234 | ||
24235 | fi | |
24236 | ||
24237 | ||
24238 | ||
24239 | if test "x$TIFF_LINK" = "x" ; then | |
24240 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
24241 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
24242 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
24243 | { (exit 1); exit 1; }; } | |
24244 | else | |
24245 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
24246 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
24247 | wxUSE_LIBTIFF=builtin | |
24248 | fi | |
24249 | else | |
24250 | wxUSE_LIBTIFF=sys | |
24251 | fi | |
24252 | fi | |
24253 | fi | |
24254 | ||
24255 | ||
47a7e797 MW |
24256 | if test "$wxUSE_WCHAR_T" != "yes"; then |
24257 | if test "$wxUSE_EXPAT" != "no"; then | |
24258 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
24259 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
24260 | wxUSE_EXPAT=no | |
24261 | fi | |
24262 | if test "$wxUSE_XML" != "no"; then | |
24263 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
24264 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
24265 | wxUSE_XML=no | |
24266 | fi | |
24267 | fi | |
24268 | ||
a848cd7e SC |
24269 | if test "$wxUSE_EXPAT" != "no"; then |
24270 | wxUSE_XML=yes | |
24271 | cat >>confdefs.h <<\_ACEOF | |
24272 | #define wxUSE_EXPAT 1 | |
24273 | _ACEOF | |
24274 | ||
24275 | cat >>confdefs.h <<\_ACEOF | |
24276 | #define wxUSE_XML 1 | |
24277 | _ACEOF | |
24278 | ||
24279 | ||
24280 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
24281 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24282 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24283 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24284 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24286 | fi | |
24287 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24288 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24289 | else | |
24290 | # Is the header compilable? | |
24291 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
24292 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
24293 | cat >conftest.$ac_ext <<_ACEOF | |
24294 | /* confdefs.h. */ | |
24295 | _ACEOF | |
24296 | cat confdefs.h >>conftest.$ac_ext | |
24297 | cat >>conftest.$ac_ext <<_ACEOF | |
24298 | /* end confdefs.h. */ | |
24299 | $ac_includes_default | |
24300 | #include <expat.h> | |
24301 | _ACEOF | |
24302 | rm -f conftest.$ac_objext | |
24303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24304 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24305 | ac_status=$? |
ac1cb8d3 VS |
24306 | grep -v '^ *+' conftest.er1 >conftest.err |
24307 | rm -f conftest.er1 | |
24308 | cat conftest.err >&5 | |
a848cd7e SC |
24309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24310 | (exit $ac_status); } && | |
6ebeb4c7 | 24311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24313 | (eval $ac_try) 2>&5 | |
24314 | ac_status=$? | |
24315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24316 | (exit $ac_status); }; } && | |
24317 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24319 | (eval $ac_try) 2>&5 | |
24320 | ac_status=$? | |
24321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24322 | (exit $ac_status); }; }; then | |
24323 | ac_header_compiler=yes | |
24324 | else | |
24325 | echo "$as_me: failed program was:" >&5 | |
24326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24327 | ||
24328 | ac_header_compiler=no | |
24329 | fi | |
ac1cb8d3 | 24330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24331 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24332 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24333 | ||
24334 | # Is the header present? | |
24335 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
24336 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
24337 | cat >conftest.$ac_ext <<_ACEOF | |
24338 | /* confdefs.h. */ | |
24339 | _ACEOF | |
24340 | cat confdefs.h >>conftest.$ac_ext | |
24341 | cat >>conftest.$ac_ext <<_ACEOF | |
24342 | /* end confdefs.h. */ | |
24343 | #include <expat.h> | |
24344 | _ACEOF | |
24345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24347 | ac_status=$? | |
24348 | grep -v '^ *+' conftest.er1 >conftest.err | |
24349 | rm -f conftest.er1 | |
24350 | cat conftest.err >&5 | |
24351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24352 | (exit $ac_status); } >/dev/null; then | |
24353 | if test -s conftest.err; then | |
24354 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24356 | else |
24357 | ac_cpp_err= | |
24358 | fi | |
24359 | else | |
24360 | ac_cpp_err=yes | |
24361 | fi | |
24362 | if test -z "$ac_cpp_err"; then | |
24363 | ac_header_preproc=yes | |
24364 | else | |
24365 | echo "$as_me: failed program was:" >&5 | |
24366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24367 | ||
24368 | ac_header_preproc=no | |
24369 | fi | |
24370 | rm -f conftest.err conftest.$ac_ext | |
24371 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24372 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24373 | ||
24374 | # So? What about this header? | |
ac1cb8d3 VS |
24375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24376 | yes:no: ) | |
a848cd7e SC |
24377 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24378 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24379 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
24380 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
24381 | ac_header_preproc=yes | |
a848cd7e | 24382 | ;; |
ac1cb8d3 | 24383 | no:yes:* ) |
a848cd7e SC |
24384 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
24385 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24386 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
24387 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
24388 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
24389 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
24390 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24391 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24392 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
24393 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24394 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
24395 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24396 | ( |
24397 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24398 | ## ----------------------------------------- ## |
24399 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24400 | ## ----------------------------------------- ## | |
a848cd7e SC |
24401 | _ASBOX |
24402 | ) | | |
24403 | sed "s/^/$as_me: WARNING: /" >&2 | |
24404 | ;; | |
24405 | esac | |
24406 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24407 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24408 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24410 | else | |
24411 | ac_cv_header_expat_h=$ac_header_preproc | |
24412 | fi | |
24413 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24414 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24415 | ||
24416 | fi | |
24417 | if test $ac_cv_header_expat_h = yes; then | |
24418 | found_expat_h=1 | |
24419 | fi | |
24420 | ||
24421 | ||
24422 | if test "x$found_expat_h" = "x1"; then | |
24423 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
24424 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
24425 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
24426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24427 | else | |
24428 | ||
24429 | ||
24430 | ||
24431 | ac_ext=cc | |
24432 | ac_cpp='$CXXCPP $CPPFLAGS' | |
24433 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24434 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24435 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24436 | ||
24437 | cat >conftest.$ac_ext <<_ACEOF | |
24438 | /* confdefs.h. */ | |
24439 | _ACEOF | |
24440 | cat confdefs.h >>conftest.$ac_ext | |
24441 | cat >>conftest.$ac_ext <<_ACEOF | |
24442 | /* end confdefs.h. */ | |
24443 | #include <expat.h> | |
24444 | int | |
24445 | main () | |
24446 | { | |
24447 | ||
24448 | ; | |
24449 | return 0; | |
24450 | } | |
24451 | _ACEOF | |
24452 | rm -f conftest.$ac_objext | |
24453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24454 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24455 | ac_status=$? |
ac1cb8d3 VS |
24456 | grep -v '^ *+' conftest.er1 >conftest.err |
24457 | rm -f conftest.er1 | |
24458 | cat conftest.err >&5 | |
a848cd7e SC |
24459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24460 | (exit $ac_status); } && | |
6ebeb4c7 | 24461 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24463 | (eval $ac_try) 2>&5 | |
24464 | ac_status=$? | |
24465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24466 | (exit $ac_status); }; } && | |
24467 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24469 | (eval $ac_try) 2>&5 | |
24470 | ac_status=$? | |
24471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24472 | (exit $ac_status); }; }; then | |
24473 | wx_cv_expat_is_not_broken=yes | |
24474 | else | |
24475 | echo "$as_me: failed program was:" >&5 | |
24476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24477 | ||
24478 | wx_cv_expat_is_not_broken=no | |
24479 | ||
24480 | fi | |
ac1cb8d3 | 24481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24482 | ac_ext=c |
24483 | ac_cpp='$CPP $CPPFLAGS' | |
24484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24487 | ||
24488 | ||
24489 | ||
24490 | fi | |
24491 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
24492 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
24493 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
24494 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
24495 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
24496 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
24497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24498 | else | |
24499 | ac_check_lib_save_LIBS=$LIBS | |
24500 | LIBS="-lexpat $LIBS" | |
24501 | cat >conftest.$ac_ext <<_ACEOF | |
24502 | /* confdefs.h. */ | |
24503 | _ACEOF | |
24504 | cat confdefs.h >>conftest.$ac_ext | |
24505 | cat >>conftest.$ac_ext <<_ACEOF | |
24506 | /* end confdefs.h. */ | |
24507 | ||
24508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24509 | #ifdef __cplusplus | |
24510 | extern "C" | |
24511 | #endif | |
24512 | /* We use char because int might match the return type of a gcc2 | |
24513 | builtin and then its argument prototype would still apply. */ | |
24514 | char XML_ParserCreate (); | |
24515 | int | |
24516 | main () | |
24517 | { | |
24518 | XML_ParserCreate (); | |
24519 | ; | |
24520 | return 0; | |
24521 | } | |
24522 | _ACEOF | |
24523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24525 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24526 | ac_status=$? |
ac1cb8d3 VS |
24527 | grep -v '^ *+' conftest.er1 >conftest.err |
24528 | rm -f conftest.er1 | |
24529 | cat conftest.err >&5 | |
a848cd7e SC |
24530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24531 | (exit $ac_status); } && | |
6ebeb4c7 | 24532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24534 | (eval $ac_try) 2>&5 | |
24535 | ac_status=$? | |
24536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24537 | (exit $ac_status); }; } && | |
24538 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24540 | (eval $ac_try) 2>&5 | |
24541 | ac_status=$? | |
24542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24543 | (exit $ac_status); }; }; then | |
24544 | ac_cv_lib_expat_XML_ParserCreate=yes | |
24545 | else | |
24546 | echo "$as_me: failed program was:" >&5 | |
24547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24548 | ||
24549 | ac_cv_lib_expat_XML_ParserCreate=no | |
24550 | fi | |
ac1cb8d3 VS |
24551 | rm -f conftest.err conftest.$ac_objext \ |
24552 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24553 | LIBS=$ac_check_lib_save_LIBS |
24554 | fi | |
24555 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
24556 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
24557 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
24558 | EXPAT_LINK=" -lexpat" | |
24559 | fi | |
24560 | ||
24561 | fi | |
24562 | fi | |
24563 | if test "x$EXPAT_LINK" = "x" ; then | |
24564 | if test "$wxUSE_EXPAT" = "sys" ; then | |
24565 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
24566 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
24567 | { (exit 1); exit 1; }; } | |
24568 | else | |
24569 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
24570 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
24571 | wxUSE_EXPAT=builtin | |
24572 | fi | |
24573 | else | |
24574 | wxUSE_EXPAT=sys | |
24575 | fi | |
24576 | fi | |
24577 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
24578 | ||
24579 | ||
24580 | subdirs="$subdirs src/expat" | |
24581 | ||
24582 | fi | |
24583 | fi | |
24584 | ||
24585 | ||
24586 | ||
24587 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
24588 | if test "${ac_cv_header_mspack_h+set}" = set; then |
24589 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24590 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24591 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24593 | fi | |
24594 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24595 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24596 | else | |
24597 | # Is the header compilable? | |
24598 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
24599 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
24600 | cat >conftest.$ac_ext <<_ACEOF | |
24601 | /* confdefs.h. */ | |
24602 | _ACEOF | |
24603 | cat confdefs.h >>conftest.$ac_ext | |
24604 | cat >>conftest.$ac_ext <<_ACEOF | |
24605 | /* end confdefs.h. */ | |
24606 | $ac_includes_default | |
24607 | #include <mspack.h> | |
24608 | _ACEOF | |
24609 | rm -f conftest.$ac_objext | |
24610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24611 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24612 | ac_status=$? |
ac1cb8d3 VS |
24613 | grep -v '^ *+' conftest.er1 >conftest.err |
24614 | rm -f conftest.er1 | |
24615 | cat conftest.err >&5 | |
a848cd7e SC |
24616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24617 | (exit $ac_status); } && | |
6ebeb4c7 | 24618 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24620 | (eval $ac_try) 2>&5 | |
24621 | ac_status=$? | |
24622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24623 | (exit $ac_status); }; } && | |
24624 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24626 | (eval $ac_try) 2>&5 | |
24627 | ac_status=$? | |
24628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24629 | (exit $ac_status); }; }; then | |
24630 | ac_header_compiler=yes | |
24631 | else | |
24632 | echo "$as_me: failed program was:" >&5 | |
24633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24634 | ||
24635 | ac_header_compiler=no | |
24636 | fi | |
ac1cb8d3 | 24637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24638 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24639 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24640 | ||
24641 | # Is the header present? | |
24642 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
24643 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
24644 | cat >conftest.$ac_ext <<_ACEOF | |
24645 | /* confdefs.h. */ | |
24646 | _ACEOF | |
24647 | cat confdefs.h >>conftest.$ac_ext | |
24648 | cat >>conftest.$ac_ext <<_ACEOF | |
24649 | /* end confdefs.h. */ | |
24650 | #include <mspack.h> | |
24651 | _ACEOF | |
24652 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24653 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24654 | ac_status=$? | |
24655 | grep -v '^ *+' conftest.er1 >conftest.err | |
24656 | rm -f conftest.er1 | |
24657 | cat conftest.err >&5 | |
24658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24659 | (exit $ac_status); } >/dev/null; then | |
24660 | if test -s conftest.err; then | |
24661 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24662 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24663 | else |
24664 | ac_cpp_err= | |
24665 | fi | |
24666 | else | |
24667 | ac_cpp_err=yes | |
24668 | fi | |
24669 | if test -z "$ac_cpp_err"; then | |
24670 | ac_header_preproc=yes | |
24671 | else | |
24672 | echo "$as_me: failed program was:" >&5 | |
24673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24674 | ||
24675 | ac_header_preproc=no | |
24676 | fi | |
24677 | rm -f conftest.err conftest.$ac_ext | |
24678 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24679 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24680 | ||
24681 | # So? What about this header? | |
ac1cb8d3 VS |
24682 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24683 | yes:no: ) | |
a848cd7e SC |
24684 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24685 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24686 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
24687 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
24688 | ac_header_preproc=yes | |
a848cd7e | 24689 | ;; |
ac1cb8d3 | 24690 | no:yes:* ) |
a848cd7e SC |
24691 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
24692 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24693 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
24694 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
24695 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
24696 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
24697 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24698 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24699 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
24700 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24701 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
24702 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24703 | ( |
24704 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24705 | ## ----------------------------------------- ## |
24706 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24707 | ## ----------------------------------------- ## | |
a848cd7e SC |
24708 | _ASBOX |
24709 | ) | | |
24710 | sed "s/^/$as_me: WARNING: /" >&2 | |
24711 | ;; | |
24712 | esac | |
24713 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24714 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24715 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24717 | else | |
24718 | ac_cv_header_mspack_h=$ac_header_preproc | |
24719 | fi | |
24720 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24721 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24722 | ||
24723 | fi | |
24724 | if test $ac_cv_header_mspack_h = yes; then | |
24725 | found_mspack_h=1 | |
24726 | fi | |
24727 | ||
24728 | ||
24729 | if test "x$found_mspack_h" = "x1"; then | |
24730 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
24731 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
24732 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
24733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24734 | else | |
24735 | ac_check_lib_save_LIBS=$LIBS | |
24736 | LIBS="-lmspack $LIBS" | |
24737 | cat >conftest.$ac_ext <<_ACEOF | |
24738 | /* confdefs.h. */ | |
24739 | _ACEOF | |
24740 | cat confdefs.h >>conftest.$ac_ext | |
24741 | cat >>conftest.$ac_ext <<_ACEOF | |
24742 | /* end confdefs.h. */ | |
24743 | ||
24744 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24745 | #ifdef __cplusplus | |
24746 | extern "C" | |
24747 | #endif | |
24748 | /* We use char because int might match the return type of a gcc2 | |
24749 | builtin and then its argument prototype would still apply. */ | |
24750 | char mspack_create_chm_decompressor (); | |
24751 | int | |
24752 | main () | |
24753 | { | |
24754 | mspack_create_chm_decompressor (); | |
24755 | ; | |
24756 | return 0; | |
24757 | } | |
24758 | _ACEOF | |
24759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24761 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24762 | ac_status=$? |
ac1cb8d3 VS |
24763 | grep -v '^ *+' conftest.er1 >conftest.err |
24764 | rm -f conftest.er1 | |
24765 | cat conftest.err >&5 | |
a848cd7e SC |
24766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24767 | (exit $ac_status); } && | |
6ebeb4c7 | 24768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24770 | (eval $ac_try) 2>&5 | |
24771 | ac_status=$? | |
24772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24773 | (exit $ac_status); }; } && | |
24774 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24776 | (eval $ac_try) 2>&5 | |
24777 | ac_status=$? | |
24778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24779 | (exit $ac_status); }; }; then | |
24780 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
24781 | else | |
24782 | echo "$as_me: failed program was:" >&5 | |
24783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24784 | ||
24785 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
24786 | fi | |
ac1cb8d3 VS |
24787 | rm -f conftest.err conftest.$ac_objext \ |
24788 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24789 | LIBS=$ac_check_lib_save_LIBS |
24790 | fi | |
24791 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
24792 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
24793 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
24794 | MSPACK_LINK=" -lmspack" | |
24795 | fi | |
24796 | ||
24797 | fi | |
24798 | if test "x$MSPACK_LINK" = "x" ; then | |
24799 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
24800 | fi |
24801 | fi | |
24802 | ||
24803 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
24804 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
24805 | #define wxUSE_LIBMSPACK 1 |
24806 | _ACEOF | |
24807 | ||
a848cd7e SC |
24808 | fi |
24809 | ||
24810 | ||
24811 | ||
24812 | AFMINSTALL= | |
24813 | WIN32INSTALL= | |
24814 | ||
24815 | TOOLKIT= | |
24816 | TOOLKIT_INCLUDE= | |
24817 | WIDGET_SET= | |
24818 | ||
24819 | if test "$USE_WIN32" = 1 ; then | |
24820 | ||
24821 | for ac_header in w32api.h | |
24822 | do | |
24823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24825 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24827 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24829 | fi | |
24830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24832 | else | |
24833 | # Is the header compilable? | |
24834 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24835 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
24836 | cat >conftest.$ac_ext <<_ACEOF | |
24837 | /* confdefs.h. */ | |
24838 | _ACEOF | |
24839 | cat confdefs.h >>conftest.$ac_ext | |
24840 | cat >>conftest.$ac_ext <<_ACEOF | |
24841 | /* end confdefs.h. */ | |
24842 | $ac_includes_default | |
24843 | #include <$ac_header> | |
24844 | _ACEOF | |
24845 | rm -f conftest.$ac_objext | |
24846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24848 | ac_status=$? |
ac1cb8d3 VS |
24849 | grep -v '^ *+' conftest.er1 >conftest.err |
24850 | rm -f conftest.er1 | |
24851 | cat conftest.err >&5 | |
a848cd7e SC |
24852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24853 | (exit $ac_status); } && | |
6ebeb4c7 | 24854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24856 | (eval $ac_try) 2>&5 | |
24857 | ac_status=$? | |
24858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24859 | (exit $ac_status); }; } && | |
24860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24862 | (eval $ac_try) 2>&5 | |
24863 | ac_status=$? | |
24864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24865 | (exit $ac_status); }; }; then | |
24866 | ac_header_compiler=yes | |
24867 | else | |
24868 | echo "$as_me: failed program was:" >&5 | |
24869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24870 | ||
24871 | ac_header_compiler=no | |
24872 | fi | |
ac1cb8d3 | 24873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24874 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24875 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24876 | ||
24877 | # Is the header present? | |
24878 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24879 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24880 | cat >conftest.$ac_ext <<_ACEOF | |
24881 | /* confdefs.h. */ | |
24882 | _ACEOF | |
24883 | cat confdefs.h >>conftest.$ac_ext | |
24884 | cat >>conftest.$ac_ext <<_ACEOF | |
24885 | /* end confdefs.h. */ | |
24886 | #include <$ac_header> | |
24887 | _ACEOF | |
24888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24890 | ac_status=$? | |
24891 | grep -v '^ *+' conftest.er1 >conftest.err | |
24892 | rm -f conftest.er1 | |
24893 | cat conftest.err >&5 | |
24894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24895 | (exit $ac_status); } >/dev/null; then | |
24896 | if test -s conftest.err; then | |
24897 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24898 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24899 | else |
24900 | ac_cpp_err= | |
24901 | fi | |
24902 | else | |
24903 | ac_cpp_err=yes | |
24904 | fi | |
24905 | if test -z "$ac_cpp_err"; then | |
24906 | ac_header_preproc=yes | |
24907 | else | |
24908 | echo "$as_me: failed program was:" >&5 | |
24909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24910 | ||
24911 | ac_header_preproc=no | |
24912 | fi | |
24913 | rm -f conftest.err conftest.$ac_ext | |
24914 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24915 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24916 | ||
24917 | # So? What about this header? | |
ac1cb8d3 VS |
24918 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24919 | yes:no: ) | |
a848cd7e SC |
24920 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24921 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24922 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24923 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24924 | ac_header_preproc=yes | |
a848cd7e | 24925 | ;; |
ac1cb8d3 | 24926 | no:yes:* ) |
a848cd7e SC |
24927 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24928 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24929 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24930 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24931 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24932 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24933 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24934 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24935 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24936 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24937 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24938 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24939 | ( |
24940 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24941 | ## ----------------------------------------- ## |
24942 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24943 | ## ----------------------------------------- ## | |
a848cd7e SC |
24944 | _ASBOX |
24945 | ) | | |
24946 | sed "s/^/$as_me: WARNING: /" >&2 | |
24947 | ;; | |
24948 | esac | |
24949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24953 | else | |
ac1cb8d3 | 24954 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
24955 | fi |
24956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24958 | ||
24959 | fi | |
24960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24961 | cat >>confdefs.h <<_ACEOF | |
24962 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24963 | _ACEOF | |
24964 | ||
24965 | fi | |
24966 | ||
24967 | done | |
24968 | ||
24969 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24970 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24971 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24972 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24974 | fi | |
24975 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24976 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24977 | else | |
24978 | # Is the header compilable? | |
24979 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
24980 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
24981 | cat >conftest.$ac_ext <<_ACEOF | |
24982 | /* confdefs.h. */ | |
24983 | _ACEOF | |
24984 | cat confdefs.h >>conftest.$ac_ext | |
24985 | cat >>conftest.$ac_ext <<_ACEOF | |
24986 | /* end confdefs.h. */ | |
24987 | $ac_includes_default | |
24988 | #include <windows.h> | |
24989 | _ACEOF | |
24990 | rm -f conftest.$ac_objext | |
24991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24992 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24993 | ac_status=$? |
ac1cb8d3 VS |
24994 | grep -v '^ *+' conftest.er1 >conftest.err |
24995 | rm -f conftest.er1 | |
24996 | cat conftest.err >&5 | |
a848cd7e SC |
24997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24998 | (exit $ac_status); } && | |
6ebeb4c7 | 24999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25001 | (eval $ac_try) 2>&5 | |
25002 | ac_status=$? | |
25003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25004 | (exit $ac_status); }; } && | |
25005 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25007 | (eval $ac_try) 2>&5 | |
25008 | ac_status=$? | |
25009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25010 | (exit $ac_status); }; }; then | |
25011 | ac_header_compiler=yes | |
25012 | else | |
25013 | echo "$as_me: failed program was:" >&5 | |
25014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25015 | ||
25016 | ac_header_compiler=no | |
25017 | fi | |
ac1cb8d3 | 25018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25019 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25020 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25021 | ||
25022 | # Is the header present? | |
25023 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25024 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25025 | cat >conftest.$ac_ext <<_ACEOF | |
25026 | /* confdefs.h. */ | |
25027 | _ACEOF | |
25028 | cat confdefs.h >>conftest.$ac_ext | |
25029 | cat >>conftest.$ac_ext <<_ACEOF | |
25030 | /* end confdefs.h. */ | |
25031 | #include <windows.h> | |
25032 | _ACEOF | |
25033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25035 | ac_status=$? | |
25036 | grep -v '^ *+' conftest.er1 >conftest.err | |
25037 | rm -f conftest.er1 | |
25038 | cat conftest.err >&5 | |
25039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25040 | (exit $ac_status); } >/dev/null; then | |
25041 | if test -s conftest.err; then | |
25042 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25044 | else |
25045 | ac_cpp_err= | |
25046 | fi | |
25047 | else | |
25048 | ac_cpp_err=yes | |
25049 | fi | |
25050 | if test -z "$ac_cpp_err"; then | |
25051 | ac_header_preproc=yes | |
25052 | else | |
25053 | echo "$as_me: failed program was:" >&5 | |
25054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25055 | ||
25056 | ac_header_preproc=no | |
25057 | fi | |
25058 | rm -f conftest.err conftest.$ac_ext | |
25059 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25060 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25061 | ||
25062 | # So? What about this header? | |
ac1cb8d3 VS |
25063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25064 | yes:no: ) | |
a848cd7e SC |
25065 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25066 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25067 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
25068 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
25069 | ac_header_preproc=yes | |
a848cd7e | 25070 | ;; |
ac1cb8d3 | 25071 | no:yes:* ) |
a848cd7e SC |
25072 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
25073 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25074 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
25075 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
25076 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
25077 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
25078 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25079 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25080 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
25081 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25082 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
25083 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25084 | ( |
25085 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25086 | ## ----------------------------------------- ## |
25087 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25088 | ## ----------------------------------------- ## | |
a848cd7e SC |
25089 | _ASBOX |
25090 | ) | | |
25091 | sed "s/^/$as_me: WARNING: /" >&2 | |
25092 | ;; | |
25093 | esac | |
25094 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25095 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25096 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25098 | else | |
25099 | ac_cv_header_windows_h=$ac_header_preproc | |
25100 | fi | |
25101 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25102 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25103 | ||
25104 | fi | |
25105 | if test $ac_cv_header_windows_h = yes; then | |
25106 | : | |
25107 | else | |
25108 | ||
25109 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
25110 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
25111 | { (exit 1); exit 1; }; } | |
25112 | ||
25113 | fi | |
25114 | ||
25115 | ||
25116 | ||
25117 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
25118 | ||
25119 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
25120 | LIBS="$LIBS -loleacc" | |
25121 | fi | |
25122 | ||
25123 | case "${host}" in | |
25124 | *-*-cygwin* ) | |
25125 | LIBS="$LIBS -lkernel32 -luser32" | |
25126 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
25127 | esac | |
25128 | ||
25129 | if test "$wxUSE_ODBC" = "sys" ; then | |
25130 | wxUSE_ODBC = "yes" | |
25131 | fi | |
25132 | if test "$wxUSE_ODBC" = "yes" ; then | |
25133 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
25134 | cat >>confdefs.h <<\_ACEOF | |
25135 | #define wxUSE_ODBC 1 | |
25136 | _ACEOF | |
25137 | ||
25138 | fi | |
25139 | ||
25140 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
25141 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
25142 | ||
25143 | WIN32INSTALL=win32install | |
25144 | fi | |
25145 | ||
25146 | if test "$wxUSE_GUI" = "yes"; then | |
25147 | USE_GUI=1 | |
25148 | ||
25149 | GUI_TK_LIBRARY= | |
25150 | ||
25151 | WXGTK12= | |
25152 | WXGTK127= | |
25153 | WXGTK20= | |
25154 | WXGPE= | |
25155 | ||
207bc66c RN |
25156 | if test "$wxUSE_COCOA" = 1 ; then |
25157 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
25158 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
25159 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
25160 | wxUSE_PRINTING_ARCHITECTURE=no | |
25161 | fi | |
25162 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
25163 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
25164 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
25165 | wxUSE_DRAG_AND_DROP=no | |
25166 | fi | |
25167 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
25168 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
25169 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
25170 | wxUSE_DRAGIMAGE=no | |
25171 | fi | |
25172 | fi | |
25173 | ||
a848cd7e SC |
25174 | if test "$wxUSE_MSW" = 1 ; then |
25175 | TOOLKIT=MSW | |
25176 | GUIDIST=MSW_DIST | |
25177 | ||
ceec2216 | 25178 | case "${host}" in |
a848cd7e SC |
25179 | *-*-mingw32* ) |
25180 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
25181 | esac | |
25182 | fi | |
25183 | ||
25184 | if test "$wxUSE_GTK" = 1; then | |
25185 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
25186 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
25187 | ||
25188 | gtk_version_cached=1 | |
25189 | if test "${wx_cv_lib_gtk+set}" = set; then | |
25190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25191 | else | |
25192 | ||
25193 | gtk_version_cached=0 | |
25194 | echo "$as_me:$LINENO: result: " >&5 | |
25195 | echo "${ECHO_T}" >&6 | |
25196 | ||
25197 | GTK_MODULES= | |
25198 | if test "$wxUSE_THREADS" = "yes"; then | |
25199 | GTK_MODULES=gthread | |
25200 | fi | |
25201 | ||
f597b41c | 25202 | wx_cv_lib_gtk= |
5001df0d MW |
25203 | if test "x$wxGTK_VERSION" != "x1" |
25204 | then | |
25205 | case "${host}" in | |
25206 | *-*-solaris2* ) | |
25207 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25208 | enable_gtktest=no | |
25209 | fi | |
25210 | esac | |
25211 | ||
a848cd7e SC |
25212 | # Check whether --enable-gtktest or --disable-gtktest was given. |
25213 | if test "${enable_gtktest+set}" = set; then | |
25214 | enableval="$enable_gtktest" | |
25215 | ||
25216 | else | |
25217 | enable_gtktest=yes | |
25218 | fi; | |
25219 | ||
25220 | pkg_config_args=gtk+-2.0 | |
25221 | for module in . $GTK_MODULES | |
25222 | do | |
25223 | case "$module" in | |
25224 | gthread) | |
25225 | pkg_config_args="$pkg_config_args gthread-2.0" | |
25226 | ;; | |
25227 | esac | |
25228 | done | |
25229 | ||
25230 | no_gtk="" | |
25231 | ||
25232 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25233 | set dummy pkg-config; ac_word=$2 | |
25234 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25236 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25238 | else | |
25239 | case $PKG_CONFIG in | |
25240 | [\\/]* | ?:[\\/]*) | |
25241 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25242 | ;; | |
25243 | *) | |
25244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25245 | for as_dir in $PATH | |
25246 | do | |
25247 | IFS=$as_save_IFS | |
25248 | test -z "$as_dir" && as_dir=. | |
25249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25250 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25251 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25253 | break 2 | |
25254 | fi | |
25255 | done | |
25256 | done | |
25257 | ||
25258 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25259 | ;; | |
25260 | esac | |
25261 | fi | |
25262 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25263 | ||
25264 | if test -n "$PKG_CONFIG"; then | |
25265 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25266 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25267 | else | |
25268 | echo "$as_me:$LINENO: result: no" >&5 | |
25269 | echo "${ECHO_T}no" >&6 | |
25270 | fi | |
25271 | ||
25272 | ||
25273 | if test x$PKG_CONFIG != xno ; then | |
25274 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
25275 | : | |
25276 | else | |
c2218763 | 25277 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
25278 | no_gtk=yes |
25279 | PKG_CONFIG=no | |
25280 | fi | |
25281 | else | |
25282 | no_gtk=yes | |
25283 | fi | |
25284 | ||
25285 | min_gtk_version=2.0.0 | |
25286 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
25287 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
25288 | ||
25289 | if test x$PKG_CONFIG != xno ; then | |
25290 | ## don't try to run the test against uninstalled libtool libs | |
25291 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
25292 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
25293 | enable_gtktest=no | |
25294 | fi | |
25295 | ||
25296 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
25297 | : | |
25298 | else | |
25299 | no_gtk=yes | |
25300 | fi | |
25301 | fi | |
25302 | ||
25303 | if test x"$no_gtk" = x ; then | |
25304 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
25305 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
25306 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25307 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25308 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25309 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25310 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25311 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25312 | if test "x$enable_gtktest" = "xyes" ; then | |
25313 | ac_save_CFLAGS="$CFLAGS" | |
25314 | ac_save_LIBS="$LIBS" | |
25315 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25316 | LIBS="$GTK_LIBS $LIBS" | |
25317 | rm -f conf.gtktest | |
25318 | if test "$cross_compiling" = yes; then | |
25319 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25320 | else | |
25321 | cat >conftest.$ac_ext <<_ACEOF | |
25322 | /* confdefs.h. */ | |
25323 | _ACEOF | |
25324 | cat confdefs.h >>conftest.$ac_ext | |
25325 | cat >>conftest.$ac_ext <<_ACEOF | |
25326 | /* end confdefs.h. */ | |
25327 | ||
25328 | #include <gtk/gtk.h> | |
25329 | #include <stdio.h> | |
25330 | #include <stdlib.h> | |
25331 | ||
25332 | int | |
25333 | main () | |
25334 | { | |
25335 | int major, minor, micro; | |
25336 | char *tmp_version; | |
25337 | ||
25338 | system ("touch conf.gtktest"); | |
25339 | ||
25340 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25341 | tmp_version = g_strdup("$min_gtk_version"); | |
25342 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25343 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25344 | exit(1); | |
25345 | } | |
25346 | ||
25347 | if ((gtk_major_version != $gtk_config_major_version) || | |
25348 | (gtk_minor_version != $gtk_config_minor_version) || | |
25349 | (gtk_micro_version != $gtk_config_micro_version)) | |
25350 | { | |
25351 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25352 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25353 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25354 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
25355 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25356 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25357 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25358 | printf("*** required on your system.\n"); | |
25359 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
25360 | printf("*** to point to the correct configuration files\n"); | |
25361 | } | |
25362 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25363 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25364 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25365 | { | |
25366 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25367 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25368 | printf("*** library (version %d.%d.%d)\n", | |
25369 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25370 | } | |
25371 | else | |
25372 | { | |
25373 | if ((gtk_major_version > major) || | |
25374 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25375 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25376 | { | |
25377 | return 0; | |
25378 | } | |
25379 | else | |
25380 | { | |
25381 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25382 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25383 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25384 | major, minor, micro); | |
25385 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25386 | printf("***\n"); | |
25387 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25388 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
25389 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25390 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
25391 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
25392 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25393 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25394 | } | |
25395 | } | |
25396 | return 1; | |
25397 | } | |
25398 | ||
25399 | _ACEOF | |
25400 | rm -f conftest$ac_exeext | |
25401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25402 | (eval $ac_link) 2>&5 | |
25403 | ac_status=$? | |
25404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25407 | (eval $ac_try) 2>&5 | |
25408 | ac_status=$? | |
25409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25410 | (exit $ac_status); }; }; then | |
25411 | : | |
25412 | else | |
25413 | echo "$as_me: program exited with status $ac_status" >&5 | |
25414 | echo "$as_me: failed program was:" >&5 | |
25415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25416 | ||
25417 | ( exit $ac_status ) | |
25418 | no_gtk=yes | |
25419 | fi | |
ac1cb8d3 | 25420 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25421 | fi |
25422 | CFLAGS="$ac_save_CFLAGS" | |
25423 | LIBS="$ac_save_LIBS" | |
25424 | fi | |
25425 | fi | |
25426 | if test "x$no_gtk" = x ; then | |
25427 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
25428 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
25429 | wx_cv_lib_gtk=2.0 | |
25430 | else | |
25431 | echo "$as_me:$LINENO: result: no" >&5 | |
25432 | echo "${ECHO_T}no" >&6 | |
25433 | if test "$PKG_CONFIG" = "no" ; then | |
25434 | echo "*** A new enough version of pkg-config was not found." | |
25435 | echo "*** See http://pkgconfig.sourceforge.net" | |
25436 | else | |
25437 | if test -f conf.gtktest ; then | |
25438 | : | |
25439 | else | |
25440 | echo "*** Could not run GTK+ test program, checking why..." | |
25441 | ac_save_CFLAGS="$CFLAGS" | |
25442 | ac_save_LIBS="$LIBS" | |
25443 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25444 | LIBS="$LIBS $GTK_LIBS" | |
25445 | cat >conftest.$ac_ext <<_ACEOF | |
25446 | /* confdefs.h. */ | |
25447 | _ACEOF | |
25448 | cat confdefs.h >>conftest.$ac_ext | |
25449 | cat >>conftest.$ac_ext <<_ACEOF | |
25450 | /* end confdefs.h. */ | |
25451 | ||
25452 | #include <gtk/gtk.h> | |
25453 | #include <stdio.h> | |
25454 | ||
25455 | int | |
25456 | main () | |
25457 | { | |
25458 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25459 | ; | |
25460 | return 0; | |
25461 | } | |
25462 | _ACEOF | |
25463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25465 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25466 | ac_status=$? |
ac1cb8d3 VS |
25467 | grep -v '^ *+' conftest.er1 >conftest.err |
25468 | rm -f conftest.er1 | |
25469 | cat conftest.err >&5 | |
a848cd7e SC |
25470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25471 | (exit $ac_status); } && | |
6ebeb4c7 | 25472 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25474 | (eval $ac_try) 2>&5 | |
25475 | ac_status=$? | |
25476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25477 | (exit $ac_status); }; } && | |
25478 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25480 | (eval $ac_try) 2>&5 | |
25481 | ac_status=$? | |
25482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25483 | (exit $ac_status); }; }; then | |
25484 | echo "*** The test program compiled, but did not run. This usually means" | |
25485 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
25486 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
25487 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25488 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25489 | echo "*** is required on your system" | |
25490 | echo "***" | |
25491 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25492 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25493 | else | |
25494 | echo "$as_me: failed program was:" >&5 | |
25495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25496 | ||
25497 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25498 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
25499 | fi | |
ac1cb8d3 VS |
25500 | rm -f conftest.err conftest.$ac_objext \ |
25501 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25502 | CFLAGS="$ac_save_CFLAGS" |
25503 | LIBS="$ac_save_LIBS" | |
25504 | fi | |
25505 | fi | |
25506 | GTK_CFLAGS="" | |
25507 | GTK_LIBS="" | |
25508 | : | |
25509 | fi | |
25510 | ||
25511 | ||
25512 | rm -f conf.gtktest | |
25513 | ||
5001df0d MW |
25514 | |
25515 | case "${host}" in | |
25516 | *-*-solaris2* ) | |
25517 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25518 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
25519 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
25520 | fi | |
25521 | if test "$wxUSE_SHARED" != "yes"; then | |
25522 | GTK_LIBS="$GTK_LIBS -lX11" | |
25523 | fi | |
25524 | esac | |
f597b41c MW |
25525 | fi |
25526 | ||
f34ca037 MW |
25527 | if test -z "$wx_cv_lib_gtk"; then |
25528 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
25529 | |
25530 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25531 | if test "${with_gtk_prefix+set}" = set; then | |
25532 | withval="$with_gtk_prefix" | |
25533 | gtk_config_prefix="$withval" | |
25534 | else | |
25535 | gtk_config_prefix="" | |
25536 | fi; | |
25537 | ||
25538 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25539 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25540 | withval="$with_gtk_exec_prefix" | |
25541 | gtk_config_exec_prefix="$withval" | |
25542 | else | |
25543 | gtk_config_exec_prefix="" | |
25544 | fi; | |
25545 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25546 | if test "${enable_gtktest+set}" = set; then | |
25547 | enableval="$enable_gtktest" | |
25548 | ||
25549 | else | |
25550 | enable_gtktest=yes | |
25551 | fi; | |
25552 | ||
25553 | for module in . $GTK_MODULES | |
25554 | do | |
25555 | case "$module" in | |
25556 | gthread) | |
25557 | gtk_config_args="$gtk_config_args gthread" | |
25558 | ;; | |
25559 | esac | |
25560 | done | |
25561 | ||
25562 | if test x$gtk_config_exec_prefix != x ; then | |
25563 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25564 | if test x${GTK_CONFIG+set} != xset ; then | |
25565 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25566 | fi | |
25567 | fi | |
25568 | if test x$gtk_config_prefix != x ; then | |
25569 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25570 | if test x${GTK_CONFIG+set} != xset ; then | |
25571 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25572 | fi | |
25573 | fi | |
25574 | ||
25575 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25576 | set dummy gtk-config; ac_word=$2 | |
25577 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25579 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25581 | else | |
25582 | case $GTK_CONFIG in | |
25583 | [\\/]* | ?:[\\/]*) | |
25584 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25585 | ;; | |
25586 | *) | |
25587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25588 | for as_dir in $PATH | |
25589 | do | |
25590 | IFS=$as_save_IFS | |
25591 | test -z "$as_dir" && as_dir=. | |
25592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25593 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25594 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25596 | break 2 | |
25597 | fi | |
25598 | done | |
25599 | done | |
25600 | ||
25601 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25602 | ;; | |
25603 | esac | |
25604 | fi | |
25605 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25606 | ||
25607 | if test -n "$GTK_CONFIG"; then | |
25608 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25609 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25610 | else | |
25611 | echo "$as_me:$LINENO: result: no" >&5 | |
25612 | echo "${ECHO_T}no" >&6 | |
25613 | fi | |
25614 | ||
25615 | min_gtk_version=1.2.7 | |
25616 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25617 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25618 | no_gtk="" | |
25619 | if test "$GTK_CONFIG" = "no" ; then | |
25620 | no_gtk=yes | |
25621 | else | |
25622 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25623 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25624 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25625 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25626 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25627 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25628 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25629 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25630 | if test "x$enable_gtktest" = "xyes" ; then | |
25631 | ac_save_CFLAGS="$CFLAGS" | |
25632 | ac_save_LIBS="$LIBS" | |
25633 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25634 | LIBS="$GTK_LIBS $LIBS" | |
25635 | rm -f conf.gtktest | |
25636 | if test "$cross_compiling" = yes; then | |
25637 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25638 | else | |
25639 | cat >conftest.$ac_ext <<_ACEOF | |
25640 | /* confdefs.h. */ | |
25641 | _ACEOF | |
25642 | cat confdefs.h >>conftest.$ac_ext | |
25643 | cat >>conftest.$ac_ext <<_ACEOF | |
25644 | /* end confdefs.h. */ | |
25645 | ||
25646 | #include <gtk/gtk.h> | |
25647 | #include <stdio.h> | |
25648 | #include <stdlib.h> | |
25649 | ||
25650 | int | |
25651 | main () | |
25652 | { | |
25653 | int major, minor, micro; | |
25654 | char *tmp_version; | |
25655 | ||
25656 | system ("touch conf.gtktest"); | |
25657 | ||
25658 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25659 | tmp_version = g_strdup("$min_gtk_version"); | |
25660 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25661 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25662 | exit(1); | |
25663 | } | |
25664 | ||
25665 | if ((gtk_major_version != $gtk_config_major_version) || | |
25666 | (gtk_minor_version != $gtk_config_minor_version) || | |
25667 | (gtk_micro_version != $gtk_config_micro_version)) | |
25668 | { | |
25669 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25670 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25671 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25672 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25673 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25674 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25675 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25676 | printf("*** required on your system.\n"); | |
25677 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25678 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25679 | printf("*** before re-running configure\n"); | |
25680 | } | |
25681 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25682 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25683 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25684 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25685 | { | |
25686 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25687 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25688 | printf("*** library (version %d.%d.%d)\n", | |
25689 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25690 | } | |
25691 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25692 | else | |
25693 | { | |
25694 | if ((gtk_major_version > major) || | |
25695 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25696 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25697 | { | |
25698 | return 0; | |
25699 | } | |
25700 | else | |
25701 | { | |
25702 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25703 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25704 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25705 | major, minor, micro); | |
25706 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25707 | printf("***\n"); | |
25708 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25709 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25710 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25711 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25712 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25713 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25714 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25715 | } | |
25716 | } | |
25717 | return 1; | |
25718 | } | |
25719 | ||
25720 | _ACEOF | |
25721 | rm -f conftest$ac_exeext | |
25722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25723 | (eval $ac_link) 2>&5 | |
25724 | ac_status=$? | |
25725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25728 | (eval $ac_try) 2>&5 | |
25729 | ac_status=$? | |
25730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25731 | (exit $ac_status); }; }; then | |
25732 | : | |
25733 | else | |
25734 | echo "$as_me: program exited with status $ac_status" >&5 | |
25735 | echo "$as_me: failed program was:" >&5 | |
25736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25737 | ||
25738 | ( exit $ac_status ) | |
25739 | no_gtk=yes | |
25740 | fi | |
ac1cb8d3 | 25741 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25742 | fi |
25743 | CFLAGS="$ac_save_CFLAGS" | |
25744 | LIBS="$ac_save_LIBS" | |
25745 | fi | |
25746 | fi | |
25747 | if test "x$no_gtk" = x ; then | |
25748 | echo "$as_me:$LINENO: result: yes" >&5 | |
25749 | echo "${ECHO_T}yes" >&6 | |
25750 | wx_cv_lib_gtk=1.2.7 | |
25751 | else | |
25752 | echo "$as_me:$LINENO: result: no" >&5 | |
25753 | echo "${ECHO_T}no" >&6 | |
25754 | if test "$GTK_CONFIG" = "no" ; then | |
25755 | echo "*** The gtk-config script installed by GTK could not be found" | |
25756 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25757 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25758 | echo "*** full path to gtk-config." | |
25759 | else | |
25760 | if test -f conf.gtktest ; then | |
25761 | : | |
25762 | else | |
25763 | echo "*** Could not run GTK test program, checking why..." | |
25764 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25765 | LIBS="$LIBS $GTK_LIBS" | |
25766 | cat >conftest.$ac_ext <<_ACEOF | |
25767 | /* confdefs.h. */ | |
25768 | _ACEOF | |
25769 | cat confdefs.h >>conftest.$ac_ext | |
25770 | cat >>conftest.$ac_ext <<_ACEOF | |
25771 | /* end confdefs.h. */ | |
25772 | ||
25773 | #include <gtk/gtk.h> | |
25774 | #include <stdio.h> | |
25775 | ||
25776 | int | |
25777 | main () | |
25778 | { | |
25779 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25780 | ; | |
25781 | return 0; | |
25782 | } | |
25783 | _ACEOF | |
25784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25786 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25787 | ac_status=$? |
ac1cb8d3 VS |
25788 | grep -v '^ *+' conftest.er1 >conftest.err |
25789 | rm -f conftest.er1 | |
25790 | cat conftest.err >&5 | |
a848cd7e SC |
25791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25792 | (exit $ac_status); } && | |
6ebeb4c7 | 25793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25795 | (eval $ac_try) 2>&5 | |
25796 | ac_status=$? | |
25797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25798 | (exit $ac_status); }; } && | |
25799 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25801 | (eval $ac_try) 2>&5 | |
25802 | ac_status=$? | |
25803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25804 | (exit $ac_status); }; }; then | |
25805 | echo "*** The test program compiled, but did not run. This usually means" | |
25806 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25807 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25808 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25809 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25810 | echo "*** is required on your system" | |
25811 | echo "***" | |
25812 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25813 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25814 | echo "***" | |
25815 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25816 | echo "*** came with the system with the command" | |
25817 | echo "***" | |
25818 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25819 | else | |
25820 | echo "$as_me: failed program was:" >&5 | |
25821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25822 | ||
25823 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25824 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25825 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25826 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25827 | fi | |
ac1cb8d3 VS |
25828 | rm -f conftest.err conftest.$ac_objext \ |
25829 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25830 | CFLAGS="$ac_save_CFLAGS" |
25831 | LIBS="$ac_save_LIBS" | |
25832 | fi | |
25833 | fi | |
25834 | GTK_CFLAGS="" | |
25835 | GTK_LIBS="" | |
25836 | : | |
25837 | fi | |
25838 | ||
25839 | ||
25840 | rm -f conf.gtktest | |
25841 | ||
25842 | ||
f34ca037 | 25843 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
25844 | |
25845 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25846 | if test "${with_gtk_prefix+set}" = set; then | |
25847 | withval="$with_gtk_prefix" | |
25848 | gtk_config_prefix="$withval" | |
25849 | else | |
25850 | gtk_config_prefix="" | |
25851 | fi; | |
25852 | ||
25853 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25854 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25855 | withval="$with_gtk_exec_prefix" | |
25856 | gtk_config_exec_prefix="$withval" | |
25857 | else | |
25858 | gtk_config_exec_prefix="" | |
25859 | fi; | |
25860 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25861 | if test "${enable_gtktest+set}" = set; then | |
25862 | enableval="$enable_gtktest" | |
25863 | ||
25864 | else | |
25865 | enable_gtktest=yes | |
25866 | fi; | |
25867 | ||
25868 | for module in . $GTK_MODULES | |
25869 | do | |
25870 | case "$module" in | |
25871 | gthread) | |
25872 | gtk_config_args="$gtk_config_args gthread" | |
25873 | ;; | |
25874 | esac | |
25875 | done | |
25876 | ||
25877 | if test x$gtk_config_exec_prefix != x ; then | |
25878 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25879 | if test x${GTK_CONFIG+set} != xset ; then | |
25880 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25881 | fi | |
25882 | fi | |
25883 | if test x$gtk_config_prefix != x ; then | |
25884 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25885 | if test x${GTK_CONFIG+set} != xset ; then | |
25886 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25887 | fi | |
25888 | fi | |
25889 | ||
25890 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25891 | set dummy gtk-config; ac_word=$2 | |
25892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25894 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25896 | else | |
25897 | case $GTK_CONFIG in | |
25898 | [\\/]* | ?:[\\/]*) | |
25899 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25900 | ;; | |
25901 | *) | |
25902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25903 | for as_dir in $PATH | |
25904 | do | |
25905 | IFS=$as_save_IFS | |
25906 | test -z "$as_dir" && as_dir=. | |
25907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25909 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25911 | break 2 | |
25912 | fi | |
25913 | done | |
25914 | done | |
25915 | ||
25916 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25917 | ;; | |
25918 | esac | |
25919 | fi | |
25920 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25921 | ||
25922 | if test -n "$GTK_CONFIG"; then | |
25923 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25924 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25925 | else | |
25926 | echo "$as_me:$LINENO: result: no" >&5 | |
25927 | echo "${ECHO_T}no" >&6 | |
25928 | fi | |
25929 | ||
25930 | min_gtk_version=1.2.3 | |
25931 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25932 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25933 | no_gtk="" | |
25934 | if test "$GTK_CONFIG" = "no" ; then | |
25935 | no_gtk=yes | |
25936 | else | |
25937 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25938 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25939 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25940 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25941 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25942 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25943 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25944 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25945 | if test "x$enable_gtktest" = "xyes" ; then | |
25946 | ac_save_CFLAGS="$CFLAGS" | |
25947 | ac_save_LIBS="$LIBS" | |
25948 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25949 | LIBS="$GTK_LIBS $LIBS" | |
25950 | rm -f conf.gtktest | |
25951 | if test "$cross_compiling" = yes; then | |
25952 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25953 | else | |
25954 | cat >conftest.$ac_ext <<_ACEOF | |
25955 | /* confdefs.h. */ | |
25956 | _ACEOF | |
25957 | cat confdefs.h >>conftest.$ac_ext | |
25958 | cat >>conftest.$ac_ext <<_ACEOF | |
25959 | /* end confdefs.h. */ | |
25960 | ||
25961 | #include <gtk/gtk.h> | |
25962 | #include <stdio.h> | |
25963 | #include <stdlib.h> | |
25964 | ||
25965 | int | |
25966 | main () | |
25967 | { | |
25968 | int major, minor, micro; | |
25969 | char *tmp_version; | |
25970 | ||
25971 | system ("touch conf.gtktest"); | |
25972 | ||
25973 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25974 | tmp_version = g_strdup("$min_gtk_version"); | |
25975 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25976 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25977 | exit(1); | |
25978 | } | |
25979 | ||
25980 | if ((gtk_major_version != $gtk_config_major_version) || | |
25981 | (gtk_minor_version != $gtk_config_minor_version) || | |
25982 | (gtk_micro_version != $gtk_config_micro_version)) | |
25983 | { | |
25984 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25985 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25986 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25987 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25988 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25989 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25990 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25991 | printf("*** required on your system.\n"); | |
25992 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25993 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25994 | printf("*** before re-running configure\n"); | |
25995 | } | |
25996 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25997 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25998 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25999 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26000 | { | |
26001 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26002 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26003 | printf("*** library (version %d.%d.%d)\n", | |
26004 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26005 | } | |
26006 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26007 | else | |
26008 | { | |
26009 | if ((gtk_major_version > major) || | |
26010 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26011 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26012 | { | |
26013 | return 0; | |
26014 | } | |
26015 | else | |
26016 | { | |
26017 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26018 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26019 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26020 | major, minor, micro); | |
26021 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26022 | printf("***\n"); | |
26023 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26024 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26025 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26026 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26027 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26028 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26029 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26030 | } | |
26031 | } | |
26032 | return 1; | |
26033 | } | |
26034 | ||
26035 | _ACEOF | |
26036 | rm -f conftest$ac_exeext | |
26037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26038 | (eval $ac_link) 2>&5 | |
26039 | ac_status=$? | |
26040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26041 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26043 | (eval $ac_try) 2>&5 | |
26044 | ac_status=$? | |
26045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26046 | (exit $ac_status); }; }; then | |
26047 | : | |
26048 | else | |
26049 | echo "$as_me: program exited with status $ac_status" >&5 | |
26050 | echo "$as_me: failed program was:" >&5 | |
26051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26052 | ||
26053 | ( exit $ac_status ) | |
26054 | no_gtk=yes | |
26055 | fi | |
ac1cb8d3 | 26056 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26057 | fi |
26058 | CFLAGS="$ac_save_CFLAGS" | |
26059 | LIBS="$ac_save_LIBS" | |
26060 | fi | |
26061 | fi | |
26062 | if test "x$no_gtk" = x ; then | |
26063 | echo "$as_me:$LINENO: result: yes" >&5 | |
26064 | echo "${ECHO_T}yes" >&6 | |
26065 | wx_cv_lib_gtk=1.2.3 | |
26066 | else | |
26067 | echo "$as_me:$LINENO: result: no" >&5 | |
26068 | echo "${ECHO_T}no" >&6 | |
26069 | if test "$GTK_CONFIG" = "no" ; then | |
26070 | echo "*** The gtk-config script installed by GTK could not be found" | |
26071 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26072 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26073 | echo "*** full path to gtk-config." | |
26074 | else | |
26075 | if test -f conf.gtktest ; then | |
26076 | : | |
26077 | else | |
26078 | echo "*** Could not run GTK test program, checking why..." | |
26079 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26080 | LIBS="$LIBS $GTK_LIBS" | |
26081 | cat >conftest.$ac_ext <<_ACEOF | |
26082 | /* confdefs.h. */ | |
26083 | _ACEOF | |
26084 | cat confdefs.h >>conftest.$ac_ext | |
26085 | cat >>conftest.$ac_ext <<_ACEOF | |
26086 | /* end confdefs.h. */ | |
26087 | ||
26088 | #include <gtk/gtk.h> | |
26089 | #include <stdio.h> | |
26090 | ||
26091 | int | |
26092 | main () | |
26093 | { | |
26094 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26095 | ; | |
26096 | return 0; | |
26097 | } | |
26098 | _ACEOF | |
26099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26101 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26102 | ac_status=$? |
ac1cb8d3 VS |
26103 | grep -v '^ *+' conftest.er1 >conftest.err |
26104 | rm -f conftest.er1 | |
26105 | cat conftest.err >&5 | |
a848cd7e SC |
26106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26107 | (exit $ac_status); } && | |
6ebeb4c7 | 26108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26110 | (eval $ac_try) 2>&5 | |
26111 | ac_status=$? | |
26112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26113 | (exit $ac_status); }; } && | |
26114 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26116 | (eval $ac_try) 2>&5 | |
26117 | ac_status=$? | |
26118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26119 | (exit $ac_status); }; }; then | |
26120 | echo "*** The test program compiled, but did not run. This usually means" | |
26121 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26122 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26123 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26124 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26125 | echo "*** is required on your system" | |
26126 | echo "***" | |
26127 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26128 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26129 | echo "***" | |
26130 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26131 | echo "*** came with the system with the command" | |
26132 | echo "***" | |
26133 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26134 | else | |
26135 | echo "$as_me: failed program was:" >&5 | |
26136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26137 | ||
26138 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26139 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26140 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26141 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26142 | fi | |
ac1cb8d3 VS |
26143 | rm -f conftest.err conftest.$ac_objext \ |
26144 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26145 | CFLAGS="$ac_save_CFLAGS" |
26146 | LIBS="$ac_save_LIBS" | |
26147 | fi | |
26148 | fi | |
26149 | GTK_CFLAGS="" | |
26150 | GTK_LIBS="" | |
26151 | : | |
26152 | fi | |
26153 | ||
26154 | ||
26155 | rm -f conf.gtktest | |
26156 | ||
f34ca037 | 26157 | fi |
a848cd7e SC |
26158 | fi |
26159 | fi | |
26160 | ||
26161 | if test -z "$wx_cv_lib_gtk"; then | |
26162 | wx_cv_lib_gtk=none | |
26163 | else | |
26164 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 26165 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
26166 | fi |
26167 | ||
26168 | ||
26169 | fi | |
26170 | ||
26171 | ||
26172 | if test "$gtk_version_cached" = 1; then | |
26173 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
26174 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
26175 | fi | |
26176 | ||
26177 | case "$wx_cv_lib_gtk" in | |
26178 | 2.0) WXGTK20=1 | |
26179 | TOOLKIT_VERSION=2 | |
26180 | ;; | |
26181 | 1.2.7) WXGTK127=1 | |
26182 | WXGTK12=1 | |
26183 | ;; | |
26184 | 1.2.3) WXGTK12=1 | |
26185 | ;; | |
26186 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
26187 | The development files for GTK+ were not found. For GTK+ 2, please |
26188 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26189 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26190 | and that the version is 1.2.3 or above. Also check that the | |
26191 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26192 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26193 | " >&5 |
26194 | echo "$as_me: error: | |
f597b41c MW |
26195 | The development files for GTK+ were not found. For GTK+ 2, please |
26196 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26197 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26198 | and that the version is 1.2.3 or above. Also check that the | |
26199 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26200 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26201 | " >&2;} |
26202 | { (exit 1); exit 1; }; } | |
26203 | ;; | |
26204 | esac | |
26205 | ||
26206 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
26207 | save_CFLAGS="$CFLAGS" |
26208 | save_LIBS="$LIBS" | |
9d271838 | 26209 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
abc736fd | 26210 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 26211 | |
d12aef51 VZ |
26212 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
26213 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
26214 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
26215 | /* confdefs.h. */ |
26216 | _ACEOF | |
26217 | cat confdefs.h >>conftest.$ac_ext | |
26218 | cat >>conftest.$ac_ext <<_ACEOF | |
26219 | /* end confdefs.h. */ | |
304205f1 | 26220 | |
d12aef51 | 26221 | #include <gtk/gtk.h> |
304205f1 | 26222 | |
d12aef51 VZ |
26223 | int |
26224 | main () | |
26225 | { | |
304205f1 | 26226 | |
d12aef51 | 26227 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
26228 | |
26229 | ; | |
26230 | return 0; | |
26231 | } | |
26232 | _ACEOF | |
26233 | rm -f conftest.$ac_objext | |
26234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26235 | (eval $ac_compile) 2>conftest.er1 | |
26236 | ac_status=$? | |
26237 | grep -v '^ *+' conftest.er1 >conftest.err | |
26238 | rm -f conftest.er1 | |
26239 | cat conftest.err >&5 | |
26240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26241 | (exit $ac_status); } && | |
6ebeb4c7 | 26242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
26243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26244 | (eval $ac_try) 2>&5 | |
26245 | ac_status=$? | |
26246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26247 | (exit $ac_status); }; } && | |
26248 | { ac_try='test -s conftest.$ac_objext' | |
26249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26250 | (eval $ac_try) 2>&5 | |
26251 | ac_status=$? | |
26252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26253 | (exit $ac_status); }; }; then | |
26254 | ||
26255 | echo "$as_me:$LINENO: result: no" >&5 | |
26256 | echo "${ECHO_T}no" >&6 | |
26257 | ||
26258 | else | |
26259 | echo "$as_me: failed program was:" >&5 | |
26260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26261 | ||
26262 | ||
26263 | cat >>confdefs.h <<\_ACEOF | |
26264 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
26265 | _ACEOF | |
26266 | ||
26267 | echo "$as_me:$LINENO: result: yes" >&5 | |
26268 | echo "${ECHO_T}yes" >&6 | |
26269 | ||
26270 | fi | |
26271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26272 | ||
9755e73b VS |
26273 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
26274 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
26275 | cat >conftest.$ac_ext <<_ACEOF | |
26276 | /* confdefs.h. */ | |
26277 | _ACEOF | |
26278 | cat confdefs.h >>conftest.$ac_ext | |
26279 | cat >>conftest.$ac_ext <<_ACEOF | |
26280 | /* end confdefs.h. */ | |
26281 | ||
26282 | #include <gtk/gtk.h> | |
26283 | ||
26284 | int | |
26285 | main () | |
26286 | { | |
26287 | ||
26288 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 26289 | Not GTK+ 2.4 |
9755e73b VS |
26290 | #endif |
26291 | ||
26292 | ; | |
26293 | return 0; | |
26294 | } | |
26295 | _ACEOF | |
26296 | rm -f conftest.$ac_objext | |
26297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26298 | (eval $ac_compile) 2>conftest.er1 | |
26299 | ac_status=$? | |
26300 | grep -v '^ *+' conftest.er1 >conftest.err | |
26301 | rm -f conftest.er1 | |
26302 | cat conftest.err >&5 | |
26303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26304 | (exit $ac_status); } && | |
6ebeb4c7 | 26305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
26306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26307 | (eval $ac_try) 2>&5 | |
26308 | ac_status=$? | |
26309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26310 | (exit $ac_status); }; } && | |
26311 | { ac_try='test -s conftest.$ac_objext' | |
26312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26313 | (eval $ac_try) 2>&5 | |
26314 | ac_status=$? | |
26315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26316 | (exit $ac_status); }; }; then | |
26317 | ||
26318 | cat >>confdefs.h <<\_ACEOF | |
26319 | #define __WXGTK24__ 1 | |
26320 | _ACEOF | |
26321 | ||
26322 | echo "$as_me:$LINENO: result: yes" >&5 | |
26323 | echo "${ECHO_T}yes" >&6 | |
26324 | ||
26325 | else | |
26326 | echo "$as_me: failed program was:" >&5 | |
26327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26328 | ||
26329 | ||
26330 | echo "$as_me:$LINENO: result: no" >&5 | |
26331 | echo "${ECHO_T}no" >&6 | |
26332 | ||
26333 | fi | |
26334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26335 | ||
304205f1 VS |
26336 | CFLAGS="$save_CFLAGS" |
26337 | LIBS="$save_LIBS" | |
a848cd7e SC |
26338 | else |
26339 | if test "$wxUSE_UNICODE" = "yes"; then | |
26340 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
26341 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
26342 | wxUSE_UNICODE=no | |
26343 | fi | |
26344 | fi | |
26345 | ||
26346 | if test "$USE_DARWIN" != 1; then | |
26347 | ||
26348 | for ac_func in poll | |
26349 | do | |
26350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26351 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26353 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26355 | else | |
26356 | cat >conftest.$ac_ext <<_ACEOF | |
26357 | /* confdefs.h. */ | |
26358 | _ACEOF | |
26359 | cat confdefs.h >>conftest.$ac_ext | |
26360 | cat >>conftest.$ac_ext <<_ACEOF | |
26361 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26362 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
26363 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26364 | #define $ac_func innocuous_$ac_func | |
26365 | ||
a848cd7e SC |
26366 | /* System header to define __stub macros and hopefully few prototypes, |
26367 | which can conflict with char $ac_func (); below. | |
26368 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26369 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26370 | |
a848cd7e SC |
26371 | #ifdef __STDC__ |
26372 | # include <limits.h> | |
26373 | #else | |
26374 | # include <assert.h> | |
26375 | #endif | |
ac1cb8d3 VS |
26376 | |
26377 | #undef $ac_func | |
26378 | ||
a848cd7e SC |
26379 | /* Override any gcc2 internal prototype to avoid an error. */ |
26380 | #ifdef __cplusplus | |
26381 | extern "C" | |
26382 | { | |
26383 | #endif | |
26384 | /* We use char because int might match the return type of a gcc2 | |
26385 | builtin and then its argument prototype would still apply. */ | |
26386 | char $ac_func (); | |
26387 | /* The GNU C library defines this for functions which it implements | |
26388 | to always fail with ENOSYS. Some functions are actually named | |
26389 | something starting with __ and the normal name is an alias. */ | |
26390 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26391 | choke me | |
26392 | #else | |
26393 | char (*f) () = $ac_func; | |
26394 | #endif | |
26395 | #ifdef __cplusplus | |
26396 | } | |
26397 | #endif | |
26398 | ||
26399 | int | |
26400 | main () | |
26401 | { | |
26402 | return f != $ac_func; | |
26403 | ; | |
26404 | return 0; | |
26405 | } | |
26406 | _ACEOF | |
26407 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26409 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26410 | ac_status=$? |
ac1cb8d3 VS |
26411 | grep -v '^ *+' conftest.er1 >conftest.err |
26412 | rm -f conftest.er1 | |
26413 | cat conftest.err >&5 | |
a848cd7e SC |
26414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26415 | (exit $ac_status); } && | |
6ebeb4c7 | 26416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26418 | (eval $ac_try) 2>&5 | |
26419 | ac_status=$? | |
26420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26421 | (exit $ac_status); }; } && | |
26422 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
26428 | eval "$as_ac_var=yes" | |
26429 | else | |
26430 | echo "$as_me: failed program was:" >&5 | |
26431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26432 | ||
26433 | eval "$as_ac_var=no" | |
26434 | fi | |
ac1cb8d3 VS |
26435 | rm -f conftest.err conftest.$ac_objext \ |
26436 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26437 | fi |
26438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26439 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26440 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26441 | cat >>confdefs.h <<_ACEOF | |
26442 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26443 | _ACEOF | |
26444 | ||
26445 | fi | |
26446 | done | |
26447 | ||
26448 | fi | |
26449 | ||
26450 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
26451 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
26452 | ||
26453 | AFMINSTALL=afminstall | |
26454 | TOOLKIT=GTK | |
26455 | GUIDIST=GTK_DIST | |
26456 | ||
26457 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
26458 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
26459 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
26460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26461 | else | |
26462 | ac_check_lib_save_LIBS=$LIBS | |
26463 | LIBS="-lgdk $LIBS" | |
26464 | cat >conftest.$ac_ext <<_ACEOF | |
26465 | /* confdefs.h. */ | |
26466 | _ACEOF | |
26467 | cat confdefs.h >>conftest.$ac_ext | |
26468 | cat >>conftest.$ac_ext <<_ACEOF | |
26469 | /* end confdefs.h. */ | |
26470 | ||
26471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26472 | #ifdef __cplusplus | |
26473 | extern "C" | |
26474 | #endif | |
26475 | /* We use char because int might match the return type of a gcc2 | |
26476 | builtin and then its argument prototype would still apply. */ | |
26477 | char gdk_im_open (); | |
26478 | int | |
26479 | main () | |
26480 | { | |
26481 | gdk_im_open (); | |
26482 | ; | |
26483 | return 0; | |
26484 | } | |
26485 | _ACEOF | |
26486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26489 | ac_status=$? |
ac1cb8d3 VS |
26490 | grep -v '^ *+' conftest.er1 >conftest.err |
26491 | rm -f conftest.er1 | |
26492 | cat conftest.err >&5 | |
a848cd7e SC |
26493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26494 | (exit $ac_status); } && | |
6ebeb4c7 | 26495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26497 | (eval $ac_try) 2>&5 | |
26498 | ac_status=$? | |
26499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26500 | (exit $ac_status); }; } && | |
26501 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26503 | (eval $ac_try) 2>&5 | |
26504 | ac_status=$? | |
26505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26506 | (exit $ac_status); }; }; then | |
26507 | ac_cv_lib_gdk_gdk_im_open=yes | |
26508 | else | |
26509 | echo "$as_me: failed program was:" >&5 | |
26510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26511 | ||
26512 | ac_cv_lib_gdk_gdk_im_open=no | |
26513 | fi | |
ac1cb8d3 VS |
26514 | rm -f conftest.err conftest.$ac_objext \ |
26515 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26516 | LIBS=$ac_check_lib_save_LIBS |
26517 | fi | |
26518 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
26519 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
26520 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
26521 | cat >>confdefs.h <<\_ACEOF | |
26522 | #define HAVE_XIM 1 | |
26523 | _ACEOF | |
26524 | ||
26525 | fi | |
26526 | ||
26527 | ||
26528 | ||
26529 | if test "$wxUSE_GPE" = "yes"; then | |
26530 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
26531 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
26532 | ||
0ad5d837 VZ |
26533 | ac_find_libraries= |
26534 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 26535 | do |
3eca31dc | 26536 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
26537 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
26538 | ac_find_libraries=$ac_dir | |
26539 | break 2 | |
26540 | fi | |
26541 | done | |
26542 | done | |
26543 | ||
26544 | if test "$ac_find_libraries" != "" ; then | |
26545 | ||
0ad5d837 | 26546 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
26547 | ac_path_to_link="" |
26548 | else | |
0ad5d837 VZ |
26549 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
26550 | result=$? | |
26551 | if test $result = 0; then | |
26552 | ac_path_to_link="" | |
26553 | else | |
26554 | ac_path_to_link=" -L$ac_find_libraries" | |
26555 | fi | |
a848cd7e SC |
26556 | fi |
26557 | ||
26558 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
26559 | WXGPE=1 | |
0ad5d837 VZ |
26560 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
26561 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
26562 | else |
26563 | echo "$as_me:$LINENO: result: not found" >&5 | |
26564 | echo "${ECHO_T}not found" >&6 | |
26565 | fi | |
26566 | ||
26567 | fi | |
26568 | fi | |
26569 | ||
26570 | if test "$wxUSE_MGL" = 1; then | |
26571 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
26572 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
26573 | if test "x$MGL_ROOT" = x ; then | |
26574 | echo "$as_me:$LINENO: result: not found" >&5 | |
26575 | echo "${ECHO_T}not found" >&6 | |
26576 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
26577 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
26578 | { (exit 1); exit 1; }; } | |
26579 | else | |
26580 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
26581 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
26582 | fi | |
26583 | ||
26584 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
26585 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
26586 | case "${host}" in | |
26587 | *-*-linux* ) | |
26588 | if test "x$wxUSE_SHARED" = xyes ; then | |
26589 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
26590 | else | |
26591 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
26592 | fi | |
26593 | ;; | |
26594 | *-pc-msdosdjgpp ) | |
26595 | mgl_os_candidates="dos32/dj2" | |
26596 | ;; | |
26597 | *) | |
26598 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
26599 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
26600 | { (exit 1); exit 1; }; } | |
26601 | esac | |
26602 | ||
26603 | mgl_lib_type="" | |
26604 | mgl_os="" | |
26605 | ||
26606 | for mgl_os_i in $mgl_os_candidates ; do | |
26607 | if test "x$mgl_os" = x ; then | |
26608 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
26609 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
26610 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
26611 | mgl_lib_type=debug | |
26612 | mgl_os=$mgl_os_i | |
26613 | fi | |
26614 | fi | |
26615 | if test "x$mgl_lib_type" = x ; then | |
26616 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
26617 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
26618 | mgl_lib_type=release | |
26619 | mgl_os=$mgl_os_i | |
26620 | fi | |
26621 | fi | |
26622 | fi | |
26623 | done | |
26624 | ||
26625 | if test "x$mgl_os" = x ; then | |
26626 | echo "$as_me:$LINENO: result: not found" >&5 | |
26627 | echo "${ECHO_T}not found" >&6 | |
26628 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
26629 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
26630 | { (exit 1); exit 1; }; } | |
26631 | fi | |
26632 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
26633 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
26634 | ||
26635 | wxUSE_UNIVERSAL="yes" | |
26636 | ||
26637 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
26638 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
26639 | ||
26640 | AFMINSTALL=afminstall | |
26641 | TOOLKIT=MGL | |
26642 | GUIDIST=MGL_DIST | |
26643 | fi | |
26644 | ||
26645 | if test "$wxUSE_MICROWIN" = 1; then | |
26646 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
26647 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
26648 | if test "x$MICROWINDOWS" = x ; then | |
26649 | echo "$as_me:$LINENO: result: not found" >&5 | |
26650 | echo "${ECHO_T}not found" >&6 | |
26651 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
26652 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
26653 | { (exit 1); exit 1; }; } | |
26654 | else | |
26655 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
26656 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
26657 | fi | |
26658 | ||
26659 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
26660 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
26661 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
26662 | else | |
26663 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
26664 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
26665 | { (exit 1); exit 1; }; } | |
26666 | fi | |
26667 | ||
26668 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
26669 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
26670 | ||
26671 | wxUSE_UNIVERSAL="yes" | |
26672 | ||
26673 | AFMINSTALL=afminstall | |
26674 | TOOLKIT=MICROWIN | |
26675 | GUIDIST=MICROWIN_DIST | |
26676 | ||
26677 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
26678 | fi | |
26679 | ||
74b84332 | 26680 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
6ebeb4c7 VZ |
26681 | |
26682 | if test "x$ac_path_x_has_been_run" != xyes; then | |
26683 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
26684 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
26685 | ||
6ebeb4c7 | 26686 | ac_path_x_has_been_run=yes |
a848cd7e SC |
26687 | |
26688 | # Check whether --with-x or --without-x was given. | |
26689 | if test "${with_x+set}" = set; then | |
26690 | withval="$with_x" | |
26691 | ||
26692 | fi; | |
26693 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
26694 | if test "x$with_x" = xno; then | |
26695 | # The user explicitly disabled X. | |
26696 | have_x=disabled | |
26697 | else | |
26698 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
26699 | # Both variables are already set. | |
26700 | have_x=yes | |
26701 | else | |
26702 | if test "${ac_cv_have_x+set}" = set; then | |
26703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26704 | else | |
26705 | # One or both of the vars are not set, and there is no cached value. | |
26706 | ac_x_includes=no ac_x_libraries=no | |
26707 | rm -fr conftest.dir | |
26708 | if mkdir conftest.dir; then | |
26709 | cd conftest.dir | |
26710 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
26711 | cat >Imakefile <<'_ACEOF' | |
26712 | acfindx: | |
26713 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
26714 | _ACEOF | |
26715 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
26716 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
26717 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
26718 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
26719 | for ac_extension in a so sl; do | |
26720 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
26721 | test -f $ac_im_libdir/libX11.$ac_extension; then |
26722 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
26723 | fi |
26724 | done | |
26725 | # Screen out bogus values from the imake configuration. They are | |
26726 | # bogus both because they are the default anyway, and because | |
26727 | # using them would break gcc on systems where it needs fixed includes. | |
26728 | case $ac_im_incroot in | |
26729 | /usr/include) ;; | |
26730 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
26731 | esac | |
26732 | case $ac_im_usrlibdir in | |
26733 | /usr/lib | /lib) ;; | |
26734 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
26735 | esac | |
26736 | fi | |
26737 | cd .. | |
26738 | rm -fr conftest.dir | |
26739 | fi | |
26740 | ||
26741 | # Standard set of common directories for X headers. | |
26742 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
26743 | ac_x_header_dirs=' | |
26744 | /usr/X11/include | |
26745 | /usr/X11R6/include | |
26746 | /usr/X11R5/include | |
26747 | /usr/X11R4/include | |
26748 | ||
26749 | /usr/include/X11 | |
26750 | /usr/include/X11R6 | |
26751 | /usr/include/X11R5 | |
26752 | /usr/include/X11R4 | |
26753 | ||
26754 | /usr/local/X11/include | |
26755 | /usr/local/X11R6/include | |
26756 | /usr/local/X11R5/include | |
26757 | /usr/local/X11R4/include | |
26758 | ||
26759 | /usr/local/include/X11 | |
26760 | /usr/local/include/X11R6 | |
26761 | /usr/local/include/X11R5 | |
26762 | /usr/local/include/X11R4 | |
26763 | ||
26764 | /usr/X386/include | |
26765 | /usr/x386/include | |
26766 | /usr/XFree86/include/X11 | |
26767 | ||
26768 | /usr/include | |
26769 | /usr/local/include | |
26770 | /usr/unsupported/include | |
26771 | /usr/athena/include | |
26772 | /usr/local/x11r5/include | |
26773 | /usr/lpp/Xamples/include | |
26774 | ||
26775 | /usr/openwin/include | |
26776 | /usr/openwin/share/include' | |
26777 | ||
26778 | if test "$ac_x_includes" = no; then | |
6ebeb4c7 | 26779 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
26780 | # First, try using that file with no special directory specified. |
26781 | cat >conftest.$ac_ext <<_ACEOF | |
26782 | /* confdefs.h. */ | |
26783 | _ACEOF | |
26784 | cat confdefs.h >>conftest.$ac_ext | |
26785 | cat >>conftest.$ac_ext <<_ACEOF | |
26786 | /* end confdefs.h. */ | |
26787 | #include <X11/Intrinsic.h> | |
26788 | _ACEOF | |
26789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26791 | ac_status=$? | |
26792 | grep -v '^ *+' conftest.er1 >conftest.err | |
26793 | rm -f conftest.er1 | |
26794 | cat conftest.err >&5 | |
26795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26796 | (exit $ac_status); } >/dev/null; then | |
26797 | if test -s conftest.err; then | |
26798 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26800 | else |
26801 | ac_cpp_err= | |
26802 | fi | |
26803 | else | |
26804 | ac_cpp_err=yes | |
26805 | fi | |
26806 | if test -z "$ac_cpp_err"; then | |
26807 | # We can compile using X headers with no special include directory. | |
26808 | ac_x_includes= | |
26809 | else | |
26810 | echo "$as_me: failed program was:" >&5 | |
26811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26812 | ||
26813 | for ac_dir in $ac_x_header_dirs; do | |
26814 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
26815 | ac_x_includes=$ac_dir | |
26816 | break | |
26817 | fi | |
26818 | done | |
26819 | fi | |
26820 | rm -f conftest.err conftest.$ac_ext | |
26821 | fi # $ac_x_includes = no | |
26822 | ||
26823 | if test "$ac_x_libraries" = no; then | |
26824 | # Check for the libraries. | |
26825 | # See if we find them without any special options. | |
26826 | # Don't add to $LIBS permanently. | |
26827 | ac_save_LIBS=$LIBS | |
26828 | LIBS="-lXt $LIBS" | |
26829 | cat >conftest.$ac_ext <<_ACEOF | |
26830 | /* confdefs.h. */ | |
26831 | _ACEOF | |
26832 | cat confdefs.h >>conftest.$ac_ext | |
26833 | cat >>conftest.$ac_ext <<_ACEOF | |
26834 | /* end confdefs.h. */ | |
26835 | #include <X11/Intrinsic.h> | |
26836 | int | |
26837 | main () | |
26838 | { | |
26839 | XtMalloc (0) | |
26840 | ; | |
26841 | return 0; | |
26842 | } | |
26843 | _ACEOF | |
26844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26846 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26847 | ac_status=$? |
ac1cb8d3 VS |
26848 | grep -v '^ *+' conftest.er1 >conftest.err |
26849 | rm -f conftest.er1 | |
26850 | cat conftest.err >&5 | |
a848cd7e SC |
26851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26852 | (exit $ac_status); } && | |
6ebeb4c7 | 26853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26855 | (eval $ac_try) 2>&5 | |
26856 | ac_status=$? | |
26857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26858 | (exit $ac_status); }; } && | |
26859 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26861 | (eval $ac_try) 2>&5 | |
26862 | ac_status=$? | |
26863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26864 | (exit $ac_status); }; }; then | |
26865 | LIBS=$ac_save_LIBS | |
26866 | # We can link X programs with no special library path. | |
26867 | ac_x_libraries= | |
26868 | else | |
26869 | echo "$as_me: failed program was:" >&5 | |
26870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26871 | ||
26872 | LIBS=$ac_save_LIBS | |
26873 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
26874 | do | |
26875 | # Don't even attempt the hair of trying to link an X program! | |
26876 | for ac_extension in a so sl; do | |
26877 | if test -r $ac_dir/libXt.$ac_extension; then | |
26878 | ac_x_libraries=$ac_dir | |
26879 | break 2 | |
26880 | fi | |
26881 | done | |
26882 | done | |
26883 | fi | |
ac1cb8d3 VS |
26884 | rm -f conftest.err conftest.$ac_objext \ |
26885 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26886 | fi # $ac_x_libraries = no |
26887 | ||
26888 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
26889 | # Didn't find X anywhere. Cache the known absence of X. | |
26890 | ac_cv_have_x="have_x=no" | |
26891 | else | |
26892 | # Record where we found X for the cache. | |
26893 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 26894 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
26895 | fi |
26896 | fi | |
26897 | ||
26898 | fi | |
26899 | eval "$ac_cv_have_x" | |
26900 | fi # $with_x != no | |
26901 | ||
26902 | if test "$have_x" != yes; then | |
26903 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
26904 | echo "${ECHO_T}$have_x" >&6 | |
26905 | no_x=yes | |
26906 | else | |
26907 | # If each of the values was on the command line, it overrides each guess. | |
26908 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26909 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26910 | # Update the cache value to reflect the command line values. | |
26911 | ac_cv_have_x="have_x=yes \ | |
26912 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
6ebeb4c7 VZ |
26913 | # It might be that x_includes is empty (headers are found in the |
26914 | # standard search path. Then output the corresponding message | |
26915 | ac_out_x_includes=$x_includes | |
26916 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
26917 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
26918 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
26919 | fi |
26920 | ||
6ebeb4c7 | 26921 | fi |
a848cd7e SC |
26922 | if test "$no_x" = yes; then |
26923 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26924 | ||
26925 | cat >>confdefs.h <<\_ACEOF | |
26926 | #define X_DISPLAY_MISSING 1 | |
26927 | _ACEOF | |
26928 | ||
26929 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26930 | else | |
26931 | if test -n "$x_includes"; then | |
26932 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26933 | fi | |
26934 | ||
26935 | # It would also be nice to do this for all -L options, not just this one. | |
26936 | if test -n "$x_libraries"; then | |
26937 | X_LIBS="$X_LIBS -L$x_libraries" | |
26938 | # For Solaris; some versions of Sun CC require a space after -R and | |
26939 | # others require no space. Words are not sufficient . . . . | |
26940 | case `(uname -sr) 2>/dev/null` in | |
26941 | "SunOS 5"*) | |
26942 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26943 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26944 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26945 | cat >conftest.$ac_ext <<_ACEOF | |
26946 | /* confdefs.h. */ | |
26947 | _ACEOF | |
26948 | cat confdefs.h >>conftest.$ac_ext | |
26949 | cat >>conftest.$ac_ext <<_ACEOF | |
26950 | /* end confdefs.h. */ | |
26951 | ||
26952 | int | |
26953 | main () | |
26954 | { | |
26955 | ||
26956 | ; | |
26957 | return 0; | |
26958 | } | |
26959 | _ACEOF | |
26960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26962 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26963 | ac_status=$? |
ac1cb8d3 VS |
26964 | grep -v '^ *+' conftest.er1 >conftest.err |
26965 | rm -f conftest.er1 | |
26966 | cat conftest.err >&5 | |
a848cd7e SC |
26967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26968 | (exit $ac_status); } && | |
6ebeb4c7 | 26969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26971 | (eval $ac_try) 2>&5 | |
26972 | ac_status=$? | |
26973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26974 | (exit $ac_status); }; } && | |
26975 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26977 | (eval $ac_try) 2>&5 | |
26978 | ac_status=$? | |
26979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26980 | (exit $ac_status); }; }; then | |
26981 | ac_R_nospace=yes | |
26982 | else | |
26983 | echo "$as_me: failed program was:" >&5 | |
26984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26985 | ||
26986 | ac_R_nospace=no | |
26987 | fi | |
ac1cb8d3 VS |
26988 | rm -f conftest.err conftest.$ac_objext \ |
26989 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26990 | if test $ac_R_nospace = yes; then |
26991 | echo "$as_me:$LINENO: result: no" >&5 | |
26992 | echo "${ECHO_T}no" >&6 | |
26993 | X_LIBS="$X_LIBS -R$x_libraries" | |
26994 | else | |
26995 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
26996 | cat >conftest.$ac_ext <<_ACEOF | |
26997 | /* confdefs.h. */ | |
26998 | _ACEOF | |
26999 | cat confdefs.h >>conftest.$ac_ext | |
27000 | cat >>conftest.$ac_ext <<_ACEOF | |
27001 | /* end confdefs.h. */ | |
27002 | ||
27003 | int | |
27004 | main () | |
27005 | { | |
27006 | ||
27007 | ; | |
27008 | return 0; | |
27009 | } | |
27010 | _ACEOF | |
27011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27013 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27014 | ac_status=$? |
ac1cb8d3 VS |
27015 | grep -v '^ *+' conftest.er1 >conftest.err |
27016 | rm -f conftest.er1 | |
27017 | cat conftest.err >&5 | |
a848cd7e SC |
27018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27019 | (exit $ac_status); } && | |
6ebeb4c7 | 27020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27022 | (eval $ac_try) 2>&5 | |
27023 | ac_status=$? | |
27024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27025 | (exit $ac_status); }; } && | |
27026 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27028 | (eval $ac_try) 2>&5 | |
27029 | ac_status=$? | |
27030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27031 | (exit $ac_status); }; }; then | |
27032 | ac_R_space=yes | |
27033 | else | |
27034 | echo "$as_me: failed program was:" >&5 | |
27035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27036 | ||
27037 | ac_R_space=no | |
27038 | fi | |
ac1cb8d3 VS |
27039 | rm -f conftest.err conftest.$ac_objext \ |
27040 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27041 | if test $ac_R_space = yes; then |
27042 | echo "$as_me:$LINENO: result: yes" >&5 | |
27043 | echo "${ECHO_T}yes" >&6 | |
27044 | X_LIBS="$X_LIBS -R $x_libraries" | |
27045 | else | |
27046 | echo "$as_me:$LINENO: result: neither works" >&5 | |
27047 | echo "${ECHO_T}neither works" >&6 | |
27048 | fi | |
27049 | fi | |
27050 | LIBS=$ac_xsave_LIBS | |
27051 | esac | |
27052 | fi | |
27053 | ||
27054 | # Check for system-dependent libraries X programs must link with. | |
27055 | # Do this before checking for the system-independent R6 libraries | |
27056 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
27057 | ||
27058 | if test "$ISC" = yes; then | |
27059 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
27060 | else | |
27061 | # Martyn Johnson says this is needed for Ultrix, if the X | |
27062 | # libraries were built with DECnet support. And Karl Berry says | |
27063 | # the Alpha needs dnet_stub (dnet does not exist). | |
27064 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
27065 | cat >conftest.$ac_ext <<_ACEOF | |
27066 | /* confdefs.h. */ | |
27067 | _ACEOF | |
27068 | cat confdefs.h >>conftest.$ac_ext | |
27069 | cat >>conftest.$ac_ext <<_ACEOF | |
27070 | /* end confdefs.h. */ | |
27071 | ||
27072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27073 | #ifdef __cplusplus | |
27074 | extern "C" | |
27075 | #endif | |
27076 | /* We use char because int might match the return type of a gcc2 | |
27077 | builtin and then its argument prototype would still apply. */ | |
27078 | char XOpenDisplay (); | |
27079 | int | |
27080 | main () | |
27081 | { | |
27082 | XOpenDisplay (); | |
27083 | ; | |
27084 | return 0; | |
27085 | } | |
27086 | _ACEOF | |
27087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27090 | ac_status=$? |
ac1cb8d3 VS |
27091 | grep -v '^ *+' conftest.er1 >conftest.err |
27092 | rm -f conftest.er1 | |
27093 | cat conftest.err >&5 | |
a848cd7e SC |
27094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27095 | (exit $ac_status); } && | |
6ebeb4c7 | 27096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27098 | (eval $ac_try) 2>&5 | |
27099 | ac_status=$? | |
27100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27101 | (exit $ac_status); }; } && | |
27102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27104 | (eval $ac_try) 2>&5 | |
27105 | ac_status=$? | |
27106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27107 | (exit $ac_status); }; }; then | |
27108 | : | |
27109 | else | |
27110 | echo "$as_me: failed program was:" >&5 | |
27111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27112 | ||
27113 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
27114 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
27115 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
27116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27117 | else | |
27118 | ac_check_lib_save_LIBS=$LIBS | |
27119 | LIBS="-ldnet $LIBS" | |
27120 | cat >conftest.$ac_ext <<_ACEOF | |
27121 | /* confdefs.h. */ | |
27122 | _ACEOF | |
27123 | cat confdefs.h >>conftest.$ac_ext | |
27124 | cat >>conftest.$ac_ext <<_ACEOF | |
27125 | /* end confdefs.h. */ | |
27126 | ||
27127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27128 | #ifdef __cplusplus | |
27129 | extern "C" | |
27130 | #endif | |
27131 | /* We use char because int might match the return type of a gcc2 | |
27132 | builtin and then its argument prototype would still apply. */ | |
27133 | char dnet_ntoa (); | |
27134 | int | |
27135 | main () | |
27136 | { | |
27137 | dnet_ntoa (); | |
27138 | ; | |
27139 | return 0; | |
27140 | } | |
27141 | _ACEOF | |
27142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27144 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27145 | ac_status=$? |
ac1cb8d3 VS |
27146 | grep -v '^ *+' conftest.er1 >conftest.err |
27147 | rm -f conftest.er1 | |
27148 | cat conftest.err >&5 | |
a848cd7e SC |
27149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27150 | (exit $ac_status); } && | |
6ebeb4c7 | 27151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27153 | (eval $ac_try) 2>&5 | |
27154 | ac_status=$? | |
27155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27156 | (exit $ac_status); }; } && | |
27157 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27159 | (eval $ac_try) 2>&5 | |
27160 | ac_status=$? | |
27161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27162 | (exit $ac_status); }; }; then | |
27163 | ac_cv_lib_dnet_dnet_ntoa=yes | |
27164 | else | |
27165 | echo "$as_me: failed program was:" >&5 | |
27166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27167 | ||
27168 | ac_cv_lib_dnet_dnet_ntoa=no | |
27169 | fi | |
ac1cb8d3 VS |
27170 | rm -f conftest.err conftest.$ac_objext \ |
27171 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27172 | LIBS=$ac_check_lib_save_LIBS |
27173 | fi | |
27174 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
27175 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
27176 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
27177 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
27178 | fi | |
27179 | ||
27180 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
27181 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
27182 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
27183 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
27184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27185 | else | |
27186 | ac_check_lib_save_LIBS=$LIBS | |
27187 | LIBS="-ldnet_stub $LIBS" | |
27188 | cat >conftest.$ac_ext <<_ACEOF | |
27189 | /* confdefs.h. */ | |
27190 | _ACEOF | |
27191 | cat confdefs.h >>conftest.$ac_ext | |
27192 | cat >>conftest.$ac_ext <<_ACEOF | |
27193 | /* end confdefs.h. */ | |
27194 | ||
27195 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27196 | #ifdef __cplusplus | |
27197 | extern "C" | |
27198 | #endif | |
27199 | /* We use char because int might match the return type of a gcc2 | |
27200 | builtin and then its argument prototype would still apply. */ | |
27201 | char dnet_ntoa (); | |
27202 | int | |
27203 | main () | |
27204 | { | |
27205 | dnet_ntoa (); | |
27206 | ; | |
27207 | return 0; | |
27208 | } | |
27209 | _ACEOF | |
27210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27212 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27213 | ac_status=$? |
ac1cb8d3 VS |
27214 | grep -v '^ *+' conftest.er1 >conftest.err |
27215 | rm -f conftest.er1 | |
27216 | cat conftest.err >&5 | |
a848cd7e SC |
27217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27218 | (exit $ac_status); } && | |
6ebeb4c7 | 27219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27221 | (eval $ac_try) 2>&5 | |
27222 | ac_status=$? | |
27223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27224 | (exit $ac_status); }; } && | |
27225 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27227 | (eval $ac_try) 2>&5 | |
27228 | ac_status=$? | |
27229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27230 | (exit $ac_status); }; }; then | |
27231 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
27232 | else | |
27233 | echo "$as_me: failed program was:" >&5 | |
27234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27235 | ||
27236 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
27237 | fi | |
ac1cb8d3 VS |
27238 | rm -f conftest.err conftest.$ac_objext \ |
27239 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27240 | LIBS=$ac_check_lib_save_LIBS |
27241 | fi | |
27242 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
27243 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
27244 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
27245 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
27246 | fi | |
27247 | ||
27248 | fi | |
27249 | fi | |
ac1cb8d3 VS |
27250 | rm -f conftest.err conftest.$ac_objext \ |
27251 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27252 | LIBS="$ac_xsave_LIBS" |
27253 | ||
27254 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
27255 | # to get the SysV transport functions. | |
27256 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
27257 | # needs -lnsl. | |
27258 | # The nsl library prevents programs from opening the X display | |
27259 | # on Irix 5.2, according to T.E. Dickey. | |
27260 | # The functions gethostbyname, getservbyname, and inet_addr are | |
27261 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
27262 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
27263 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
27264 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
27265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27266 | else | |
27267 | cat >conftest.$ac_ext <<_ACEOF | |
27268 | /* confdefs.h. */ | |
27269 | _ACEOF | |
27270 | cat confdefs.h >>conftest.$ac_ext | |
27271 | cat >>conftest.$ac_ext <<_ACEOF | |
27272 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27273 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
27274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27275 | #define gethostbyname innocuous_gethostbyname | |
27276 | ||
a848cd7e SC |
27277 | /* System header to define __stub macros and hopefully few prototypes, |
27278 | which can conflict with char gethostbyname (); below. | |
27279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27280 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27281 | |
a848cd7e SC |
27282 | #ifdef __STDC__ |
27283 | # include <limits.h> | |
27284 | #else | |
27285 | # include <assert.h> | |
27286 | #endif | |
ac1cb8d3 VS |
27287 | |
27288 | #undef gethostbyname | |
27289 | ||
a848cd7e SC |
27290 | /* Override any gcc2 internal prototype to avoid an error. */ |
27291 | #ifdef __cplusplus | |
27292 | extern "C" | |
27293 | { | |
27294 | #endif | |
27295 | /* We use char because int might match the return type of a gcc2 | |
27296 | builtin and then its argument prototype would still apply. */ | |
27297 | char gethostbyname (); | |
27298 | /* The GNU C library defines this for functions which it implements | |
27299 | to always fail with ENOSYS. Some functions are actually named | |
27300 | something starting with __ and the normal name is an alias. */ | |
27301 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
27302 | choke me | |
27303 | #else | |
27304 | char (*f) () = gethostbyname; | |
27305 | #endif | |
27306 | #ifdef __cplusplus | |
27307 | } | |
27308 | #endif | |
27309 | ||
27310 | int | |
27311 | main () | |
27312 | { | |
27313 | return f != gethostbyname; | |
27314 | ; | |
27315 | return 0; | |
27316 | } | |
27317 | _ACEOF | |
27318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27320 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27321 | ac_status=$? |
ac1cb8d3 VS |
27322 | grep -v '^ *+' conftest.er1 >conftest.err |
27323 | rm -f conftest.er1 | |
27324 | cat conftest.err >&5 | |
a848cd7e SC |
27325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27326 | (exit $ac_status); } && | |
6ebeb4c7 | 27327 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27329 | (eval $ac_try) 2>&5 | |
27330 | ac_status=$? | |
27331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27332 | (exit $ac_status); }; } && | |
27333 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27335 | (eval $ac_try) 2>&5 | |
27336 | ac_status=$? | |
27337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27338 | (exit $ac_status); }; }; then | |
27339 | ac_cv_func_gethostbyname=yes | |
27340 | else | |
27341 | echo "$as_me: failed program was:" >&5 | |
27342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27343 | ||
27344 | ac_cv_func_gethostbyname=no | |
27345 | fi | |
ac1cb8d3 VS |
27346 | rm -f conftest.err conftest.$ac_objext \ |
27347 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27348 | fi |
27349 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
27350 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
27351 | ||
27352 | if test $ac_cv_func_gethostbyname = no; then | |
27353 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
27354 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
27355 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
27356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27357 | else | |
27358 | ac_check_lib_save_LIBS=$LIBS | |
27359 | LIBS="-lnsl $LIBS" | |
27360 | cat >conftest.$ac_ext <<_ACEOF | |
27361 | /* confdefs.h. */ | |
27362 | _ACEOF | |
27363 | cat confdefs.h >>conftest.$ac_ext | |
27364 | cat >>conftest.$ac_ext <<_ACEOF | |
27365 | /* end confdefs.h. */ | |
27366 | ||
27367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27368 | #ifdef __cplusplus | |
27369 | extern "C" | |
27370 | #endif | |
27371 | /* We use char because int might match the return type of a gcc2 | |
27372 | builtin and then its argument prototype would still apply. */ | |
27373 | char gethostbyname (); | |
27374 | int | |
27375 | main () | |
27376 | { | |
27377 | gethostbyname (); | |
27378 | ; | |
27379 | return 0; | |
27380 | } | |
27381 | _ACEOF | |
27382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
27384 | (eval $ac_link) 2>conftest.er1 |
27385 | ac_status=$? | |
27386 | grep -v '^ *+' conftest.er1 >conftest.err | |
27387 | rm -f conftest.er1 | |
27388 | cat conftest.err >&5 | |
27389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27390 | (exit $ac_status); } && | |
6ebeb4c7 | 27391 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27393 | (eval $ac_try) 2>&5 | |
27394 | ac_status=$? | |
27395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27396 | (exit $ac_status); }; } && | |
27397 | { ac_try='test -s conftest$ac_exeext' | |
27398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27399 | (eval $ac_try) 2>&5 | |
27400 | ac_status=$? | |
27401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27402 | (exit $ac_status); }; }; then | |
27403 | ac_cv_lib_nsl_gethostbyname=yes | |
27404 | else | |
27405 | echo "$as_me: failed program was:" >&5 | |
27406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27407 | ||
27408 | ac_cv_lib_nsl_gethostbyname=no | |
27409 | fi | |
27410 | rm -f conftest.err conftest.$ac_objext \ | |
27411 | conftest$ac_exeext conftest.$ac_ext | |
27412 | LIBS=$ac_check_lib_save_LIBS | |
27413 | fi | |
27414 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
27415 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
27416 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
27417 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
27418 | fi | |
27419 | ||
27420 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
27421 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
27422 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
27423 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
27424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27425 | else | |
27426 | ac_check_lib_save_LIBS=$LIBS | |
27427 | LIBS="-lbsd $LIBS" | |
27428 | cat >conftest.$ac_ext <<_ACEOF | |
27429 | /* confdefs.h. */ | |
27430 | _ACEOF | |
27431 | cat confdefs.h >>conftest.$ac_ext | |
27432 | cat >>conftest.$ac_ext <<_ACEOF | |
27433 | /* end confdefs.h. */ | |
27434 | ||
27435 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27436 | #ifdef __cplusplus | |
27437 | extern "C" | |
27438 | #endif | |
27439 | /* We use char because int might match the return type of a gcc2 | |
27440 | builtin and then its argument prototype would still apply. */ | |
27441 | char gethostbyname (); | |
27442 | int | |
27443 | main () | |
27444 | { | |
27445 | gethostbyname (); | |
27446 | ; | |
27447 | return 0; | |
27448 | } | |
27449 | _ACEOF | |
27450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27452 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 27453 | ac_status=$? |
ac1cb8d3 VS |
27454 | grep -v '^ *+' conftest.er1 >conftest.err |
27455 | rm -f conftest.er1 | |
27456 | cat conftest.err >&5 | |
a848cd7e SC |
27457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27458 | (exit $ac_status); } && | |
6ebeb4c7 | 27459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
27460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27461 | (eval $ac_try) 2>&5 | |
27462 | ac_status=$? | |
27463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
27464 | (exit $ac_status); }; } && |
27465 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27467 | (eval $ac_try) 2>&5 | |
27468 | ac_status=$? | |
27469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27470 | (exit $ac_status); }; }; then | |
27471 | ac_cv_lib_bsd_gethostbyname=yes | |
27472 | else | |
27473 | echo "$as_me: failed program was:" >&5 | |
27474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27475 | ||
27476 | ac_cv_lib_bsd_gethostbyname=no | |
27477 | fi | |
ac1cb8d3 VS |
27478 | rm -f conftest.err conftest.$ac_objext \ |
27479 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27480 | LIBS=$ac_check_lib_save_LIBS |
27481 | fi | |
27482 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
27483 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
27484 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
27485 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
27486 | fi | |
27487 | ||
27488 | fi | |
27489 | fi | |
27490 | ||
27491 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
27492 | # socket/setsockopt and other routines are undefined under SCO ODT | |
27493 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
27494 | # on later versions), says Simon Leinen: it contains gethostby* | |
27495 | # variants that don't use the name server (or something). -lsocket | |
27496 | # must be given before -lnsl if both are needed. We assume that | |
27497 | # if connect needs -lnsl, so does gethostbyname. | |
27498 | echo "$as_me:$LINENO: checking for connect" >&5 | |
27499 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
27500 | if test "${ac_cv_func_connect+set}" = set; then | |
27501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27502 | else | |
27503 | cat >conftest.$ac_ext <<_ACEOF | |
27504 | /* confdefs.h. */ | |
27505 | _ACEOF | |
27506 | cat confdefs.h >>conftest.$ac_ext | |
27507 | cat >>conftest.$ac_ext <<_ACEOF | |
27508 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27509 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
27510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27511 | #define connect innocuous_connect | |
27512 | ||
a848cd7e SC |
27513 | /* System header to define __stub macros and hopefully few prototypes, |
27514 | which can conflict with char connect (); below. | |
27515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27516 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27517 | |
a848cd7e SC |
27518 | #ifdef __STDC__ |
27519 | # include <limits.h> | |
27520 | #else | |
27521 | # include <assert.h> | |
27522 | #endif | |
ac1cb8d3 VS |
27523 | |
27524 | #undef connect | |
27525 | ||
a848cd7e SC |
27526 | /* Override any gcc2 internal prototype to avoid an error. */ |
27527 | #ifdef __cplusplus | |
27528 | extern "C" | |
27529 | { | |
27530 | #endif | |
27531 | /* We use char because int might match the return type of a gcc2 | |
27532 | builtin and then its argument prototype would still apply. */ | |
27533 | char connect (); | |
27534 | /* The GNU C library defines this for functions which it implements | |
27535 | to always fail with ENOSYS. Some functions are actually named | |
27536 | something starting with __ and the normal name is an alias. */ | |
27537 | #if defined (__stub_connect) || defined (__stub___connect) | |
27538 | choke me | |
27539 | #else | |
27540 | char (*f) () = connect; | |
27541 | #endif | |
27542 | #ifdef __cplusplus | |
27543 | } | |
27544 | #endif | |
27545 | ||
27546 | int | |
27547 | main () | |
27548 | { | |
27549 | return f != connect; | |
27550 | ; | |
27551 | return 0; | |
27552 | } | |
27553 | _ACEOF | |
27554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27556 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27557 | ac_status=$? |
ac1cb8d3 VS |
27558 | grep -v '^ *+' conftest.er1 >conftest.err |
27559 | rm -f conftest.er1 | |
27560 | cat conftest.err >&5 | |
a848cd7e SC |
27561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27562 | (exit $ac_status); } && | |
6ebeb4c7 | 27563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27565 | (eval $ac_try) 2>&5 | |
27566 | ac_status=$? | |
27567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27568 | (exit $ac_status); }; } && | |
27569 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27571 | (eval $ac_try) 2>&5 | |
27572 | ac_status=$? | |
27573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27574 | (exit $ac_status); }; }; then | |
27575 | ac_cv_func_connect=yes | |
27576 | else | |
27577 | echo "$as_me: failed program was:" >&5 | |
27578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27579 | ||
27580 | ac_cv_func_connect=no | |
27581 | fi | |
ac1cb8d3 VS |
27582 | rm -f conftest.err conftest.$ac_objext \ |
27583 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27584 | fi |
27585 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
27586 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
27587 | ||
27588 | if test $ac_cv_func_connect = no; then | |
27589 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
27590 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
27591 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
27592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27593 | else | |
27594 | ac_check_lib_save_LIBS=$LIBS | |
27595 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
27596 | cat >conftest.$ac_ext <<_ACEOF | |
27597 | /* confdefs.h. */ | |
27598 | _ACEOF | |
27599 | cat confdefs.h >>conftest.$ac_ext | |
27600 | cat >>conftest.$ac_ext <<_ACEOF | |
27601 | /* end confdefs.h. */ | |
27602 | ||
27603 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27604 | #ifdef __cplusplus | |
27605 | extern "C" | |
27606 | #endif | |
27607 | /* We use char because int might match the return type of a gcc2 | |
27608 | builtin and then its argument prototype would still apply. */ | |
27609 | char connect (); | |
27610 | int | |
27611 | main () | |
27612 | { | |
27613 | connect (); | |
27614 | ; | |
27615 | return 0; | |
27616 | } | |
27617 | _ACEOF | |
27618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27620 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27621 | ac_status=$? |
ac1cb8d3 VS |
27622 | grep -v '^ *+' conftest.er1 >conftest.err |
27623 | rm -f conftest.er1 | |
27624 | cat conftest.err >&5 | |
a848cd7e SC |
27625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27626 | (exit $ac_status); } && | |
6ebeb4c7 | 27627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27629 | (eval $ac_try) 2>&5 | |
27630 | ac_status=$? | |
27631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27632 | (exit $ac_status); }; } && | |
27633 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27635 | (eval $ac_try) 2>&5 | |
27636 | ac_status=$? | |
27637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27638 | (exit $ac_status); }; }; then | |
27639 | ac_cv_lib_socket_connect=yes | |
27640 | else | |
27641 | echo "$as_me: failed program was:" >&5 | |
27642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27643 | ||
27644 | ac_cv_lib_socket_connect=no | |
27645 | fi | |
ac1cb8d3 VS |
27646 | rm -f conftest.err conftest.$ac_objext \ |
27647 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27648 | LIBS=$ac_check_lib_save_LIBS |
27649 | fi | |
27650 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
27651 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
27652 | if test $ac_cv_lib_socket_connect = yes; then | |
27653 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
27654 | fi | |
27655 | ||
27656 | fi | |
27657 | ||
27658 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
27659 | echo "$as_me:$LINENO: checking for remove" >&5 | |
27660 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
27661 | if test "${ac_cv_func_remove+set}" = set; then | |
27662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27663 | else | |
27664 | cat >conftest.$ac_ext <<_ACEOF | |
27665 | /* confdefs.h. */ | |
27666 | _ACEOF | |
27667 | cat confdefs.h >>conftest.$ac_ext | |
27668 | cat >>conftest.$ac_ext <<_ACEOF | |
27669 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27670 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
27671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27672 | #define remove innocuous_remove | |
27673 | ||
a848cd7e SC |
27674 | /* System header to define __stub macros and hopefully few prototypes, |
27675 | which can conflict with char remove (); below. | |
27676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27677 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27678 | |
a848cd7e SC |
27679 | #ifdef __STDC__ |
27680 | # include <limits.h> | |
27681 | #else | |
27682 | # include <assert.h> | |
27683 | #endif | |
ac1cb8d3 VS |
27684 | |
27685 | #undef remove | |
27686 | ||
a848cd7e SC |
27687 | /* Override any gcc2 internal prototype to avoid an error. */ |
27688 | #ifdef __cplusplus | |
27689 | extern "C" | |
27690 | { | |
27691 | #endif | |
27692 | /* We use char because int might match the return type of a gcc2 | |
27693 | builtin and then its argument prototype would still apply. */ | |
27694 | char remove (); | |
27695 | /* The GNU C library defines this for functions which it implements | |
27696 | to always fail with ENOSYS. Some functions are actually named | |
27697 | something starting with __ and the normal name is an alias. */ | |
27698 | #if defined (__stub_remove) || defined (__stub___remove) | |
27699 | choke me | |
27700 | #else | |
27701 | char (*f) () = remove; | |
27702 | #endif | |
27703 | #ifdef __cplusplus | |
27704 | } | |
27705 | #endif | |
27706 | ||
27707 | int | |
27708 | main () | |
27709 | { | |
27710 | return f != remove; | |
27711 | ; | |
27712 | return 0; | |
27713 | } | |
27714 | _ACEOF | |
27715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27717 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27718 | ac_status=$? |
ac1cb8d3 VS |
27719 | grep -v '^ *+' conftest.er1 >conftest.err |
27720 | rm -f conftest.er1 | |
27721 | cat conftest.err >&5 | |
a848cd7e SC |
27722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27723 | (exit $ac_status); } && | |
6ebeb4c7 | 27724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27726 | (eval $ac_try) 2>&5 | |
27727 | ac_status=$? | |
27728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27729 | (exit $ac_status); }; } && | |
27730 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27732 | (eval $ac_try) 2>&5 | |
27733 | ac_status=$? | |
27734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27735 | (exit $ac_status); }; }; then | |
27736 | ac_cv_func_remove=yes | |
27737 | else | |
27738 | echo "$as_me: failed program was:" >&5 | |
27739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27740 | ||
27741 | ac_cv_func_remove=no | |
27742 | fi | |
ac1cb8d3 VS |
27743 | rm -f conftest.err conftest.$ac_objext \ |
27744 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27745 | fi |
27746 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
27747 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
27748 | ||
27749 | if test $ac_cv_func_remove = no; then | |
27750 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
27751 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
27752 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
27753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27754 | else | |
27755 | ac_check_lib_save_LIBS=$LIBS | |
27756 | LIBS="-lposix $LIBS" | |
27757 | cat >conftest.$ac_ext <<_ACEOF | |
27758 | /* confdefs.h. */ | |
27759 | _ACEOF | |
27760 | cat confdefs.h >>conftest.$ac_ext | |
27761 | cat >>conftest.$ac_ext <<_ACEOF | |
27762 | /* end confdefs.h. */ | |
27763 | ||
27764 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27765 | #ifdef __cplusplus | |
27766 | extern "C" | |
27767 | #endif | |
27768 | /* We use char because int might match the return type of a gcc2 | |
27769 | builtin and then its argument prototype would still apply. */ | |
27770 | char remove (); | |
27771 | int | |
27772 | main () | |
27773 | { | |
27774 | remove (); | |
27775 | ; | |
27776 | return 0; | |
27777 | } | |
27778 | _ACEOF | |
27779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27781 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27782 | ac_status=$? |
ac1cb8d3 VS |
27783 | grep -v '^ *+' conftest.er1 >conftest.err |
27784 | rm -f conftest.er1 | |
27785 | cat conftest.err >&5 | |
a848cd7e SC |
27786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27787 | (exit $ac_status); } && | |
6ebeb4c7 | 27788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27790 | (eval $ac_try) 2>&5 | |
27791 | ac_status=$? | |
27792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27793 | (exit $ac_status); }; } && | |
27794 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27796 | (eval $ac_try) 2>&5 | |
27797 | ac_status=$? | |
27798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27799 | (exit $ac_status); }; }; then | |
27800 | ac_cv_lib_posix_remove=yes | |
27801 | else | |
27802 | echo "$as_me: failed program was:" >&5 | |
27803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27804 | ||
27805 | ac_cv_lib_posix_remove=no | |
27806 | fi | |
ac1cb8d3 VS |
27807 | rm -f conftest.err conftest.$ac_objext \ |
27808 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27809 | LIBS=$ac_check_lib_save_LIBS |
27810 | fi | |
27811 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
27812 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
27813 | if test $ac_cv_lib_posix_remove = yes; then | |
27814 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
27815 | fi | |
27816 | ||
27817 | fi | |
27818 | ||
27819 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
27820 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
27821 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
27822 | if test "${ac_cv_func_shmat+set}" = set; then | |
27823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27824 | else | |
27825 | cat >conftest.$ac_ext <<_ACEOF | |
27826 | /* confdefs.h. */ | |
27827 | _ACEOF | |
27828 | cat confdefs.h >>conftest.$ac_ext | |
27829 | cat >>conftest.$ac_ext <<_ACEOF | |
27830 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27831 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
27832 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27833 | #define shmat innocuous_shmat | |
27834 | ||
a848cd7e SC |
27835 | /* System header to define __stub macros and hopefully few prototypes, |
27836 | which can conflict with char shmat (); below. | |
27837 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27838 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27839 | |
a848cd7e SC |
27840 | #ifdef __STDC__ |
27841 | # include <limits.h> | |
27842 | #else | |
27843 | # include <assert.h> | |
27844 | #endif | |
ac1cb8d3 VS |
27845 | |
27846 | #undef shmat | |
27847 | ||
a848cd7e SC |
27848 | /* Override any gcc2 internal prototype to avoid an error. */ |
27849 | #ifdef __cplusplus | |
27850 | extern "C" | |
27851 | { | |
27852 | #endif | |
27853 | /* We use char because int might match the return type of a gcc2 | |
27854 | builtin and then its argument prototype would still apply. */ | |
27855 | char shmat (); | |
27856 | /* The GNU C library defines this for functions which it implements | |
27857 | to always fail with ENOSYS. Some functions are actually named | |
27858 | something starting with __ and the normal name is an alias. */ | |
27859 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
27860 | choke me | |
27861 | #else | |
27862 | char (*f) () = shmat; | |
27863 | #endif | |
27864 | #ifdef __cplusplus | |
27865 | } | |
27866 | #endif | |
27867 | ||
27868 | int | |
27869 | main () | |
27870 | { | |
27871 | return f != shmat; | |
27872 | ; | |
27873 | return 0; | |
27874 | } | |
27875 | _ACEOF | |
27876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27878 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27879 | ac_status=$? |
ac1cb8d3 VS |
27880 | grep -v '^ *+' conftest.er1 >conftest.err |
27881 | rm -f conftest.er1 | |
27882 | cat conftest.err >&5 | |
a848cd7e SC |
27883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27884 | (exit $ac_status); } && | |
6ebeb4c7 | 27885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27887 | (eval $ac_try) 2>&5 | |
27888 | ac_status=$? | |
27889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27890 | (exit $ac_status); }; } && | |
27891 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27893 | (eval $ac_try) 2>&5 | |
27894 | ac_status=$? | |
27895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27896 | (exit $ac_status); }; }; then | |
27897 | ac_cv_func_shmat=yes | |
27898 | else | |
27899 | echo "$as_me: failed program was:" >&5 | |
27900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27901 | ||
27902 | ac_cv_func_shmat=no | |
27903 | fi | |
ac1cb8d3 VS |
27904 | rm -f conftest.err conftest.$ac_objext \ |
27905 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27906 | fi |
27907 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27908 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27909 | ||
27910 | if test $ac_cv_func_shmat = no; then | |
27911 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27912 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27913 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27915 | else | |
27916 | ac_check_lib_save_LIBS=$LIBS | |
27917 | LIBS="-lipc $LIBS" | |
27918 | cat >conftest.$ac_ext <<_ACEOF | |
27919 | /* confdefs.h. */ | |
27920 | _ACEOF | |
27921 | cat confdefs.h >>conftest.$ac_ext | |
27922 | cat >>conftest.$ac_ext <<_ACEOF | |
27923 | /* end confdefs.h. */ | |
27924 | ||
27925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27926 | #ifdef __cplusplus | |
27927 | extern "C" | |
27928 | #endif | |
27929 | /* We use char because int might match the return type of a gcc2 | |
27930 | builtin and then its argument prototype would still apply. */ | |
27931 | char shmat (); | |
27932 | int | |
27933 | main () | |
27934 | { | |
27935 | shmat (); | |
27936 | ; | |
27937 | return 0; | |
27938 | } | |
27939 | _ACEOF | |
27940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27942 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27943 | ac_status=$? |
ac1cb8d3 VS |
27944 | grep -v '^ *+' conftest.er1 >conftest.err |
27945 | rm -f conftest.er1 | |
27946 | cat conftest.err >&5 | |
a848cd7e SC |
27947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27948 | (exit $ac_status); } && | |
6ebeb4c7 | 27949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27951 | (eval $ac_try) 2>&5 | |
27952 | ac_status=$? | |
27953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27954 | (exit $ac_status); }; } && | |
27955 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27957 | (eval $ac_try) 2>&5 | |
27958 | ac_status=$? | |
27959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27960 | (exit $ac_status); }; }; then | |
27961 | ac_cv_lib_ipc_shmat=yes | |
27962 | else | |
27963 | echo "$as_me: failed program was:" >&5 | |
27964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27965 | ||
27966 | ac_cv_lib_ipc_shmat=no | |
27967 | fi | |
ac1cb8d3 VS |
27968 | rm -f conftest.err conftest.$ac_objext \ |
27969 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27970 | LIBS=$ac_check_lib_save_LIBS |
27971 | fi | |
27972 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
27973 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
27974 | if test $ac_cv_lib_ipc_shmat = yes; then | |
27975 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
27976 | fi | |
27977 | ||
27978 | fi | |
27979 | fi | |
27980 | ||
27981 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
27982 | ac_save_LDFLAGS=$LDFLAGS | |
27983 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
27984 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
27985 | # check for ICE first), but we must link in the order -lSM -lICE or | |
27986 | # we get undefined symbols. So assume we have SM if we have ICE. | |
27987 | # These have to be linked with before -lX11, unlike the other | |
27988 | # libraries we check for below, so use a different variable. | |
27989 | # John Interrante, Karl Berry | |
27990 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
27991 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
27992 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
27993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27994 | else | |
27995 | ac_check_lib_save_LIBS=$LIBS | |
27996 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
27997 | cat >conftest.$ac_ext <<_ACEOF | |
27998 | /* confdefs.h. */ | |
27999 | _ACEOF | |
28000 | cat confdefs.h >>conftest.$ac_ext | |
28001 | cat >>conftest.$ac_ext <<_ACEOF | |
28002 | /* end confdefs.h. */ | |
28003 | ||
28004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28005 | #ifdef __cplusplus | |
28006 | extern "C" | |
28007 | #endif | |
28008 | /* We use char because int might match the return type of a gcc2 | |
28009 | builtin and then its argument prototype would still apply. */ | |
28010 | char IceConnectionNumber (); | |
28011 | int | |
28012 | main () | |
28013 | { | |
28014 | IceConnectionNumber (); | |
28015 | ; | |
28016 | return 0; | |
28017 | } | |
28018 | _ACEOF | |
28019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28021 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28022 | ac_status=$? |
ac1cb8d3 VS |
28023 | grep -v '^ *+' conftest.er1 >conftest.err |
28024 | rm -f conftest.er1 | |
28025 | cat conftest.err >&5 | |
a848cd7e SC |
28026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28027 | (exit $ac_status); } && | |
6ebeb4c7 | 28028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28030 | (eval $ac_try) 2>&5 | |
28031 | ac_status=$? | |
28032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28033 | (exit $ac_status); }; } && | |
28034 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28036 | (eval $ac_try) 2>&5 | |
28037 | ac_status=$? | |
28038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28039 | (exit $ac_status); }; }; then | |
28040 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
28041 | else | |
28042 | echo "$as_me: failed program was:" >&5 | |
28043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28044 | ||
28045 | ac_cv_lib_ICE_IceConnectionNumber=no | |
28046 | fi | |
ac1cb8d3 VS |
28047 | rm -f conftest.err conftest.$ac_objext \ |
28048 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28049 | LIBS=$ac_check_lib_save_LIBS |
28050 | fi | |
28051 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
28052 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
28053 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
28054 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
28055 | fi | |
28056 | ||
28057 | LDFLAGS=$ac_save_LDFLAGS | |
28058 | ||
28059 | fi | |
28060 | ||
28061 | ||
28062 | if test "$no_x" = "yes"; then | |
28063 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
28064 | echo "$as_me: error: X11 not found" >&2;} | |
28065 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
28066 | fi | |
28067 | ||
74b84332 VS |
28068 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
28069 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
28070 | AFMINSTALL=afminstall |
28071 | COMPILED_X_PROGRAM=0 | |
28072 | ||
74b84332 VS |
28073 | fi |
28074 | ||
28075 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
28076 | if test "$wxUSE_NANOX" = "yes"; then |
28077 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
28078 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
28079 | if test "x$MICROWIN" = x ; then | |
28080 | echo "$as_me:$LINENO: result: not found" >&5 | |
28081 | echo "${ECHO_T}not found" >&6 | |
28082 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
28083 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
28084 | { (exit 1); exit 1; }; } | |
28085 | else | |
28086 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
28087 | echo "${ECHO_T}$MICROWIN" >&6 | |
28088 | cat >>confdefs.h <<\_ACEOF | |
28089 | #define wxUSE_NANOX 1 | |
28090 | _ACEOF | |
28091 | ||
28092 | fi | |
28093 | fi | |
28094 | ||
28095 | if test "$wxUSE_UNICODE" = "yes"; then | |
28096 | ||
28097 | succeeded=no | |
28098 | ||
28099 | if test -z "$PKG_CONFIG"; then | |
28100 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28101 | set dummy pkg-config; ac_word=$2 | |
28102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28104 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28106 | else | |
28107 | case $PKG_CONFIG in | |
28108 | [\\/]* | ?:[\\/]*) | |
28109 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28110 | ;; | |
28111 | *) | |
28112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28113 | for as_dir in $PATH | |
28114 | do | |
28115 | IFS=$as_save_IFS | |
28116 | test -z "$as_dir" && as_dir=. | |
28117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28118 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28119 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28121 | break 2 | |
28122 | fi | |
28123 | done | |
28124 | done | |
28125 | ||
28126 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28127 | ;; | |
28128 | esac | |
28129 | fi | |
28130 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28131 | ||
28132 | if test -n "$PKG_CONFIG"; then | |
28133 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28134 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28135 | else | |
28136 | echo "$as_me:$LINENO: result: no" >&5 | |
28137 | echo "${ECHO_T}no" >&6 | |
28138 | fi | |
28139 | ||
28140 | fi | |
28141 | ||
28142 | if test "$PKG_CONFIG" = "no" ; then | |
28143 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28144 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28145 | echo "*** to the full path to pkg-config." | |
28146 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28147 | else | |
28148 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28149 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28150 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
28151 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
28152 | ||
28153 | if $PKG_CONFIG --exists "pangox" ; then | |
28154 | echo "$as_me:$LINENO: result: yes" >&5 | |
28155 | echo "${ECHO_T}yes" >&6 | |
28156 | succeeded=yes | |
28157 | ||
28158 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
28159 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
28160 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
28161 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
28162 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
28163 | ||
28164 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
28165 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
28166 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
28167 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
28168 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
28169 | else | |
28170 | PANGOX_CFLAGS="" | |
28171 | PANGOX_LIBS="" | |
28172 | ## If we have a custom action on failure, don't print errors, but | |
28173 | ## do set a variable so people can do so. | |
28174 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
28175 | ||
28176 | fi | |
28177 | ||
28178 | ||
28179 | ||
28180 | else | |
28181 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28182 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28183 | fi | |
28184 | fi | |
28185 | ||
28186 | if test $succeeded = yes; then | |
28187 | ||
28188 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
28189 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
28190 | ||
28191 | else | |
28192 | ||
28193 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
28194 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
28195 | { (exit 1); exit 1; }; } | |
28196 | ||
28197 | ||
28198 | fi | |
28199 | ||
28200 | ||
28201 | succeeded=no | |
28202 | ||
28203 | if test -z "$PKG_CONFIG"; then | |
28204 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28205 | set dummy pkg-config; ac_word=$2 | |
28206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28208 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28210 | else | |
28211 | case $PKG_CONFIG in | |
28212 | [\\/]* | ?:[\\/]*) | |
28213 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28214 | ;; | |
28215 | *) | |
28216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28217 | for as_dir in $PATH | |
28218 | do | |
28219 | IFS=$as_save_IFS | |
28220 | test -z "$as_dir" && as_dir=. | |
28221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28223 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28225 | break 2 | |
28226 | fi | |
28227 | done | |
28228 | done | |
28229 | ||
28230 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28231 | ;; | |
28232 | esac | |
28233 | fi | |
28234 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28235 | ||
28236 | if test -n "$PKG_CONFIG"; then | |
28237 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28238 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28239 | else | |
28240 | echo "$as_me:$LINENO: result: no" >&5 | |
28241 | echo "${ECHO_T}no" >&6 | |
28242 | fi | |
28243 | ||
28244 | fi | |
28245 | ||
28246 | if test "$PKG_CONFIG" = "no" ; then | |
28247 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28248 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28249 | echo "*** to the full path to pkg-config." | |
28250 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28251 | else | |
28252 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28253 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28254 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
28255 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
28256 | ||
28257 | if $PKG_CONFIG --exists "pangoft2" ; then | |
28258 | echo "$as_me:$LINENO: result: yes" >&5 | |
28259 | echo "${ECHO_T}yes" >&6 | |
28260 | succeeded=yes | |
28261 | ||
28262 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
28263 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
28264 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
28265 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
28266 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
28267 | ||
28268 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
28269 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
28270 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
28271 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
28272 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
28273 | else | |
28274 | PANGOFT2_CFLAGS="" | |
28275 | PANGOFT2_LIBS="" | |
28276 | ## If we have a custom action on failure, don't print errors, but | |
28277 | ## do set a variable so people can do so. | |
28278 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
28279 | ||
28280 | fi | |
28281 | ||
28282 | ||
28283 | ||
28284 | else | |
28285 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28286 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28287 | fi | |
28288 | fi | |
28289 | ||
28290 | if test $succeeded = yes; then | |
28291 | ||
28292 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
28293 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
28294 | ||
28295 | else | |
28296 | ||
28297 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
28298 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
28299 | wxUSE_PRINTING_ARCHITECTURE="no" | |
28300 | ||
28301 | ||
28302 | fi | |
28303 | ||
28304 | ||
28305 | succeeded=no | |
28306 | ||
28307 | if test -z "$PKG_CONFIG"; then | |
28308 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28309 | set dummy pkg-config; ac_word=$2 | |
28310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28312 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28314 | else | |
28315 | case $PKG_CONFIG in | |
28316 | [\\/]* | ?:[\\/]*) | |
28317 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28318 | ;; | |
28319 | *) | |
28320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28321 | for as_dir in $PATH | |
28322 | do | |
28323 | IFS=$as_save_IFS | |
28324 | test -z "$as_dir" && as_dir=. | |
28325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28327 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28329 | break 2 | |
28330 | fi | |
28331 | done | |
28332 | done | |
28333 | ||
28334 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28335 | ;; | |
28336 | esac | |
28337 | fi | |
28338 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28339 | ||
28340 | if test -n "$PKG_CONFIG"; then | |
28341 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28342 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28343 | else | |
28344 | echo "$as_me:$LINENO: result: no" >&5 | |
28345 | echo "${ECHO_T}no" >&6 | |
28346 | fi | |
28347 | ||
28348 | fi | |
28349 | ||
28350 | if test "$PKG_CONFIG" = "no" ; then | |
28351 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28352 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28353 | echo "*** to the full path to pkg-config." | |
28354 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28355 | else | |
28356 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28357 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28358 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
28359 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
28360 | ||
28361 | if $PKG_CONFIG --exists "pangoxft" ; then | |
28362 | echo "$as_me:$LINENO: result: yes" >&5 | |
28363 | echo "${ECHO_T}yes" >&6 | |
28364 | succeeded=yes | |
28365 | ||
28366 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
28367 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
28368 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
28369 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
28370 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
28371 | ||
28372 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
28373 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
28374 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
28375 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
28376 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
28377 | else | |
28378 | PANGOXFT_CFLAGS="" | |
28379 | PANGOXFT_LIBS="" | |
28380 | ## If we have a custom action on failure, don't print errors, but | |
28381 | ## do set a variable so people can do so. | |
28382 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
28383 | ||
28384 | fi | |
28385 | ||
28386 | ||
28387 | ||
28388 | else | |
28389 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28390 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28391 | fi | |
28392 | fi | |
28393 | ||
28394 | if test $succeeded = yes; then | |
28395 | ||
4ae1af05 MB |
28396 | cat >>confdefs.h <<\_ACEOF |
28397 | #define HAVE_PANGO_XFT 1 | |
28398 | _ACEOF | |
28399 | ||
a848cd7e SC |
28400 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
28401 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
28402 | ||
28403 | else | |
28404 | ||
28405 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
28406 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
28407 | ||
28408 | ||
28409 | fi | |
28410 | ||
304205f1 VS |
28411 | save_CFLAGS="$CFLAGS" |
28412 | save_LIBS="$LIBS" | |
28413 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
28414 | LIBS="$LIBS $PANGOX_LIBS" | |
28415 | ||
28416 | for ac_func in pango_font_family_is_monospace | |
28417 | do | |
28418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28419 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28421 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28423 | else | |
28424 | cat >conftest.$ac_ext <<_ACEOF | |
28425 | /* confdefs.h. */ | |
28426 | _ACEOF | |
28427 | cat confdefs.h >>conftest.$ac_ext | |
28428 | cat >>conftest.$ac_ext <<_ACEOF | |
28429 | /* end confdefs.h. */ | |
28430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
28431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28432 | #define $ac_func innocuous_$ac_func | |
28433 | ||
28434 | /* System header to define __stub macros and hopefully few prototypes, | |
28435 | which can conflict with char $ac_func (); below. | |
28436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28437 | <limits.h> exists even on freestanding compilers. */ | |
28438 | ||
28439 | #ifdef __STDC__ | |
28440 | # include <limits.h> | |
28441 | #else | |
28442 | # include <assert.h> | |
28443 | #endif | |
28444 | ||
28445 | #undef $ac_func | |
28446 | ||
28447 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28448 | #ifdef __cplusplus | |
28449 | extern "C" | |
28450 | { | |
28451 | #endif | |
28452 | /* We use char because int might match the return type of a gcc2 | |
28453 | builtin and then its argument prototype would still apply. */ | |
28454 | char $ac_func (); | |
28455 | /* The GNU C library defines this for functions which it implements | |
28456 | to always fail with ENOSYS. Some functions are actually named | |
28457 | something starting with __ and the normal name is an alias. */ | |
28458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28459 | choke me | |
28460 | #else | |
28461 | char (*f) () = $ac_func; | |
28462 | #endif | |
28463 | #ifdef __cplusplus | |
28464 | } | |
28465 | #endif | |
28466 | ||
28467 | int | |
28468 | main () | |
28469 | { | |
28470 | return f != $ac_func; | |
28471 | ; | |
28472 | return 0; | |
28473 | } | |
28474 | _ACEOF | |
28475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28477 | (eval $ac_link) 2>conftest.er1 | |
28478 | ac_status=$? | |
28479 | grep -v '^ *+' conftest.er1 >conftest.err | |
28480 | rm -f conftest.er1 | |
28481 | cat conftest.err >&5 | |
28482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28483 | (exit $ac_status); } && | |
6ebeb4c7 | 28484 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
28485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28486 | (eval $ac_try) 2>&5 | |
28487 | ac_status=$? | |
28488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28489 | (exit $ac_status); }; } && | |
28490 | { ac_try='test -s conftest$ac_exeext' | |
28491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28492 | (eval $ac_try) 2>&5 | |
28493 | ac_status=$? | |
28494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28495 | (exit $ac_status); }; }; then | |
28496 | eval "$as_ac_var=yes" | |
28497 | else | |
28498 | echo "$as_me: failed program was:" >&5 | |
28499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28500 | ||
28501 | eval "$as_ac_var=no" | |
28502 | fi | |
28503 | rm -f conftest.err conftest.$ac_objext \ | |
28504 | conftest$ac_exeext conftest.$ac_ext | |
28505 | fi | |
28506 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28507 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28508 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28509 | cat >>confdefs.h <<_ACEOF | |
28510 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28511 | _ACEOF | |
28512 | ||
28513 | fi | |
28514 | done | |
28515 | ||
28516 | CFLAGS="$save_CFLAGS" | |
28517 | LIBS="$save_LIBS" | |
a848cd7e SC |
28518 | fi |
28519 | ||
28520 | wxUSE_UNIVERSAL="yes" | |
28521 | ||
28522 | if test "$wxUSE_NANOX" = "yes"; then | |
28523 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
28524 | 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" | |
28525 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
28526 | else | |
28527 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
28528 | fi | |
28529 | ||
a848cd7e SC |
28530 | TOOLKIT=X11 |
28531 | GUIDIST=X11_DIST | |
28532 | fi | |
28533 | ||
28534 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
28535 | if test "$wxUSE_UNICODE" = "yes"; then |
28536 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
28537 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
28538 | { (exit 1); exit 1; }; } | |
28539 | fi | |
28540 | ||
74b84332 VS |
28541 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
28542 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 28543 | |
74b84332 VS |
28544 | ac_find_includes= |
28545 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28546 | do | |
28547 | if test -f "$ac_dir/Xm/Xm.h"; then | |
28548 | ac_find_includes=$ac_dir | |
28549 | break | |
28550 | fi | |
28551 | done | |
a848cd7e | 28552 | |
74b84332 VS |
28553 | if test "$ac_find_includes" != "" ; then |
28554 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28555 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28556 | ||
28557 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28558 | ac_path_to_include="" | |
28559 | else | |
28560 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
28561 | result=$? | |
28562 | if test $result = 0; then | |
28563 | ac_path_to_include="" | |
28564 | else | |
28565 | ac_path_to_include=" -I$ac_find_includes" | |
28566 | fi | |
a848cd7e SC |
28567 | fi |
28568 | ||
74b84332 VS |
28569 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
28570 | else | |
e051b34e MW |
28571 | save_CFLAGS=$CFLAGS |
28572 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28573 | ||
74b84332 | 28574 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28575 | /* confdefs.h. */ |
28576 | _ACEOF | |
28577 | cat confdefs.h >>conftest.$ac_ext | |
28578 | cat >>conftest.$ac_ext <<_ACEOF | |
28579 | /* end confdefs.h. */ | |
28580 | ||
74b84332 VS |
28581 | #include <Xm/Xm.h> |
28582 | ||
a848cd7e SC |
28583 | int |
28584 | main () | |
28585 | { | |
28586 | ||
74b84332 VS |
28587 | int version; |
28588 | version = xmUseVersion; | |
28589 | ||
a848cd7e SC |
28590 | ; |
28591 | return 0; | |
28592 | } | |
28593 | _ACEOF | |
74b84332 VS |
28594 | rm -f conftest.$ac_objext |
28595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28596 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 28597 | ac_status=$? |
ac1cb8d3 VS |
28598 | grep -v '^ *+' conftest.er1 >conftest.err |
28599 | rm -f conftest.er1 | |
28600 | cat conftest.err >&5 | |
a848cd7e SC |
28601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28602 | (exit $ac_status); } && | |
6ebeb4c7 | 28603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28605 | (eval $ac_try) 2>&5 | |
28606 | ac_status=$? | |
28607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28608 | (exit $ac_status); }; } && | |
74b84332 | 28609 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28611 | (eval $ac_try) 2>&5 | |
28612 | ac_status=$? | |
28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28614 | (exit $ac_status); }; }; then | |
74b84332 VS |
28615 | |
28616 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
28617 | echo "${ECHO_T}found in default search path" >&6 | |
28618 | COMPILED_X_PROGRAM=1 | |
28619 | ||
a848cd7e SC |
28620 | else |
28621 | echo "$as_me: failed program was:" >&5 | |
28622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28623 | ||
a848cd7e | 28624 | |
74b84332 VS |
28625 | echo "$as_me:$LINENO: result: no" >&5 |
28626 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
28627 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
28628 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 28629 | { (exit 1); exit 1; }; } |
a848cd7e | 28630 | |
a848cd7e | 28631 | |
a848cd7e | 28632 | fi |
74b84332 | 28633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
28634 | |
28635 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
28636 | fi |
28637 | ||
0ad5d837 VZ |
28638 | |
28639 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
28640 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
28641 | ||
0ad5d837 VZ |
28642 | ac_find_libraries= |
28643 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 28644 | do |
3eca31dc | 28645 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
28646 | if test -f "$ac_dir/libXm.$ac_extension"; then |
28647 | ac_find_libraries=$ac_dir | |
28648 | break 2 | |
a848cd7e | 28649 | fi |
74b84332 VS |
28650 | done |
28651 | done | |
a848cd7e | 28652 | |
0ad5d837 VZ |
28653 | |
28654 | if test "x$ac_find_libraries" != "x" ; then | |
28655 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
28656 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 28657 | |
74b84332 | 28658 | |
0ad5d837 | 28659 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 28660 | ac_path_to_link="" |
a848cd7e | 28661 | else |
0ad5d837 VZ |
28662 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28663 | result=$? | |
28664 | if test $result = 0; then | |
28665 | ac_path_to_link="" | |
28666 | else | |
28667 | ac_path_to_link=" -L$ac_find_libraries" | |
28668 | fi | |
74b84332 VS |
28669 | fi |
28670 | ||
0ad5d837 VZ |
28671 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
28672 | else | |
28673 | save_CFLAGS=$CFLAGS | |
28674 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
6f9cf1e6 MW |
28675 | save_LIBS="$LIBS" |
28676 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 28677 | |
0ad5d837 | 28678 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28679 | /* confdefs.h. */ |
28680 | _ACEOF | |
28681 | cat confdefs.h >>conftest.$ac_ext | |
28682 | cat >>conftest.$ac_ext <<_ACEOF | |
28683 | /* end confdefs.h. */ | |
28684 | ||
0ad5d837 | 28685 | #include <Xm/Xm.h> |
74b84332 | 28686 | |
a848cd7e SC |
28687 | int |
28688 | main () | |
28689 | { | |
74b84332 | 28690 | |
0ad5d837 VZ |
28691 | int version; |
28692 | version = xmUseVersion; | |
74b84332 | 28693 | |
a848cd7e SC |
28694 | ; |
28695 | return 0; | |
28696 | } | |
28697 | _ACEOF | |
0ad5d837 VZ |
28698 | rm -f conftest.$ac_objext conftest$ac_exeext |
28699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28700 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28701 | ac_status=$? |
ac1cb8d3 VS |
28702 | grep -v '^ *+' conftest.er1 >conftest.err |
28703 | rm -f conftest.er1 | |
28704 | cat conftest.err >&5 | |
a848cd7e SC |
28705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28706 | (exit $ac_status); } && | |
6ebeb4c7 | 28707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28709 | (eval $ac_try) 2>&5 | |
28710 | ac_status=$? | |
28711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28712 | (exit $ac_status); }; } && | |
0ad5d837 | 28713 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28715 | (eval $ac_try) 2>&5 | |
28716 | ac_status=$? | |
28717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28718 | (exit $ac_status); }; }; then | |
74b84332 | 28719 | |
0ad5d837 | 28720 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 28721 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 28722 | COMPILED_X_PROGRAM=1 |
74b84332 | 28723 | |
a848cd7e SC |
28724 | else |
28725 | echo "$as_me: failed program was:" >&5 | |
28726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28727 | ||
74b84332 | 28728 | |
6f9cf1e6 | 28729 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 28730 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 28731 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
28732 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
28733 | { (exit 1); exit 1; }; } | |
28734 | ||
28735 | ||
28736 | fi | |
0ad5d837 VZ |
28737 | rm -f conftest.err conftest.$ac_objext \ |
28738 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 28739 | |
0ad5d837 | 28740 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 28741 | LIBS="$save_LIBS" |
74b84332 VS |
28742 | fi |
28743 | ||
28744 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
28745 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
28746 | libp_link="" | |
28747 | libsm_ice_link="" | |
28748 | libs_found=0 | |
28749 | for libp in "" " -lXp"; do | |
28750 | if test "$libs_found" = "0"; then | |
28751 | for libsm_ice in "" " -lSM -lICE"; do | |
28752 | if test "$libs_found" = "0"; then | |
28753 | save_LIBS="$LIBS" | |
28754 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
28755 | save_CFLAGS=$CFLAGS | |
28756 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28757 | ||
28758 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28759 | /* confdefs.h. */ |
28760 | _ACEOF | |
28761 | cat confdefs.h >>conftest.$ac_ext | |
28762 | cat >>conftest.$ac_ext <<_ACEOF | |
28763 | /* end confdefs.h. */ | |
28764 | ||
74b84332 VS |
28765 | #include <Xm/Xm.h> |
28766 | #include <Xm/List.h> | |
28767 | ||
a848cd7e SC |
28768 | int |
28769 | main () | |
28770 | { | |
74b84332 VS |
28771 | |
28772 | XmString string = NULL; | |
28773 | Widget w = NULL; | |
28774 | int position = 0; | |
28775 | XmListAddItem(w, string, position); | |
28776 | ||
a848cd7e SC |
28777 | ; |
28778 | return 0; | |
28779 | } | |
28780 | _ACEOF | |
28781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28783 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28784 | ac_status=$? |
ac1cb8d3 VS |
28785 | grep -v '^ *+' conftest.er1 >conftest.err |
28786 | rm -f conftest.er1 | |
28787 | cat conftest.err >&5 | |
a848cd7e SC |
28788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28789 | (exit $ac_status); } && | |
6ebeb4c7 | 28790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28792 | (eval $ac_try) 2>&5 | |
28793 | ac_status=$? | |
28794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28795 | (exit $ac_status); }; } && | |
28796 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28798 | (eval $ac_try) 2>&5 | |
28799 | ac_status=$? | |
28800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28801 | (exit $ac_status); }; }; then | |
28802 | ||
28803 | libp_link="$libp" | |
28804 | libsm_ice_link="$libsm_ice" | |
28805 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
28806 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
28807 | libs_found=1 | |
28808 | ||
28809 | else | |
28810 | echo "$as_me: failed program was:" >&5 | |
28811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28812 | ||
28813 | ||
28814 | ||
28815 | fi | |
ac1cb8d3 VS |
28816 | rm -f conftest.err conftest.$ac_objext \ |
28817 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28818 | |
28819 | LIBS="$save_LIBS" | |
28820 | CFLAGS=$save_CFLAGS | |
28821 | fi | |
28822 | done | |
28823 | fi | |
28824 | done | |
28825 | ||
28826 | if test "$libs_found" = "0"; then | |
28827 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
28828 | echo "${ECHO_T}can't find the right libraries" >&6 | |
28829 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
28830 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
28831 | { (exit 1); exit 1; }; } | |
28832 | fi | |
28833 | ||
62fa8b3a MW |
28834 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
28835 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
28836 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
28837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28838 | else | |
28839 | ac_check_lib_save_LIBS=$LIBS | |
28840 | LIBS="-lSgm $LIBS" | |
28841 | cat >conftest.$ac_ext <<_ACEOF | |
28842 | /* confdefs.h. */ | |
28843 | _ACEOF | |
28844 | cat confdefs.h >>conftest.$ac_ext | |
28845 | cat >>conftest.$ac_ext <<_ACEOF | |
28846 | /* end confdefs.h. */ | |
28847 | ||
28848 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28849 | #ifdef __cplusplus | |
28850 | extern "C" | |
28851 | #endif | |
28852 | /* We use char because int might match the return type of a gcc2 | |
28853 | builtin and then its argument prototype would still apply. */ | |
28854 | char SgCreateList (); | |
28855 | int | |
28856 | main () | |
28857 | { | |
28858 | SgCreateList (); | |
28859 | ; | |
28860 | return 0; | |
28861 | } | |
28862 | _ACEOF | |
28863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28865 | (eval $ac_link) 2>conftest.er1 | |
28866 | ac_status=$? | |
28867 | grep -v '^ *+' conftest.er1 >conftest.err | |
28868 | rm -f conftest.er1 | |
28869 | cat conftest.err >&5 | |
28870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28871 | (exit $ac_status); } && | |
28872 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
28873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28874 | (eval $ac_try) 2>&5 | |
28875 | ac_status=$? | |
28876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28877 | (exit $ac_status); }; } && | |
28878 | { ac_try='test -s conftest$ac_exeext' | |
28879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28880 | (eval $ac_try) 2>&5 | |
28881 | ac_status=$? | |
28882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28883 | (exit $ac_status); }; }; then | |
28884 | ac_cv_lib_Sgm_SgCreateList=yes | |
28885 | else | |
28886 | echo "$as_me: failed program was:" >&5 | |
28887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28888 | ||
28889 | ac_cv_lib_Sgm_SgCreateList=no | |
28890 | fi | |
28891 | rm -f conftest.err conftest.$ac_objext \ | |
28892 | conftest$ac_exeext conftest.$ac_ext | |
28893 | LIBS=$ac_check_lib_save_LIBS | |
28894 | fi | |
28895 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
28896 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
28897 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
28898 | libsgm_link=" -lSgm" | |
28899 | fi | |
28900 | ||
28901 | ||
a848cd7e SC |
28902 | save_CFLAGS=$CFLAGS |
28903 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
0ad5d837 | 28904 | |
a848cd7e SC |
28905 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
28906 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
28907 | if test "${wx_cv_lib_motif2+set}" = set; then |
28908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28909 | else | |
28910 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28911 | /* confdefs.h. */ |
28912 | _ACEOF | |
28913 | cat confdefs.h >>conftest.$ac_ext | |
28914 | cat >>conftest.$ac_ext <<_ACEOF | |
28915 | /* end confdefs.h. */ | |
28916 | ||
0ad5d837 | 28917 | #include <Xm/Xm.h> |
a848cd7e SC |
28918 | |
28919 | int | |
28920 | main () | |
28921 | { | |
28922 | ||
0ad5d837 VZ |
28923 | #if XmVersion < 2000 |
28924 | Not Motif 2 | |
28925 | #endif | |
a848cd7e SC |
28926 | |
28927 | ; | |
28928 | return 0; | |
28929 | } | |
28930 | _ACEOF | |
28931 | rm -f conftest.$ac_objext | |
28932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28934 | ac_status=$? |
ac1cb8d3 VS |
28935 | grep -v '^ *+' conftest.er1 >conftest.err |
28936 | rm -f conftest.er1 | |
28937 | cat conftest.err >&5 | |
a848cd7e SC |
28938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28939 | (exit $ac_status); } && | |
6ebeb4c7 | 28940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28942 | (eval $ac_try) 2>&5 | |
28943 | ac_status=$? | |
28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28945 | (exit $ac_status); }; } && | |
28946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28948 | (eval $ac_try) 2>&5 | |
28949 | ac_status=$? | |
28950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28951 | (exit $ac_status); }; }; then | |
0ad5d837 | 28952 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
28953 | else |
28954 | echo "$as_me: failed program was:" >&5 | |
28955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28956 | ||
0ad5d837 VZ |
28957 | wx_cv_lib_motif2="no" |
28958 | fi | |
28959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28960 | fi | |
28961 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
28962 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
28963 | if test "$wx_cv_lib_motif2" = "yes"; then | |
28964 | cat >>confdefs.h <<\_ACEOF | |
28965 | #define __WXMOTIF20__ 1 | |
28966 | _ACEOF | |
a848cd7e | 28967 | |
0ad5d837 VZ |
28968 | else |
28969 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
28970 | #define __WXMOTIF20__ 0 |
28971 | _ACEOF | |
28972 | ||
0ad5d837 | 28973 | fi |
2113bc77 MW |
28974 | |
28975 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
28976 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
28977 | if test "${wx_cv_lib_lesstif+set}" = set; then |
28978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28979 | else | |
28980 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
28981 | /* confdefs.h. */ |
28982 | _ACEOF | |
28983 | cat confdefs.h >>conftest.$ac_ext | |
28984 | cat >>conftest.$ac_ext <<_ACEOF | |
28985 | /* end confdefs.h. */ | |
28986 | ||
0ad5d837 | 28987 | #include <Xm/Xm.h> |
2113bc77 MW |
28988 | |
28989 | int | |
28990 | main () | |
28991 | { | |
28992 | ||
0ad5d837 VZ |
28993 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
28994 | Not Lesstif | |
28995 | #endif | |
2113bc77 MW |
28996 | |
28997 | ; | |
28998 | return 0; | |
28999 | } | |
29000 | _ACEOF | |
29001 | rm -f conftest.$ac_objext | |
29002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29003 | (eval $ac_compile) 2>conftest.er1 | |
29004 | ac_status=$? | |
29005 | grep -v '^ *+' conftest.er1 >conftest.err | |
29006 | rm -f conftest.er1 | |
29007 | cat conftest.err >&5 | |
29008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29009 | (exit $ac_status); } && | |
6ebeb4c7 | 29010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
29011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29012 | (eval $ac_try) 2>&5 | |
29013 | ac_status=$? | |
29014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29015 | (exit $ac_status); }; } && | |
29016 | { ac_try='test -s conftest.$ac_objext' | |
29017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29018 | (eval $ac_try) 2>&5 | |
29019 | ac_status=$? | |
29020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29021 | (exit $ac_status); }; }; then | |
0ad5d837 | 29022 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
29023 | else |
29024 | echo "$as_me: failed program was:" >&5 | |
29025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29026 | ||
0ad5d837 VZ |
29027 | wx_cv_lib_lesstif="no" |
29028 | fi | |
29029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 29030 | |
0ad5d837 VZ |
29031 | fi |
29032 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
29033 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
29034 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
29035 | cat >>confdefs.h <<\_ACEOF | |
29036 | #define __WXLESSTIF__ 1 | |
29037 | _ACEOF | |
29038 | ||
29039 | else | |
29040 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
29041 | #define __WXLESSTIF__ 0 |
29042 | _ACEOF | |
29043 | ||
0ad5d837 | 29044 | fi |
2113bc77 | 29045 | |
a848cd7e SC |
29046 | CFLAGS=$save_CFLAGS |
29047 | ||
62fa8b3a | 29048 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
29049 | TOOLKIT=MOTIF |
29050 | GUIDIST=MOTIF_DIST | |
29051 | fi | |
29052 | ||
74b84332 | 29053 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
29054 | if test "$wxUSE_LIBXPM" = "sys"; then |
29055 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
29056 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
29057 | ||
0ad5d837 VZ |
29058 | ac_find_libraries= |
29059 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 29060 | do |
3eca31dc | 29061 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29062 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
29063 | ac_find_libraries=$ac_dir | |
29064 | break 2 | |
29065 | fi | |
29066 | done | |
29067 | done | |
29068 | ||
29069 | if test "$ac_find_libraries" != "" ; then | |
29070 | ||
0ad5d837 | 29071 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
29072 | ac_path_to_link="" |
29073 | else | |
0ad5d837 VZ |
29074 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29075 | result=$? | |
29076 | if test $result = 0; then | |
29077 | ac_path_to_link="" | |
29078 | else | |
29079 | ac_path_to_link=" -L$ac_find_libraries" | |
29080 | fi | |
a848cd7e SC |
29081 | fi |
29082 | ||
29083 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
29084 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
29085 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
29086 | |
29087 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
29088 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
29089 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
29090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29091 | else | |
29092 | ||
29093 | save_CFLAGS=$CFLAGS | |
29094 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29095 | ||
29096 | cat >conftest.$ac_ext <<_ACEOF | |
29097 | /* confdefs.h. */ | |
29098 | _ACEOF | |
29099 | cat confdefs.h >>conftest.$ac_ext | |
29100 | cat >>conftest.$ac_ext <<_ACEOF | |
29101 | /* end confdefs.h. */ | |
29102 | ||
29103 | #include <X11/xpm.h> | |
29104 | ||
29105 | int | |
29106 | main () | |
29107 | { | |
29108 | ||
29109 | int version; | |
29110 | version = XpmLibraryVersion(); | |
29111 | ||
29112 | ; | |
29113 | return 0; | |
29114 | } | |
29115 | _ACEOF | |
29116 | rm -f conftest.$ac_objext | |
29117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29119 | ac_status=$? |
ac1cb8d3 VS |
29120 | grep -v '^ *+' conftest.er1 >conftest.err |
29121 | rm -f conftest.er1 | |
29122 | cat conftest.err >&5 | |
a848cd7e SC |
29123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29124 | (exit $ac_status); } && | |
6ebeb4c7 | 29125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29127 | (eval $ac_try) 2>&5 | |
29128 | ac_status=$? | |
29129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29130 | (exit $ac_status); }; } && | |
29131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29133 | (eval $ac_try) 2>&5 | |
29134 | ac_status=$? | |
29135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29136 | (exit $ac_status); }; }; then | |
29137 | wx_cv_x11_xpm_h=yes | |
29138 | else | |
29139 | echo "$as_me: failed program was:" >&5 | |
29140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29141 | ||
29142 | wx_cv_x11_xpm_h=no | |
29143 | ||
29144 | fi | |
ac1cb8d3 | 29145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29146 | |
29147 | CFLAGS=$save_CFLAGS | |
29148 | ||
29149 | ||
29150 | fi | |
29151 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
29152 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
29153 | ||
29154 | if test $wx_cv_x11_xpm_h = "yes"; then | |
29155 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
29156 | cat >>confdefs.h <<\_ACEOF | |
29157 | #define wxHAVE_LIB_XPM 1 | |
29158 | _ACEOF | |
29159 | ||
29160 | else | |
29161 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
29162 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
29163 | fi | |
29164 | fi | |
29165 | ||
29166 | fi | |
29167 | ||
29168 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
29169 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
29170 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
29171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29172 | else | |
29173 | ac_check_lib_save_LIBS=$LIBS | |
29174 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
29175 | cat >conftest.$ac_ext <<_ACEOF | |
29176 | /* confdefs.h. */ | |
29177 | _ACEOF | |
29178 | cat confdefs.h >>conftest.$ac_ext | |
29179 | cat >>conftest.$ac_ext <<_ACEOF | |
29180 | /* end confdefs.h. */ | |
29181 | ||
29182 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29183 | #ifdef __cplusplus | |
29184 | extern "C" | |
29185 | #endif | |
29186 | /* We use char because int might match the return type of a gcc2 | |
29187 | builtin and then its argument prototype would still apply. */ | |
29188 | char XShapeQueryExtension (); | |
29189 | int | |
29190 | main () | |
29191 | { | |
29192 | XShapeQueryExtension (); | |
29193 | ; | |
29194 | return 0; | |
29195 | } | |
29196 | _ACEOF | |
29197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29199 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29200 | ac_status=$? |
ac1cb8d3 VS |
29201 | grep -v '^ *+' conftest.er1 >conftest.err |
29202 | rm -f conftest.er1 | |
29203 | cat conftest.err >&5 | |
a848cd7e SC |
29204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29205 | (exit $ac_status); } && | |
6ebeb4c7 | 29206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29208 | (eval $ac_try) 2>&5 | |
29209 | ac_status=$? | |
29210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29211 | (exit $ac_status); }; } && | |
29212 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29214 | (eval $ac_try) 2>&5 | |
29215 | ac_status=$? | |
29216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29217 | (exit $ac_status); }; }; then | |
29218 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
29219 | else | |
29220 | echo "$as_me: failed program was:" >&5 | |
29221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29222 | ||
29223 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
29224 | fi | |
ac1cb8d3 VS |
29225 | rm -f conftest.err conftest.$ac_objext \ |
29226 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29227 | LIBS=$ac_check_lib_save_LIBS |
29228 | fi | |
29229 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
29230 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
29231 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
29232 | ||
29233 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
29234 | wxHAVE_XEXT_LIB=1 | |
29235 | ||
29236 | fi | |
29237 | ||
29238 | ||
29239 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
29240 | save_CFLAGS="$CFLAGS" | |
29241 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29242 | ||
29243 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
29244 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
29245 | cat >conftest.$ac_ext <<_ACEOF | |
29246 | /* confdefs.h. */ | |
29247 | _ACEOF | |
29248 | cat confdefs.h >>conftest.$ac_ext | |
29249 | cat >>conftest.$ac_ext <<_ACEOF | |
29250 | /* end confdefs.h. */ | |
29251 | ||
29252 | #include <X11/Xlib.h> | |
29253 | #include <X11/extensions/shape.h> | |
29254 | ||
29255 | int | |
29256 | main () | |
29257 | { | |
29258 | ||
29259 | int dummy1, dummy2; | |
29260 | XShapeQueryExtension((Display*)NULL, | |
29261 | (int*)NULL, (int*)NULL); | |
29262 | ||
29263 | ; | |
29264 | return 0; | |
29265 | } | |
29266 | _ACEOF | |
29267 | rm -f conftest.$ac_objext | |
29268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29270 | ac_status=$? |
ac1cb8d3 VS |
29271 | grep -v '^ *+' conftest.er1 >conftest.err |
29272 | rm -f conftest.er1 | |
29273 | cat conftest.err >&5 | |
a848cd7e SC |
29274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29275 | (exit $ac_status); } && | |
6ebeb4c7 | 29276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29278 | (eval $ac_try) 2>&5 | |
29279 | ac_status=$? | |
29280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29281 | (exit $ac_status); }; } && | |
29282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29284 | (eval $ac_try) 2>&5 | |
29285 | ac_status=$? | |
29286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29287 | (exit $ac_status); }; }; then | |
29288 | ||
29289 | cat >>confdefs.h <<\_ACEOF | |
29290 | #define HAVE_XSHAPE 1 | |
29291 | _ACEOF | |
29292 | ||
29293 | echo "$as_me:$LINENO: result: found" >&5 | |
29294 | echo "${ECHO_T}found" >&6 | |
29295 | ||
29296 | else | |
29297 | echo "$as_me: failed program was:" >&5 | |
29298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29299 | ||
29300 | ||
29301 | echo "$as_me:$LINENO: result: not found" >&5 | |
29302 | echo "${ECHO_T}not found" >&6 | |
29303 | ||
29304 | fi | |
ac1cb8d3 | 29305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29306 | CFLAGS="$save_CFLAGS" |
29307 | ||
29308 | fi | |
29309 | fi | |
29310 | ||
29311 | if test "$wxUSE_MAC" = 1; then | |
29312 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
29313 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
29314 | if test "$GCC" = yes; then | |
29315 | echo "$as_me:$LINENO: result: gcc" >&5 | |
29316 | echo "${ECHO_T}gcc" >&6 | |
29317 | CPPFLAGS_PASCAL="-fpascal-strings" | |
29318 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
29319 | echo "$as_me:$LINENO: result: xlc" >&5 | |
29320 | echo "${ECHO_T}xlc" >&6 | |
29321 | CPPFLAGS_PASCAL="-qmacpstr" | |
29322 | else | |
29323 | echo "$as_me:$LINENO: result: none" >&5 | |
29324 | echo "${ECHO_T}none" >&6 | |
29325 | fi | |
29326 | ||
1e9e8aba DE |
29327 | if test "x$wxUSE_UNIX" = "xyes"; then |
29328 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
29329 | else | |
29330 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
29331 | fi | |
a848cd7e | 29332 | |
a848cd7e SC |
29333 | TOOLKIT=MAC |
29334 | GUIDIST=MACX_DIST | |
dd21ced8 | 29335 | WXBASEPORT="_carbon" |
a848cd7e SC |
29336 | fi |
29337 | ||
29338 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
29339 | TOOLKIT=COCOA |
29340 | GUIDIST=COCOA_DIST | |
29341 | fi | |
29342 | ||
29343 | if test "$wxUSE_PM" = 1; then | |
29344 | TOOLKIT=PM | |
de59c161 RD |
29345 | GUIDIST=PM_DIST |
29346 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
29347 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
29348 | if test "${wx_cv_spbcdata+set}" = set; then | |
29349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29350 | else | |
29351 | ||
29352 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
29353 | /* confdefs.h. */ |
29354 | _ACEOF | |
29355 | cat confdefs.h >>conftest.$ac_ext | |
29356 | cat >>conftest.$ac_ext <<_ACEOF | |
29357 | /* end confdefs.h. */ | |
29358 | ||
29359 | #define INCL_PM | |
29360 | #include <os2.h> | |
29361 | ||
29362 | int | |
29363 | main () | |
29364 | { | |
29365 | ||
29366 | SPBCDATA test; | |
29367 | ||
29368 | ; | |
29369 | return 0; | |
29370 | } | |
29371 | _ACEOF | |
29372 | rm -f conftest.$ac_objext | |
29373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29374 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 29375 | ac_status=$? |
ac1cb8d3 VS |
29376 | grep -v '^ *+' conftest.er1 >conftest.err |
29377 | rm -f conftest.er1 | |
29378 | cat conftest.err >&5 | |
de59c161 RD |
29379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29380 | (exit $ac_status); } && | |
6ebeb4c7 | 29381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29383 | (eval $ac_try) 2>&5 | |
29384 | ac_status=$? | |
29385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29386 | (exit $ac_status); }; } && | |
29387 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
29388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29389 | (eval $ac_try) 2>&5 | |
29390 | ac_status=$? | |
29391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29392 | (exit $ac_status); }; }; then | |
29393 | wx_cv_spbcdata=yes | |
29394 | else | |
29395 | echo "$as_me: failed program was:" >&5 | |
29396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29397 | ||
29398 | wx_cv_spbcdata=no | |
29399 | ||
29400 | fi | |
ac1cb8d3 | 29401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
29402 | |
29403 | ||
29404 | fi | |
29405 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
29406 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
29407 | ||
29408 | if test $wx_cv_spbcdata = "yes"; then | |
29409 | cat >>confdefs.h <<\_ACEOF | |
29410 | #define HAVE_SPBCDATA 1 | |
29411 | _ACEOF | |
29412 | ||
29413 | fi | |
a848cd7e SC |
29414 | fi |
29415 | ||
29416 | if test "$TOOLKIT" = "PM" ; then | |
29417 | TOOLKIT_DIR="os2" | |
29418 | else | |
29419 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
29420 | fi | |
29421 | ||
a848cd7e | 29422 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
29423 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
29424 | WIDGET_SET=univ | |
a848cd7e SC |
29425 | fi |
29426 | ||
29427 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
29428 | DISTDIR="wx\$(TOOLKIT)" | |
29429 | else | |
29430 | USE_GUI=0 | |
29431 | ||
29432 | TOOLKIT_DIR="base" | |
29433 | ||
29434 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 29435 | TOOLKIT="MSW" |
a848cd7e SC |
29436 | fi |
29437 | ||
a848cd7e SC |
29438 | GUIDIST="BASE_DIST" |
29439 | DISTDIR="wxBase" | |
29440 | fi | |
29441 | ||
29442 | ||
d12aef51 VZ |
29443 | if test "$wxUSE_GUI" = "yes"; then |
29444 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
29445 | ||
29446 | for ac_header in X11/Xlib.h | |
29447 | do | |
29448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29449 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29454 | fi | |
29455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29456 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29457 | else | |
29458 | # Is the header compilable? | |
29459 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29460 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29461 | cat >conftest.$ac_ext <<_ACEOF | |
29462 | /* confdefs.h. */ | |
29463 | _ACEOF | |
29464 | cat confdefs.h >>conftest.$ac_ext | |
29465 | cat >>conftest.$ac_ext <<_ACEOF | |
29466 | /* end confdefs.h. */ | |
29467 | $ac_includes_default | |
29468 | #include <$ac_header> | |
29469 | _ACEOF | |
29470 | rm -f conftest.$ac_objext | |
29471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29472 | (eval $ac_compile) 2>conftest.er1 | |
29473 | ac_status=$? | |
29474 | grep -v '^ *+' conftest.er1 >conftest.err | |
29475 | rm -f conftest.er1 | |
29476 | cat conftest.err >&5 | |
29477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29478 | (exit $ac_status); } && | |
29479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29481 | (eval $ac_try) 2>&5 | |
29482 | ac_status=$? | |
29483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29484 | (exit $ac_status); }; } && | |
29485 | { ac_try='test -s conftest.$ac_objext' | |
29486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29487 | (eval $ac_try) 2>&5 | |
29488 | ac_status=$? | |
29489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29490 | (exit $ac_status); }; }; then | |
29491 | ac_header_compiler=yes | |
29492 | else | |
29493 | echo "$as_me: failed program was:" >&5 | |
29494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29495 | ||
29496 | ac_header_compiler=no | |
29497 | fi | |
29498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29499 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29500 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29501 | ||
29502 | # Is the header present? | |
29503 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29504 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29505 | cat >conftest.$ac_ext <<_ACEOF | |
29506 | /* confdefs.h. */ | |
29507 | _ACEOF | |
29508 | cat confdefs.h >>conftest.$ac_ext | |
29509 | cat >>conftest.$ac_ext <<_ACEOF | |
29510 | /* end confdefs.h. */ | |
29511 | #include <$ac_header> | |
29512 | _ACEOF | |
29513 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29514 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29515 | ac_status=$? | |
29516 | grep -v '^ *+' conftest.er1 >conftest.err | |
29517 | rm -f conftest.er1 | |
29518 | cat conftest.err >&5 | |
29519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29520 | (exit $ac_status); } >/dev/null; then | |
29521 | if test -s conftest.err; then | |
29522 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29523 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
29524 | else | |
29525 | ac_cpp_err= | |
29526 | fi | |
29527 | else | |
29528 | ac_cpp_err=yes | |
29529 | fi | |
29530 | if test -z "$ac_cpp_err"; then | |
29531 | ac_header_preproc=yes | |
29532 | else | |
29533 | echo "$as_me: failed program was:" >&5 | |
29534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29535 | ||
29536 | ac_header_preproc=no | |
29537 | fi | |
29538 | rm -f conftest.err conftest.$ac_ext | |
29539 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29540 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29541 | ||
29542 | # So? What about this header? | |
29543 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
29544 | yes:no: ) | |
29545 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29546 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29547 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
29548 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
29549 | ac_header_preproc=yes | |
29550 | ;; | |
29551 | no:yes:* ) | |
29552 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29553 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29554 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29555 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29556 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
29557 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
29558 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
29559 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
29560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29561 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29562 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
29563 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
29564 | ( | |
29565 | cat <<\_ASBOX | |
29566 | ## ----------------------------------------- ## | |
29567 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29568 | ## ----------------------------------------- ## | |
29569 | _ASBOX | |
29570 | ) | | |
29571 | sed "s/^/$as_me: WARNING: /" >&2 | |
29572 | ;; | |
29573 | esac | |
29574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29578 | else | |
29579 | eval "$as_ac_Header=\$ac_header_preproc" | |
29580 | fi | |
29581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29583 | ||
29584 | fi | |
29585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29586 | cat >>confdefs.h <<_ACEOF | |
29587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29588 | _ACEOF | |
29589 | ||
29590 | fi | |
29591 | ||
29592 | done | |
29593 | ||
29594 | ||
29595 | for ac_header in X11/XKBlib.h | |
29596 | do | |
29597 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29602 | else | |
29603 | cat >conftest.$ac_ext <<_ACEOF | |
29604 | /* confdefs.h. */ | |
29605 | _ACEOF | |
29606 | cat confdefs.h >>conftest.$ac_ext | |
29607 | cat >>conftest.$ac_ext <<_ACEOF | |
29608 | /* end confdefs.h. */ | |
29609 | ||
29610 | #if HAVE_X11_XLIB_H | |
29611 | #include <X11/Xlib.h> | |
29612 | #endif | |
29613 | ||
29614 | ||
29615 | #include <$ac_header> | |
29616 | _ACEOF | |
29617 | rm -f conftest.$ac_objext | |
29618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29619 | (eval $ac_compile) 2>conftest.er1 | |
29620 | ac_status=$? | |
29621 | grep -v '^ *+' conftest.er1 >conftest.err | |
29622 | rm -f conftest.er1 | |
29623 | cat conftest.err >&5 | |
29624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29625 | (exit $ac_status); } && | |
29626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29628 | (eval $ac_try) 2>&5 | |
29629 | ac_status=$? | |
29630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29631 | (exit $ac_status); }; } && | |
29632 | { ac_try='test -s conftest.$ac_objext' | |
29633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29634 | (eval $ac_try) 2>&5 | |
29635 | ac_status=$? | |
29636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29637 | (exit $ac_status); }; }; then | |
29638 | eval "$as_ac_Header=yes" | |
29639 | else | |
29640 | echo "$as_me: failed program was:" >&5 | |
29641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29642 | ||
29643 | eval "$as_ac_Header=no" | |
29644 | fi | |
29645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29646 | fi | |
29647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29650 | cat >>confdefs.h <<_ACEOF | |
29651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29652 | _ACEOF | |
29653 | ||
29654 | fi | |
29655 | ||
29656 | done | |
29657 | ||
29658 | fi | |
29659 | fi | |
29660 | ||
a848cd7e SC |
29661 | |
29662 | ||
29663 | IODBC_C_SRC="" | |
29664 | ||
29665 | ||
29666 | if test "$TOOLKIT" != "MSW" ; then | |
29667 | ||
29668 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
29669 | ||
29670 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29671 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29672 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29673 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29675 | fi | |
29676 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29677 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29678 | else | |
29679 | # Is the header compilable? | |
29680 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
29681 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
29682 | cat >conftest.$ac_ext <<_ACEOF | |
29683 | /* confdefs.h. */ | |
29684 | _ACEOF | |
29685 | cat confdefs.h >>conftest.$ac_ext | |
29686 | cat >>conftest.$ac_ext <<_ACEOF | |
29687 | /* end confdefs.h. */ | |
29688 | $ac_includes_default | |
29689 | #include <sql.h> | |
29690 | _ACEOF | |
29691 | rm -f conftest.$ac_objext | |
29692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29693 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29694 | ac_status=$? |
ac1cb8d3 VS |
29695 | grep -v '^ *+' conftest.er1 >conftest.err |
29696 | rm -f conftest.er1 | |
29697 | cat conftest.err >&5 | |
a848cd7e SC |
29698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29699 | (exit $ac_status); } && | |
6ebeb4c7 | 29700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29702 | (eval $ac_try) 2>&5 | |
29703 | ac_status=$? | |
29704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29705 | (exit $ac_status); }; } && | |
29706 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29708 | (eval $ac_try) 2>&5 | |
29709 | ac_status=$? | |
29710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29711 | (exit $ac_status); }; }; then | |
29712 | ac_header_compiler=yes | |
29713 | else | |
29714 | echo "$as_me: failed program was:" >&5 | |
29715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29716 | ||
29717 | ac_header_compiler=no | |
29718 | fi | |
ac1cb8d3 | 29719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29720 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29721 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29722 | ||
29723 | # Is the header present? | |
29724 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
29725 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
29726 | cat >conftest.$ac_ext <<_ACEOF | |
29727 | /* confdefs.h. */ | |
29728 | _ACEOF | |
29729 | cat confdefs.h >>conftest.$ac_ext | |
29730 | cat >>conftest.$ac_ext <<_ACEOF | |
29731 | /* end confdefs.h. */ | |
29732 | #include <sql.h> | |
29733 | _ACEOF | |
29734 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29735 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29736 | ac_status=$? | |
29737 | grep -v '^ *+' conftest.er1 >conftest.err | |
29738 | rm -f conftest.er1 | |
29739 | cat conftest.err >&5 | |
29740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29741 | (exit $ac_status); } >/dev/null; then | |
29742 | if test -s conftest.err; then | |
29743 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29744 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29745 | else |
29746 | ac_cpp_err= | |
29747 | fi | |
29748 | else | |
29749 | ac_cpp_err=yes | |
29750 | fi | |
29751 | if test -z "$ac_cpp_err"; then | |
29752 | ac_header_preproc=yes | |
29753 | else | |
29754 | echo "$as_me: failed program was:" >&5 | |
29755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29756 | ||
29757 | ac_header_preproc=no | |
29758 | fi | |
29759 | rm -f conftest.err conftest.$ac_ext | |
29760 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29761 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29762 | ||
29763 | # So? What about this header? | |
ac1cb8d3 VS |
29764 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29765 | yes:no: ) | |
a848cd7e SC |
29766 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29767 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29768 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
29769 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
29770 | ac_header_preproc=yes | |
a848cd7e | 29771 | ;; |
ac1cb8d3 | 29772 | no:yes:* ) |
a848cd7e SC |
29773 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
29774 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29775 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
29776 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
29777 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
29778 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
29779 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29780 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29781 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
29782 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29783 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
29784 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29785 | ( |
29786 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29787 | ## ----------------------------------------- ## |
29788 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29789 | ## ----------------------------------------- ## | |
a848cd7e SC |
29790 | _ASBOX |
29791 | ) | | |
29792 | sed "s/^/$as_me: WARNING: /" >&2 | |
29793 | ;; | |
29794 | esac | |
29795 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29796 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29797 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29799 | else | |
29800 | ac_cv_header_sql_h=$ac_header_preproc | |
29801 | fi | |
29802 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29803 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29804 | ||
29805 | fi | |
29806 | if test $ac_cv_header_sql_h = yes; then | |
29807 | found_sql_h=1 | |
29808 | fi | |
29809 | ||
29810 | ||
29811 | if test "x$found_sql_h" = "x1" ; then | |
29812 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
29813 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
29814 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
29815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29816 | else | |
29817 | ac_check_lib_save_LIBS=$LIBS | |
29818 | LIBS="-liodbc $LIBS" | |
29819 | cat >conftest.$ac_ext <<_ACEOF | |
29820 | /* confdefs.h. */ | |
29821 | _ACEOF | |
29822 | cat confdefs.h >>conftest.$ac_ext | |
29823 | cat >>conftest.$ac_ext <<_ACEOF | |
29824 | /* end confdefs.h. */ | |
29825 | ||
29826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29827 | #ifdef __cplusplus | |
29828 | extern "C" | |
29829 | #endif | |
29830 | /* We use char because int might match the return type of a gcc2 | |
29831 | builtin and then its argument prototype would still apply. */ | |
29832 | char SQLAllocEnv (); | |
29833 | int | |
29834 | main () | |
29835 | { | |
29836 | SQLAllocEnv (); | |
29837 | ; | |
29838 | return 0; | |
29839 | } | |
29840 | _ACEOF | |
29841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29843 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29844 | ac_status=$? |
ac1cb8d3 VS |
29845 | grep -v '^ *+' conftest.er1 >conftest.err |
29846 | rm -f conftest.er1 | |
29847 | cat conftest.err >&5 | |
a848cd7e SC |
29848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29849 | (exit $ac_status); } && | |
6ebeb4c7 | 29850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29852 | (eval $ac_try) 2>&5 | |
29853 | ac_status=$? | |
29854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29855 | (exit $ac_status); }; } && | |
29856 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29858 | (eval $ac_try) 2>&5 | |
29859 | ac_status=$? | |
29860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29861 | (exit $ac_status); }; }; then | |
29862 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
29863 | else | |
29864 | echo "$as_me: failed program was:" >&5 | |
29865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29866 | ||
29867 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
29868 | fi | |
ac1cb8d3 VS |
29869 | rm -f conftest.err conftest.$ac_objext \ |
29870 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29871 | LIBS=$ac_check_lib_save_LIBS |
29872 | fi | |
29873 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
29874 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
29875 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
29876 | ODBC_LINK=" -liodbc" | |
29877 | else | |
29878 | ||
29879 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
29880 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
29881 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
29882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29883 | else | |
29884 | ac_check_lib_save_LIBS=$LIBS | |
29885 | LIBS="-lunixodbc $LIBS" | |
29886 | cat >conftest.$ac_ext <<_ACEOF | |
29887 | /* confdefs.h. */ | |
29888 | _ACEOF | |
29889 | cat confdefs.h >>conftest.$ac_ext | |
29890 | cat >>conftest.$ac_ext <<_ACEOF | |
29891 | /* end confdefs.h. */ | |
29892 | ||
29893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29894 | #ifdef __cplusplus | |
29895 | extern "C" | |
29896 | #endif | |
29897 | /* We use char because int might match the return type of a gcc2 | |
29898 | builtin and then its argument prototype would still apply. */ | |
29899 | char SQLAllocEnv (); | |
29900 | int | |
29901 | main () | |
29902 | { | |
29903 | SQLAllocEnv (); | |
29904 | ; | |
29905 | return 0; | |
29906 | } | |
29907 | _ACEOF | |
29908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29910 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29911 | ac_status=$? |
ac1cb8d3 VS |
29912 | grep -v '^ *+' conftest.er1 >conftest.err |
29913 | rm -f conftest.er1 | |
29914 | cat conftest.err >&5 | |
a848cd7e SC |
29915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29916 | (exit $ac_status); } && | |
6ebeb4c7 | 29917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29919 | (eval $ac_try) 2>&5 | |
29920 | ac_status=$? | |
29921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29922 | (exit $ac_status); }; } && | |
29923 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29925 | (eval $ac_try) 2>&5 | |
29926 | ac_status=$? | |
29927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29928 | (exit $ac_status); }; }; then | |
29929 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
29930 | else | |
29931 | echo "$as_me: failed program was:" >&5 | |
29932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29933 | ||
29934 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
29935 | fi | |
ac1cb8d3 VS |
29936 | rm -f conftest.err conftest.$ac_objext \ |
29937 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29938 | LIBS=$ac_check_lib_save_LIBS |
29939 | fi | |
29940 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
29941 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
29942 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
29943 | ODBC_LINK=" -lunixodbc" | |
29944 | else | |
29945 | ||
29946 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
29947 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
29948 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
29949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29950 | else | |
29951 | ac_check_lib_save_LIBS=$LIBS | |
29952 | LIBS="-lodbc $LIBS" | |
29953 | cat >conftest.$ac_ext <<_ACEOF | |
29954 | /* confdefs.h. */ | |
29955 | _ACEOF | |
29956 | cat confdefs.h >>conftest.$ac_ext | |
29957 | cat >>conftest.$ac_ext <<_ACEOF | |
29958 | /* end confdefs.h. */ | |
29959 | ||
29960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29961 | #ifdef __cplusplus | |
29962 | extern "C" | |
29963 | #endif | |
29964 | /* We use char because int might match the return type of a gcc2 | |
29965 | builtin and then its argument prototype would still apply. */ | |
29966 | char SQLAllocEnv (); | |
29967 | int | |
29968 | main () | |
29969 | { | |
29970 | SQLAllocEnv (); | |
29971 | ; | |
29972 | return 0; | |
29973 | } | |
29974 | _ACEOF | |
29975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29977 | (eval $ac_link) 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); } && | |
6ebeb4c7 | 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_exeext' | |
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_lib_odbc_SQLAllocEnv=yes | |
29997 | else | |
29998 | echo "$as_me: failed program was:" >&5 | |
29999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30000 | ||
30001 | ac_cv_lib_odbc_SQLAllocEnv=no | |
30002 | fi | |
ac1cb8d3 VS |
30003 | rm -f conftest.err conftest.$ac_objext \ |
30004 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30005 | LIBS=$ac_check_lib_save_LIBS |
30006 | fi | |
30007 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
30008 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
30009 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
30010 | ODBC_LINK=" -lodbc" | |
30011 | fi | |
30012 | ||
30013 | ||
30014 | fi | |
30015 | ||
30016 | ||
30017 | fi | |
30018 | ||
30019 | fi | |
30020 | if test "x$ODBC_LINK" = "x" ; then | |
30021 | if test "$wxUSE_ODBC" = "sys" ; then | |
30022 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
30023 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
30024 | { (exit 1); exit 1; }; } | |
30025 | else | |
30026 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
30027 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
30028 | wxUSE_ODBC=builtin | |
30029 | fi | |
30030 | else | |
30031 | wxUSE_ODBC=sys | |
30032 | fi | |
30033 | fi | |
a848cd7e | 30034 | |
2da0c077 RD |
30035 | if test "$wxUSE_ODBC" = "builtin" ; then |
30036 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30037 | #define wxUSE_BUILTIN_IODBC 1 |
30038 | _ACEOF | |
30039 | ||
a848cd7e SC |
30040 | fi |
30041 | fi | |
30042 | ||
2da0c077 RD |
30043 | if test "$wxUSE_ODBC" != "no" ; then |
30044 | cat >>confdefs.h <<\_ACEOF | |
30045 | #define wxUSE_ODBC 1 | |
30046 | _ACEOF | |
30047 | ||
30048 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
30049 | ||
30050 | WXODBCFLAG="-D_IODBC_" | |
30051 | fi | |
a848cd7e | 30052 | |
01cb68df | 30053 | |
a848cd7e | 30054 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 30055 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
30056 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
30057 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
30058 | ||
0ad5d837 VZ |
30059 | ac_find_libraries= |
30060 | for ac_dir in $SEARCH_LIB; | |
30061 | do | |
30062 | for ac_extension in a so sl dylib dll.a; do | |
30063 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
30064 | ac_find_libraries=$ac_dir | |
30065 | break 2 | |
30066 | fi | |
30067 | done | |
30068 | done | |
30069 | ||
a848cd7e SC |
30070 | if test "$ac_find_libraries" != "" ; then |
30071 | ||
0ad5d837 | 30072 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30073 | ac_path_to_link="" |
30074 | else | |
0ad5d837 VZ |
30075 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30076 | result=$? | |
30077 | if test $result = 0; then | |
30078 | ac_path_to_link="" | |
30079 | else | |
30080 | ac_path_to_link=" -L$ac_find_libraries" | |
30081 | fi | |
a848cd7e SC |
30082 | fi |
30083 | ||
30084 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30085 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
30086 | fi | |
30087 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
30088 | echo "$as_me:$LINENO: result: yes" >&5 | |
30089 | echo "${ECHO_T}yes" >&6 | |
30090 | ||
30091 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
30092 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
30093 | ||
0ad5d837 VZ |
30094 | ac_find_libraries= |
30095 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30096 | do |
3eca31dc | 30097 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30098 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
30099 | ac_find_libraries=$ac_dir | |
30100 | break 2 | |
30101 | fi | |
30102 | done | |
30103 | done | |
30104 | ||
30105 | if test "$ac_find_libraries" != "" ; then | |
30106 | echo "$as_me:$LINENO: result: yes" >&5 | |
30107 | echo "${ECHO_T}yes" >&6 | |
30108 | ||
30109 | for ac_header in X11/extensions/xf86vmode.h | |
30110 | do | |
30111 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30112 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30116 | else | |
30117 | cat >conftest.$ac_ext <<_ACEOF | |
30118 | /* confdefs.h. */ | |
30119 | _ACEOF | |
30120 | cat confdefs.h >>conftest.$ac_ext | |
30121 | cat >>conftest.$ac_ext <<_ACEOF | |
30122 | /* end confdefs.h. */ | |
30123 | ||
30124 | #if HAVE_X11_XLIB_H | |
30125 | #include <X11/Xlib.h> | |
30126 | #endif | |
30127 | ||
30128 | ||
30129 | #include <$ac_header> | |
30130 | _ACEOF | |
30131 | rm -f conftest.$ac_objext | |
30132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30134 | ac_status=$? |
ac1cb8d3 VS |
30135 | grep -v '^ *+' conftest.er1 >conftest.err |
30136 | rm -f conftest.er1 | |
30137 | cat conftest.err >&5 | |
a848cd7e SC |
30138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30139 | (exit $ac_status); } && | |
6ebeb4c7 | 30140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30142 | (eval $ac_try) 2>&5 | |
30143 | ac_status=$? | |
30144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30145 | (exit $ac_status); }; } && | |
30146 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30148 | (eval $ac_try) 2>&5 | |
30149 | ac_status=$? | |
30150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30151 | (exit $ac_status); }; }; then | |
30152 | eval "$as_ac_Header=yes" | |
30153 | else | |
30154 | echo "$as_me: failed program was:" >&5 | |
30155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30156 | ||
30157 | eval "$as_ac_Header=no" | |
30158 | fi | |
ac1cb8d3 | 30159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30160 | fi |
30161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30164 | cat >>confdefs.h <<_ACEOF | |
30165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30166 | _ACEOF | |
30167 | ||
30168 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
30169 | ||
30170 | fi | |
30171 | ||
30172 | done | |
30173 | ||
30174 | else | |
30175 | echo "$as_me:$LINENO: result: no" >&5 | |
30176 | echo "${ECHO_T}no" >&6 | |
30177 | fi | |
30178 | ||
30179 | else | |
30180 | echo "$as_me:$LINENO: result: no" >&5 | |
30181 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
30182 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
30183 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
30184 | wxUSE_DISPLAY="no" |
30185 | fi | |
01cb68df RG |
30186 | elif test "$wxUSE_MSW" = 1; then |
30187 | ||
30188 | ||
30189 | for ac_header in multimon.h ddraw.h | |
30190 | do | |
30191 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 30192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
30193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
30194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 30196 | else |
5294a27e | 30197 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
30198 | /* confdefs.h. */ |
30199 | _ACEOF | |
30200 | cat confdefs.h >>conftest.$ac_ext | |
30201 | cat >>conftest.$ac_ext <<_ACEOF | |
30202 | /* end confdefs.h. */ | |
5294a27e VZ |
30203 | #include <windows.h> |
30204 | ||
01cb68df RG |
30205 | #include <$ac_header> |
30206 | _ACEOF | |
30207 | rm -f conftest.$ac_objext | |
30208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30209 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 30210 | ac_status=$? |
ac1cb8d3 VS |
30211 | grep -v '^ *+' conftest.er1 >conftest.err |
30212 | rm -f conftest.er1 | |
30213 | cat conftest.err >&5 | |
01cb68df RG |
30214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30215 | (exit $ac_status); } && | |
6ebeb4c7 | 30216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30218 | (eval $ac_try) 2>&5 | |
30219 | ac_status=$? | |
30220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30221 | (exit $ac_status); }; } && | |
30222 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
30223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30224 | (eval $ac_try) 2>&5 | |
30225 | ac_status=$? | |
30226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30227 | (exit $ac_status); }; }; then | |
5294a27e | 30228 | eval "$as_ac_Header=yes" |
01cb68df RG |
30229 | else |
30230 | echo "$as_me: failed program was:" >&5 | |
30231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30232 | ||
5294a27e | 30233 | eval "$as_ac_Header=no" |
01cb68df | 30234 | fi |
ac1cb8d3 | 30235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
30236 | fi |
30237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
30239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
30240 | cat >>confdefs.h <<_ACEOF | |
30241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30242 | _ACEOF | |
30243 | ||
30244 | else | |
30245 | ||
5294a27e VZ |
30246 | wxUSE_DISPLAY="no" |
30247 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 30248 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
30249 | |
30250 | fi | |
30251 | ||
30252 | done | |
30253 | ||
a848cd7e SC |
30254 | fi |
30255 | fi | |
30256 | ||
30257 | ||
30258 | USE_OPENGL=0 | |
30259 | if test "$wxUSE_OPENGL" = "yes"; then | |
30260 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
30261 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
30262 | elif test "$wxUSE_MSW" = 1; then | |
30263 | OPENGL_LIBS="-lopengl32 -lglu32" | |
30264 | else | |
30265 | ||
30266 | ||
30267 | ac_find_includes= | |
30268 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30269 | do | |
30270 | if test -f "$ac_dir/GL/gl.h"; then | |
30271 | ac_find_includes=$ac_dir | |
30272 | break | |
30273 | fi | |
30274 | done | |
30275 | ||
30276 | if test "$ac_find_includes" != "" ; then | |
30277 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30278 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30279 | ||
30280 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30281 | ac_path_to_include="" | |
30282 | else | |
30283 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
30284 | result=$? | |
30285 | if test $result = 0; then | |
30286 | ac_path_to_include="" | |
30287 | else | |
30288 | ac_path_to_include=" -I$ac_find_includes" | |
30289 | fi | |
30290 | fi | |
30291 | ||
30292 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
30293 | fi | |
30294 | ||
30295 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30296 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30297 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30298 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30300 | fi | |
30301 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30302 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30303 | else | |
30304 | # Is the header compilable? | |
30305 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
30306 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
30307 | cat >conftest.$ac_ext <<_ACEOF | |
30308 | /* confdefs.h. */ | |
30309 | _ACEOF | |
30310 | cat confdefs.h >>conftest.$ac_ext | |
30311 | cat >>conftest.$ac_ext <<_ACEOF | |
30312 | /* end confdefs.h. */ | |
30313 | $ac_includes_default | |
30314 | #include <GL/gl.h> | |
30315 | _ACEOF | |
30316 | rm -f conftest.$ac_objext | |
30317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30319 | ac_status=$? |
ac1cb8d3 VS |
30320 | grep -v '^ *+' conftest.er1 >conftest.err |
30321 | rm -f conftest.er1 | |
30322 | cat conftest.err >&5 | |
a848cd7e SC |
30323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30324 | (exit $ac_status); } && | |
6ebeb4c7 | 30325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30327 | (eval $ac_try) 2>&5 | |
30328 | ac_status=$? | |
30329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30330 | (exit $ac_status); }; } && | |
30331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30333 | (eval $ac_try) 2>&5 | |
30334 | ac_status=$? | |
30335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30336 | (exit $ac_status); }; }; then | |
30337 | ac_header_compiler=yes | |
30338 | else | |
30339 | echo "$as_me: failed program was:" >&5 | |
30340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30341 | ||
30342 | ac_header_compiler=no | |
30343 | fi | |
ac1cb8d3 | 30344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30345 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30346 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30347 | ||
30348 | # Is the header present? | |
30349 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
30350 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
30351 | cat >conftest.$ac_ext <<_ACEOF | |
30352 | /* confdefs.h. */ | |
30353 | _ACEOF | |
30354 | cat confdefs.h >>conftest.$ac_ext | |
30355 | cat >>conftest.$ac_ext <<_ACEOF | |
30356 | /* end confdefs.h. */ | |
30357 | #include <GL/gl.h> | |
30358 | _ACEOF | |
30359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30361 | ac_status=$? | |
30362 | grep -v '^ *+' conftest.er1 >conftest.err | |
30363 | rm -f conftest.er1 | |
30364 | cat conftest.err >&5 | |
30365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30366 | (exit $ac_status); } >/dev/null; then | |
30367 | if test -s conftest.err; then | |
30368 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30370 | else |
30371 | ac_cpp_err= | |
30372 | fi | |
30373 | else | |
30374 | ac_cpp_err=yes | |
30375 | fi | |
30376 | if test -z "$ac_cpp_err"; then | |
30377 | ac_header_preproc=yes | |
30378 | else | |
30379 | echo "$as_me: failed program was:" >&5 | |
30380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30381 | ||
30382 | ac_header_preproc=no | |
30383 | fi | |
30384 | rm -f conftest.err conftest.$ac_ext | |
30385 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30386 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30387 | ||
30388 | # So? What about this header? | |
ac1cb8d3 VS |
30389 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30390 | yes:no: ) | |
a848cd7e SC |
30391 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30392 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30393 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
30394 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
30395 | ac_header_preproc=yes | |
a848cd7e | 30396 | ;; |
ac1cb8d3 | 30397 | no:yes:* ) |
a848cd7e SC |
30398 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
30399 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30400 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
30401 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
30402 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
30403 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
30404 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30405 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30406 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
30407 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30408 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
30409 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30410 | ( |
30411 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30412 | ## ----------------------------------------- ## |
30413 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30414 | ## ----------------------------------------- ## | |
a848cd7e SC |
30415 | _ASBOX |
30416 | ) | | |
30417 | sed "s/^/$as_me: WARNING: /" >&2 | |
30418 | ;; | |
30419 | esac | |
30420 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30421 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30422 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30424 | else | |
30425 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
30426 | fi | |
30427 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30428 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30429 | ||
30430 | fi | |
30431 | if test $ac_cv_header_GL_gl_h = yes; then | |
30432 | ||
30433 | found_gl=0 | |
30434 | ||
30435 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
30436 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
30437 | ||
0ad5d837 VZ |
30438 | ac_find_libraries= |
30439 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30440 | do |
3eca31dc | 30441 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30442 | if test -f "$ac_dir/libGL.$ac_extension"; then |
30443 | ac_find_libraries=$ac_dir | |
30444 | break 2 | |
30445 | fi | |
30446 | done | |
30447 | done | |
30448 | ||
30449 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
30450 | echo "$as_me:$LINENO: result: yes" >&5 |
30451 | echo "${ECHO_T}yes" >&6 | |
30452 | ||
a848cd7e | 30453 | |
0ad5d837 | 30454 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30455 | ac_path_to_link="" |
30456 | else | |
0ad5d837 VZ |
30457 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30458 | result=$? | |
30459 | if test $result = 0; then | |
30460 | ac_path_to_link="" | |
30461 | else | |
30462 | ac_path_to_link=" -L$ac_find_libraries" | |
30463 | fi | |
a848cd7e SC |
30464 | fi |
30465 | ||
30466 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30467 | LDFLAGS_GL="$ac_path_to_link" | |
30468 | fi | |
30469 | ||
69120ee4 VZ |
30470 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
30471 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 30472 | |
0ad5d837 VZ |
30473 | ac_find_libraries= |
30474 | for ac_dir in $SEARCH_LIB; | |
30475 | do | |
30476 | for ac_extension in a so sl dylib dll.a; do | |
30477 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
30478 | ac_find_libraries=$ac_dir | |
30479 | break 2 | |
30480 | fi | |
30481 | done | |
30482 | done | |
30483 | ||
a848cd7e SC |
30484 | if test "$ac_find_libraries" != "" ; then |
30485 | ||
0ad5d837 | 30486 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30487 | ac_path_to_link="" |
30488 | else | |
0ad5d837 VZ |
30489 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30490 | result=$? | |
30491 | if test $result = 0; then | |
30492 | ac_path_to_link="" | |
30493 | else | |
30494 | ac_path_to_link=" -L$ac_find_libraries" | |
30495 | fi | |
a848cd7e SC |
30496 | fi |
30497 | ||
30498 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
30499 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
30500 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
30501 | fi | |
30502 | ||
30503 | found_gl=1 | |
30504 | OPENGL_LIBS="-lGL -lGLU" | |
30505 | echo "$as_me:$LINENO: result: yes" >&5 | |
30506 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
30507 | else |
30508 | echo "$as_me:$LINENO: result: no" >&5 | |
30509 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 30510 | fi |
69120ee4 VZ |
30511 | else |
30512 | echo "$as_me:$LINENO: result: no" >&5 | |
30513 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
30514 | fi |
30515 | ||
30516 | if test "$found_gl" != 1; then | |
a848cd7e SC |
30517 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
30518 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
30519 | ||
0ad5d837 VZ |
30520 | ac_find_libraries= |
30521 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30522 | do |
3eca31dc | 30523 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30524 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
30525 | ac_find_libraries=$ac_dir | |
30526 | break 2 | |
30527 | fi | |
30528 | done | |
30529 | done | |
30530 | ||
30531 | if test "$ac_find_libraries" != "" ; then | |
30532 | ||
0ad5d837 | 30533 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30534 | ac_path_to_link="" |
30535 | else | |
0ad5d837 VZ |
30536 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30537 | result=$? | |
30538 | if test $result = 0; then | |
30539 | ac_path_to_link="" | |
30540 | else | |
30541 | ac_path_to_link=" -L$ac_find_libraries" | |
30542 | fi | |
a848cd7e SC |
30543 | fi |
30544 | ||
30545 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
30546 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
30547 | echo "$as_me:$LINENO: result: yes" >&5 | |
30548 | echo "${ECHO_T}yes" >&6 | |
30549 | else | |
30550 | echo "$as_me:$LINENO: result: no" >&5 | |
30551 | echo "${ECHO_T}no" >&6 | |
30552 | fi | |
30553 | fi | |
30554 | ||
30555 | fi | |
30556 | ||
30557 | ||
30558 | ||
30559 | if test "x$OPENGL_LIBS" = "x"; then | |
30560 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
30561 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
30562 | { (exit 1); exit 1; }; } | |
30563 | fi | |
30564 | fi | |
30565 | ||
30566 | if test "$wxUSE_OPENGL" = "yes"; then | |
30567 | USE_OPENGL=1 | |
30568 | cat >>confdefs.h <<\_ACEOF | |
30569 | #define wxUSE_OPENGL 1 | |
30570 | _ACEOF | |
30571 | ||
30572 | cat >>confdefs.h <<\_ACEOF | |
30573 | #define wxUSE_GLCANVAS 1 | |
30574 | _ACEOF | |
30575 | ||
30576 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
30577 | fi | |
30578 | fi | |
30579 | ||
a848cd7e SC |
30580 | |
30581 | if test -n "$TOOLKIT" ; then | |
30582 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
30583 | fi | |
30584 | ||
a848cd7e SC |
30585 | |
30586 | ||
30587 | if test "$wxUSE_SHARED" = "yes"; then | |
30588 | case "${host}" in | |
30589 | *-pc-msdosdjgpp ) | |
30590 | wxUSE_SHARED=no | |
30591 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
30592 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
30593 | ;; | |
30594 | esac | |
30595 | fi | |
30596 | ||
a848cd7e | 30597 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
30598 | |
30599 | ||
30600 | found_versioning=no | |
30601 | ||
30602 | ||
30603 | if test $found_versioning = no ; then | |
30604 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
30605 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
30606 | if test "${wx_cv_version_script+set}" = set; then | |
30607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30608 | else | |
30609 | ||
30610 | echo "VER_1 { *; };" >conftest.sym | |
30611 | echo "int main() { return 0; }" >conftest.cpp | |
30612 | ||
30613 | if { ac_try=' | |
30614 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30615 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
30616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30617 | (eval $ac_try) 2>&5 | |
30618 | ac_status=$? | |
30619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30620 | (exit $ac_status); }; } ; then | |
30621 | if test -s conftest.stderr ; then | |
30622 | wx_cv_version_script=no | |
30623 | else | |
30624 | wx_cv_version_script=yes | |
30625 | fi | |
30626 | else | |
30627 | wx_cv_version_script=no | |
30628 | fi | |
e5d4b470 MW |
30629 | |
30630 | if test $wx_cv_version_script = yes | |
30631 | then | |
30632 | echo "struct B { virtual ~B() { } }; \ | |
30633 | struct D : public B { }; \ | |
30634 | void F() { D d; }" > conftest.cpp | |
30635 | ||
30636 | if { ac_try=' | |
30637 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30638 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
30639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30640 | (eval $ac_try) 2>&5 | |
30641 | ac_status=$? | |
30642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30643 | (exit $ac_status); }; } && | |
30644 | { ac_try=' | |
30645 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30646 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
30647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30648 | (eval $ac_try) 2>&5 | |
30649 | ac_status=$? | |
30650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30651 | (exit $ac_status); }; } | |
30652 | then | |
30653 | if { ac_try=' | |
30654 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30655 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
30656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30657 | (eval $ac_try) 2>&5 | |
30658 | ac_status=$? | |
30659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30660 | (exit $ac_status); }; } | |
30661 | then | |
30662 | wx_cv_version_script=yes | |
30663 | else | |
30664 | wx_cv_version_script=no | |
30665 | fi | |
30666 | fi | |
30667 | fi | |
30668 | ||
a848cd7e | 30669 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 30670 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
30671 | |
30672 | fi | |
30673 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
30674 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
30675 | if test $wx_cv_version_script = yes ; then | |
30676 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
30677 | fi | |
30678 | fi | |
30679 | ||
30680 | ||
30681 | case "${host}" in | |
30682 | *-*-linux* | *-*-gnu* ) | |
30683 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30684 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 30685 | ;; |
a848cd7e SC |
30686 | |
30687 | *-*-solaris2* ) | |
30688 | if test "$GCC" = yes ; then | |
30689 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
30690 | ||
30691 | saveLdflags="$LDFLAGS" | |
30692 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
30693 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
30694 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
30695 | cat >conftest.$ac_ext <<_ACEOF | |
30696 | /* confdefs.h. */ | |
30697 | _ACEOF | |
30698 | cat confdefs.h >>conftest.$ac_ext | |
30699 | cat >>conftest.$ac_ext <<_ACEOF | |
30700 | /* end confdefs.h. */ | |
30701 | ||
30702 | int | |
30703 | main () | |
30704 | { | |
30705 | ||
30706 | ; | |
30707 | return 0; | |
30708 | } | |
30709 | _ACEOF | |
30710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30712 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30713 | ac_status=$? |
ac1cb8d3 VS |
30714 | grep -v '^ *+' conftest.er1 >conftest.err |
30715 | rm -f conftest.er1 | |
30716 | cat conftest.err >&5 | |
a848cd7e SC |
30717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30718 | (exit $ac_status); } && | |
6ebeb4c7 | 30719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30721 | (eval $ac_try) 2>&5 | |
30722 | ac_status=$? | |
30723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30724 | (exit $ac_status); }; } && | |
30725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30727 | (eval $ac_try) 2>&5 | |
30728 | ac_status=$? | |
30729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30730 | (exit $ac_status); }; }; then | |
30731 | ||
30732 | echo "$as_me:$LINENO: result: yes" >&5 | |
30733 | echo "${ECHO_T}yes" >&6 | |
30734 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30735 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
30736 | |
30737 | else | |
30738 | echo "$as_me: failed program was:" >&5 | |
30739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30740 | ||
30741 | ||
30742 | echo "$as_me:$LINENO: result: no" >&5 | |
30743 | echo "${ECHO_T}no" >&6 | |
30744 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
30745 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
30746 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
30747 | cat >conftest.$ac_ext <<_ACEOF | |
30748 | /* confdefs.h. */ | |
30749 | _ACEOF | |
30750 | cat confdefs.h >>conftest.$ac_ext | |
30751 | cat >>conftest.$ac_ext <<_ACEOF | |
30752 | /* end confdefs.h. */ | |
30753 | ||
30754 | int | |
30755 | main () | |
30756 | { | |
30757 | ||
30758 | ; | |
30759 | return 0; | |
30760 | } | |
30761 | _ACEOF | |
30762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30765 | ac_status=$? |
ac1cb8d3 VS |
30766 | grep -v '^ *+' conftest.er1 >conftest.err |
30767 | rm -f conftest.er1 | |
30768 | cat conftest.err >&5 | |
a848cd7e SC |
30769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30770 | (exit $ac_status); } && | |
6ebeb4c7 | 30771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30773 | (eval $ac_try) 2>&5 | |
30774 | ac_status=$? | |
30775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30776 | (exit $ac_status); }; } && | |
30777 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30779 | (eval $ac_try) 2>&5 | |
30780 | ac_status=$? | |
30781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30782 | (exit $ac_status); }; }; then | |
30783 | ||
ffa0583f | 30784 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 30785 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
30786 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
30787 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
30788 | ||
a848cd7e SC |
30789 | else |
30790 | echo "$as_me: failed program was:" >&5 | |
30791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30792 | ||
30793 | ||
30794 | echo "$as_me:$LINENO: result: no" >&5 | |
30795 | echo "${ECHO_T}no" >&6 | |
30796 | ||
30797 | fi | |
ac1cb8d3 VS |
30798 | rm -f conftest.err conftest.$ac_objext \ |
30799 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30800 | |
30801 | fi | |
ac1cb8d3 VS |
30802 | rm -f conftest.err conftest.$ac_objext \ |
30803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30804 | LDFLAGS="$saveLdflags" |
30805 | else | |
a848cd7e | 30806 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 30807 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
30808 | fi |
30809 | ;; | |
30810 | ||
cfda0ea8 | 30811 | *-*-darwin* ) |
0caebc27 MW |
30812 | install_name_tool=`which install_name_tool` |
30813 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
30814 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
30815 | cat <<EOF >change-install-names | |
a848cd7e SC |
30816 | #!/bin/sh |
30817 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
30818 | inst_cmd="install_name_tool " | |
30819 | for i in \${libnames} ; do | |
30820 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
30821 | done | |
30822 | \${inst_cmd} \${3} | |
30823 | EOF | |
0caebc27 MW |
30824 | chmod +x change-install-names |
30825 | fi | |
a848cd7e SC |
30826 | ;; |
30827 | ||
30828 | *-*-cygwin* | *-*-mingw32* ) | |
30829 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
30830 | ;; | |
30831 | ||
81f90336 MW |
30832 | *-*-hpux* ) |
30833 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
30834 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
30835 | ;; | |
30836 | ||
a848cd7e | 30837 | esac |
ceec2216 | 30838 | |
ffa0583f RL |
30839 | if test $wxUSE_RPATH = "no"; then |
30840 | SAMPLES_RPATH_FLAG='' | |
30841 | SAMPLES_RPATH_POSTLINK='' | |
30842 | WXCONFIG_RPATH='' | |
30843 | fi | |
30844 | ||
30845 | SHARED=1 | |
30846 | ||
30847 | else | |
30848 | ||
ceec2216 RL |
30849 | config_linkage_component="-static" |
30850 | SHARED=0 | |
ffa0583f | 30851 | |
ceec2216 | 30852 | fi |
a848cd7e | 30853 | |
a848cd7e | 30854 | |
ceec2216 RL |
30855 | UNICODE=0 |
30856 | lib_unicode_suffix= | |
30857 | WX_CHARTYPE="ansi" | |
30858 | if test "$wxUSE_UNICODE" = "yes"; then | |
30859 | lib_unicode_suffix=u | |
30860 | WX_CHARTYPE="unicode" | |
30861 | UNICODE=1 | |
a848cd7e SC |
30862 | fi |
30863 | ||
ceec2216 RL |
30864 | lib_debug_suffix= |
30865 | WX_DEBUGTYPE="release" | |
30866 | DEBUG_FLAG=0 | |
30867 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
30868 | lib_debug_suffix=d | |
30869 | WX_DEBUGTYPE="debug" | |
30870 | DEBUG_FLAG=1 | |
30871 | fi | |
a848cd7e | 30872 | |
ceec2216 RL |
30873 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
30874 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 30875 | |
ceec2216 RL |
30876 | DEBUG_INFO=0 |
30877 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
30878 | DEBUG_INFO=1 | |
30879 | fi | |
a848cd7e | 30880 | |
ceec2216 | 30881 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 30882 | |
ceec2216 | 30883 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 30884 | |
ceec2216 | 30885 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 30886 | |
ceec2216 RL |
30887 | if test "$cross_compiling" = "yes"; then |
30888 | HOST_SUFFIX="-$host_alias" | |
30889 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
30890 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
30891 | fi |
30892 | ||
dd21ced8 | 30893 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
30894 | if test "${TOOLKIT_DIR}" = "os2"; then |
30895 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30896 | else | |
30897 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30898 | fi | |
ceec2216 RL |
30899 | |
30900 | ||
30901 | ||
1d1af5ea DE |
30902 | if test "$wxUSE_COCOA" = 1; then |
30903 | ||
30904 | ||
30905 | ac_ext=c | |
30906 | ac_cpp='$CPP $CPPFLAGS' | |
30907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30910 | ||
30911 | ac_ext=m | |
30912 | ||
30913 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
30914 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
30915 | cat >conftest.$ac_ext <<_ACEOF | |
30916 | /* confdefs.h. */ | |
30917 | _ACEOF | |
30918 | cat confdefs.h >>conftest.$ac_ext | |
30919 | cat >>conftest.$ac_ext <<_ACEOF | |
30920 | /* end confdefs.h. */ | |
30921 | #include <AppKit/NSEvent.h> | |
30922 | #include <CoreFoundation/CoreFoundation.h> | |
30923 | ||
30924 | int | |
30925 | main () | |
30926 | { | |
30927 | ||
30928 | ; | |
30929 | return 0; | |
30930 | } | |
30931 | _ACEOF | |
30932 | rm -f conftest.$ac_objext | |
30933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30934 | (eval $ac_compile) 2>conftest.er1 | |
30935 | ac_status=$? | |
30936 | grep -v '^ *+' conftest.er1 >conftest.err | |
30937 | rm -f conftest.er1 | |
30938 | cat conftest.err >&5 | |
30939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30940 | (exit $ac_status); } && | |
6ebeb4c7 | 30941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
30942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30943 | (eval $ac_try) 2>&5 | |
30944 | ac_status=$? | |
30945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30946 | (exit $ac_status); }; } && | |
30947 | { ac_try='test -s conftest.$ac_objext' | |
30948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30949 | (eval $ac_try) 2>&5 | |
30950 | ac_status=$? | |
30951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30952 | (exit $ac_status); }; }; then | |
30953 | echo "$as_me:$LINENO: result: no" >&5 | |
30954 | echo "${ECHO_T}no" >&6 | |
30955 | else | |
30956 | echo "$as_me: failed program was:" >&5 | |
30957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30958 | ||
30959 | echo "$as_me:$LINENO: result: yes" >&5 | |
30960 | echo "${ECHO_T}yes" >&6 | |
30961 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
30962 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
30963 | cat >conftest.$ac_ext <<_ACEOF | |
30964 | /* confdefs.h. */ | |
30965 | _ACEOF | |
30966 | cat confdefs.h >>conftest.$ac_ext | |
30967 | cat >>conftest.$ac_ext <<_ACEOF | |
30968 | /* end confdefs.h. */ | |
30969 | #define __Point__ 1 | |
30970 | #include <AppKit/NSEvent.h> | |
30971 | #include <CoreFoundation/CoreFoundation.h> | |
30972 | ||
30973 | int | |
30974 | main () | |
30975 | { | |
30976 | ||
30977 | ; | |
30978 | return 0; | |
30979 | } | |
30980 | _ACEOF | |
30981 | rm -f conftest.$ac_objext | |
30982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30983 | (eval $ac_compile) 2>conftest.er1 | |
30984 | ac_status=$? | |
30985 | grep -v '^ *+' conftest.er1 >conftest.err | |
30986 | rm -f conftest.er1 | |
30987 | cat conftest.err >&5 | |
30988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30989 | (exit $ac_status); } && | |
6ebeb4c7 | 30990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
30991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30992 | (eval $ac_try) 2>&5 | |
30993 | ac_status=$? | |
30994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30995 | (exit $ac_status); }; } && | |
30996 | { ac_try='test -s conftest.$ac_objext' | |
30997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30998 | (eval $ac_try) 2>&5 | |
30999 | ac_status=$? | |
31000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31001 | (exit $ac_status); }; }; then | |
31002 | echo "$as_me:$LINENO: result: yes" >&5 | |
31003 | echo "${ECHO_T}yes" >&6 | |
31004 | cat >>confdefs.h <<\_ACEOF | |
31005 | #define __Point__ 1 | |
31006 | _ACEOF | |
31007 | ||
31008 | ||
31009 | else | |
31010 | echo "$as_me: failed program was:" >&5 | |
31011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31012 | ||
31013 | { { echo "$as_me:$LINENO: error: no | |
31014 | See \`config.log' for more details." >&5 | |
31015 | echo "$as_me: error: no | |
31016 | See \`config.log' for more details." >&2;} | |
31017 | { (exit 1); exit 1; }; } | |
31018 | ||
31019 | fi | |
31020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31021 | ||
31022 | fi | |
31023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31024 | ac_ext=c | |
31025 | ac_cpp='$CPP $CPPFLAGS' | |
31026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31029 | ||
31030 | fi | |
31031 | ||
a848cd7e | 31032 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
31033 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
31034 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 31035 | |
a848cd7e | 31036 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
31037 | |
31038 | # Extract the first word of "Rez", so it can be a program name with args. | |
31039 | set dummy Rez; ac_word=$2 | |
31040 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31042 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
31043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31044 | else | |
31045 | if test -n "$RESCOMP"; then | |
31046 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
31047 | else | |
31048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31049 | for as_dir in $PATH | |
31050 | do | |
31051 | IFS=$as_save_IFS | |
31052 | test -z "$as_dir" && as_dir=. | |
31053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31054 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31055 | ac_cv_prog_RESCOMP="Rez" | |
31056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31057 | break 2 | |
31058 | fi | |
31059 | done | |
31060 | done | |
31061 | ||
31062 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
31063 | fi | |
31064 | fi | |
31065 | RESCOMP=$ac_cv_prog_RESCOMP | |
31066 | if test -n "$RESCOMP"; then | |
31067 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
31068 | echo "${ECHO_T}$RESCOMP" >&6 | |
31069 | else | |
31070 | echo "$as_me:$LINENO: result: no" >&5 | |
31071 | echo "${ECHO_T}no" >&6 | |
31072 | fi | |
31073 | ||
31074 | # Extract the first word of "DeRez", so it can be a program name with args. | |
31075 | set dummy DeRez; ac_word=$2 | |
31076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31078 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
31079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31080 | else | |
31081 | if test -n "$DEREZ"; then | |
31082 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
31083 | else | |
31084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31085 | for as_dir in $PATH | |
31086 | do | |
31087 | IFS=$as_save_IFS | |
31088 | test -z "$as_dir" && as_dir=. | |
31089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31091 | ac_cv_prog_DEREZ="DeRez" | |
31092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31093 | break 2 | |
31094 | fi | |
31095 | done | |
31096 | done | |
31097 | ||
31098 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
31099 | fi | |
31100 | fi | |
31101 | DEREZ=$ac_cv_prog_DEREZ | |
31102 | if test -n "$DEREZ"; then | |
31103 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
31104 | echo "${ECHO_T}$DEREZ" >&6 | |
31105 | else | |
31106 | echo "$as_me:$LINENO: result: no" >&5 | |
31107 | echo "${ECHO_T}no" >&6 | |
31108 | fi | |
31109 | ||
31110 | # Extract the first word of "SetFile", so it can be a program name with args. | |
31111 | set dummy SetFile; ac_word=$2 | |
31112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31114 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
31115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31116 | else | |
31117 | if test -n "$SETFILE"; then | |
31118 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
31119 | else | |
31120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31121 | for as_dir in $PATH | |
31122 | do | |
31123 | IFS=$as_save_IFS | |
31124 | test -z "$as_dir" && as_dir=. | |
31125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31127 | ac_cv_prog_SETFILE="SetFile" | |
31128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31129 | break 2 | |
31130 | fi | |
31131 | done | |
31132 | done | |
31133 | ||
31134 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
31135 | fi | |
31136 | fi | |
31137 | SETFILE=$ac_cv_prog_SETFILE | |
31138 | if test -n "$SETFILE"; then | |
31139 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
31140 | echo "${ECHO_T}$SETFILE" >&6 | |
31141 | else | |
31142 | echo "$as_me:$LINENO: result: no" >&5 | |
31143 | echo "${ECHO_T}no" >&6 | |
31144 | fi | |
31145 | ||
31146 | ||
31147 | MACSETFILE="\$(SETFILE)" | |
31148 | ||
31149 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 31150 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 31151 | |
1a79f136 | 31152 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
31153 | else |
31154 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
31155 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
31156 | fi | |
31157 | else | |
ffa0583f RL |
31158 | MACSETFILE="@true" |
31159 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
31160 | |
31161 | if test "$wxUSE_PM" = 1; then | |
31162 | MACRESCOMP="emxbind -ep" | |
31163 | else | |
ffa0583f | 31164 | MACRESCOMP="@true" |
a848cd7e SC |
31165 | fi |
31166 | fi | |
31167 | ||
31168 | ||
31169 | ||
31170 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
31171 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
31172 | if test "${ac_cv_type_mode_t+set}" = set; then | |
31173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31174 | else | |
31175 | cat >conftest.$ac_ext <<_ACEOF | |
31176 | /* confdefs.h. */ | |
31177 | _ACEOF | |
31178 | cat confdefs.h >>conftest.$ac_ext | |
31179 | cat >>conftest.$ac_ext <<_ACEOF | |
31180 | /* end confdefs.h. */ | |
31181 | $ac_includes_default | |
31182 | int | |
31183 | main () | |
31184 | { | |
31185 | if ((mode_t *) 0) | |
31186 | return 0; | |
31187 | if (sizeof (mode_t)) | |
31188 | return 0; | |
31189 | ; | |
31190 | return 0; | |
31191 | } | |
31192 | _ACEOF | |
31193 | rm -f conftest.$ac_objext | |
31194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31195 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31196 | ac_status=$? |
ac1cb8d3 VS |
31197 | grep -v '^ *+' conftest.er1 >conftest.err |
31198 | rm -f conftest.er1 | |
31199 | cat conftest.err >&5 | |
a848cd7e SC |
31200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31201 | (exit $ac_status); } && | |
6ebeb4c7 | 31202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31204 | (eval $ac_try) 2>&5 | |
31205 | ac_status=$? | |
31206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31207 | (exit $ac_status); }; } && | |
31208 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31210 | (eval $ac_try) 2>&5 | |
31211 | ac_status=$? | |
31212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31213 | (exit $ac_status); }; }; then | |
31214 | ac_cv_type_mode_t=yes | |
31215 | else | |
31216 | echo "$as_me: failed program was:" >&5 | |
31217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31218 | ||
31219 | ac_cv_type_mode_t=no | |
31220 | fi | |
ac1cb8d3 | 31221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31222 | fi |
31223 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
31224 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
31225 | if test $ac_cv_type_mode_t = yes; then | |
31226 | : | |
31227 | else | |
31228 | ||
31229 | cat >>confdefs.h <<_ACEOF | |
31230 | #define mode_t int | |
31231 | _ACEOF | |
31232 | ||
31233 | fi | |
31234 | ||
31235 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
31236 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
31237 | if test "${ac_cv_type_off_t+set}" = set; then | |
31238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31239 | else | |
31240 | cat >conftest.$ac_ext <<_ACEOF | |
31241 | /* confdefs.h. */ | |
31242 | _ACEOF | |
31243 | cat confdefs.h >>conftest.$ac_ext | |
31244 | cat >>conftest.$ac_ext <<_ACEOF | |
31245 | /* end confdefs.h. */ | |
31246 | $ac_includes_default | |
31247 | int | |
31248 | main () | |
31249 | { | |
31250 | if ((off_t *) 0) | |
31251 | return 0; | |
31252 | if (sizeof (off_t)) | |
31253 | return 0; | |
31254 | ; | |
31255 | return 0; | |
31256 | } | |
31257 | _ACEOF | |
31258 | rm -f conftest.$ac_objext | |
31259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31261 | ac_status=$? |
ac1cb8d3 VS |
31262 | grep -v '^ *+' conftest.er1 >conftest.err |
31263 | rm -f conftest.er1 | |
31264 | cat conftest.err >&5 | |
a848cd7e SC |
31265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31266 | (exit $ac_status); } && | |
6ebeb4c7 | 31267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31269 | (eval $ac_try) 2>&5 | |
31270 | ac_status=$? | |
31271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31272 | (exit $ac_status); }; } && | |
31273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31275 | (eval $ac_try) 2>&5 | |
31276 | ac_status=$? | |
31277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31278 | (exit $ac_status); }; }; then | |
31279 | ac_cv_type_off_t=yes | |
31280 | else | |
31281 | echo "$as_me: failed program was:" >&5 | |
31282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31283 | ||
31284 | ac_cv_type_off_t=no | |
31285 | fi | |
ac1cb8d3 | 31286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31287 | fi |
31288 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
31289 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
31290 | if test $ac_cv_type_off_t = yes; then | |
31291 | : | |
31292 | else | |
31293 | ||
31294 | cat >>confdefs.h <<_ACEOF | |
31295 | #define off_t long | |
31296 | _ACEOF | |
31297 | ||
31298 | fi | |
31299 | ||
31300 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
31301 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
31302 | if test "${ac_cv_type_pid_t+set}" = set; then | |
31303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31304 | else | |
31305 | cat >conftest.$ac_ext <<_ACEOF | |
31306 | /* confdefs.h. */ | |
31307 | _ACEOF | |
31308 | cat confdefs.h >>conftest.$ac_ext | |
31309 | cat >>conftest.$ac_ext <<_ACEOF | |
31310 | /* end confdefs.h. */ | |
31311 | $ac_includes_default | |
31312 | int | |
31313 | main () | |
31314 | { | |
31315 | if ((pid_t *) 0) | |
31316 | return 0; | |
31317 | if (sizeof (pid_t)) | |
31318 | return 0; | |
31319 | ; | |
31320 | return 0; | |
31321 | } | |
31322 | _ACEOF | |
31323 | rm -f conftest.$ac_objext | |
31324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31325 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31326 | ac_status=$? |
ac1cb8d3 VS |
31327 | grep -v '^ *+' conftest.er1 >conftest.err |
31328 | rm -f conftest.er1 | |
31329 | cat conftest.err >&5 | |
a848cd7e SC |
31330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31331 | (exit $ac_status); } && | |
6ebeb4c7 | 31332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31334 | (eval $ac_try) 2>&5 | |
31335 | ac_status=$? | |
31336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31337 | (exit $ac_status); }; } && | |
31338 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31340 | (eval $ac_try) 2>&5 | |
31341 | ac_status=$? | |
31342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31343 | (exit $ac_status); }; }; then | |
31344 | ac_cv_type_pid_t=yes | |
31345 | else | |
31346 | echo "$as_me: failed program was:" >&5 | |
31347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31348 | ||
31349 | ac_cv_type_pid_t=no | |
31350 | fi | |
ac1cb8d3 | 31351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31352 | fi |
31353 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
31354 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
31355 | if test $ac_cv_type_pid_t = yes; then | |
31356 | : | |
31357 | else | |
31358 | ||
31359 | cat >>confdefs.h <<_ACEOF | |
31360 | #define pid_t int | |
31361 | _ACEOF | |
31362 | ||
31363 | fi | |
31364 | ||
31365 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
31366 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
31367 | if test "${ac_cv_type_size_t+set}" = set; then | |
31368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31369 | else | |
31370 | cat >conftest.$ac_ext <<_ACEOF | |
31371 | /* confdefs.h. */ | |
31372 | _ACEOF | |
31373 | cat confdefs.h >>conftest.$ac_ext | |
31374 | cat >>conftest.$ac_ext <<_ACEOF | |
31375 | /* end confdefs.h. */ | |
31376 | $ac_includes_default | |
31377 | int | |
31378 | main () | |
31379 | { | |
31380 | if ((size_t *) 0) | |
31381 | return 0; | |
31382 | if (sizeof (size_t)) | |
31383 | return 0; | |
31384 | ; | |
31385 | return 0; | |
31386 | } | |
31387 | _ACEOF | |
31388 | rm -f conftest.$ac_objext | |
31389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31391 | ac_status=$? |
ac1cb8d3 VS |
31392 | grep -v '^ *+' conftest.er1 >conftest.err |
31393 | rm -f conftest.er1 | |
31394 | cat conftest.err >&5 | |
a848cd7e SC |
31395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31396 | (exit $ac_status); } && | |
6ebeb4c7 | 31397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31399 | (eval $ac_try) 2>&5 | |
31400 | ac_status=$? | |
31401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31402 | (exit $ac_status); }; } && | |
31403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31405 | (eval $ac_try) 2>&5 | |
31406 | ac_status=$? | |
31407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31408 | (exit $ac_status); }; }; then | |
31409 | ac_cv_type_size_t=yes | |
31410 | else | |
31411 | echo "$as_me: failed program was:" >&5 | |
31412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31413 | ||
31414 | ac_cv_type_size_t=no | |
31415 | fi | |
ac1cb8d3 | 31416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31417 | fi |
31418 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
31419 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
31420 | if test $ac_cv_type_size_t = yes; then | |
31421 | : | |
31422 | else | |
31423 | ||
31424 | cat >>confdefs.h <<_ACEOF | |
31425 | #define size_t unsigned | |
31426 | _ACEOF | |
31427 | ||
31428 | fi | |
31429 | ||
31430 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
31431 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
31432 | if test "${ac_cv_type_uid_t+set}" = set; then | |
31433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31434 | else | |
31435 | cat >conftest.$ac_ext <<_ACEOF | |
31436 | /* confdefs.h. */ | |
31437 | _ACEOF | |
31438 | cat confdefs.h >>conftest.$ac_ext | |
31439 | cat >>conftest.$ac_ext <<_ACEOF | |
31440 | /* end confdefs.h. */ | |
31441 | #include <sys/types.h> | |
31442 | ||
31443 | _ACEOF | |
31444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
31445 | $EGREP "uid_t" >/dev/null 2>&1; then | |
31446 | ac_cv_type_uid_t=yes | |
31447 | else | |
31448 | ac_cv_type_uid_t=no | |
31449 | fi | |
31450 | rm -f conftest* | |
31451 | ||
31452 | fi | |
31453 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
31454 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
31455 | if test $ac_cv_type_uid_t = no; then | |
31456 | ||
31457 | cat >>confdefs.h <<\_ACEOF | |
31458 | #define uid_t int | |
31459 | _ACEOF | |
31460 | ||
31461 | ||
31462 | cat >>confdefs.h <<\_ACEOF | |
31463 | #define gid_t int | |
31464 | _ACEOF | |
31465 | ||
31466 | fi | |
31467 | ||
31468 | ||
d51253e8 RL |
31469 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
31470 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
31471 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
31472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31473 | else | |
31474 | cat >conftest.$ac_ext <<_ACEOF | |
31475 | /* confdefs.h. */ | |
31476 | _ACEOF | |
31477 | cat confdefs.h >>conftest.$ac_ext | |
31478 | cat >>conftest.$ac_ext <<_ACEOF | |
31479 | /* end confdefs.h. */ | |
31480 | $ac_includes_default | |
31481 | int | |
31482 | main () | |
31483 | { | |
31484 | if ((ssize_t *) 0) | |
31485 | return 0; | |
31486 | if (sizeof (ssize_t)) | |
31487 | return 0; | |
31488 | ; | |
31489 | return 0; | |
31490 | } | |
31491 | _ACEOF | |
31492 | rm -f conftest.$ac_objext | |
31493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31494 | (eval $ac_compile) 2>conftest.er1 | |
31495 | ac_status=$? | |
31496 | grep -v '^ *+' conftest.er1 >conftest.err | |
31497 | rm -f conftest.er1 | |
31498 | cat conftest.err >&5 | |
31499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31500 | (exit $ac_status); } && | |
6ebeb4c7 | 31501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
31502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31503 | (eval $ac_try) 2>&5 | |
31504 | ac_status=$? | |
31505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31506 | (exit $ac_status); }; } && | |
31507 | { ac_try='test -s conftest.$ac_objext' | |
31508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31509 | (eval $ac_try) 2>&5 | |
31510 | ac_status=$? | |
31511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31512 | (exit $ac_status); }; }; then | |
31513 | ac_cv_type_ssize_t=yes | |
31514 | else | |
31515 | echo "$as_me: failed program was:" >&5 | |
31516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31517 | ||
31518 | ac_cv_type_ssize_t=no | |
31519 | fi | |
31520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31521 | fi | |
31522 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
31523 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
31524 | if test $ac_cv_type_ssize_t = yes; then | |
31525 | ||
31526 | cat >>confdefs.h <<_ACEOF | |
31527 | #define HAVE_SSIZE_T 1 | |
31528 | _ACEOF | |
31529 | ||
31530 | ||
31531 | fi | |
31532 | ||
31533 | ||
a848cd7e SC |
31534 | |
31535 | ||
31536 | ac_ext=cc | |
31537 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31538 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31539 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31540 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31541 | ||
31542 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
31543 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
31544 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
31545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31546 | else | |
31547 | ||
31548 | cat >conftest.$ac_ext <<_ACEOF | |
31549 | /* confdefs.h. */ | |
31550 | _ACEOF | |
31551 | cat confdefs.h >>conftest.$ac_ext | |
31552 | cat >>conftest.$ac_ext <<_ACEOF | |
31553 | /* end confdefs.h. */ | |
31554 | #include <stddef.h> | |
31555 | int | |
31556 | main () | |
31557 | { | |
31558 | ||
31559 | return 0; } | |
31560 | ||
31561 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
31562 | ||
31563 | int bar() { | |
31564 | ||
31565 | ; | |
31566 | return 0; | |
31567 | } | |
31568 | _ACEOF | |
31569 | rm -f conftest.$ac_objext | |
31570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31571 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31572 | ac_status=$? |
ac1cb8d3 VS |
31573 | grep -v '^ *+' conftest.er1 >conftest.err |
31574 | rm -f conftest.er1 | |
31575 | cat conftest.err >&5 | |
a848cd7e SC |
31576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31577 | (exit $ac_status); } && | |
6ebeb4c7 | 31578 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31580 | (eval $ac_try) 2>&5 | |
31581 | ac_status=$? | |
31582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31583 | (exit $ac_status); }; } && | |
31584 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31586 | (eval $ac_try) 2>&5 | |
31587 | ac_status=$? | |
31588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31589 | (exit $ac_status); }; }; then | |
31590 | wx_cv_size_t_is_uint=no | |
31591 | else | |
31592 | echo "$as_me: failed program was:" >&5 | |
31593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31594 | ||
31595 | wx_cv_size_t_is_uint=yes | |
31596 | ||
31597 | fi | |
ac1cb8d3 | 31598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31599 | |
31600 | ||
31601 | fi | |
31602 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
31603 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
31604 | ||
31605 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
31606 | cat >>confdefs.h <<\_ACEOF | |
31607 | #define wxSIZE_T_IS_UINT 1 | |
31608 | _ACEOF | |
31609 | ||
31610 | else | |
31611 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
31612 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
31613 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
31614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31615 | else | |
31616 | cat >conftest.$ac_ext <<_ACEOF | |
31617 | /* confdefs.h. */ | |
31618 | _ACEOF | |
31619 | cat confdefs.h >>conftest.$ac_ext | |
31620 | cat >>conftest.$ac_ext <<_ACEOF | |
31621 | /* end confdefs.h. */ | |
31622 | #include <stddef.h> | |
31623 | int | |
31624 | main () | |
31625 | { | |
31626 | ||
31627 | return 0; } | |
31628 | ||
31629 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
31630 | ||
31631 | int bar() { | |
31632 | ||
31633 | ; | |
31634 | return 0; | |
31635 | } | |
31636 | _ACEOF | |
31637 | rm -f conftest.$ac_objext | |
31638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31639 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31640 | ac_status=$? |
ac1cb8d3 VS |
31641 | grep -v '^ *+' conftest.er1 >conftest.err |
31642 | rm -f conftest.er1 | |
31643 | cat conftest.err >&5 | |
a848cd7e SC |
31644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31645 | (exit $ac_status); } && | |
6ebeb4c7 | 31646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31648 | (eval $ac_try) 2>&5 | |
31649 | ac_status=$? | |
31650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31651 | (exit $ac_status); }; } && | |
31652 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31654 | (eval $ac_try) 2>&5 | |
31655 | ac_status=$? | |
31656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31657 | (exit $ac_status); }; }; then | |
31658 | wx_cv_size_t_is_ulong=no | |
31659 | else | |
31660 | echo "$as_me: failed program was:" >&5 | |
31661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31662 | ||
31663 | wx_cv_size_t_is_ulong=yes | |
31664 | ||
31665 | fi | |
ac1cb8d3 | 31666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31667 | |
31668 | fi | |
31669 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
31670 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
31671 | ||
31672 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
31673 | cat >>confdefs.h <<\_ACEOF | |
31674 | #define wxSIZE_T_IS_ULONG 1 | |
31675 | _ACEOF | |
31676 | ||
31677 | fi | |
31678 | fi | |
31679 | ||
31680 | ac_ext=c | |
31681 | ac_cpp='$CPP $CPPFLAGS' | |
31682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31685 | ||
31686 | ||
31687 | ||
31688 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
31689 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
31690 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
31691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31692 | else | |
31693 | ||
31694 | cat >conftest.$ac_ext <<_ACEOF | |
31695 | /* confdefs.h. */ | |
31696 | _ACEOF | |
31697 | cat confdefs.h >>conftest.$ac_ext | |
31698 | cat >>conftest.$ac_ext <<_ACEOF | |
31699 | /* end confdefs.h. */ | |
31700 | #include <pwd.h> | |
31701 | int | |
31702 | main () | |
31703 | { | |
31704 | ||
31705 | char *p; | |
31706 | struct passwd *pw; | |
31707 | p = pw->pw_gecos; | |
31708 | ||
31709 | ; | |
31710 | return 0; | |
31711 | } | |
31712 | _ACEOF | |
31713 | rm -f conftest.$ac_objext | |
31714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31715 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31716 | ac_status=$? |
ac1cb8d3 VS |
31717 | grep -v '^ *+' conftest.er1 >conftest.err |
31718 | rm -f conftest.er1 | |
31719 | cat conftest.err >&5 | |
a848cd7e SC |
31720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31721 | (exit $ac_status); } && | |
6ebeb4c7 | 31722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31724 | (eval $ac_try) 2>&5 | |
31725 | ac_status=$? | |
31726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31727 | (exit $ac_status); }; } && | |
31728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31730 | (eval $ac_try) 2>&5 | |
31731 | ac_status=$? | |
31732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31733 | (exit $ac_status); }; }; then | |
31734 | ||
31735 | wx_cv_struct_pw_gecos=yes | |
31736 | ||
31737 | else | |
31738 | echo "$as_me: failed program was:" >&5 | |
31739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31740 | ||
31741 | ||
31742 | wx_cv_struct_pw_gecos=no | |
31743 | ||
31744 | ||
31745 | fi | |
ac1cb8d3 | 31746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31747 | |
31748 | ||
31749 | fi | |
31750 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
31751 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
31752 | ||
31753 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
31754 | cat >>confdefs.h <<\_ACEOF | |
31755 | #define HAVE_PW_GECOS 1 | |
31756 | _ACEOF | |
31757 | ||
31758 | fi | |
31759 | ||
31760 | ||
47a7e797 | 31761 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
31762 | cat >>confdefs.h <<\_ACEOF |
31763 | #define wxUSE_WCHAR_T 1 | |
31764 | _ACEOF | |
31765 | ||
31766 | ||
31767 | WCSLEN_FOUND=0 | |
31768 | WCHAR_LINK= | |
31769 | ||
31770 | for ac_func in wcslen | |
31771 | do | |
31772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31775 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31777 | else | |
31778 | cat >conftest.$ac_ext <<_ACEOF | |
31779 | /* confdefs.h. */ | |
31780 | _ACEOF | |
31781 | cat confdefs.h >>conftest.$ac_ext | |
31782 | cat >>conftest.$ac_ext <<_ACEOF | |
31783 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31784 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31786 | #define $ac_func innocuous_$ac_func | |
31787 | ||
a848cd7e SC |
31788 | /* System header to define __stub macros and hopefully few prototypes, |
31789 | which can conflict with char $ac_func (); below. | |
31790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31791 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31792 | |
a848cd7e SC |
31793 | #ifdef __STDC__ |
31794 | # include <limits.h> | |
31795 | #else | |
31796 | # include <assert.h> | |
31797 | #endif | |
ac1cb8d3 VS |
31798 | |
31799 | #undef $ac_func | |
31800 | ||
a848cd7e SC |
31801 | /* Override any gcc2 internal prototype to avoid an error. */ |
31802 | #ifdef __cplusplus | |
31803 | extern "C" | |
31804 | { | |
31805 | #endif | |
31806 | /* We use char because int might match the return type of a gcc2 | |
31807 | builtin and then its argument prototype would still apply. */ | |
31808 | char $ac_func (); | |
31809 | /* The GNU C library defines this for functions which it implements | |
31810 | to always fail with ENOSYS. Some functions are actually named | |
31811 | something starting with __ and the normal name is an alias. */ | |
31812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31813 | choke me | |
31814 | #else | |
31815 | char (*f) () = $ac_func; | |
31816 | #endif | |
31817 | #ifdef __cplusplus | |
31818 | } | |
31819 | #endif | |
31820 | ||
31821 | int | |
31822 | main () | |
31823 | { | |
31824 | return f != $ac_func; | |
31825 | ; | |
31826 | return 0; | |
31827 | } | |
31828 | _ACEOF | |
31829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31831 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31832 | ac_status=$? |
ac1cb8d3 VS |
31833 | grep -v '^ *+' conftest.er1 >conftest.err |
31834 | rm -f conftest.er1 | |
31835 | cat conftest.err >&5 | |
a848cd7e SC |
31836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31837 | (exit $ac_status); } && | |
6ebeb4c7 | 31838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31840 | (eval $ac_try) 2>&5 | |
31841 | ac_status=$? | |
31842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31843 | (exit $ac_status); }; } && | |
31844 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31846 | (eval $ac_try) 2>&5 | |
31847 | ac_status=$? | |
31848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31849 | (exit $ac_status); }; }; then | |
31850 | eval "$as_ac_var=yes" | |
31851 | else | |
31852 | echo "$as_me: failed program was:" >&5 | |
31853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31854 | ||
31855 | eval "$as_ac_var=no" | |
31856 | fi | |
ac1cb8d3 VS |
31857 | rm -f conftest.err conftest.$ac_objext \ |
31858 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31859 | fi |
31860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31861 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31862 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31863 | cat >>confdefs.h <<_ACEOF | |
31864 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31865 | _ACEOF | |
31866 | WCSLEN_FOUND=1 | |
31867 | fi | |
31868 | done | |
31869 | ||
31870 | ||
31871 | if test "$WCSLEN_FOUND" = 0; then | |
31872 | if test "$TOOLKIT" = "MSW"; then | |
31873 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
31874 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
31875 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
31876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31877 | else | |
31878 | ac_check_lib_save_LIBS=$LIBS | |
31879 | LIBS="-lmsvcrt $LIBS" | |
31880 | cat >conftest.$ac_ext <<_ACEOF | |
31881 | /* confdefs.h. */ | |
31882 | _ACEOF | |
31883 | cat confdefs.h >>conftest.$ac_ext | |
31884 | cat >>conftest.$ac_ext <<_ACEOF | |
31885 | /* end confdefs.h. */ | |
31886 | ||
31887 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31888 | #ifdef __cplusplus | |
31889 | extern "C" | |
31890 | #endif | |
31891 | /* We use char because int might match the return type of a gcc2 | |
31892 | builtin and then its argument prototype would still apply. */ | |
31893 | char wcslen (); | |
31894 | int | |
31895 | main () | |
31896 | { | |
31897 | wcslen (); | |
31898 | ; | |
31899 | return 0; | |
31900 | } | |
31901 | _ACEOF | |
31902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31904 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31905 | ac_status=$? |
ac1cb8d3 VS |
31906 | grep -v '^ *+' conftest.er1 >conftest.err |
31907 | rm -f conftest.er1 | |
31908 | cat conftest.err >&5 | |
a848cd7e SC |
31909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31910 | (exit $ac_status); } && | |
6ebeb4c7 | 31911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31913 | (eval $ac_try) 2>&5 | |
31914 | ac_status=$? | |
31915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31916 | (exit $ac_status); }; } && | |
31917 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31919 | (eval $ac_try) 2>&5 | |
31920 | ac_status=$? | |
31921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31922 | (exit $ac_status); }; }; then | |
31923 | ac_cv_lib_msvcrt_wcslen=yes | |
31924 | else | |
31925 | echo "$as_me: failed program was:" >&5 | |
31926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31927 | ||
31928 | ac_cv_lib_msvcrt_wcslen=no | |
31929 | fi | |
ac1cb8d3 VS |
31930 | rm -f conftest.err conftest.$ac_objext \ |
31931 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31932 | LIBS=$ac_check_lib_save_LIBS |
31933 | fi | |
31934 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
31935 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
31936 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
31937 | WCHAR_OK=1 | |
31938 | fi | |
31939 | ||
31940 | else | |
31941 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
31942 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
31943 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
31944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31945 | else | |
31946 | ac_check_lib_save_LIBS=$LIBS | |
31947 | LIBS="-lw $LIBS" | |
31948 | cat >conftest.$ac_ext <<_ACEOF | |
31949 | /* confdefs.h. */ | |
31950 | _ACEOF | |
31951 | cat confdefs.h >>conftest.$ac_ext | |
31952 | cat >>conftest.$ac_ext <<_ACEOF | |
31953 | /* end confdefs.h. */ | |
31954 | ||
31955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31956 | #ifdef __cplusplus | |
31957 | extern "C" | |
31958 | #endif | |
31959 | /* We use char because int might match the return type of a gcc2 | |
31960 | builtin and then its argument prototype would still apply. */ | |
31961 | char wcslen (); | |
31962 | int | |
31963 | main () | |
31964 | { | |
31965 | wcslen (); | |
31966 | ; | |
31967 | return 0; | |
31968 | } | |
31969 | _ACEOF | |
31970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31972 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31973 | ac_status=$? |
ac1cb8d3 VS |
31974 | grep -v '^ *+' conftest.er1 >conftest.err |
31975 | rm -f conftest.er1 | |
31976 | cat conftest.err >&5 | |
a848cd7e SC |
31977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31978 | (exit $ac_status); } && | |
6ebeb4c7 | 31979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31981 | (eval $ac_try) 2>&5 | |
31982 | ac_status=$? | |
31983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31984 | (exit $ac_status); }; } && | |
31985 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31987 | (eval $ac_try) 2>&5 | |
31988 | ac_status=$? | |
31989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31990 | (exit $ac_status); }; }; then | |
31991 | ac_cv_lib_w_wcslen=yes | |
31992 | else | |
31993 | echo "$as_me: failed program was:" >&5 | |
31994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31995 | ||
31996 | ac_cv_lib_w_wcslen=no | |
31997 | fi | |
ac1cb8d3 VS |
31998 | rm -f conftest.err conftest.$ac_objext \ |
31999 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32000 | LIBS=$ac_check_lib_save_LIBS |
32001 | fi | |
32002 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
32003 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
32004 | if test $ac_cv_lib_w_wcslen = yes; then | |
32005 | ||
32006 | WCHAR_LINK=" -lw" | |
32007 | WCSLEN_FOUND=1 | |
32008 | ||
32009 | fi | |
32010 | ||
32011 | fi | |
32012 | fi | |
32013 | ||
32014 | if test "$WCSLEN_FOUND" = 1; then | |
32015 | cat >>confdefs.h <<\_ACEOF | |
32016 | #define HAVE_WCSLEN 1 | |
32017 | _ACEOF | |
32018 | ||
32019 | fi | |
32020 | ||
efdf6afe | 32021 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
473276a9 VS |
32022 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
32023 | fi | |
32024 | ||
efdf6afe VZ |
32025 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
32026 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
32027 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
32028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32029 | else | |
32030 | cat >conftest.$ac_ext <<_ACEOF | |
32031 | /* confdefs.h. */ | |
32032 | _ACEOF | |
32033 | cat confdefs.h >>conftest.$ac_ext | |
32034 | cat >>conftest.$ac_ext <<_ACEOF | |
32035 | /* end confdefs.h. */ | |
32036 | #include <wchar.h> | |
32037 | ||
32038 | int | |
32039 | main () | |
32040 | { | |
32041 | if ((mbstate_t *) 0) | |
32042 | return 0; | |
32043 | if (sizeof (mbstate_t)) | |
32044 | return 0; | |
32045 | ; | |
32046 | return 0; | |
32047 | } | |
32048 | _ACEOF | |
32049 | rm -f conftest.$ac_objext | |
32050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32051 | (eval $ac_compile) 2>conftest.er1 | |
32052 | ac_status=$? | |
32053 | grep -v '^ *+' conftest.er1 >conftest.err | |
32054 | rm -f conftest.er1 | |
32055 | cat conftest.err >&5 | |
32056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32057 | (exit $ac_status); } && | |
32058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32060 | (eval $ac_try) 2>&5 | |
32061 | ac_status=$? | |
32062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32063 | (exit $ac_status); }; } && | |
32064 | { ac_try='test -s conftest.$ac_objext' | |
32065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32066 | (eval $ac_try) 2>&5 | |
32067 | ac_status=$? | |
32068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32069 | (exit $ac_status); }; }; then | |
32070 | ac_cv_type_mbstate_t=yes | |
32071 | else | |
32072 | echo "$as_me: failed program was:" >&5 | |
32073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32074 | ||
32075 | ac_cv_type_mbstate_t=no | |
32076 | fi | |
32077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32078 | fi | |
32079 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
32080 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
32081 | if test $ac_cv_type_mbstate_t = yes; then | |
32082 | ||
32083 | cat >>confdefs.h <<_ACEOF | |
32084 | #define HAVE_MBSTATE_T 1 | |
32085 | _ACEOF | |
32086 | ||
a848cd7e SC |
32087 | |
32088 | for ac_func in wcsrtombs | |
32089 | do | |
32090 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32091 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32092 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32093 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32095 | else | |
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. */ | |
ac1cb8d3 VS |
32102 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32103 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32104 | #define $ac_func innocuous_$ac_func | |
32105 | ||
a848cd7e SC |
32106 | /* System header to define __stub macros and hopefully few prototypes, |
32107 | which can conflict with char $ac_func (); below. | |
32108 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32109 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32110 | |
a848cd7e SC |
32111 | #ifdef __STDC__ |
32112 | # include <limits.h> | |
32113 | #else | |
32114 | # include <assert.h> | |
32115 | #endif | |
ac1cb8d3 VS |
32116 | |
32117 | #undef $ac_func | |
32118 | ||
a848cd7e SC |
32119 | /* Override any gcc2 internal prototype to avoid an error. */ |
32120 | #ifdef __cplusplus | |
32121 | extern "C" | |
32122 | { | |
32123 | #endif | |
32124 | /* We use char because int might match the return type of a gcc2 | |
32125 | builtin and then its argument prototype would still apply. */ | |
32126 | char $ac_func (); | |
32127 | /* The GNU C library defines this for functions which it implements | |
32128 | to always fail with ENOSYS. Some functions are actually named | |
32129 | something starting with __ and the normal name is an alias. */ | |
32130 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32131 | choke me | |
32132 | #else | |
32133 | char (*f) () = $ac_func; | |
32134 | #endif | |
32135 | #ifdef __cplusplus | |
32136 | } | |
32137 | #endif | |
32138 | ||
32139 | int | |
32140 | main () | |
32141 | { | |
32142 | return f != $ac_func; | |
32143 | ; | |
32144 | return 0; | |
32145 | } | |
32146 | _ACEOF | |
32147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32149 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32150 | ac_status=$? |
ac1cb8d3 VS |
32151 | grep -v '^ *+' conftest.er1 >conftest.err |
32152 | rm -f conftest.er1 | |
32153 | cat conftest.err >&5 | |
a848cd7e SC |
32154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32155 | (exit $ac_status); } && | |
6ebeb4c7 | 32156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32158 | (eval $ac_try) 2>&5 | |
32159 | ac_status=$? | |
32160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32161 | (exit $ac_status); }; } && | |
32162 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32164 | (eval $ac_try) 2>&5 | |
32165 | ac_status=$? | |
32166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32167 | (exit $ac_status); }; }; then | |
32168 | eval "$as_ac_var=yes" | |
32169 | else | |
32170 | echo "$as_me: failed program was:" >&5 | |
32171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32172 | ||
32173 | eval "$as_ac_var=no" | |
32174 | fi | |
ac1cb8d3 VS |
32175 | rm -f conftest.err conftest.$ac_objext \ |
32176 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32177 | fi |
32178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32179 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32180 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32181 | cat >>confdefs.h <<_ACEOF | |
32182 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32183 | _ACEOF | |
32184 | ||
32185 | fi | |
32186 | done | |
32187 | ||
efdf6afe VZ |
32188 | fi |
32189 | ||
a848cd7e SC |
32190 | else |
32191 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
32192 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
32193 | fi | |
32194 | ||
32195 | ||
32196 | ||
32197 | ac_ext=cc | |
32198 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32199 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32200 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32201 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32202 | ||
32203 | ||
32204 | ||
4a767dd5 VZ |
32205 | |
32206 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
32207 | do |
32208 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32209 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32210 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32211 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32213 | else | |
32214 | cat >conftest.$ac_ext <<_ACEOF | |
32215 | /* confdefs.h. */ | |
32216 | _ACEOF | |
32217 | cat confdefs.h >>conftest.$ac_ext | |
32218 | cat >>conftest.$ac_ext <<_ACEOF | |
32219 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32220 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32221 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32222 | #define $ac_func innocuous_$ac_func | |
32223 | ||
a848cd7e SC |
32224 | /* System header to define __stub macros and hopefully few prototypes, |
32225 | which can conflict with char $ac_func (); below. | |
32226 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32227 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32228 | |
a848cd7e SC |
32229 | #ifdef __STDC__ |
32230 | # include <limits.h> | |
32231 | #else | |
32232 | # include <assert.h> | |
32233 | #endif | |
ac1cb8d3 VS |
32234 | |
32235 | #undef $ac_func | |
32236 | ||
a848cd7e SC |
32237 | /* Override any gcc2 internal prototype to avoid an error. */ |
32238 | #ifdef __cplusplus | |
32239 | extern "C" | |
32240 | { | |
32241 | #endif | |
32242 | /* We use char because int might match the return type of a gcc2 | |
32243 | builtin and then its argument prototype would still apply. */ | |
32244 | char $ac_func (); | |
32245 | /* The GNU C library defines this for functions which it implements | |
32246 | to always fail with ENOSYS. Some functions are actually named | |
32247 | something starting with __ and the normal name is an alias. */ | |
32248 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32249 | choke me | |
32250 | #else | |
32251 | char (*f) () = $ac_func; | |
32252 | #endif | |
32253 | #ifdef __cplusplus | |
32254 | } | |
32255 | #endif | |
32256 | ||
32257 | int | |
32258 | main () | |
32259 | { | |
32260 | return f != $ac_func; | |
32261 | ; | |
32262 | return 0; | |
32263 | } | |
32264 | _ACEOF | |
32265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32267 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32268 | ac_status=$? |
ac1cb8d3 VS |
32269 | grep -v '^ *+' conftest.er1 >conftest.err |
32270 | rm -f conftest.er1 | |
32271 | cat conftest.err >&5 | |
a848cd7e SC |
32272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32273 | (exit $ac_status); } && | |
6ebeb4c7 | 32274 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32276 | (eval $ac_try) 2>&5 | |
32277 | ac_status=$? | |
32278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32279 | (exit $ac_status); }; } && | |
32280 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32282 | (eval $ac_try) 2>&5 | |
32283 | ac_status=$? | |
32284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32285 | (exit $ac_status); }; }; then | |
32286 | eval "$as_ac_var=yes" | |
32287 | else | |
32288 | echo "$as_me: failed program was:" >&5 | |
32289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32290 | ||
32291 | eval "$as_ac_var=no" | |
32292 | fi | |
ac1cb8d3 VS |
32293 | rm -f conftest.err conftest.$ac_objext \ |
32294 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32295 | fi |
32296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32297 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32298 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32299 | cat >>confdefs.h <<_ACEOF | |
32300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32301 | _ACEOF | |
32302 | ||
32303 | fi | |
32304 | done | |
32305 | ||
32306 | ||
32307 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
32308 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
32309 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
32310 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
32311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32312 | else | |
32313 | ||
efdf6afe | 32314 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
32315 | /* confdefs.h. */ |
32316 | _ACEOF | |
32317 | cat confdefs.h >>conftest.$ac_ext | |
32318 | cat >>conftest.$ac_ext <<_ACEOF | |
32319 | /* end confdefs.h. */ | |
32320 | ||
32321 | #include <stdio.h> | |
32322 | #include <stdarg.h> | |
efdf6afe VZ |
32323 | #ifdef __MSL__ |
32324 | #if __MSL__ >= 0x6000 | |
32325 | namespace std {} | |
32326 | using namespace std; | |
32327 | #endif | |
32328 | #endif | |
a848cd7e SC |
32329 | |
32330 | int | |
32331 | main () | |
32332 | { | |
32333 | ||
32334 | char *buf; | |
32335 | va_list ap; | |
62fa8b3a | 32336 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
32337 | |
32338 | ; | |
32339 | return 0; | |
32340 | } | |
32341 | _ACEOF | |
32342 | rm -f conftest.$ac_objext | |
32343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32344 | (eval $ac_compile) 2>conftest.er1 | |
32345 | ac_status=$? | |
32346 | grep -v '^ *+' conftest.er1 >conftest.err | |
32347 | rm -f conftest.er1 | |
32348 | cat conftest.err >&5 | |
32349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32350 | (exit $ac_status); } && | |
6ebeb4c7 | 32351 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
32352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32353 | (eval $ac_try) 2>&5 | |
32354 | ac_status=$? | |
32355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32356 | (exit $ac_status); }; } && | |
32357 | { ac_try='test -s conftest.$ac_objext' | |
32358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32359 | (eval $ac_try) 2>&5 | |
32360 | ac_status=$? | |
32361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32362 | (exit $ac_status); }; }; then | |
32363 | wx_cv_func_vsnprintf_decl=yes | |
32364 | else | |
32365 | echo "$as_me: failed program was:" >&5 | |
32366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32367 | ||
a848cd7e SC |
32368 | wx_cv_func_vsnprintf_decl=no |
32369 | ||
32370 | fi | |
ac1cb8d3 | 32371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32372 | |
32373 | ||
32374 | fi | |
32375 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
32376 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
32377 | ||
32378 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
32379 | cat >>confdefs.h <<\_ACEOF | |
32380 | #define HAVE_VSNPRINTF_DECL 1 | |
32381 | _ACEOF | |
32382 | ||
62fa8b3a MW |
32383 | |
32384 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
32385 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
32386 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
32387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32388 | else | |
32389 | ||
32390 | cat >conftest.$ac_ext <<_ACEOF | |
32391 | /* confdefs.h. */ | |
32392 | _ACEOF | |
32393 | cat confdefs.h >>conftest.$ac_ext | |
32394 | cat >>conftest.$ac_ext <<_ACEOF | |
32395 | /* end confdefs.h. */ | |
32396 | ||
32397 | #include <stdio.h> | |
32398 | #include <stdarg.h> | |
32399 | #ifdef __MSL__ | |
32400 | #if __MSL__ >= 0x6000 | |
32401 | namespace std {} | |
32402 | using namespace std; | |
32403 | #endif | |
32404 | #endif | |
32405 | ||
32406 | int | |
32407 | main () | |
32408 | { | |
32409 | ||
32410 | char *buf; | |
32411 | va_list ap; | |
32412 | const char *fmt = "%s"; | |
32413 | vsnprintf(buf, 10u, fmt, ap); | |
32414 | ||
32415 | ; | |
32416 | return 0; | |
32417 | } | |
32418 | _ACEOF | |
32419 | rm -f conftest.$ac_objext | |
32420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32421 | (eval $ac_compile) 2>conftest.er1 | |
32422 | ac_status=$? | |
32423 | grep -v '^ *+' conftest.er1 >conftest.err | |
32424 | rm -f conftest.er1 | |
32425 | cat conftest.err >&5 | |
32426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32427 | (exit $ac_status); } && | |
32428 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32430 | (eval $ac_try) 2>&5 | |
32431 | ac_status=$? | |
32432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32433 | (exit $ac_status); }; } && | |
32434 | { ac_try='test -s conftest.$ac_objext' | |
32435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32436 | (eval $ac_try) 2>&5 | |
32437 | ac_status=$? | |
32438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32439 | (exit $ac_status); }; }; then | |
32440 | wx_cv_func_broken_vsnprintf_decl=no | |
32441 | else | |
32442 | echo "$as_me: failed program was:" >&5 | |
32443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32444 | ||
32445 | wx_cv_func_broken_vsnprintf_decl=yes | |
32446 | ||
32447 | fi | |
32448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32449 | ||
32450 | ||
32451 | fi | |
32452 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
32453 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
32454 | ||
32455 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
32456 | cat >>confdefs.h <<\_ACEOF | |
32457 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
32458 | _ACEOF | |
32459 | ||
32460 | fi | |
a848cd7e SC |
32461 | fi |
32462 | fi | |
32463 | ||
4a767dd5 VZ |
32464 | if test "$ac_cv_func_snprintf" = "yes"; then |
32465 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
32466 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
32467 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
32468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32469 | else | |
32470 | ||
32471 | cat >conftest.$ac_ext <<_ACEOF | |
32472 | /* confdefs.h. */ | |
32473 | _ACEOF | |
32474 | cat confdefs.h >>conftest.$ac_ext | |
32475 | cat >>conftest.$ac_ext <<_ACEOF | |
32476 | /* end confdefs.h. */ | |
32477 | ||
32478 | #include <stdio.h> | |
32479 | #include <stdarg.h> | |
32480 | #ifdef __MSL__ | |
32481 | #if __MSL__ >= 0x6000 | |
32482 | namespace std {} | |
32483 | using namespace std; | |
32484 | #endif | |
32485 | #endif | |
32486 | ||
32487 | int | |
32488 | main () | |
32489 | { | |
32490 | ||
32491 | char *buf; | |
62fa8b3a | 32492 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
32493 | |
32494 | ; | |
32495 | return 0; | |
32496 | } | |
32497 | _ACEOF | |
32498 | rm -f conftest.$ac_objext | |
32499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32500 | (eval $ac_compile) 2>conftest.er1 | |
32501 | ac_status=$? | |
32502 | grep -v '^ *+' conftest.er1 >conftest.err | |
32503 | rm -f conftest.er1 | |
32504 | cat conftest.err >&5 | |
32505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32506 | (exit $ac_status); } && | |
32507 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32509 | (eval $ac_try) 2>&5 | |
32510 | ac_status=$? | |
32511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32512 | (exit $ac_status); }; } && | |
32513 | { ac_try='test -s conftest.$ac_objext' | |
32514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32515 | (eval $ac_try) 2>&5 | |
32516 | ac_status=$? | |
32517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32518 | (exit $ac_status); }; }; then | |
32519 | wx_cv_func_snprintf_decl=yes | |
32520 | else | |
32521 | echo "$as_me: failed program was:" >&5 | |
32522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32523 | ||
32524 | wx_cv_func_snprintf_decl=no | |
32525 | ||
32526 | fi | |
32527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32528 | ||
32529 | ||
32530 | fi | |
32531 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
32532 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
32533 | ||
32534 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
32535 | cat >>confdefs.h <<\_ACEOF | |
32536 | #define HAVE_SNPRINTF_DECL 1 | |
32537 | _ACEOF | |
32538 | ||
62fa8b3a MW |
32539 | |
32540 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
32541 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
32542 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
32543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32544 | else | |
32545 | ||
32546 | cat >conftest.$ac_ext <<_ACEOF | |
32547 | /* confdefs.h. */ | |
32548 | _ACEOF | |
32549 | cat confdefs.h >>conftest.$ac_ext | |
32550 | cat >>conftest.$ac_ext <<_ACEOF | |
32551 | /* end confdefs.h. */ | |
32552 | ||
32553 | #include <stdio.h> | |
32554 | #include <stdarg.h> | |
32555 | #ifdef __MSL__ | |
32556 | #if __MSL__ >= 0x6000 | |
32557 | namespace std {} | |
32558 | using namespace std; | |
32559 | #endif | |
32560 | #endif | |
32561 | ||
32562 | int | |
32563 | main () | |
32564 | { | |
32565 | ||
32566 | char *buf; | |
32567 | const char *fmt = "%s"; | |
32568 | snprintf(buf, 10u, fmt, "wx"); | |
32569 | ||
32570 | ; | |
32571 | return 0; | |
32572 | } | |
32573 | _ACEOF | |
32574 | rm -f conftest.$ac_objext | |
32575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32576 | (eval $ac_compile) 2>conftest.er1 | |
32577 | ac_status=$? | |
32578 | grep -v '^ *+' conftest.er1 >conftest.err | |
32579 | rm -f conftest.er1 | |
32580 | cat conftest.err >&5 | |
32581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32582 | (exit $ac_status); } && | |
32583 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32585 | (eval $ac_try) 2>&5 | |
32586 | ac_status=$? | |
32587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32588 | (exit $ac_status); }; } && | |
32589 | { ac_try='test -s conftest.$ac_objext' | |
32590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32591 | (eval $ac_try) 2>&5 | |
32592 | ac_status=$? | |
32593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32594 | (exit $ac_status); }; }; then | |
32595 | wx_cv_func_broken_snprintf_decl=no | |
32596 | else | |
32597 | echo "$as_me: failed program was:" >&5 | |
32598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32599 | ||
32600 | wx_cv_func_broken_snprintf_decl=yes | |
32601 | ||
32602 | fi | |
32603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32604 | ||
32605 | ||
32606 | fi | |
32607 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
32608 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
32609 | ||
32610 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
32611 | cat >>confdefs.h <<\_ACEOF | |
32612 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
32613 | _ACEOF | |
32614 | ||
32615 | fi | |
4a767dd5 VZ |
32616 | fi |
32617 | fi | |
32618 | ||
a848cd7e SC |
32619 | if test "$wxUSE_UNICODE" = yes; then |
32620 | ||
32621 | ||
32622 | ||
fbe47c7b VS |
32623 | |
32624 | ||
32625 | ||
32626 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
32627 | do |
32628 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32629 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32630 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32631 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32633 | else | |
32634 | cat >conftest.$ac_ext <<_ACEOF | |
32635 | /* confdefs.h. */ | |
32636 | _ACEOF | |
32637 | cat confdefs.h >>conftest.$ac_ext | |
32638 | cat >>conftest.$ac_ext <<_ACEOF | |
32639 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32640 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32642 | #define $ac_func innocuous_$ac_func | |
32643 | ||
a848cd7e SC |
32644 | /* System header to define __stub macros and hopefully few prototypes, |
32645 | which can conflict with char $ac_func (); below. | |
32646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32647 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32648 | |
a848cd7e SC |
32649 | #ifdef __STDC__ |
32650 | # include <limits.h> | |
32651 | #else | |
32652 | # include <assert.h> | |
32653 | #endif | |
ac1cb8d3 VS |
32654 | |
32655 | #undef $ac_func | |
32656 | ||
a848cd7e SC |
32657 | /* Override any gcc2 internal prototype to avoid an error. */ |
32658 | #ifdef __cplusplus | |
32659 | extern "C" | |
32660 | { | |
32661 | #endif | |
32662 | /* We use char because int might match the return type of a gcc2 | |
32663 | builtin and then its argument prototype would still apply. */ | |
32664 | char $ac_func (); | |
32665 | /* The GNU C library defines this for functions which it implements | |
32666 | to always fail with ENOSYS. Some functions are actually named | |
32667 | something starting with __ and the normal name is an alias. */ | |
32668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32669 | choke me | |
32670 | #else | |
32671 | char (*f) () = $ac_func; | |
32672 | #endif | |
32673 | #ifdef __cplusplus | |
32674 | } | |
32675 | #endif | |
32676 | ||
32677 | int | |
32678 | main () | |
32679 | { | |
32680 | return f != $ac_func; | |
32681 | ; | |
32682 | return 0; | |
32683 | } | |
32684 | _ACEOF | |
32685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32687 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32688 | ac_status=$? |
ac1cb8d3 VS |
32689 | grep -v '^ *+' conftest.er1 >conftest.err |
32690 | rm -f conftest.er1 | |
32691 | cat conftest.err >&5 | |
a848cd7e SC |
32692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32693 | (exit $ac_status); } && | |
6ebeb4c7 | 32694 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32696 | (eval $ac_try) 2>&5 | |
32697 | ac_status=$? | |
32698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32699 | (exit $ac_status); }; } && | |
32700 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32702 | (eval $ac_try) 2>&5 | |
32703 | ac_status=$? | |
32704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32705 | (exit $ac_status); }; }; then | |
32706 | eval "$as_ac_var=yes" | |
32707 | else | |
32708 | echo "$as_me: failed program was:" >&5 | |
32709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32710 | ||
32711 | eval "$as_ac_var=no" | |
32712 | fi | |
ac1cb8d3 VS |
32713 | rm -f conftest.err conftest.$ac_objext \ |
32714 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32715 | fi |
32716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32717 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32718 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32719 | cat >>confdefs.h <<_ACEOF | |
32720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32721 | _ACEOF | |
32722 | ||
32723 | fi | |
32724 | done | |
32725 | ||
32726 | ||
32727 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
32728 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
32729 | cat >conftest.$ac_ext <<_ACEOF | |
32730 | /* confdefs.h. */ | |
32731 | _ACEOF | |
32732 | cat confdefs.h >>conftest.$ac_ext | |
32733 | cat >>conftest.$ac_ext <<_ACEOF | |
32734 | /* end confdefs.h. */ | |
32735 | #include <wchar.h> | |
32736 | int | |
32737 | main () | |
32738 | { | |
32739 | &_vsnwprintf; | |
32740 | ; | |
32741 | return 0; | |
32742 | } | |
32743 | _ACEOF | |
32744 | rm -f conftest.$ac_objext | |
32745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32746 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32747 | ac_status=$? |
ac1cb8d3 VS |
32748 | grep -v '^ *+' conftest.er1 >conftest.err |
32749 | rm -f conftest.er1 | |
32750 | cat conftest.err >&5 | |
a848cd7e SC |
32751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32752 | (exit $ac_status); } && | |
6ebeb4c7 | 32753 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32755 | (eval $ac_try) 2>&5 | |
32756 | ac_status=$? | |
32757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32758 | (exit $ac_status); }; } && | |
32759 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32761 | (eval $ac_try) 2>&5 | |
32762 | ac_status=$? | |
32763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32764 | (exit $ac_status); }; }; then | |
32765 | echo "$as_me:$LINENO: result: yes" >&5 | |
32766 | echo "${ECHO_T}yes" >&6 | |
32767 | cat >>confdefs.h <<\_ACEOF | |
32768 | #define HAVE__VSNWPRINTF 1 | |
32769 | _ACEOF | |
32770 | ||
32771 | else | |
32772 | echo "$as_me: failed program was:" >&5 | |
32773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32774 | ||
32775 | echo "$as_me:$LINENO: result: no" >&5 | |
32776 | echo "${ECHO_T}no" >&6 | |
32777 | fi | |
ac1cb8d3 | 32778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
32779 | fi |
32780 | ||
32781 | ac_ext=c | |
32782 | ac_cpp='$CPP $CPPFLAGS' | |
32783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32786 | ||
32787 | ||
6ebeb4c7 VZ |
32788 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
32789 | ||
32790 | for ac_func in fnmatch | |
32791 | do | |
32792 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32793 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32794 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32795 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32797 | else | |
32798 | cat >conftest.$ac_ext <<_ACEOF | |
32799 | /* confdefs.h. */ | |
32800 | _ACEOF | |
32801 | cat confdefs.h >>conftest.$ac_ext | |
32802 | cat >>conftest.$ac_ext <<_ACEOF | |
32803 | /* end confdefs.h. */ | |
32804 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32805 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32806 | #define $ac_func innocuous_$ac_func | |
32807 | ||
32808 | /* System header to define __stub macros and hopefully few prototypes, | |
32809 | which can conflict with char $ac_func (); below. | |
32810 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32811 | <limits.h> exists even on freestanding compilers. */ | |
32812 | ||
32813 | #ifdef __STDC__ | |
32814 | # include <limits.h> | |
32815 | #else | |
32816 | # include <assert.h> | |
32817 | #endif | |
32818 | ||
32819 | #undef $ac_func | |
32820 | ||
32821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32822 | #ifdef __cplusplus | |
32823 | extern "C" | |
32824 | { | |
32825 | #endif | |
32826 | /* We use char because int might match the return type of a gcc2 | |
32827 | builtin and then its argument prototype would still apply. */ | |
32828 | char $ac_func (); | |
32829 | /* The GNU C library defines this for functions which it implements | |
32830 | to always fail with ENOSYS. Some functions are actually named | |
32831 | something starting with __ and the normal name is an alias. */ | |
32832 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32833 | choke me | |
32834 | #else | |
32835 | char (*f) () = $ac_func; | |
32836 | #endif | |
32837 | #ifdef __cplusplus | |
32838 | } | |
32839 | #endif | |
32840 | ||
32841 | int | |
32842 | main () | |
32843 | { | |
32844 | return f != $ac_func; | |
32845 | ; | |
32846 | return 0; | |
32847 | } | |
32848 | _ACEOF | |
32849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32851 | (eval $ac_link) 2>conftest.er1 | |
32852 | ac_status=$? | |
32853 | grep -v '^ *+' conftest.er1 >conftest.err | |
32854 | rm -f conftest.er1 | |
32855 | cat conftest.err >&5 | |
32856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32857 | (exit $ac_status); } && | |
32858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32860 | (eval $ac_try) 2>&5 | |
32861 | ac_status=$? | |
32862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32863 | (exit $ac_status); }; } && | |
32864 | { ac_try='test -s conftest$ac_exeext' | |
32865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32866 | (eval $ac_try) 2>&5 | |
32867 | ac_status=$? | |
32868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32869 | (exit $ac_status); }; }; then | |
32870 | eval "$as_ac_var=yes" | |
32871 | else | |
32872 | echo "$as_me: failed program was:" >&5 | |
32873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32874 | ||
32875 | eval "$as_ac_var=no" | |
32876 | fi | |
32877 | rm -f conftest.err conftest.$ac_objext \ | |
32878 | conftest$ac_exeext conftest.$ac_ext | |
32879 | fi | |
32880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32881 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32882 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32883 | cat >>confdefs.h <<_ACEOF | |
32884 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32885 | _ACEOF | |
32886 | ||
32887 | fi | |
32888 | done | |
32889 | ||
32890 | fi | |
32891 | ||
32892 | if test "$wxUSE_FILE" = "yes"; then | |
32893 | ||
32894 | for ac_func in fsync | |
32895 | do | |
32896 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32897 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32898 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32899 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32901 | else | |
32902 | cat >conftest.$ac_ext <<_ACEOF | |
32903 | /* confdefs.h. */ | |
32904 | _ACEOF | |
32905 | cat confdefs.h >>conftest.$ac_ext | |
32906 | cat >>conftest.$ac_ext <<_ACEOF | |
32907 | /* end confdefs.h. */ | |
32908 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32910 | #define $ac_func innocuous_$ac_func | |
32911 | ||
32912 | /* System header to define __stub macros and hopefully few prototypes, | |
32913 | which can conflict with char $ac_func (); below. | |
32914 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32915 | <limits.h> exists even on freestanding compilers. */ | |
32916 | ||
32917 | #ifdef __STDC__ | |
32918 | # include <limits.h> | |
32919 | #else | |
32920 | # include <assert.h> | |
32921 | #endif | |
32922 | ||
32923 | #undef $ac_func | |
32924 | ||
32925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32926 | #ifdef __cplusplus | |
32927 | extern "C" | |
32928 | { | |
32929 | #endif | |
32930 | /* We use char because int might match the return type of a gcc2 | |
32931 | builtin and then its argument prototype would still apply. */ | |
32932 | char $ac_func (); | |
32933 | /* The GNU C library defines this for functions which it implements | |
32934 | to always fail with ENOSYS. Some functions are actually named | |
32935 | something starting with __ and the normal name is an alias. */ | |
32936 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32937 | choke me | |
32938 | #else | |
32939 | char (*f) () = $ac_func; | |
32940 | #endif | |
32941 | #ifdef __cplusplus | |
32942 | } | |
32943 | #endif | |
32944 | ||
32945 | int | |
32946 | main () | |
32947 | { | |
32948 | return f != $ac_func; | |
32949 | ; | |
32950 | return 0; | |
32951 | } | |
32952 | _ACEOF | |
32953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32955 | (eval $ac_link) 2>conftest.er1 | |
32956 | ac_status=$? | |
32957 | grep -v '^ *+' conftest.er1 >conftest.err | |
32958 | rm -f conftest.er1 | |
32959 | cat conftest.err >&5 | |
32960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32961 | (exit $ac_status); } && | |
32962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32964 | (eval $ac_try) 2>&5 | |
32965 | ac_status=$? | |
32966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32967 | (exit $ac_status); }; } && | |
32968 | { ac_try='test -s conftest$ac_exeext' | |
32969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32970 | (eval $ac_try) 2>&5 | |
32971 | ac_status=$? | |
32972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32973 | (exit $ac_status); }; }; then | |
32974 | eval "$as_ac_var=yes" | |
32975 | else | |
32976 | echo "$as_me: failed program was:" >&5 | |
32977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32978 | ||
32979 | eval "$as_ac_var=no" | |
32980 | fi | |
32981 | rm -f conftest.err conftest.$ac_objext \ | |
32982 | conftest$ac_exeext conftest.$ac_ext | |
32983 | fi | |
32984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32985 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32986 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32987 | cat >>confdefs.h <<_ACEOF | |
32988 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32989 | _ACEOF | |
32990 | ||
32991 | fi | |
32992 | done | |
32993 | ||
32994 | fi | |
a848cd7e SC |
32995 | |
32996 | ||
32997 | if test "$TOOLKIT" != "MSW"; then | |
32998 | ||
32999 | ||
33000 | ||
33001 | ||
33002 | ac_ext=cc | |
33003 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33004 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33005 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33006 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33007 | ||
33008 | ||
33009 | ||
33010 | ||
33011 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
33012 | if test "${with_libiconv_prefix+set}" = set; then | |
33013 | withval="$with_libiconv_prefix" | |
33014 | ||
33015 | for dir in `echo "$withval" | tr : ' '`; do | |
33016 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
33017 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
33018 | done | |
33019 | ||
33020 | fi; | |
33021 | ||
33022 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
33023 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
33024 | if test "${am_cv_func_iconv+set}" = set; then | |
33025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33026 | else | |
33027 | ||
33028 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
33029 | am_cv_lib_iconv=no | |
33030 | cat >conftest.$ac_ext <<_ACEOF | |
33031 | /* confdefs.h. */ | |
33032 | _ACEOF | |
33033 | cat confdefs.h >>conftest.$ac_ext | |
33034 | cat >>conftest.$ac_ext <<_ACEOF | |
33035 | /* end confdefs.h. */ | |
33036 | #include <stdlib.h> | |
33037 | #include <iconv.h> | |
33038 | int | |
33039 | main () | |
33040 | { | |
33041 | iconv_t cd = iconv_open("",""); | |
33042 | iconv(cd,NULL,NULL,NULL,NULL); | |
33043 | iconv_close(cd); | |
33044 | ; | |
33045 | return 0; | |
33046 | } | |
33047 | _ACEOF | |
33048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33050 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33051 | ac_status=$? |
ac1cb8d3 VS |
33052 | grep -v '^ *+' conftest.er1 >conftest.err |
33053 | rm -f conftest.er1 | |
33054 | cat conftest.err >&5 | |
a848cd7e SC |
33055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33056 | (exit $ac_status); } && | |
6ebeb4c7 | 33057 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33059 | (eval $ac_try) 2>&5 | |
33060 | ac_status=$? | |
33061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33062 | (exit $ac_status); }; } && | |
33063 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33065 | (eval $ac_try) 2>&5 | |
33066 | ac_status=$? | |
33067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33068 | (exit $ac_status); }; }; then | |
33069 | am_cv_func_iconv=yes | |
33070 | else | |
33071 | echo "$as_me: failed program was:" >&5 | |
33072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33073 | ||
33074 | fi | |
ac1cb8d3 VS |
33075 | rm -f conftest.err conftest.$ac_objext \ |
33076 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33077 | if test "$am_cv_func_iconv" != yes; then |
33078 | am_save_LIBS="$LIBS" | |
33079 | LIBS="$LIBS -liconv" | |
33080 | cat >conftest.$ac_ext <<_ACEOF | |
33081 | /* confdefs.h. */ | |
33082 | _ACEOF | |
33083 | cat confdefs.h >>conftest.$ac_ext | |
33084 | cat >>conftest.$ac_ext <<_ACEOF | |
33085 | /* end confdefs.h. */ | |
33086 | #include <stdlib.h> | |
33087 | #include <iconv.h> | |
33088 | int | |
33089 | main () | |
33090 | { | |
33091 | iconv_t cd = iconv_open("",""); | |
33092 | iconv(cd,NULL,NULL,NULL,NULL); | |
33093 | iconv_close(cd); | |
33094 | ; | |
33095 | return 0; | |
33096 | } | |
33097 | _ACEOF | |
33098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33100 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33101 | ac_status=$? |
ac1cb8d3 VS |
33102 | grep -v '^ *+' conftest.er1 >conftest.err |
33103 | rm -f conftest.er1 | |
33104 | cat conftest.err >&5 | |
a848cd7e SC |
33105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33106 | (exit $ac_status); } && | |
6ebeb4c7 | 33107 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33109 | (eval $ac_try) 2>&5 | |
33110 | ac_status=$? | |
33111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33112 | (exit $ac_status); }; } && | |
33113 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33115 | (eval $ac_try) 2>&5 | |
33116 | ac_status=$? | |
33117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33118 | (exit $ac_status); }; }; then | |
33119 | am_cv_lib_iconv=yes | |
33120 | am_cv_func_iconv=yes | |
33121 | else | |
33122 | echo "$as_me: failed program was:" >&5 | |
33123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33124 | ||
33125 | fi | |
ac1cb8d3 VS |
33126 | rm -f conftest.err conftest.$ac_objext \ |
33127 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33128 | LIBS="$am_save_LIBS" |
33129 | fi | |
33130 | ||
33131 | fi | |
33132 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
33133 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
33134 | if test "$am_cv_func_iconv" = yes; then | |
33135 | ||
33136 | cat >>confdefs.h <<\_ACEOF | |
33137 | #define HAVE_ICONV 1 | |
33138 | _ACEOF | |
33139 | ||
33140 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
33141 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
33142 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
33143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33144 | else | |
33145 | cat >conftest.$ac_ext <<_ACEOF | |
33146 | /* confdefs.h. */ | |
33147 | _ACEOF | |
33148 | cat confdefs.h >>conftest.$ac_ext | |
33149 | cat >>conftest.$ac_ext <<_ACEOF | |
33150 | /* end confdefs.h. */ | |
33151 | ||
33152 | #include <stdlib.h> | |
33153 | #include <iconv.h> | |
33154 | extern | |
33155 | #ifdef __cplusplus | |
33156 | "C" | |
33157 | #endif | |
33158 | #if defined(__STDC__) || defined(__cplusplus) | |
33159 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
33160 | #else | |
33161 | size_t iconv(); | |
33162 | #endif | |
33163 | ||
33164 | int | |
33165 | main () | |
33166 | { | |
33167 | ||
33168 | ; | |
33169 | return 0; | |
33170 | } | |
33171 | _ACEOF | |
33172 | rm -f conftest.$ac_objext | |
33173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33174 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33175 | ac_status=$? |
ac1cb8d3 VS |
33176 | grep -v '^ *+' conftest.er1 >conftest.err |
33177 | rm -f conftest.er1 | |
33178 | cat conftest.err >&5 | |
a848cd7e SC |
33179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33180 | (exit $ac_status); } && | |
6ebeb4c7 | 33181 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33183 | (eval $ac_try) 2>&5 | |
33184 | ac_status=$? | |
33185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33186 | (exit $ac_status); }; } && | |
33187 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33189 | (eval $ac_try) 2>&5 | |
33190 | ac_status=$? | |
33191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33192 | (exit $ac_status); }; }; then | |
33193 | wx_cv_func_iconv_const="no" | |
33194 | else | |
33195 | echo "$as_me: failed program was:" >&5 | |
33196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33197 | ||
33198 | wx_cv_func_iconv_const="yes" | |
33199 | ||
33200 | fi | |
ac1cb8d3 | 33201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33202 | |
33203 | fi | |
33204 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
33205 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
33206 | ||
33207 | iconv_const= | |
33208 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
33209 | iconv_const="const" | |
33210 | fi | |
33211 | ||
33212 | ||
33213 | cat >>confdefs.h <<_ACEOF | |
33214 | #define ICONV_CONST $iconv_const | |
33215 | _ACEOF | |
33216 | ||
33217 | fi | |
33218 | LIBICONV= | |
33219 | if test "$am_cv_lib_iconv" = yes; then | |
33220 | LIBICONV="-liconv" | |
33221 | fi | |
33222 | ||
33223 | ||
33224 | LIBS="$LIBICONV $LIBS" | |
33225 | ac_ext=c | |
33226 | ac_cpp='$CPP $CPPFLAGS' | |
33227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33230 | ||
33231 | ||
33232 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
33233 | ||
33234 | for ac_func in sigaction | |
33235 | do | |
33236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33239 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33241 | else | |
33242 | cat >conftest.$ac_ext <<_ACEOF | |
33243 | /* confdefs.h. */ | |
33244 | _ACEOF | |
33245 | cat confdefs.h >>conftest.$ac_ext | |
33246 | cat >>conftest.$ac_ext <<_ACEOF | |
33247 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33248 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33249 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33250 | #define $ac_func innocuous_$ac_func | |
33251 | ||
a848cd7e SC |
33252 | /* System header to define __stub macros and hopefully few prototypes, |
33253 | which can conflict with char $ac_func (); below. | |
33254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33255 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33256 | |
a848cd7e SC |
33257 | #ifdef __STDC__ |
33258 | # include <limits.h> | |
33259 | #else | |
33260 | # include <assert.h> | |
33261 | #endif | |
ac1cb8d3 VS |
33262 | |
33263 | #undef $ac_func | |
33264 | ||
a848cd7e SC |
33265 | /* Override any gcc2 internal prototype to avoid an error. */ |
33266 | #ifdef __cplusplus | |
33267 | extern "C" | |
33268 | { | |
33269 | #endif | |
33270 | /* We use char because int might match the return type of a gcc2 | |
33271 | builtin and then its argument prototype would still apply. */ | |
33272 | char $ac_func (); | |
33273 | /* The GNU C library defines this for functions which it implements | |
33274 | to always fail with ENOSYS. Some functions are actually named | |
33275 | something starting with __ and the normal name is an alias. */ | |
33276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33277 | choke me | |
33278 | #else | |
33279 | char (*f) () = $ac_func; | |
33280 | #endif | |
33281 | #ifdef __cplusplus | |
33282 | } | |
33283 | #endif | |
33284 | ||
33285 | int | |
33286 | main () | |
33287 | { | |
33288 | return f != $ac_func; | |
33289 | ; | |
33290 | return 0; | |
33291 | } | |
33292 | _ACEOF | |
33293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33295 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33296 | ac_status=$? |
ac1cb8d3 VS |
33297 | grep -v '^ *+' conftest.er1 >conftest.err |
33298 | rm -f conftest.er1 | |
33299 | cat conftest.err >&5 | |
a848cd7e SC |
33300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33301 | (exit $ac_status); } && | |
6ebeb4c7 | 33302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33304 | (eval $ac_try) 2>&5 | |
33305 | ac_status=$? | |
33306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33307 | (exit $ac_status); }; } && | |
33308 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33310 | (eval $ac_try) 2>&5 | |
33311 | ac_status=$? | |
33312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33313 | (exit $ac_status); }; }; then | |
33314 | eval "$as_ac_var=yes" | |
33315 | else | |
33316 | echo "$as_me: failed program was:" >&5 | |
33317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33318 | ||
33319 | eval "$as_ac_var=no" | |
33320 | fi | |
ac1cb8d3 VS |
33321 | rm -f conftest.err conftest.$ac_objext \ |
33322 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33323 | fi |
33324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33326 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33327 | cat >>confdefs.h <<_ACEOF | |
33328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33329 | _ACEOF | |
33330 | ||
33331 | fi | |
33332 | done | |
33333 | ||
33334 | ||
33335 | if test "$ac_cv_func_sigaction" = "no"; then | |
33336 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
33337 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
33338 | wxUSE_ON_FATAL_EXCEPTION=no | |
33339 | fi | |
33340 | ||
33341 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
33342 | ||
33343 | ||
33344 | ac_ext=cc | |
33345 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33346 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33347 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33348 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33349 | ||
33350 | ||
33351 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
33352 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
33353 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
33354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33355 | else | |
33356 | ||
33357 | cat >conftest.$ac_ext <<_ACEOF | |
33358 | /* confdefs.h. */ | |
33359 | _ACEOF | |
33360 | cat confdefs.h >>conftest.$ac_ext | |
33361 | cat >>conftest.$ac_ext <<_ACEOF | |
33362 | /* end confdefs.h. */ | |
33363 | #include <signal.h> | |
33364 | int | |
33365 | main () | |
33366 | { | |
33367 | ||
33368 | extern void testSigHandler(int); | |
33369 | ||
33370 | struct sigaction sa; | |
33371 | sa.sa_handler = testSigHandler; | |
33372 | ||
33373 | ; | |
33374 | return 0; | |
33375 | } | |
33376 | _ACEOF | |
33377 | rm -f conftest.$ac_objext | |
33378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33380 | ac_status=$? |
ac1cb8d3 VS |
33381 | grep -v '^ *+' conftest.er1 >conftest.err |
33382 | rm -f conftest.er1 | |
33383 | cat conftest.err >&5 | |
a848cd7e SC |
33384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33385 | (exit $ac_status); } && | |
6ebeb4c7 | 33386 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33388 | (eval $ac_try) 2>&5 | |
33389 | ac_status=$? | |
33390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33391 | (exit $ac_status); }; } && | |
33392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33394 | (eval $ac_try) 2>&5 | |
33395 | ac_status=$? | |
33396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33397 | (exit $ac_status); }; }; then | |
33398 | ||
33399 | wx_cv_type_sa_handler=int | |
33400 | ||
33401 | else | |
33402 | echo "$as_me: failed program was:" >&5 | |
33403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33404 | ||
33405 | ||
33406 | wx_cv_type_sa_handler=void | |
33407 | ||
33408 | fi | |
ac1cb8d3 | 33409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33410 | |
33411 | fi | |
33412 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
33413 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
33414 | ||
33415 | ac_ext=c | |
33416 | ac_cpp='$CPP $CPPFLAGS' | |
33417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33420 | ||
33421 | ||
33422 | cat >>confdefs.h <<_ACEOF | |
33423 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
33424 | _ACEOF | |
33425 | ||
33426 | fi | |
33427 | fi | |
33428 | ||
eaff0f0d VZ |
33429 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
33430 | ||
33431 | ||
33432 | ac_ext=cc | |
33433 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33434 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33435 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33436 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33437 | ||
33438 | ||
33439 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
33440 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
33441 | if test "${wx_cv_func_backtrace+set}" = set; then | |
33442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33443 | else | |
33444 | ||
33445 | cat >conftest.$ac_ext <<_ACEOF | |
33446 | /* confdefs.h. */ | |
33447 | _ACEOF | |
33448 | cat confdefs.h >>conftest.$ac_ext | |
33449 | cat >>conftest.$ac_ext <<_ACEOF | |
33450 | /* end confdefs.h. */ | |
33451 | #include <execinfo.h> | |
33452 | int | |
33453 | main () | |
33454 | { | |
33455 | ||
33456 | void *trace[1]; | |
33457 | char **messages; | |
33458 | ||
33459 | backtrace(trace, 1); | |
33460 | messages = backtrace_symbols(trace, 1); | |
33461 | ||
33462 | ; | |
33463 | return 0; | |
33464 | } | |
33465 | _ACEOF | |
33466 | rm -f conftest.$ac_objext | |
33467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33468 | (eval $ac_compile) 2>conftest.er1 | |
33469 | ac_status=$? | |
33470 | grep -v '^ *+' conftest.er1 >conftest.err | |
33471 | rm -f conftest.er1 | |
33472 | cat conftest.err >&5 | |
33473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33474 | (exit $ac_status); } && | |
6ebeb4c7 | 33475 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33477 | (eval $ac_try) 2>&5 | |
33478 | ac_status=$? | |
33479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33480 | (exit $ac_status); }; } && | |
33481 | { ac_try='test -s conftest.$ac_objext' | |
33482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33483 | (eval $ac_try) 2>&5 | |
33484 | ac_status=$? | |
33485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33486 | (exit $ac_status); }; }; then | |
33487 | wx_cv_func_backtrace=yes | |
33488 | else | |
33489 | echo "$as_me: failed program was:" >&5 | |
33490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33491 | ||
33492 | wx_cv_func_backtrace=no | |
33493 | ||
33494 | fi | |
33495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33496 | ||
33497 | ||
33498 | fi | |
33499 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
33500 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
33501 | ||
33502 | ||
33503 | if test "$wx_cv_func_backtrace" = "no"; then | |
33504 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
33505 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
33506 | wxUSE_STACKWALKER=no | |
33507 | else | |
33508 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
33509 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
33510 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
33511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33512 | else | |
33513 | ||
33514 | cat >conftest.$ac_ext <<_ACEOF | |
33515 | /* confdefs.h. */ | |
33516 | _ACEOF | |
33517 | cat confdefs.h >>conftest.$ac_ext | |
33518 | cat >>conftest.$ac_ext <<_ACEOF | |
33519 | /* end confdefs.h. */ | |
33520 | #include <cxxabi.h> | |
33521 | int | |
33522 | main () | |
33523 | { | |
33524 | ||
33525 | int rc; | |
33526 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
33527 | ||
33528 | ; | |
33529 | return 0; | |
33530 | } | |
33531 | _ACEOF | |
dfe0c803 JS |
33532 | rm -f conftest.$ac_objext conftest$ac_exeext |
33533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33534 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
33535 | ac_status=$? |
33536 | grep -v '^ *+' conftest.er1 >conftest.err | |
33537 | rm -f conftest.er1 | |
33538 | cat conftest.err >&5 | |
33539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33540 | (exit $ac_status); } && | |
6ebeb4c7 | 33541 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33543 | (eval $ac_try) 2>&5 | |
33544 | ac_status=$? | |
33545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33546 | (exit $ac_status); }; } && | |
dfe0c803 | 33547 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
33548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33549 | (eval $ac_try) 2>&5 | |
33550 | ac_status=$? | |
33551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33552 | (exit $ac_status); }; }; then | |
33553 | wx_cv_func_cxa_demangle=yes | |
33554 | else | |
33555 | echo "$as_me: failed program was:" >&5 | |
33556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33557 | ||
33558 | wx_cv_func_cxa_demangle=no | |
33559 | ||
33560 | fi | |
dfe0c803 JS |
33561 | rm -f conftest.err conftest.$ac_objext \ |
33562 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
33563 | |
33564 | ||
33565 | fi | |
33566 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
33567 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
33568 | ||
33569 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
33570 | cat >>confdefs.h <<\_ACEOF | |
33571 | #define HAVE_CXA_DEMANGLE 1 | |
33572 | _ACEOF | |
33573 | ||
33574 | fi | |
33575 | fi | |
33576 | ||
33577 | ac_ext=c | |
33578 | ac_cpp='$CPP $CPPFLAGS' | |
33579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33582 | ||
33583 | fi | |
33584 | ||
898beab1 DE |
33585 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
33586 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
33587 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
33588 | wxUSE_STACKWALKER=no | |
33589 | fi | |
33590 | ||
33591 | ||
a848cd7e SC |
33592 | |
33593 | ||
33594 | for ac_func in mkstemp mktemp | |
33595 | do | |
33596 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33597 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33598 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33599 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33601 | else | |
33602 | cat >conftest.$ac_ext <<_ACEOF | |
33603 | /* confdefs.h. */ | |
33604 | _ACEOF | |
33605 | cat confdefs.h >>conftest.$ac_ext | |
33606 | cat >>conftest.$ac_ext <<_ACEOF | |
33607 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33608 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33609 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33610 | #define $ac_func innocuous_$ac_func | |
33611 | ||
a848cd7e SC |
33612 | /* System header to define __stub macros and hopefully few prototypes, |
33613 | which can conflict with char $ac_func (); below. | |
33614 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33615 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33616 | |
a848cd7e SC |
33617 | #ifdef __STDC__ |
33618 | # include <limits.h> | |
33619 | #else | |
33620 | # include <assert.h> | |
33621 | #endif | |
ac1cb8d3 VS |
33622 | |
33623 | #undef $ac_func | |
33624 | ||
a848cd7e SC |
33625 | /* Override any gcc2 internal prototype to avoid an error. */ |
33626 | #ifdef __cplusplus | |
33627 | extern "C" | |
33628 | { | |
33629 | #endif | |
33630 | /* We use char because int might match the return type of a gcc2 | |
33631 | builtin and then its argument prototype would still apply. */ | |
33632 | char $ac_func (); | |
33633 | /* The GNU C library defines this for functions which it implements | |
33634 | to always fail with ENOSYS. Some functions are actually named | |
33635 | something starting with __ and the normal name is an alias. */ | |
33636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33637 | choke me | |
33638 | #else | |
33639 | char (*f) () = $ac_func; | |
33640 | #endif | |
33641 | #ifdef __cplusplus | |
33642 | } | |
33643 | #endif | |
33644 | ||
33645 | int | |
33646 | main () | |
33647 | { | |
33648 | return f != $ac_func; | |
33649 | ; | |
33650 | return 0; | |
33651 | } | |
33652 | _ACEOF | |
33653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33655 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33656 | ac_status=$? |
ac1cb8d3 VS |
33657 | grep -v '^ *+' conftest.er1 >conftest.err |
33658 | rm -f conftest.er1 | |
33659 | cat conftest.err >&5 | |
a848cd7e SC |
33660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33661 | (exit $ac_status); } && | |
6ebeb4c7 | 33662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33664 | (eval $ac_try) 2>&5 | |
33665 | ac_status=$? | |
33666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33667 | (exit $ac_status); }; } && | |
33668 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33670 | (eval $ac_try) 2>&5 | |
33671 | ac_status=$? | |
33672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33673 | (exit $ac_status); }; }; then | |
33674 | eval "$as_ac_var=yes" | |
33675 | else | |
33676 | echo "$as_me: failed program was:" >&5 | |
33677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33678 | ||
33679 | eval "$as_ac_var=no" | |
33680 | fi | |
ac1cb8d3 VS |
33681 | rm -f conftest.err conftest.$ac_objext \ |
33682 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33683 | fi |
33684 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33685 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33686 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33687 | cat >>confdefs.h <<_ACEOF | |
33688 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33689 | _ACEOF | |
33690 | break | |
33691 | fi | |
33692 | done | |
33693 | ||
33694 | ||
33695 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
33696 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
33697 | if test "${wx_cv_func_statfs+set}" = set; then | |
33698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33699 | else | |
33700 | cat >conftest.$ac_ext <<_ACEOF | |
33701 | /* confdefs.h. */ | |
33702 | _ACEOF | |
33703 | cat confdefs.h >>conftest.$ac_ext | |
33704 | cat >>conftest.$ac_ext <<_ACEOF | |
33705 | /* end confdefs.h. */ | |
33706 | ||
33707 | #if defined(__BSD__) | |
84ae7ca4 VZ |
33708 | #include <sys/param.h> |
33709 | #include <sys/mount.h> | |
a848cd7e | 33710 | #else |
84ae7ca4 | 33711 | #include <sys/vfs.h> |
a848cd7e SC |
33712 | #endif |
33713 | ||
33714 | int | |
33715 | main () | |
33716 | { | |
33717 | ||
33718 | long l; | |
33719 | struct statfs fs; | |
33720 | statfs("/", &fs); | |
33721 | l = fs.f_bsize; | |
33722 | l += fs.f_blocks; | |
33723 | l += fs.f_bavail; | |
33724 | ||
33725 | ; | |
33726 | return 0; | |
33727 | } | |
33728 | _ACEOF | |
33729 | rm -f conftest.$ac_objext | |
33730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33732 | ac_status=$? |
ac1cb8d3 VS |
33733 | grep -v '^ *+' conftest.er1 >conftest.err |
33734 | rm -f conftest.er1 | |
33735 | cat conftest.err >&5 | |
a848cd7e SC |
33736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33737 | (exit $ac_status); } && | |
6ebeb4c7 | 33738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33740 | (eval $ac_try) 2>&5 | |
33741 | ac_status=$? | |
33742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33743 | (exit $ac_status); }; } && | |
33744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33746 | (eval $ac_try) 2>&5 | |
33747 | ac_status=$? | |
33748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33749 | (exit $ac_status); }; }; then | |
84ae7ca4 | 33750 | wx_cv_func_statfs=yes |
a848cd7e SC |
33751 | else |
33752 | echo "$as_me: failed program was:" >&5 | |
33753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33754 | ||
84ae7ca4 | 33755 | wx_cv_func_statfs=no |
a848cd7e SC |
33756 | |
33757 | fi | |
ac1cb8d3 | 33758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33759 | |
33760 | fi | |
33761 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
33762 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
33763 | ||
33764 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
33765 | |
33766 | ||
33767 | ac_ext=cc | |
33768 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33769 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33770 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33771 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33772 | ||
33773 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
33774 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
33775 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
33776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33777 | else | |
0683aca6 VZ |
33778 | cat >conftest.$ac_ext <<_ACEOF |
33779 | /* confdefs.h. */ | |
33780 | _ACEOF | |
33781 | cat confdefs.h >>conftest.$ac_ext | |
33782 | cat >>conftest.$ac_ext <<_ACEOF | |
33783 | /* end confdefs.h. */ | |
84ae7ca4 | 33784 | |
0683aca6 VZ |
33785 | #if defined(__BSD__) |
33786 | #include <sys/param.h> | |
33787 | #include <sys/mount.h> | |
33788 | #else | |
33789 | #include <sys/vfs.h> | |
33790 | #endif | |
33791 | ||
33792 | int | |
33793 | main () | |
33794 | { | |
33795 | ||
33796 | struct statfs fs; | |
33797 | statfs("", &fs); | |
33798 | ||
33799 | ; | |
33800 | return 0; | |
33801 | } | |
33802 | _ACEOF | |
33803 | rm -f conftest.$ac_objext | |
33804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33805 | (eval $ac_compile) 2>conftest.er1 | |
33806 | ac_status=$? | |
33807 | grep -v '^ *+' conftest.er1 >conftest.err | |
33808 | rm -f conftest.er1 | |
33809 | cat conftest.err >&5 | |
33810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33811 | (exit $ac_status); } && | |
33812 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
33813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33814 | (eval $ac_try) 2>&5 | |
33815 | ac_status=$? | |
33816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33817 | (exit $ac_status); }; } && | |
33818 | { ac_try='test -s conftest.$ac_objext' | |
33819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33820 | (eval $ac_try) 2>&5 | |
33821 | ac_status=$? | |
33822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33823 | (exit $ac_status); }; }; then | |
33824 | wx_cv_func_statfs_decl=yes | |
33825 | else | |
33826 | echo "$as_me: failed program was:" >&5 | |
33827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33828 | ||
33829 | wx_cv_func_statfs_decl=no | |
33830 | ||
33831 | fi | |
33832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
33833 | |
33834 | fi | |
33835 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
33836 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
33837 | ac_ext=c | |
33838 | ac_cpp='$CPP $CPPFLAGS' | |
33839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33842 | ||
33843 | ||
33844 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
33845 | cat >>confdefs.h <<\_ACEOF | |
33846 | #define HAVE_STATFS_DECL 1 | |
33847 | _ACEOF | |
33848 | ||
33849 | fi | |
33850 | ||
a848cd7e SC |
33851 | wx_cv_type_statvfs_t="struct statfs" |
33852 | cat >>confdefs.h <<\_ACEOF | |
33853 | #define HAVE_STATFS 1 | |
33854 | _ACEOF | |
33855 | ||
33856 | else | |
33857 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
33858 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
33859 | if test "${wx_cv_func_statvfs+set}" = set; then | |
33860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33861 | else | |
33862 | cat >conftest.$ac_ext <<_ACEOF | |
33863 | /* confdefs.h. */ | |
33864 | _ACEOF | |
33865 | cat confdefs.h >>conftest.$ac_ext | |
33866 | cat >>conftest.$ac_ext <<_ACEOF | |
33867 | /* end confdefs.h. */ | |
33868 | ||
33869 | #include <stddef.h> | |
33870 | #include <sys/statvfs.h> | |
33871 | ||
33872 | int | |
33873 | main () | |
33874 | { | |
33875 | ||
33876 | statvfs("/", NULL); | |
33877 | ||
33878 | ; | |
33879 | return 0; | |
33880 | } | |
33881 | _ACEOF | |
33882 | rm -f conftest.$ac_objext | |
33883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33885 | ac_status=$? |
ac1cb8d3 VS |
33886 | grep -v '^ *+' conftest.er1 >conftest.err |
33887 | rm -f conftest.er1 | |
33888 | cat conftest.err >&5 | |
a848cd7e SC |
33889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33890 | (exit $ac_status); } && | |
6ebeb4c7 | 33891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33893 | (eval $ac_try) 2>&5 | |
33894 | ac_status=$? | |
33895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33896 | (exit $ac_status); }; } && | |
33897 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33899 | (eval $ac_try) 2>&5 | |
33900 | ac_status=$? | |
33901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33902 | (exit $ac_status); }; }; then | |
33903 | wx_cv_func_statvfs=yes | |
33904 | else | |
33905 | echo "$as_me: failed program was:" >&5 | |
33906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33907 | ||
33908 | wx_cv_func_statvfs=no | |
33909 | ||
33910 | fi | |
ac1cb8d3 | 33911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33912 | |
33913 | fi | |
33914 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
33915 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
33916 | ||
33917 | if test "$wx_cv_func_statvfs" = "yes"; then | |
33918 | ||
33919 | ||
33920 | ac_ext=cc | |
33921 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33922 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33923 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33924 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33925 | ||
33926 | ||
33927 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
33928 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
33929 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
33930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33931 | else | |
33932 | cat >conftest.$ac_ext <<_ACEOF | |
33933 | /* confdefs.h. */ | |
33934 | _ACEOF | |
33935 | cat confdefs.h >>conftest.$ac_ext | |
33936 | cat >>conftest.$ac_ext <<_ACEOF | |
33937 | /* end confdefs.h. */ | |
33938 | ||
33939 | #include <sys/statvfs.h> | |
33940 | ||
33941 | int | |
33942 | main () | |
33943 | { | |
33944 | ||
33945 | long l; | |
33946 | statvfs_t fs; | |
33947 | statvfs("/", &fs); | |
33948 | l = fs.f_bsize; | |
33949 | l += fs.f_blocks; | |
33950 | l += fs.f_bavail; | |
33951 | ||
33952 | ; | |
33953 | return 0; | |
33954 | } | |
33955 | _ACEOF | |
33956 | rm -f conftest.$ac_objext | |
33957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33958 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33959 | ac_status=$? |
ac1cb8d3 VS |
33960 | grep -v '^ *+' conftest.er1 >conftest.err |
33961 | rm -f conftest.er1 | |
33962 | cat conftest.err >&5 | |
a848cd7e SC |
33963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33964 | (exit $ac_status); } && | |
6ebeb4c7 | 33965 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33967 | (eval $ac_try) 2>&5 | |
33968 | ac_status=$? | |
33969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33970 | (exit $ac_status); }; } && | |
33971 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33973 | (eval $ac_try) 2>&5 | |
33974 | ac_status=$? | |
33975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33976 | (exit $ac_status); }; }; then | |
33977 | wx_cv_type_statvfs_t=statvfs_t | |
33978 | else | |
33979 | echo "$as_me: failed program was:" >&5 | |
33980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33981 | ||
33982 | ||
33983 | cat >conftest.$ac_ext <<_ACEOF | |
33984 | /* confdefs.h. */ | |
33985 | _ACEOF | |
33986 | cat confdefs.h >>conftest.$ac_ext | |
33987 | cat >>conftest.$ac_ext <<_ACEOF | |
33988 | /* end confdefs.h. */ | |
33989 | ||
33990 | #include <sys/statvfs.h> | |
33991 | ||
33992 | int | |
33993 | main () | |
33994 | { | |
33995 | ||
33996 | long l; | |
33997 | struct statvfs fs; | |
33998 | statvfs("/", &fs); | |
33999 | l = fs.f_bsize; | |
34000 | l += fs.f_blocks; | |
34001 | l += fs.f_bavail; | |
34002 | ||
34003 | ; | |
34004 | return 0; | |
34005 | } | |
34006 | _ACEOF | |
34007 | rm -f conftest.$ac_objext | |
34008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34009 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34010 | ac_status=$? |
ac1cb8d3 VS |
34011 | grep -v '^ *+' conftest.er1 >conftest.err |
34012 | rm -f conftest.er1 | |
34013 | cat conftest.err >&5 | |
a848cd7e SC |
34014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34015 | (exit $ac_status); } && | |
6ebeb4c7 | 34016 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34018 | (eval $ac_try) 2>&5 | |
34019 | ac_status=$? | |
34020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34021 | (exit $ac_status); }; } && | |
34022 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34024 | (eval $ac_try) 2>&5 | |
34025 | ac_status=$? | |
34026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34027 | (exit $ac_status); }; }; then | |
34028 | wx_cv_type_statvfs_t="struct statvfs" | |
34029 | else | |
34030 | echo "$as_me: failed program was:" >&5 | |
34031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34032 | ||
34033 | wx_cv_type_statvfs_t="unknown" | |
34034 | ||
34035 | fi | |
ac1cb8d3 | 34036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34037 | |
34038 | ||
34039 | fi | |
ac1cb8d3 | 34040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34041 | |
34042 | fi | |
34043 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
34044 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
34045 | ||
34046 | ac_ext=c | |
34047 | ac_cpp='$CPP $CPPFLAGS' | |
34048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34051 | ||
34052 | ||
34053 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34054 | cat >>confdefs.h <<\_ACEOF | |
34055 | #define HAVE_STATVFS 1 | |
34056 | _ACEOF | |
34057 | ||
34058 | fi | |
34059 | else | |
34060 | wx_cv_type_statvfs_t="unknown" | |
34061 | fi | |
34062 | fi | |
34063 | ||
34064 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34065 | cat >>confdefs.h <<_ACEOF | |
34066 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
34067 | _ACEOF | |
34068 | ||
34069 | else | |
34070 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
34071 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
34072 | fi | |
34073 | ||
34074 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34075 | ||
34076 | ||
34077 | for ac_func in fcntl flock | |
34078 | do | |
34079 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34080 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34081 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34082 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34084 | else | |
34085 | cat >conftest.$ac_ext <<_ACEOF | |
34086 | /* confdefs.h. */ | |
34087 | _ACEOF | |
34088 | cat confdefs.h >>conftest.$ac_ext | |
34089 | cat >>conftest.$ac_ext <<_ACEOF | |
34090 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34093 | #define $ac_func innocuous_$ac_func | |
34094 | ||
a848cd7e SC |
34095 | /* System header to define __stub macros and hopefully few prototypes, |
34096 | which can conflict with char $ac_func (); below. | |
34097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34098 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34099 | |
a848cd7e SC |
34100 | #ifdef __STDC__ |
34101 | # include <limits.h> | |
34102 | #else | |
34103 | # include <assert.h> | |
34104 | #endif | |
ac1cb8d3 VS |
34105 | |
34106 | #undef $ac_func | |
34107 | ||
a848cd7e SC |
34108 | /* Override any gcc2 internal prototype to avoid an error. */ |
34109 | #ifdef __cplusplus | |
34110 | extern "C" | |
34111 | { | |
34112 | #endif | |
34113 | /* We use char because int might match the return type of a gcc2 | |
34114 | builtin and then its argument prototype would still apply. */ | |
34115 | char $ac_func (); | |
34116 | /* The GNU C library defines this for functions which it implements | |
34117 | to always fail with ENOSYS. Some functions are actually named | |
34118 | something starting with __ and the normal name is an alias. */ | |
34119 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34120 | choke me | |
34121 | #else | |
34122 | char (*f) () = $ac_func; | |
34123 | #endif | |
34124 | #ifdef __cplusplus | |
34125 | } | |
34126 | #endif | |
34127 | ||
34128 | int | |
34129 | main () | |
34130 | { | |
34131 | return f != $ac_func; | |
34132 | ; | |
34133 | return 0; | |
34134 | } | |
34135 | _ACEOF | |
34136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34138 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34139 | ac_status=$? |
ac1cb8d3 VS |
34140 | grep -v '^ *+' conftest.er1 >conftest.err |
34141 | rm -f conftest.er1 | |
34142 | cat conftest.err >&5 | |
a848cd7e SC |
34143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34144 | (exit $ac_status); } && | |
6ebeb4c7 | 34145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34147 | (eval $ac_try) 2>&5 | |
34148 | ac_status=$? | |
34149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34150 | (exit $ac_status); }; } && | |
34151 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34153 | (eval $ac_try) 2>&5 | |
34154 | ac_status=$? | |
34155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34156 | (exit $ac_status); }; }; then | |
34157 | eval "$as_ac_var=yes" | |
34158 | else | |
34159 | echo "$as_me: failed program was:" >&5 | |
34160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34161 | ||
34162 | eval "$as_ac_var=no" | |
34163 | fi | |
ac1cb8d3 VS |
34164 | rm -f conftest.err conftest.$ac_objext \ |
34165 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34166 | fi |
34167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34168 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34169 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34170 | cat >>confdefs.h <<_ACEOF | |
34171 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34172 | _ACEOF | |
34173 | break | |
34174 | fi | |
34175 | done | |
34176 | ||
34177 | ||
34178 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
34179 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
34180 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
34181 | wxUSE_SNGLINST_CHECKER=no | |
34182 | fi | |
34183 | fi | |
34184 | ||
34185 | ||
34186 | for ac_func in timegm | |
34187 | do | |
34188 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34189 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34191 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34193 | else | |
34194 | cat >conftest.$ac_ext <<_ACEOF | |
34195 | /* confdefs.h. */ | |
34196 | _ACEOF | |
34197 | cat confdefs.h >>conftest.$ac_ext | |
34198 | cat >>conftest.$ac_ext <<_ACEOF | |
34199 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34202 | #define $ac_func innocuous_$ac_func | |
34203 | ||
a848cd7e SC |
34204 | /* System header to define __stub macros and hopefully few prototypes, |
34205 | which can conflict with char $ac_func (); below. | |
34206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34207 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34208 | |
a848cd7e SC |
34209 | #ifdef __STDC__ |
34210 | # include <limits.h> | |
34211 | #else | |
34212 | # include <assert.h> | |
34213 | #endif | |
ac1cb8d3 VS |
34214 | |
34215 | #undef $ac_func | |
34216 | ||
a848cd7e SC |
34217 | /* Override any gcc2 internal prototype to avoid an error. */ |
34218 | #ifdef __cplusplus | |
34219 | extern "C" | |
34220 | { | |
34221 | #endif | |
34222 | /* We use char because int might match the return type of a gcc2 | |
34223 | builtin and then its argument prototype would still apply. */ | |
34224 | char $ac_func (); | |
34225 | /* The GNU C library defines this for functions which it implements | |
34226 | to always fail with ENOSYS. Some functions are actually named | |
34227 | something starting with __ and the normal name is an alias. */ | |
34228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34229 | choke me | |
34230 | #else | |
34231 | char (*f) () = $ac_func; | |
34232 | #endif | |
34233 | #ifdef __cplusplus | |
34234 | } | |
34235 | #endif | |
34236 | ||
34237 | int | |
34238 | main () | |
34239 | { | |
34240 | return f != $ac_func; | |
34241 | ; | |
34242 | return 0; | |
34243 | } | |
34244 | _ACEOF | |
34245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34247 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34248 | ac_status=$? |
ac1cb8d3 VS |
34249 | grep -v '^ *+' conftest.er1 >conftest.err |
34250 | rm -f conftest.er1 | |
34251 | cat conftest.err >&5 | |
a848cd7e SC |
34252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34253 | (exit $ac_status); } && | |
6ebeb4c7 | 34254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34256 | (eval $ac_try) 2>&5 | |
34257 | ac_status=$? | |
34258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34259 | (exit $ac_status); }; } && | |
34260 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34262 | (eval $ac_try) 2>&5 | |
34263 | ac_status=$? | |
34264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34265 | (exit $ac_status); }; }; then | |
34266 | eval "$as_ac_var=yes" | |
34267 | else | |
34268 | echo "$as_me: failed program was:" >&5 | |
34269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34270 | ||
34271 | eval "$as_ac_var=no" | |
34272 | fi | |
ac1cb8d3 VS |
34273 | rm -f conftest.err conftest.$ac_objext \ |
34274 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34275 | fi |
34276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34277 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34278 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34279 | cat >>confdefs.h <<_ACEOF | |
34280 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34281 | _ACEOF | |
34282 | ||
34283 | fi | |
34284 | done | |
34285 | ||
34286 | ||
34287 | ||
34288 | ||
34289 | for ac_func in putenv setenv | |
34290 | do | |
34291 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34292 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34293 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34294 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34296 | else | |
34297 | cat >conftest.$ac_ext <<_ACEOF | |
34298 | /* confdefs.h. */ | |
34299 | _ACEOF | |
34300 | cat confdefs.h >>conftest.$ac_ext | |
34301 | cat >>conftest.$ac_ext <<_ACEOF | |
34302 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34303 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34304 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34305 | #define $ac_func innocuous_$ac_func | |
34306 | ||
a848cd7e SC |
34307 | /* System header to define __stub macros and hopefully few prototypes, |
34308 | which can conflict with char $ac_func (); below. | |
34309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34310 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34311 | |
a848cd7e SC |
34312 | #ifdef __STDC__ |
34313 | # include <limits.h> | |
34314 | #else | |
34315 | # include <assert.h> | |
34316 | #endif | |
ac1cb8d3 VS |
34317 | |
34318 | #undef $ac_func | |
34319 | ||
a848cd7e SC |
34320 | /* Override any gcc2 internal prototype to avoid an error. */ |
34321 | #ifdef __cplusplus | |
34322 | extern "C" | |
34323 | { | |
34324 | #endif | |
34325 | /* We use char because int might match the return type of a gcc2 | |
34326 | builtin and then its argument prototype would still apply. */ | |
34327 | char $ac_func (); | |
34328 | /* The GNU C library defines this for functions which it implements | |
34329 | to always fail with ENOSYS. Some functions are actually named | |
34330 | something starting with __ and the normal name is an alias. */ | |
34331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34332 | choke me | |
34333 | #else | |
34334 | char (*f) () = $ac_func; | |
34335 | #endif | |
34336 | #ifdef __cplusplus | |
34337 | } | |
34338 | #endif | |
34339 | ||
34340 | int | |
34341 | main () | |
34342 | { | |
34343 | return f != $ac_func; | |
34344 | ; | |
34345 | return 0; | |
34346 | } | |
34347 | _ACEOF | |
34348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34350 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34351 | ac_status=$? |
ac1cb8d3 VS |
34352 | grep -v '^ *+' conftest.er1 >conftest.err |
34353 | rm -f conftest.er1 | |
34354 | cat conftest.err >&5 | |
a848cd7e SC |
34355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34356 | (exit $ac_status); } && | |
6ebeb4c7 | 34357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34359 | (eval $ac_try) 2>&5 | |
34360 | ac_status=$? | |
34361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34362 | (exit $ac_status); }; } && | |
34363 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34365 | (eval $ac_try) 2>&5 | |
34366 | ac_status=$? | |
34367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34368 | (exit $ac_status); }; }; then | |
34369 | eval "$as_ac_var=yes" | |
34370 | else | |
34371 | echo "$as_me: failed program was:" >&5 | |
34372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34373 | ||
34374 | eval "$as_ac_var=no" | |
34375 | fi | |
ac1cb8d3 VS |
34376 | rm -f conftest.err conftest.$ac_objext \ |
34377 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34378 | fi |
34379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34380 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34381 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34382 | cat >>confdefs.h <<_ACEOF | |
34383 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34384 | _ACEOF | |
34385 | break | |
34386 | fi | |
34387 | done | |
34388 | ||
34389 | ||
34390 | HAVE_SOME_SLEEP_FUNC=0 | |
34391 | if test "$USE_BEOS" = 1; then | |
34392 | cat >>confdefs.h <<\_ACEOF | |
34393 | #define HAVE_SLEEP 1 | |
34394 | _ACEOF | |
34395 | ||
34396 | HAVE_SOME_SLEEP_FUNC=1 | |
34397 | fi | |
34398 | ||
34399 | if test "$USE_DARWIN" = 1; then | |
34400 | cat >>confdefs.h <<\_ACEOF | |
34401 | #define HAVE_USLEEP 1 | |
34402 | _ACEOF | |
34403 | ||
34404 | HAVE_SOME_SLEEP_FUNC=1 | |
34405 | fi | |
34406 | ||
34407 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
34408 | POSIX4_LINK= | |
34409 | ||
34410 | for ac_func in nanosleep | |
34411 | do | |
34412 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34413 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34414 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34415 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34417 | else | |
34418 | cat >conftest.$ac_ext <<_ACEOF | |
34419 | /* confdefs.h. */ | |
34420 | _ACEOF | |
34421 | cat confdefs.h >>conftest.$ac_ext | |
34422 | cat >>conftest.$ac_ext <<_ACEOF | |
34423 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34426 | #define $ac_func innocuous_$ac_func | |
34427 | ||
a848cd7e SC |
34428 | /* System header to define __stub macros and hopefully few prototypes, |
34429 | which can conflict with char $ac_func (); below. | |
34430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34431 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34432 | |
a848cd7e SC |
34433 | #ifdef __STDC__ |
34434 | # include <limits.h> | |
34435 | #else | |
34436 | # include <assert.h> | |
34437 | #endif | |
ac1cb8d3 VS |
34438 | |
34439 | #undef $ac_func | |
34440 | ||
a848cd7e SC |
34441 | /* Override any gcc2 internal prototype to avoid an error. */ |
34442 | #ifdef __cplusplus | |
34443 | extern "C" | |
34444 | { | |
34445 | #endif | |
34446 | /* We use char because int might match the return type of a gcc2 | |
34447 | builtin and then its argument prototype would still apply. */ | |
34448 | char $ac_func (); | |
34449 | /* The GNU C library defines this for functions which it implements | |
34450 | to always fail with ENOSYS. Some functions are actually named | |
34451 | something starting with __ and the normal name is an alias. */ | |
34452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34453 | choke me | |
34454 | #else | |
34455 | char (*f) () = $ac_func; | |
34456 | #endif | |
34457 | #ifdef __cplusplus | |
34458 | } | |
34459 | #endif | |
34460 | ||
34461 | int | |
34462 | main () | |
34463 | { | |
34464 | return f != $ac_func; | |
34465 | ; | |
34466 | return 0; | |
34467 | } | |
34468 | _ACEOF | |
34469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34471 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34472 | ac_status=$? |
ac1cb8d3 VS |
34473 | grep -v '^ *+' conftest.er1 >conftest.err |
34474 | rm -f conftest.er1 | |
34475 | cat conftest.err >&5 | |
a848cd7e SC |
34476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34477 | (exit $ac_status); } && | |
6ebeb4c7 | 34478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34480 | (eval $ac_try) 2>&5 | |
34481 | ac_status=$? | |
34482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34483 | (exit $ac_status); }; } && | |
34484 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34486 | (eval $ac_try) 2>&5 | |
34487 | ac_status=$? | |
34488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34489 | (exit $ac_status); }; }; then | |
34490 | eval "$as_ac_var=yes" | |
34491 | else | |
34492 | echo "$as_me: failed program was:" >&5 | |
34493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34494 | ||
34495 | eval "$as_ac_var=no" | |
34496 | fi | |
ac1cb8d3 VS |
34497 | rm -f conftest.err conftest.$ac_objext \ |
34498 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34499 | fi |
34500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34501 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34502 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34503 | cat >>confdefs.h <<_ACEOF | |
34504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34505 | _ACEOF | |
34506 | cat >>confdefs.h <<\_ACEOF | |
34507 | #define HAVE_NANOSLEEP 1 | |
34508 | _ACEOF | |
34509 | ||
34510 | else | |
34511 | ||
34512 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
34513 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
34514 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
34515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34516 | else | |
34517 | ac_check_lib_save_LIBS=$LIBS | |
34518 | LIBS="-lposix4 $LIBS" | |
34519 | cat >conftest.$ac_ext <<_ACEOF | |
34520 | /* confdefs.h. */ | |
34521 | _ACEOF | |
34522 | cat confdefs.h >>conftest.$ac_ext | |
34523 | cat >>conftest.$ac_ext <<_ACEOF | |
34524 | /* end confdefs.h. */ | |
34525 | ||
34526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34527 | #ifdef __cplusplus | |
34528 | extern "C" | |
34529 | #endif | |
34530 | /* We use char because int might match the return type of a gcc2 | |
34531 | builtin and then its argument prototype would still apply. */ | |
34532 | char nanosleep (); | |
34533 | int | |
34534 | main () | |
34535 | { | |
34536 | nanosleep (); | |
34537 | ; | |
34538 | return 0; | |
34539 | } | |
34540 | _ACEOF | |
34541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34544 | ac_status=$? |
ac1cb8d3 VS |
34545 | grep -v '^ *+' conftest.er1 >conftest.err |
34546 | rm -f conftest.er1 | |
34547 | cat conftest.err >&5 | |
a848cd7e SC |
34548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34549 | (exit $ac_status); } && | |
6ebeb4c7 | 34550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34552 | (eval $ac_try) 2>&5 | |
34553 | ac_status=$? | |
34554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34555 | (exit $ac_status); }; } && | |
34556 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34558 | (eval $ac_try) 2>&5 | |
34559 | ac_status=$? | |
34560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34561 | (exit $ac_status); }; }; then | |
34562 | ac_cv_lib_posix4_nanosleep=yes | |
34563 | else | |
34564 | echo "$as_me: failed program was:" >&5 | |
34565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34566 | ||
34567 | ac_cv_lib_posix4_nanosleep=no | |
34568 | fi | |
ac1cb8d3 VS |
34569 | rm -f conftest.err conftest.$ac_objext \ |
34570 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34571 | LIBS=$ac_check_lib_save_LIBS |
34572 | fi | |
34573 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
34574 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
34575 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
34576 | ||
34577 | cat >>confdefs.h <<\_ACEOF | |
34578 | #define HAVE_NANOSLEEP 1 | |
34579 | _ACEOF | |
34580 | ||
34581 | POSIX4_LINK=" -lposix4" | |
34582 | ||
34583 | else | |
34584 | ||
34585 | ||
34586 | for ac_func in usleep | |
34587 | do | |
34588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34589 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34591 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34593 | else | |
34594 | cat >conftest.$ac_ext <<_ACEOF | |
34595 | /* confdefs.h. */ | |
34596 | _ACEOF | |
34597 | cat confdefs.h >>conftest.$ac_ext | |
34598 | cat >>conftest.$ac_ext <<_ACEOF | |
34599 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34602 | #define $ac_func innocuous_$ac_func | |
34603 | ||
a848cd7e SC |
34604 | /* System header to define __stub macros and hopefully few prototypes, |
34605 | which can conflict with char $ac_func (); below. | |
34606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34607 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34608 | |
a848cd7e SC |
34609 | #ifdef __STDC__ |
34610 | # include <limits.h> | |
34611 | #else | |
34612 | # include <assert.h> | |
34613 | #endif | |
ac1cb8d3 VS |
34614 | |
34615 | #undef $ac_func | |
34616 | ||
a848cd7e SC |
34617 | /* Override any gcc2 internal prototype to avoid an error. */ |
34618 | #ifdef __cplusplus | |
34619 | extern "C" | |
34620 | { | |
34621 | #endif | |
34622 | /* We use char because int might match the return type of a gcc2 | |
34623 | builtin and then its argument prototype would still apply. */ | |
34624 | char $ac_func (); | |
34625 | /* The GNU C library defines this for functions which it implements | |
34626 | to always fail with ENOSYS. Some functions are actually named | |
34627 | something starting with __ and the normal name is an alias. */ | |
34628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34629 | choke me | |
34630 | #else | |
34631 | char (*f) () = $ac_func; | |
34632 | #endif | |
34633 | #ifdef __cplusplus | |
34634 | } | |
34635 | #endif | |
34636 | ||
34637 | int | |
34638 | main () | |
34639 | { | |
34640 | return f != $ac_func; | |
34641 | ; | |
34642 | return 0; | |
34643 | } | |
34644 | _ACEOF | |
34645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34647 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34648 | ac_status=$? |
ac1cb8d3 VS |
34649 | grep -v '^ *+' conftest.er1 >conftest.err |
34650 | rm -f conftest.er1 | |
34651 | cat conftest.err >&5 | |
a848cd7e SC |
34652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34653 | (exit $ac_status); } && | |
6ebeb4c7 | 34654 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34656 | (eval $ac_try) 2>&5 | |
34657 | ac_status=$? | |
34658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34659 | (exit $ac_status); }; } && | |
34660 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34662 | (eval $ac_try) 2>&5 | |
34663 | ac_status=$? | |
34664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34665 | (exit $ac_status); }; }; then | |
34666 | eval "$as_ac_var=yes" | |
34667 | else | |
34668 | echo "$as_me: failed program was:" >&5 | |
34669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34670 | ||
34671 | eval "$as_ac_var=no" | |
34672 | fi | |
ac1cb8d3 VS |
34673 | rm -f conftest.err conftest.$ac_objext \ |
34674 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34675 | fi |
34676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34677 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34678 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34679 | cat >>confdefs.h <<_ACEOF | |
34680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34681 | _ACEOF | |
34682 | cat >>confdefs.h <<\_ACEOF | |
34683 | #define HAVE_USLEEP 1 | |
34684 | _ACEOF | |
34685 | ||
34686 | else | |
34687 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
34688 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
34689 | ||
34690 | fi | |
34691 | done | |
34692 | ||
34693 | ||
34694 | ||
34695 | fi | |
34696 | ||
34697 | ||
34698 | ||
34699 | fi | |
34700 | done | |
34701 | ||
34702 | fi | |
34703 | ||
34704 | ||
34705 | ||
34706 | for ac_func in uname gethostname | |
34707 | do | |
34708 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34709 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34710 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34711 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34713 | else | |
34714 | cat >conftest.$ac_ext <<_ACEOF | |
34715 | /* confdefs.h. */ | |
34716 | _ACEOF | |
34717 | cat confdefs.h >>conftest.$ac_ext | |
34718 | cat >>conftest.$ac_ext <<_ACEOF | |
34719 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34720 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34722 | #define $ac_func innocuous_$ac_func | |
34723 | ||
a848cd7e SC |
34724 | /* System header to define __stub macros and hopefully few prototypes, |
34725 | which can conflict with char $ac_func (); below. | |
34726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34727 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34728 | |
a848cd7e SC |
34729 | #ifdef __STDC__ |
34730 | # include <limits.h> | |
34731 | #else | |
34732 | # include <assert.h> | |
34733 | #endif | |
ac1cb8d3 VS |
34734 | |
34735 | #undef $ac_func | |
34736 | ||
a848cd7e SC |
34737 | /* Override any gcc2 internal prototype to avoid an error. */ |
34738 | #ifdef __cplusplus | |
34739 | extern "C" | |
34740 | { | |
34741 | #endif | |
34742 | /* We use char because int might match the return type of a gcc2 | |
34743 | builtin and then its argument prototype would still apply. */ | |
34744 | char $ac_func (); | |
34745 | /* The GNU C library defines this for functions which it implements | |
34746 | to always fail with ENOSYS. Some functions are actually named | |
34747 | something starting with __ and the normal name is an alias. */ | |
34748 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34749 | choke me | |
34750 | #else | |
34751 | char (*f) () = $ac_func; | |
34752 | #endif | |
34753 | #ifdef __cplusplus | |
34754 | } | |
34755 | #endif | |
34756 | ||
34757 | int | |
34758 | main () | |
34759 | { | |
34760 | return f != $ac_func; | |
34761 | ; | |
34762 | return 0; | |
34763 | } | |
34764 | _ACEOF | |
34765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34767 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34768 | ac_status=$? |
ac1cb8d3 VS |
34769 | grep -v '^ *+' conftest.er1 >conftest.err |
34770 | rm -f conftest.er1 | |
34771 | cat conftest.err >&5 | |
a848cd7e SC |
34772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34773 | (exit $ac_status); } && | |
6ebeb4c7 | 34774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34776 | (eval $ac_try) 2>&5 | |
34777 | ac_status=$? | |
34778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34779 | (exit $ac_status); }; } && | |
34780 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34782 | (eval $ac_try) 2>&5 | |
34783 | ac_status=$? | |
34784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34785 | (exit $ac_status); }; }; then | |
34786 | eval "$as_ac_var=yes" | |
34787 | else | |
34788 | echo "$as_me: failed program was:" >&5 | |
34789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34790 | ||
34791 | eval "$as_ac_var=no" | |
34792 | fi | |
ac1cb8d3 VS |
34793 | rm -f conftest.err conftest.$ac_objext \ |
34794 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34795 | fi |
34796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34797 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34798 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34799 | cat >>confdefs.h <<_ACEOF | |
34800 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34801 | _ACEOF | |
34802 | break | |
34803 | fi | |
34804 | done | |
34805 | ||
34806 | ||
34807 | ||
34808 | ||
34809 | ac_ext=cc | |
34810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34814 | ||
34815 | ||
34816 | ||
34817 | for ac_func in strtok_r | |
34818 | do | |
34819 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34820 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34821 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34822 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34824 | else | |
34825 | cat >conftest.$ac_ext <<_ACEOF | |
34826 | /* confdefs.h. */ | |
34827 | _ACEOF | |
34828 | cat confdefs.h >>conftest.$ac_ext | |
34829 | cat >>conftest.$ac_ext <<_ACEOF | |
34830 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34831 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34832 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34833 | #define $ac_func innocuous_$ac_func | |
34834 | ||
a848cd7e SC |
34835 | /* System header to define __stub macros and hopefully few prototypes, |
34836 | which can conflict with char $ac_func (); below. | |
34837 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34838 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34839 | |
a848cd7e SC |
34840 | #ifdef __STDC__ |
34841 | # include <limits.h> | |
34842 | #else | |
34843 | # include <assert.h> | |
34844 | #endif | |
ac1cb8d3 VS |
34845 | |
34846 | #undef $ac_func | |
34847 | ||
a848cd7e SC |
34848 | /* Override any gcc2 internal prototype to avoid an error. */ |
34849 | #ifdef __cplusplus | |
34850 | extern "C" | |
34851 | { | |
34852 | #endif | |
34853 | /* We use char because int might match the return type of a gcc2 | |
34854 | builtin and then its argument prototype would still apply. */ | |
34855 | char $ac_func (); | |
34856 | /* The GNU C library defines this for functions which it implements | |
34857 | to always fail with ENOSYS. Some functions are actually named | |
34858 | something starting with __ and the normal name is an alias. */ | |
34859 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34860 | choke me | |
34861 | #else | |
34862 | char (*f) () = $ac_func; | |
34863 | #endif | |
34864 | #ifdef __cplusplus | |
34865 | } | |
34866 | #endif | |
34867 | ||
34868 | int | |
34869 | main () | |
34870 | { | |
34871 | return f != $ac_func; | |
34872 | ; | |
34873 | return 0; | |
34874 | } | |
34875 | _ACEOF | |
34876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34878 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34879 | ac_status=$? |
ac1cb8d3 VS |
34880 | grep -v '^ *+' conftest.er1 >conftest.err |
34881 | rm -f conftest.er1 | |
34882 | cat conftest.err >&5 | |
a848cd7e SC |
34883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34884 | (exit $ac_status); } && | |
6ebeb4c7 | 34885 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34887 | (eval $ac_try) 2>&5 | |
34888 | ac_status=$? | |
34889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34890 | (exit $ac_status); }; } && | |
34891 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34893 | (eval $ac_try) 2>&5 | |
34894 | ac_status=$? | |
34895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34896 | (exit $ac_status); }; }; then | |
34897 | eval "$as_ac_var=yes" | |
34898 | else | |
34899 | echo "$as_me: failed program was:" >&5 | |
34900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34901 | ||
34902 | eval "$as_ac_var=no" | |
34903 | fi | |
ac1cb8d3 VS |
34904 | rm -f conftest.err conftest.$ac_objext \ |
34905 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34906 | fi |
34907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34908 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34909 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34910 | cat >>confdefs.h <<_ACEOF | |
34911 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34912 | _ACEOF | |
34913 | ||
34914 | fi | |
34915 | done | |
34916 | ||
34917 | ||
34918 | ac_ext=c | |
34919 | ac_cpp='$CPP $CPPFLAGS' | |
34920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34923 | ||
34924 | ||
34925 | INET_LINK= | |
34926 | ||
34927 | for ac_func in inet_addr | |
34928 | do | |
34929 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34930 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34932 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34934 | else | |
34935 | cat >conftest.$ac_ext <<_ACEOF | |
34936 | /* confdefs.h. */ | |
34937 | _ACEOF | |
34938 | cat confdefs.h >>conftest.$ac_ext | |
34939 | cat >>conftest.$ac_ext <<_ACEOF | |
34940 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34941 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34942 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34943 | #define $ac_func innocuous_$ac_func | |
34944 | ||
a848cd7e SC |
34945 | /* System header to define __stub macros and hopefully few prototypes, |
34946 | which can conflict with char $ac_func (); below. | |
34947 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34948 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34949 | |
a848cd7e SC |
34950 | #ifdef __STDC__ |
34951 | # include <limits.h> | |
34952 | #else | |
34953 | # include <assert.h> | |
34954 | #endif | |
ac1cb8d3 VS |
34955 | |
34956 | #undef $ac_func | |
34957 | ||
a848cd7e SC |
34958 | /* Override any gcc2 internal prototype to avoid an error. */ |
34959 | #ifdef __cplusplus | |
34960 | extern "C" | |
34961 | { | |
34962 | #endif | |
34963 | /* We use char because int might match the return type of a gcc2 | |
34964 | builtin and then its argument prototype would still apply. */ | |
34965 | char $ac_func (); | |
34966 | /* The GNU C library defines this for functions which it implements | |
34967 | to always fail with ENOSYS. Some functions are actually named | |
34968 | something starting with __ and the normal name is an alias. */ | |
34969 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34970 | choke me | |
34971 | #else | |
34972 | char (*f) () = $ac_func; | |
34973 | #endif | |
34974 | #ifdef __cplusplus | |
34975 | } | |
34976 | #endif | |
34977 | ||
34978 | int | |
34979 | main () | |
34980 | { | |
34981 | return f != $ac_func; | |
34982 | ; | |
34983 | return 0; | |
34984 | } | |
34985 | _ACEOF | |
34986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34988 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34989 | ac_status=$? |
ac1cb8d3 VS |
34990 | grep -v '^ *+' conftest.er1 >conftest.err |
34991 | rm -f conftest.er1 | |
34992 | cat conftest.err >&5 | |
a848cd7e SC |
34993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34994 | (exit $ac_status); } && | |
6ebeb4c7 | 34995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34997 | (eval $ac_try) 2>&5 | |
34998 | ac_status=$? | |
34999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35000 | (exit $ac_status); }; } && | |
35001 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35003 | (eval $ac_try) 2>&5 | |
35004 | ac_status=$? | |
35005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35006 | (exit $ac_status); }; }; then | |
35007 | eval "$as_ac_var=yes" | |
35008 | else | |
35009 | echo "$as_me: failed program was:" >&5 | |
35010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35011 | ||
35012 | eval "$as_ac_var=no" | |
35013 | fi | |
ac1cb8d3 VS |
35014 | rm -f conftest.err conftest.$ac_objext \ |
35015 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35016 | fi |
35017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35018 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35019 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35020 | cat >>confdefs.h <<_ACEOF | |
35021 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35022 | _ACEOF | |
35023 | cat >>confdefs.h <<\_ACEOF | |
35024 | #define HAVE_INET_ADDR 1 | |
35025 | _ACEOF | |
35026 | ||
35027 | else | |
35028 | ||
35029 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
35030 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
35031 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
35032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35033 | else | |
35034 | ac_check_lib_save_LIBS=$LIBS | |
35035 | LIBS="-lnsl $LIBS" | |
35036 | cat >conftest.$ac_ext <<_ACEOF | |
35037 | /* confdefs.h. */ | |
35038 | _ACEOF | |
35039 | cat confdefs.h >>conftest.$ac_ext | |
35040 | cat >>conftest.$ac_ext <<_ACEOF | |
35041 | /* end confdefs.h. */ | |
35042 | ||
35043 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35044 | #ifdef __cplusplus | |
35045 | extern "C" | |
35046 | #endif | |
35047 | /* We use char because int might match the return type of a gcc2 | |
35048 | builtin and then its argument prototype would still apply. */ | |
35049 | char inet_addr (); | |
35050 | int | |
35051 | main () | |
35052 | { | |
35053 | inet_addr (); | |
35054 | ; | |
35055 | return 0; | |
35056 | } | |
35057 | _ACEOF | |
35058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35060 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35061 | ac_status=$? |
ac1cb8d3 VS |
35062 | grep -v '^ *+' conftest.er1 >conftest.err |
35063 | rm -f conftest.er1 | |
35064 | cat conftest.err >&5 | |
a848cd7e SC |
35065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35066 | (exit $ac_status); } && | |
6ebeb4c7 | 35067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35069 | (eval $ac_try) 2>&5 | |
35070 | ac_status=$? | |
35071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35072 | (exit $ac_status); }; } && | |
35073 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35075 | (eval $ac_try) 2>&5 | |
35076 | ac_status=$? | |
35077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35078 | (exit $ac_status); }; }; then | |
35079 | ac_cv_lib_nsl_inet_addr=yes | |
35080 | else | |
35081 | echo "$as_me: failed program was:" >&5 | |
35082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35083 | ||
35084 | ac_cv_lib_nsl_inet_addr=no | |
35085 | fi | |
ac1cb8d3 VS |
35086 | rm -f conftest.err conftest.$ac_objext \ |
35087 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35088 | LIBS=$ac_check_lib_save_LIBS |
35089 | fi | |
35090 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
35091 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
35092 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
35093 | INET_LINK="nsl" | |
35094 | else | |
35095 | ||
35096 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
35097 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
35098 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
35099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35100 | else | |
35101 | ac_check_lib_save_LIBS=$LIBS | |
35102 | LIBS="-lresolv $LIBS" | |
35103 | cat >conftest.$ac_ext <<_ACEOF | |
35104 | /* confdefs.h. */ | |
35105 | _ACEOF | |
35106 | cat confdefs.h >>conftest.$ac_ext | |
35107 | cat >>conftest.$ac_ext <<_ACEOF | |
35108 | /* end confdefs.h. */ | |
35109 | ||
35110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35111 | #ifdef __cplusplus | |
35112 | extern "C" | |
35113 | #endif | |
35114 | /* We use char because int might match the return type of a gcc2 | |
35115 | builtin and then its argument prototype would still apply. */ | |
35116 | char inet_addr (); | |
35117 | int | |
35118 | main () | |
35119 | { | |
35120 | inet_addr (); | |
35121 | ; | |
35122 | return 0; | |
35123 | } | |
35124 | _ACEOF | |
35125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35127 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35128 | ac_status=$? |
ac1cb8d3 VS |
35129 | grep -v '^ *+' conftest.er1 >conftest.err |
35130 | rm -f conftest.er1 | |
35131 | cat conftest.err >&5 | |
a848cd7e SC |
35132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35133 | (exit $ac_status); } && | |
6ebeb4c7 | 35134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35136 | (eval $ac_try) 2>&5 | |
35137 | ac_status=$? | |
35138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35139 | (exit $ac_status); }; } && | |
35140 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35142 | (eval $ac_try) 2>&5 | |
35143 | ac_status=$? | |
35144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35145 | (exit $ac_status); }; }; then | |
35146 | ac_cv_lib_resolv_inet_addr=yes | |
35147 | else | |
35148 | echo "$as_me: failed program was:" >&5 | |
35149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35150 | ||
35151 | ac_cv_lib_resolv_inet_addr=no | |
35152 | fi | |
ac1cb8d3 VS |
35153 | rm -f conftest.err conftest.$ac_objext \ |
35154 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35155 | LIBS=$ac_check_lib_save_LIBS |
35156 | fi | |
35157 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
35158 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
35159 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
35160 | INET_LINK="resolv" | |
35161 | else | |
35162 | ||
35163 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
35164 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
35165 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
35166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35167 | else | |
35168 | ac_check_lib_save_LIBS=$LIBS | |
35169 | LIBS="-lsocket $LIBS" | |
35170 | cat >conftest.$ac_ext <<_ACEOF | |
35171 | /* confdefs.h. */ | |
35172 | _ACEOF | |
35173 | cat confdefs.h >>conftest.$ac_ext | |
35174 | cat >>conftest.$ac_ext <<_ACEOF | |
35175 | /* end confdefs.h. */ | |
35176 | ||
35177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35178 | #ifdef __cplusplus | |
35179 | extern "C" | |
35180 | #endif | |
35181 | /* We use char because int might match the return type of a gcc2 | |
35182 | builtin and then its argument prototype would still apply. */ | |
35183 | char inet_addr (); | |
35184 | int | |
35185 | main () | |
35186 | { | |
35187 | inet_addr (); | |
35188 | ; | |
35189 | return 0; | |
35190 | } | |
35191 | _ACEOF | |
35192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35194 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35195 | ac_status=$? |
ac1cb8d3 VS |
35196 | grep -v '^ *+' conftest.er1 >conftest.err |
35197 | rm -f conftest.er1 | |
35198 | cat conftest.err >&5 | |
a848cd7e SC |
35199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35200 | (exit $ac_status); } && | |
6ebeb4c7 | 35201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35203 | (eval $ac_try) 2>&5 | |
35204 | ac_status=$? | |
35205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35206 | (exit $ac_status); }; } && | |
35207 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35209 | (eval $ac_try) 2>&5 | |
35210 | ac_status=$? | |
35211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35212 | (exit $ac_status); }; }; then | |
35213 | ac_cv_lib_socket_inet_addr=yes | |
35214 | else | |
35215 | echo "$as_me: failed program was:" >&5 | |
35216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35217 | ||
35218 | ac_cv_lib_socket_inet_addr=no | |
35219 | fi | |
ac1cb8d3 VS |
35220 | rm -f conftest.err conftest.$ac_objext \ |
35221 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35222 | LIBS=$ac_check_lib_save_LIBS |
35223 | fi | |
35224 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
35225 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
35226 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
35227 | INET_LINK="socket" | |
35228 | ||
35229 | fi | |
35230 | ||
35231 | ||
35232 | ||
35233 | fi | |
35234 | ||
35235 | ||
35236 | ||
35237 | fi | |
35238 | ||
35239 | ||
35240 | ||
35241 | fi | |
35242 | done | |
35243 | ||
35244 | ||
35245 | ||
35246 | for ac_func in inet_aton | |
35247 | do | |
35248 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35249 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35250 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35251 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35253 | else | |
35254 | cat >conftest.$ac_ext <<_ACEOF | |
35255 | /* confdefs.h. */ | |
35256 | _ACEOF | |
35257 | cat confdefs.h >>conftest.$ac_ext | |
35258 | cat >>conftest.$ac_ext <<_ACEOF | |
35259 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35260 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35261 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35262 | #define $ac_func innocuous_$ac_func | |
35263 | ||
a848cd7e SC |
35264 | /* System header to define __stub macros and hopefully few prototypes, |
35265 | which can conflict with char $ac_func (); below. | |
35266 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35267 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35268 | |
a848cd7e SC |
35269 | #ifdef __STDC__ |
35270 | # include <limits.h> | |
35271 | #else | |
35272 | # include <assert.h> | |
35273 | #endif | |
ac1cb8d3 VS |
35274 | |
35275 | #undef $ac_func | |
35276 | ||
a848cd7e SC |
35277 | /* Override any gcc2 internal prototype to avoid an error. */ |
35278 | #ifdef __cplusplus | |
35279 | extern "C" | |
35280 | { | |
35281 | #endif | |
35282 | /* We use char because int might match the return type of a gcc2 | |
35283 | builtin and then its argument prototype would still apply. */ | |
35284 | char $ac_func (); | |
35285 | /* The GNU C library defines this for functions which it implements | |
35286 | to always fail with ENOSYS. Some functions are actually named | |
35287 | something starting with __ and the normal name is an alias. */ | |
35288 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35289 | choke me | |
35290 | #else | |
35291 | char (*f) () = $ac_func; | |
35292 | #endif | |
35293 | #ifdef __cplusplus | |
35294 | } | |
35295 | #endif | |
35296 | ||
35297 | int | |
35298 | main () | |
35299 | { | |
35300 | return f != $ac_func; | |
35301 | ; | |
35302 | return 0; | |
35303 | } | |
35304 | _ACEOF | |
35305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35307 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35308 | ac_status=$? |
ac1cb8d3 VS |
35309 | grep -v '^ *+' conftest.er1 >conftest.err |
35310 | rm -f conftest.er1 | |
35311 | cat conftest.err >&5 | |
a848cd7e SC |
35312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35313 | (exit $ac_status); } && | |
6ebeb4c7 | 35314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35316 | (eval $ac_try) 2>&5 | |
35317 | ac_status=$? | |
35318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35319 | (exit $ac_status); }; } && | |
35320 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35322 | (eval $ac_try) 2>&5 | |
35323 | ac_status=$? | |
35324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35325 | (exit $ac_status); }; }; then | |
35326 | eval "$as_ac_var=yes" | |
35327 | else | |
35328 | echo "$as_me: failed program was:" >&5 | |
35329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35330 | ||
35331 | eval "$as_ac_var=no" | |
35332 | fi | |
ac1cb8d3 VS |
35333 | rm -f conftest.err conftest.$ac_objext \ |
35334 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35335 | fi |
35336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35337 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35338 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35339 | cat >>confdefs.h <<_ACEOF | |
35340 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35341 | _ACEOF | |
35342 | cat >>confdefs.h <<\_ACEOF | |
35343 | #define HAVE_INET_ATON 1 | |
35344 | _ACEOF | |
35345 | ||
35346 | else | |
35347 | ||
35348 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
35349 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
35350 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
35351 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
35352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35353 | else | |
35354 | ac_check_lib_save_LIBS=$LIBS | |
35355 | LIBS="-l$INET_LINK $LIBS" | |
35356 | cat >conftest.$ac_ext <<_ACEOF | |
35357 | /* confdefs.h. */ | |
35358 | _ACEOF | |
35359 | cat confdefs.h >>conftest.$ac_ext | |
35360 | cat >>conftest.$ac_ext <<_ACEOF | |
35361 | /* end confdefs.h. */ | |
35362 | ||
35363 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35364 | #ifdef __cplusplus | |
35365 | extern "C" | |
35366 | #endif | |
35367 | /* We use char because int might match the return type of a gcc2 | |
35368 | builtin and then its argument prototype would still apply. */ | |
35369 | char inet_aton (); | |
35370 | int | |
35371 | main () | |
35372 | { | |
35373 | inet_aton (); | |
35374 | ; | |
35375 | return 0; | |
35376 | } | |
35377 | _ACEOF | |
35378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35380 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35381 | ac_status=$? |
ac1cb8d3 VS |
35382 | grep -v '^ *+' conftest.er1 >conftest.err |
35383 | rm -f conftest.er1 | |
35384 | cat conftest.err >&5 | |
a848cd7e SC |
35385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35386 | (exit $ac_status); } && | |
6ebeb4c7 | 35387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35389 | (eval $ac_try) 2>&5 | |
35390 | ac_status=$? | |
35391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35392 | (exit $ac_status); }; } && | |
35393 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35395 | (eval $ac_try) 2>&5 | |
35396 | ac_status=$? | |
35397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35398 | (exit $ac_status); }; }; then | |
35399 | eval "$as_ac_Lib=yes" | |
35400 | else | |
35401 | echo "$as_me: failed program was:" >&5 | |
35402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35403 | ||
35404 | eval "$as_ac_Lib=no" | |
35405 | fi | |
ac1cb8d3 VS |
35406 | rm -f conftest.err conftest.$ac_objext \ |
35407 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35408 | LIBS=$ac_check_lib_save_LIBS |
35409 | fi | |
35410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
35411 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
35412 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
35413 | cat >>confdefs.h <<\_ACEOF | |
35414 | #define HAVE_INET_ATON 1 | |
35415 | _ACEOF | |
35416 | ||
35417 | fi | |
35418 | ||
35419 | ||
35420 | fi | |
35421 | done | |
35422 | ||
35423 | ||
35424 | if test "x$INET_LINK" != "x"; then | |
35425 | cat >>confdefs.h <<\_ACEOF | |
35426 | #define HAVE_INET_ADDR 1 | |
35427 | _ACEOF | |
35428 | ||
35429 | INET_LINK=" -l$INET_LINK" | |
35430 | fi | |
35431 | ||
35432 | fi | |
35433 | ||
35434 | ||
35435 | ||
35436 | EXTRALIBS_ESD= | |
35437 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
35438 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
35439 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
35440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35441 | else | |
35442 | ac_check_lib_save_LIBS=$LIBS | |
35443 | LIBS="-lesd $LIBS" | |
35444 | cat >conftest.$ac_ext <<_ACEOF | |
35445 | /* confdefs.h. */ | |
35446 | _ACEOF | |
35447 | cat confdefs.h >>conftest.$ac_ext | |
35448 | cat >>conftest.$ac_ext <<_ACEOF | |
35449 | /* end confdefs.h. */ | |
35450 | ||
35451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35452 | #ifdef __cplusplus | |
35453 | extern "C" | |
35454 | #endif | |
35455 | /* We use char because int might match the return type of a gcc2 | |
35456 | builtin and then its argument prototype would still apply. */ | |
35457 | char esd_close (); | |
35458 | int | |
35459 | main () | |
35460 | { | |
35461 | esd_close (); | |
35462 | ; | |
35463 | return 0; | |
35464 | } | |
35465 | _ACEOF | |
35466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35468 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35469 | ac_status=$? |
ac1cb8d3 VS |
35470 | grep -v '^ *+' conftest.er1 >conftest.err |
35471 | rm -f conftest.er1 | |
35472 | cat conftest.err >&5 | |
a848cd7e SC |
35473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35474 | (exit $ac_status); } && | |
6ebeb4c7 | 35475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35477 | (eval $ac_try) 2>&5 | |
35478 | ac_status=$? | |
35479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35480 | (exit $ac_status); }; } && | |
35481 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35483 | (eval $ac_try) 2>&5 | |
35484 | ac_status=$? | |
35485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35486 | (exit $ac_status); }; }; then | |
35487 | ac_cv_lib_esd_esd_close=yes | |
35488 | else | |
35489 | echo "$as_me: failed program was:" >&5 | |
35490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35491 | ||
35492 | ac_cv_lib_esd_esd_close=no | |
35493 | fi | |
ac1cb8d3 VS |
35494 | rm -f conftest.err conftest.$ac_objext \ |
35495 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35496 | LIBS=$ac_check_lib_save_LIBS |
35497 | fi | |
35498 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
35499 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
35500 | if test $ac_cv_lib_esd_esd_close = yes; then | |
35501 | ||
35502 | ||
35503 | for ac_header in esd.h | |
35504 | do | |
35505 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35507 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35508 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35511 | fi | |
35512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35514 | else | |
35515 | # Is the header compilable? | |
35516 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35517 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35518 | cat >conftest.$ac_ext <<_ACEOF | |
35519 | /* confdefs.h. */ | |
35520 | _ACEOF | |
35521 | cat confdefs.h >>conftest.$ac_ext | |
35522 | cat >>conftest.$ac_ext <<_ACEOF | |
35523 | /* end confdefs.h. */ | |
35524 | $ac_includes_default | |
35525 | #include <$ac_header> | |
35526 | _ACEOF | |
35527 | rm -f conftest.$ac_objext | |
35528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35529 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35530 | ac_status=$? |
ac1cb8d3 VS |
35531 | grep -v '^ *+' conftest.er1 >conftest.err |
35532 | rm -f conftest.er1 | |
35533 | cat conftest.err >&5 | |
a848cd7e SC |
35534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35535 | (exit $ac_status); } && | |
6ebeb4c7 | 35536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35538 | (eval $ac_try) 2>&5 | |
35539 | ac_status=$? | |
35540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35541 | (exit $ac_status); }; } && | |
35542 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35544 | (eval $ac_try) 2>&5 | |
35545 | ac_status=$? | |
35546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35547 | (exit $ac_status); }; }; then | |
35548 | ac_header_compiler=yes | |
35549 | else | |
35550 | echo "$as_me: failed program was:" >&5 | |
35551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35552 | ||
35553 | ac_header_compiler=no | |
35554 | fi | |
ac1cb8d3 | 35555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35556 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35557 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35558 | ||
35559 | # Is the header present? | |
35560 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35561 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35562 | cat >conftest.$ac_ext <<_ACEOF | |
35563 | /* confdefs.h. */ | |
35564 | _ACEOF | |
35565 | cat confdefs.h >>conftest.$ac_ext | |
35566 | cat >>conftest.$ac_ext <<_ACEOF | |
35567 | /* end confdefs.h. */ | |
35568 | #include <$ac_header> | |
35569 | _ACEOF | |
35570 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35571 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35572 | ac_status=$? | |
35573 | grep -v '^ *+' conftest.er1 >conftest.err | |
35574 | rm -f conftest.er1 | |
35575 | cat conftest.err >&5 | |
35576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35577 | (exit $ac_status); } >/dev/null; then | |
35578 | if test -s conftest.err; then | |
35579 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35580 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35581 | else |
35582 | ac_cpp_err= | |
35583 | fi | |
35584 | else | |
35585 | ac_cpp_err=yes | |
35586 | fi | |
35587 | if test -z "$ac_cpp_err"; then | |
35588 | ac_header_preproc=yes | |
35589 | else | |
35590 | echo "$as_me: failed program was:" >&5 | |
35591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35592 | ||
35593 | ac_header_preproc=no | |
35594 | fi | |
35595 | rm -f conftest.err conftest.$ac_ext | |
35596 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35597 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35598 | ||
35599 | # So? What about this header? | |
ac1cb8d3 VS |
35600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35601 | yes:no: ) | |
a848cd7e SC |
35602 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35603 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35605 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35606 | ac_header_preproc=yes | |
a848cd7e | 35607 | ;; |
ac1cb8d3 | 35608 | no:yes:* ) |
a848cd7e SC |
35609 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35610 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35611 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35612 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35613 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35614 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35615 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35616 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35618 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35619 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35620 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35621 | ( |
35622 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35623 | ## ----------------------------------------- ## |
35624 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35625 | ## ----------------------------------------- ## | |
a848cd7e SC |
35626 | _ASBOX |
35627 | ) | | |
35628 | sed "s/^/$as_me: WARNING: /" >&2 | |
35629 | ;; | |
35630 | esac | |
35631 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35632 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35633 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35635 | else | |
ac1cb8d3 | 35636 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35637 | fi |
35638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35640 | ||
35641 | fi | |
35642 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35643 | cat >>confdefs.h <<_ACEOF | |
35644 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35645 | _ACEOF | |
35646 | ||
35647 | EXTRALIBS_ESD="-lesd" | |
35648 | ||
35649 | fi | |
35650 | ||
35651 | done | |
35652 | ||
35653 | ||
35654 | fi | |
35655 | ||
35656 | ||
35657 | ||
35658 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
35659 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
35660 | cat >conftest.$ac_ext <<_ACEOF | |
35661 | /* confdefs.h. */ | |
35662 | _ACEOF | |
35663 | cat confdefs.h >>conftest.$ac_ext | |
35664 | cat >>conftest.$ac_ext <<_ACEOF | |
35665 | /* end confdefs.h. */ | |
35666 | #ifdef __linux__ | |
35667 | #include <linux/cdrom.h> | |
35668 | #else | |
35669 | /* For Solaris */ | |
35670 | #include <sys/cdio.h> | |
35671 | #endif | |
35672 | ||
35673 | int | |
35674 | main () | |
35675 | { | |
35676 | struct cdrom_tocentry entry, old_entry; | |
35677 | ; | |
35678 | return 0; | |
35679 | } | |
35680 | _ACEOF | |
35681 | rm -f conftest.$ac_objext | |
35682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35683 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35684 | ac_status=$? |
ac1cb8d3 VS |
35685 | grep -v '^ *+' conftest.er1 >conftest.err |
35686 | rm -f conftest.er1 | |
35687 | cat conftest.err >&5 | |
a848cd7e SC |
35688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35689 | (exit $ac_status); } && | |
6ebeb4c7 | 35690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35692 | (eval $ac_try) 2>&5 | |
35693 | ac_status=$? | |
35694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695 | (exit $ac_status); }; } && | |
35696 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35698 | (eval $ac_try) 2>&5 | |
35699 | ac_status=$? | |
35700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35701 | (exit $ac_status); }; }; then | |
35702 | echo "$as_me:$LINENO: result: yes" >&5 | |
35703 | echo "${ECHO_T}yes" >&6 | |
35704 | cat >>confdefs.h <<\_ACEOF | |
35705 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
35706 | _ACEOF | |
35707 | ||
35708 | else | |
35709 | echo "$as_me: failed program was:" >&5 | |
35710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35711 | ||
35712 | echo "$as_me:$LINENO: result: no" >&5 | |
35713 | echo "${ECHO_T}no" >&6 | |
35714 | fi | |
ac1cb8d3 | 35715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35716 | |
35717 | ||
35718 | cat >confcache <<\_ACEOF | |
35719 | # This file is a shell script that caches the results of configure | |
35720 | # tests run on this system so they can be shared between configure | |
35721 | # scripts and configure runs, see configure's option --config-cache. | |
35722 | # It is not useful on other systems. If it contains results you don't | |
35723 | # want to keep, you may remove or edit it. | |
35724 | # | |
35725 | # config.status only pays attention to the cache file if you give it | |
35726 | # the --recheck option to rerun configure. | |
35727 | # | |
35728 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35729 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35730 | # following values. | |
35731 | ||
35732 | _ACEOF | |
35733 | ||
35734 | # The following way of writing the cache mishandles newlines in values, | |
35735 | # but we know of no workaround that is simple, portable, and efficient. | |
35736 | # So, don't put newlines in cache variables' values. | |
35737 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35738 | # and sets the high bit in the cache file unless we assign to the vars. | |
35739 | { | |
35740 | (set) 2>&1 | | |
35741 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35742 | *ac_space=\ *) | |
35743 | # `set' does not quote correctly, so add quotes (double-quote | |
35744 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35745 | sed -n \ | |
ac1cb8d3 VS |
35746 | "s/'/'\\\\''/g; |
35747 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
35748 | ;; |
35749 | *) | |
35750 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35751 | sed -n \ | |
ac1cb8d3 | 35752 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
35753 | ;; |
35754 | esac; | |
35755 | } | | |
35756 | sed ' | |
35757 | t clear | |
35758 | : clear | |
35759 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35760 | t end | |
35761 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35762 | : end' >>confcache | |
35763 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35764 | if test -w $cache_file; then | |
35765 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35766 | cat confcache >$cache_file | |
35767 | else | |
35768 | echo "not updating unwritable cache $cache_file" | |
35769 | fi | |
35770 | fi | |
35771 | rm -f confcache | |
35772 | ||
35773 | ||
35774 | CPP_MT_FLAG= | |
35775 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
35776 | ||
35777 | ||
35778 | THREADS_LINK= | |
35779 | THREADS_CFLAGS= | |
35780 | ||
35781 | if test "$wxUSE_THREADS" = "yes" ; then | |
35782 | if test "$USE_BEOS" = 1; then | |
35783 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
35784 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
35785 | wxUSE_THREADS="no" | |
35786 | fi | |
35787 | fi | |
35788 | ||
35789 | if test "$wxUSE_THREADS" = "yes" ; then | |
35790 | ||
35791 | ||
35792 | THREAD_OPTS="-pthread" | |
35793 | case "${host}" in | |
35794 | *-*-solaris2* | *-*-sunos4* ) | |
35795 | if test "x$GCC" = "xyes"; then | |
35796 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
35797 | else | |
35798 | THREAD_OPTS="-mt $THREAD_OPTS" | |
35799 | fi | |
35800 | ;; | |
35801 | *-*-freebsd*) | |
35802 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
35803 | ;; | |
35804 | *-*-darwin* | *-*-cygwin* ) | |
35805 | THREAD_OPTS="" | |
35806 | ;; | |
35807 | *-*-aix*) | |
35808 | THREAD_OPTS="pthreads" | |
35809 | ;; | |
35810 | *-hp-hpux* ) | |
00421666 MW |
35811 | if test "x$GCC" = "xyes"; then |
35812 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
35813 | THREAD_OPTS="" | |
35814 | else | |
efdf6afe | 35815 | THREAD_OPTS="" |
a848cd7e SC |
35816 | fi |
35817 | ;; | |
35818 | ||
35819 | *-*-irix* ) | |
35820 | if test "x$GCC" = "xyes"; then | |
35821 | THREAD_OPTS="" | |
35822 | fi | |
35823 | ;; | |
35824 | ||
35825 | *-*-*UnixWare*) | |
35826 | if test "x$GCC" != "xyes"; then | |
35827 | THREAD_OPTS="-Ethread" | |
35828 | fi | |
35829 | ;; | |
35830 | esac | |
35831 | ||
35832 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
35833 | ||
35834 | THREADS_OK=no | |
35835 | for flag in $THREAD_OPTS; do | |
35836 | case $flag in | |
35837 | none) | |
35838 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
35839 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
35840 | ;; | |
35841 | ||
35842 | -*) | |
35843 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
35844 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
35845 | THREADS_CFLAGS="$flag" | |
35846 | ;; | |
35847 | ||
35848 | *) | |
35849 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
35850 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
35851 | THREADS_LINK="-l$flag" | |
35852 | ;; | |
35853 | esac | |
35854 | ||
35855 | save_LIBS="$LIBS" | |
35856 | save_CFLAGS="$CFLAGS" | |
35857 | LIBS="$THREADS_LINK $LIBS" | |
35858 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
35859 | ||
35860 | cat >conftest.$ac_ext <<_ACEOF | |
35861 | /* confdefs.h. */ | |
35862 | _ACEOF | |
35863 | cat confdefs.h >>conftest.$ac_ext | |
35864 | cat >>conftest.$ac_ext <<_ACEOF | |
35865 | /* end confdefs.h. */ | |
35866 | #include <pthread.h> | |
35867 | int | |
35868 | main () | |
35869 | { | |
35870 | pthread_create(0,0,0,0); | |
35871 | ; | |
35872 | return 0; | |
35873 | } | |
35874 | _ACEOF | |
35875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35877 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35878 | ac_status=$? |
ac1cb8d3 VS |
35879 | grep -v '^ *+' conftest.er1 >conftest.err |
35880 | rm -f conftest.er1 | |
35881 | cat conftest.err >&5 | |
a848cd7e SC |
35882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35883 | (exit $ac_status); } && | |
6ebeb4c7 | 35884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35886 | (eval $ac_try) 2>&5 | |
35887 | ac_status=$? | |
35888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35889 | (exit $ac_status); }; } && | |
35890 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35892 | (eval $ac_try) 2>&5 | |
35893 | ac_status=$? | |
35894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35895 | (exit $ac_status); }; }; then | |
35896 | THREADS_OK=yes | |
35897 | else | |
35898 | echo "$as_me: failed program was:" >&5 | |
35899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35900 | ||
35901 | fi | |
ac1cb8d3 VS |
35902 | rm -f conftest.err conftest.$ac_objext \ |
35903 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35904 | |
35905 | LIBS="$save_LIBS" | |
35906 | CFLAGS="$save_CFLAGS" | |
35907 | ||
35908 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
35909 | echo "${ECHO_T}$THREADS_OK" >&6 | |
35910 | if test "x$THREADS_OK" = "xyes"; then | |
35911 | break; | |
35912 | fi | |
35913 | ||
35914 | THREADS_LINK="" | |
35915 | THREADS_CFLAGS="" | |
35916 | done | |
35917 | ||
35918 | if test "x$THREADS_OK" != "xyes"; then | |
35919 | wxUSE_THREADS=no | |
35920 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
35921 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
35922 | else | |
35923 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
35924 | LIBS="$THREADS_LINK $LIBS" | |
35925 | ||
35926 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
35927 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
35928 | flag=no | |
35929 | case "${host}" in | |
35930 | *-aix*) | |
35931 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
35932 | flag="-D_THREAD_SAFE" | |
35933 | ;; | |
35934 | *-freebsd*) | |
35935 | flag="-D_THREAD_SAFE" | |
35936 | ;; | |
35937 | *-hp-hpux* ) | |
35938 | flag="-D_REENTRANT" | |
35939 | if test "x$GCC" != "xyes"; then | |
35940 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
35941 | fi | |
35942 | ;; | |
35943 | *solaris* | alpha*-osf*) | |
35944 | flag="-D_REENTRANT" | |
35945 | ;; | |
35946 | esac | |
35947 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
35948 | echo "${ECHO_T}${flag}" >&6 | |
35949 | if test "x$flag" != xno; then | |
35950 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
35951 | fi | |
35952 | ||
35953 | if test "x$THREADS_CFLAGS" != "x"; then | |
35954 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
35955 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
35956 | fi | |
35957 | fi | |
35958 | fi | |
35959 | ||
35960 | if test "$wxUSE_THREADS" = "yes" ; then | |
35961 | ||
35962 | for ac_func in thr_setconcurrency | |
35963 | do | |
35964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35965 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35967 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35969 | else | |
35970 | cat >conftest.$ac_ext <<_ACEOF | |
35971 | /* confdefs.h. */ | |
35972 | _ACEOF | |
35973 | cat confdefs.h >>conftest.$ac_ext | |
35974 | cat >>conftest.$ac_ext <<_ACEOF | |
35975 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35976 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35977 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35978 | #define $ac_func innocuous_$ac_func | |
35979 | ||
a848cd7e SC |
35980 | /* System header to define __stub macros and hopefully few prototypes, |
35981 | which can conflict with char $ac_func (); below. | |
35982 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35983 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35984 | |
a848cd7e SC |
35985 | #ifdef __STDC__ |
35986 | # include <limits.h> | |
35987 | #else | |
35988 | # include <assert.h> | |
35989 | #endif | |
ac1cb8d3 VS |
35990 | |
35991 | #undef $ac_func | |
35992 | ||
a848cd7e SC |
35993 | /* Override any gcc2 internal prototype to avoid an error. */ |
35994 | #ifdef __cplusplus | |
35995 | extern "C" | |
35996 | { | |
35997 | #endif | |
35998 | /* We use char because int might match the return type of a gcc2 | |
35999 | builtin and then its argument prototype would still apply. */ | |
36000 | char $ac_func (); | |
36001 | /* The GNU C library defines this for functions which it implements | |
36002 | to always fail with ENOSYS. Some functions are actually named | |
36003 | something starting with __ and the normal name is an alias. */ | |
36004 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36005 | choke me | |
36006 | #else | |
36007 | char (*f) () = $ac_func; | |
36008 | #endif | |
36009 | #ifdef __cplusplus | |
36010 | } | |
36011 | #endif | |
36012 | ||
36013 | int | |
36014 | main () | |
36015 | { | |
36016 | return f != $ac_func; | |
36017 | ; | |
36018 | return 0; | |
36019 | } | |
36020 | _ACEOF | |
36021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36023 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36024 | ac_status=$? |
ac1cb8d3 VS |
36025 | grep -v '^ *+' conftest.er1 >conftest.err |
36026 | rm -f conftest.er1 | |
36027 | cat conftest.err >&5 | |
a848cd7e SC |
36028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36029 | (exit $ac_status); } && | |
6ebeb4c7 | 36030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36032 | (eval $ac_try) 2>&5 | |
36033 | ac_status=$? | |
36034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36035 | (exit $ac_status); }; } && | |
36036 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36038 | (eval $ac_try) 2>&5 | |
36039 | ac_status=$? | |
36040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36041 | (exit $ac_status); }; }; then | |
36042 | eval "$as_ac_var=yes" | |
36043 | else | |
36044 | echo "$as_me: failed program was:" >&5 | |
36045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36046 | ||
36047 | eval "$as_ac_var=no" | |
36048 | fi | |
ac1cb8d3 VS |
36049 | rm -f conftest.err conftest.$ac_objext \ |
36050 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36051 | fi |
36052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36053 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36054 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36055 | cat >>confdefs.h <<_ACEOF | |
36056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36057 | _ACEOF | |
36058 | ||
36059 | fi | |
36060 | done | |
36061 | ||
36062 | ||
6ebeb4c7 VZ |
36063 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
36064 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
36065 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
36066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36067 | else | |
36068 | ||
36069 | cat >conftest.$ac_ext <<_ACEOF | |
36070 | /* confdefs.h. */ | |
36071 | _ACEOF | |
36072 | cat confdefs.h >>conftest.$ac_ext | |
36073 | cat >>conftest.$ac_ext <<_ACEOF | |
36074 | /* end confdefs.h. */ | |
36075 | #include <pthread.h> | |
36076 | void ThreadCleanupFunc(void *p); | |
36077 | ||
36078 | int | |
36079 | main () | |
36080 | { | |
36081 | ||
36082 | void *p; | |
36083 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
36084 | pthread_cleanup_pop(0); | |
36085 | ||
36086 | ; | |
36087 | return 0; | |
36088 | } | |
36089 | _ACEOF | |
36090 | rm -f conftest.$ac_objext | |
36091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36092 | (eval $ac_compile) 2>conftest.er1 | |
36093 | ac_status=$? | |
36094 | grep -v '^ *+' conftest.er1 >conftest.err | |
36095 | rm -f conftest.er1 | |
36096 | cat conftest.err >&5 | |
36097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36098 | (exit $ac_status); } && | |
36099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
36100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36101 | (eval $ac_try) 2>&5 | |
36102 | ac_status=$? | |
36103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36104 | (exit $ac_status); }; } && | |
36105 | { ac_try='test -s conftest.$ac_objext' | |
36106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36107 | (eval $ac_try) 2>&5 | |
36108 | ac_status=$? | |
36109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36110 | (exit $ac_status); }; }; then | |
36111 | ||
36112 | wx_cv_func_pthread_cleanup=yes | |
36113 | ||
36114 | else | |
36115 | echo "$as_me: failed program was:" >&5 | |
36116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36117 | ||
36118 | ||
36119 | wx_cv_func_pthread_cleanup=no | |
36120 | ||
36121 | ||
36122 | fi | |
36123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36124 | ||
36125 | fi | |
36126 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
36127 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
36128 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
36129 | cat >>confdefs.h <<\_ACEOF | |
36130 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
36131 | _ACEOF | |
36132 | ||
36133 | fi | |
36134 | ||
a848cd7e SC |
36135 | |
36136 | for ac_header in sched.h | |
36137 | do | |
36138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36144 | fi | |
36145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36147 | else | |
36148 | # Is the header compilable? | |
36149 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36150 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36151 | cat >conftest.$ac_ext <<_ACEOF | |
36152 | /* confdefs.h. */ | |
36153 | _ACEOF | |
36154 | cat confdefs.h >>conftest.$ac_ext | |
36155 | cat >>conftest.$ac_ext <<_ACEOF | |
36156 | /* end confdefs.h. */ | |
36157 | $ac_includes_default | |
36158 | #include <$ac_header> | |
36159 | _ACEOF | |
36160 | rm -f conftest.$ac_objext | |
36161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36163 | ac_status=$? |
ac1cb8d3 VS |
36164 | grep -v '^ *+' conftest.er1 >conftest.err |
36165 | rm -f conftest.er1 | |
36166 | cat conftest.err >&5 | |
a848cd7e SC |
36167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36168 | (exit $ac_status); } && | |
6ebeb4c7 | 36169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36171 | (eval $ac_try) 2>&5 | |
36172 | ac_status=$? | |
36173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36174 | (exit $ac_status); }; } && | |
36175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36177 | (eval $ac_try) 2>&5 | |
36178 | ac_status=$? | |
36179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36180 | (exit $ac_status); }; }; then | |
36181 | ac_header_compiler=yes | |
36182 | else | |
36183 | echo "$as_me: failed program was:" >&5 | |
36184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36185 | ||
36186 | ac_header_compiler=no | |
36187 | fi | |
ac1cb8d3 | 36188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36189 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36190 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36191 | ||
36192 | # Is the header present? | |
36193 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36194 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36195 | cat >conftest.$ac_ext <<_ACEOF | |
36196 | /* confdefs.h. */ | |
36197 | _ACEOF | |
36198 | cat confdefs.h >>conftest.$ac_ext | |
36199 | cat >>conftest.$ac_ext <<_ACEOF | |
36200 | /* end confdefs.h. */ | |
36201 | #include <$ac_header> | |
36202 | _ACEOF | |
36203 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36204 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36205 | ac_status=$? | |
36206 | grep -v '^ *+' conftest.er1 >conftest.err | |
36207 | rm -f conftest.er1 | |
36208 | cat conftest.err >&5 | |
36209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36210 | (exit $ac_status); } >/dev/null; then | |
36211 | if test -s conftest.err; then | |
36212 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36213 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36214 | else |
36215 | ac_cpp_err= | |
36216 | fi | |
36217 | else | |
36218 | ac_cpp_err=yes | |
36219 | fi | |
36220 | if test -z "$ac_cpp_err"; then | |
36221 | ac_header_preproc=yes | |
36222 | else | |
36223 | echo "$as_me: failed program was:" >&5 | |
36224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36225 | ||
36226 | ac_header_preproc=no | |
36227 | fi | |
36228 | rm -f conftest.err conftest.$ac_ext | |
36229 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36230 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36231 | ||
36232 | # So? What about this header? | |
ac1cb8d3 VS |
36233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36234 | yes:no: ) | |
a848cd7e SC |
36235 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36236 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36238 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36239 | ac_header_preproc=yes | |
a848cd7e | 36240 | ;; |
ac1cb8d3 | 36241 | no:yes:* ) |
a848cd7e SC |
36242 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36243 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36244 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36245 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36246 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36247 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36248 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36249 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36250 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36251 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36252 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36253 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36254 | ( |
36255 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36256 | ## ----------------------------------------- ## |
36257 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36258 | ## ----------------------------------------- ## | |
a848cd7e SC |
36259 | _ASBOX |
36260 | ) | | |
36261 | sed "s/^/$as_me: WARNING: /" >&2 | |
36262 | ;; | |
36263 | esac | |
36264 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36266 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36268 | else | |
ac1cb8d3 | 36269 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36270 | fi |
36271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36273 | ||
36274 | fi | |
36275 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36276 | cat >>confdefs.h <<_ACEOF | |
36277 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36278 | _ACEOF | |
36279 | ||
36280 | fi | |
36281 | ||
36282 | done | |
36283 | ||
36284 | if test "$ac_cv_header_sched_h" = "yes"; then | |
36285 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
36286 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
36287 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
36288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36289 | else | |
36290 | cat >conftest.$ac_ext <<_ACEOF | |
36291 | /* confdefs.h. */ | |
36292 | _ACEOF | |
36293 | cat confdefs.h >>conftest.$ac_ext | |
36294 | cat >>conftest.$ac_ext <<_ACEOF | |
36295 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36296 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
36297 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36298 | #define sched_yield innocuous_sched_yield | |
36299 | ||
a848cd7e SC |
36300 | /* System header to define __stub macros and hopefully few prototypes, |
36301 | which can conflict with char sched_yield (); below. | |
36302 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36303 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36304 | |
a848cd7e SC |
36305 | #ifdef __STDC__ |
36306 | # include <limits.h> | |
36307 | #else | |
36308 | # include <assert.h> | |
36309 | #endif | |
ac1cb8d3 VS |
36310 | |
36311 | #undef sched_yield | |
36312 | ||
a848cd7e SC |
36313 | /* Override any gcc2 internal prototype to avoid an error. */ |
36314 | #ifdef __cplusplus | |
36315 | extern "C" | |
36316 | { | |
36317 | #endif | |
36318 | /* We use char because int might match the return type of a gcc2 | |
36319 | builtin and then its argument prototype would still apply. */ | |
36320 | char sched_yield (); | |
36321 | /* The GNU C library defines this for functions which it implements | |
36322 | to always fail with ENOSYS. Some functions are actually named | |
36323 | something starting with __ and the normal name is an alias. */ | |
36324 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
36325 | choke me | |
36326 | #else | |
36327 | char (*f) () = sched_yield; | |
36328 | #endif | |
36329 | #ifdef __cplusplus | |
36330 | } | |
36331 | #endif | |
36332 | ||
36333 | int | |
36334 | main () | |
36335 | { | |
36336 | return f != sched_yield; | |
36337 | ; | |
36338 | return 0; | |
36339 | } | |
36340 | _ACEOF | |
36341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36343 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36344 | ac_status=$? |
ac1cb8d3 VS |
36345 | grep -v '^ *+' conftest.er1 >conftest.err |
36346 | rm -f conftest.er1 | |
36347 | cat conftest.err >&5 | |
a848cd7e SC |
36348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36349 | (exit $ac_status); } && | |
6ebeb4c7 | 36350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36352 | (eval $ac_try) 2>&5 | |
36353 | ac_status=$? | |
36354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36355 | (exit $ac_status); }; } && | |
36356 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36358 | (eval $ac_try) 2>&5 | |
36359 | ac_status=$? | |
36360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36361 | (exit $ac_status); }; }; then | |
36362 | ac_cv_func_sched_yield=yes | |
36363 | else | |
36364 | echo "$as_me: failed program was:" >&5 | |
36365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36366 | ||
36367 | ac_cv_func_sched_yield=no | |
36368 | fi | |
ac1cb8d3 VS |
36369 | rm -f conftest.err conftest.$ac_objext \ |
36370 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36371 | fi |
36372 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
36373 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
36374 | if test $ac_cv_func_sched_yield = yes; then | |
36375 | cat >>confdefs.h <<\_ACEOF | |
36376 | #define HAVE_SCHED_YIELD 1 | |
36377 | _ACEOF | |
36378 | ||
36379 | else | |
36380 | ||
36381 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
36382 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
36383 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
36384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36385 | else | |
36386 | ac_check_lib_save_LIBS=$LIBS | |
36387 | LIBS="-lposix4 $LIBS" | |
36388 | cat >conftest.$ac_ext <<_ACEOF | |
36389 | /* confdefs.h. */ | |
36390 | _ACEOF | |
36391 | cat confdefs.h >>conftest.$ac_ext | |
36392 | cat >>conftest.$ac_ext <<_ACEOF | |
36393 | /* end confdefs.h. */ | |
36394 | ||
36395 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36396 | #ifdef __cplusplus | |
36397 | extern "C" | |
36398 | #endif | |
36399 | /* We use char because int might match the return type of a gcc2 | |
36400 | builtin and then its argument prototype would still apply. */ | |
36401 | char sched_yield (); | |
36402 | int | |
36403 | main () | |
36404 | { | |
36405 | sched_yield (); | |
36406 | ; | |
36407 | return 0; | |
36408 | } | |
36409 | _ACEOF | |
36410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36412 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36413 | ac_status=$? |
ac1cb8d3 VS |
36414 | grep -v '^ *+' conftest.er1 >conftest.err |
36415 | rm -f conftest.er1 | |
36416 | cat conftest.err >&5 | |
a848cd7e SC |
36417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36418 | (exit $ac_status); } && | |
6ebeb4c7 | 36419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36421 | (eval $ac_try) 2>&5 | |
36422 | ac_status=$? | |
36423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36424 | (exit $ac_status); }; } && | |
36425 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36427 | (eval $ac_try) 2>&5 | |
36428 | ac_status=$? | |
36429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36430 | (exit $ac_status); }; }; then | |
36431 | ac_cv_lib_posix4_sched_yield=yes | |
36432 | else | |
36433 | echo "$as_me: failed program was:" >&5 | |
36434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36435 | ||
36436 | ac_cv_lib_posix4_sched_yield=no | |
36437 | fi | |
ac1cb8d3 VS |
36438 | rm -f conftest.err conftest.$ac_objext \ |
36439 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36440 | LIBS=$ac_check_lib_save_LIBS |
36441 | fi | |
36442 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
36443 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
36444 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
36445 | cat >>confdefs.h <<\_ACEOF | |
36446 | #define HAVE_SCHED_YIELD 1 | |
36447 | _ACEOF | |
36448 | POSIX4_LINK=" -lposix4" | |
36449 | else | |
36450 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
36451 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
36452 | ||
36453 | fi | |
36454 | ||
36455 | ||
36456 | ||
36457 | fi | |
36458 | ||
36459 | fi | |
36460 | ||
36461 | HAVE_PRIOR_FUNCS=0 | |
36462 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
36463 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
36464 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
36465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36466 | else | |
36467 | cat >conftest.$ac_ext <<_ACEOF | |
36468 | /* confdefs.h. */ | |
36469 | _ACEOF | |
36470 | cat confdefs.h >>conftest.$ac_ext | |
36471 | cat >>conftest.$ac_ext <<_ACEOF | |
36472 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36473 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
36474 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36475 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
36476 | ||
a848cd7e SC |
36477 | /* System header to define __stub macros and hopefully few prototypes, |
36478 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
36479 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36480 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36481 | |
a848cd7e SC |
36482 | #ifdef __STDC__ |
36483 | # include <limits.h> | |
36484 | #else | |
36485 | # include <assert.h> | |
36486 | #endif | |
ac1cb8d3 VS |
36487 | |
36488 | #undef pthread_attr_getschedpolicy | |
36489 | ||
a848cd7e SC |
36490 | /* Override any gcc2 internal prototype to avoid an error. */ |
36491 | #ifdef __cplusplus | |
36492 | extern "C" | |
36493 | { | |
36494 | #endif | |
36495 | /* We use char because int might match the return type of a gcc2 | |
36496 | builtin and then its argument prototype would still apply. */ | |
36497 | char pthread_attr_getschedpolicy (); | |
36498 | /* The GNU C library defines this for functions which it implements | |
36499 | to always fail with ENOSYS. Some functions are actually named | |
36500 | something starting with __ and the normal name is an alias. */ | |
36501 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
36502 | choke me | |
36503 | #else | |
36504 | char (*f) () = pthread_attr_getschedpolicy; | |
36505 | #endif | |
36506 | #ifdef __cplusplus | |
36507 | } | |
36508 | #endif | |
36509 | ||
36510 | int | |
36511 | main () | |
36512 | { | |
36513 | return f != pthread_attr_getschedpolicy; | |
36514 | ; | |
36515 | return 0; | |
36516 | } | |
36517 | _ACEOF | |
36518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36520 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36521 | ac_status=$? |
ac1cb8d3 VS |
36522 | grep -v '^ *+' conftest.er1 >conftest.err |
36523 | rm -f conftest.er1 | |
36524 | cat conftest.err >&5 | |
a848cd7e SC |
36525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36526 | (exit $ac_status); } && | |
6ebeb4c7 | 36527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36529 | (eval $ac_try) 2>&5 | |
36530 | ac_status=$? | |
36531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36532 | (exit $ac_status); }; } && | |
36533 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36535 | (eval $ac_try) 2>&5 | |
36536 | ac_status=$? | |
36537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36538 | (exit $ac_status); }; }; then | |
36539 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
36540 | else | |
36541 | echo "$as_me: failed program was:" >&5 | |
36542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36543 | ||
36544 | ac_cv_func_pthread_attr_getschedpolicy=no | |
36545 | fi | |
ac1cb8d3 VS |
36546 | rm -f conftest.err conftest.$ac_objext \ |
36547 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36548 | fi |
36549 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
36550 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
36551 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
36552 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
36553 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
36554 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
36555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36556 | else | |
36557 | cat >conftest.$ac_ext <<_ACEOF | |
36558 | /* confdefs.h. */ | |
36559 | _ACEOF | |
36560 | cat confdefs.h >>conftest.$ac_ext | |
36561 | cat >>conftest.$ac_ext <<_ACEOF | |
36562 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36563 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
36564 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36565 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
36566 | ||
a848cd7e SC |
36567 | /* System header to define __stub macros and hopefully few prototypes, |
36568 | which can conflict with char pthread_attr_setschedparam (); below. | |
36569 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36570 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36571 | |
a848cd7e SC |
36572 | #ifdef __STDC__ |
36573 | # include <limits.h> | |
36574 | #else | |
36575 | # include <assert.h> | |
36576 | #endif | |
ac1cb8d3 VS |
36577 | |
36578 | #undef pthread_attr_setschedparam | |
36579 | ||
a848cd7e SC |
36580 | /* Override any gcc2 internal prototype to avoid an error. */ |
36581 | #ifdef __cplusplus | |
36582 | extern "C" | |
36583 | { | |
36584 | #endif | |
36585 | /* We use char because int might match the return type of a gcc2 | |
36586 | builtin and then its argument prototype would still apply. */ | |
36587 | char pthread_attr_setschedparam (); | |
36588 | /* The GNU C library defines this for functions which it implements | |
36589 | to always fail with ENOSYS. Some functions are actually named | |
36590 | something starting with __ and the normal name is an alias. */ | |
36591 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
36592 | choke me | |
36593 | #else | |
36594 | char (*f) () = pthread_attr_setschedparam; | |
36595 | #endif | |
36596 | #ifdef __cplusplus | |
36597 | } | |
36598 | #endif | |
36599 | ||
36600 | int | |
36601 | main () | |
36602 | { | |
36603 | return f != pthread_attr_setschedparam; | |
36604 | ; | |
36605 | return 0; | |
36606 | } | |
36607 | _ACEOF | |
36608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36610 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36611 | ac_status=$? |
ac1cb8d3 VS |
36612 | grep -v '^ *+' conftest.er1 >conftest.err |
36613 | rm -f conftest.er1 | |
36614 | cat conftest.err >&5 | |
a848cd7e SC |
36615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36616 | (exit $ac_status); } && | |
6ebeb4c7 | 36617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36619 | (eval $ac_try) 2>&5 | |
36620 | ac_status=$? | |
36621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36622 | (exit $ac_status); }; } && | |
36623 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36625 | (eval $ac_try) 2>&5 | |
36626 | ac_status=$? | |
36627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36628 | (exit $ac_status); }; }; then | |
36629 | ac_cv_func_pthread_attr_setschedparam=yes | |
36630 | else | |
36631 | echo "$as_me: failed program was:" >&5 | |
36632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36633 | ||
36634 | ac_cv_func_pthread_attr_setschedparam=no | |
36635 | fi | |
ac1cb8d3 VS |
36636 | rm -f conftest.err conftest.$ac_objext \ |
36637 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36638 | fi |
36639 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
36640 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
36641 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
36642 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
36643 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
36644 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
36645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36646 | else | |
36647 | cat >conftest.$ac_ext <<_ACEOF | |
36648 | /* confdefs.h. */ | |
36649 | _ACEOF | |
36650 | cat confdefs.h >>conftest.$ac_ext | |
36651 | cat >>conftest.$ac_ext <<_ACEOF | |
36652 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36653 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
36654 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36655 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
36656 | ||
a848cd7e SC |
36657 | /* System header to define __stub macros and hopefully few prototypes, |
36658 | which can conflict with char sched_get_priority_max (); below. | |
36659 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36660 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36661 | |
a848cd7e SC |
36662 | #ifdef __STDC__ |
36663 | # include <limits.h> | |
36664 | #else | |
36665 | # include <assert.h> | |
36666 | #endif | |
ac1cb8d3 VS |
36667 | |
36668 | #undef sched_get_priority_max | |
36669 | ||
a848cd7e SC |
36670 | /* Override any gcc2 internal prototype to avoid an error. */ |
36671 | #ifdef __cplusplus | |
36672 | extern "C" | |
36673 | { | |
36674 | #endif | |
36675 | /* We use char because int might match the return type of a gcc2 | |
36676 | builtin and then its argument prototype would still apply. */ | |
36677 | char sched_get_priority_max (); | |
36678 | /* The GNU C library defines this for functions which it implements | |
36679 | to always fail with ENOSYS. Some functions are actually named | |
36680 | something starting with __ and the normal name is an alias. */ | |
36681 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
36682 | choke me | |
36683 | #else | |
36684 | char (*f) () = sched_get_priority_max; | |
36685 | #endif | |
36686 | #ifdef __cplusplus | |
36687 | } | |
36688 | #endif | |
36689 | ||
36690 | int | |
36691 | main () | |
36692 | { | |
36693 | return f != sched_get_priority_max; | |
36694 | ; | |
36695 | return 0; | |
36696 | } | |
36697 | _ACEOF | |
36698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36700 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36701 | ac_status=$? |
ac1cb8d3 VS |
36702 | grep -v '^ *+' conftest.er1 >conftest.err |
36703 | rm -f conftest.er1 | |
36704 | cat conftest.err >&5 | |
a848cd7e SC |
36705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36706 | (exit $ac_status); } && | |
6ebeb4c7 | 36707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36709 | (eval $ac_try) 2>&5 | |
36710 | ac_status=$? | |
36711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36712 | (exit $ac_status); }; } && | |
36713 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36715 | (eval $ac_try) 2>&5 | |
36716 | ac_status=$? | |
36717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36718 | (exit $ac_status); }; }; then | |
36719 | ac_cv_func_sched_get_priority_max=yes | |
36720 | else | |
36721 | echo "$as_me: failed program was:" >&5 | |
36722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36723 | ||
36724 | ac_cv_func_sched_get_priority_max=no | |
36725 | fi | |
ac1cb8d3 VS |
36726 | rm -f conftest.err conftest.$ac_objext \ |
36727 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36728 | fi |
36729 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
36730 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
36731 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
36732 | HAVE_PRIOR_FUNCS=1 | |
36733 | else | |
36734 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
36735 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
36736 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
36737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36738 | else | |
36739 | ac_check_lib_save_LIBS=$LIBS | |
36740 | LIBS="-lposix4 $LIBS" | |
36741 | cat >conftest.$ac_ext <<_ACEOF | |
36742 | /* confdefs.h. */ | |
36743 | _ACEOF | |
36744 | cat confdefs.h >>conftest.$ac_ext | |
36745 | cat >>conftest.$ac_ext <<_ACEOF | |
36746 | /* end confdefs.h. */ | |
36747 | ||
36748 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36749 | #ifdef __cplusplus | |
36750 | extern "C" | |
36751 | #endif | |
36752 | /* We use char because int might match the return type of a gcc2 | |
36753 | builtin and then its argument prototype would still apply. */ | |
36754 | char sched_get_priority_max (); | |
36755 | int | |
36756 | main () | |
36757 | { | |
36758 | sched_get_priority_max (); | |
36759 | ; | |
36760 | return 0; | |
36761 | } | |
36762 | _ACEOF | |
36763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36765 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36766 | ac_status=$? |
ac1cb8d3 VS |
36767 | grep -v '^ *+' conftest.er1 >conftest.err |
36768 | rm -f conftest.er1 | |
36769 | cat conftest.err >&5 | |
a848cd7e SC |
36770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36771 | (exit $ac_status); } && | |
6ebeb4c7 | 36772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36774 | (eval $ac_try) 2>&5 | |
36775 | ac_status=$? | |
36776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36777 | (exit $ac_status); }; } && | |
36778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36780 | (eval $ac_try) 2>&5 | |
36781 | ac_status=$? | |
36782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36783 | (exit $ac_status); }; }; then | |
36784 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
36785 | else | |
36786 | echo "$as_me: failed program was:" >&5 | |
36787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36788 | ||
36789 | ac_cv_lib_posix4_sched_get_priority_max=no | |
36790 | fi | |
ac1cb8d3 VS |
36791 | rm -f conftest.err conftest.$ac_objext \ |
36792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36793 | LIBS=$ac_check_lib_save_LIBS |
36794 | fi | |
36795 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
36796 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
36797 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
36798 | ||
36799 | HAVE_PRIOR_FUNCS=1 | |
36800 | POSIX4_LINK=" -lposix4" | |
36801 | ||
36802 | fi | |
36803 | ||
36804 | ||
36805 | fi | |
36806 | ||
36807 | ||
36808 | fi | |
36809 | ||
36810 | ||
36811 | fi | |
36812 | ||
36813 | ||
36814 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
36815 | cat >>confdefs.h <<\_ACEOF | |
36816 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
36817 | _ACEOF | |
36818 | ||
36819 | else | |
36820 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
36821 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
36822 | fi | |
36823 | ||
36824 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
36825 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
36826 | if test "${ac_cv_func_pthread_cancel+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 pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
36836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36837 | #define pthread_cancel innocuous_pthread_cancel | |
36838 | ||
a848cd7e SC |
36839 | /* System header to define __stub macros and hopefully few prototypes, |
36840 | which can conflict with char pthread_cancel (); 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 pthread_cancel | |
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 pthread_cancel (); | |
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_pthread_cancel) || defined (__stub___pthread_cancel) | |
36864 | choke me | |
36865 | #else | |
36866 | char (*f) () = pthread_cancel; | |
36867 | #endif | |
36868 | #ifdef __cplusplus | |
36869 | } | |
36870 | #endif | |
36871 | ||
36872 | int | |
36873 | main () | |
36874 | { | |
36875 | return f != pthread_cancel; | |
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); } && | |
6ebeb4c7 | 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 | ac_cv_func_pthread_cancel=yes | |
36902 | else | |
36903 | echo "$as_me: failed program was:" >&5 | |
36904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36905 | ||
36906 | ac_cv_func_pthread_cancel=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: $ac_cv_func_pthread_cancel" >&5 | |
36912 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
36913 | if test $ac_cv_func_pthread_cancel = yes; then | |
36914 | cat >>confdefs.h <<\_ACEOF | |
36915 | #define HAVE_PTHREAD_CANCEL 1 | |
36916 | _ACEOF | |
36917 | ||
36918 | else | |
36919 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
36920 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
36921 | fi | |
36922 | ||
36923 | ||
abc736fd MW |
36924 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
36925 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
36926 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
36927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36928 | else | |
36929 | cat >conftest.$ac_ext <<_ACEOF | |
36930 | /* confdefs.h. */ | |
36931 | _ACEOF | |
36932 | cat confdefs.h >>conftest.$ac_ext | |
36933 | cat >>conftest.$ac_ext <<_ACEOF | |
36934 | /* end confdefs.h. */ | |
36935 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
36936 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36937 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
36938 | ||
36939 | /* System header to define __stub macros and hopefully few prototypes, | |
36940 | which can conflict with char pthread_attr_setstacksize (); below. | |
36941 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36942 | <limits.h> exists even on freestanding compilers. */ | |
36943 | ||
36944 | #ifdef __STDC__ | |
36945 | # include <limits.h> | |
36946 | #else | |
36947 | # include <assert.h> | |
36948 | #endif | |
36949 | ||
36950 | #undef pthread_attr_setstacksize | |
36951 | ||
36952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36953 | #ifdef __cplusplus | |
36954 | extern "C" | |
36955 | { | |
36956 | #endif | |
36957 | /* We use char because int might match the return type of a gcc2 | |
36958 | builtin and then its argument prototype would still apply. */ | |
36959 | char pthread_attr_setstacksize (); | |
36960 | /* The GNU C library defines this for functions which it implements | |
36961 | to always fail with ENOSYS. Some functions are actually named | |
36962 | something starting with __ and the normal name is an alias. */ | |
36963 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
36964 | choke me | |
36965 | #else | |
36966 | char (*f) () = pthread_attr_setstacksize; | |
36967 | #endif | |
36968 | #ifdef __cplusplus | |
36969 | } | |
36970 | #endif | |
36971 | ||
36972 | int | |
36973 | main () | |
36974 | { | |
36975 | return f != pthread_attr_setstacksize; | |
36976 | ; | |
36977 | return 0; | |
36978 | } | |
36979 | _ACEOF | |
36980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36982 | (eval $ac_link) 2>conftest.er1 | |
36983 | ac_status=$? | |
36984 | grep -v '^ *+' conftest.er1 >conftest.err | |
36985 | rm -f conftest.er1 | |
36986 | cat conftest.err >&5 | |
36987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36988 | (exit $ac_status); } && | |
6ebeb4c7 | 36989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
36990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36991 | (eval $ac_try) 2>&5 | |
36992 | ac_status=$? | |
36993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36994 | (exit $ac_status); }; } && | |
36995 | { ac_try='test -s conftest$ac_exeext' | |
36996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36997 | (eval $ac_try) 2>&5 | |
36998 | ac_status=$? | |
36999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37000 | (exit $ac_status); }; }; then | |
37001 | ac_cv_func_pthread_attr_setstacksize=yes | |
37002 | else | |
37003 | echo "$as_me: failed program was:" >&5 | |
37004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37005 | ||
37006 | ac_cv_func_pthread_attr_setstacksize=no | |
37007 | fi | |
37008 | rm -f conftest.err conftest.$ac_objext \ | |
37009 | conftest$ac_exeext conftest.$ac_ext | |
37010 | fi | |
37011 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
37012 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
37013 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
37014 | cat >>confdefs.h <<\_ACEOF | |
37015 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
37016 | _ACEOF | |
37017 | ||
37018 | fi | |
37019 | ||
a848cd7e SC |
37020 | |
37021 | ||
37022 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
37023 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
37024 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
37025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37026 | else | |
37027 | ||
37028 | cat >conftest.$ac_ext <<_ACEOF | |
37029 | /* confdefs.h. */ | |
37030 | _ACEOF | |
37031 | cat confdefs.h >>conftest.$ac_ext | |
37032 | cat >>conftest.$ac_ext <<_ACEOF | |
37033 | /* end confdefs.h. */ | |
37034 | #include <pthread.h> | |
37035 | int | |
37036 | main () | |
37037 | { | |
37038 | ||
37039 | pthread_mutexattr_t attr; | |
37040 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
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); } && | |
6ebeb4c7 | 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_type_pthread_mutexattr_t=yes | |
37069 | ||
37070 | else | |
37071 | echo "$as_me: failed program was:" >&5 | |
37072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37073 | ||
37074 | ||
37075 | wx_cv_type_pthread_mutexattr_t=no | |
37076 | ||
37077 | ||
37078 | fi | |
ac1cb8d3 | 37079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37080 | |
37081 | fi | |
37082 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
37083 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
37084 | ||
37085 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
37086 | cat >>confdefs.h <<\_ACEOF | |
37087 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
37088 | _ACEOF | |
37089 | ||
37090 | else | |
37091 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
37092 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
37093 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
37094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37095 | else | |
37096 | ||
37097 | cat >conftest.$ac_ext <<_ACEOF | |
37098 | /* confdefs.h. */ | |
37099 | _ACEOF | |
37100 | cat confdefs.h >>conftest.$ac_ext | |
37101 | cat >>conftest.$ac_ext <<_ACEOF | |
37102 | /* end confdefs.h. */ | |
37103 | #include <pthread.h> | |
37104 | int | |
37105 | main () | |
37106 | { | |
37107 | ||
37108 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
37109 | ||
37110 | ; | |
37111 | return 0; | |
37112 | } | |
37113 | _ACEOF | |
37114 | rm -f conftest.$ac_objext | |
37115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37116 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37117 | ac_status=$? |
ac1cb8d3 VS |
37118 | grep -v '^ *+' conftest.er1 >conftest.err |
37119 | rm -f conftest.er1 | |
37120 | cat conftest.err >&5 | |
a848cd7e SC |
37121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37122 | (exit $ac_status); } && | |
6ebeb4c7 | 37123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37125 | (eval $ac_try) 2>&5 | |
37126 | ac_status=$? | |
37127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37128 | (exit $ac_status); }; } && | |
37129 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37131 | (eval $ac_try) 2>&5 | |
37132 | ac_status=$? | |
37133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37134 | (exit $ac_status); }; }; then | |
37135 | ||
37136 | wx_cv_type_pthread_rec_mutex_init=yes | |
37137 | ||
37138 | else | |
37139 | echo "$as_me: failed program was:" >&5 | |
37140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37141 | ||
37142 | ||
37143 | wx_cv_type_pthread_rec_mutex_init=no | |
37144 | ||
37145 | ||
37146 | fi | |
ac1cb8d3 | 37147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37148 | |
37149 | fi | |
37150 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
37151 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
37152 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
37153 | cat >>confdefs.h <<\_ACEOF | |
37154 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
37155 | _ACEOF | |
37156 | ||
37157 | else | |
37158 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
37159 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
37160 | fi | |
37161 | fi | |
37162 | fi | |
37163 | ||
37164 | else | |
37165 | if test "$wxUSE_THREADS" = "yes" ; then | |
37166 | case "${host}" in | |
37167 | *-*-mingw32* ) | |
37168 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
37169 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
37170 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
37171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37172 | else | |
37173 | ||
37174 | CFLAGS_OLD="$CFLAGS" | |
37175 | CFLAGS="$CFLAGS -mthreads" | |
37176 | cat >conftest.$ac_ext <<_ACEOF | |
37177 | /* confdefs.h. */ | |
37178 | _ACEOF | |
37179 | cat confdefs.h >>conftest.$ac_ext | |
37180 | cat >>conftest.$ac_ext <<_ACEOF | |
37181 | /* end confdefs.h. */ | |
37182 | ||
37183 | int | |
37184 | main () | |
37185 | { | |
37186 | ||
37187 | ; | |
37188 | return 0; | |
37189 | } | |
37190 | _ACEOF | |
37191 | rm -f conftest.$ac_objext | |
37192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37193 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37194 | ac_status=$? |
ac1cb8d3 VS |
37195 | grep -v '^ *+' conftest.er1 >conftest.err |
37196 | rm -f conftest.er1 | |
37197 | cat conftest.err >&5 | |
a848cd7e SC |
37198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37199 | (exit $ac_status); } && | |
6ebeb4c7 | 37200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37202 | (eval $ac_try) 2>&5 | |
37203 | ac_status=$? | |
37204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37205 | (exit $ac_status); }; } && | |
37206 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37208 | (eval $ac_try) 2>&5 | |
37209 | ac_status=$? | |
37210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37211 | (exit $ac_status); }; }; then | |
37212 | wx_cv_cflags_mthread=yes | |
37213 | else | |
37214 | echo "$as_me: failed program was:" >&5 | |
37215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37216 | ||
37217 | wx_cv_cflags_mthread=no | |
37218 | ||
37219 | fi | |
ac1cb8d3 | 37220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37221 | |
37222 | ||
37223 | fi | |
37224 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
37225 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
37226 | ||
37227 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
37228 | CXXFLAGS="$CXXFLAGS -mthreads" | |
37229 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
37230 | LDFLAGS="$LDFLAGS -mthreads" | |
37231 | else | |
37232 | CFLAGS="$CFLAGS_OLD" | |
37233 | fi | |
37234 | ;; | |
37235 | *-pc-os2*emx ) | |
37236 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37237 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37238 | LDFLAGS="$LDFLAGS -Zmt" | |
37239 | ;; | |
37240 | esac | |
37241 | fi | |
37242 | fi | |
37243 | ||
37244 | if test "$wxUSE_THREADS" = "yes"; then | |
37245 | cat >>confdefs.h <<\_ACEOF | |
37246 | #define wxUSE_THREADS 1 | |
37247 | _ACEOF | |
37248 | ||
37249 | ||
37250 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
37251 | else | |
37252 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
37253 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
37254 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
37255 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
37256 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
37257 | echo "$as_me:$LINENO: result: yes" >&5 | |
37258 | echo "${ECHO_T}yes" >&6 | |
37259 | else | |
37260 | echo "$as_me:$LINENO: result: no" >&5 | |
37261 | echo "${ECHO_T}no" >&6 | |
37262 | fi | |
37263 | fi | |
37264 | fi | |
37265 | ||
37266 | if test "$WXGTK20" = 1 ; then | |
37267 | cat >>confdefs.h <<_ACEOF | |
37268 | #define __WXGTK20__ $WXGTK20 | |
37269 | _ACEOF | |
37270 | ||
37271 | WXGTK12=1 | |
37272 | fi | |
37273 | ||
37274 | if test "$WXGTK12" = 1 ; then | |
37275 | cat >>confdefs.h <<_ACEOF | |
37276 | #define __WXGTK12__ $WXGTK12 | |
37277 | _ACEOF | |
37278 | ||
37279 | fi | |
37280 | ||
37281 | if test "$WXGTK127" = 1 ; then | |
37282 | cat >>confdefs.h <<_ACEOF | |
37283 | #define __WXGTK127__ $WXGTK127 | |
37284 | _ACEOF | |
37285 | ||
37286 | fi | |
37287 | ||
37288 | if test "$WXGPE" = 1 ; then | |
37289 | cat >>confdefs.h <<_ACEOF | |
37290 | #define __WXGPE__ $WXGPE | |
37291 | _ACEOF | |
37292 | ||
37293 | fi | |
37294 | ||
37295 | WXDEBUG= | |
37296 | ||
37297 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
37298 | WXDEBUG="-g" | |
37299 | wxUSE_OPTIMISE=no | |
37300 | fi | |
37301 | ||
37302 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
37303 | wxUSE_DEBUG_INFO=yes | |
18228ab4 MW |
37304 | if test "$GCC" = yes; then |
37305 | WXDEBUG="-ggdb" | |
37306 | fi | |
a848cd7e SC |
37307 | fi |
37308 | ||
37309 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
37310 | cat >>confdefs.h <<\_ACEOF | |
37311 | #define WXDEBUG 1 | |
37312 | _ACEOF | |
37313 | ||
37314 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
37315 | else | |
37316 | if test "$wxUSE_GTK" = 1 ; then | |
37317 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
37318 | fi | |
37319 | fi | |
37320 | ||
37321 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
37322 | cat >>confdefs.h <<\_ACEOF | |
37323 | #define wxUSE_MEMORY_TRACING 1 | |
37324 | _ACEOF | |
37325 | ||
37326 | cat >>confdefs.h <<\_ACEOF | |
37327 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
37328 | _ACEOF | |
37329 | ||
37330 | cat >>confdefs.h <<\_ACEOF | |
37331 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
37332 | _ACEOF | |
37333 | ||
37334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
37335 | fi | |
37336 | ||
37337 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
df1b269d | 37338 | DMALLOC_LIBS="-ldmallocthcxx" |
a848cd7e SC |
37339 | fi |
37340 | ||
37341 | PROFILE= | |
37342 | if test "$wxUSE_PROFILE" = "yes" ; then | |
37343 | PROFILE=" -pg" | |
37344 | fi | |
37345 | ||
37346 | CODE_GEN_FLAGS= | |
37347 | CODE_GEN_FLAGS_CXX= | |
37348 | if test "$GCC" = "yes" ; then | |
37349 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
37350 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
37351 | fi | |
37352 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
37353 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
37354 | fi | |
37355 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
37356 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
37357 | fi | |
37358 | ||
37359 | case "${host}" in | |
37360 | powerpc*-*-aix* ) | |
37361 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
37362 | ;; | |
37363 | *-hppa* ) | |
37364 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
37365 | ;; | |
37366 | esac | |
37367 | fi | |
37368 | ||
37369 | OPTIMISE= | |
37370 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
37371 | if test "$GCC" = yes ; then | |
37372 | OPTIMISE="-O0" | |
37373 | fi | |
37374 | else | |
37375 | if test "$GCC" = yes ; then | |
37376 | OPTIMISE="-O2" | |
37377 | ||
37378 | case "${host}" in | |
37379 | i586-*-*|i686-*-* ) | |
37380 | OPTIMISE="${OPTIMISE} " | |
37381 | ;; | |
37382 | esac | |
37383 | else | |
37384 | OPTIMISE="-O" | |
37385 | fi | |
37386 | fi | |
37387 | ||
37388 | ||
37389 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
37390 | cat >>confdefs.h <<\_ACEOF | |
37391 | #define WXWIN_COMPATIBILITY_2_2 1 | |
37392 | _ACEOF | |
37393 | ||
37394 | ||
37395 | WXWIN_COMPATIBILITY_2_4="yes" | |
37396 | fi | |
37397 | ||
37398 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
37399 | cat >>confdefs.h <<\_ACEOF | |
37400 | #define WXWIN_COMPATIBILITY_2_4 1 | |
37401 | _ACEOF | |
37402 | ||
37403 | fi | |
37404 | ||
37405 | ||
37406 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 37407 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
37408 | #define wxUSE_GUI 1 |
37409 | _ACEOF | |
37410 | ||
37411 | ||
370fd4c2 | 37412 | fi |
a848cd7e SC |
37413 | |
37414 | ||
37415 | if test "$wxUSE_UNIX" = "yes"; then | |
37416 | cat >>confdefs.h <<\_ACEOF | |
37417 | #define wxUSE_UNIX 1 | |
37418 | _ACEOF | |
37419 | ||
37420 | fi | |
37421 | ||
37422 | ||
37423 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
37424 | ||
37425 | HAVE_DL_FUNCS=0 | |
37426 | HAVE_SHL_FUNCS=0 | |
37427 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
37428 | if test "$USE_DARWIN" = 1; then | |
37429 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
37430 | elif test "$USE_DOS" = 1; then |
37431 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
37432 | else |
37433 | ||
37434 | for ac_func in dlopen | |
37435 | do | |
37436 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37437 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37438 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37439 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37441 | else | |
37442 | cat >conftest.$ac_ext <<_ACEOF | |
37443 | /* confdefs.h. */ | |
37444 | _ACEOF | |
37445 | cat confdefs.h >>conftest.$ac_ext | |
37446 | cat >>conftest.$ac_ext <<_ACEOF | |
37447 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37448 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37450 | #define $ac_func innocuous_$ac_func | |
37451 | ||
a848cd7e SC |
37452 | /* System header to define __stub macros and hopefully few prototypes, |
37453 | which can conflict with char $ac_func (); below. | |
37454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37455 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37456 | |
a848cd7e SC |
37457 | #ifdef __STDC__ |
37458 | # include <limits.h> | |
37459 | #else | |
37460 | # include <assert.h> | |
37461 | #endif | |
ac1cb8d3 VS |
37462 | |
37463 | #undef $ac_func | |
37464 | ||
a848cd7e SC |
37465 | /* Override any gcc2 internal prototype to avoid an error. */ |
37466 | #ifdef __cplusplus | |
37467 | extern "C" | |
37468 | { | |
37469 | #endif | |
37470 | /* We use char because int might match the return type of a gcc2 | |
37471 | builtin and then its argument prototype would still apply. */ | |
37472 | char $ac_func (); | |
37473 | /* The GNU C library defines this for functions which it implements | |
37474 | to always fail with ENOSYS. Some functions are actually named | |
37475 | something starting with __ and the normal name is an alias. */ | |
37476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37477 | choke me | |
37478 | #else | |
37479 | char (*f) () = $ac_func; | |
37480 | #endif | |
37481 | #ifdef __cplusplus | |
37482 | } | |
37483 | #endif | |
37484 | ||
37485 | int | |
37486 | main () | |
37487 | { | |
37488 | return f != $ac_func; | |
37489 | ; | |
37490 | return 0; | |
37491 | } | |
37492 | _ACEOF | |
37493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37495 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37496 | ac_status=$? |
ac1cb8d3 VS |
37497 | grep -v '^ *+' conftest.er1 >conftest.err |
37498 | rm -f conftest.er1 | |
37499 | cat conftest.err >&5 | |
a848cd7e SC |
37500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37501 | (exit $ac_status); } && | |
6ebeb4c7 | 37502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37504 | (eval $ac_try) 2>&5 | |
37505 | ac_status=$? | |
37506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37507 | (exit $ac_status); }; } && | |
37508 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37510 | (eval $ac_try) 2>&5 | |
37511 | ac_status=$? | |
37512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37513 | (exit $ac_status); }; }; then | |
37514 | eval "$as_ac_var=yes" | |
37515 | else | |
37516 | echo "$as_me: failed program was:" >&5 | |
37517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37518 | ||
37519 | eval "$as_ac_var=no" | |
37520 | fi | |
ac1cb8d3 VS |
37521 | rm -f conftest.err conftest.$ac_objext \ |
37522 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37523 | fi |
37524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37525 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37526 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37527 | cat >>confdefs.h <<_ACEOF | |
37528 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37529 | _ACEOF | |
37530 | ||
37531 | cat >>confdefs.h <<\_ACEOF | |
37532 | #define HAVE_DLOPEN 1 | |
37533 | _ACEOF | |
37534 | ||
37535 | HAVE_DL_FUNCS=1 | |
37536 | ||
37537 | else | |
37538 | ||
37539 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
37540 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
37541 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
37542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37543 | else | |
37544 | ac_check_lib_save_LIBS=$LIBS | |
37545 | LIBS="-ldl $LIBS" | |
37546 | cat >conftest.$ac_ext <<_ACEOF | |
37547 | /* confdefs.h. */ | |
37548 | _ACEOF | |
37549 | cat confdefs.h >>conftest.$ac_ext | |
37550 | cat >>conftest.$ac_ext <<_ACEOF | |
37551 | /* end confdefs.h. */ | |
37552 | ||
37553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37554 | #ifdef __cplusplus | |
37555 | extern "C" | |
37556 | #endif | |
37557 | /* We use char because int might match the return type of a gcc2 | |
37558 | builtin and then its argument prototype would still apply. */ | |
37559 | char dlopen (); | |
37560 | int | |
37561 | main () | |
37562 | { | |
37563 | dlopen (); | |
37564 | ; | |
37565 | return 0; | |
37566 | } | |
37567 | _ACEOF | |
37568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37570 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37571 | ac_status=$? |
ac1cb8d3 VS |
37572 | grep -v '^ *+' conftest.er1 >conftest.err |
37573 | rm -f conftest.er1 | |
37574 | cat conftest.err >&5 | |
a848cd7e SC |
37575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37576 | (exit $ac_status); } && | |
6ebeb4c7 | 37577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37579 | (eval $ac_try) 2>&5 | |
37580 | ac_status=$? | |
37581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37582 | (exit $ac_status); }; } && | |
37583 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37585 | (eval $ac_try) 2>&5 | |
37586 | ac_status=$? | |
37587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37588 | (exit $ac_status); }; }; then | |
37589 | ac_cv_lib_dl_dlopen=yes | |
37590 | else | |
37591 | echo "$as_me: failed program was:" >&5 | |
37592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37593 | ||
37594 | ac_cv_lib_dl_dlopen=no | |
37595 | fi | |
ac1cb8d3 VS |
37596 | rm -f conftest.err conftest.$ac_objext \ |
37597 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37598 | LIBS=$ac_check_lib_save_LIBS |
37599 | fi | |
37600 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
37601 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
37602 | if test $ac_cv_lib_dl_dlopen = yes; then | |
37603 | ||
37604 | cat >>confdefs.h <<\_ACEOF | |
37605 | #define HAVE_DLOPEN 1 | |
37606 | _ACEOF | |
37607 | ||
37608 | HAVE_DL_FUNCS=1 | |
37609 | DL_LINK=" -ldl$DL_LINK" | |
37610 | ||
37611 | else | |
37612 | ||
37613 | ||
37614 | for ac_func in shl_load | |
37615 | do | |
37616 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37617 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37618 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37619 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37621 | else | |
37622 | cat >conftest.$ac_ext <<_ACEOF | |
37623 | /* confdefs.h. */ | |
37624 | _ACEOF | |
37625 | cat confdefs.h >>conftest.$ac_ext | |
37626 | cat >>conftest.$ac_ext <<_ACEOF | |
37627 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37628 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37630 | #define $ac_func innocuous_$ac_func | |
37631 | ||
a848cd7e SC |
37632 | /* System header to define __stub macros and hopefully few prototypes, |
37633 | which can conflict with char $ac_func (); below. | |
37634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37635 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37636 | |
a848cd7e SC |
37637 | #ifdef __STDC__ |
37638 | # include <limits.h> | |
37639 | #else | |
37640 | # include <assert.h> | |
37641 | #endif | |
ac1cb8d3 VS |
37642 | |
37643 | #undef $ac_func | |
37644 | ||
a848cd7e SC |
37645 | /* Override any gcc2 internal prototype to avoid an error. */ |
37646 | #ifdef __cplusplus | |
37647 | extern "C" | |
37648 | { | |
37649 | #endif | |
37650 | /* We use char because int might match the return type of a gcc2 | |
37651 | builtin and then its argument prototype would still apply. */ | |
37652 | char $ac_func (); | |
37653 | /* The GNU C library defines this for functions which it implements | |
37654 | to always fail with ENOSYS. Some functions are actually named | |
37655 | something starting with __ and the normal name is an alias. */ | |
37656 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37657 | choke me | |
37658 | #else | |
37659 | char (*f) () = $ac_func; | |
37660 | #endif | |
37661 | #ifdef __cplusplus | |
37662 | } | |
37663 | #endif | |
37664 | ||
37665 | int | |
37666 | main () | |
37667 | { | |
37668 | return f != $ac_func; | |
37669 | ; | |
37670 | return 0; | |
37671 | } | |
37672 | _ACEOF | |
37673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37675 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37676 | ac_status=$? |
ac1cb8d3 VS |
37677 | grep -v '^ *+' conftest.er1 >conftest.err |
37678 | rm -f conftest.er1 | |
37679 | cat conftest.err >&5 | |
a848cd7e SC |
37680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37681 | (exit $ac_status); } && | |
6ebeb4c7 | 37682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37684 | (eval $ac_try) 2>&5 | |
37685 | ac_status=$? | |
37686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37687 | (exit $ac_status); }; } && | |
37688 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37690 | (eval $ac_try) 2>&5 | |
37691 | ac_status=$? | |
37692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37693 | (exit $ac_status); }; }; then | |
37694 | eval "$as_ac_var=yes" | |
37695 | else | |
37696 | echo "$as_me: failed program was:" >&5 | |
37697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37698 | ||
37699 | eval "$as_ac_var=no" | |
37700 | fi | |
ac1cb8d3 VS |
37701 | rm -f conftest.err conftest.$ac_objext \ |
37702 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37703 | fi |
37704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37705 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37706 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37707 | cat >>confdefs.h <<_ACEOF | |
37708 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37709 | _ACEOF | |
37710 | ||
37711 | cat >>confdefs.h <<\_ACEOF | |
37712 | #define HAVE_SHL_LOAD 1 | |
37713 | _ACEOF | |
37714 | ||
37715 | HAVE_SHL_FUNCS=1 | |
37716 | ||
37717 | else | |
37718 | ||
37719 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
37720 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
37721 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
37722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37723 | else | |
37724 | ac_check_lib_save_LIBS=$LIBS | |
37725 | LIBS="-lshl_load $LIBS" | |
37726 | cat >conftest.$ac_ext <<_ACEOF | |
37727 | /* confdefs.h. */ | |
37728 | _ACEOF | |
37729 | cat confdefs.h >>conftest.$ac_ext | |
37730 | cat >>conftest.$ac_ext <<_ACEOF | |
37731 | /* end confdefs.h. */ | |
37732 | ||
37733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37734 | #ifdef __cplusplus | |
37735 | extern "C" | |
37736 | #endif | |
37737 | /* We use char because int might match the return type of a gcc2 | |
37738 | builtin and then its argument prototype would still apply. */ | |
37739 | char dld (); | |
37740 | int | |
37741 | main () | |
37742 | { | |
37743 | dld (); | |
37744 | ; | |
37745 | return 0; | |
37746 | } | |
37747 | _ACEOF | |
37748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37750 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37751 | ac_status=$? |
ac1cb8d3 VS |
37752 | grep -v '^ *+' conftest.er1 >conftest.err |
37753 | rm -f conftest.er1 | |
37754 | cat conftest.err >&5 | |
a848cd7e SC |
37755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37756 | (exit $ac_status); } && | |
6ebeb4c7 | 37757 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37759 | (eval $ac_try) 2>&5 | |
37760 | ac_status=$? | |
37761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37762 | (exit $ac_status); }; } && | |
37763 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37765 | (eval $ac_try) 2>&5 | |
37766 | ac_status=$? | |
37767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37768 | (exit $ac_status); }; }; then | |
37769 | ac_cv_lib_shl_load_dld=yes | |
37770 | else | |
37771 | echo "$as_me: failed program was:" >&5 | |
37772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37773 | ||
37774 | ac_cv_lib_shl_load_dld=no | |
37775 | fi | |
ac1cb8d3 VS |
37776 | rm -f conftest.err conftest.$ac_objext \ |
37777 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37778 | LIBS=$ac_check_lib_save_LIBS |
37779 | fi | |
37780 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
37781 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
37782 | if test $ac_cv_lib_shl_load_dld = yes; then | |
37783 | ||
37784 | HAVE_SHL_FUNCS=1 | |
37785 | DL_LINK=" -ldld$DL_LINK" | |
37786 | ||
37787 | fi | |
37788 | ||
37789 | ||
37790 | fi | |
37791 | done | |
37792 | ||
37793 | ||
37794 | fi | |
37795 | ||
37796 | ||
37797 | fi | |
37798 | done | |
37799 | ||
37800 | ||
37801 | if test "$HAVE_DL_FUNCS" = 1; then | |
37802 | ||
37803 | for ac_func in dlerror | |
37804 | do | |
37805 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37806 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37807 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37808 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37810 | else | |
37811 | cat >conftest.$ac_ext <<_ACEOF | |
37812 | /* confdefs.h. */ | |
37813 | _ACEOF | |
37814 | cat confdefs.h >>conftest.$ac_ext | |
37815 | cat >>conftest.$ac_ext <<_ACEOF | |
37816 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37817 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37818 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37819 | #define $ac_func innocuous_$ac_func | |
37820 | ||
a848cd7e SC |
37821 | /* System header to define __stub macros and hopefully few prototypes, |
37822 | which can conflict with char $ac_func (); below. | |
37823 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37824 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37825 | |
a848cd7e SC |
37826 | #ifdef __STDC__ |
37827 | # include <limits.h> | |
37828 | #else | |
37829 | # include <assert.h> | |
37830 | #endif | |
ac1cb8d3 VS |
37831 | |
37832 | #undef $ac_func | |
37833 | ||
a848cd7e SC |
37834 | /* Override any gcc2 internal prototype to avoid an error. */ |
37835 | #ifdef __cplusplus | |
37836 | extern "C" | |
37837 | { | |
37838 | #endif | |
37839 | /* We use char because int might match the return type of a gcc2 | |
37840 | builtin and then its argument prototype would still apply. */ | |
37841 | char $ac_func (); | |
37842 | /* The GNU C library defines this for functions which it implements | |
37843 | to always fail with ENOSYS. Some functions are actually named | |
37844 | something starting with __ and the normal name is an alias. */ | |
37845 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37846 | choke me | |
37847 | #else | |
37848 | char (*f) () = $ac_func; | |
37849 | #endif | |
37850 | #ifdef __cplusplus | |
37851 | } | |
37852 | #endif | |
37853 | ||
37854 | int | |
37855 | main () | |
37856 | { | |
37857 | return f != $ac_func; | |
37858 | ; | |
37859 | return 0; | |
37860 | } | |
37861 | _ACEOF | |
37862 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37864 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37865 | ac_status=$? |
ac1cb8d3 VS |
37866 | grep -v '^ *+' conftest.er1 >conftest.err |
37867 | rm -f conftest.er1 | |
37868 | cat conftest.err >&5 | |
a848cd7e SC |
37869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37870 | (exit $ac_status); } && | |
6ebeb4c7 | 37871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37873 | (eval $ac_try) 2>&5 | |
37874 | ac_status=$? | |
37875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37876 | (exit $ac_status); }; } && | |
37877 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37879 | (eval $ac_try) 2>&5 | |
37880 | ac_status=$? | |
37881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37882 | (exit $ac_status); }; }; then | |
37883 | eval "$as_ac_var=yes" | |
37884 | else | |
37885 | echo "$as_me: failed program was:" >&5 | |
37886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37887 | ||
37888 | eval "$as_ac_var=no" | |
37889 | fi | |
ac1cb8d3 VS |
37890 | rm -f conftest.err conftest.$ac_objext \ |
37891 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37892 | fi |
37893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37895 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37896 | cat >>confdefs.h <<_ACEOF | |
37897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37898 | _ACEOF | |
37899 | cat >>confdefs.h <<\_ACEOF | |
37900 | #define HAVE_DLERROR 1 | |
37901 | _ACEOF | |
37902 | ||
37903 | else | |
37904 | ||
37905 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
37906 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
37907 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
37908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37909 | else | |
37910 | ac_check_lib_save_LIBS=$LIBS | |
37911 | LIBS="-ldl $LIBS" | |
37912 | cat >conftest.$ac_ext <<_ACEOF | |
37913 | /* confdefs.h. */ | |
37914 | _ACEOF | |
37915 | cat confdefs.h >>conftest.$ac_ext | |
37916 | cat >>conftest.$ac_ext <<_ACEOF | |
37917 | /* end confdefs.h. */ | |
37918 | ||
37919 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37920 | #ifdef __cplusplus | |
37921 | extern "C" | |
37922 | #endif | |
37923 | /* We use char because int might match the return type of a gcc2 | |
37924 | builtin and then its argument prototype would still apply. */ | |
37925 | char dlerror (); | |
37926 | int | |
37927 | main () | |
37928 | { | |
37929 | dlerror (); | |
37930 | ; | |
37931 | return 0; | |
37932 | } | |
37933 | _ACEOF | |
37934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37936 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37937 | ac_status=$? |
ac1cb8d3 VS |
37938 | grep -v '^ *+' conftest.er1 >conftest.err |
37939 | rm -f conftest.er1 | |
37940 | cat conftest.err >&5 | |
a848cd7e SC |
37941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37942 | (exit $ac_status); } && | |
6ebeb4c7 | 37943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37945 | (eval $ac_try) 2>&5 | |
37946 | ac_status=$? | |
37947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37948 | (exit $ac_status); }; } && | |
37949 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37951 | (eval $ac_try) 2>&5 | |
37952 | ac_status=$? | |
37953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37954 | (exit $ac_status); }; }; then | |
37955 | ac_cv_lib_dl_dlerror=yes | |
37956 | else | |
37957 | echo "$as_me: failed program was:" >&5 | |
37958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37959 | ||
37960 | ac_cv_lib_dl_dlerror=no | |
37961 | fi | |
ac1cb8d3 VS |
37962 | rm -f conftest.err conftest.$ac_objext \ |
37963 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37964 | LIBS=$ac_check_lib_save_LIBS |
37965 | fi | |
37966 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
37967 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
37968 | if test $ac_cv_lib_dl_dlerror = yes; then | |
37969 | cat >>confdefs.h <<\_ACEOF | |
37970 | #define HAVE_DLERROR 1 | |
37971 | _ACEOF | |
37972 | ||
37973 | fi | |
37974 | ||
37975 | ||
37976 | ||
37977 | fi | |
37978 | done | |
37979 | ||
37980 | fi | |
37981 | fi | |
37982 | ||
37983 | if test "$HAVE_DL_FUNCS" = 0; then | |
37984 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 37985 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
37986 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
37987 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
37988 | wxUSE_DYNAMIC_LOADER=no | |
37989 | wxUSE_DYNLIB_CLASS=no | |
37990 | else | |
37991 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
37992 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
37993 | fi | |
37994 | fi | |
37995 | fi | |
37996 | fi | |
37997 | fi | |
37998 | ||
37999 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
38000 | cat >>confdefs.h <<\_ACEOF | |
38001 | #define wxUSE_DYNAMIC_LOADER 1 | |
38002 | _ACEOF | |
38003 | ||
38004 | fi | |
38005 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
38006 | cat >>confdefs.h <<\_ACEOF | |
38007 | #define wxUSE_DYNLIB_CLASS 1 | |
38008 | _ACEOF | |
38009 | ||
38010 | fi | |
38011 | ||
38012 | ||
38013 | ||
38014 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38015 | if test "$wxUSE_SHARED" = "no" ; then | |
38016 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
38017 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
38018 | wxUSE_PLUGINS=no | |
38019 | fi | |
38020 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
38021 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
38022 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
38023 | wxUSE_PLUGINS=no | |
38024 | fi | |
38025 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
38026 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
38027 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
38028 | wxUSE_PLUGINS=no | |
38029 | fi | |
38030 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38031 | cat >>confdefs.h <<\_ACEOF | |
38032 | #define wxUSE_PLUGINS 1 | |
38033 | _ACEOF | |
38034 | ||
38035 | fi | |
38036 | fi | |
38037 | ||
38038 | ||
38039 | if test "$wxUSE_STL" = "yes"; then | |
38040 | cat >>confdefs.h <<\_ACEOF | |
38041 | #define wxUSE_STL 1 | |
38042 | _ACEOF | |
38043 | ||
38044 | fi | |
38045 | ||
38046 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
38047 | cat >>confdefs.h <<\_ACEOF | |
38048 | #define wxUSE_APPLE_IEEE 1 | |
38049 | _ACEOF | |
38050 | ||
38051 | fi | |
38052 | ||
38053 | if test "$wxUSE_TIMER" = "yes"; then | |
38054 | cat >>confdefs.h <<\_ACEOF | |
38055 | #define wxUSE_TIMER 1 | |
38056 | _ACEOF | |
38057 | ||
38058 | fi | |
38059 | ||
9c112555 | 38060 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
38061 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
38062 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
38063 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 38064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 38065 | else |
d12aef51 VZ |
38066 | |
38067 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38068 | /* confdefs.h. */ |
38069 | _ACEOF | |
38070 | cat confdefs.h >>conftest.$ac_ext | |
38071 | cat >>conftest.$ac_ext <<_ACEOF | |
38072 | /* end confdefs.h. */ | |
d12aef51 VZ |
38073 | |
38074 | #include <sys/soundcard.h> | |
38075 | ||
38076 | int | |
38077 | main () | |
38078 | { | |
38079 | ||
38080 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38081 | ||
38082 | ; | |
38083 | return 0; | |
38084 | } | |
a848cd7e | 38085 | _ACEOF |
d12aef51 VZ |
38086 | rm -f conftest.$ac_objext conftest$ac_exeext |
38087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38088 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 38089 | ac_status=$? |
ac1cb8d3 VS |
38090 | grep -v '^ *+' conftest.er1 >conftest.err |
38091 | rm -f conftest.er1 | |
38092 | cat conftest.err >&5 | |
a848cd7e SC |
38093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38094 | (exit $ac_status); } && | |
6ebeb4c7 | 38095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38097 | (eval $ac_try) 2>&5 | |
38098 | ac_status=$? | |
38099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38100 | (exit $ac_status); }; } && | |
d12aef51 | 38101 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
38102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38103 | (eval $ac_try) 2>&5 | |
38104 | ac_status=$? | |
38105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38106 | (exit $ac_status); }; }; then | |
d12aef51 | 38107 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
38108 | else |
38109 | echo "$as_me: failed program was:" >&5 | |
38110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38111 | ||
a848cd7e | 38112 | |
d12aef51 VZ |
38113 | saveLibs="$LIBS" |
38114 | LIBS="$saveLibs -lossaudio" | |
38115 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38116 | /* confdefs.h. */ |
38117 | _ACEOF | |
38118 | cat confdefs.h >>conftest.$ac_ext | |
38119 | cat >>conftest.$ac_ext <<_ACEOF | |
38120 | /* end confdefs.h. */ | |
d12aef51 VZ |
38121 | |
38122 | #include <sys/soundcard.h> | |
38123 | ||
38124 | int | |
38125 | main () | |
38126 | { | |
38127 | ||
38128 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38129 | ||
38130 | ; | |
38131 | return 0; | |
38132 | } | |
a848cd7e | 38133 | _ACEOF |
d12aef51 VZ |
38134 | rm -f conftest.$ac_objext conftest$ac_exeext |
38135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38136 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
38137 | ac_status=$? |
38138 | grep -v '^ *+' conftest.er1 >conftest.err | |
38139 | rm -f conftest.er1 | |
38140 | cat conftest.err >&5 | |
38141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 VZ |
38142 | (exit $ac_status); } && |
38143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
38144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38145 | (eval $ac_try) 2>&5 | |
38146 | ac_status=$? | |
38147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38148 | (exit $ac_status); }; } && | |
38149 | { ac_try='test -s conftest$ac_exeext' | |
38150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38151 | (eval $ac_try) 2>&5 | |
38152 | ac_status=$? | |
38153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38154 | (exit $ac_status); }; }; then | |
38155 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
38156 | else |
38157 | echo "$as_me: failed program was:" >&5 | |
38158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38159 | ||
a848cd7e | 38160 | |
d12aef51 VZ |
38161 | LIBS="$saveLibs" |
38162 | ac_cv_header_sys_soundcard=no | |
38163 | ||
38164 | ||
a848cd7e | 38165 | fi |
d12aef51 VZ |
38166 | rm -f conftest.err conftest.$ac_objext \ |
38167 | conftest$ac_exeext conftest.$ac_ext | |
38168 | ||
a848cd7e SC |
38169 | |
38170 | fi | |
d12aef51 VZ |
38171 | rm -f conftest.err conftest.$ac_objext \ |
38172 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38173 | |
38174 | fi | |
d12aef51 VZ |
38175 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
38176 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 38177 | |
d12aef51 VZ |
38178 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
38179 | cat >>confdefs.h <<\_ACEOF | |
38180 | #define HAVE_SYS_SOUNDCARD_H 1 | |
38181 | _ACEOF | |
a848cd7e | 38182 | |
d12aef51 VZ |
38183 | else |
38184 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
38185 | fi | |
9c112555 MW |
38186 | fi |
38187 | WITH_PLUGIN_SDL=0 | |
38188 | if test "$wxUSE_SOUND" = "yes"; then | |
38189 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
38190 | if test "$wxUSE_LIBSDL" != "no"; then |
38191 | ||
38192 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
38193 | if test "${with_sdl_prefix+set}" = set; then | |
38194 | withval="$with_sdl_prefix" | |
38195 | sdl_prefix="$withval" | |
38196 | else | |
38197 | sdl_prefix="" | |
38198 | fi; | |
38199 | ||
38200 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
38201 | if test "${with_sdl_exec_prefix+set}" = set; then | |
38202 | withval="$with_sdl_exec_prefix" | |
38203 | sdl_exec_prefix="$withval" | |
38204 | else | |
38205 | sdl_exec_prefix="" | |
38206 | fi; | |
38207 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
38208 | if test "${enable_sdltest+set}" = set; then | |
38209 | enableval="$enable_sdltest" | |
38210 | ||
38211 | else | |
38212 | enable_sdltest=yes | |
38213 | fi; | |
38214 | ||
38215 | if test x$sdl_exec_prefix != x ; then | |
38216 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
38217 | if test x${SDL_CONFIG+set} != xset ; then | |
38218 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
38219 | fi | |
38220 | fi | |
38221 | if test x$sdl_prefix != x ; then | |
38222 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
38223 | if test x${SDL_CONFIG+set} != xset ; then | |
38224 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
38225 | fi | |
38226 | fi | |
38227 | ||
38228 | ||
38229 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
38230 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
38231 | set dummy sdl-config; ac_word=$2 | |
38232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38234 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
38235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38236 | else | |
38237 | case $SDL_CONFIG in | |
38238 | [\\/]* | ?:[\\/]*) | |
38239 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
38240 | ;; | |
38241 | *) | |
38242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38243 | for as_dir in $PATH | |
38244 | do | |
38245 | IFS=$as_save_IFS | |
38246 | test -z "$as_dir" && as_dir=. | |
38247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38249 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38251 | break 2 | |
38252 | fi | |
38253 | done | |
38254 | done | |
38255 | ||
38256 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
38257 | ;; | |
38258 | esac | |
38259 | fi | |
38260 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
38261 | ||
38262 | if test -n "$SDL_CONFIG"; then | |
38263 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
38264 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
38265 | else | |
38266 | echo "$as_me:$LINENO: result: no" >&5 | |
38267 | echo "${ECHO_T}no" >&6 | |
38268 | fi | |
38269 | ||
38270 | min_sdl_version=1.2.0 | |
38271 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
38272 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
38273 | no_sdl="" | |
38274 | if test "$SDL_CONFIG" = "no" ; then | |
38275 | no_sdl=yes | |
38276 | else | |
38277 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
38278 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
38279 | ||
38280 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
38281 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
38282 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
38283 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
38284 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
38285 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
38286 | if test "x$enable_sdltest" = "xyes" ; then | |
38287 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 38288 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
38289 | ac_save_LIBS="$LIBS" |
38290 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 38291 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
38292 | LIBS="$LIBS $SDL_LIBS" |
38293 | rm -f conf.sdltest | |
38294 | if test "$cross_compiling" = yes; then | |
38295 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
38296 | else | |
38297 | cat >conftest.$ac_ext <<_ACEOF | |
38298 | /* confdefs.h. */ | |
38299 | _ACEOF | |
38300 | cat confdefs.h >>conftest.$ac_ext | |
38301 | cat >>conftest.$ac_ext <<_ACEOF | |
38302 | /* end confdefs.h. */ | |
38303 | ||
38304 | #include <stdio.h> | |
38305 | #include <stdlib.h> | |
38306 | #include <string.h> | |
38307 | #include "SDL.h" | |
38308 | ||
38309 | char* | |
38310 | my_strdup (char *str) | |
38311 | { | |
38312 | char *new_str; | |
38313 | ||
38314 | if (str) | |
38315 | { | |
38316 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
38317 | strcpy (new_str, str); | |
38318 | } | |
38319 | else | |
38320 | new_str = NULL; | |
38321 | ||
38322 | return new_str; | |
38323 | } | |
38324 | ||
38325 | int main (int argc, char *argv[]) | |
38326 | { | |
38327 | int major, minor, micro; | |
38328 | char *tmp_version; | |
38329 | ||
38330 | /* This hangs on some systems (?) | |
38331 | system ("touch conf.sdltest"); | |
38332 | */ | |
38333 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
38334 | ||
38335 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
38336 | tmp_version = my_strdup("$min_sdl_version"); | |
38337 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
38338 | printf("%s, bad version string\n", "$min_sdl_version"); | |
38339 | exit(1); | |
38340 | } | |
38341 | ||
38342 | if (($sdl_major_version > major) || | |
38343 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
38344 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
38345 | { | |
38346 | return 0; | |
38347 | } | |
38348 | else | |
38349 | { | |
38350 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
38351 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
38352 | printf("*** best to upgrade to the required version.\n"); | |
38353 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
38354 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
38355 | printf("*** config.cache before re-running configure\n"); | |
38356 | return 1; | |
38357 | } | |
38358 | } | |
38359 | ||
38360 | ||
38361 | _ACEOF | |
38362 | rm -f conftest$ac_exeext | |
38363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38364 | (eval $ac_link) 2>&5 | |
38365 | ac_status=$? | |
38366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
38368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38369 | (eval $ac_try) 2>&5 | |
38370 | ac_status=$? | |
38371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38372 | (exit $ac_status); }; }; then | |
38373 | : | |
38374 | else | |
38375 | echo "$as_me: program exited with status $ac_status" >&5 | |
38376 | echo "$as_me: failed program was:" >&5 | |
38377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38378 | ||
38379 | ( exit $ac_status ) | |
38380 | no_sdl=yes | |
38381 | fi | |
ac1cb8d3 | 38382 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38383 | fi |
38384 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 38385 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
38386 | LIBS="$ac_save_LIBS" |
38387 | fi | |
38388 | fi | |
38389 | if test "x$no_sdl" = x ; then | |
38390 | echo "$as_me:$LINENO: result: yes" >&5 | |
38391 | echo "${ECHO_T}yes" >&6 | |
38392 | ||
38393 | EXTRALIBS_SDL="$SDL_LIBS" | |
38394 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
38395 | cat >>confdefs.h <<\_ACEOF | |
38396 | #define wxUSE_LIBSDL 1 | |
38397 | _ACEOF | |
38398 | ||
38399 | ||
38400 | else | |
38401 | echo "$as_me:$LINENO: result: no" >&5 | |
38402 | echo "${ECHO_T}no" >&6 | |
38403 | if test "$SDL_CONFIG" = "no" ; then | |
38404 | echo "*** The sdl-config script installed by SDL could not be found" | |
38405 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
38406 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
38407 | echo "*** full path to sdl-config." | |
38408 | else | |
38409 | if test -f conf.sdltest ; then | |
38410 | : | |
38411 | else | |
38412 | echo "*** Could not run SDL test program, checking why..." | |
38413 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 38414 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
38415 | LIBS="$LIBS $SDL_LIBS" |
38416 | cat >conftest.$ac_ext <<_ACEOF | |
38417 | /* confdefs.h. */ | |
38418 | _ACEOF | |
38419 | cat confdefs.h >>conftest.$ac_ext | |
38420 | cat >>conftest.$ac_ext <<_ACEOF | |
38421 | /* end confdefs.h. */ | |
38422 | ||
38423 | #include <stdio.h> | |
38424 | #include "SDL.h" | |
38425 | ||
38426 | int main(int argc, char *argv[]) | |
38427 | { return 0; } | |
38428 | #undef main | |
38429 | #define main K_and_R_C_main | |
38430 | ||
38431 | int | |
38432 | main () | |
38433 | { | |
38434 | return 0; | |
38435 | ; | |
38436 | return 0; | |
38437 | } | |
38438 | _ACEOF | |
38439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38441 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38442 | ac_status=$? |
ac1cb8d3 VS |
38443 | grep -v '^ *+' conftest.er1 >conftest.err |
38444 | rm -f conftest.er1 | |
38445 | cat conftest.err >&5 | |
a848cd7e SC |
38446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38447 | (exit $ac_status); } && | |
6ebeb4c7 | 38448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38450 | (eval $ac_try) 2>&5 | |
38451 | ac_status=$? | |
38452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38453 | (exit $ac_status); }; } && | |
38454 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38456 | (eval $ac_try) 2>&5 | |
38457 | ac_status=$? | |
38458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38459 | (exit $ac_status); }; }; then | |
38460 | echo "*** The test program compiled, but did not run. This usually means" | |
38461 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
38462 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
38463 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
38464 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
38465 | echo "*** is required on your system" | |
38466 | echo "***" | |
38467 | echo "*** If you have an old version installed, it is best to remove it, although" | |
38468 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
38469 | else | |
38470 | echo "$as_me: failed program was:" >&5 | |
38471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38472 | ||
38473 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
38474 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
38475 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
38476 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
38477 | fi | |
ac1cb8d3 VS |
38478 | rm -f conftest.err conftest.$ac_objext \ |
38479 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 38480 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 38481 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
38482 | LIBS="$ac_save_LIBS" |
38483 | fi | |
38484 | fi | |
38485 | SDL_CFLAGS="" | |
38486 | SDL_LIBS="" | |
38487 | wxUSE_LIBSDL="no" | |
38488 | fi | |
38489 | ||
38490 | ||
38491 | rm -f conf.sdltest | |
38492 | ||
38493 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
38494 | WITH_PLUGIN_SDL=1 | |
38495 | fi | |
38496 | fi | |
38497 | fi | |
38498 | ||
38499 | cat >>confdefs.h <<\_ACEOF | |
38500 | #define wxUSE_SOUND 1 | |
38501 | _ACEOF | |
38502 | ||
38503 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
38504 | fi | |
38505 | ||
d1c38808 VZ |
38506 | if test "$WXGTK20" = 1; then |
38507 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38508 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
38509 | ||
38510 | ||
38511 | succeeded=no | |
38512 | ||
38513 | if test -z "$PKG_CONFIG"; then | |
38514 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
38515 | set dummy pkg-config; ac_word=$2 | |
38516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38518 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
38519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38520 | else | |
38521 | case $PKG_CONFIG in | |
38522 | [\\/]* | ?:[\\/]*) | |
38523 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
38524 | ;; | |
38525 | *) | |
38526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38527 | for as_dir in $PATH | |
38528 | do | |
38529 | IFS=$as_save_IFS | |
38530 | test -z "$as_dir" && as_dir=. | |
38531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38533 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38535 | break 2 | |
38536 | fi | |
38537 | done | |
38538 | done | |
38539 | ||
38540 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
38541 | ;; | |
38542 | esac | |
38543 | fi | |
38544 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
38545 | ||
38546 | if test -n "$PKG_CONFIG"; then | |
38547 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
38548 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
38549 | else | |
38550 | echo "$as_me:$LINENO: result: no" >&5 | |
38551 | echo "${ECHO_T}no" >&6 | |
38552 | fi | |
38553 | ||
38554 | fi | |
38555 | ||
38556 | if test "$PKG_CONFIG" = "no" ; then | |
38557 | echo "*** The pkg-config script could not be found. Make sure it is" | |
38558 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
38559 | echo "*** to the full path to pkg-config." | |
38560 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
38561 | else | |
38562 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
38563 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
38564 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
38565 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 38566 | |
ffa762ff | 38567 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
38568 | echo "$as_me:$LINENO: result: yes" >&5 |
38569 | echo "${ECHO_T}yes" >&6 | |
38570 | succeeded=yes | |
38571 | ||
38572 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
38573 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 38574 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38575 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
38576 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
38577 | ||
38578 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
38579 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 38580 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38581 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
38582 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
38583 | else | |
38584 | LIBGNOMEPRINTUI_CFLAGS="" | |
38585 | LIBGNOMEPRINTUI_LIBS="" | |
38586 | ## If we have a custom action on failure, don't print errors, but | |
38587 | ## do set a variable so people can do so. | |
ffa762ff | 38588 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38589 | |
38590 | fi | |
38591 | ||
38592 | ||
38593 | ||
38594 | else | |
38595 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
38596 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
38597 | fi | |
38598 | fi | |
38599 | ||
38600 | if test $succeeded = yes; then | |
38601 | ||
d1c38808 VZ |
38602 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
38603 | cat >>confdefs.h <<\_ACEOF | |
38604 | #define wxUSE_LIBGNOMEPRINT 1 | |
38605 | _ACEOF | |
38606 | ||
38607 | ||
38608 | else | |
38609 | ||
38610 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
38611 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
38612 | wxUSE_LIBGNOMEPRINT="no" | |
38613 | ||
38614 | ||
38615 | fi | |
38616 | ||
38617 | fi | |
38618 | fi | |
38619 | fi | |
38620 | ||
38621 | ||
a848cd7e SC |
38622 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
38623 | cat >>confdefs.h <<\_ACEOF | |
38624 | #define wxUSE_CMDLINE_PARSER 1 | |
38625 | _ACEOF | |
38626 | ||
38627 | fi | |
38628 | ||
38629 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
38630 | cat >>confdefs.h <<\_ACEOF | |
38631 | #define wxUSE_STOPWATCH 1 | |
38632 | _ACEOF | |
38633 | ||
38634 | fi | |
38635 | ||
38636 | if test "$wxUSE_DATETIME" = "yes"; then | |
38637 | cat >>confdefs.h <<\_ACEOF | |
38638 | #define wxUSE_DATETIME 1 | |
38639 | _ACEOF | |
38640 | ||
38641 | fi | |
38642 | ||
38643 | if test "$wxUSE_FILE" = "yes"; then | |
38644 | cat >>confdefs.h <<\_ACEOF | |
38645 | #define wxUSE_FILE 1 | |
38646 | _ACEOF | |
38647 | ||
38648 | fi | |
38649 | ||
38650 | if test "$wxUSE_FFILE" = "yes"; then | |
38651 | cat >>confdefs.h <<\_ACEOF | |
38652 | #define wxUSE_FFILE 1 | |
38653 | _ACEOF | |
38654 | ||
38655 | fi | |
38656 | ||
38657 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
38658 | cat >>confdefs.h <<\_ACEOF | |
38659 | #define wxUSE_FILESYSTEM 1 | |
38660 | _ACEOF | |
38661 | ||
38662 | fi | |
38663 | ||
38664 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
38665 | cat >>confdefs.h <<\_ACEOF | |
38666 | #define wxUSE_FS_ZIP 1 | |
38667 | _ACEOF | |
38668 | ||
38669 | fi | |
38670 | ||
9e8e867f | 38671 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 38672 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 38673 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
38674 | _ACEOF |
38675 | ||
38676 | fi | |
38677 | ||
38678 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 38679 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
38680 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
38681 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
38682 | elif test "$wxUSE_ZLIB" = "no"; then | |
38683 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
38684 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
38685 | else | |
38686 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38687 | #define wxUSE_ZIPSTREAM 1 |
38688 | _ACEOF | |
38689 | ||
81f90336 | 38690 | fi |
a848cd7e SC |
38691 | fi |
38692 | ||
a848cd7e | 38693 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
38694 | if test "$USE_UNIX" != 1; then |
38695 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
38696 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
38697 | wxUSE_ON_FATAL_EXCEPTION=no | |
38698 | else | |
38699 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38700 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
38701 | _ACEOF | |
38702 | ||
18228ab4 | 38703 | fi |
a848cd7e SC |
38704 | fi |
38705 | ||
eaff0f0d VZ |
38706 | if test "$wxUSE_STACKWALKER" = "yes"; then |
38707 | cat >>confdefs.h <<\_ACEOF | |
38708 | #define wxUSE_STACKWALKER 1 | |
38709 | _ACEOF | |
38710 | ||
38711 | fi | |
38712 | ||
36b6448c | 38713 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
38714 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
38715 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
38716 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
38717 | wxUSE_DEBUGREPORT=no |
38718 | else | |
38719 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
38720 | #define wxUSE_DEBUGREPORT 1 |
38721 | _ACEOF | |
38722 | ||
21dfc162 MW |
38723 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
38724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
38725 | fi | |
dfe0c803 | 38726 | fi |
36b6448c VZ |
38727 | fi |
38728 | ||
a848cd7e SC |
38729 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
38730 | cat >>confdefs.h <<\_ACEOF | |
38731 | #define wxUSE_SNGLINST_CHECKER 1 | |
38732 | _ACEOF | |
38733 | ||
38734 | fi | |
38735 | ||
38736 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
38737 | cat >>confdefs.h <<\_ACEOF | |
38738 | #define wxUSE_BUSYINFO 1 | |
38739 | _ACEOF | |
38740 | ||
38741 | fi | |
38742 | ||
38743 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
38744 | cat >>confdefs.h <<\_ACEOF | |
38745 | #define wxUSE_STD_IOSTREAM 1 | |
38746 | _ACEOF | |
38747 | ||
38748 | fi | |
38749 | ||
59746b65 MW |
38750 | if test "$wxUSE_STD_STRING" = "yes"; then |
38751 | cat >>confdefs.h <<\_ACEOF | |
38752 | #define wxUSE_STD_STRING 1 | |
38753 | _ACEOF | |
38754 | ||
38755 | fi | |
38756 | ||
07158944 VZ |
38757 | if test "$wxUSE_STDPATHS" = "yes"; then |
38758 | cat >>confdefs.h <<\_ACEOF | |
38759 | #define wxUSE_STDPATHS 1 | |
38760 | _ACEOF | |
38761 | ||
38762 | fi | |
38763 | ||
a848cd7e SC |
38764 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
38765 | cat >>confdefs.h <<\_ACEOF | |
38766 | #define wxUSE_TEXTBUFFER 1 | |
38767 | _ACEOF | |
38768 | ||
38769 | fi | |
38770 | ||
38771 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
38772 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
38773 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
38774 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
38775 | else | |
38776 | cat >>confdefs.h <<\_ACEOF | |
38777 | #define wxUSE_TEXTFILE 1 | |
38778 | _ACEOF | |
38779 | ||
38780 | fi | |
38781 | fi | |
38782 | ||
38783 | if test "$wxUSE_CONFIG" = "yes" ; then | |
38784 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
38785 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
38786 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
38787 | else | |
38788 | cat >>confdefs.h <<\_ACEOF | |
38789 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
38790 | _ACEOF |
38791 | ||
38792 | cat >>confdefs.h <<\_ACEOF | |
38793 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
38794 | _ACEOF |
38795 | ||
38796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
38797 | fi | |
38798 | fi | |
38799 | ||
38800 | if test "$wxUSE_INTL" = "yes" ; then | |
38801 | if test "$wxUSE_FILE" != "yes"; then | |
38802 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
38803 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
38804 | else | |
38805 | cat >>confdefs.h <<\_ACEOF | |
38806 | #define wxUSE_INTL 1 | |
38807 | _ACEOF | |
38808 | ||
38809 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
38810 | GUIDIST="$GUIDIST INTL_DIST" | |
38811 | fi | |
38812 | fi | |
38813 | ||
38814 | if test "$wxUSE_LOG" = "yes"; then | |
38815 | cat >>confdefs.h <<\_ACEOF | |
38816 | #define wxUSE_LOG 1 | |
38817 | _ACEOF | |
38818 | ||
38819 | ||
38820 | if test "$wxUSE_LOGGUI" = "yes"; then | |
38821 | cat >>confdefs.h <<\_ACEOF | |
38822 | #define wxUSE_LOGGUI 1 | |
38823 | _ACEOF | |
38824 | ||
38825 | fi | |
38826 | ||
38827 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
38828 | cat >>confdefs.h <<\_ACEOF | |
38829 | #define wxUSE_LOGWINDOW 1 | |
38830 | _ACEOF | |
38831 | ||
38832 | fi | |
38833 | ||
38834 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
38835 | cat >>confdefs.h <<\_ACEOF | |
38836 | #define wxUSE_LOG_DIALOG 1 | |
38837 | _ACEOF | |
38838 | ||
38839 | fi | |
0b78747f MW |
38840 | |
38841 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
38842 | fi |
38843 | ||
38844 | if test "$wxUSE_LONGLONG" = "yes"; then | |
38845 | cat >>confdefs.h <<\_ACEOF | |
38846 | #define wxUSE_LONGLONG 1 | |
38847 | _ACEOF | |
38848 | ||
38849 | fi | |
38850 | ||
38851 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
38852 | cat >>confdefs.h <<\_ACEOF | |
38853 | #define wxUSE_GEOMETRY 1 | |
38854 | _ACEOF | |
38855 | ||
38856 | fi | |
38857 | ||
a848cd7e SC |
38858 | if test "$wxUSE_STREAMS" = "yes" ; then |
38859 | cat >>confdefs.h <<\_ACEOF | |
38860 | #define wxUSE_STREAMS 1 | |
38861 | _ACEOF | |
38862 | ||
38863 | fi | |
38864 | ||
38865 | ||
38866 | if test "$wxUSE_DATETIME" = "yes"; then | |
38867 | ||
38868 | for ac_func in strptime | |
38869 | do | |
38870 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38871 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38872 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38873 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38875 | else | |
38876 | cat >conftest.$ac_ext <<_ACEOF | |
38877 | /* confdefs.h. */ | |
38878 | _ACEOF | |
38879 | cat confdefs.h >>conftest.$ac_ext | |
38880 | cat >>conftest.$ac_ext <<_ACEOF | |
38881 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38882 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38883 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38884 | #define $ac_func innocuous_$ac_func | |
38885 | ||
a848cd7e SC |
38886 | /* System header to define __stub macros and hopefully few prototypes, |
38887 | which can conflict with char $ac_func (); below. | |
38888 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38889 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38890 | |
a848cd7e SC |
38891 | #ifdef __STDC__ |
38892 | # include <limits.h> | |
38893 | #else | |
38894 | # include <assert.h> | |
38895 | #endif | |
ac1cb8d3 VS |
38896 | |
38897 | #undef $ac_func | |
38898 | ||
a848cd7e SC |
38899 | /* Override any gcc2 internal prototype to avoid an error. */ |
38900 | #ifdef __cplusplus | |
38901 | extern "C" | |
38902 | { | |
38903 | #endif | |
38904 | /* We use char because int might match the return type of a gcc2 | |
38905 | builtin and then its argument prototype would still apply. */ | |
38906 | char $ac_func (); | |
38907 | /* The GNU C library defines this for functions which it implements | |
38908 | to always fail with ENOSYS. Some functions are actually named | |
38909 | something starting with __ and the normal name is an alias. */ | |
38910 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38911 | choke me | |
38912 | #else | |
38913 | char (*f) () = $ac_func; | |
38914 | #endif | |
38915 | #ifdef __cplusplus | |
38916 | } | |
38917 | #endif | |
38918 | ||
38919 | int | |
38920 | main () | |
38921 | { | |
38922 | return f != $ac_func; | |
38923 | ; | |
38924 | return 0; | |
38925 | } | |
38926 | _ACEOF | |
38927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38929 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38930 | ac_status=$? |
ac1cb8d3 VS |
38931 | grep -v '^ *+' conftest.er1 >conftest.err |
38932 | rm -f conftest.er1 | |
38933 | cat conftest.err >&5 | |
a848cd7e SC |
38934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38935 | (exit $ac_status); } && | |
6ebeb4c7 | 38936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38938 | (eval $ac_try) 2>&5 | |
38939 | ac_status=$? | |
38940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38941 | (exit $ac_status); }; } && | |
38942 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38944 | (eval $ac_try) 2>&5 | |
38945 | ac_status=$? | |
38946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38947 | (exit $ac_status); }; }; then | |
38948 | eval "$as_ac_var=yes" | |
38949 | else | |
38950 | echo "$as_me: failed program was:" >&5 | |
38951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38952 | ||
38953 | eval "$as_ac_var=no" | |
38954 | fi | |
ac1cb8d3 VS |
38955 | rm -f conftest.err conftest.$ac_objext \ |
38956 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38957 | fi |
38958 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38959 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38960 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38961 | cat >>confdefs.h <<_ACEOF | |
38962 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38963 | _ACEOF | |
38964 | ||
38965 | fi | |
38966 | done | |
38967 | ||
f536f005 VZ |
38968 | if test "$ac_cv_func_strptime" = "yes"; then |
38969 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
38970 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
38971 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
38972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38973 | else | |
38974 | ||
38975 | ||
38976 | ||
38977 | ac_ext=cc | |
38978 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38979 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38980 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38981 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38982 | ||
38983 | cat >conftest.$ac_ext <<_ACEOF | |
38984 | /* confdefs.h. */ | |
38985 | _ACEOF | |
38986 | cat confdefs.h >>conftest.$ac_ext | |
38987 | cat >>conftest.$ac_ext <<_ACEOF | |
38988 | /* end confdefs.h. */ | |
38989 | ||
38990 | #include <time.h> | |
38991 | ||
38992 | int | |
38993 | main () | |
38994 | { | |
38995 | ||
38996 | struct tm t; | |
38997 | strptime("foo", "bar", &t); | |
38998 | ||
38999 | ; | |
39000 | return 0; | |
39001 | } | |
39002 | _ACEOF | |
39003 | rm -f conftest.$ac_objext | |
39004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39005 | (eval $ac_compile) 2>conftest.er1 | |
39006 | ac_status=$? | |
39007 | grep -v '^ *+' conftest.er1 >conftest.err | |
39008 | rm -f conftest.er1 | |
39009 | cat conftest.err >&5 | |
39010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39011 | (exit $ac_status); } && | |
39012 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
39013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39014 | (eval $ac_try) 2>&5 | |
39015 | ac_status=$? | |
39016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39017 | (exit $ac_status); }; } && | |
39018 | { ac_try='test -s conftest.$ac_objext' | |
39019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39020 | (eval $ac_try) 2>&5 | |
39021 | ac_status=$? | |
39022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39023 | (exit $ac_status); }; }; then | |
39024 | wx_cv_func_strptime_decl=yes | |
39025 | else | |
39026 | echo "$as_me: failed program was:" >&5 | |
39027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39028 | ||
39029 | wx_cv_func_strptime_decl=no | |
39030 | ||
39031 | fi | |
39032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39033 | ac_ext=c | |
39034 | ac_cpp='$CPP $CPPFLAGS' | |
39035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39038 | ||
39039 | ||
39040 | ||
39041 | fi | |
39042 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
39043 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
39044 | fi | |
39045 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
39046 | cat >>confdefs.h <<\_ACEOF | |
39047 | #define HAVE_STRPTIME_DECL 1 | |
39048 | _ACEOF | |
39049 | ||
39050 | fi | |
a848cd7e SC |
39051 | |
39052 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
39053 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
39054 | if test "${wx_cv_var_timezone+set}" = set; then | |
39055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39056 | else | |
39057 | ||
39058 | cat >conftest.$ac_ext <<_ACEOF | |
39059 | /* confdefs.h. */ | |
39060 | _ACEOF | |
39061 | cat confdefs.h >>conftest.$ac_ext | |
39062 | cat >>conftest.$ac_ext <<_ACEOF | |
39063 | /* end confdefs.h. */ | |
39064 | ||
39065 | #include <time.h> | |
39066 | ||
39067 | int | |
39068 | main () | |
39069 | { | |
39070 | ||
39071 | int tz; | |
39072 | tz = timezone; | |
39073 | ||
39074 | ; | |
39075 | return 0; | |
39076 | } | |
39077 | _ACEOF | |
39078 | rm -f conftest.$ac_objext | |
39079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39080 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39081 | ac_status=$? |
ac1cb8d3 VS |
39082 | grep -v '^ *+' conftest.er1 >conftest.err |
39083 | rm -f conftest.er1 | |
39084 | cat conftest.err >&5 | |
a848cd7e SC |
39085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39086 | (exit $ac_status); } && | |
6ebeb4c7 | 39087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39089 | (eval $ac_try) 2>&5 | |
39090 | ac_status=$? | |
39091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39092 | (exit $ac_status); }; } && | |
39093 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39095 | (eval $ac_try) 2>&5 | |
39096 | ac_status=$? | |
39097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39098 | (exit $ac_status); }; }; then | |
39099 | ||
39100 | wx_cv_var_timezone=timezone | |
39101 | ||
39102 | else | |
39103 | echo "$as_me: failed program was:" >&5 | |
39104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39105 | ||
39106 | ||
39107 | cat >conftest.$ac_ext <<_ACEOF | |
39108 | /* confdefs.h. */ | |
39109 | _ACEOF | |
39110 | cat confdefs.h >>conftest.$ac_ext | |
39111 | cat >>conftest.$ac_ext <<_ACEOF | |
39112 | /* end confdefs.h. */ | |
39113 | ||
39114 | #include <time.h> | |
39115 | ||
39116 | int | |
39117 | main () | |
39118 | { | |
39119 | ||
39120 | int tz; | |
39121 | tz = _timezone; | |
39122 | ||
39123 | ; | |
39124 | return 0; | |
39125 | } | |
39126 | _ACEOF | |
39127 | rm -f conftest.$ac_objext | |
39128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39129 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39130 | ac_status=$? |
ac1cb8d3 VS |
39131 | grep -v '^ *+' conftest.er1 >conftest.err |
39132 | rm -f conftest.er1 | |
39133 | cat conftest.err >&5 | |
a848cd7e SC |
39134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39135 | (exit $ac_status); } && | |
6ebeb4c7 | 39136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39138 | (eval $ac_try) 2>&5 | |
39139 | ac_status=$? | |
39140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39141 | (exit $ac_status); }; } && | |
39142 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39144 | (eval $ac_try) 2>&5 | |
39145 | ac_status=$? | |
39146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39147 | (exit $ac_status); }; }; then | |
39148 | ||
39149 | wx_cv_var_timezone=_timezone | |
39150 | ||
39151 | else | |
39152 | echo "$as_me: failed program was:" >&5 | |
39153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39154 | ||
39155 | ||
39156 | cat >conftest.$ac_ext <<_ACEOF | |
39157 | /* confdefs.h. */ | |
39158 | _ACEOF | |
39159 | cat confdefs.h >>conftest.$ac_ext | |
39160 | cat >>conftest.$ac_ext <<_ACEOF | |
39161 | /* end confdefs.h. */ | |
39162 | ||
39163 | #include <time.h> | |
39164 | ||
39165 | int | |
39166 | main () | |
39167 | { | |
39168 | ||
39169 | int tz; | |
39170 | tz = __timezone; | |
39171 | ||
39172 | ; | |
39173 | return 0; | |
39174 | } | |
39175 | _ACEOF | |
39176 | rm -f conftest.$ac_objext | |
39177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39178 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39179 | ac_status=$? |
ac1cb8d3 VS |
39180 | grep -v '^ *+' conftest.er1 >conftest.err |
39181 | rm -f conftest.er1 | |
39182 | cat conftest.err >&5 | |
a848cd7e SC |
39183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39184 | (exit $ac_status); } && | |
6ebeb4c7 | 39185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39187 | (eval $ac_try) 2>&5 | |
39188 | ac_status=$? | |
39189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39190 | (exit $ac_status); }; } && | |
39191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39193 | (eval $ac_try) 2>&5 | |
39194 | ac_status=$? | |
39195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39196 | (exit $ac_status); }; }; then | |
39197 | ||
39198 | wx_cv_var_timezone=__timezone | |
39199 | ||
39200 | else | |
39201 | echo "$as_me: failed program was:" >&5 | |
39202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39203 | ||
39204 | ||
39205 | if test "$USE_DOS" = 0 ; then | |
39206 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
39207 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
39208 | fi | |
39209 | ||
39210 | ||
39211 | fi | |
ac1cb8d3 | 39212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39213 | |
39214 | ||
39215 | fi | |
ac1cb8d3 | 39216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39217 | |
39218 | ||
39219 | fi | |
ac1cb8d3 | 39220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39221 | |
39222 | ||
39223 | fi | |
39224 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
39225 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
39226 | ||
39227 | if test "x$wx_cv_var_timezone" != x ; then | |
39228 | cat >>confdefs.h <<_ACEOF | |
39229 | #define WX_TIMEZONE $wx_cv_var_timezone | |
39230 | _ACEOF | |
39231 | ||
39232 | fi | |
39233 | ||
39234 | ||
39235 | for ac_func in localtime | |
39236 | do | |
39237 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39238 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39239 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39240 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39242 | else | |
39243 | cat >conftest.$ac_ext <<_ACEOF | |
39244 | /* confdefs.h. */ | |
39245 | _ACEOF | |
39246 | cat confdefs.h >>conftest.$ac_ext | |
39247 | cat >>conftest.$ac_ext <<_ACEOF | |
39248 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39249 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39251 | #define $ac_func innocuous_$ac_func | |
39252 | ||
a848cd7e SC |
39253 | /* System header to define __stub macros and hopefully few prototypes, |
39254 | which can conflict with char $ac_func (); below. | |
39255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39256 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39257 | |
a848cd7e SC |
39258 | #ifdef __STDC__ |
39259 | # include <limits.h> | |
39260 | #else | |
39261 | # include <assert.h> | |
39262 | #endif | |
ac1cb8d3 VS |
39263 | |
39264 | #undef $ac_func | |
39265 | ||
a848cd7e SC |
39266 | /* Override any gcc2 internal prototype to avoid an error. */ |
39267 | #ifdef __cplusplus | |
39268 | extern "C" | |
39269 | { | |
39270 | #endif | |
39271 | /* We use char because int might match the return type of a gcc2 | |
39272 | builtin and then its argument prototype would still apply. */ | |
39273 | char $ac_func (); | |
39274 | /* The GNU C library defines this for functions which it implements | |
39275 | to always fail with ENOSYS. Some functions are actually named | |
39276 | something starting with __ and the normal name is an alias. */ | |
39277 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39278 | choke me | |
39279 | #else | |
39280 | char (*f) () = $ac_func; | |
39281 | #endif | |
39282 | #ifdef __cplusplus | |
39283 | } | |
39284 | #endif | |
39285 | ||
39286 | int | |
39287 | main () | |
39288 | { | |
39289 | return f != $ac_func; | |
39290 | ; | |
39291 | return 0; | |
39292 | } | |
39293 | _ACEOF | |
39294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39297 | ac_status=$? |
ac1cb8d3 VS |
39298 | grep -v '^ *+' conftest.er1 >conftest.err |
39299 | rm -f conftest.er1 | |
39300 | cat conftest.err >&5 | |
a848cd7e SC |
39301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39302 | (exit $ac_status); } && | |
6ebeb4c7 | 39303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39305 | (eval $ac_try) 2>&5 | |
39306 | ac_status=$? | |
39307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39308 | (exit $ac_status); }; } && | |
39309 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39311 | (eval $ac_try) 2>&5 | |
39312 | ac_status=$? | |
39313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39314 | (exit $ac_status); }; }; then | |
39315 | eval "$as_ac_var=yes" | |
39316 | else | |
39317 | echo "$as_me: failed program was:" >&5 | |
39318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39319 | ||
39320 | eval "$as_ac_var=no" | |
39321 | fi | |
ac1cb8d3 VS |
39322 | rm -f conftest.err conftest.$ac_objext \ |
39323 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39324 | fi |
39325 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39326 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39327 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39328 | cat >>confdefs.h <<_ACEOF | |
39329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39330 | _ACEOF | |
39331 | ||
39332 | fi | |
39333 | done | |
39334 | ||
39335 | ||
39336 | if test "$ac_cv_func_localtime" = "yes"; then | |
39337 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
39338 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
39339 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
39340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39341 | else | |
39342 | ||
39343 | cat >conftest.$ac_ext <<_ACEOF | |
39344 | /* confdefs.h. */ | |
39345 | _ACEOF | |
39346 | cat confdefs.h >>conftest.$ac_ext | |
39347 | cat >>conftest.$ac_ext <<_ACEOF | |
39348 | /* end confdefs.h. */ | |
39349 | ||
39350 | #include <time.h> | |
39351 | ||
39352 | int | |
39353 | main () | |
39354 | { | |
39355 | ||
39356 | struct tm tm; | |
39357 | tm.tm_gmtoff++; | |
39358 | ||
39359 | ; | |
39360 | return 0; | |
39361 | } | |
39362 | _ACEOF | |
39363 | rm -f conftest.$ac_objext | |
39364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39365 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39366 | ac_status=$? |
ac1cb8d3 VS |
39367 | grep -v '^ *+' conftest.er1 >conftest.err |
39368 | rm -f conftest.er1 | |
39369 | cat conftest.err >&5 | |
a848cd7e SC |
39370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39371 | (exit $ac_status); } && | |
6ebeb4c7 | 39372 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39374 | (eval $ac_try) 2>&5 | |
39375 | ac_status=$? | |
39376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39377 | (exit $ac_status); }; } && | |
39378 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39380 | (eval $ac_try) 2>&5 | |
39381 | ac_status=$? | |
39382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39383 | (exit $ac_status); }; }; then | |
39384 | ||
39385 | wx_cv_struct_tm_has_gmtoff=yes | |
39386 | ||
39387 | else | |
39388 | echo "$as_me: failed program was:" >&5 | |
39389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39390 | ||
39391 | wx_cv_struct_tm_has_gmtoff=no | |
39392 | ||
39393 | fi | |
ac1cb8d3 | 39394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39395 | |
39396 | fi | |
39397 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
39398 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
39399 | fi | |
39400 | ||
39401 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
39402 | cat >>confdefs.h <<\_ACEOF | |
39403 | #define WX_GMTOFF_IN_TM 1 | |
39404 | _ACEOF | |
39405 | ||
39406 | fi | |
39407 | ||
39408 | ||
39409 | ||
39410 | for ac_func in gettimeofday ftime | |
39411 | do | |
39412 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39413 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39414 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39415 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39417 | else | |
39418 | cat >conftest.$ac_ext <<_ACEOF | |
39419 | /* confdefs.h. */ | |
39420 | _ACEOF | |
39421 | cat confdefs.h >>conftest.$ac_ext | |
39422 | cat >>conftest.$ac_ext <<_ACEOF | |
39423 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39426 | #define $ac_func innocuous_$ac_func | |
39427 | ||
a848cd7e SC |
39428 | /* System header to define __stub macros and hopefully few prototypes, |
39429 | which can conflict with char $ac_func (); below. | |
39430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39431 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39432 | |
a848cd7e SC |
39433 | #ifdef __STDC__ |
39434 | # include <limits.h> | |
39435 | #else | |
39436 | # include <assert.h> | |
39437 | #endif | |
ac1cb8d3 VS |
39438 | |
39439 | #undef $ac_func | |
39440 | ||
a848cd7e SC |
39441 | /* Override any gcc2 internal prototype to avoid an error. */ |
39442 | #ifdef __cplusplus | |
39443 | extern "C" | |
39444 | { | |
39445 | #endif | |
39446 | /* We use char because int might match the return type of a gcc2 | |
39447 | builtin and then its argument prototype would still apply. */ | |
39448 | char $ac_func (); | |
39449 | /* The GNU C library defines this for functions which it implements | |
39450 | to always fail with ENOSYS. Some functions are actually named | |
39451 | something starting with __ and the normal name is an alias. */ | |
39452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39453 | choke me | |
39454 | #else | |
39455 | char (*f) () = $ac_func; | |
39456 | #endif | |
39457 | #ifdef __cplusplus | |
39458 | } | |
39459 | #endif | |
39460 | ||
39461 | int | |
39462 | main () | |
39463 | { | |
39464 | return f != $ac_func; | |
39465 | ; | |
39466 | return 0; | |
39467 | } | |
39468 | _ACEOF | |
39469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39471 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39472 | ac_status=$? |
ac1cb8d3 VS |
39473 | grep -v '^ *+' conftest.er1 >conftest.err |
39474 | rm -f conftest.er1 | |
39475 | cat conftest.err >&5 | |
a848cd7e SC |
39476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39477 | (exit $ac_status); } && | |
6ebeb4c7 | 39478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39480 | (eval $ac_try) 2>&5 | |
39481 | ac_status=$? | |
39482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39483 | (exit $ac_status); }; } && | |
39484 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39486 | (eval $ac_try) 2>&5 | |
39487 | ac_status=$? | |
39488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39489 | (exit $ac_status); }; }; then | |
39490 | eval "$as_ac_var=yes" | |
39491 | else | |
39492 | echo "$as_me: failed program was:" >&5 | |
39493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39494 | ||
39495 | eval "$as_ac_var=no" | |
39496 | fi | |
ac1cb8d3 VS |
39497 | rm -f conftest.err conftest.$ac_objext \ |
39498 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39499 | fi |
39500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39501 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39502 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39503 | cat >>confdefs.h <<_ACEOF | |
39504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39505 | _ACEOF | |
39506 | break | |
39507 | fi | |
39508 | done | |
39509 | ||
39510 | ||
39511 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
39512 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
39513 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
39514 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
39515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39516 | else | |
39517 | ||
39518 | ||
39519 | ||
39520 | ac_ext=cc | |
39521 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39522 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39523 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39524 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39525 | ||
39526 | ||
39527 | cat >conftest.$ac_ext <<_ACEOF | |
39528 | /* confdefs.h. */ | |
39529 | _ACEOF | |
39530 | cat confdefs.h >>conftest.$ac_ext | |
39531 | cat >>conftest.$ac_ext <<_ACEOF | |
39532 | /* end confdefs.h. */ | |
39533 | ||
39534 | #include <sys/time.h> | |
39535 | #include <unistd.h> | |
39536 | ||
39537 | int | |
39538 | main () | |
39539 | { | |
39540 | ||
39541 | struct timeval tv; | |
39542 | gettimeofday(&tv, NULL); | |
39543 | ||
39544 | ; | |
39545 | return 0; | |
39546 | } | |
39547 | _ACEOF | |
39548 | rm -f conftest.$ac_objext | |
39549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39550 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39551 | ac_status=$? |
ac1cb8d3 VS |
39552 | grep -v '^ *+' conftest.er1 >conftest.err |
39553 | rm -f conftest.er1 | |
39554 | cat conftest.err >&5 | |
a848cd7e SC |
39555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39556 | (exit $ac_status); } && | |
6ebeb4c7 | 39557 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39559 | (eval $ac_try) 2>&5 | |
39560 | ac_status=$? | |
39561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39562 | (exit $ac_status); }; } && | |
39563 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39565 | (eval $ac_try) 2>&5 | |
39566 | ac_status=$? | |
39567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39568 | (exit $ac_status); }; }; then | |
39569 | wx_cv_func_gettimeofday_has_2_args=yes | |
39570 | else | |
39571 | echo "$as_me: failed program was:" >&5 | |
39572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39573 | ||
39574 | cat >conftest.$ac_ext <<_ACEOF | |
39575 | /* confdefs.h. */ | |
39576 | _ACEOF | |
39577 | cat confdefs.h >>conftest.$ac_ext | |
39578 | cat >>conftest.$ac_ext <<_ACEOF | |
39579 | /* end confdefs.h. */ | |
39580 | ||
39581 | #include <sys/time.h> | |
39582 | #include <unistd.h> | |
39583 | ||
39584 | int | |
39585 | main () | |
39586 | { | |
39587 | ||
39588 | struct timeval tv; | |
39589 | gettimeofday(&tv); | |
39590 | ||
39591 | ; | |
39592 | return 0; | |
39593 | } | |
39594 | _ACEOF | |
39595 | rm -f conftest.$ac_objext | |
39596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39597 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39598 | ac_status=$? |
ac1cb8d3 VS |
39599 | grep -v '^ *+' conftest.er1 >conftest.err |
39600 | rm -f conftest.er1 | |
39601 | cat conftest.err >&5 | |
a848cd7e SC |
39602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39603 | (exit $ac_status); } && | |
6ebeb4c7 | 39604 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39606 | (eval $ac_try) 2>&5 | |
39607 | ac_status=$? | |
39608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39609 | (exit $ac_status); }; } && | |
39610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39612 | (eval $ac_try) 2>&5 | |
39613 | ac_status=$? | |
39614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39615 | (exit $ac_status); }; }; then | |
39616 | wx_cv_func_gettimeofday_has_2_args=no | |
39617 | else | |
39618 | echo "$as_me: failed program was:" >&5 | |
39619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39620 | ||
39621 | ||
39622 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
39623 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
39624 | wx_cv_func_gettimeofday_has_2_args=unknown | |
39625 | ||
39626 | ||
39627 | fi | |
ac1cb8d3 | 39628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39629 | |
39630 | fi | |
ac1cb8d3 | 39631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39632 | ac_ext=c |
39633 | ac_cpp='$CPP $CPPFLAGS' | |
39634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39637 | ||
39638 | ||
39639 | fi | |
39640 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
39641 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
39642 | ||
39643 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
39644 | cat >>confdefs.h <<\_ACEOF | |
39645 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
39646 | _ACEOF | |
39647 | ||
39648 | fi | |
39649 | fi | |
39650 | ||
39651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
39652 | fi | |
39653 | ||
39654 | ||
39655 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39656 | if test "$wxUSE_MGL" = "1"; then | |
39657 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
39658 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
39659 | wxUSE_SOCKETS="no" | |
39660 | fi | |
39661 | fi | |
39662 | ||
39663 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39664 | if test "$TOOLKIT" != "MSW"; then | |
39665 | echo "$as_me:$LINENO: checking for socket" >&5 | |
39666 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
39667 | if test "${ac_cv_func_socket+set}" = set; then | |
39668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39669 | else | |
39670 | cat >conftest.$ac_ext <<_ACEOF | |
39671 | /* confdefs.h. */ | |
39672 | _ACEOF | |
39673 | cat confdefs.h >>conftest.$ac_ext | |
39674 | cat >>conftest.$ac_ext <<_ACEOF | |
39675 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39676 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
39677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39678 | #define socket innocuous_socket | |
39679 | ||
a848cd7e SC |
39680 | /* System header to define __stub macros and hopefully few prototypes, |
39681 | which can conflict with char socket (); below. | |
39682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39683 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39684 | |
a848cd7e SC |
39685 | #ifdef __STDC__ |
39686 | # include <limits.h> | |
39687 | #else | |
39688 | # include <assert.h> | |
39689 | #endif | |
ac1cb8d3 VS |
39690 | |
39691 | #undef socket | |
39692 | ||
a848cd7e SC |
39693 | /* Override any gcc2 internal prototype to avoid an error. */ |
39694 | #ifdef __cplusplus | |
39695 | extern "C" | |
39696 | { | |
39697 | #endif | |
39698 | /* We use char because int might match the return type of a gcc2 | |
39699 | builtin and then its argument prototype would still apply. */ | |
39700 | char socket (); | |
39701 | /* The GNU C library defines this for functions which it implements | |
39702 | to always fail with ENOSYS. Some functions are actually named | |
39703 | something starting with __ and the normal name is an alias. */ | |
39704 | #if defined (__stub_socket) || defined (__stub___socket) | |
39705 | choke me | |
39706 | #else | |
39707 | char (*f) () = socket; | |
39708 | #endif | |
39709 | #ifdef __cplusplus | |
39710 | } | |
39711 | #endif | |
39712 | ||
39713 | int | |
39714 | main () | |
39715 | { | |
39716 | return f != socket; | |
39717 | ; | |
39718 | return 0; | |
39719 | } | |
39720 | _ACEOF | |
39721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39723 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39724 | ac_status=$? |
ac1cb8d3 VS |
39725 | grep -v '^ *+' conftest.er1 >conftest.err |
39726 | rm -f conftest.er1 | |
39727 | cat conftest.err >&5 | |
a848cd7e SC |
39728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39729 | (exit $ac_status); } && | |
6ebeb4c7 | 39730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39732 | (eval $ac_try) 2>&5 | |
39733 | ac_status=$? | |
39734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39735 | (exit $ac_status); }; } && | |
39736 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39738 | (eval $ac_try) 2>&5 | |
39739 | ac_status=$? | |
39740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39741 | (exit $ac_status); }; }; then | |
39742 | ac_cv_func_socket=yes | |
39743 | else | |
39744 | echo "$as_me: failed program was:" >&5 | |
39745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39746 | ||
39747 | ac_cv_func_socket=no | |
39748 | fi | |
ac1cb8d3 VS |
39749 | rm -f conftest.err conftest.$ac_objext \ |
39750 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39751 | fi |
39752 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
39753 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
39754 | if test $ac_cv_func_socket = yes; then | |
39755 | : | |
39756 | else | |
39757 | ||
39758 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
39759 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
39760 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
39761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39762 | else | |
39763 | ac_check_lib_save_LIBS=$LIBS | |
39764 | LIBS="-lsocket $LIBS" | |
39765 | cat >conftest.$ac_ext <<_ACEOF | |
39766 | /* confdefs.h. */ | |
39767 | _ACEOF | |
39768 | cat confdefs.h >>conftest.$ac_ext | |
39769 | cat >>conftest.$ac_ext <<_ACEOF | |
39770 | /* end confdefs.h. */ | |
39771 | ||
39772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39773 | #ifdef __cplusplus | |
39774 | extern "C" | |
39775 | #endif | |
39776 | /* We use char because int might match the return type of a gcc2 | |
39777 | builtin and then its argument prototype would still apply. */ | |
39778 | char socket (); | |
39779 | int | |
39780 | main () | |
39781 | { | |
39782 | socket (); | |
39783 | ; | |
39784 | return 0; | |
39785 | } | |
39786 | _ACEOF | |
39787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39789 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39790 | ac_status=$? |
ac1cb8d3 VS |
39791 | grep -v '^ *+' conftest.er1 >conftest.err |
39792 | rm -f conftest.er1 | |
39793 | cat conftest.err >&5 | |
a848cd7e SC |
39794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39795 | (exit $ac_status); } && | |
6ebeb4c7 | 39796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39798 | (eval $ac_try) 2>&5 | |
39799 | ac_status=$? | |
39800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39801 | (exit $ac_status); }; } && | |
39802 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39804 | (eval $ac_try) 2>&5 | |
39805 | ac_status=$? | |
39806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39807 | (exit $ac_status); }; }; then | |
39808 | ac_cv_lib_socket_socket=yes | |
39809 | else | |
39810 | echo "$as_me: failed program was:" >&5 | |
39811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39812 | ||
39813 | ac_cv_lib_socket_socket=no | |
39814 | fi | |
ac1cb8d3 VS |
39815 | rm -f conftest.err conftest.$ac_objext \ |
39816 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39817 | LIBS=$ac_check_lib_save_LIBS |
39818 | fi | |
39819 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
39820 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
39821 | if test $ac_cv_lib_socket_socket = yes; then | |
39822 | if test "$INET_LINK" != " -lsocket"; then | |
39823 | INET_LINK="$INET_LINK -lsocket" | |
39824 | fi | |
39825 | else | |
39826 | ||
39827 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
39828 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
39829 | wxUSE_SOCKETS=no | |
39830 | ||
39831 | ||
39832 | fi | |
39833 | ||
39834 | ||
39835 | ||
39836 | fi | |
39837 | ||
39838 | fi | |
39839 | fi | |
39840 | ||
39841 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
39842 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
39843 | ac_ext=cc |
39844 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39848 | ||
39849 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
39850 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
39851 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
39852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39853 | else | |
39854 | ||
39855 | cat >conftest.$ac_ext <<_ACEOF | |
39856 | /* confdefs.h. */ | |
39857 | _ACEOF | |
39858 | cat confdefs.h >>conftest.$ac_ext | |
39859 | cat >>conftest.$ac_ext <<_ACEOF | |
39860 | /* end confdefs.h. */ | |
39861 | ||
39862 | #include <sys/types.h> | |
39863 | #include <sys/socket.h> | |
39864 | ||
39865 | int | |
39866 | main () | |
39867 | { | |
39868 | ||
39869 | socklen_t len; | |
39870 | getsockname(0, 0, &len); | |
39871 | ||
39872 | ; | |
39873 | return 0; | |
39874 | } | |
39875 | _ACEOF | |
39876 | rm -f conftest.$ac_objext | |
39877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39878 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39879 | ac_status=$? |
ac1cb8d3 VS |
39880 | grep -v '^ *+' conftest.er1 >conftest.err |
39881 | rm -f conftest.er1 | |
39882 | cat conftest.err >&5 | |
a848cd7e SC |
39883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39884 | (exit $ac_status); } && | |
6ebeb4c7 | 39885 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39887 | (eval $ac_try) 2>&5 | |
39888 | ac_status=$? | |
39889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39890 | (exit $ac_status); }; } && | |
39891 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39893 | (eval $ac_try) 2>&5 | |
39894 | ac_status=$? | |
39895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39896 | (exit $ac_status); }; }; then | |
39897 | wx_cv_type_getsockname3=socklen_t | |
39898 | else | |
39899 | echo "$as_me: failed program was:" >&5 | |
39900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39901 | ||
39902 | ||
6459a506 | 39903 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 39904 | if test "$GCC" = yes ; then |
6459a506 | 39905 | CXXFLAGS="$CXXFLAGS -Werror" |
a848cd7e SC |
39906 | fi |
39907 | ||
39908 | cat >conftest.$ac_ext <<_ACEOF | |
39909 | /* confdefs.h. */ | |
39910 | _ACEOF | |
39911 | cat confdefs.h >>conftest.$ac_ext | |
39912 | cat >>conftest.$ac_ext <<_ACEOF | |
39913 | /* end confdefs.h. */ | |
39914 | ||
39915 | #include <sys/types.h> | |
39916 | #include <sys/socket.h> | |
39917 | ||
39918 | int | |
39919 | main () | |
39920 | { | |
39921 | ||
39922 | size_t len; | |
39923 | getsockname(0, 0, &len); | |
39924 | ||
39925 | ; | |
39926 | return 0; | |
39927 | } | |
39928 | _ACEOF | |
39929 | rm -f conftest.$ac_objext | |
39930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39932 | ac_status=$? |
ac1cb8d3 VS |
39933 | grep -v '^ *+' conftest.er1 >conftest.err |
39934 | rm -f conftest.er1 | |
39935 | cat conftest.err >&5 | |
a848cd7e SC |
39936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39937 | (exit $ac_status); } && | |
6ebeb4c7 | 39938 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39940 | (eval $ac_try) 2>&5 | |
39941 | ac_status=$? | |
39942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39943 | (exit $ac_status); }; } && | |
39944 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39946 | (eval $ac_try) 2>&5 | |
39947 | ac_status=$? | |
39948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39949 | (exit $ac_status); }; }; then | |
39950 | wx_cv_type_getsockname3=size_t | |
39951 | else | |
39952 | echo "$as_me: failed program was:" >&5 | |
39953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39954 | ||
39955 | cat >conftest.$ac_ext <<_ACEOF | |
39956 | /* confdefs.h. */ | |
39957 | _ACEOF | |
39958 | cat confdefs.h >>conftest.$ac_ext | |
39959 | cat >>conftest.$ac_ext <<_ACEOF | |
39960 | /* end confdefs.h. */ | |
39961 | ||
39962 | #include <sys/types.h> | |
39963 | #include <sys/socket.h> | |
39964 | ||
39965 | int | |
39966 | main () | |
39967 | { | |
39968 | ||
39969 | int len; | |
39970 | getsockname(0, 0, &len); | |
39971 | ||
39972 | ; | |
39973 | return 0; | |
39974 | } | |
39975 | _ACEOF | |
39976 | rm -f conftest.$ac_objext | |
39977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39978 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39979 | ac_status=$? |
ac1cb8d3 VS |
39980 | grep -v '^ *+' conftest.er1 >conftest.err |
39981 | rm -f conftest.er1 | |
39982 | cat conftest.err >&5 | |
a848cd7e SC |
39983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39984 | (exit $ac_status); } && | |
6ebeb4c7 | 39985 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39987 | (eval $ac_try) 2>&5 | |
39988 | ac_status=$? | |
39989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39990 | (exit $ac_status); }; } && | |
39991 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39993 | (eval $ac_try) 2>&5 | |
39994 | ac_status=$? | |
39995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39996 | (exit $ac_status); }; }; then | |
39997 | wx_cv_type_getsockname3=int | |
39998 | else | |
39999 | echo "$as_me: failed program was:" >&5 | |
40000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40001 | ||
40002 | wx_cv_type_getsockname3=unknown | |
40003 | ||
40004 | fi | |
ac1cb8d3 | 40005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40006 | |
40007 | fi | |
ac1cb8d3 | 40008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 40009 | |
6459a506 | 40010 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
40011 | |
40012 | ||
40013 | fi | |
ac1cb8d3 | 40014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40015 | |
40016 | fi | |
40017 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
40018 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
40019 | ||
40020 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
40021 | wxUSE_SOCKETS=no | |
40022 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40023 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40024 | else | |
40025 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 40026 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
40027 | _ACEOF |
40028 | ||
40029 | fi | |
40030 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
40031 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
40032 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
40033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40034 | else | |
40035 | ||
40036 | cat >conftest.$ac_ext <<_ACEOF | |
40037 | /* confdefs.h. */ | |
40038 | _ACEOF | |
40039 | cat confdefs.h >>conftest.$ac_ext | |
40040 | cat >>conftest.$ac_ext <<_ACEOF | |
40041 | /* end confdefs.h. */ | |
40042 | ||
40043 | #include <sys/types.h> | |
40044 | #include <sys/socket.h> | |
40045 | ||
40046 | int | |
40047 | main () | |
40048 | { | |
40049 | ||
40050 | socklen_t len; | |
40051 | getsockopt(0, 0, 0, 0, &len); | |
40052 | ||
40053 | ; | |
40054 | return 0; | |
40055 | } | |
40056 | _ACEOF | |
40057 | rm -f conftest.$ac_objext | |
40058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40059 | (eval $ac_compile) 2>conftest.er1 | |
40060 | ac_status=$? | |
40061 | grep -v '^ *+' conftest.er1 >conftest.err | |
40062 | rm -f conftest.er1 | |
40063 | cat conftest.err >&5 | |
40064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40065 | (exit $ac_status); } && | |
6ebeb4c7 | 40066 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40068 | (eval $ac_try) 2>&5 | |
40069 | ac_status=$? | |
40070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40071 | (exit $ac_status); }; } && | |
40072 | { ac_try='test -s conftest.$ac_objext' | |
40073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40074 | (eval $ac_try) 2>&5 | |
40075 | ac_status=$? | |
40076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40077 | (exit $ac_status); }; }; then | |
40078 | wx_cv_type_getsockopt5=socklen_t | |
40079 | else | |
40080 | echo "$as_me: failed program was:" >&5 | |
40081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40082 | ||
40083 | ||
6459a506 | 40084 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 40085 | if test "$GCC" = yes ; then |
6459a506 | 40086 | CXXFLAGS="$CXXFLAGS -Werror" |
5b674b9d DE |
40087 | fi |
40088 | ||
40089 | cat >conftest.$ac_ext <<_ACEOF | |
40090 | /* confdefs.h. */ | |
40091 | _ACEOF | |
40092 | cat confdefs.h >>conftest.$ac_ext | |
40093 | cat >>conftest.$ac_ext <<_ACEOF | |
40094 | /* end confdefs.h. */ | |
40095 | ||
40096 | #include <sys/types.h> | |
40097 | #include <sys/socket.h> | |
40098 | ||
40099 | int | |
40100 | main () | |
40101 | { | |
40102 | ||
40103 | size_t len; | |
40104 | getsockopt(0, 0, 0, 0, &len); | |
40105 | ||
40106 | ; | |
40107 | return 0; | |
40108 | } | |
40109 | _ACEOF | |
40110 | rm -f conftest.$ac_objext | |
40111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40112 | (eval $ac_compile) 2>conftest.er1 | |
40113 | ac_status=$? | |
40114 | grep -v '^ *+' conftest.er1 >conftest.err | |
40115 | rm -f conftest.er1 | |
40116 | cat conftest.err >&5 | |
40117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40118 | (exit $ac_status); } && | |
6ebeb4c7 | 40119 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40121 | (eval $ac_try) 2>&5 | |
40122 | ac_status=$? | |
40123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40124 | (exit $ac_status); }; } && | |
40125 | { ac_try='test -s conftest.$ac_objext' | |
40126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40127 | (eval $ac_try) 2>&5 | |
40128 | ac_status=$? | |
40129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40130 | (exit $ac_status); }; }; then | |
40131 | wx_cv_type_getsockopt5=size_t | |
40132 | else | |
40133 | echo "$as_me: failed program was:" >&5 | |
40134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40135 | ||
40136 | cat >conftest.$ac_ext <<_ACEOF | |
40137 | /* confdefs.h. */ | |
40138 | _ACEOF | |
40139 | cat confdefs.h >>conftest.$ac_ext | |
40140 | cat >>conftest.$ac_ext <<_ACEOF | |
40141 | /* end confdefs.h. */ | |
40142 | ||
40143 | #include <sys/types.h> | |
40144 | #include <sys/socket.h> | |
40145 | ||
40146 | int | |
40147 | main () | |
40148 | { | |
40149 | ||
40150 | int len; | |
40151 | getsockopt(0, 0, 0, 0, &len); | |
40152 | ||
40153 | ; | |
40154 | return 0; | |
40155 | } | |
40156 | _ACEOF | |
40157 | rm -f conftest.$ac_objext | |
40158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40159 | (eval $ac_compile) 2>conftest.er1 | |
40160 | ac_status=$? | |
40161 | grep -v '^ *+' conftest.er1 >conftest.err | |
40162 | rm -f conftest.er1 | |
40163 | cat conftest.err >&5 | |
40164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40165 | (exit $ac_status); } && | |
6ebeb4c7 | 40166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40168 | (eval $ac_try) 2>&5 | |
40169 | ac_status=$? | |
40170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40171 | (exit $ac_status); }; } && | |
40172 | { ac_try='test -s conftest.$ac_objext' | |
40173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40174 | (eval $ac_try) 2>&5 | |
40175 | ac_status=$? | |
40176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40177 | (exit $ac_status); }; }; then | |
40178 | wx_cv_type_getsockopt5=int | |
40179 | else | |
40180 | echo "$as_me: failed program was:" >&5 | |
40181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40182 | ||
40183 | wx_cv_type_getsockopt5=unknown | |
40184 | ||
40185 | fi | |
40186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40187 | ||
40188 | fi | |
40189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40190 | ||
6459a506 | 40191 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
40192 | |
40193 | ||
40194 | fi | |
40195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40196 | ||
40197 | fi | |
40198 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
40199 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
40200 | ||
40201 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
40202 | wxUSE_SOCKETS=no | |
40203 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40204 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40205 | else | |
40206 | cat >>confdefs.h <<_ACEOF | |
40207 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
40208 | _ACEOF |
40209 | ||
40210 | fi | |
4d4ff94c VZ |
40211 | ac_ext=c |
40212 | ac_cpp='$CPP $CPPFLAGS' | |
40213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40216 | ||
a848cd7e SC |
40217 | fi |
40218 | fi | |
40219 | ||
40220 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
40221 | cat >>confdefs.h <<\_ACEOF | |
40222 | #define wxUSE_SOCKETS 1 | |
40223 | _ACEOF | |
40224 | ||
40225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
40226 | fi | |
40227 | ||
40228 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
40229 | if test "$wxUSE_SOCKETS" != "yes"; then | |
40230 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
40231 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
40232 | wxUSE_PROTOCOL=no | |
40233 | fi | |
40234 | fi | |
40235 | ||
40236 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
40237 | cat >>confdefs.h <<\_ACEOF | |
40238 | #define wxUSE_PROTOCOL 1 | |
40239 | _ACEOF | |
40240 | ||
40241 | ||
40242 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
40243 | cat >>confdefs.h <<\_ACEOF | |
40244 | #define wxUSE_PROTOCOL_HTTP 1 | |
40245 | _ACEOF | |
40246 | ||
40247 | fi | |
40248 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
40249 | cat >>confdefs.h <<\_ACEOF | |
40250 | #define wxUSE_PROTOCOL_FTP 1 | |
40251 | _ACEOF | |
40252 | ||
40253 | fi | |
40254 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
40255 | cat >>confdefs.h <<\_ACEOF | |
40256 | #define wxUSE_PROTOCOL_FILE 1 | |
40257 | _ACEOF | |
40258 | ||
40259 | fi | |
40260 | else | |
40261 | if test "$wxUSE_FS_INET" = "yes"; then | |
40262 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
40263 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
40264 | wxUSE_FS_INET="no" | |
40265 | fi | |
40266 | fi | |
40267 | ||
40268 | if test "$wxUSE_URL" = "yes"; then | |
40269 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
40270 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
40271 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
40272 | wxUSE_URL=no | |
40273 | fi | |
40274 | if test "$wxUSE_URL" = "yes"; then | |
40275 | cat >>confdefs.h <<\_ACEOF | |
40276 | #define wxUSE_URL 1 | |
40277 | _ACEOF | |
40278 | ||
40279 | fi | |
40280 | fi | |
40281 | ||
40282 | if test "$wxUSE_FS_INET" = "yes"; then | |
40283 | cat >>confdefs.h <<\_ACEOF | |
40284 | #define wxUSE_FS_INET 1 | |
40285 | _ACEOF | |
40286 | ||
40287 | fi | |
40288 | ||
40289 | ||
ee45c548 MW |
40290 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
40291 | wxUSE_JOYSTICK=no | |
40292 | ||
40293 | if test "$TOOLKIT" = "MSW"; then | |
40294 | wxUSE_JOYSTICK=yes | |
40295 | ||
40296 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
40297 | if test "$USE_DARWIN" = 1; then | |
40298 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
40299 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
40300 | ac_ext=cc | |
40301 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40302 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40303 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40304 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40305 | ||
40306 | cat >conftest.$ac_ext <<_ACEOF | |
40307 | /* confdefs.h. */ | |
40308 | _ACEOF | |
40309 | cat confdefs.h >>conftest.$ac_ext | |
40310 | cat >>conftest.$ac_ext <<_ACEOF | |
40311 | /* end confdefs.h. */ | |
40312 | #include <IOKit/hid/IOHIDLib.h> | |
40313 | int | |
40314 | main () | |
40315 | { | |
40316 | IOHIDQueueInterface *qi = NULL; | |
40317 | IOHIDCallbackFunction cb = NULL; | |
40318 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
40319 | ; | |
40320 | return 0; | |
40321 | } | |
40322 | _ACEOF | |
40323 | rm -f conftest.$ac_objext | |
40324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40325 | (eval $ac_compile) 2>conftest.er1 | |
40326 | ac_status=$? | |
40327 | grep -v '^ *+' conftest.er1 >conftest.err | |
40328 | rm -f conftest.er1 | |
40329 | cat conftest.err >&5 | |
40330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40331 | (exit $ac_status); } && | |
6ebeb4c7 | 40332 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
40333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40334 | (eval $ac_try) 2>&5 | |
40335 | ac_status=$? | |
40336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40337 | (exit $ac_status); }; } && | |
40338 | { ac_try='test -s conftest.$ac_objext' | |
40339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40340 | (eval $ac_try) 2>&5 | |
40341 | ac_status=$? | |
40342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40343 | (exit $ac_status); }; }; then | |
40344 | wxUSE_JOYSTICK=yes | |
a848cd7e | 40345 | |
ee45c548 MW |
40346 | else |
40347 | echo "$as_me: failed program was:" >&5 | |
40348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40349 | ||
40350 | fi | |
40351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40352 | ac_ext=c | |
40353 | ac_cpp='$CPP $CPPFLAGS' | |
40354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40357 | ||
40358 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
40359 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
40360 | fi | |
40361 | ||
40362 | else | |
a848cd7e SC |
40363 | |
40364 | for ac_header in linux/joystick.h | |
40365 | do | |
40366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40368 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40372 | fi | |
40373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40375 | else | |
40376 | # Is the header compilable? | |
40377 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
40378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
40379 | cat >conftest.$ac_ext <<_ACEOF | |
40380 | /* confdefs.h. */ | |
40381 | _ACEOF | |
40382 | cat confdefs.h >>conftest.$ac_ext | |
40383 | cat >>conftest.$ac_ext <<_ACEOF | |
40384 | /* end confdefs.h. */ | |
40385 | $ac_includes_default | |
40386 | #include <$ac_header> | |
40387 | _ACEOF | |
40388 | rm -f conftest.$ac_objext | |
40389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40391 | ac_status=$? |
ac1cb8d3 VS |
40392 | grep -v '^ *+' conftest.er1 >conftest.err |
40393 | rm -f conftest.er1 | |
40394 | cat conftest.err >&5 | |
a848cd7e SC |
40395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40396 | (exit $ac_status); } && | |
6ebeb4c7 | 40397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40399 | (eval $ac_try) 2>&5 | |
40400 | ac_status=$? | |
40401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40402 | (exit $ac_status); }; } && | |
40403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40405 | (eval $ac_try) 2>&5 | |
40406 | ac_status=$? | |
40407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40408 | (exit $ac_status); }; }; then | |
40409 | ac_header_compiler=yes | |
40410 | else | |
40411 | echo "$as_me: failed program was:" >&5 | |
40412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40413 | ||
40414 | ac_header_compiler=no | |
40415 | fi | |
ac1cb8d3 | 40416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40417 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
40418 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
40419 | ||
40420 | # Is the header present? | |
40421 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
40422 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
40423 | cat >conftest.$ac_ext <<_ACEOF | |
40424 | /* confdefs.h. */ | |
40425 | _ACEOF | |
40426 | cat confdefs.h >>conftest.$ac_ext | |
40427 | cat >>conftest.$ac_ext <<_ACEOF | |
40428 | /* end confdefs.h. */ | |
40429 | #include <$ac_header> | |
40430 | _ACEOF | |
40431 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40432 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
40433 | ac_status=$? | |
40434 | grep -v '^ *+' conftest.er1 >conftest.err | |
40435 | rm -f conftest.er1 | |
40436 | cat conftest.err >&5 | |
40437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40438 | (exit $ac_status); } >/dev/null; then | |
40439 | if test -s conftest.err; then | |
40440 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 40441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
40442 | else |
40443 | ac_cpp_err= | |
40444 | fi | |
40445 | else | |
40446 | ac_cpp_err=yes | |
40447 | fi | |
40448 | if test -z "$ac_cpp_err"; then | |
40449 | ac_header_preproc=yes | |
40450 | else | |
40451 | echo "$as_me: failed program was:" >&5 | |
40452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40453 | ||
40454 | ac_header_preproc=no | |
40455 | fi | |
40456 | rm -f conftest.err conftest.$ac_ext | |
40457 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40458 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40459 | ||
40460 | # So? What about this header? | |
ac1cb8d3 VS |
40461 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
40462 | yes:no: ) | |
a848cd7e SC |
40463 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40464 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40466 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40467 | ac_header_preproc=yes | |
a848cd7e | 40468 | ;; |
ac1cb8d3 | 40469 | no:yes:* ) |
a848cd7e SC |
40470 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40471 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40472 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40473 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40474 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40475 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40476 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40477 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40479 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40480 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40481 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40482 | ( |
40483 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40484 | ## ----------------------------------------- ## |
40485 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40486 | ## ----------------------------------------- ## | |
a848cd7e SC |
40487 | _ASBOX |
40488 | ) | | |
40489 | sed "s/^/$as_me: WARNING: /" >&2 | |
40490 | ;; | |
40491 | esac | |
40492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40496 | else | |
ac1cb8d3 | 40497 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40498 | fi |
40499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40501 | ||
40502 | fi | |
40503 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40504 | cat >>confdefs.h <<_ACEOF | |
40505 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40506 | _ACEOF | |
ee45c548 | 40507 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
40508 | fi |
40509 | ||
40510 | done | |
40511 | ||
ee45c548 | 40512 | fi |
4cb1d3da | 40513 | |
ee45c548 MW |
40514 | if test "$wxUSE_JOYSTICK" = "yes"; then |
40515 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40516 | #define wxUSE_JOYSTICK 1 |
40517 | _ACEOF | |
40518 | ||
ee45c548 MW |
40519 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
40520 | else | |
40521 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
40522 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
40523 | fi |
40524 | fi | |
40525 | ||
40526 | ||
40527 | ||
40528 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
40529 | cat >>confdefs.h <<\_ACEOF | |
40530 | #define wxUSE_FONTMAP 1 | |
40531 | _ACEOF | |
40532 | ||
40533 | fi | |
40534 | ||
40535 | if test "$wxUSE_UNICODE" = "yes" ; then | |
40536 | cat >>confdefs.h <<\_ACEOF | |
40537 | #define wxUSE_UNICODE 1 | |
40538 | _ACEOF | |
40539 | ||
40540 | ||
40541 | if test "$USE_WIN32" != 1; then | |
40542 | wxUSE_UNICODE_MSLU=no | |
40543 | fi | |
40544 | ||
40545 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
40546 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
40547 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
40548 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
40549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40550 | else | |
40551 | ac_check_lib_save_LIBS=$LIBS | |
40552 | LIBS="-lunicows $LIBS" | |
40553 | cat >conftest.$ac_ext <<_ACEOF | |
40554 | /* confdefs.h. */ | |
40555 | _ACEOF | |
40556 | cat confdefs.h >>conftest.$ac_ext | |
40557 | cat >>conftest.$ac_ext <<_ACEOF | |
40558 | /* end confdefs.h. */ | |
40559 | ||
40560 | ||
40561 | int | |
40562 | main () | |
40563 | { | |
40564 | main (); | |
40565 | ; | |
40566 | return 0; | |
40567 | } | |
40568 | _ACEOF | |
40569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40571 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40572 | ac_status=$? |
ac1cb8d3 VS |
40573 | grep -v '^ *+' conftest.er1 >conftest.err |
40574 | rm -f conftest.er1 | |
40575 | cat conftest.err >&5 | |
a848cd7e SC |
40576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40577 | (exit $ac_status); } && | |
6ebeb4c7 | 40578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40580 | (eval $ac_try) 2>&5 | |
40581 | ac_status=$? | |
40582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40583 | (exit $ac_status); }; } && | |
40584 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40586 | (eval $ac_try) 2>&5 | |
40587 | ac_status=$? | |
40588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40589 | (exit $ac_status); }; }; then | |
40590 | ac_cv_lib_unicows_main=yes | |
40591 | else | |
40592 | echo "$as_me: failed program was:" >&5 | |
40593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40594 | ||
40595 | ac_cv_lib_unicows_main=no | |
40596 | fi | |
ac1cb8d3 VS |
40597 | rm -f conftest.err conftest.$ac_objext \ |
40598 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40599 | LIBS=$ac_check_lib_save_LIBS |
40600 | fi | |
40601 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
40602 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
40603 | if test $ac_cv_lib_unicows_main = yes; then | |
40604 | ||
40605 | cat >>confdefs.h <<\_ACEOF | |
40606 | #define wxUSE_UNICODE_MSLU 1 | |
40607 | _ACEOF | |
40608 | ||
40609 | ||
40610 | else | |
40611 | ||
40612 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40613 | Applications will only run on Windows NT/2000/XP!" >&5 | |
40614 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40615 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
40616 | wxUSE_UNICODE_MSLU=no | |
40617 | ||
40618 | fi | |
40619 | ||
40620 | fi | |
40621 | fi | |
40622 | ||
40623 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
40624 | cat >>confdefs.h <<\_ACEOF | |
40625 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
40626 | _ACEOF | |
40627 | ||
40628 | fi | |
40629 | ||
40630 | ||
40631 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
40632 | cat >>confdefs.h <<\_ACEOF | |
40633 | #define wxUSE_POSTSCRIPT 1 | |
40634 | _ACEOF | |
40635 | ||
40636 | fi | |
40637 | ||
40638 | cat >>confdefs.h <<\_ACEOF | |
40639 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
40640 | _ACEOF | |
40641 | ||
40642 | ||
40643 | cat >>confdefs.h <<\_ACEOF | |
40644 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
40645 | _ACEOF | |
40646 | ||
40647 | ||
40648 | ||
40649 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
40650 | cat >>confdefs.h <<\_ACEOF | |
40651 | #define wxUSE_CONSTRAINTS 1 | |
40652 | _ACEOF | |
40653 | ||
40654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
40655 | fi | |
40656 | ||
8a7b1113 VZ |
40657 | if test "$wxUSE_MDI" = "yes"; then |
40658 | cat >>confdefs.h <<\_ACEOF | |
40659 | #define wxUSE_MDI 1 | |
40660 | _ACEOF | |
40661 | ||
40662 | ||
40663 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40664 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40665 | #define wxUSE_MDI_ARCHITECTURE 1 |
40666 | _ACEOF | |
40667 | ||
8a7b1113 VZ |
40668 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
40669 | fi | |
a848cd7e SC |
40670 | fi |
40671 | ||
40672 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
40673 | cat >>confdefs.h <<\_ACEOF | |
40674 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
40675 | _ACEOF | |
40676 | ||
40677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
40678 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40679 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
40680 | fi | |
40681 | fi | |
40682 | ||
40683 | if test "$wxUSE_HELP" = "yes"; then | |
40684 | cat >>confdefs.h <<\_ACEOF | |
40685 | #define wxUSE_HELP 1 | |
40686 | _ACEOF | |
40687 | ||
40688 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
40689 | ||
40690 | if test "$wxUSE_MSW" = 1; then | |
40691 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
40692 | cat >>confdefs.h <<\_ACEOF | |
40693 | #define wxUSE_MS_HTML_HELP 1 | |
40694 | _ACEOF | |
40695 | ||
40696 | fi | |
40697 | fi | |
40698 | ||
40699 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
40700 | if test "$wxUSE_HTML" = "yes"; then | |
40701 | cat >>confdefs.h <<\_ACEOF | |
40702 | #define wxUSE_WXHTML_HELP 1 | |
40703 | _ACEOF | |
40704 | ||
40705 | else | |
40706 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
40707 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
40708 | wxUSE_WXHTML_HELP=no | |
40709 | fi | |
40710 | fi | |
40711 | fi | |
40712 | ||
40713 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40714 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
40715 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
40716 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
40717 | else | |
40718 | cat >>confdefs.h <<\_ACEOF | |
40719 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
40720 | _ACEOF | |
40721 | ||
40722 | fi | |
40723 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
40724 | fi | |
40725 | ||
40726 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
40727 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
40728 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
40729 | { (exit 1); exit 1; }; } | |
40730 | fi | |
40731 | ||
40732 | ||
efdf6afe VZ |
40733 | if test "$wxUSE_METAFILE" = "yes"; then |
40734 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
40735 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
40736 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
40737 | wxUSE_METAFILE=no | |
40738 | fi | |
40739 | fi | |
40740 | ||
40741 | ||
a848cd7e SC |
40742 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
40743 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
40744 | -o "$wxUSE_OLE" = "yes" \ | |
40745 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
40746 | ||
40747 | for ac_header in ole2.h | |
40748 | do | |
40749 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40755 | fi | |
40756 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40757 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40758 | else | |
40759 | # Is the header compilable? | |
40760 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
40761 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
40762 | cat >conftest.$ac_ext <<_ACEOF | |
40763 | /* confdefs.h. */ | |
40764 | _ACEOF | |
40765 | cat confdefs.h >>conftest.$ac_ext | |
40766 | cat >>conftest.$ac_ext <<_ACEOF | |
40767 | /* end confdefs.h. */ | |
40768 | $ac_includes_default | |
40769 | #include <$ac_header> | |
40770 | _ACEOF | |
40771 | rm -f conftest.$ac_objext | |
40772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40774 | ac_status=$? |
ac1cb8d3 VS |
40775 | grep -v '^ *+' conftest.er1 >conftest.err |
40776 | rm -f conftest.er1 | |
40777 | cat conftest.err >&5 | |
a848cd7e SC |
40778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40779 | (exit $ac_status); } && | |
6ebeb4c7 | 40780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40782 | (eval $ac_try) 2>&5 | |
40783 | ac_status=$? | |
40784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40785 | (exit $ac_status); }; } && | |
40786 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40788 | (eval $ac_try) 2>&5 | |
40789 | ac_status=$? | |
40790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40791 | (exit $ac_status); }; }; then | |
40792 | ac_header_compiler=yes | |
40793 | else | |
40794 | echo "$as_me: failed program was:" >&5 | |
40795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40796 | ||
40797 | ac_header_compiler=no | |
40798 | fi | |
ac1cb8d3 | 40799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40800 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
40801 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
40802 | ||
40803 | # Is the header present? | |
40804 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
40805 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
40806 | cat >conftest.$ac_ext <<_ACEOF | |
40807 | /* confdefs.h. */ | |
40808 | _ACEOF | |
40809 | cat confdefs.h >>conftest.$ac_ext | |
40810 | cat >>conftest.$ac_ext <<_ACEOF | |
40811 | /* end confdefs.h. */ | |
40812 | #include <$ac_header> | |
40813 | _ACEOF | |
40814 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40815 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
40816 | ac_status=$? | |
40817 | grep -v '^ *+' conftest.er1 >conftest.err | |
40818 | rm -f conftest.er1 | |
40819 | cat conftest.err >&5 | |
40820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40821 | (exit $ac_status); } >/dev/null; then | |
40822 | if test -s conftest.err; then | |
40823 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 40824 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
40825 | else |
40826 | ac_cpp_err= | |
40827 | fi | |
40828 | else | |
40829 | ac_cpp_err=yes | |
40830 | fi | |
40831 | if test -z "$ac_cpp_err"; then | |
40832 | ac_header_preproc=yes | |
40833 | else | |
40834 | echo "$as_me: failed program was:" >&5 | |
40835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40836 | ||
40837 | ac_header_preproc=no | |
40838 | fi | |
40839 | rm -f conftest.err conftest.$ac_ext | |
40840 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40841 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40842 | ||
40843 | # So? What about this header? | |
ac1cb8d3 VS |
40844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
40845 | yes:no: ) | |
a848cd7e SC |
40846 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40847 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40848 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40849 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40850 | ac_header_preproc=yes | |
a848cd7e | 40851 | ;; |
ac1cb8d3 | 40852 | no:yes:* ) |
a848cd7e SC |
40853 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40854 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40855 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40856 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40857 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40858 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40859 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40860 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40862 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40863 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40864 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40865 | ( |
40866 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40867 | ## ----------------------------------------- ## |
40868 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40869 | ## ----------------------------------------- ## | |
a848cd7e SC |
40870 | _ASBOX |
40871 | ) | | |
40872 | sed "s/^/$as_me: WARNING: /" >&2 | |
40873 | ;; | |
40874 | esac | |
40875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40879 | else | |
ac1cb8d3 | 40880 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40881 | fi |
40882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40884 | ||
40885 | fi | |
40886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40887 | cat >>confdefs.h <<_ACEOF | |
40888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40889 | _ACEOF | |
40890 | ||
40891 | fi | |
40892 | ||
40893 | done | |
40894 | ||
40895 | ||
40896 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
40897 | if test "$GCC" = yes ; then | |
40898 | ||
40899 | ||
40900 | ac_ext=cc | |
40901 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40905 | ||
40906 | ||
40907 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
40908 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
40909 | cat >conftest.$ac_ext <<_ACEOF | |
40910 | /* confdefs.h. */ | |
40911 | _ACEOF | |
40912 | cat confdefs.h >>conftest.$ac_ext | |
40913 | cat >>conftest.$ac_ext <<_ACEOF | |
40914 | /* end confdefs.h. */ | |
40915 | #include <windows.h> | |
40916 | #include <ole2.h> | |
40917 | int | |
40918 | main () | |
40919 | { | |
40920 | ||
40921 | ; | |
40922 | return 0; | |
40923 | } | |
40924 | _ACEOF | |
40925 | rm -f conftest.$ac_objext | |
40926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40927 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40928 | ac_status=$? |
ac1cb8d3 VS |
40929 | grep -v '^ *+' conftest.er1 >conftest.err |
40930 | rm -f conftest.er1 | |
40931 | cat conftest.err >&5 | |
a848cd7e SC |
40932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40933 | (exit $ac_status); } && | |
6ebeb4c7 | 40934 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40936 | (eval $ac_try) 2>&5 | |
40937 | ac_status=$? | |
40938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40939 | (exit $ac_status); }; } && | |
40940 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40942 | (eval $ac_try) 2>&5 | |
40943 | ac_status=$? | |
40944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40945 | (exit $ac_status); }; }; then | |
40946 | echo "$as_me:$LINENO: result: no" >&5 | |
40947 | echo "${ECHO_T}no" >&6 | |
40948 | else | |
40949 | echo "$as_me: failed program was:" >&5 | |
40950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40951 | ||
40952 | echo "$as_me:$LINENO: result: yes" >&5 | |
40953 | echo "${ECHO_T}yes" >&6 | |
40954 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
40955 | fi | |
ac1cb8d3 | 40956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40957 | ac_ext=c |
40958 | ac_cpp='$CPP $CPPFLAGS' | |
40959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40962 | ||
a848cd7e SC |
40963 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
40964 | if test "$wxUSE_OLE" = "yes" ; then | |
40965 | cat >>confdefs.h <<\_ACEOF | |
40966 | #define wxUSE_OLE 1 | |
40967 | _ACEOF | |
40968 | ||
0b78747f | 40969 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
40970 | fi |
40971 | fi | |
40972 | ||
40973 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
40974 | cat >>confdefs.h <<\_ACEOF | |
40975 | #define wxUSE_DATAOBJ 1 | |
40976 | _ACEOF | |
40977 | ||
40978 | fi | |
40979 | else | |
40980 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
40981 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
40982 | ||
40983 | wxUSE_CLIPBOARD=no | |
40984 | wxUSE_DRAG_AND_DROP=no | |
40985 | wxUSE_DATAOBJ=no | |
40986 | wxUSE_OLE=no | |
40987 | fi | |
40988 | ||
40989 | if test "$wxUSE_METAFILE" = "yes"; then | |
40990 | cat >>confdefs.h <<\_ACEOF | |
40991 | #define wxUSE_METAFILE 1 | |
40992 | _ACEOF | |
40993 | ||
40994 | ||
40995 | cat >>confdefs.h <<\_ACEOF | |
40996 | #define wxUSE_ENH_METAFILE 1 | |
40997 | _ACEOF | |
40998 | ||
40999 | fi | |
41000 | fi | |
41001 | ||
41002 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 41003 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
41004 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
41005 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 41006 | wxUSE_IPC=no |
a848cd7e SC |
41007 | fi |
41008 | ||
0b78747f MW |
41009 | if test "$wxUSE_IPC" = "yes"; then |
41010 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41011 | #define wxUSE_IPC 1 |
41012 | _ACEOF | |
41013 | ||
0b78747f MW |
41014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
41015 | fi | |
a848cd7e SC |
41016 | fi |
41017 | ||
eb730a0c | 41018 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
41019 | if test "$wxUSE_MGL" = 1; then |
41020 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
41021 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
41022 | wxUSE_DATAOBJ=no | |
41023 | else | |
41024 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
41025 | #define wxUSE_DATAOBJ 1 |
41026 | _ACEOF | |
41027 | ||
2113bc77 | 41028 | fi |
eb730a0c JS |
41029 | else |
41030 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
41031 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
41032 | wxUSE_CLIPBOARD=no | |
41033 | wxUSE_DRAG_AND_DROP=no | |
41034 | fi | |
41035 | ||
a848cd7e SC |
41036 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
41037 | if test "$wxUSE_MGL" = 1; then | |
41038 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
41039 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
41040 | wxUSE_CLIPBOARD=no | |
41041 | fi | |
41042 | ||
41043 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
41044 | cat >>confdefs.h <<\_ACEOF | |
41045 | #define wxUSE_CLIPBOARD 1 | |
41046 | _ACEOF | |
41047 | ||
a848cd7e SC |
41048 | fi |
41049 | fi | |
41050 | ||
41051 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
41052 | if test "$wxUSE_GTK" = 1; then | |
41053 | if test "$WXGTK12" != 1; then | |
41054 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
41055 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
41056 | wxUSE_DRAG_AND_DROP=no | |
41057 | fi | |
41058 | fi | |
41059 | ||
41060 | if test "$wxUSE_MOTIF" = 1; then | |
41061 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
41062 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
41063 | wxUSE_DRAG_AND_DROP=no | |
41064 | fi | |
41065 | ||
41066 | if test "$wxUSE_X11" = 1; then | |
41067 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
41068 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
41069 | wxUSE_DRAG_AND_DROP=no | |
41070 | fi | |
41071 | ||
41072 | if test "$wxUSE_MGL" = 1; then | |
41073 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
41074 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
41075 | wxUSE_DRAG_AND_DROP=no | |
41076 | fi | |
41077 | ||
41078 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
41079 | cat >>confdefs.h <<\_ACEOF | |
41080 | #define wxUSE_DRAG_AND_DROP 1 | |
41081 | _ACEOF | |
41082 | ||
41083 | fi | |
41084 | ||
41085 | fi | |
41086 | ||
41087 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
41088 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
41089 | fi | |
41090 | ||
41091 | if test "$wxUSE_SPLINES" = "yes" ; then | |
41092 | cat >>confdefs.h <<\_ACEOF | |
41093 | #define wxUSE_SPLINES 1 | |
41094 | _ACEOF | |
41095 | ||
41096 | fi | |
41097 | ||
fbe2ca43 SN |
41098 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
41099 | cat >>confdefs.h <<\_ACEOF | |
41100 | #define wxUSE_MOUSEWHEEL 1 | |
41101 | _ACEOF | |
41102 | ||
41103 | fi | |
41104 | ||
a848cd7e SC |
41105 | |
41106 | USES_CONTROLS=0 | |
41107 | if test "$wxUSE_CONTROLS" = "yes"; then | |
41108 | USES_CONTROLS=1 | |
41109 | fi | |
41110 | ||
41111 | if test "$wxUSE_ACCEL" = "yes"; then | |
41112 | cat >>confdefs.h <<\_ACEOF | |
41113 | #define wxUSE_ACCEL 1 | |
41114 | _ACEOF | |
41115 | ||
41116 | USES_CONTROLS=1 | |
41117 | fi | |
41118 | ||
41119 | if test "$wxUSE_BUTTON" = "yes"; then | |
41120 | cat >>confdefs.h <<\_ACEOF | |
41121 | #define wxUSE_BUTTON 1 | |
41122 | _ACEOF | |
41123 | ||
41124 | USES_CONTROLS=1 | |
41125 | fi | |
41126 | ||
41127 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
41128 | cat >>confdefs.h <<\_ACEOF | |
41129 | #define wxUSE_BMPBUTTON 1 | |
41130 | _ACEOF | |
41131 | ||
41132 | USES_CONTROLS=1 | |
41133 | fi | |
41134 | ||
41135 | if test "$wxUSE_CALCTRL" = "yes"; then | |
41136 | cat >>confdefs.h <<\_ACEOF | |
41137 | #define wxUSE_CALENDARCTRL 1 | |
41138 | _ACEOF | |
41139 | ||
41140 | USES_CONTROLS=1 | |
41141 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
41142 | fi | |
41143 | ||
41144 | if test "$wxUSE_CARET" = "yes"; then | |
41145 | cat >>confdefs.h <<\_ACEOF | |
41146 | #define wxUSE_CARET 1 | |
41147 | _ACEOF | |
41148 | ||
41149 | USES_CONTROLS=1 | |
41150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
41151 | fi | |
41152 | ||
41153 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
41154 | cat >>confdefs.h <<\_ACEOF | |
41155 | #define wxUSE_COMBOBOX 1 | |
41156 | _ACEOF | |
41157 | ||
41158 | USES_CONTROLS=1 | |
41159 | fi | |
41160 | ||
41161 | if test "$wxUSE_CHOICE" = "yes"; then | |
41162 | cat >>confdefs.h <<\_ACEOF | |
41163 | #define wxUSE_CHOICE 1 | |
41164 | _ACEOF | |
41165 | ||
41166 | USES_CONTROLS=1 | |
41167 | fi | |
41168 | ||
92bbdbcd WS |
41169 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
41170 | cat >>confdefs.h <<\_ACEOF | |
41171 | #define wxUSE_CHOICEBOOK 1 | |
41172 | _ACEOF | |
41173 | ||
41174 | USES_CONTROLS=1 | |
41175 | fi | |
41176 | ||
a848cd7e SC |
41177 | if test "$wxUSE_CHECKBOX" = "yes"; then |
41178 | cat >>confdefs.h <<\_ACEOF | |
41179 | #define wxUSE_CHECKBOX 1 | |
41180 | _ACEOF | |
41181 | ||
41182 | USES_CONTROLS=1 | |
41183 | fi | |
41184 | ||
41185 | if test "$wxUSE_CHECKLST" = "yes"; then | |
41186 | cat >>confdefs.h <<\_ACEOF | |
41187 | #define wxUSE_CHECKLISTBOX 1 | |
41188 | _ACEOF | |
41189 | ||
41190 | USES_CONTROLS=1 | |
41191 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
41192 | fi | |
41193 | ||
da98e9be VZ |
41194 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
41195 | cat >>confdefs.h <<\_ACEOF | |
41196 | #define wxUSE_DATEPICKCTRL 1 | |
41197 | _ACEOF | |
41198 | ||
41199 | USES_CONTROLS=1 | |
41200 | fi | |
41201 | ||
a848cd7e SC |
41202 | if test "$wxUSE_DISPLAY" = "yes"; then |
41203 | cat >>confdefs.h <<\_ACEOF | |
41204 | #define wxUSE_DISPLAY 1 | |
41205 | _ACEOF | |
41206 | ||
0b78747f | 41207 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
41208 | fi |
41209 | ||
41210 | if test "$wxUSE_GAUGE" = "yes"; then | |
41211 | cat >>confdefs.h <<\_ACEOF | |
41212 | #define wxUSE_GAUGE 1 | |
41213 | _ACEOF | |
41214 | ||
41215 | USES_CONTROLS=1 | |
41216 | fi | |
41217 | ||
41218 | if test "$wxUSE_GRID" = "yes"; then | |
41219 | cat >>confdefs.h <<\_ACEOF | |
41220 | #define wxUSE_GRID 1 | |
41221 | _ACEOF | |
41222 | ||
41223 | USES_CONTROLS=1 | |
41224 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
41225 | fi | |
41226 | ||
41227 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41228 | cat >>confdefs.h <<\_ACEOF | |
41229 | #define wxUSE_IMAGLIST 1 | |
41230 | _ACEOF | |
41231 | ||
41232 | fi | |
41233 | ||
41234 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
41235 | cat >>confdefs.h <<\_ACEOF | |
41236 | #define wxUSE_LISTBOOK 1 | |
41237 | _ACEOF | |
41238 | ||
41239 | USES_CONTROLS=1 | |
41240 | fi | |
41241 | ||
41242 | if test "$wxUSE_LISTBOX" = "yes"; then | |
41243 | cat >>confdefs.h <<\_ACEOF | |
41244 | #define wxUSE_LISTBOX 1 | |
41245 | _ACEOF | |
41246 | ||
41247 | USES_CONTROLS=1 | |
0b78747f | 41248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
41249 | fi |
41250 | ||
41251 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
41252 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41253 | cat >>confdefs.h <<\_ACEOF | |
41254 | #define wxUSE_LISTCTRL 1 | |
41255 | _ACEOF | |
41256 | ||
41257 | USES_CONTROLS=1 | |
41258 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
41259 | else | |
41260 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
41261 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
41262 | fi | |
41263 | fi | |
41264 | ||
41265 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
41266 | cat >>confdefs.h <<\_ACEOF | |
41267 | #define wxUSE_NOTEBOOK 1 | |
41268 | _ACEOF | |
41269 | ||
41270 | USES_CONTROLS=1 | |
41271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
41272 | fi | |
41273 | ||
41274 | ||
41275 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
41276 | cat >>confdefs.h <<\_ACEOF | |
41277 | #define wxUSE_RADIOBOX 1 | |
41278 | _ACEOF | |
41279 | ||
41280 | USES_CONTROLS=1 | |
41281 | fi | |
41282 | ||
41283 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
41284 | cat >>confdefs.h <<\_ACEOF | |
41285 | #define wxUSE_RADIOBTN 1 | |
41286 | _ACEOF | |
41287 | ||
41288 | USES_CONTROLS=1 | |
41289 | fi | |
41290 | ||
41291 | if test "$wxUSE_SASH" = "yes"; then | |
41292 | cat >>confdefs.h <<\_ACEOF | |
41293 | #define wxUSE_SASH 1 | |
41294 | _ACEOF | |
41295 | ||
41296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
41297 | fi | |
41298 | ||
41299 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
41300 | cat >>confdefs.h <<\_ACEOF | |
41301 | #define wxUSE_SCROLLBAR 1 | |
41302 | _ACEOF | |
41303 | ||
41304 | USES_CONTROLS=1 | |
41305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
41306 | fi | |
41307 | ||
41308 | if test "$wxUSE_SLIDER" = "yes"; then | |
41309 | cat >>confdefs.h <<\_ACEOF | |
41310 | #define wxUSE_SLIDER 1 | |
41311 | _ACEOF | |
41312 | ||
41313 | USES_CONTROLS=1 | |
41314 | fi | |
41315 | ||
41316 | if test "$wxUSE_SPINBTN" = "yes"; then | |
41317 | cat >>confdefs.h <<\_ACEOF | |
41318 | #define wxUSE_SPINBTN 1 | |
41319 | _ACEOF | |
41320 | ||
41321 | USES_CONTROLS=1 | |
41322 | fi | |
41323 | ||
41324 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
41325 | cat >>confdefs.h <<\_ACEOF | |
41326 | #define wxUSE_SPINCTRL 1 | |
41327 | _ACEOF | |
41328 | ||
41329 | USES_CONTROLS=1 | |
41330 | fi | |
41331 | ||
41332 | if test "$wxUSE_SPLITTER" = "yes"; then | |
41333 | cat >>confdefs.h <<\_ACEOF | |
41334 | #define wxUSE_SPLITTER 1 | |
41335 | _ACEOF | |
41336 | ||
41337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
41338 | fi | |
41339 | ||
41340 | if test "$wxUSE_STATBMP" = "yes"; then | |
41341 | cat >>confdefs.h <<\_ACEOF | |
41342 | #define wxUSE_STATBMP 1 | |
41343 | _ACEOF | |
41344 | ||
41345 | USES_CONTROLS=1 | |
41346 | fi | |
41347 | ||
41348 | if test "$wxUSE_STATBOX" = "yes"; then | |
41349 | cat >>confdefs.h <<\_ACEOF | |
41350 | #define wxUSE_STATBOX 1 | |
41351 | _ACEOF | |
41352 | ||
41353 | USES_CONTROLS=1 | |
41354 | fi | |
41355 | ||
41356 | if test "$wxUSE_STATTEXT" = "yes"; then | |
41357 | cat >>confdefs.h <<\_ACEOF | |
41358 | #define wxUSE_STATTEXT 1 | |
41359 | _ACEOF | |
41360 | ||
41361 | USES_CONTROLS=1 | |
41362 | fi | |
41363 | ||
41364 | if test "$wxUSE_STATLINE" = "yes"; then | |
41365 | cat >>confdefs.h <<\_ACEOF | |
41366 | #define wxUSE_STATLINE 1 | |
41367 | _ACEOF | |
41368 | ||
41369 | USES_CONTROLS=1 | |
41370 | fi | |
41371 | ||
41372 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
41373 | cat >>confdefs.h <<\_ACEOF |
41374 | #define wxUSE_NATIVE_STATUSBAR 1 | |
41375 | _ACEOF | |
41376 | ||
a848cd7e SC |
41377 | cat >>confdefs.h <<\_ACEOF |
41378 | #define wxUSE_STATUSBAR 1 | |
41379 | _ACEOF | |
41380 | ||
41381 | USES_CONTROLS=1 | |
41382 | ||
41383 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
41384 | fi | |
41385 | ||
41386 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
41387 | cat >>confdefs.h <<\_ACEOF | |
41388 | #define wxUSE_TAB_DIALOG 1 | |
41389 | _ACEOF | |
41390 | ||
a848cd7e SC |
41391 | fi |
41392 | ||
41393 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
41394 | cat >>confdefs.h <<\_ACEOF | |
41395 | #define wxUSE_TEXTCTRL 1 | |
41396 | _ACEOF | |
41397 | ||
41398 | USES_CONTROLS=1 | |
41399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
41400 | fi | |
41401 | ||
41402 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
41403 | if test "$wxUSE_COCOA" = 1 ; then | |
41404 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
41405 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
41406 | wxUSE_TOGGLEBTN=no | |
41407 | fi | |
41408 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
41409 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
41410 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
41411 | wxUSE_TOGGLEBTN=no | |
41412 | fi | |
41413 | ||
41414 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
41415 | cat >>confdefs.h <<\_ACEOF | |
41416 | #define wxUSE_TOGGLEBTN 1 | |
41417 | _ACEOF | |
41418 | ||
41419 | USES_CONTROLS=1 | |
41420 | fi | |
41421 | fi | |
41422 | ||
41423 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
41424 | cat >>confdefs.h <<\_ACEOF | |
41425 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
41426 | _ACEOF | |
41427 | ||
41428 | wxUSE_TOOLBAR="yes" | |
41429 | USES_CONTROLS=1 | |
41430 | fi | |
41431 | ||
41432 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
41433 | cat >>confdefs.h <<\_ACEOF | |
41434 | #define wxUSE_TOOLBAR 1 | |
41435 | _ACEOF | |
41436 | ||
41437 | USES_CONTROLS=1 | |
41438 | ||
41439 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
41440 | wxUSE_TOOLBAR_NATIVE="yes" | |
41441 | fi | |
41442 | ||
41443 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
41444 | cat >>confdefs.h <<\_ACEOF | |
41445 | #define wxUSE_TOOLBAR_NATIVE 1 | |
41446 | _ACEOF | |
41447 | ||
41448 | USES_CONTROLS=1 | |
41449 | fi | |
41450 | ||
41451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
41452 | fi | |
41453 | ||
41454 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
41455 | if test "$wxUSE_MOTIF" = 1; then | |
41456 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
41457 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
41458 | else | |
41459 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
41460 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
41461 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
41462 | else | |
41463 | cat >>confdefs.h <<\_ACEOF | |
41464 | #define wxUSE_TOOLTIPS 1 | |
41465 | _ACEOF | |
41466 | ||
41467 | fi | |
41468 | fi | |
41469 | fi | |
41470 | ||
41471 | if test "$wxUSE_TREECTRL" = "yes"; then | |
41472 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41473 | cat >>confdefs.h <<\_ACEOF | |
41474 | #define wxUSE_TREECTRL 1 | |
41475 | _ACEOF | |
41476 | ||
41477 | USES_CONTROLS=1 | |
41478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
41479 | else | |
41480 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
41481 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
41482 | fi | |
41483 | fi | |
41484 | ||
41485 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
41486 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
41487 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
41488 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
41489 | else | |
41490 | if test "$wxUSE_PM" = 1; then | |
41491 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
41492 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
41493 | else | |
41494 | cat >>confdefs.h <<\_ACEOF | |
41495 | #define wxUSE_POPUPWIN 1 | |
41496 | _ACEOF | |
41497 | ||
0b78747f | 41498 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
41499 | |
41500 | USES_CONTROLS=1 | |
41501 | fi | |
41502 | fi | |
41503 | fi | |
41504 | ||
0dcd06dd | 41505 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
41506 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
41507 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
41508 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
41509 | else | |
41510 | cat >>confdefs.h <<\_ACEOF | |
41511 | #define wxUSE_DIALUP_MANAGER 1 | |
41512 | _ACEOF | |
41513 | ||
41514 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
41515 | fi | |
41516 | fi | |
41517 | ||
a848cd7e SC |
41518 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
41519 | if test "$wxUSE_PM" = 1; then | |
41520 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
41521 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
41522 | else | |
41523 | cat >>confdefs.h <<\_ACEOF | |
41524 | #define wxUSE_TIPWINDOW 1 | |
41525 | _ACEOF | |
41526 | ||
41527 | fi | |
41528 | fi | |
41529 | ||
41530 | if test "$USES_CONTROLS" = 1; then | |
41531 | cat >>confdefs.h <<\_ACEOF | |
41532 | #define wxUSE_CONTROLS 1 | |
41533 | _ACEOF | |
41534 | ||
41535 | fi | |
41536 | ||
41537 | ||
41538 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
41539 | cat >>confdefs.h <<\_ACEOF | |
41540 | #define wxUSE_ACCESSIBILITY 1 | |
41541 | _ACEOF | |
41542 | ||
41543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
41544 | fi | |
41545 | ||
38b4a946 VZ |
41546 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
41547 | cat >>confdefs.h <<\_ACEOF | |
41548 | #define wxUSE_DC_CACHEING 1 | |
41549 | _ACEOF | |
41550 | ||
41551 | fi | |
41552 | ||
a848cd7e SC |
41553 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
41554 | cat >>confdefs.h <<\_ACEOF | |
41555 | #define wxUSE_DRAGIMAGE 1 | |
41556 | _ACEOF | |
41557 | ||
41558 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
41559 | fi | |
41560 | ||
41561 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
41562 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
41563 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
41564 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
41565 | else | |
41566 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41567 | #define wxUSE_EXCEPTIONS 1 |
41568 | _ACEOF | |
41569 | ||
07bea8f0 VS |
41570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
41571 | fi | |
a848cd7e SC |
41572 | fi |
41573 | ||
41574 | USE_HTML=0 | |
41575 | if test "$wxUSE_HTML" = "yes"; then | |
41576 | cat >>confdefs.h <<\_ACEOF | |
41577 | #define wxUSE_HTML 1 | |
41578 | _ACEOF | |
41579 | ||
41580 | USE_HTML=1 | |
41581 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
41582 | if test "$wxUSE_MAC" = 1; then |
41583 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
41584 | fi | |
a848cd7e | 41585 | fi |
646b6ec1 | 41586 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 41587 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
41588 | old_CPPFLAGS="$CPPFLAGS" |
41589 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
41590 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
41591 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
41592 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
41593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41594 | else | |
41595 | cat >conftest.$ac_ext <<_ACEOF | |
41596 | /* confdefs.h. */ | |
41597 | _ACEOF | |
41598 | cat confdefs.h >>conftest.$ac_ext | |
41599 | cat >>conftest.$ac_ext <<_ACEOF | |
41600 | /* end confdefs.h. */ | |
41601 | #include <Carbon/Carbon.h> | |
41602 | ||
41603 | #include <WebKit/HIWebView.h> | |
41604 | _ACEOF | |
41605 | rm -f conftest.$ac_objext | |
41606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41607 | (eval $ac_compile) 2>conftest.er1 | |
41608 | ac_status=$? | |
41609 | grep -v '^ *+' conftest.er1 >conftest.err | |
41610 | rm -f conftest.er1 | |
41611 | cat conftest.err >&5 | |
41612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41613 | (exit $ac_status); } && | |
6ebeb4c7 | 41614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
41615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41616 | (eval $ac_try) 2>&5 | |
41617 | ac_status=$? | |
41618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41619 | (exit $ac_status); }; } && | |
41620 | { ac_try='test -s conftest.$ac_objext' | |
41621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41622 | (eval $ac_try) 2>&5 | |
41623 | ac_status=$? | |
41624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41625 | (exit $ac_status); }; }; then | |
41626 | ac_cv_header_WebKit_HIWebView_h=yes | |
41627 | else | |
41628 | echo "$as_me: failed program was:" >&5 | |
41629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41630 | ||
41631 | ac_cv_header_WebKit_HIWebView_h=no | |
41632 | fi | |
41633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41634 | fi | |
41635 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
41636 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
41637 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
41638 | ||
41639 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
41640 | #define wxUSE_WEBKIT 1 |
41641 | _ACEOF | |
41642 | ||
07bea8f0 VS |
41643 | WEBKIT_LINK="-framework WebKit" |
41644 | ||
41645 | else | |
41646 | ||
41647 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
41648 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
41649 | wxUSE_WEBKIT=no | |
41650 | ||
646b6ec1 VS |
41651 | fi |
41652 | ||
07bea8f0 VS |
41653 | |
41654 | CPPFLAGS="$old_CPPFLAGS" | |
41655 | elif test "$wxUSE_COCOA" = 1; then | |
41656 | cat >>confdefs.h <<\_ACEOF | |
41657 | #define wxUSE_WEBKIT 1 | |
41658 | _ACEOF | |
41659 | ||
41660 | else | |
41661 | wxUSE_WEBKIT=no | |
41662 | fi | |
41663 | fi | |
41664 | ||
9a8f0513 VS |
41665 | USE_XRC=0 |
41666 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
41667 | if test "$wxUSE_XML" != "yes"; then |
41668 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
41669 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
41670 | wxUSE_XRC=no | |
41671 | else | |
41672 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
41673 | #define wxUSE_XRC 1 |
41674 | _ACEOF | |
41675 | ||
d2ebf0b7 VS |
41676 | USE_XRC=1 |
41677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
41678 | fi | |
9a8f0513 | 41679 | fi |
07bea8f0 | 41680 | |
a848cd7e SC |
41681 | if test "$wxUSE_MENUS" = "yes"; then |
41682 | cat >>confdefs.h <<\_ACEOF | |
41683 | #define wxUSE_MENUS 1 | |
41684 | _ACEOF | |
41685 | ||
41686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
41687 | fi | |
41688 | ||
41689 | if test "$wxUSE_METAFILE" = "yes"; then | |
41690 | cat >>confdefs.h <<\_ACEOF | |
41691 | #define wxUSE_METAFILE 1 | |
41692 | _ACEOF | |
41693 | ||
41694 | fi | |
41695 | ||
41696 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
41697 | cat >>confdefs.h <<\_ACEOF | |
41698 | #define wxUSE_MIMETYPE 1 | |
41699 | _ACEOF | |
41700 | ||
41701 | fi | |
41702 | ||
41703 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
41704 | cat >>confdefs.h <<\_ACEOF | |
41705 | #define wxUSE_MINIFRAME 1 | |
41706 | _ACEOF | |
41707 | ||
41708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
41709 | fi | |
41710 | ||
41711 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
41712 | cat >>confdefs.h <<\_ACEOF | |
41713 | #define wxUSE_SYSTEM_OPTIONS 1 | |
41714 | _ACEOF | |
41715 | ||
41716 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 41717 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
41718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
41719 | fi | |
41720 | fi | |
41721 | ||
41722 | ||
41723 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
41724 | cat >>confdefs.h <<\_ACEOF | |
41725 | #define wxUSE_VALIDATORS 1 | |
41726 | _ACEOF | |
41727 | ||
41728 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
41729 | fi | |
41730 | ||
41731 | if test "$wxUSE_PALETTE" = "yes" ; then | |
41732 | cat >>confdefs.h <<\_ACEOF | |
41733 | #define wxUSE_PALETTE 1 | |
41734 | _ACEOF | |
41735 | ||
41736 | fi | |
41737 | ||
41738 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
41739 | LIBS=" -lunicows $LIBS" | |
41740 | fi | |
41741 | ||
41742 | ||
41743 | if test "$wxUSE_IMAGE" = "yes" ; then | |
41744 | cat >>confdefs.h <<\_ACEOF | |
41745 | #define wxUSE_IMAGE 1 | |
41746 | _ACEOF | |
41747 | ||
41748 | ||
41749 | if test "$wxUSE_GIF" = "yes" ; then | |
41750 | cat >>confdefs.h <<\_ACEOF | |
41751 | #define wxUSE_GIF 1 | |
41752 | _ACEOF | |
41753 | ||
41754 | fi | |
41755 | ||
41756 | if test "$wxUSE_PCX" = "yes" ; then | |
41757 | cat >>confdefs.h <<\_ACEOF | |
41758 | #define wxUSE_PCX 1 | |
41759 | _ACEOF | |
41760 | ||
41761 | fi | |
41762 | ||
41763 | if test "$wxUSE_IFF" = "yes" ; then | |
41764 | cat >>confdefs.h <<\_ACEOF | |
41765 | #define wxUSE_IFF 1 | |
41766 | _ACEOF | |
41767 | ||
41768 | fi | |
41769 | ||
41770 | if test "$wxUSE_PNM" = "yes" ; then | |
41771 | cat >>confdefs.h <<\_ACEOF | |
41772 | #define wxUSE_PNM 1 | |
41773 | _ACEOF | |
41774 | ||
41775 | fi | |
41776 | ||
41777 | if test "$wxUSE_XPM" = "yes" ; then | |
41778 | cat >>confdefs.h <<\_ACEOF | |
41779 | #define wxUSE_XPM 1 | |
41780 | _ACEOF | |
41781 | ||
41782 | fi | |
41783 | ||
41784 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
41785 | cat >>confdefs.h <<\_ACEOF | |
41786 | #define wxUSE_ICO_CUR 1 | |
41787 | _ACEOF | |
41788 | ||
41789 | fi | |
41790 | fi | |
41791 | ||
41792 | ||
41793 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
41794 | cat >>confdefs.h <<\_ACEOF | |
41795 | #define wxUSE_CHOICEDLG 1 | |
41796 | _ACEOF | |
41797 | ||
41798 | fi | |
41799 | ||
41800 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
41801 | cat >>confdefs.h <<\_ACEOF | |
41802 | #define wxUSE_COLOURDLG 1 | |
41803 | _ACEOF | |
41804 | ||
41805 | fi | |
41806 | ||
41807 | if test "$wxUSE_FILEDLG" = "yes"; then | |
41808 | cat >>confdefs.h <<\_ACEOF | |
41809 | #define wxUSE_FILEDLG 1 | |
41810 | _ACEOF | |
41811 | ||
41812 | fi | |
41813 | ||
41814 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
41815 | cat >>confdefs.h <<\_ACEOF | |
41816 | #define wxUSE_FINDREPLDLG 1 | |
41817 | _ACEOF | |
41818 | ||
41819 | fi | |
41820 | ||
41821 | if test "$wxUSE_FONTDLG" = "yes"; then | |
41822 | cat >>confdefs.h <<\_ACEOF | |
41823 | #define wxUSE_FONTDLG 1 | |
41824 | _ACEOF | |
41825 | ||
41826 | fi | |
41827 | ||
41828 | if test "$wxUSE_DIRDLG" = "yes"; then | |
41829 | if test "$wxUSE_TREECTRL" != "yes"; then | |
41830 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
41831 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
41832 | else | |
41833 | cat >>confdefs.h <<\_ACEOF | |
41834 | #define wxUSE_DIRDLG 1 | |
41835 | _ACEOF | |
41836 | ||
41837 | fi | |
41838 | fi | |
41839 | ||
41840 | if test "$wxUSE_MSGDLG" = "yes"; then | |
41841 | cat >>confdefs.h <<\_ACEOF | |
41842 | #define wxUSE_MSGDLG 1 | |
41843 | _ACEOF | |
41844 | ||
41845 | fi | |
41846 | ||
41847 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
41848 | cat >>confdefs.h <<\_ACEOF | |
41849 | #define wxUSE_NUMBERDLG 1 | |
41850 | _ACEOF | |
41851 | ||
41852 | fi | |
41853 | ||
41854 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
41855 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41856 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
41857 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
41858 | else | |
41859 | cat >>confdefs.h <<\_ACEOF | |
41860 | #define wxUSE_PROGRESSDLG 1 | |
41861 | _ACEOF | |
41862 | ||
41863 | fi | |
41864 | fi | |
41865 | ||
41866 | if test "$wxUSE_SPLASH" = "yes"; then | |
41867 | cat >>confdefs.h <<\_ACEOF | |
41868 | #define wxUSE_SPLASH 1 | |
41869 | _ACEOF | |
41870 | ||
2057db16 | 41871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
41872 | fi |
41873 | ||
41874 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
41875 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41876 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
41877 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
41878 | else | |
41879 | cat >>confdefs.h <<\_ACEOF | |
41880 | #define wxUSE_STARTUP_TIPS 1 | |
41881 | _ACEOF | |
41882 | ||
41883 | fi | |
41884 | fi | |
41885 | ||
41886 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
41887 | cat >>confdefs.h <<\_ACEOF | |
41888 | #define wxUSE_TEXTDLG 1 | |
41889 | _ACEOF | |
41890 | ||
41891 | fi | |
41892 | ||
41893 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
41894 | cat >>confdefs.h <<\_ACEOF | |
41895 | #define wxUSE_WIZARDDLG 1 | |
41896 | _ACEOF | |
41897 | ||
41898 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
41899 | fi | |
41900 | ||
41901 | ||
ce756cb0 | 41902 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
41903 | if test "$wxUSE_GTK" = 1; then |
41904 | wxUSE_GSTREAMER="yes" | |
41905 | ||
ce756cb0 | 41906 | |
dae87f93 | 41907 | succeeded=no |
ce756cb0 | 41908 | |
dae87f93 RN |
41909 | if test -z "$PKG_CONFIG"; then |
41910 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41911 | set dummy pkg-config; ac_word=$2 | |
41912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41914 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41916 | else | |
41917 | case $PKG_CONFIG in | |
41918 | [\\/]* | ?:[\\/]*) | |
41919 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41920 | ;; | |
41921 | *) | |
41922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41923 | for as_dir in $PATH | |
41924 | do | |
41925 | IFS=$as_save_IFS | |
41926 | test -z "$as_dir" && as_dir=. | |
41927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41929 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41931 | break 2 | |
41932 | fi | |
41933 | done | |
41934 | done | |
41935 | ||
41936 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41937 | ;; | |
41938 | esac | |
41939 | fi | |
41940 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41941 | ||
41942 | if test -n "$PKG_CONFIG"; then | |
41943 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41944 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41945 | else | |
41946 | echo "$as_me:$LINENO: result: no" >&5 | |
41947 | echo "${ECHO_T}no" >&6 | |
41948 | fi | |
41949 | ||
41950 | fi | |
41951 | ||
41952 | if test "$PKG_CONFIG" = "no" ; then | |
41953 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41954 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41955 | echo "*** to the full path to pkg-config." | |
41956 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41957 | else | |
41958 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41959 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41960 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
41961 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
41962 | ||
41963 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
41964 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 41965 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 41966 | succeeded=yes |
ce756cb0 | 41967 | |
dae87f93 RN |
41968 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
41969 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
41970 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
41971 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
41972 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
41973 | ||
41974 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
41975 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
41976 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
41977 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
41978 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
41979 | else | |
41980 | GSTREAMER_CFLAGS="" | |
41981 | GSTREAMER_LIBS="" | |
41982 | ## If we have a custom action on failure, don't print errors, but | |
41983 | ## do set a variable so people can do so. | |
41984 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 41985 | |
dae87f93 RN |
41986 | fi |
41987 | ||
41988 | ||
41989 | ||
41990 | else | |
41991 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41992 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41993 | fi | |
41994 | fi | |
41995 | ||
41996 | if test $succeeded = yes; then | |
41997 | ||
41998 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
41999 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 42000 | |
ce756cb0 | 42001 | else |
dae87f93 RN |
42002 | |
42003 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
42004 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
42005 | wxUSE_GSTREAMER="no" | |
42006 | ||
42007 | fi | |
42008 | ||
42009 | ||
42010 | ||
42011 | ||
42012 | ||
42013 | if test "x$GST_INSPECT" == "x"; then | |
42014 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
42015 | set dummy gst-inspect; ac_word=$2 | |
42016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42018 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
42019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42020 | else | |
42021 | if test -n "$GST_INSPECT"; then | |
42022 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
42023 | else | |
42024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42025 | for as_dir in $PATH | |
42026 | do | |
42027 | IFS=$as_save_IFS | |
42028 | test -z "$as_dir" && as_dir=. | |
42029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42030 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42031 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
42032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42033 | break 2 | |
ce756cb0 | 42034 | fi |
dae87f93 RN |
42035 | done |
42036 | done | |
42037 | ||
42038 | fi | |
42039 | fi | |
42040 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
42041 | if test -n "$GST_INSPECT"; then | |
42042 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
42043 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
42044 | else | |
42045 | echo "$as_me:$LINENO: result: no" >&5 | |
42046 | echo "${ECHO_T}no" >&6 | |
42047 | fi | |
42048 | ||
42049 | fi | |
42050 | ||
42051 | if test "x$GST_INSPECT" != "x"; then | |
42052 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
42053 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
42054 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
42055 | echo "$as_me:$LINENO: result: found." >&5 | |
42056 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 42057 | |
ce756cb0 | 42058 | else |
dae87f93 RN |
42059 | echo "$as_me:$LINENO: result: not found." >&5 |
42060 | echo "${ECHO_T}not found." >&6 | |
42061 | ||
42062 | wxUSE_GSTREAMER="no" | |
42063 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
42064 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
42065 | ||
42066 | fi | |
42067 | fi | |
42068 | ||
42069 | ||
42070 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
42071 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
42072 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
42073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42074 | else | |
42075 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
42076 | /* confdefs.h. */ |
42077 | _ACEOF | |
42078 | cat confdefs.h >>conftest.$ac_ext | |
42079 | cat >>conftest.$ac_ext <<_ACEOF | |
42080 | /* end confdefs.h. */ | |
dae87f93 | 42081 | #include <gst/gst.h> |
ce756cb0 | 42082 | |
dae87f93 | 42083 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
42084 | _ACEOF |
42085 | rm -f conftest.$ac_objext | |
42086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42087 | (eval $ac_compile) 2>conftest.er1 | |
42088 | ac_status=$? | |
42089 | grep -v '^ *+' conftest.er1 >conftest.err | |
42090 | rm -f conftest.er1 | |
42091 | cat conftest.err >&5 | |
42092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42093 | (exit $ac_status); } && | |
6ebeb4c7 | 42094 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
42095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42096 | (eval $ac_try) 2>&5 | |
42097 | ac_status=$? | |
42098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42099 | (exit $ac_status); }; } && | |
42100 | { ac_try='test -s conftest.$ac_objext' | |
42101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42102 | (eval $ac_try) 2>&5 | |
42103 | ac_status=$? | |
42104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42105 | (exit $ac_status); }; }; then | |
dae87f93 | 42106 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
42107 | else |
42108 | echo "$as_me: failed program was:" >&5 | |
42109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42110 | ||
dae87f93 | 42111 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
42112 | fi |
42113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
42114 | fi |
42115 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
42116 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
42117 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
42118 | : | |
42119 | else | |
ce756cb0 | 42120 | |
dae87f93 RN |
42121 | wxUSE_GSTREAMER="no" |
42122 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
42123 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 42124 | |
dae87f93 | 42125 | fi |
ce756cb0 | 42126 | |
dae87f93 RN |
42127 | |
42128 | ||
42129 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
42130 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
42131 | ||
0ad5d837 VZ |
42132 | ac_find_libraries= |
42133 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 42134 | do |
3eca31dc | 42135 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
42136 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
42137 | ac_find_libraries=$ac_dir | |
42138 | break 2 | |
42139 | fi | |
42140 | done | |
42141 | done | |
42142 | ||
ce756cb0 | 42143 | |
dae87f93 RN |
42144 | if test "$ac_find_libraries" = "" ; then |
42145 | echo "$as_me:$LINENO: result: no" >&5 | |
42146 | echo "${ECHO_T}no" >&6 | |
42147 | wxUSE_GSTREAMER="no" | |
42148 | else | |
42149 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 42150 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 42151 | fi |
ce756cb0 | 42152 | |
dae87f93 RN |
42153 | if test "$wxUSE_GSTREAMER" = "yes"; then |
42154 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
42155 | #define wxUSE_GSTREAMER 1 |
42156 | _ACEOF | |
42157 | ||
dae87f93 RN |
42158 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
42159 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
42160 | fi |
42161 | fi | |
42162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
42163 | cat >>confdefs.h <<\_ACEOF | |
42164 | #define wxUSE_MEDIACTRL 1 | |
42165 | _ACEOF | |
42166 | ||
42167 | fi | |
42168 | ||
42169 | ||
a848cd7e SC |
42170 | if test "$cross_compiling" = "yes"; then |
42171 | OSINFO="\"$host\"" | |
42172 | else | |
42173 | OSINFO=`uname -s -r -m` | |
42174 | OSINFO="\"$OSINFO\"" | |
42175 | fi | |
42176 | ||
42177 | cat >>confdefs.h <<_ACEOF | |
42178 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
42179 | _ACEOF | |
42180 | ||
42181 | ||
42182 | ||
42183 | if test "x$prefix" != "xNONE"; then | |
42184 | wxPREFIX=$prefix | |
42185 | else | |
42186 | wxPREFIX=$ac_default_prefix | |
42187 | fi | |
42188 | ||
42189 | cat >>confdefs.h <<_ACEOF | |
42190 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
42191 | _ACEOF | |
42192 | ||
42193 | ||
a848cd7e SC |
42194 | |
42195 | ||
42196 | CORE_BASE_LIBS="net base" | |
42197 | CORE_GUI_LIBS="adv core" | |
42198 | ||
42199 | if test "$wxUSE_XML" = "yes" ; then | |
42200 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
42201 | fi | |
42202 | if test "$wxUSE_ODBC" != "no" ; then | |
42203 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
42204 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
42205 | fi | |
42206 | if test "$wxUSE_HTML" = "yes" ; then | |
42207 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
42208 | fi | |
61639efb VZ |
42209 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42210 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
42211 | fi | |
9a8f0513 VS |
42212 | if test "$wxUSE_XRC" = "yes" ; then |
42213 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
42214 | fi | |
a848cd7e SC |
42215 | |
42216 | if test "$wxUSE_GUI" != "yes"; then | |
42217 | CORE_GUI_LIBS="" | |
42218 | fi | |
42219 | ||
42220 | ||
42221 | ||
42222 | ||
42223 | ||
42224 | ||
42225 | ||
42226 | ||
42227 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 42228 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
42229 | if test "$USE_DARWIN" = 1; then |
42230 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
42231 | else | |
42232 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
42233 | fi | |
07bea8f0 | 42234 | fi |
5dcf30a0 | 42235 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
42236 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
42237 | else | |
42238 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 42239 | fi |
a848cd7e SC |
42240 | fi |
42241 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 42242 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
42243 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
42244 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
42245 | fi | |
a848cd7e | 42246 | fi |
19b27e78 MW |
42247 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
42248 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
42249 | fi | |
a848cd7e SC |
42250 | |
42251 | ||
42252 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
42253 | ||
42254 | have_cos=0 | |
42255 | have_floor=0 | |
42256 | ||
42257 | for ac_func in cos | |
42258 | do | |
42259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42260 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42262 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42264 | else | |
42265 | cat >conftest.$ac_ext <<_ACEOF | |
42266 | /* confdefs.h. */ | |
42267 | _ACEOF | |
42268 | cat confdefs.h >>conftest.$ac_ext | |
42269 | cat >>conftest.$ac_ext <<_ACEOF | |
42270 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42273 | #define $ac_func innocuous_$ac_func | |
42274 | ||
a848cd7e SC |
42275 | /* System header to define __stub macros and hopefully few prototypes, |
42276 | which can conflict with char $ac_func (); below. | |
42277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42278 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42279 | |
a848cd7e SC |
42280 | #ifdef __STDC__ |
42281 | # include <limits.h> | |
42282 | #else | |
42283 | # include <assert.h> | |
42284 | #endif | |
ac1cb8d3 VS |
42285 | |
42286 | #undef $ac_func | |
42287 | ||
a848cd7e SC |
42288 | /* Override any gcc2 internal prototype to avoid an error. */ |
42289 | #ifdef __cplusplus | |
42290 | extern "C" | |
42291 | { | |
42292 | #endif | |
42293 | /* We use char because int might match the return type of a gcc2 | |
42294 | builtin and then its argument prototype would still apply. */ | |
42295 | char $ac_func (); | |
42296 | /* The GNU C library defines this for functions which it implements | |
42297 | to always fail with ENOSYS. Some functions are actually named | |
42298 | something starting with __ and the normal name is an alias. */ | |
42299 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42300 | choke me | |
42301 | #else | |
42302 | char (*f) () = $ac_func; | |
42303 | #endif | |
42304 | #ifdef __cplusplus | |
42305 | } | |
42306 | #endif | |
42307 | ||
42308 | int | |
42309 | main () | |
42310 | { | |
42311 | return f != $ac_func; | |
42312 | ; | |
42313 | return 0; | |
42314 | } | |
42315 | _ACEOF | |
42316 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42318 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42319 | ac_status=$? |
ac1cb8d3 VS |
42320 | grep -v '^ *+' conftest.er1 >conftest.err |
42321 | rm -f conftest.er1 | |
42322 | cat conftest.err >&5 | |
a848cd7e SC |
42323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42324 | (exit $ac_status); } && | |
6ebeb4c7 | 42325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42327 | (eval $ac_try) 2>&5 | |
42328 | ac_status=$? | |
42329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42330 | (exit $ac_status); }; } && | |
42331 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42333 | (eval $ac_try) 2>&5 | |
42334 | ac_status=$? | |
42335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42336 | (exit $ac_status); }; }; then | |
42337 | eval "$as_ac_var=yes" | |
42338 | else | |
42339 | echo "$as_me: failed program was:" >&5 | |
42340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42341 | ||
42342 | eval "$as_ac_var=no" | |
42343 | fi | |
ac1cb8d3 VS |
42344 | rm -f conftest.err conftest.$ac_objext \ |
42345 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42346 | fi |
42347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42348 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42349 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42350 | cat >>confdefs.h <<_ACEOF | |
42351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42352 | _ACEOF | |
42353 | have_cos=1 | |
42354 | fi | |
42355 | done | |
42356 | ||
42357 | ||
42358 | for ac_func in floor | |
42359 | do | |
42360 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42361 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42362 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42363 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42365 | else | |
42366 | cat >conftest.$ac_ext <<_ACEOF | |
42367 | /* confdefs.h. */ | |
42368 | _ACEOF | |
42369 | cat confdefs.h >>conftest.$ac_ext | |
42370 | cat >>conftest.$ac_ext <<_ACEOF | |
42371 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42372 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42373 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42374 | #define $ac_func innocuous_$ac_func | |
42375 | ||
a848cd7e SC |
42376 | /* System header to define __stub macros and hopefully few prototypes, |
42377 | which can conflict with char $ac_func (); below. | |
42378 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42379 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42380 | |
a848cd7e SC |
42381 | #ifdef __STDC__ |
42382 | # include <limits.h> | |
42383 | #else | |
42384 | # include <assert.h> | |
42385 | #endif | |
ac1cb8d3 VS |
42386 | |
42387 | #undef $ac_func | |
42388 | ||
a848cd7e SC |
42389 | /* Override any gcc2 internal prototype to avoid an error. */ |
42390 | #ifdef __cplusplus | |
42391 | extern "C" | |
42392 | { | |
42393 | #endif | |
42394 | /* We use char because int might match the return type of a gcc2 | |
42395 | builtin and then its argument prototype would still apply. */ | |
42396 | char $ac_func (); | |
42397 | /* The GNU C library defines this for functions which it implements | |
42398 | to always fail with ENOSYS. Some functions are actually named | |
42399 | something starting with __ and the normal name is an alias. */ | |
42400 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42401 | choke me | |
42402 | #else | |
42403 | char (*f) () = $ac_func; | |
42404 | #endif | |
42405 | #ifdef __cplusplus | |
42406 | } | |
42407 | #endif | |
42408 | ||
42409 | int | |
42410 | main () | |
42411 | { | |
42412 | return f != $ac_func; | |
42413 | ; | |
42414 | return 0; | |
42415 | } | |
42416 | _ACEOF | |
42417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42419 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42420 | ac_status=$? |
ac1cb8d3 VS |
42421 | grep -v '^ *+' conftest.er1 >conftest.err |
42422 | rm -f conftest.er1 | |
42423 | cat conftest.err >&5 | |
a848cd7e SC |
42424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42425 | (exit $ac_status); } && | |
6ebeb4c7 | 42426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42428 | (eval $ac_try) 2>&5 | |
42429 | ac_status=$? | |
42430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42431 | (exit $ac_status); }; } && | |
42432 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42434 | (eval $ac_try) 2>&5 | |
42435 | ac_status=$? | |
42436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42437 | (exit $ac_status); }; }; then | |
42438 | eval "$as_ac_var=yes" | |
42439 | else | |
42440 | echo "$as_me: failed program was:" >&5 | |
42441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42442 | ||
42443 | eval "$as_ac_var=no" | |
42444 | fi | |
ac1cb8d3 VS |
42445 | rm -f conftest.err conftest.$ac_objext \ |
42446 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42447 | fi |
42448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42449 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42450 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42451 | cat >>confdefs.h <<_ACEOF | |
42452 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42453 | _ACEOF | |
42454 | have_floor=1 | |
42455 | fi | |
42456 | done | |
42457 | ||
42458 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
42459 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
42460 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
42461 | echo "$as_me:$LINENO: result: yes" >&5 | |
42462 | echo "${ECHO_T}yes" >&6 | |
42463 | else | |
42464 | echo "$as_me:$LINENO: result: no" >&5 | |
42465 | echo "${ECHO_T}no" >&6 | |
42466 | LIBS="$LIBS -lm" | |
42467 | # use different functions to avoid configure caching | |
42468 | have_sin=0 | |
42469 | have_ceil=0 | |
42470 | ||
42471 | for ac_func in sin | |
42472 | do | |
42473 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42474 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42475 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42476 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42478 | else | |
42479 | cat >conftest.$ac_ext <<_ACEOF | |
42480 | /* confdefs.h. */ | |
42481 | _ACEOF | |
42482 | cat confdefs.h >>conftest.$ac_ext | |
42483 | cat >>conftest.$ac_ext <<_ACEOF | |
42484 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42485 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42487 | #define $ac_func innocuous_$ac_func | |
42488 | ||
a848cd7e SC |
42489 | /* System header to define __stub macros and hopefully few prototypes, |
42490 | which can conflict with char $ac_func (); below. | |
42491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42492 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42493 | |
a848cd7e SC |
42494 | #ifdef __STDC__ |
42495 | # include <limits.h> | |
42496 | #else | |
42497 | # include <assert.h> | |
42498 | #endif | |
ac1cb8d3 VS |
42499 | |
42500 | #undef $ac_func | |
42501 | ||
a848cd7e SC |
42502 | /* Override any gcc2 internal prototype to avoid an error. */ |
42503 | #ifdef __cplusplus | |
42504 | extern "C" | |
42505 | { | |
42506 | #endif | |
42507 | /* We use char because int might match the return type of a gcc2 | |
42508 | builtin and then its argument prototype would still apply. */ | |
42509 | char $ac_func (); | |
42510 | /* The GNU C library defines this for functions which it implements | |
42511 | to always fail with ENOSYS. Some functions are actually named | |
42512 | something starting with __ and the normal name is an alias. */ | |
42513 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42514 | choke me | |
42515 | #else | |
42516 | char (*f) () = $ac_func; | |
42517 | #endif | |
42518 | #ifdef __cplusplus | |
42519 | } | |
42520 | #endif | |
42521 | ||
42522 | int | |
42523 | main () | |
42524 | { | |
42525 | return f != $ac_func; | |
42526 | ; | |
42527 | return 0; | |
42528 | } | |
42529 | _ACEOF | |
42530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42532 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42533 | ac_status=$? |
ac1cb8d3 VS |
42534 | grep -v '^ *+' conftest.er1 >conftest.err |
42535 | rm -f conftest.er1 | |
42536 | cat conftest.err >&5 | |
a848cd7e SC |
42537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42538 | (exit $ac_status); } && | |
6ebeb4c7 | 42539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42541 | (eval $ac_try) 2>&5 | |
42542 | ac_status=$? | |
42543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42544 | (exit $ac_status); }; } && | |
42545 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42547 | (eval $ac_try) 2>&5 | |
42548 | ac_status=$? | |
42549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42550 | (exit $ac_status); }; }; then | |
42551 | eval "$as_ac_var=yes" | |
42552 | else | |
42553 | echo "$as_me: failed program was:" >&5 | |
42554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42555 | ||
42556 | eval "$as_ac_var=no" | |
42557 | fi | |
ac1cb8d3 VS |
42558 | rm -f conftest.err conftest.$ac_objext \ |
42559 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42560 | fi |
42561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42562 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42563 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42564 | cat >>confdefs.h <<_ACEOF | |
42565 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42566 | _ACEOF | |
42567 | have_sin=1 | |
42568 | fi | |
42569 | done | |
42570 | ||
42571 | ||
42572 | for ac_func in ceil | |
42573 | do | |
42574 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42575 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42576 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42577 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42579 | else | |
42580 | cat >conftest.$ac_ext <<_ACEOF | |
42581 | /* confdefs.h. */ | |
42582 | _ACEOF | |
42583 | cat confdefs.h >>conftest.$ac_ext | |
42584 | cat >>conftest.$ac_ext <<_ACEOF | |
42585 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42586 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42587 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42588 | #define $ac_func innocuous_$ac_func | |
42589 | ||
a848cd7e SC |
42590 | /* System header to define __stub macros and hopefully few prototypes, |
42591 | which can conflict with char $ac_func (); below. | |
42592 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42593 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42594 | |
a848cd7e SC |
42595 | #ifdef __STDC__ |
42596 | # include <limits.h> | |
42597 | #else | |
42598 | # include <assert.h> | |
42599 | #endif | |
ac1cb8d3 VS |
42600 | |
42601 | #undef $ac_func | |
42602 | ||
a848cd7e SC |
42603 | /* Override any gcc2 internal prototype to avoid an error. */ |
42604 | #ifdef __cplusplus | |
42605 | extern "C" | |
42606 | { | |
42607 | #endif | |
42608 | /* We use char because int might match the return type of a gcc2 | |
42609 | builtin and then its argument prototype would still apply. */ | |
42610 | char $ac_func (); | |
42611 | /* The GNU C library defines this for functions which it implements | |
42612 | to always fail with ENOSYS. Some functions are actually named | |
42613 | something starting with __ and the normal name is an alias. */ | |
42614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42615 | choke me | |
42616 | #else | |
42617 | char (*f) () = $ac_func; | |
42618 | #endif | |
42619 | #ifdef __cplusplus | |
42620 | } | |
42621 | #endif | |
42622 | ||
42623 | int | |
42624 | main () | |
42625 | { | |
42626 | return f != $ac_func; | |
42627 | ; | |
42628 | return 0; | |
42629 | } | |
42630 | _ACEOF | |
42631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42633 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42634 | ac_status=$? |
ac1cb8d3 VS |
42635 | grep -v '^ *+' conftest.er1 >conftest.err |
42636 | rm -f conftest.er1 | |
42637 | cat conftest.err >&5 | |
a848cd7e SC |
42638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42639 | (exit $ac_status); } && | |
6ebeb4c7 | 42640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42642 | (eval $ac_try) 2>&5 | |
42643 | ac_status=$? | |
42644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42645 | (exit $ac_status); }; } && | |
42646 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42648 | (eval $ac_try) 2>&5 | |
42649 | ac_status=$? | |
42650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42651 | (exit $ac_status); }; }; then | |
42652 | eval "$as_ac_var=yes" | |
42653 | else | |
42654 | echo "$as_me: failed program was:" >&5 | |
42655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42656 | ||
42657 | eval "$as_ac_var=no" | |
42658 | fi | |
ac1cb8d3 VS |
42659 | rm -f conftest.err conftest.$ac_objext \ |
42660 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42661 | fi |
42662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42663 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42664 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42665 | cat >>confdefs.h <<_ACEOF | |
42666 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42667 | _ACEOF | |
42668 | have_ceil=1 | |
42669 | fi | |
42670 | done | |
42671 | ||
42672 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
42673 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
42674 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
42675 | echo "$as_me:$LINENO: result: yes" >&5 | |
42676 | echo "${ECHO_T}yes" >&6 | |
42677 | else | |
42678 | echo "$as_me:$LINENO: result: no" >&5 | |
42679 | echo "${ECHO_T}no" >&6 | |
42680 | # not sure we should warn the user, crash, etc. | |
42681 | fi | |
42682 | fi | |
42683 | ||
42684 | if test "$wxUSE_GUI" = "yes"; then | |
42685 | ||
42686 | ||
8bce5cda MW |
42687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
42688 | dynamic erase event exec font image minimal mobile \ | |
42689 | mobile/wxedit mobile/styles propsize render \ | |
42690 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
42691 | |
42692 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
42693 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
42694 | fi | |
0b78747f | 42695 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
42696 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
42697 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
42698 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
42699 | fi | |
42700 | fi | |
42701 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
42702 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 42703 | fi |
a848cd7e SC |
42704 | else |
42705 | SAMPLES_SUBDIRS="console" | |
42706 | fi | |
42707 | ||
42708 | ||
ceec2216 | 42709 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
42710 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
42711 | ||
48f625bc | 42712 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
42713 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
42714 | elif test "$GCC" = yes ; then | |
42715 | CWARNINGS="-Wall -Wundef" | |
42716 | fi | |
42717 | ||
48f625bc | 42718 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 42719 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
42720 | elif test "$GXX" = yes ; then |
42721 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 42722 | fi |
a848cd7e SC |
42723 | |
42724 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
42725 | ||
0c3c69fc | 42726 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 42727 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 42728 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 42729 | |
95986553 DE |
42730 | if test "x$MWCC" = "xyes"; then |
42731 | ||
42732 | CC="$CC -cwd source -I-" | |
42733 | CXX="$CXX -cwd source -I-" | |
42734 | fi | |
42735 | ||
a848cd7e | 42736 | |
0c3c69fc | 42737 | LIBS=`echo $LIBS` |
a848cd7e SC |
42738 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
42739 | EXTRALIBS_XML="$EXPAT_LINK" | |
42740 | EXTRALIBS_HTML="$MSPACK_LINK" | |
42741 | EXTRALIBS_ODBC="$ODBC_LINK" | |
42742 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 42743 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
42744 | fi |
42745 | if test "$wxUSE_OPENGL" = "yes"; then | |
42746 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
42747 | fi | |
42748 | ||
42749 | LDFLAGS="$LDFLAGS $PROFILE" | |
42750 | ||
42751 | if test "$wxUSE_GTK" = 1; then | |
42752 | WXCONFIG_INCLUDE= | |
42753 | else | |
42754 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
42755 | fi | |
42756 | ||
42757 | WXCONFIG_EXTRALIBS="$LIBS" | |
42758 | ||
42759 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 42760 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
42761 | fi |
42762 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 42763 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
42764 | fi |
42765 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 42766 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
42767 | fi |
42768 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 42769 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
42770 | fi |
42771 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 42772 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
42773 | fi |
42774 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 42775 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
42776 | fi |
42777 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 42778 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
42779 | fi |
42780 | ||
42781 | for i in $wxconfig_3rdparty ; do | |
74802184 | 42782 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
42783 | done |
42784 | ||
42785 | ||
42786 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
42787 | WXUNIV=1 | |
42788 | else | |
42789 | WXUNIV=0 | |
42790 | fi | |
42791 | ||
42792 | ||
42793 | ||
42794 | ||
42795 | ||
42796 | ||
42797 | ||
42798 | ||
42799 | ||
42800 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
42801 | MONOLITHIC=1 | |
42802 | else | |
42803 | MONOLITHIC=0 | |
42804 | fi | |
42805 | ||
42806 | if test $wxUSE_PLUGINS = "yes" ; then | |
42807 | USE_PLUGINS=1 | |
42808 | else | |
42809 | USE_PLUGINS=0 | |
42810 | fi | |
42811 | ||
42812 | if test $wxUSE_ODBC != "no" ; then | |
42813 | USE_ODBC=1 | |
42814 | else | |
42815 | USE_ODBC=0 | |
42816 | fi | |
42817 | ||
16358932 VZ |
42818 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42819 | USE_QA=1 | |
42820 | else | |
42821 | USE_QA=0 | |
42822 | fi | |
42823 | ||
a848cd7e SC |
42824 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
42825 | OFFICIAL_BUILD=1 | |
42826 | else | |
42827 | OFFICIAL_BUILD=0 | |
42828 | fi | |
42829 | ||
42830 | ||
42831 | ||
42832 | ||
42833 | ||
42834 | ||
42835 | ||
42836 | ||
42837 | ||
42838 | ||
42839 | ||
42840 | ||
42841 | ||
42842 | ||
42843 | ||
42844 | ||
42845 | ||
42846 | ||
42847 | ||
ceec2216 | 42848 | |
d1c38808 | 42849 | |
a848cd7e SC |
42850 | |
42851 | ||
42852 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
42853 | ||
42854 | ||
42855 | ||
42856 | ||
42857 | ||
42858 | ||
42859 | ||
42860 | ||
4d4ff94c VZ |
42861 | case "$TOOLKIT" in |
42862 | GTK) | |
42863 | TOOLKIT_USER="GTK+" | |
42864 | if test "$WXGTK20" = 1; then | |
42865 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
42866 | fi | |
9a8f0513 | 42867 | ;; |
4d4ff94c VZ |
42868 | |
42869 | *) | |
42870 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 42871 | ;; |
4d4ff94c | 42872 | esac |
a848cd7e | 42873 | |
fb00f58d JS |
42874 | if test "$wxUSE_WINE" = "yes"; then |
42875 | BAKEFILE_FORCE_PLATFORM=win32 | |
42876 | fi | |
42877 | ||
9a8f0513 | 42878 | |
1e9e8aba DE |
42879 | |
42880 | ||
a848cd7e SC |
42881 | if test "x$BAKEFILE_HOST" = "x"; then |
42882 | BAKEFILE_HOST="${host}" | |
42883 | fi | |
42884 | ||
42885 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
42886 | ||
42887 | if test -n "$ac_tool_prefix"; then | |
42888 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
42889 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
42890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42892 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
42893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42894 | else | |
42895 | if test -n "$RANLIB"; then | |
42896 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
42897 | else | |
42898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42899 | for as_dir in $PATH | |
42900 | do | |
42901 | IFS=$as_save_IFS | |
42902 | test -z "$as_dir" && as_dir=. | |
42903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42905 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
42906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42907 | break 2 | |
42908 | fi | |
42909 | done | |
42910 | done | |
42911 | ||
42912 | fi | |
42913 | fi | |
42914 | RANLIB=$ac_cv_prog_RANLIB | |
42915 | if test -n "$RANLIB"; then | |
42916 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
42917 | echo "${ECHO_T}$RANLIB" >&6 | |
42918 | else | |
42919 | echo "$as_me:$LINENO: result: no" >&5 | |
42920 | echo "${ECHO_T}no" >&6 | |
42921 | fi | |
42922 | ||
42923 | fi | |
42924 | if test -z "$ac_cv_prog_RANLIB"; then | |
42925 | ac_ct_RANLIB=$RANLIB | |
42926 | # Extract the first word of "ranlib", so it can be a program name with args. | |
42927 | set dummy ranlib; ac_word=$2 | |
42928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42930 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
42931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42932 | else | |
42933 | if test -n "$ac_ct_RANLIB"; then | |
42934 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
42935 | else | |
42936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42937 | for as_dir in $PATH | |
42938 | do | |
42939 | IFS=$as_save_IFS | |
42940 | test -z "$as_dir" && as_dir=. | |
42941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42943 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
42944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42945 | break 2 | |
42946 | fi | |
42947 | done | |
42948 | done | |
42949 | ||
42950 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
42951 | fi | |
42952 | fi | |
42953 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
42954 | if test -n "$ac_ct_RANLIB"; then | |
42955 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
42956 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
42957 | else | |
42958 | echo "$as_me:$LINENO: result: no" >&5 | |
42959 | echo "${ECHO_T}no" >&6 | |
42960 | fi | |
42961 | ||
42962 | RANLIB=$ac_ct_RANLIB | |
42963 | else | |
42964 | RANLIB="$ac_cv_prog_RANLIB" | |
42965 | fi | |
42966 | ||
42967 | # Find a good install program. We prefer a C program (faster), | |
42968 | # so one script is as good as another. But avoid the broken or | |
42969 | # incompatible versions: | |
42970 | # SysV /etc/install, /usr/sbin/install | |
42971 | # SunOS /usr/etc/install | |
42972 | # IRIX /sbin/install | |
42973 | # AIX /bin/install | |
42974 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
42975 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
42976 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
42977 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 42978 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
42979 | # ./install, which can be erroneously created by make from ./install.sh. |
42980 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
42981 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
42982 | if test -z "$INSTALL"; then | |
42983 | if test "${ac_cv_path_install+set}" = set; then | |
42984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42985 | else | |
42986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42987 | for as_dir in $PATH | |
42988 | do | |
42989 | IFS=$as_save_IFS | |
42990 | test -z "$as_dir" && as_dir=. | |
42991 | # Account for people who put trailing slashes in PATH elements. | |
42992 | case $as_dir/ in | |
42993 | ./ | .// | /cC/* | \ | |
42994 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 42995 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
42996 | /usr/ucb/* ) ;; |
42997 | *) | |
42998 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
42999 | # Don't use installbsd from OSF since it installs stuff as root | |
43000 | # by default. | |
43001 | for ac_prog in ginstall scoinst install; do | |
43002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
43003 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
43004 | if test $ac_prog = install && | |
43005 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43006 | # AIX install. It has an incompatible calling convention. | |
43007 | : | |
43008 | elif test $ac_prog = install && | |
43009 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43010 | # program-specific install script used by HP pwplus--don't use. | |
43011 | : | |
43012 | else | |
43013 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
43014 | break 3 | |
43015 | fi | |
43016 | fi | |
a848cd7e SC |
43017 | done |
43018 | done | |
43019 | ;; | |
43020 | esac | |
43021 | done | |
43022 | ||
43023 | ||
43024 | fi | |
43025 | if test "${ac_cv_path_install+set}" = set; then | |
43026 | INSTALL=$ac_cv_path_install | |
43027 | else | |
43028 | # As a last resort, use the slow shell script. We don't cache a | |
43029 | # path for INSTALL within a source directory, because that will | |
43030 | # break other packages using the cache if that directory is | |
43031 | # removed, or if the path is relative. | |
43032 | INSTALL=$ac_install_sh | |
43033 | fi | |
43034 | fi | |
43035 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
43036 | echo "${ECHO_T}$INSTALL" >&6 | |
43037 | ||
43038 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
43039 | # It thinks the first close brace ends the variable substitution. | |
43040 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
43041 | ||
43042 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
43043 | ||
43044 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
43045 | ||
43046 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
43047 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
43048 | LN_S=$as_ln_s | |
43049 | if test "$LN_S" = "ln -s"; then | |
43050 | echo "$as_me:$LINENO: result: yes" >&5 | |
43051 | echo "${ECHO_T}yes" >&6 | |
43052 | else | |
43053 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
43054 | echo "${ECHO_T}no, using $LN_S" >&6 | |
43055 | fi | |
43056 | ||
43057 | ||
43058 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43059 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43060 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43061 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43063 | else | |
43064 | cat >conftest.make <<\_ACEOF | |
43065 | all: | |
43066 | @echo 'ac_maketemp="$(MAKE)"' | |
43067 | _ACEOF | |
43068 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43069 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43070 | if test -n "$ac_maketemp"; then | |
43071 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43072 | else | |
43073 | eval ac_cv_prog_make_${ac_make}_set=no | |
43074 | fi | |
43075 | rm -f conftest.make | |
43076 | fi | |
43077 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43078 | echo "$as_me:$LINENO: result: yes" >&5 | |
43079 | echo "${ECHO_T}yes" >&6 | |
43080 | SET_MAKE= | |
43081 | else | |
43082 | echo "$as_me:$LINENO: result: no" >&5 | |
43083 | echo "${ECHO_T}no" >&6 | |
43084 | SET_MAKE="MAKE=${MAKE-make}" | |
43085 | fi | |
43086 | ||
43087 | ||
43088 | ||
43089 | if test -n "$ac_tool_prefix"; then | |
43090 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
43091 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
43092 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43094 | if test "${ac_cv_prog_AR+set}" = set; then | |
43095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43096 | else | |
43097 | if test -n "$AR"; then | |
43098 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
43099 | else | |
43100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43101 | for as_dir in $PATH | |
43102 | do | |
43103 | IFS=$as_save_IFS | |
43104 | test -z "$as_dir" && as_dir=. | |
43105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43106 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43107 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
43108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43109 | break 2 | |
43110 | fi | |
43111 | done | |
43112 | done | |
43113 | ||
43114 | fi | |
43115 | fi | |
43116 | AR=$ac_cv_prog_AR | |
43117 | if test -n "$AR"; then | |
43118 | echo "$as_me:$LINENO: result: $AR" >&5 | |
43119 | echo "${ECHO_T}$AR" >&6 | |
43120 | else | |
43121 | echo "$as_me:$LINENO: result: no" >&5 | |
43122 | echo "${ECHO_T}no" >&6 | |
43123 | fi | |
43124 | ||
43125 | fi | |
43126 | if test -z "$ac_cv_prog_AR"; then | |
43127 | ac_ct_AR=$AR | |
43128 | # Extract the first word of "ar", so it can be a program name with args. | |
43129 | set dummy ar; ac_word=$2 | |
43130 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43132 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
43133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43134 | else | |
43135 | if test -n "$ac_ct_AR"; then | |
43136 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
43137 | else | |
43138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43139 | for as_dir in $PATH | |
43140 | do | |
43141 | IFS=$as_save_IFS | |
43142 | test -z "$as_dir" && as_dir=. | |
43143 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43144 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43145 | ac_cv_prog_ac_ct_AR="ar" | |
43146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43147 | break 2 | |
43148 | fi | |
43149 | done | |
43150 | done | |
43151 | ||
43152 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
43153 | fi | |
43154 | fi | |
43155 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
43156 | if test -n "$ac_ct_AR"; then | |
43157 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
43158 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
43159 | else | |
43160 | echo "$as_me:$LINENO: result: no" >&5 | |
43161 | echo "${ECHO_T}no" >&6 | |
43162 | fi | |
43163 | ||
43164 | AR=$ac_ct_AR | |
43165 | else | |
43166 | AR="$ac_cv_prog_AR" | |
43167 | fi | |
43168 | ||
43169 | if test -n "$ac_tool_prefix"; then | |
43170 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
43171 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
43172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43174 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
43175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43176 | else | |
43177 | if test -n "$STRIP"; then | |
43178 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
43179 | else | |
43180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43181 | for as_dir in $PATH | |
43182 | do | |
43183 | IFS=$as_save_IFS | |
43184 | test -z "$as_dir" && as_dir=. | |
43185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43187 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
43188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43189 | break 2 | |
43190 | fi | |
43191 | done | |
43192 | done | |
43193 | ||
43194 | fi | |
43195 | fi | |
43196 | STRIP=$ac_cv_prog_STRIP | |
43197 | if test -n "$STRIP"; then | |
43198 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
43199 | echo "${ECHO_T}$STRIP" >&6 | |
43200 | else | |
43201 | echo "$as_me:$LINENO: result: no" >&5 | |
43202 | echo "${ECHO_T}no" >&6 | |
43203 | fi | |
43204 | ||
43205 | fi | |
43206 | if test -z "$ac_cv_prog_STRIP"; then | |
43207 | ac_ct_STRIP=$STRIP | |
43208 | # Extract the first word of "strip", so it can be a program name with args. | |
43209 | set dummy strip; ac_word=$2 | |
43210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43212 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
43213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43214 | else | |
43215 | if test -n "$ac_ct_STRIP"; then | |
43216 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
43217 | else | |
43218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43219 | for as_dir in $PATH | |
43220 | do | |
43221 | IFS=$as_save_IFS | |
43222 | test -z "$as_dir" && as_dir=. | |
43223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43225 | ac_cv_prog_ac_ct_STRIP="strip" | |
43226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43227 | break 2 | |
43228 | fi | |
43229 | done | |
43230 | done | |
43231 | ||
43232 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
43233 | fi | |
43234 | fi | |
43235 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
43236 | if test -n "$ac_ct_STRIP"; then | |
43237 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
43238 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
43239 | else | |
43240 | echo "$as_me:$LINENO: result: no" >&5 | |
43241 | echo "${ECHO_T}no" >&6 | |
43242 | fi | |
43243 | ||
43244 | STRIP=$ac_ct_STRIP | |
43245 | else | |
43246 | STRIP="$ac_cv_prog_STRIP" | |
43247 | fi | |
43248 | ||
43249 | if test -n "$ac_tool_prefix"; then | |
43250 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
43251 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
43252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43254 | if test "${ac_cv_prog_NM+set}" = set; then | |
43255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43256 | else | |
43257 | if test -n "$NM"; then | |
43258 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
43259 | else | |
43260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43261 | for as_dir in $PATH | |
43262 | do | |
43263 | IFS=$as_save_IFS | |
43264 | test -z "$as_dir" && as_dir=. | |
43265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43267 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
43268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43269 | break 2 | |
43270 | fi | |
43271 | done | |
43272 | done | |
43273 | ||
43274 | fi | |
43275 | fi | |
43276 | NM=$ac_cv_prog_NM | |
43277 | if test -n "$NM"; then | |
43278 | echo "$as_me:$LINENO: result: $NM" >&5 | |
43279 | echo "${ECHO_T}$NM" >&6 | |
43280 | else | |
43281 | echo "$as_me:$LINENO: result: no" >&5 | |
43282 | echo "${ECHO_T}no" >&6 | |
43283 | fi | |
43284 | ||
43285 | fi | |
43286 | if test -z "$ac_cv_prog_NM"; then | |
43287 | ac_ct_NM=$NM | |
43288 | # Extract the first word of "nm", so it can be a program name with args. | |
43289 | set dummy nm; ac_word=$2 | |
43290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43292 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
43293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43294 | else | |
43295 | if test -n "$ac_ct_NM"; then | |
43296 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
43297 | else | |
43298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43299 | for as_dir in $PATH | |
43300 | do | |
43301 | IFS=$as_save_IFS | |
43302 | test -z "$as_dir" && as_dir=. | |
43303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43305 | ac_cv_prog_ac_ct_NM="nm" | |
43306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43307 | break 2 | |
43308 | fi | |
43309 | done | |
43310 | done | |
43311 | ||
43312 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
43313 | fi | |
43314 | fi | |
43315 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
43316 | if test -n "$ac_ct_NM"; then | |
43317 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
43318 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
43319 | else | |
43320 | echo "$as_me:$LINENO: result: no" >&5 | |
43321 | echo "${ECHO_T}no" >&6 | |
43322 | fi | |
43323 | ||
43324 | NM=$ac_ct_NM | |
43325 | else | |
43326 | NM="$ac_cv_prog_NM" | |
43327 | fi | |
43328 | ||
43329 | ||
43330 | case ${BAKEFILE_HOST} in | |
43331 | *-hp-hpux* ) | |
1e9e8aba | 43332 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
43333 | ;; |
43334 | *) INSTALL_DIR="$INSTALL -d" | |
43335 | ;; | |
43336 | esac | |
43337 | ||
43338 | ||
43339 | LDFLAGS_GUI= | |
43340 | case ${BAKEFILE_HOST} in | |
43341 | *-*-cygwin* | *-*-mingw32* ) | |
43342 | LDFLAGS_GUI="-mwindows" | |
43343 | esac | |
43344 | ||
43345 | ||
43346 | fi | |
43347 | ||
43348 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
43349 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
43350 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
43351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43352 | else | |
43353 | ||
43354 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
43355 | egrep -s GNU > /dev/null); then | |
43356 | bakefile_cv_prog_makeisgnu="yes" | |
43357 | else | |
43358 | bakefile_cv_prog_makeisgnu="no" | |
43359 | fi | |
43360 | ||
43361 | fi | |
43362 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
43363 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
43364 | ||
43365 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
43366 | IF_GNU_MAKE="" | |
43367 | else | |
43368 | IF_GNU_MAKE="#" | |
43369 | fi | |
43370 | ||
43371 | ||
43372 | ||
43373 | PLATFORM_UNIX=0 | |
43374 | PLATFORM_WIN32=0 | |
43375 | PLATFORM_MSDOS=0 | |
43376 | PLATFORM_MAC=0 | |
1e9e8aba | 43377 | PLATFORM_MACOS=0 |
a848cd7e SC |
43378 | PLATFORM_MACOSX=0 |
43379 | PLATFORM_OS2=0 | |
1e9e8aba | 43380 | PLATFORM_BEOS=0 |
a848cd7e SC |
43381 | |
43382 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
43383 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 43384 | *-*-mingw32* ) |
a848cd7e SC |
43385 | PLATFORM_WIN32=1 |
43386 | ;; | |
43387 | *-pc-msdosdjgpp ) | |
43388 | PLATFORM_MSDOS=1 | |
43389 | ;; | |
43390 | *-pc-os2_emx | *-pc-os2-emx ) | |
43391 | PLATFORM_OS2=1 | |
43392 | ;; | |
47bd5406 | 43393 | *-*-darwin* ) |
a848cd7e SC |
43394 | PLATFORM_MAC=1 |
43395 | PLATFORM_MACOSX=1 | |
43396 | ;; | |
1e9e8aba DE |
43397 | *-*-beos* ) |
43398 | PLATFORM_BEOS=1 | |
43399 | ;; | |
43400 | powerpc-apple-macos* ) | |
43401 | PLATFORM_MAC=1 | |
43402 | PLATFORM_MACOS=1 | |
43403 | ;; | |
a848cd7e SC |
43404 | * ) |
43405 | PLATFORM_UNIX=1 | |
43406 | ;; | |
43407 | esac | |
43408 | else | |
43409 | case "$BAKEFILE_FORCE_PLATFORM" in | |
43410 | win32 ) | |
43411 | PLATFORM_WIN32=1 | |
43412 | ;; | |
43413 | msdos ) | |
43414 | PLATFORM_MSDOS=1 | |
43415 | ;; | |
43416 | os2 ) | |
43417 | PLATFORM_OS2=1 | |
43418 | ;; | |
43419 | darwin ) | |
43420 | PLATFORM_MAC=1 | |
43421 | PLATFORM_MACOSX=1 | |
43422 | ;; | |
43423 | unix ) | |
43424 | PLATFORM_UNIX=1 | |
43425 | ;; | |
1e9e8aba DE |
43426 | beos ) |
43427 | PLATFORM_BEOS=1 | |
43428 | ;; | |
a848cd7e SC |
43429 | * ) |
43430 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
43431 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
43432 | { (exit 1); exit 1; }; } | |
43433 | ;; | |
43434 | esac | |
43435 | fi | |
43436 | ||
43437 | ||
43438 | ||
43439 | ||
43440 | ||
43441 | ||
43442 | ||
43443 | ||
43444 | ||
1e9e8aba DE |
43445 | |
43446 | ||
a848cd7e SC |
43447 | # Check whether --enable-omf or --disable-omf was given. |
43448 | if test "${enable_omf+set}" = set; then | |
43449 | enableval="$enable_omf" | |
43450 | bk_os2_use_omf="$enableval" | |
43451 | fi; | |
43452 | ||
43453 | case "${BAKEFILE_HOST}" in | |
43454 | *-*-darwin* ) | |
47bd5406 VZ |
43455 | if test "x$GCC" = "xyes"; then |
43456 | CFLAGS="$CFLAGS -fno-common" | |
43457 | CXXFLAGS="$CXXFLAGS -fno-common" | |
43458 | fi | |
43459 | if test "x$XLCC" = "xyes"; then | |
43460 | CFLAGS="$CFLAGS -qnocommon" | |
43461 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
43462 | fi | |
a848cd7e SC |
43463 | ;; |
43464 | ||
43465 | *-pc-os2_emx | *-pc-os2-emx ) | |
43466 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
43467 | AR=emxomfar | |
43468 | RANLIB=: | |
43469 | LDFLAGS="-Zomf $LDFLAGS" | |
43470 | CFLAGS="-Zomf $CFLAGS" | |
43471 | CXXFLAGS="-Zomf $CXXFLAGS" | |
43472 | OS2_LIBEXT="lib" | |
43473 | else | |
43474 | OS2_LIBEXT="a" | |
43475 | fi | |
43476 | ;; | |
1e9e8aba DE |
43477 | |
43478 | i*86-*-beos* ) | |
43479 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
43480 | ;; | |
a848cd7e SC |
43481 | esac |
43482 | ||
43483 | ||
43484 | SO_SUFFIX="so" | |
43485 | SO_SUFFIX_MODULE="so" | |
43486 | EXEEXT="" | |
43487 | LIBPREFIX="lib" | |
43488 | LIBEXT=".a" | |
43489 | DLLPREFIX="lib" | |
43490 | DLLPREFIX_MODULE="" | |
43491 | DLLIMP_SUFFIX="" | |
810b94f0 | 43492 | dlldir="$libdir" |
a848cd7e SC |
43493 | |
43494 | case "${BAKEFILE_HOST}" in | |
43495 | *-hp-hpux* ) | |
43496 | SO_SUFFIX="sl" | |
43497 | SO_SUFFIX_MODULE="sl" | |
43498 | ;; | |
43499 | *-*-aix* ) | |
43500 | SO_SUFFIX="a" | |
43501 | SO_SUFFIX_MODULE="a" | |
43502 | ;; | |
810b94f0 MW |
43503 | *-*-cygwin* ) |
43504 | SO_SUFFIX="dll" | |
43505 | SO_SUFFIX_MODULE="dll" | |
43506 | DLLIMP_SUFFIX="dll.a" | |
43507 | EXEEXT=".exe" | |
43508 | DLLPREFIX="cyg" | |
43509 | dlldir="$bindir" | |
43510 | ;; | |
43511 | *-*-mingw32* ) | |
a848cd7e SC |
43512 | SO_SUFFIX="dll" |
43513 | SO_SUFFIX_MODULE="dll" | |
43514 | DLLIMP_SUFFIX="dll.a" | |
43515 | EXEEXT=".exe" | |
43516 | DLLPREFIX="" | |
810b94f0 | 43517 | dlldir="$bindir" |
a848cd7e SC |
43518 | ;; |
43519 | *-pc-msdosdjgpp ) | |
43520 | EXEEXT=".exe" | |
43521 | DLLPREFIX="" | |
810b94f0 | 43522 | dlldir="$bindir" |
a848cd7e SC |
43523 | ;; |
43524 | *-pc-os2_emx | *-pc-os2-emx ) | |
43525 | SO_SUFFIX="dll" | |
43526 | SO_SUFFIX_MODULE="dll" | |
43527 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
43528 | EXEEXT=".exe" | |
43529 | DLLPREFIX="" | |
43530 | LIBPREFIX="" | |
43531 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 43532 | dlldir="$bindir" |
a848cd7e | 43533 | ;; |
47bd5406 | 43534 | *-*-darwin* ) |
a848cd7e SC |
43535 | SO_SUFFIX="dylib" |
43536 | SO_SUFFIX_MODULE="bundle" | |
43537 | ;; | |
43538 | esac | |
43539 | ||
43540 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
43541 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
43542 | fi | |
43543 | ||
43544 | ||
43545 | ||
43546 | ||
43547 | ||
43548 | ||
43549 | ||
43550 | ||
43551 | ||
43552 | ||
43553 | ||
810b94f0 | 43554 | |
1e9e8aba DE |
43555 | PIC_FLAG="" |
43556 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
43557 | PIC_FLAG="-fPIC" |
43558 | fi | |
43559 | ||
1e9e8aba DE |
43560 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
43561 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 43562 | WINDOWS_IMPLIB=0 |
1e9e8aba | 43563 | |
a848cd7e SC |
43564 | case "${BAKEFILE_HOST}" in |
43565 | *-hp-hpux* ) | |
1e9e8aba | 43566 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
43567 | LDFLAGS="$LDFLAGS -L/usr/lib" |
43568 | ||
43569 | SHARED_LD_CC="${CC} -b -o" | |
43570 | SHARED_LD_CXX="${CXX} -b -o" | |
43571 | PIC_FLAG="+Z" | |
43572 | fi | |
43573 | ;; | |
43574 | ||
43575 | *-*-linux* ) | |
43576 | if test "x$GCC" != "xyes"; then | |
43577 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
43578 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
43579 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
43580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43581 | else | |
43582 | ||
43583 | cat >conftest.$ac_ext <<_ACEOF | |
43584 | /* confdefs.h. */ | |
43585 | _ACEOF | |
43586 | cat confdefs.h >>conftest.$ac_ext | |
43587 | cat >>conftest.$ac_ext <<_ACEOF | |
43588 | /* end confdefs.h. */ | |
43589 | ||
43590 | int | |
43591 | main () | |
43592 | { | |
43593 | ||
43594 | #ifndef __INTEL_COMPILER | |
43595 | #error Not icc | |
43596 | #endif | |
43597 | ||
43598 | ; | |
43599 | return 0; | |
43600 | } | |
43601 | _ACEOF | |
43602 | rm -f conftest.$ac_objext | |
43603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43605 | ac_status=$? |
ac1cb8d3 VS |
43606 | grep -v '^ *+' conftest.er1 >conftest.err |
43607 | rm -f conftest.er1 | |
43608 | cat conftest.err >&5 | |
a848cd7e SC |
43609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43610 | (exit $ac_status); } && | |
6ebeb4c7 | 43611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43613 | (eval $ac_try) 2>&5 | |
43614 | ac_status=$? | |
43615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43616 | (exit $ac_status); }; } && | |
43617 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43619 | (eval $ac_try) 2>&5 | |
43620 | ac_status=$? | |
43621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43622 | (exit $ac_status); }; }; then | |
43623 | bakefile_cv_prog_icc=yes | |
43624 | else | |
43625 | echo "$as_me: failed program was:" >&5 | |
43626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43627 | ||
43628 | bakefile_cv_prog_icc=no | |
43629 | ||
43630 | fi | |
ac1cb8d3 | 43631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43632 | |
43633 | fi | |
43634 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
43635 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
43636 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
43637 | PIC_FLAG="-KPIC" | |
43638 | fi | |
43639 | fi | |
43640 | ;; | |
43641 | ||
43642 | *-*-solaris2* ) | |
43643 | if test "x$GCC" != xyes ; then | |
43644 | SHARED_LD_CC="${CC} -G -o" | |
43645 | SHARED_LD_CXX="${CXX} -G -o" | |
43646 | PIC_FLAG="-KPIC" | |
43647 | fi | |
43648 | ;; | |
43649 | ||
43650 | *-*-darwin* ) | |
43651 | ||
43652 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
43653 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
43654 | if test "${wx_cv_gcc31+set}" = set; then | |
43655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43656 | else | |
43657 | ||
43658 | cat >conftest.$ac_ext <<_ACEOF | |
43659 | /* confdefs.h. */ | |
43660 | _ACEOF | |
43661 | cat confdefs.h >>conftest.$ac_ext | |
43662 | cat >>conftest.$ac_ext <<_ACEOF | |
43663 | /* end confdefs.h. */ | |
43664 | ||
43665 | int | |
43666 | main () | |
43667 | { | |
43668 | ||
43669 | #if (__GNUC__ < 3) || \ | |
43670 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
43671 | #error old gcc | |
43672 | #endif | |
43673 | ||
43674 | ; | |
43675 | return 0; | |
43676 | } | |
43677 | _ACEOF | |
43678 | rm -f conftest.$ac_objext | |
43679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43680 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43681 | ac_status=$? |
ac1cb8d3 VS |
43682 | grep -v '^ *+' conftest.er1 >conftest.err |
43683 | rm -f conftest.er1 | |
43684 | cat conftest.err >&5 | |
a848cd7e SC |
43685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43686 | (exit $ac_status); } && | |
6ebeb4c7 | 43687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43689 | (eval $ac_try) 2>&5 | |
43690 | ac_status=$? | |
43691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43692 | (exit $ac_status); }; } && | |
43693 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43695 | (eval $ac_try) 2>&5 | |
43696 | ac_status=$? | |
43697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43698 | (exit $ac_status); }; }; then | |
43699 | ||
43700 | wx_cv_gcc31=yes | |
43701 | ||
43702 | else | |
43703 | echo "$as_me: failed program was:" >&5 | |
43704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43705 | ||
43706 | ||
43707 | wx_cv_gcc31=no | |
43708 | ||
43709 | ||
43710 | fi | |
ac1cb8d3 | 43711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43712 | |
43713 | fi | |
43714 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
43715 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
43716 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
43717 | |
43718 | D='$' | |
43719 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
43720 | #!/bin/sh |
43721 | #----------------------------------------------------------------------------- | |
43722 | #-- Name: distrib/mac/shared-ld-sh | |
43723 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
43724 | #-- Author: Gilles Depeyrot | |
43725 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
43726 | #-- Licence: any use permitted | |
43727 | #----------------------------------------------------------------------------- | |
43728 | ||
43729 | verbose=0 | |
43730 | args="" | |
43731 | objects="" | |
43732 | linking_flag="-dynamiclib" | |
810b94f0 | 43733 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 43734 | |
473276a9 VS |
43735 | while test ${D}# -gt 0; do |
43736 | case ${D}1 in | |
a848cd7e SC |
43737 | |
43738 | -v) | |
43739 | verbose=1 | |
43740 | ;; | |
43741 | ||
43742 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
43743 | # collect these options and values | |
473276a9 | 43744 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
43745 | shift |
43746 | ;; | |
43747 | ||
810b94f0 MW |
43748 | -s|-Wl,*) |
43749 | # collect these load args | |
43750 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 43751 | ;; |
810b94f0 MW |
43752 | |
43753 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 43754 | # collect these options |
473276a9 | 43755 | args="${D}{args} ${D}1" |
a848cd7e SC |
43756 | ;; |
43757 | ||
43758 | -dynamiclib|-bundle) | |
473276a9 | 43759 | linking_flag="${D}1" |
a848cd7e SC |
43760 | ;; |
43761 | ||
43762 | -*) | |
473276a9 | 43763 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
43764 | exit 1 |
43765 | ;; | |
43766 | ||
43767 | *.o | *.a | *.dylib) | |
43768 | # collect object files | |
473276a9 | 43769 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
43770 | ;; |
43771 | ||
43772 | *) | |
473276a9 | 43773 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
43774 | exit 1 |
43775 | ;; | |
43776 | ||
43777 | esac | |
43778 | shift | |
43779 | done | |
43780 | ||
810b94f0 MW |
43781 | status=0 |
43782 | ||
a848cd7e SC |
43783 | # |
43784 | # Link one module containing all the others | |
43785 | # | |
473276a9 | 43786 | if test ${D}{verbose} = 1; then |
810b94f0 | 43787 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 43788 | fi |
810b94f0 | 43789 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 43790 | status=${D}? |
a848cd7e SC |
43791 | |
43792 | # | |
810b94f0 MW |
43793 | # Link the shared library from the single module created, but only if the |
43794 | # previous command didn't fail: | |
a848cd7e | 43795 | # |
810b94f0 MW |
43796 | if test ${D}{status} = 0; then |
43797 | if test ${D}{verbose} = 1; then | |
43798 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
43799 | fi | |
43800 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
43801 | status=${D}? | |
a848cd7e SC |
43802 | fi |
43803 | ||
43804 | # | |
43805 | # Remove intermediate module | |
43806 | # | |
473276a9 | 43807 | rm -f master.${D}${D}.o |
a848cd7e | 43808 | |
810b94f0 | 43809 | exit ${D}status |
a848cd7e | 43810 | EOF |
473276a9 | 43811 | |
a848cd7e SC |
43812 | chmod +x shared-ld-sh |
43813 | ||
43814 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
43815 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
43816 | SHARED_LD_CXX="$SHARED_LD_CC" | |
43817 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
43818 | else | |
43819 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43820 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
43821 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43822 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
43823 | fi | |
43824 | ||
47bd5406 VZ |
43825 | if test "x$GCC" == "xyes"; then |
43826 | PIC_FLAG="-dynamic -fPIC" | |
43827 | fi | |
43828 | if test "x$XLCC" = "xyes"; then | |
43829 | PIC_FLAG="-dynamic -DPIC" | |
43830 | fi | |
a848cd7e SC |
43831 | ;; |
43832 | ||
43833 | *-*-aix* ) | |
f6b50c59 VZ |
43834 | if test "x$GCC" = "xyes"; then |
43835 | PIC_FLAG="" | |
43836 | ||
43837 | case "${BAKEFILE_HOST}" in | |
43838 | *-*-aix5* ) | |
43839 | LD_EXPFULL="-Wl,-bexpfull" | |
43840 | ;; | |
43841 | esac | |
43842 | ||
7b94a67c VZ |
43843 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
43844 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
0ad5d837 | 43845 | else |
f6b50c59 | 43846 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
a848cd7e SC |
43847 | set dummy makeC++SharedLib; ac_word=$2 |
43848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43850 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
43851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43852 | else | |
43853 | if test -n "$AIX_CXX_LD"; then | |
43854 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
43855 | else | |
43856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43857 | for as_dir in $PATH | |
43858 | do | |
43859 | IFS=$as_save_IFS | |
43860 | test -z "$as_dir" && as_dir=. | |
43861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43863 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
43864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43865 | break 2 | |
43866 | fi | |
43867 | done | |
43868 | done | |
43869 | ||
43870 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
43871 | fi | |
43872 | fi | |
43873 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
43874 | if test -n "$AIX_CXX_LD"; then | |
43875 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
43876 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
43877 | else | |
43878 | echo "$as_me:$LINENO: result: no" >&5 | |
43879 | echo "${ECHO_T}no" >&6 | |
43880 | fi | |
43881 | ||
f6b50c59 | 43882 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
43883 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
43884 | fi | |
43885 | ;; | |
43886 | ||
43887 | *-*-beos* ) | |
1e9e8aba DE |
43888 | SHARED_LD_CC="${LD} -nostart -o" |
43889 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
43890 | ;; |
43891 | ||
43892 | *-*-irix* ) | |
43893 | if test "x$GCC" != "xyes"; then | |
43894 | PIC_FLAG="-KPIC" | |
43895 | fi | |
43896 | ;; | |
43897 | ||
43898 | *-*-cygwin* | *-*-mingw32* ) | |
43899 | PIC_FLAG="" | |
1e9e8aba DE |
43900 | SHARED_LD_CC="\$(CC) -shared -o" |
43901 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 43902 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
43903 | ;; |
43904 | ||
43905 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
43906 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
43907 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 43908 | PIC_FLAG="" |
473276a9 VS |
43909 | |
43910 | D='$' | |
43911 | cat <<EOF >dllar.sh | |
43912 | #!/bin/sh | |
43913 | # | |
43914 | # dllar - a tool to build both a .dll and an .a file | |
43915 | # from a set of object (.o) files for EMX/OS2. | |
43916 | # | |
43917 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
43918 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
43919 | # | |
43920 | # This script will accept a set of files on the command line. | |
43921 | # All the public symbols from the .o files will be exported into | |
43922 | # a .DEF file, then linker will be run (through gcc) against them to | |
43923 | # build a shared library consisting of all given .o files. All libraries | |
43924 | # (.a) will be first decompressed into component .o files then act as | |
43925 | # described above. You can optionally give a description (-d "description") | |
43926 | # which will be put into .DLL. To see the list of accepted options (as well | |
43927 | # as command-line format) simply run this program without options. The .DLL | |
43928 | # is built to be imported by name (there is no guarantee that new versions | |
43929 | # of the library you build will have same ordinals for same symbols). | |
43930 | # | |
43931 | # dllar is free software; you can redistribute it and/or modify | |
43932 | # it under the terms of the GNU General Public License as published by | |
43933 | # the Free Software Foundation; either version 2, or (at your option) | |
43934 | # any later version. | |
43935 | # | |
43936 | # dllar is distributed in the hope that it will be useful, | |
43937 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
43938 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
43939 | # GNU General Public License for more details. | |
43940 | # | |
43941 | # You should have received a copy of the GNU General Public License | |
43942 | # along with dllar; see the file COPYING. If not, write to the Free | |
43943 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
43944 | # 02111-1307, USA. | |
43945 | ||
43946 | # To successfuly run this program you will need: | |
43947 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
43948 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
43949 | # - gcc | |
43950 | # (used to build the .dll) | |
43951 | # - emxexp | |
43952 | # (used to create .def file from .o files) | |
43953 | # - emximp | |
43954 | # (used to create .a file from .def file) | |
43955 | # - GNU text utilites (cat, sort, uniq) | |
43956 | # used to process emxexp output | |
43957 | # - GNU file utilities (mv, rm) | |
43958 | # - GNU sed | |
43959 | # - lxlite (optional, see flag below) | |
43960 | # (used for general .dll cleanup) | |
43961 | # | |
43962 | ||
43963 | flag_USE_LXLITE=1; | |
43964 | ||
43965 | # | |
43966 | # helper functions | |
43967 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
43968 | # second argument (suffix to remove) is given | |
43969 | basnam(){ | |
43970 | case ${D}# in | |
43971 | 1) | |
1e9e8aba | 43972 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
43973 | ;; |
43974 | 2) | |
43975 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
43976 | ;; | |
43977 | *) | |
43978 | echo "error in basnam ${D}*" | |
43979 | exit 8 | |
43980 | ;; | |
43981 | esac | |
43982 | } | |
43983 | ||
43984 | # Cleanup temporary files and output | |
43985 | CleanUp() { | |
43986 | cd ${D}curDir | |
43987 | for i in ${D}inputFiles ; do | |
43988 | case ${D}i in | |
43989 | *!) | |
43990 | rm -rf \`basnam ${D}i !\` | |
43991 | ;; | |
43992 | *) | |
43993 | ;; | |
43994 | esac | |
43995 | done | |
43996 | ||
43997 | # Kill result in case of failure as there is just to many stupid make/nmake | |
43998 | # things out there which doesn't do this. | |
1e9e8aba | 43999 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
44000 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
44001 | fi | |
44002 | } | |
44003 | ||
44004 | # Print usage and exit script with rc=1. | |
44005 | PrintHelp() { | |
b1d22ded DE |
44006 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
44007 | echo ' [-name-mangler-script script.sh]' | |
44008 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
44009 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
44010 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 44011 | echo ' [*.o] [*.a]' |
473276a9 VS |
44012 | echo '*> "output_file" should have no extension.' |
44013 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
44014 | echo ' The import library name is derived from this and is set to "name".a,' | |
44015 | echo ' unless overridden by -import' | |
44016 | echo '*> "importlib_name" should have no extension.' | |
44017 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
44018 | echo ' This name is used as the import library name and may be longer and' | |
44019 | echo ' more descriptive than the DLL name which has to follow the old ' | |
44020 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
44021 | echo '*> "script.sh may be given to override the output_file name by a' |
44022 | echo ' different name. It is mainly useful if the regular make process' | |
44023 | echo ' of some package does not take into account OS/2 restriction of' | |
44024 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
44025 | echo ' supposed to procude a shorter name as output. The script should' | |
44026 | echo ' expect to get importlib_name without extension and should produce' | |
44027 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
44028 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
44029 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
44030 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
44031 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
44032 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
44033 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
44034 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
44035 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 44036 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 44037 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 44038 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 44039 | echo ' C runtime DLLs.' |
b1d22ded | 44040 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
44041 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
44042 | echo ' unchanged to GCC at the end of command line.' | |
44043 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
44044 | echo ' the basename for DLL and import library will be set to library name,' | |
44045 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
44046 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
44047 | echo ' library will be renamed into gcc_s.a.' | |
44048 | echo '--------' | |
44049 | echo 'Example:' | |
44050 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
44051 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
44052 | CleanUp | |
44053 | exit 1 | |
44054 | } | |
44055 | ||
44056 | # Execute a command. | |
44057 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
44058 | # @Uses Whatever CleanUp() uses. | |
44059 | doCommand() { | |
44060 | echo "${D}*" | |
44061 | eval ${D}* | |
44062 | rcCmd=${D}? | |
44063 | ||
1e9e8aba | 44064 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
44065 | echo "command failed, exit code="${D}rcCmd |
44066 | CleanUp | |
44067 | exit ${D}rcCmd | |
44068 | fi | |
44069 | } | |
44070 | ||
44071 | # main routine | |
44072 | # setup globals | |
44073 | cmdLine=${D}* | |
44074 | outFile="" | |
44075 | outimpFile="" | |
44076 | inputFiles="" | |
b1d22ded | 44077 | renameScript="" |
473276a9 VS |
44078 | description="" |
44079 | CC=gcc.exe | |
44080 | CFLAGS="-s -Zcrtdll" | |
44081 | EXTRA_CFLAGS="" | |
44082 | EXPORT_BY_ORDINALS=0 | |
44083 | exclude_symbols="" | |
44084 | library_flags="" | |
44085 | curDir=\`pwd\` | |
44086 | curDirS=curDir | |
44087 | case ${D}curDirS in | |
44088 | */) | |
44089 | ;; | |
44090 | *) | |
44091 | curDirS=${D}{curDirS}"/" | |
44092 | ;; | |
44093 | esac | |
44094 | # Parse commandline | |
44095 | libsToLink=0 | |
b1d22ded | 44096 | omfLinking=0 |
1e9e8aba | 44097 | while [ ${D}1 ]; do |
473276a9 VS |
44098 | case ${D}1 in |
44099 | -ord*) | |
44100 | EXPORT_BY_ORDINALS=1; | |
44101 | ;; | |
44102 | -o*) | |
44103 | shift | |
44104 | outFile=${D}1 | |
44105 | ;; | |
44106 | -i*) | |
44107 | shift | |
44108 | outimpFile=${D}1 | |
44109 | ;; | |
b1d22ded DE |
44110 | -name-mangler-script) |
44111 | shift | |
44112 | renameScript=${D}1 | |
44113 | ;; | |
473276a9 VS |
44114 | -d*) |
44115 | shift | |
44116 | description=${D}1 | |
44117 | ;; | |
44118 | -f*) | |
44119 | shift | |
44120 | CFLAGS=${D}1 | |
44121 | ;; | |
44122 | -c*) | |
44123 | shift | |
44124 | CC=${D}1 | |
44125 | ;; | |
44126 | -h*) | |
44127 | PrintHelp | |
44128 | ;; | |
44129 | -ex*) | |
44130 | shift | |
44131 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
44132 | ;; | |
44133 | -libf*) | |
44134 | shift | |
44135 | library_flags=${D}{library_flags}${D}1" " | |
44136 | ;; | |
44137 | -nocrt*) | |
44138 | CFLAGS="-s" | |
44139 | ;; | |
44140 | -nolxl*) | |
44141 | flag_USE_LXLITE=0 | |
44142 | ;; | |
44143 | -* | /*) | |
44144 | case ${D}1 in | |
44145 | -L* | -l*) | |
44146 | libsToLink=1 | |
44147 | ;; | |
b1d22ded DE |
44148 | -Zomf) |
44149 | omfLinking=1 | |
44150 | ;; | |
473276a9 VS |
44151 | *) |
44152 | ;; | |
44153 | esac | |
44154 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
44155 | ;; | |
b1d22ded DE |
44156 | *.dll) |
44157 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
44158 | if [ ${D}omfLinking -eq 1 ]; then | |
44159 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
44160 | else | |
44161 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
44162 | fi | |
44163 | ;; | |
473276a9 VS |
44164 | *) |
44165 | found=0; | |
1e9e8aba | 44166 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
44167 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
44168 | else | |
44169 | for file in ${D}1 ; do | |
1e9e8aba | 44170 | if [ -f ${D}file ]; then |
473276a9 VS |
44171 | inputFiles="${D}{inputFiles} ${D}file" |
44172 | found=1 | |
44173 | fi | |
44174 | done | |
1e9e8aba | 44175 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
44176 | echo "ERROR: No file(s) found: "${D}1 |
44177 | exit 8 | |
44178 | fi | |
44179 | fi | |
44180 | ;; | |
44181 | esac | |
44182 | shift | |
44183 | done # iterate cmdline words | |
44184 | ||
44185 | # | |
1e9e8aba | 44186 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
44187 | echo "dllar: no input files" |
44188 | PrintHelp | |
44189 | fi | |
44190 | ||
44191 | # Now extract all .o files from .a files | |
44192 | newInputFiles="" | |
44193 | for file in ${D}inputFiles ; do | |
44194 | case ${D}file in | |
44195 | *.a | *.lib) | |
44196 | case ${D}file in | |
44197 | *.a) | |
44198 | suffix=".a" | |
44199 | AR="ar" | |
44200 | ;; | |
44201 | *.lib) | |
44202 | suffix=".lib" | |
44203 | AR="emxomfar" | |
44204 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
44205 | ;; | |
44206 | *) | |
44207 | ;; | |
44208 | esac | |
44209 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
44210 | mkdir ${D}dirname | |
1e9e8aba | 44211 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
44212 | echo "Failed to create subdirectory ./${D}dirname" |
44213 | CleanUp | |
44214 | exit 8; | |
44215 | fi | |
44216 | # Append '!' to indicate archive | |
44217 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
44218 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
44219 | cd ${D}curDir | |
44220 | found=0; | |
44221 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 44222 | if [ -f ${D}subfile ]; then |
473276a9 | 44223 | found=1 |
1e9e8aba | 44224 | if [ -s ${D}subfile ]; then |
473276a9 VS |
44225 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
44226 | newInputFiles="${D}newInputFiles ${D}subfile" | |
44227 | fi | |
44228 | fi | |
44229 | done | |
1e9e8aba DE |
44230 | if [ ${D}found -eq 0 ]; then |
44231 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
44232 | fi |
44233 | ;; | |
44234 | *) | |
44235 | newInputFiles="${D}{newInputFiles} ${D}file" | |
44236 | ;; | |
44237 | esac | |
44238 | done | |
44239 | inputFiles="${D}newInputFiles" | |
44240 | ||
44241 | # Output filename(s). | |
44242 | do_backup=0; | |
1e9e8aba | 44243 | if [ -z ${D}outFile ]; then |
473276a9 VS |
44244 | do_backup=1; |
44245 | set outFile ${D}inputFiles; outFile=${D}2 | |
44246 | fi | |
44247 | ||
44248 | # If it is an archive, remove the '!' and the '_%' suffixes | |
44249 | case ${D}outFile in | |
44250 | *_%!) | |
44251 | outFile=\`basnam ${D}outFile _%!\` | |
44252 | ;; | |
44253 | *) | |
44254 | ;; | |
44255 | esac | |
44256 | case ${D}outFile in | |
44257 | *.dll) | |
44258 | outFile=\`basnam ${D}outFile .dll\` | |
44259 | ;; | |
44260 | *.DLL) | |
44261 | outFile=\`basnam ${D}outFile .DLL\` | |
44262 | ;; | |
44263 | *.o) | |
44264 | outFile=\`basnam ${D}outFile .o\` | |
44265 | ;; | |
44266 | *.obj) | |
44267 | outFile=\`basnam ${D}outFile .obj\` | |
44268 | ;; | |
44269 | *.a) | |
44270 | outFile=\`basnam ${D}outFile .a\` | |
44271 | ;; | |
44272 | *.lib) | |
44273 | outFile=\`basnam ${D}outFile .lib\` | |
44274 | ;; | |
44275 | *) | |
44276 | ;; | |
44277 | esac | |
44278 | case ${D}outimpFile in | |
44279 | *.a) | |
44280 | outimpFile=\`basnam ${D}outimpFile .a\` | |
44281 | ;; | |
44282 | *.lib) | |
44283 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
44284 | ;; | |
44285 | *) | |
44286 | ;; | |
44287 | esac | |
1e9e8aba | 44288 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
44289 | outimpFile=${D}outFile |
44290 | fi | |
44291 | defFile="${D}{outFile}.def" | |
44292 | arcFile="${D}{outimpFile}.a" | |
44293 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
44294 | |
44295 | #create ${D}dllFile as something matching 8.3 restrictions, | |
44296 | if [ -z ${D}renameScript ] ; then | |
44297 | dllFile="${D}outFile" | |
44298 | else | |
44299 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
44300 | fi | |
473276a9 | 44301 | |
1e9e8aba DE |
44302 | if [ ${D}do_backup -ne 0 ] ; then |
44303 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
44304 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
44305 | fi | |
1e9e8aba | 44306 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
44307 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
44308 | fi | |
44309 | fi | |
44310 | ||
44311 | # Extract public symbols from all the object files. | |
44312 | tmpdefFile=${D}{defFile}_% | |
44313 | rm -f ${D}tmpdefFile | |
44314 | for file in ${D}inputFiles ; do | |
44315 | case ${D}file in | |
44316 | *!) | |
44317 | ;; | |
44318 | *) | |
44319 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
44320 | ;; | |
44321 | esac | |
44322 | done | |
44323 | ||
44324 | # Create the def file. | |
44325 | rm -f ${D}defFile | |
44326 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
44327 | dllFile="${D}{dllFile}.dll" |
44328 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 44329 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
44330 | fi |
44331 | echo "EXPORTS" >> ${D}defFile | |
44332 | ||
44333 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
44334 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
44335 | ||
44336 | # Checks if the export is ok or not. | |
44337 | for word in ${D}exclude_symbols; do | |
44338 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
44339 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
44340 | done | |
44341 | ||
44342 | ||
1e9e8aba DE |
44343 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
44344 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
44345 | sed ' |
44346 | N | |
44347 | : loop | |
1e9e8aba | 44348 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
44349 | t loop |
44350 | ' > ${D}{tmpdefFile}% | |
44351 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
44352 | else | |
44353 | rm -f ${D}{tmpdefFile}% | |
44354 | fi | |
44355 | cat ${D}tmpdefFile >> ${D}defFile | |
44356 | rm -f ${D}tmpdefFile | |
44357 | ||
44358 | # Do linking, create implib, and apply lxlite. | |
44359 | gccCmdl=""; | |
44360 | for file in ${D}inputFiles ; do | |
44361 | case ${D}file in | |
44362 | *!) | |
44363 | ;; | |
44364 | *) | |
44365 | gccCmdl="${D}gccCmdl ${D}file" | |
44366 | ;; | |
44367 | esac | |
44368 | done | |
44369 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
44370 | touch "${D}{outFile}.dll" | |
44371 | ||
44372 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 44373 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 44374 | add_flags=""; |
1e9e8aba | 44375 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
44376 | add_flags="-ynd" |
44377 | fi | |
44378 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
44379 | fi | |
44380 | doCommand "emxomf -s -l ${D}arcFile" | |
44381 | ||
44382 | # Successful exit. | |
44383 | CleanUp 1 | |
44384 | exit 0 | |
44385 | EOF | |
44386 | ||
44387 | chmod +x dllar.sh | |
a848cd7e SC |
44388 | ;; |
44389 | ||
1e9e8aba | 44390 | powerpc-apple-macos* | \ |
0ad5d837 | 44391 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
44392 | *-*-sunos4* | \ |
44393 | *-*-osf* | \ | |
44394 | *-*-dgux5* | \ | |
47a7e797 MW |
44395 | *-*-sysv5* | \ |
44396 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
44397 | ;; |
44398 | ||
44399 | *) | |
44400 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
44401 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
44402 | { (exit 1); exit 1; }; } | |
44403 | esac | |
44404 | ||
2057db16 VS |
44405 | if test "x$PIC_FLAG" != "x" ; then |
44406 | PIC_FLAG="$PIC_FLAG -DPIC" | |
44407 | fi | |
44408 | ||
a848cd7e SC |
44409 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
44410 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
44411 | fi | |
44412 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
44413 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
44414 | fi | |
44415 | ||
44416 | ||
44417 | ||
44418 | ||
44419 | ||
44420 | ||
44421 | ||
44422 | ||
810b94f0 | 44423 | |
a848cd7e SC |
44424 | USE_SOVERSION=0 |
44425 | USE_SOVERLINUX=0 | |
44426 | USE_SOVERSOLARIS=0 | |
810b94f0 | 44427 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
44428 | USE_SOSYMLINKS=0 |
44429 | USE_MACVERSION=0 | |
44430 | SONAME_FLAG= | |
44431 | ||
44432 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 44433 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
44434 | SONAME_FLAG="-Wl,-soname," |
44435 | USE_SOVERSION=1 | |
44436 | USE_SOVERLINUX=1 | |
44437 | USE_SOSYMLINKS=1 | |
44438 | ;; | |
44439 | ||
a848cd7e SC |
44440 | *-*-solaris2* ) |
44441 | SONAME_FLAG="-h " | |
44442 | USE_SOVERSION=1 | |
44443 | USE_SOVERSOLARIS=1 | |
44444 | USE_SOSYMLINKS=1 | |
44445 | ;; | |
44446 | ||
44447 | *-*-darwin* ) | |
44448 | USE_MACVERSION=1 | |
44449 | USE_SOVERSION=1 | |
44450 | USE_SOSYMLINKS=1 | |
44451 | ;; | |
810b94f0 MW |
44452 | |
44453 | *-*-cygwin* ) | |
44454 | USE_SOVERSION=1 | |
44455 | USE_SOVERCYGWIN=1 | |
44456 | ;; | |
a848cd7e SC |
44457 | esac |
44458 | ||
44459 | ||
44460 | ||
44461 | ||
44462 | ||
44463 | ||
44464 | ||
44465 | ||
44466 | ||
810b94f0 | 44467 | |
a848cd7e SC |
44468 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
44469 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 44470 | DEPS_TRACKING=1 |
a848cd7e SC |
44471 | |
44472 | if test "x$GCC" = "xyes"; then | |
44473 | DEPSMODE=gcc | |
a848cd7e | 44474 | case "${BAKEFILE_HOST}" in |
47bd5406 | 44475 | *-*-darwin* ) |
0ad5d837 | 44476 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
44477 | ;; |
44478 | * ) | |
0ad5d837 | 44479 | DEPSFLAG="-MMD" |
a848cd7e SC |
44480 | ;; |
44481 | esac | |
44482 | echo "$as_me:$LINENO: result: gcc" >&5 | |
44483 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 44484 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 44485 | DEPSMODE=mwcc |
0ad5d837 | 44486 | DEPSFLAG="-MM" |
b1d22ded DE |
44487 | echo "$as_me:$LINENO: result: mwcc" >&5 |
44488 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 44489 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
44490 | DEPSMODE=unixcc |
44491 | DEPSFLAG="-xM1" | |
44492 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
44493 | echo "${ECHO_T}Sun cc" >&6 | |
44494 | elif test "x$SGICC" = "xyes"; then | |
44495 | DEPSMODE=unixcc | |
44496 | DEPSFLAG="-M" | |
44497 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
44498 | echo "${ECHO_T}SGI cc" >&6 | |
a848cd7e | 44499 | else |
0ad5d837 | 44500 | DEPS_TRACKING=0 |
a848cd7e SC |
44501 | echo "$as_me:$LINENO: result: none" >&5 |
44502 | echo "${ECHO_T}none" >&6 | |
44503 | fi | |
44504 | ||
44505 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
44506 | |
44507 | D='$' | |
44508 | cat <<EOF >bk-deps | |
a848cd7e SC |
44509 | #!/bin/sh |
44510 | ||
44511 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
44512 | # script. It is used to track C/C++ files dependencies in portable way. | |
44513 | # | |
44514 | # Permission is given to use this file in any way. | |
44515 | ||
473276a9 | 44516 | DEPSMODE=${DEPSMODE} |
a848cd7e | 44517 | DEPSDIR=.deps |
0ad5d837 | 44518 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 44519 | |
473276a9 | 44520 | mkdir -p ${D}DEPSDIR |
a848cd7e | 44521 | |
473276a9 | 44522 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 44523 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
44524 | status=${D}? |
44525 | if test ${D}{status} != 0 ; then | |
44526 | exit ${D}{status} | |
a848cd7e SC |
44527 | fi |
44528 | # move created file to the location we want it in: | |
473276a9 VS |
44529 | while test ${D}# -gt 0; do |
44530 | case "${D}1" in | |
a848cd7e SC |
44531 | -o ) |
44532 | shift | |
473276a9 | 44533 | objfile=${D}1 |
a848cd7e SC |
44534 | ;; |
44535 | -* ) | |
44536 | ;; | |
44537 | * ) | |
473276a9 | 44538 | srcfile=${D}1 |
a848cd7e SC |
44539 | ;; |
44540 | esac | |
44541 | shift | |
44542 | done | |
1e9e8aba DE |
44543 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
44544 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
44545 | if test -f ${D}depfile ; then |
44546 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
44547 | rm -f ${D}depfile | |
a848cd7e | 44548 | else |
1e9e8aba | 44549 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
44550 | if test -f ${D}depfile ; then |
44551 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
44552 | rm -f ${D}depfile | |
a848cd7e SC |
44553 | fi |
44554 | fi | |
44555 | exit 0 | |
81f90336 | 44556 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 44557 | ${D}* || exit ${D}? |
81f90336 MW |
44558 | # Run mwcc again with -MM and redirect into the dep file we want |
44559 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
44560 | prevarg= | |
44561 | for arg in ${D}* ; do | |
44562 | if test "${D}prevarg" = "-o"; then | |
44563 | objfile=${D}arg | |
44564 | else | |
44565 | case "${D}arg" in | |
44566 | -* ) | |
44567 | ;; | |
44568 | * ) | |
44569 | srcfile=${D}arg | |
44570 | ;; | |
44571 | esac | |
44572 | fi | |
44573 | prevarg="${D}arg" | |
44574 | done | |
0ad5d837 | 44575 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 44576 | exit 0 |
0ad5d837 | 44577 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 44578 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
44579 | # Run compiler again with deps flag and redirect into the dep file. |
44580 | # It doesn't work if the '-o FILE' option is used, but without it the | |
44581 | # dependency file will contain the wrong name for the object. So it is | |
44582 | # removed from the command line, and the dep file is fixed with sed. | |
44583 | cmd="" | |
44584 | while test ${D}# -gt 0; do | |
44585 | case "${D}1" in | |
44586 | -o ) | |
44587 | shift | |
44588 | objfile=${D}1 | |
44589 | ;; | |
44590 | * ) | |
44591 | eval arg${D}#=\\${D}1 | |
44592 | cmd="${D}cmd \\${D}arg${D}#" | |
44593 | ;; | |
44594 | esac | |
44595 | shift | |
44596 | done | |
0ad5d837 | 44597 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 44598 | exit 0 |
a848cd7e | 44599 | else |
473276a9 VS |
44600 | ${D}* |
44601 | exit ${D}? | |
a848cd7e SC |
44602 | fi |
44603 | EOF | |
473276a9 | 44604 | |
a848cd7e SC |
44605 | chmod +x bk-deps |
44606 | fi | |
44607 | ||
44608 | ||
44609 | ||
44610 | ||
44611 | RESCOMP= | |
44612 | SETFILE= | |
44613 | ||
44614 | case ${BAKEFILE_HOST} in | |
44615 | *-*-cygwin* | *-*-mingw32* ) | |
44616 | if test "$build" != "$host" ; then | |
44617 | RESCOMP=$host_alias-windres | |
44618 | else | |
44619 | # Extract the first word of "windres", so it can be a program name with args. | |
44620 | set dummy windres; ac_word=$2 | |
44621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44623 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44625 | else | |
44626 | if test -n "$RESCOMP"; then | |
44627 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44628 | else | |
44629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44630 | for as_dir in $PATH | |
44631 | do | |
44632 | IFS=$as_save_IFS | |
44633 | test -z "$as_dir" && as_dir=. | |
44634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44636 | ac_cv_prog_RESCOMP="windres" | |
44637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44638 | break 2 | |
44639 | fi | |
44640 | done | |
44641 | done | |
44642 | ||
44643 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
44644 | fi | |
44645 | fi | |
44646 | RESCOMP=$ac_cv_prog_RESCOMP | |
44647 | if test -n "$RESCOMP"; then | |
44648 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44649 | echo "${ECHO_T}$RESCOMP" >&6 | |
44650 | else | |
44651 | echo "$as_me:$LINENO: result: no" >&5 | |
44652 | echo "${ECHO_T}no" >&6 | |
44653 | fi | |
44654 | ||
44655 | fi | |
44656 | ;; | |
44657 | ||
1e9e8aba | 44658 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
44659 | # Extract the first word of "Rez", so it can be a program name with args. |
44660 | set dummy Rez; ac_word=$2 | |
44661 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44663 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44665 | else | |
44666 | if test -n "$RESCOMP"; then | |
44667 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44668 | else | |
44669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44670 | for as_dir in $PATH | |
44671 | do | |
44672 | IFS=$as_save_IFS | |
44673 | test -z "$as_dir" && as_dir=. | |
44674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44675 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44676 | ac_cv_prog_RESCOMP="Rez" | |
44677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44678 | break 2 | |
44679 | fi | |
44680 | done | |
44681 | done | |
44682 | ||
44683 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
44684 | fi | |
44685 | fi | |
44686 | RESCOMP=$ac_cv_prog_RESCOMP | |
44687 | if test -n "$RESCOMP"; then | |
44688 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44689 | echo "${ECHO_T}$RESCOMP" >&6 | |
44690 | else | |
44691 | echo "$as_me:$LINENO: result: no" >&5 | |
44692 | echo "${ECHO_T}no" >&6 | |
44693 | fi | |
44694 | ||
44695 | # Extract the first word of "SetFile", so it can be a program name with args. | |
44696 | set dummy SetFile; ac_word=$2 | |
44697 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44699 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
44700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44701 | else | |
44702 | if test -n "$SETFILE"; then | |
44703 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
44704 | else | |
44705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44706 | for as_dir in $PATH | |
44707 | do | |
44708 | IFS=$as_save_IFS | |
44709 | test -z "$as_dir" && as_dir=. | |
44710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44712 | ac_cv_prog_SETFILE="SetFile" | |
44713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44714 | break 2 | |
44715 | fi | |
44716 | done | |
44717 | done | |
44718 | ||
44719 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
44720 | fi | |
44721 | fi | |
44722 | SETFILE=$ac_cv_prog_SETFILE | |
44723 | if test -n "$SETFILE"; then | |
44724 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
44725 | echo "${ECHO_T}$SETFILE" >&6 | |
44726 | else | |
44727 | echo "$as_me:$LINENO: result: no" >&5 | |
44728 | echo "${ECHO_T}no" >&6 | |
44729 | fi | |
44730 | ||
44731 | ;; | |
44732 | esac | |
44733 | ||
44734 | ||
44735 | ||
44736 | ||
44737 | ||
c9469659 | 44738 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 44739 | |
dcc1b6ad | 44740 | |
c9469659 | 44741 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 44742 | |
646b6ec1 | 44743 | |
74b84332 | 44744 | |
a848cd7e SC |
44745 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
44746 | if test "${enable_precomp_headers+set}" = set; then | |
44747 | enableval="$enable_precomp_headers" | |
44748 | bk_use_pch="$enableval" | |
44749 | fi; | |
44750 | ||
44751 | GCC_PCH=0 | |
44752 | ||
44753 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
44754 | if test "x$GCC" = "xyes"; then | |
44755 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
44756 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
44757 | cat >conftest.$ac_ext <<_ACEOF | |
44758 | /* confdefs.h. */ | |
44759 | _ACEOF | |
44760 | cat confdefs.h >>conftest.$ac_ext | |
44761 | cat >>conftest.$ac_ext <<_ACEOF | |
44762 | /* end confdefs.h. */ | |
44763 | ||
44764 | int | |
44765 | main () | |
44766 | { | |
44767 | ||
44768 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
44769 | #error "no pch support" | |
44770 | #endif | |
44771 | #if (__GNUC__ < 3) | |
44772 | #error "no pch support" | |
44773 | #endif | |
44774 | #if (__GNUC__ == 3) && \ | |
44775 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
44776 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
44777 | #error "no pch support" | |
44778 | #endif | |
44779 | ||
44780 | ; | |
44781 | return 0; | |
44782 | } | |
44783 | _ACEOF | |
44784 | rm -f conftest.$ac_objext | |
44785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44786 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44787 | ac_status=$? |
ac1cb8d3 VS |
44788 | grep -v '^ *+' conftest.er1 >conftest.err |
44789 | rm -f conftest.er1 | |
44790 | cat conftest.err >&5 | |
a848cd7e SC |
44791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44792 | (exit $ac_status); } && | |
6ebeb4c7 | 44793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44795 | (eval $ac_try) 2>&5 | |
44796 | ac_status=$? | |
44797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44798 | (exit $ac_status); }; } && | |
44799 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44801 | (eval $ac_try) 2>&5 | |
44802 | ac_status=$? | |
44803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44804 | (exit $ac_status); }; }; then | |
44805 | ||
44806 | echo "$as_me:$LINENO: result: yes" >&5 | |
44807 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
44808 | GCC_PCH=1 |
44809 | ||
44810 | else | |
44811 | echo "$as_me: failed program was:" >&5 | |
44812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44813 | ||
44814 | ||
44815 | echo "$as_me:$LINENO: result: no" >&5 | |
44816 | echo "${ECHO_T}no" >&6 | |
44817 | ||
44818 | fi | |
ac1cb8d3 | 44819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 44820 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
44821 | |
44822 | D='$' | |
44823 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
44824 | #!/bin/sh |
44825 | ||
44826 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
44827 | # script. It is used to generated precompiled headers. | |
44828 | # | |
44829 | # Permission is given to use this file in any way. | |
44830 | ||
1e9e8aba DE |
44831 | outfile="${D}{1}" |
44832 | header="${D}{2}" | |
a848cd7e SC |
44833 | shift |
44834 | shift | |
44835 | ||
44836 | compiler= | |
44837 | headerfile= | |
1e9e8aba DE |
44838 | while test ${D}{#} -gt 0; do |
44839 | case "${D}{1}" in | |
a848cd7e | 44840 | -I* ) |
1e9e8aba DE |
44841 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
44842 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
44843 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
44844 | fi |
44845 | ;; | |
44846 | esac | |
1e9e8aba | 44847 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
44848 | shift |
44849 | done | |
44850 | ||
1e9e8aba DE |
44851 | if test "x${D}{headerfile}" = "x" ; then |
44852 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 44853 | else |
1e9e8aba DE |
44854 | if test -f ${D}{outfile} ; then |
44855 | rm -f ${D}{outfile} | |
a848cd7e | 44856 | else |
1e9e8aba | 44857 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 44858 | fi |
1e9e8aba | 44859 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
44860 | mkdir -p .deps |
44861 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
44862 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
44863 | exit ${D}{?} | |
a848cd7e SC |
44864 | fi |
44865 | EOF | |
1e9e8aba | 44866 | |
a848cd7e SC |
44867 | chmod +x bk-make-pch |
44868 | fi | |
44869 | fi | |
44870 | fi | |
44871 | ||
44872 | ||
44873 | ||
a848cd7e SC |
44874 | COND_BUILD_DEBUG="#" |
44875 | if test "x$BUILD" = "xdebug" ; then | |
44876 | COND_BUILD_DEBUG="" | |
44877 | fi | |
44878 | ||
44879 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
44880 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
44881 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
44882 | fi | |
44883 | ||
44884 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
44885 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
44886 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
44887 | fi | |
44888 | ||
44889 | COND_BUILD_DEBUG_UNICODE_0="#" | |
44890 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
44891 | COND_BUILD_DEBUG_UNICODE_0="" | |
44892 | fi | |
44893 | ||
44894 | COND_BUILD_DEBUG_UNICODE_1="#" | |
44895 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
44896 | COND_BUILD_DEBUG_UNICODE_1="" | |
44897 | fi | |
44898 | ||
44899 | COND_BUILD_RELEASE="#" | |
44900 | if test "x$BUILD" = "xrelease" ; then | |
44901 | COND_BUILD_RELEASE="" | |
44902 | fi | |
44903 | ||
44904 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
44905 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
44906 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
44907 | fi | |
44908 | ||
44909 | COND_BUILD_RELEASE_UNICODE_0="#" | |
44910 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
44911 | COND_BUILD_RELEASE_UNICODE_0="" | |
44912 | fi | |
44913 | ||
44914 | COND_BUILD_RELEASE_UNICODE_1="#" | |
44915 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
44916 | COND_BUILD_RELEASE_UNICODE_1="" | |
44917 | fi | |
44918 | ||
44919 | COND_DEBUG_FLAG_1="#" | |
44920 | if test "x$DEBUG_FLAG" = "x1" ; then | |
44921 | COND_DEBUG_FLAG_1="" | |
44922 | fi | |
44923 | ||
44924 | COND_DEBUG_INFO_0="#" | |
44925 | if test "x$DEBUG_INFO" = "x0" ; then | |
44926 | COND_DEBUG_INFO_0="" | |
44927 | fi | |
44928 | ||
44929 | COND_DEBUG_INFO_1="#" | |
44930 | if test "x$DEBUG_INFO" = "x1" ; then | |
44931 | COND_DEBUG_INFO_1="" | |
44932 | fi | |
44933 | ||
44934 | COND_DEPS_TRACKING_0="#" | |
44935 | if test "x$DEPS_TRACKING" = "x0" ; then | |
44936 | COND_DEPS_TRACKING_0="" | |
44937 | fi | |
44938 | ||
44939 | COND_DEPS_TRACKING_1="#" | |
44940 | if test "x$DEPS_TRACKING" = "x1" ; then | |
44941 | COND_DEPS_TRACKING_1="" | |
44942 | fi | |
44943 | ||
44944 | COND_GCC_PCH_1="#" | |
44945 | if test "x$GCC_PCH" = "x1" ; then | |
44946 | COND_GCC_PCH_1="" | |
44947 | fi | |
44948 | ||
44949 | COND_MONOLITHIC_0="#" | |
44950 | if test "x$MONOLITHIC" = "x0" ; then | |
44951 | COND_MONOLITHIC_0="" | |
44952 | fi | |
44953 | ||
44954 | COND_MONOLITHIC_0_SHARED_0="#" | |
44955 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
44956 | COND_MONOLITHIC_0_SHARED_0="" | |
44957 | fi | |
44958 | ||
44959 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
44960 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
44961 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
44962 | fi | |
44963 | ||
90970d69 DE |
44964 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
44965 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
44966 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
44967 | fi | |
44968 | ||
a848cd7e SC |
44969 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
44970 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
44971 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
44972 | fi | |
44973 | ||
6671c68b VZ |
44974 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
44975 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
44976 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
44977 | fi | |
44978 | ||
a848cd7e SC |
44979 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
44980 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
44981 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
44982 | fi | |
44983 | ||
ceec2216 RL |
44984 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
44985 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
44986 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
44987 | fi | |
44988 | ||
a848cd7e SC |
44989 | COND_MONOLITHIC_0_SHARED_1="#" |
44990 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
44991 | COND_MONOLITHIC_0_SHARED_1="" | |
44992 | fi | |
44993 | ||
44994 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
44995 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
44996 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
44997 | fi | |
44998 | ||
90970d69 DE |
44999 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
45000 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
45001 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
45002 | fi | |
45003 | ||
a848cd7e SC |
45004 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
45005 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45006 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
45007 | fi | |
45008 | ||
6671c68b VZ |
45009 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
45010 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
45011 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
45012 | fi | |
45013 | ||
a848cd7e SC |
45014 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
45015 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45016 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
45017 | fi | |
45018 | ||
ceec2216 RL |
45019 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
45020 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
45021 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
45022 | fi | |
45023 | ||
a848cd7e SC |
45024 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
45025 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
45026 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
45027 | fi | |
45028 | ||
45029 | COND_MONOLITHIC_1="#" | |
45030 | if test "x$MONOLITHIC" = "x1" ; then | |
45031 | COND_MONOLITHIC_1="" | |
45032 | fi | |
45033 | ||
45034 | COND_MONOLITHIC_1_SHARED_0="#" | |
45035 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
45036 | COND_MONOLITHIC_1_SHARED_0="" | |
45037 | fi | |
45038 | ||
45039 | COND_MONOLITHIC_1_SHARED_1="#" | |
45040 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
45041 | COND_MONOLITHIC_1_SHARED_1="" | |
45042 | fi | |
45043 | ||
45044 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
45045 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45046 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
45047 | fi | |
45048 | ||
45049 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
45050 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45051 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
45052 | fi | |
45053 | ||
eb730a0c JS |
45054 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
45055 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45056 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
45057 | fi | |
45058 | ||
a848cd7e SC |
45059 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
45060 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45061 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
45062 | fi | |
45063 | ||
45064 | COND_PLATFORM_MACOSX_1="#" | |
45065 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
45066 | COND_PLATFORM_MACOSX_1="" | |
45067 | fi | |
45068 | ||
a30f955f VS |
45069 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
45070 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
45071 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
45072 | fi | |
45073 | ||
a848cd7e SC |
45074 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
45075 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
45076 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
45077 | fi | |
45078 | ||
45079 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
45080 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
45081 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
45082 | fi | |
45083 | ||
45084 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
45085 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
45086 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
45087 | fi | |
45088 | ||
fc480dc1 DE |
45089 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
45090 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
45091 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
45092 | fi | |
45093 | ||
1e9e8aba DE |
45094 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
45095 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45096 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
45097 | fi | |
45098 | ||
ebee3cd0 VS |
45099 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
45100 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
45101 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
45102 | fi | |
45103 | ||
45104 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
45105 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
45106 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
45107 | fi | |
45108 | ||
a848cd7e SC |
45109 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
45110 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45111 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
45112 | fi | |
45113 | ||
45114 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
45115 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
45116 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
45117 | fi | |
45118 | ||
b48a2016 DE |
45119 | COND_PLATFORM_MACOS_1="#" |
45120 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
45121 | COND_PLATFORM_MACOS_1="" | |
45122 | fi | |
45123 | ||
083508af MW |
45124 | COND_PLATFORM_MAC_1="#" |
45125 | if test "x$PLATFORM_MAC" = "x1" ; then | |
45126 | COND_PLATFORM_MAC_1="" | |
45127 | fi | |
45128 | ||
83d8eb47 MW |
45129 | COND_PLATFORM_MSDOS_1="#" |
45130 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
45131 | COND_PLATFORM_MSDOS_1="" | |
45132 | fi | |
45133 | ||
a848cd7e SC |
45134 | COND_PLATFORM_OS2_1="#" |
45135 | if test "x$PLATFORM_OS2" = "x1" ; then | |
45136 | COND_PLATFORM_OS2_1="" | |
45137 | fi | |
45138 | ||
45139 | COND_PLATFORM_UNIX_0="#" | |
45140 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
45141 | COND_PLATFORM_UNIX_0="" | |
45142 | fi | |
45143 | ||
45144 | COND_PLATFORM_UNIX_1="#" | |
45145 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
45146 | COND_PLATFORM_UNIX_1="" | |
45147 | fi | |
45148 | ||
45149 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
45150 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45151 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
45152 | fi | |
45153 | ||
45154 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
45155 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
45156 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
45157 | fi | |
45158 | ||
45159 | COND_PLATFORM_WIN32_0="#" | |
45160 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
45161 | COND_PLATFORM_WIN32_0="" | |
45162 | fi | |
45163 | ||
45164 | COND_PLATFORM_WIN32_1="#" | |
45165 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
45166 | COND_PLATFORM_WIN32_1="" | |
45167 | fi | |
45168 | ||
45169 | COND_SHARED_0="#" | |
45170 | if test "x$SHARED" = "x0" ; then | |
45171 | COND_SHARED_0="" | |
45172 | fi | |
45173 | ||
083508af MW |
45174 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
45175 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
45176 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
45177 | fi | |
45178 | ||
45179 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
45180 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
45181 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
45182 | fi | |
45183 | ||
45184 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
45185 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
45186 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
45187 | fi | |
45188 | ||
a848cd7e SC |
45189 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
45190 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
45191 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
45192 | fi | |
45193 | ||
45194 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
45195 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45196 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
45197 | fi | |
45198 | ||
45199 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
45200 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45201 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
45202 | fi | |
45203 | ||
45204 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
45205 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45206 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
45207 | fi | |
45208 | ||
083508af MW |
45209 | COND_SHARED_0_USE_XRC_1="#" |
45210 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
45211 | COND_SHARED_0_USE_XRC_1="" | |
45212 | fi | |
45213 | ||
a848cd7e SC |
45214 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
45215 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
45216 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
45217 | fi | |
45218 | ||
45219 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
45220 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
45221 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
45222 | fi | |
45223 | ||
45224 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
45225 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
45226 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
45227 | fi | |
45228 | ||
45229 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
45230 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
45231 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
45232 | fi | |
45233 | ||
45234 | COND_SHARED_1="#" | |
45235 | if test "x$SHARED" = "x1" ; then | |
45236 | COND_SHARED_1="" | |
45237 | fi | |
45238 | ||
45239 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
45240 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
45241 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
45242 | fi | |
45243 | ||
083508af MW |
45244 | COND_SHARED_1_USE_XRC_1="#" |
45245 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
45246 | COND_SHARED_1_USE_XRC_1="" | |
45247 | fi | |
45248 | ||
a30f955f VS |
45249 | COND_TOOLKIT_="#" |
45250 | if test "x$TOOLKIT" = "x" ; then | |
45251 | COND_TOOLKIT_="" | |
45252 | fi | |
45253 | ||
a848cd7e SC |
45254 | COND_TOOLKIT_COCOA="#" |
45255 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
45256 | COND_TOOLKIT_COCOA="" | |
45257 | fi | |
45258 | ||
a49baeab DE |
45259 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
45260 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
45261 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
45262 | fi | |
45263 | ||
a848cd7e SC |
45264 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
45265 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45266 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
45267 | fi | |
45268 | ||
45269 | COND_TOOLKIT_GTK="#" | |
45270 | if test "x$TOOLKIT" = "xGTK" ; then | |
45271 | COND_TOOLKIT_GTK="" | |
45272 | fi | |
45273 | ||
45274 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
45275 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
45276 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
45277 | fi | |
45278 | ||
45279 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
45280 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45281 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
45282 | fi | |
45283 | ||
45284 | COND_TOOLKIT_MAC="#" | |
45285 | if test "x$TOOLKIT" = "xMAC" ; then | |
45286 | COND_TOOLKIT_MAC="" | |
45287 | fi | |
45288 | ||
45289 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
45290 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
45291 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
45292 | fi | |
45293 | ||
45294 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
45295 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45296 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
45297 | fi | |
45298 | ||
45299 | COND_TOOLKIT_MGL="#" | |
45300 | if test "x$TOOLKIT" = "xMGL" ; then | |
45301 | COND_TOOLKIT_MGL="" | |
45302 | fi | |
45303 | ||
45304 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
45305 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
45306 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
45307 | fi | |
45308 | ||
45309 | COND_TOOLKIT_MOTIF="#" | |
45310 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
45311 | COND_TOOLKIT_MOTIF="" | |
45312 | fi | |
45313 | ||
45314 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
45315 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
45316 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
45317 | fi | |
45318 | ||
45319 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
45320 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45321 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
45322 | fi | |
45323 | ||
45324 | COND_TOOLKIT_MSW="#" | |
45325 | if test "x$TOOLKIT" = "xMSW" ; then | |
45326 | COND_TOOLKIT_MSW="" | |
45327 | fi | |
45328 | ||
45329 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
45330 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
45331 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
45332 | fi | |
45333 | ||
45334 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
45335 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45336 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
45337 | fi | |
45338 | ||
45339 | COND_TOOLKIT_PM="#" | |
45340 | if test "x$TOOLKIT" = "xPM" ; then | |
45341 | COND_TOOLKIT_PM="" | |
45342 | fi | |
45343 | ||
45344 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
45345 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
45346 | COND_TOOLKIT_PM_USE_GUI_1="" | |
45347 | fi | |
45348 | ||
45349 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
45350 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45351 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
45352 | fi | |
45353 | ||
3fd9c298 DE |
45354 | COND_TOOLKIT_WINCE="#" |
45355 | if test "x$TOOLKIT" = "xWINCE" ; then | |
45356 | COND_TOOLKIT_WINCE="" | |
45357 | fi | |
45358 | ||
45359 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
45360 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
45361 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
45362 | fi | |
45363 | ||
45364 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
45365 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45366 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
45367 | fi | |
45368 | ||
a848cd7e SC |
45369 | COND_TOOLKIT_X11="#" |
45370 | if test "x$TOOLKIT" = "xX11" ; then | |
45371 | COND_TOOLKIT_X11="" | |
45372 | fi | |
45373 | ||
45374 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
45375 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
45376 | COND_TOOLKIT_X11_USE_GUI_1="" | |
45377 | fi | |
45378 | ||
45379 | COND_UNICODE_1="#" | |
45380 | if test "x$UNICODE" = "x1" ; then | |
45381 | COND_UNICODE_1="" | |
45382 | fi | |
45383 | ||
45384 | COND_USE_EXCEPTIONS_0="#" | |
45385 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
45386 | COND_USE_EXCEPTIONS_0="" | |
45387 | fi | |
45388 | ||
45389 | COND_USE_EXCEPTIONS_1="#" | |
45390 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
45391 | COND_USE_EXCEPTIONS_1="" | |
45392 | fi | |
45393 | ||
45394 | COND_USE_GUI_0="#" | |
45395 | if test "x$USE_GUI" = "x0" ; then | |
45396 | COND_USE_GUI_0="" | |
45397 | fi | |
45398 | ||
45399 | COND_USE_GUI_1="#" | |
45400 | if test "x$USE_GUI" = "x1" ; then | |
45401 | COND_USE_GUI_1="" | |
45402 | fi | |
45403 | ||
45404 | COND_USE_GUI_1_WXUNIV_0="#" | |
45405 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45406 | COND_USE_GUI_1_WXUNIV_0="" | |
45407 | fi | |
45408 | ||
45409 | COND_USE_GUI_1_WXUNIV_1="#" | |
45410 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
45411 | COND_USE_GUI_1_WXUNIV_1="" | |
45412 | fi | |
45413 | ||
45414 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
45415 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45416 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
45417 | fi | |
45418 | ||
45419 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
45420 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45421 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
45422 | fi | |
45423 | ||
45424 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
45425 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45426 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
45427 | fi | |
45428 | ||
083508af MW |
45429 | COND_USE_ODBC_1="#" |
45430 | if test "x$USE_ODBC" = "x1" ; then | |
45431 | COND_USE_ODBC_1="" | |
45432 | fi | |
45433 | ||
45434 | COND_USE_OPENGL_1="#" | |
45435 | if test "x$USE_OPENGL" = "x1" ; then | |
45436 | COND_USE_OPENGL_1="" | |
45437 | fi | |
45438 | ||
a848cd7e SC |
45439 | COND_USE_PLUGINS_0="#" |
45440 | if test "x$USE_PLUGINS" = "x0" ; then | |
45441 | COND_USE_PLUGINS_0="" | |
45442 | fi | |
45443 | ||
0b78747f MW |
45444 | COND_USE_RTTI_0="#" |
45445 | if test "x$USE_RTTI" = "x0" ; then | |
45446 | COND_USE_RTTI_0="" | |
45447 | fi | |
45448 | ||
45449 | COND_USE_RTTI_1="#" | |
45450 | if test "x$USE_RTTI" = "x1" ; then | |
45451 | COND_USE_RTTI_1="" | |
45452 | fi | |
45453 | ||
a848cd7e SC |
45454 | COND_USE_SOSYMLINKS_1="#" |
45455 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
45456 | COND_USE_SOSYMLINKS_1="" | |
45457 | fi | |
45458 | ||
eb730a0c JS |
45459 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
45460 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
45461 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
45462 | fi | |
45463 | ||
a848cd7e SC |
45464 | COND_USE_SOVERLINUX_1="#" |
45465 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
45466 | COND_USE_SOVERLINUX_1="" | |
45467 | fi | |
45468 | ||
45469 | COND_USE_SOVERSION_0="#" | |
45470 | if test "x$USE_SOVERSION" = "x0" ; then | |
45471 | COND_USE_SOVERSION_0="" | |
45472 | fi | |
45473 | ||
45474 | COND_USE_SOVERSOLARIS_1="#" | |
45475 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
45476 | COND_USE_SOVERSOLARIS_1="" | |
45477 | fi | |
45478 | ||
0b78747f MW |
45479 | COND_USE_THREADS_0="#" |
45480 | if test "x$USE_THREADS" = "x0" ; then | |
45481 | COND_USE_THREADS_0="" | |
45482 | fi | |
45483 | ||
45484 | COND_USE_THREADS_1="#" | |
45485 | if test "x$USE_THREADS" = "x1" ; then | |
45486 | COND_USE_THREADS_1="" | |
45487 | fi | |
45488 | ||
a13a7f89 RL |
45489 | COND_USE_XRC_1="#" |
45490 | if test "x$USE_XRC" = "x1" ; then | |
45491 | COND_USE_XRC_1="" | |
45492 | fi | |
45493 | ||
eb730a0c JS |
45494 | COND_WINDOWS_IMPLIB_1="#" |
45495 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
45496 | COND_WINDOWS_IMPLIB_1="" | |
45497 | fi | |
45498 | ||
a848cd7e SC |
45499 | COND_WITH_PLUGIN_SDL_1="#" |
45500 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
45501 | COND_WITH_PLUGIN_SDL_1="" | |
45502 | fi | |
45503 | ||
1e6eb025 VZ |
45504 | COND_WXUNIV_0="#" |
45505 | if test "x$WXUNIV" = "x0" ; then | |
45506 | COND_WXUNIV_0="" | |
45507 | fi | |
45508 | ||
a848cd7e SC |
45509 | COND_WXUNIV_1="#" |
45510 | if test "x$WXUNIV" = "x1" ; then | |
45511 | COND_WXUNIV_1="" | |
45512 | fi | |
45513 | ||
45514 | COND_WXUSE_EXPAT_BUILTIN="#" | |
45515 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
45516 | COND_WXUSE_EXPAT_BUILTIN="" | |
45517 | fi | |
45518 | ||
45519 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
45520 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45521 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
45522 | fi | |
45523 | ||
45524 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
45525 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45526 | COND_WXUSE_LIBPNG_BUILTIN="" | |
45527 | fi | |
45528 | ||
45529 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
45530 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45531 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
45532 | fi | |
45533 | ||
45534 | COND_WXUSE_ODBC_BUILTIN="#" | |
45535 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
45536 | COND_WXUSE_ODBC_BUILTIN="" | |
45537 | fi | |
45538 | ||
45539 | COND_WXUSE_REGEX_BUILTIN="#" | |
45540 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
45541 | COND_WXUSE_REGEX_BUILTIN="" | |
45542 | fi | |
45543 | ||
45544 | COND_WXUSE_ZLIB_BUILTIN="#" | |
45545 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
45546 | COND_WXUSE_ZLIB_BUILTIN="" | |
45547 | fi | |
45548 | ||
45549 | ||
45550 | ||
810b94f0 MW |
45551 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
45552 | { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5 | |
45553 | echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;} | |
45554 | { (exit 1); exit 1; }; } | |
45555 | fi | |
45556 | ||
2057db16 VS |
45557 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
45558 | { { 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 | |
45559 | 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;} | |
45560 | { (exit 1); exit 1; }; } | |
45561 | fi | |
45562 | ||
a848cd7e | 45563 | |
ceec2216 RL |
45564 | if test "$wxUSE_SHARED" = "yes"; then |
45565 | ||
45566 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
45567 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
45568 | ||
5b674b9d DE |
45569 | case "${host}" in |
45570 | *-pc-os2_emx | *-pc-os2-emx ) | |
45571 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45572 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45573 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
45574 | cp -p ${srcdir}/src/os2/dllar.sh . | |
45575 | ;; | |
45576 | esac | |
ceec2216 RL |
45577 | else |
45578 | ||
45579 | EXE_LINKER="$CXX -o" | |
45580 | ||
45581 | fi | |
69120ee4 VZ |
45582 | if test "$wxUSE_OMF" = "yes"; then |
45583 | case "${host}" in | |
45584 | *-pc-os2_emx | *-pc-os2-emx ) | |
45585 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
45586 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45587 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45588 | ;; | |
45589 | esac | |
45590 | fi | |
a848cd7e | 45591 | |
c08ebc62 | 45592 | if test $GCC_PCH = 1 ; then |
254e8e29 | 45593 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 45594 | fi |
a848cd7e SC |
45595 | |
45596 | ||
45597 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
45598 | ||
45599 | ||
45600 | ||
45601 | ||
45602 | ||
45603 | ||
45604 | ||
45605 | ||
45606 | ||
45607 | ||
45608 | ||
45609 | ||
45610 | ||
45611 | ||
45612 | ||
45613 | ||
45614 | ||
45615 | ||
45616 | ||
45617 | ||
45618 | ||
45619 | ||
45620 | ||
45621 | ||
45622 | ||
45623 | ||
45624 | ||
45625 | ||
45626 | ||
45627 | ||
45628 | ||
45629 | ||
45630 | ||
45631 | ||
45632 | ||
45633 | ||
45634 | ||
45635 | ||
45636 | ||
45637 | ||
45638 | ||
45639 | ||
a848cd7e SC |
45640 | |
45641 | ||
45642 | ||
45643 | ||
45644 | ||
45645 | ||
45646 | ||
45647 | ||
45648 | ||
45649 | ||
45650 | ||
45651 | ||
45652 | ||
45653 | ||
45654 | ||
45655 | ||
45656 | ||
45657 | ||
ddd14b14 | 45658 | |
a848cd7e SC |
45659 | |
45660 | ||
45661 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45662 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45663 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45664 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45666 | else | |
45667 | cat >conftest.make <<\_ACEOF | |
45668 | all: | |
45669 | @echo 'ac_maketemp="$(MAKE)"' | |
45670 | _ACEOF | |
45671 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45672 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45673 | if test -n "$ac_maketemp"; then | |
45674 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45675 | else | |
45676 | eval ac_cv_prog_make_${ac_make}_set=no | |
45677 | fi | |
45678 | rm -f conftest.make | |
45679 | fi | |
45680 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45681 | echo "$as_me:$LINENO: result: yes" >&5 | |
45682 | echo "${ECHO_T}yes" >&6 | |
45683 | SET_MAKE= | |
45684 | else | |
45685 | echo "$as_me:$LINENO: result: no" >&5 | |
45686 | echo "${ECHO_T}no" >&6 | |
45687 | SET_MAKE="MAKE=${MAKE-make}" | |
45688 | fi | |
45689 | ||
45690 | ||
a848cd7e | 45691 | |
ceec2216 RL |
45692 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
45693 | ||
a848cd7e | 45694 | |
ceec2216 | 45695 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 45696 | |
a848cd7e | 45697 | |
ceec2216 | 45698 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 45699 | |
ceec2216 RL |
45700 | |
45701 | ac_config_files="$ac_config_files version-script Makefile" | |
45702 | ||
45703 | ||
45704 | ac_config_commands="$ac_config_commands wx-config | |
45705 | " | |
a848cd7e SC |
45706 | |
45707 | ||
9103d280 RL |
45708 | |
45709 | ||
a848cd7e SC |
45710 | if test "$wxUSE_GUI" = "yes"; then |
45711 | SUBDIRS="samples demos utils contrib" | |
45712 | else SUBDIRS="samples utils" | |
45713 | fi | |
45714 | ||
45715 | ||
45716 | ||
45717 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
45718 | if test "${with_cppunit_prefix+set}" = set; then | |
45719 | withval="$with_cppunit_prefix" | |
45720 | cppunit_config_prefix="$withval" | |
45721 | else | |
45722 | cppunit_config_prefix="" | |
45723 | fi; | |
45724 | ||
45725 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
45726 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
45727 | withval="$with_cppunit_exec_prefix" | |
45728 | cppunit_config_exec_prefix="$withval" | |
45729 | else | |
45730 | cppunit_config_exec_prefix="" | |
45731 | fi; | |
45732 | ||
45733 | if test x$cppunit_config_exec_prefix != x ; then | |
45734 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
45735 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45736 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
45737 | fi | |
45738 | fi | |
45739 | if test x$cppunit_config_prefix != x ; then | |
45740 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
45741 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45742 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
45743 | fi | |
45744 | fi | |
45745 | ||
45746 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
45747 | set dummy cppunit-config; ac_word=$2 | |
45748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45750 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
45751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45752 | else | |
45753 | case $CPPUNIT_CONFIG in | |
45754 | [\\/]* | ?:[\\/]*) | |
45755 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
45756 | ;; | |
45757 | *) | |
45758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45759 | for as_dir in $PATH | |
45760 | do | |
45761 | IFS=$as_save_IFS | |
45762 | test -z "$as_dir" && as_dir=. | |
45763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45765 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
45766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45767 | break 2 | |
45768 | fi | |
45769 | done | |
45770 | done | |
45771 | ||
45772 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
45773 | ;; | |
45774 | esac | |
45775 | fi | |
45776 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
45777 | ||
45778 | if test -n "$CPPUNIT_CONFIG"; then | |
45779 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
45780 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
45781 | else | |
45782 | echo "$as_me:$LINENO: result: no" >&5 | |
45783 | echo "${ECHO_T}no" >&6 | |
45784 | fi | |
45785 | ||
45786 | cppunit_version_min=1.8.0 | |
45787 | ||
45788 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
45789 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
45790 | no_cppunit="" | |
45791 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
45792 | no_cppunit=yes | |
45793 | else | |
45794 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
45795 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
45796 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
45797 | ||
45798 | cppunit_major_version=`echo $cppunit_version | \ | |
45799 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45800 | cppunit_minor_version=`echo $cppunit_version | \ | |
45801 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45802 | cppunit_micro_version=`echo $cppunit_version | \ | |
45803 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45804 | ||
45805 | cppunit_major_min=`echo $cppunit_version_min | \ | |
45806 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45807 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
45808 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45809 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
45810 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45811 | ||
45812 | cppunit_version_proper=`expr \ | |
45813 | $cppunit_major_version \> $cppunit_major_min \| \ | |
45814 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45815 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
45816 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45817 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
45818 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
45819 | ||
45820 | if test "$cppunit_version_proper" = "1" ; then | |
45821 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
45822 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
45823 | else | |
45824 | echo "$as_me:$LINENO: result: no" >&5 | |
45825 | echo "${ECHO_T}no" >&6 | |
45826 | no_cppunit=yes | |
45827 | fi | |
45828 | fi | |
45829 | ||
45830 | if test "x$no_cppunit" = x ; then | |
c2218763 | 45831 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
45832 | else |
45833 | CPPUNIT_CFLAGS="" | |
45834 | CPPUNIT_LIBS="" | |
c2218763 | 45835 | : |
a848cd7e SC |
45836 | fi |
45837 | ||
45838 | ||
45839 | ||
45840 | ||
45841 | ||
45842 | for subdir in `echo $SUBDIRS`; do | |
45843 | if test -d ${srcdir}/${subdir} ; then | |
45844 | if test "$wxUSE_GUI" = "yes"; then | |
45845 | if test ${subdir} = "samples"; then | |
45846 | makefiles="samples/Makefile.in $makefiles" | |
45847 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
45848 | if test -d $srcdir/samples/$sample; then | |
45849 | makefiles="samples/$sample/Makefile.in $makefiles" | |
45850 | fi | |
45851 | done | |
9c112555 MW |
45852 | else |
45853 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
45854 | eval "disabled=\$$disabled_var" | |
45855 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
45856 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
45857 | fi |
45858 | else if test ${subdir} = "samples"; then | |
45859 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
45860 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
45861 | makefiles="" |
45862 | for util in HelpGen tex2rtf ; do | |
45863 | if test -d $srcdir/utils/$util ; then | |
45864 | makefiles="utils/$util/Makefile.in \ | |
45865 | utils/$util/src/Makefile.in \ | |
45866 | $makefiles" | |
45867 | fi | |
45868 | done | |
a848cd7e SC |
45869 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
45870 | fi | |
45871 | fi | |
45872 | ||
45873 | for mkin in $makefiles ; do | |
45874 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
45875 | ac_config_files="$ac_config_files $mk" | |
45876 | ||
45877 | done | |
45878 | fi | |
45879 | done | |
45880 | ||
45881 | ||
45882 | cat >confcache <<\_ACEOF | |
45883 | # This file is a shell script that caches the results of configure | |
45884 | # tests run on this system so they can be shared between configure | |
45885 | # scripts and configure runs, see configure's option --config-cache. | |
45886 | # It is not useful on other systems. If it contains results you don't | |
45887 | # want to keep, you may remove or edit it. | |
45888 | # | |
45889 | # config.status only pays attention to the cache file if you give it | |
45890 | # the --recheck option to rerun configure. | |
45891 | # | |
45892 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
45893 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
45894 | # following values. | |
45895 | ||
45896 | _ACEOF | |
45897 | ||
45898 | # The following way of writing the cache mishandles newlines in values, | |
45899 | # but we know of no workaround that is simple, portable, and efficient. | |
45900 | # So, don't put newlines in cache variables' values. | |
45901 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
45902 | # and sets the high bit in the cache file unless we assign to the vars. | |
45903 | { | |
45904 | (set) 2>&1 | | |
45905 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
45906 | *ac_space=\ *) | |
45907 | # `set' does not quote correctly, so add quotes (double-quote | |
45908 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
45909 | sed -n \ | |
ac1cb8d3 VS |
45910 | "s/'/'\\\\''/g; |
45911 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
45912 | ;; |
45913 | *) | |
45914 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
45915 | sed -n \ | |
ac1cb8d3 | 45916 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
45917 | ;; |
45918 | esac; | |
45919 | } | | |
45920 | sed ' | |
45921 | t clear | |
45922 | : clear | |
45923 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
45924 | t end | |
45925 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
45926 | : end' >>confcache | |
45927 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
45928 | if test -w $cache_file; then | |
45929 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
45930 | cat confcache >$cache_file | |
45931 | else | |
45932 | echo "not updating unwritable cache $cache_file" | |
45933 | fi | |
45934 | fi | |
45935 | rm -f confcache | |
45936 | ||
45937 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
45938 | # Let make expand exec_prefix. | |
45939 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
45940 | ||
45941 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
45942 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
45943 | # trailing colons and then remove the whole line if VPATH becomes empty | |
45944 | # (actually we leave an empty line to preserve line numbers). | |
45945 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 45946 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
45947 | s/:*\$(srcdir):*/:/; |
45948 | s/:*\${srcdir}:*/:/; | |
45949 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 45950 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 45951 | s/:*$//; |
ac1cb8d3 | 45952 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
45953 | }' |
45954 | fi | |
45955 | ||
45956 | DEFS=-DHAVE_CONFIG_H | |
45957 | ||
45958 | ac_libobjs= | |
45959 | ac_ltlibobjs= | |
45960 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
45961 | # 1. Remove the extension, and $U if already installed. | |
45962 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 45963 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
45964 | # 2. Add them. |
45965 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
45966 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
45967 | done | |
45968 | LIBOBJS=$ac_libobjs | |
45969 | ||
45970 | LTLIBOBJS=$ac_ltlibobjs | |
45971 | ||
45972 | ||
45973 | ||
45974 | : ${CONFIG_STATUS=./config.status} | |
45975 | ac_clean_files_save=$ac_clean_files | |
45976 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
45977 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
45978 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
45979 | cat >$CONFIG_STATUS <<_ACEOF | |
45980 | #! $SHELL | |
45981 | # Generated by $as_me. | |
45982 | # Run this file to recreate the current configuration. | |
45983 | # Compiler output produced by configure, useful for debugging | |
45984 | # configure, is in config.log if it exists. | |
45985 | ||
45986 | debug=false | |
45987 | ac_cs_recheck=false | |
45988 | ac_cs_silent=false | |
45989 | SHELL=\${CONFIG_SHELL-$SHELL} | |
45990 | _ACEOF | |
45991 | ||
45992 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45993 | ## --------------------- ## | |
45994 | ## M4sh Initialization. ## | |
45995 | ## --------------------- ## | |
45996 | ||
45997 | # Be Bourne compatible | |
45998 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
45999 | emulate sh | |
46000 | NULLCMD=: | |
46001 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
46002 | # is contrary to our usage. Disable this feature. | |
46003 | alias -g '${1+"$@"}'='"$@"' | |
46004 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
46005 | set -o posix | |
46006 | fi | |
ac1cb8d3 | 46007 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
46008 | |
46009 | # Support unset when possible. | |
ac1cb8d3 | 46010 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
46011 | as_unset=unset |
46012 | else | |
46013 | as_unset=false | |
46014 | fi | |
46015 | ||
46016 | ||
46017 | # Work around bugs in pre-3.0 UWIN ksh. | |
46018 | $as_unset ENV MAIL MAILPATH | |
46019 | PS1='$ ' | |
46020 | PS2='> ' | |
46021 | PS4='+ ' | |
46022 | ||
46023 | # NLS nuisances. | |
46024 | for as_var in \ | |
46025 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
46026 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
46027 | LC_TELEPHONE LC_TIME | |
46028 | do | |
ac1cb8d3 | 46029 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
46030 | eval $as_var=C; export $as_var |
46031 | else | |
46032 | $as_unset $as_var | |
46033 | fi | |
46034 | done | |
46035 | ||
46036 | # Required to use basename. | |
46037 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46038 | as_expr=expr | |
46039 | else | |
46040 | as_expr=false | |
46041 | fi | |
46042 | ||
46043 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
46044 | as_basename=basename | |
46045 | else | |
46046 | as_basename=false | |
46047 | fi | |
46048 | ||
46049 | ||
46050 | # Name of the executable. | |
46051 | as_me=`$as_basename "$0" || | |
46052 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
46053 | X"$0" : 'X\(//\)$' \| \ | |
46054 | X"$0" : 'X\(/\)$' \| \ | |
46055 | . : '\(.\)' 2>/dev/null || | |
46056 | echo X/"$0" | | |
46057 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
46058 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
46059 | /^X\/\(\/\).*/{ s//\1/; q; } | |
46060 | s/.*/./; q'` | |
46061 | ||
46062 | ||
46063 | # PATH needs CR, and LINENO needs CR and PATH. | |
46064 | # Avoid depending upon Character Ranges. | |
46065 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
46066 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
46067 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
46068 | as_cr_digits='0123456789' | |
46069 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
46070 | ||
46071 | # The user is always right. | |
46072 | if test "${PATH_SEPARATOR+set}" != set; then | |
46073 | echo "#! /bin/sh" >conf$$.sh | |
46074 | echo "exit 0" >>conf$$.sh | |
46075 | chmod +x conf$$.sh | |
46076 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46077 | PATH_SEPARATOR=';' | |
46078 | else | |
46079 | PATH_SEPARATOR=: | |
46080 | fi | |
46081 | rm -f conf$$.sh | |
46082 | fi | |
46083 | ||
46084 | ||
46085 | as_lineno_1=$LINENO | |
46086 | as_lineno_2=$LINENO | |
46087 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46088 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46089 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
46090 | # Find who we are. Look in the path if we contain no path at all | |
46091 | # relative or not. | |
46092 | case $0 in | |
46093 | *[\\/]* ) as_myself=$0 ;; | |
46094 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46095 | for as_dir in $PATH | |
46096 | do | |
46097 | IFS=$as_save_IFS | |
46098 | test -z "$as_dir" && as_dir=. | |
46099 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
46100 | done | |
46101 | ||
46102 | ;; | |
46103 | esac | |
46104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
46105 | # in which case we are not to be found in the path. | |
46106 | if test "x$as_myself" = x; then | |
46107 | as_myself=$0 | |
46108 | fi | |
46109 | if test ! -f "$as_myself"; then | |
46110 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
46111 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
46112 | { (exit 1); exit 1; }; } | |
46113 | fi | |
46114 | case $CONFIG_SHELL in | |
46115 | '') | |
46116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46117 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
46118 | do | |
46119 | IFS=$as_save_IFS | |
46120 | test -z "$as_dir" && as_dir=. | |
46121 | for as_base in sh bash ksh sh5; do | |
46122 | case $as_dir in | |
46123 | /*) | |
46124 | if ("$as_dir/$as_base" -c ' | |
46125 | as_lineno_1=$LINENO | |
46126 | as_lineno_2=$LINENO | |
46127 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46128 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46129 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
46130 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
46131 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
46132 | CONFIG_SHELL=$as_dir/$as_base | |
46133 | export CONFIG_SHELL | |
46134 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
46135 | fi;; | |
46136 | esac | |
46137 | done | |
46138 | done | |
46139 | ;; | |
46140 | esac | |
46141 | ||
46142 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
46143 | # uniformly replaced by the line number. The first 'sed' inserts a | |
46144 | # line-number line before each line; the second 'sed' does the real | |
46145 | # work. The second script uses 'N' to pair each line-number line | |
46146 | # with the numbered line, and appends trailing '-' during | |
46147 | # substitution so that $LINENO is not a special case at line end. | |
46148 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
46149 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
46150 | sed '=' <$as_myself | | |
46151 | sed ' | |
46152 | N | |
46153 | s,$,-, | |
46154 | : loop | |
46155 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
46156 | t loop | |
46157 | s,-$,, | |
46158 | s,^['$as_cr_digits']*\n,, | |
46159 | ' >$as_me.lineno && | |
46160 | chmod +x $as_me.lineno || | |
46161 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
46162 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
46163 | { (exit 1); exit 1; }; } | |
46164 | ||
46165 | # Don't try to exec as it changes $[0], causing all sort of problems | |
46166 | # (the dirname of $[0] is not the place where we might find the | |
46167 | # original and so on. Autoconf is especially sensible to this). | |
46168 | . ./$as_me.lineno | |
46169 | # Exit status is that of the last command. | |
46170 | exit | |
46171 | } | |
46172 | ||
46173 | ||
46174 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
46175 | *c*,-n*) ECHO_N= ECHO_C=' | |
46176 | ' ECHO_T=' ' ;; | |
46177 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
46178 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
46179 | esac | |
46180 | ||
46181 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46182 | as_expr=expr | |
46183 | else | |
46184 | as_expr=false | |
46185 | fi | |
46186 | ||
46187 | rm -f conf$$ conf$$.exe conf$$.file | |
46188 | echo >conf$$.file | |
46189 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
46190 | # We could just check for DJGPP; but this test a) works b) is more generic | |
46191 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
46192 | if test -f conf$$.exe; then | |
46193 | # Don't use ln at all; we don't have any links | |
46194 | as_ln_s='cp -p' | |
46195 | else | |
46196 | as_ln_s='ln -s' | |
46197 | fi | |
46198 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
46199 | as_ln_s=ln | |
46200 | else | |
46201 | as_ln_s='cp -p' | |
46202 | fi | |
46203 | rm -f conf$$ conf$$.exe conf$$.file | |
46204 | ||
46205 | if mkdir -p . 2>/dev/null; then | |
46206 | as_mkdir_p=: | |
46207 | else | |
ac1cb8d3 | 46208 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
46209 | as_mkdir_p=false |
46210 | fi | |
46211 | ||
46212 | as_executable_p="test -f" | |
46213 | ||
46214 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 46215 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
46216 | |
46217 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 46218 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
46219 | |
46220 | ||
46221 | # IFS | |
46222 | # We need space, tab and new line, in precisely that order. | |
46223 | as_nl=' | |
46224 | ' | |
46225 | IFS=" $as_nl" | |
46226 | ||
46227 | # CDPATH. | |
46228 | $as_unset CDPATH | |
46229 | ||
46230 | exec 6>&1 | |
46231 | ||
46232 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
46233 | # report actual input values of CONFIG_FILES etc. instead of their | |
46234 | # values after options handling. Logging --version etc. is OK. | |
46235 | exec 5>>config.log | |
46236 | { | |
46237 | echo | |
46238 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
46239 | ## Running $as_me. ## | |
46240 | _ASBOX | |
46241 | } >&5 | |
46242 | cat >&5 <<_CSEOF | |
46243 | ||
eb730a0c | 46244 | This file was extended by wxWidgets $as_me 2.6.2, which was |
ac1cb8d3 | 46245 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
46246 | |
46247 | CONFIG_FILES = $CONFIG_FILES | |
46248 | CONFIG_HEADERS = $CONFIG_HEADERS | |
46249 | CONFIG_LINKS = $CONFIG_LINKS | |
46250 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
46251 | $ $0 $@ | |
46252 | ||
46253 | _CSEOF | |
46254 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
46255 | echo >&5 | |
46256 | _ACEOF | |
46257 | ||
46258 | # Files that config.status was made for. | |
46259 | if test -n "$ac_config_files"; then | |
46260 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
46261 | fi | |
46262 | ||
46263 | if test -n "$ac_config_headers"; then | |
46264 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
46265 | fi | |
46266 | ||
46267 | if test -n "$ac_config_links"; then | |
46268 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
46269 | fi | |
46270 | ||
46271 | if test -n "$ac_config_commands"; then | |
46272 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
46273 | fi | |
46274 | ||
46275 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46276 | ||
46277 | ac_cs_usage="\ | |
46278 | \`$as_me' instantiates files from templates according to the | |
46279 | current configuration. | |
46280 | ||
46281 | Usage: $0 [OPTIONS] [FILE]... | |
46282 | ||
46283 | -h, --help print this help, then exit | |
46284 | -V, --version print version number, then exit | |
46285 | -q, --quiet do not print progress messages | |
46286 | -d, --debug don't remove temporary files | |
46287 | --recheck update $as_me by reconfiguring in the same conditions | |
46288 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 46289 | instantiate the configuration file FILE |
a848cd7e | 46290 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 46291 | instantiate the configuration header FILE |
a848cd7e SC |
46292 | |
46293 | Configuration files: | |
46294 | $config_files | |
46295 | ||
46296 | Configuration headers: | |
46297 | $config_headers | |
46298 | ||
46299 | Configuration commands: | |
46300 | $config_commands | |
46301 | ||
46302 | Report bugs to <bug-autoconf@gnu.org>." | |
46303 | _ACEOF | |
46304 | ||
46305 | cat >>$CONFIG_STATUS <<_ACEOF | |
46306 | ac_cs_version="\\ | |
eb730a0c | 46307 | wxWidgets config.status 2.6.2 |
ac1cb8d3 | 46308 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
46309 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
46310 | ||
ac1cb8d3 | 46311 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
46312 | This config.status script is free software; the Free Software Foundation |
46313 | gives unlimited permission to copy, distribute and modify it." | |
46314 | srcdir=$srcdir | |
46315 | INSTALL="$INSTALL" | |
46316 | _ACEOF | |
46317 | ||
46318 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46319 | # If no file are specified by the user, then we need to provide default | |
46320 | # value. By we need to know if files were specified by the user. | |
46321 | ac_need_defaults=: | |
46322 | while test $# != 0 | |
46323 | do | |
46324 | case $1 in | |
46325 | --*=*) | |
46326 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
46327 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
46328 | ac_shift=: | |
46329 | ;; | |
46330 | -*) | |
46331 | ac_option=$1 | |
46332 | ac_optarg=$2 | |
46333 | ac_shift=shift | |
46334 | ;; | |
46335 | *) # This is not an option, so the user has probably given explicit | |
46336 | # arguments. | |
46337 | ac_option=$1 | |
46338 | ac_need_defaults=false;; | |
46339 | esac | |
46340 | ||
46341 | case $ac_option in | |
46342 | # Handling of the options. | |
46343 | _ACEOF | |
46344 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46345 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
46346 | ac_cs_recheck=: ;; | |
46347 | --version | --vers* | -V ) | |
46348 | echo "$ac_cs_version"; exit 0 ;; | |
46349 | --he | --h) | |
46350 | # Conflict between --help and --header | |
46351 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
46352 | Try \`$0 --help' for more information." >&5 | |
46353 | echo "$as_me: error: ambiguous option: $1 | |
46354 | Try \`$0 --help' for more information." >&2;} | |
46355 | { (exit 1); exit 1; }; };; | |
46356 | --help | --hel | -h ) | |
46357 | echo "$ac_cs_usage"; exit 0 ;; | |
46358 | --debug | --d* | -d ) | |
46359 | debug=: ;; | |
46360 | --file | --fil | --fi | --f ) | |
46361 | $ac_shift | |
46362 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
46363 | ac_need_defaults=false;; | |
46364 | --header | --heade | --head | --hea ) | |
46365 | $ac_shift | |
46366 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
46367 | ac_need_defaults=false;; | |
46368 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
46369 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
46370 | ac_cs_silent=: ;; | |
46371 | ||
46372 | # This is an error. | |
46373 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
46374 | Try \`$0 --help' for more information." >&5 | |
46375 | echo "$as_me: error: unrecognized option: $1 | |
46376 | Try \`$0 --help' for more information." >&2;} | |
46377 | { (exit 1); exit 1; }; } ;; | |
46378 | ||
46379 | *) ac_config_targets="$ac_config_targets $1" ;; | |
46380 | ||
46381 | esac | |
46382 | shift | |
46383 | done | |
46384 | ||
46385 | ac_configure_extra_args= | |
46386 | ||
46387 | if $ac_cs_silent; then | |
46388 | exec 6>/dev/null | |
46389 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
46390 | fi | |
46391 | ||
46392 | _ACEOF | |
46393 | cat >>$CONFIG_STATUS <<_ACEOF | |
46394 | if \$ac_cs_recheck; then | |
46395 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
46396 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
46397 | fi | |
46398 | ||
46399 | _ACEOF | |
46400 | ||
46401 | cat >>$CONFIG_STATUS <<_ACEOF | |
46402 | # | |
46403 | # INIT-COMMANDS section. | |
46404 | # | |
46405 | ||
ceec2216 RL |
46406 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
46407 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46408 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46409 | LN_S="${LN_S}" | |
a848cd7e SC |
46410 | |
46411 | ||
46412 | _ACEOF | |
46413 | ||
46414 | ||
46415 | ||
46416 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46417 | for ac_config_target in $ac_config_targets | |
46418 | do | |
46419 | case "$ac_config_target" in | |
46420 | # Handling of arguments. | |
ceec2216 RL |
46421 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
46422 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
46423 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
46424 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
46425 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
46426 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
46427 | "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 |
46428 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
46429 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
46430 | { (exit 1); exit 1; }; };; | |
46431 | esac | |
46432 | done | |
46433 | ||
46434 | # If the user did not use the arguments to specify the items to instantiate, | |
46435 | # then the envvar interface is used. Set only those that are not. | |
46436 | # We use the long form for the default assignment because of an extremely | |
46437 | # bizarre bug on SunOS 4.1.3. | |
46438 | if $ac_need_defaults; then | |
46439 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
46440 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
46441 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
46442 | fi | |
46443 | ||
46444 | # Have a temporary directory for convenience. Make it in the build tree | |
46445 | # simply because there is no reason to put it here, and in addition, | |
46446 | # creating and moving files from /tmp can sometimes cause problems. | |
46447 | # Create a temporary directory, and hook for its removal unless debugging. | |
46448 | $debug || | |
46449 | { | |
46450 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
46451 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
46452 | } | |
46453 | ||
46454 | # Create a (secure) tmp directory for tmp files. | |
46455 | ||
46456 | { | |
46457 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
46458 | test -n "$tmp" && test -d "$tmp" | |
46459 | } || | |
46460 | { | |
46461 | tmp=./confstat$$-$RANDOM | |
46462 | (umask 077 && mkdir $tmp) | |
46463 | } || | |
46464 | { | |
46465 | echo "$me: cannot create a temporary directory in ." >&2 | |
46466 | { (exit 1); exit 1; } | |
46467 | } | |
46468 | ||
46469 | _ACEOF | |
46470 | ||
46471 | cat >>$CONFIG_STATUS <<_ACEOF | |
46472 | ||
46473 | # | |
46474 | # CONFIG_FILES section. | |
46475 | # | |
46476 | ||
46477 | # No need to generate the scripts if there are no CONFIG_FILES. | |
46478 | # This happens for instance when ./config.status config.h | |
46479 | if test -n "\$CONFIG_FILES"; then | |
46480 | # Protect against being on the right side of a sed subst in config.status. | |
46481 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
46482 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
46483 | s,@SHELL@,$SHELL,;t t | |
46484 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
46485 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
46486 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
46487 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
46488 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
46489 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
46490 | s,@exec_prefix@,$exec_prefix,;t t | |
46491 | s,@prefix@,$prefix,;t t | |
46492 | s,@program_transform_name@,$program_transform_name,;t t | |
46493 | s,@bindir@,$bindir,;t t | |
46494 | s,@sbindir@,$sbindir,;t t | |
46495 | s,@libexecdir@,$libexecdir,;t t | |
46496 | s,@datadir@,$datadir,;t t | |
46497 | s,@sysconfdir@,$sysconfdir,;t t | |
46498 | s,@sharedstatedir@,$sharedstatedir,;t t | |
46499 | s,@localstatedir@,$localstatedir,;t t | |
46500 | s,@libdir@,$libdir,;t t | |
46501 | s,@includedir@,$includedir,;t t | |
46502 | s,@oldincludedir@,$oldincludedir,;t t | |
46503 | s,@infodir@,$infodir,;t t | |
46504 | s,@mandir@,$mandir,;t t | |
46505 | s,@build_alias@,$build_alias,;t t | |
46506 | s,@host_alias@,$host_alias,;t t | |
46507 | s,@target_alias@,$target_alias,;t t | |
46508 | s,@DEFS@,$DEFS,;t t | |
46509 | s,@ECHO_C@,$ECHO_C,;t t | |
46510 | s,@ECHO_N@,$ECHO_N,;t t | |
46511 | s,@ECHO_T@,$ECHO_T,;t t | |
46512 | s,@LIBS@,$LIBS,;t t | |
46513 | s,@build@,$build,;t t | |
46514 | s,@build_cpu@,$build_cpu,;t t | |
46515 | s,@build_vendor@,$build_vendor,;t t | |
46516 | s,@build_os@,$build_os,;t t | |
46517 | s,@host@,$host,;t t | |
46518 | s,@host_cpu@,$host_cpu,;t t | |
46519 | s,@host_vendor@,$host_vendor,;t t | |
46520 | s,@host_os@,$host_os,;t t | |
46521 | s,@target@,$target,;t t | |
46522 | s,@target_cpu@,$target_cpu,;t t | |
46523 | s,@target_vendor@,$target_vendor,;t t | |
46524 | s,@target_os@,$target_os,;t t | |
46525 | s,@CC@,$CC,;t t | |
46526 | s,@CFLAGS@,$CFLAGS,;t t | |
46527 | s,@LDFLAGS@,$LDFLAGS,;t t | |
46528 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
46529 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
46530 | s,@EXEEXT@,$EXEEXT,;t t | |
46531 | s,@OBJEXT@,$OBJEXT,;t t | |
46532 | s,@CPP@,$CPP,;t t | |
46533 | s,@EGREP@,$EGREP,;t t | |
46534 | s,@CXX@,$CXX,;t t | |
46535 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
46536 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
46537 | s,@RANLIB@,$RANLIB,;t t | |
46538 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
46539 | s,@AR@,$AR,;t t | |
8c80d384 | 46540 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
46541 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
46542 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
46543 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
46544 | s,@STRIP@,$STRIP,;t t | |
8c80d384 DE |
46545 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
46546 | s,@RESCOMP@,$RESCOMP,;t t | |
46547 | s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t | |
46548 | s,@DLLTOOL@,$DLLTOOL,;t t | |
46549 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
46550 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
46551 | s,@LN_S@,$LN_S,;t t | |
46552 | s,@CXXCPP@,$CXXCPP,;t t | |
46553 | s,@subdirs@,$subdirs,;t t | |
46554 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
46555 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
46556 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
46557 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
46558 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
46559 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
46560 | s,@X_LIBS@,$X_LIBS,;t t | |
46561 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
46562 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
46563 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
46564 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
46565 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
46566 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
46567 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
a848cd7e SC |
46568 | s,@DEREZ@,$DEREZ,;t t |
46569 | s,@SETFILE@,$SETFILE,;t t | |
46570 | s,@LIBICONV@,$LIBICONV,;t t | |
46571 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
46572 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
46573 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
46574 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
46575 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
46576 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
46577 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
46578 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
46579 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
46580 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
46581 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
46582 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
46583 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
46584 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
46585 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
46586 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
46587 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
46588 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
46589 | s,@VENDOR@,$VENDOR,;t t | |
46590 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
46591 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
46592 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
46593 | s,@WXUNIV@,$WXUNIV,;t t |
46594 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
46595 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
46596 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
46597 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
46598 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
46599 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
46600 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
46601 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
46602 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
46603 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 46604 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
46605 | s,@UNICODE@,$UNICODE,;t t |
46606 | s,@BUILD@,$BUILD,;t t | |
46607 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
46608 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
46609 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
46610 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
46611 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
46612 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
46613 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
46614 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
46615 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
46616 | s,@SET_MAKE@,$SET_MAKE,;t t | |
46617 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
46618 | s,@NM@,$NM,;t t |
46619 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
46620 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
46621 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
46622 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
46623 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
46624 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
46625 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 46626 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
46627 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
46628 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 46629 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
46630 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
46631 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
46632 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
46633 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
46634 | s,@LIBEXT@,$LIBEXT,;t t | |
46635 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
46636 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 46637 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
46638 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
46639 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
46640 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
46641 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
46642 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
46643 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 46644 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
46645 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
46646 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
46647 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 46648 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
46649 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
46650 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
46651 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
46652 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
46653 | s,@GCC_PCH@,$GCC_PCH,;t t | |
46654 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
46655 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
46656 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
46657 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
46658 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
46659 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
46660 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
46661 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
46662 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
46663 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
46664 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
46665 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
46666 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
46667 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
46668 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
46669 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
46670 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
46671 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 46672 | 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 | 46673 | 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 | 46674 | 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 | 46675 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 46676 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46677 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
46678 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 46679 | 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 | 46680 | 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 | 46681 | 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 | 46682 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 46683 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
46684 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
46685 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
46686 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
46687 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
46688 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
46689 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 46690 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t |
a848cd7e SC |
46691 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
46692 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 46693 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
46694 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
46695 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
46696 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 46697 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 46698 | 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 |
46699 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
46700 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
46701 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
46702 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 46703 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 46704 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 46705 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
46706 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
46707 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
46708 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
46709 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
46710 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
46711 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
46712 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
46713 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
46714 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
46715 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
46716 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
46717 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
46718 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46719 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46720 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 46721 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46722 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
46723 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
46724 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
46725 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
46726 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
46727 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 46728 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 46729 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 46730 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 46731 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
46732 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
46733 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
46734 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
46735 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
46736 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
46737 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
46738 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
46739 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
46740 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
46741 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
46742 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
46743 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
46744 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
46745 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
46746 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
46747 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
46748 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
46749 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
46750 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
46751 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
46752 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
46753 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
46754 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
46755 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
46756 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
46757 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
46758 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
46759 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
46760 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
46761 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
46762 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46763 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46764 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
46765 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
46766 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 46767 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
46768 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
46769 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 46770 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 46771 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
46772 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
46773 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
46774 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
46775 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
46776 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 46777 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 46778 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 46779 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 46780 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
46781 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
46782 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
46783 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
46784 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
46785 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
46786 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
46787 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
46788 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 46789 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
46790 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
46791 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
46792 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
46793 | s,@USE_GUI@,$USE_GUI,;t t | |
46794 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
46795 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
46796 | s,@TOOLKIT@,$TOOLKIT,;t t | |
46797 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 46798 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 46799 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
46800 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
46801 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 46802 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
46803 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
46804 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
46805 | s,@WX_VERSION@,$WX_VERSION,;t t | |
46806 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
46807 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
46808 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 46809 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
46810 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
46811 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
46812 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
46813 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
ddd14b14 | 46814 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
46815 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
46816 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 46817 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 46818 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
46819 | s,@DISTDIR@,$DISTDIR,;t t |
46820 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
46821 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
46822 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
46823 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
46824 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
46825 | s,@RESFLAGS@,$RESFLAGS,;t t | |
46826 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
46827 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
46828 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
46829 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
46830 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
46831 | s,@MACSETFILE@,$MACSETFILE,;t t | |
46832 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
46833 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
46834 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
46835 | s,@LIBOBJS@,$LIBOBJS,;t t | |
46836 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
46837 | CEOF | |
46838 | ||
46839 | _ACEOF | |
46840 | ||
46841 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46842 | # Split the substitutions into bite-sized pieces for seds with | |
46843 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
46844 | ac_max_sed_lines=48 | |
46845 | ac_sed_frag=1 # Number of current file. | |
46846 | ac_beg=1 # First line for current file. | |
46847 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
46848 | ac_more_lines=: | |
46849 | ac_sed_cmds= | |
46850 | while $ac_more_lines; do | |
46851 | if test $ac_beg -gt 1; then | |
46852 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46853 | else | |
46854 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46855 | fi | |
46856 | if test ! -s $tmp/subs.frag; then | |
46857 | ac_more_lines=false | |
46858 | else | |
46859 | # The purpose of the label and of the branching condition is to | |
46860 | # speed up the sed processing (if there are no `@' at all, there | |
46861 | # is no need to browse any of the substitutions). | |
46862 | # These are the two extra sed commands mentioned above. | |
46863 | (echo ':t | |
46864 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
46865 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 46866 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 46867 | else |
ac1cb8d3 | 46868 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
46869 | fi |
46870 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
46871 | ac_beg=$ac_end | |
46872 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
46873 | fi | |
46874 | done | |
46875 | if test -z "$ac_sed_cmds"; then | |
46876 | ac_sed_cmds=cat | |
46877 | fi | |
46878 | fi # test -n "$CONFIG_FILES" | |
46879 | ||
46880 | _ACEOF | |
46881 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46882 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
46883 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
46884 | case $ac_file in | |
46885 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
46886 | cat >$tmp/stdin |
46887 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
46888 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 46889 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 46890 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
46891 | * ) ac_file_in=$ac_file.in ;; |
46892 | esac | |
46893 | ||
46894 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
46895 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
46896 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46897 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
46898 | X"$ac_file" : 'X\(//\)$' \| \ | |
46899 | X"$ac_file" : 'X\(/\)' \| \ | |
46900 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46901 | echo X"$ac_file" | |
46902 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46903 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46904 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46905 | /^X\(\/\).*/{ s//\1/; q; } | |
46906 | s/.*/./; q'` | |
46907 | { if $as_mkdir_p; then | |
46908 | mkdir -p "$ac_dir" | |
46909 | else | |
46910 | as_dir="$ac_dir" | |
46911 | as_dirs= | |
46912 | while test ! -d "$as_dir"; do | |
46913 | as_dirs="$as_dir $as_dirs" | |
46914 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46915 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46916 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
46917 | X"$as_dir" : 'X\(//\)$' \| \ | |
46918 | X"$as_dir" : 'X\(/\)' \| \ | |
46919 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46920 | echo X"$as_dir" | |
46921 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46922 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46923 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46924 | /^X\(\/\).*/{ s//\1/; q; } | |
46925 | s/.*/./; q'` | |
46926 | done | |
46927 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46928 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46929 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46930 | { (exit 1); exit 1; }; }; } | |
46931 | ||
46932 | ac_builddir=. | |
46933 | ||
46934 | if test "$ac_dir" != .; then | |
46935 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
46936 | # A "../" for each directory in $ac_dir_suffix. | |
46937 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
46938 | else | |
46939 | ac_dir_suffix= ac_top_builddir= | |
46940 | fi | |
46941 | ||
46942 | case $srcdir in | |
46943 | .) # No --srcdir option. We are building in place. | |
46944 | ac_srcdir=. | |
46945 | if test -z "$ac_top_builddir"; then | |
46946 | ac_top_srcdir=. | |
46947 | else | |
46948 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
46949 | fi ;; | |
46950 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
46951 | ac_srcdir=$srcdir$ac_dir_suffix; | |
46952 | ac_top_srcdir=$srcdir ;; | |
46953 | *) # Relative path. | |
46954 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
46955 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
46956 | esac | |
ac1cb8d3 VS |
46957 | |
46958 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
46959 | # the directories may not exist. | |
46960 | case `pwd` in | |
46961 | .) ac_abs_builddir="$ac_dir";; | |
46962 | *) | |
46963 | case "$ac_dir" in | |
46964 | .) ac_abs_builddir=`pwd`;; | |
46965 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
46966 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
46967 | esac;; | |
46968 | esac | |
46969 | case $ac_abs_builddir in | |
46970 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46971 | *) | |
46972 | case ${ac_top_builddir}. in | |
46973 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
46974 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46975 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
46976 | esac;; | |
46977 | esac | |
46978 | case $ac_abs_builddir in | |
46979 | .) ac_abs_srcdir=$ac_srcdir;; | |
46980 | *) | |
46981 | case $ac_srcdir in | |
46982 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
46983 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
46984 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
46985 | esac;; | |
46986 | esac | |
46987 | case $ac_abs_builddir in | |
46988 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46989 | *) | |
46990 | case $ac_top_srcdir in | |
46991 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
46992 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46993 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
46994 | esac;; | |
46995 | esac | |
a848cd7e SC |
46996 | |
46997 | ||
46998 | case $INSTALL in | |
46999 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
47000 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
47001 | esac | |
47002 | ||
a848cd7e SC |
47003 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
47004 | # use $as_me), people would be surprised to read: | |
47005 | # /* config.h. Generated by config.status. */ | |
47006 | if test x"$ac_file" = x-; then | |
47007 | configure_input= | |
47008 | else | |
47009 | configure_input="$ac_file. " | |
47010 | fi | |
47011 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 47012 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
47013 | |
47014 | # First look for the input files in the build tree, otherwise in the | |
47015 | # src tree. | |
47016 | ac_file_inputs=`IFS=: | |
47017 | for f in $ac_file_in; do | |
47018 | case $f in | |
47019 | -) echo $tmp/stdin ;; | |
47020 | [\\/$]*) | |
ac1cb8d3 VS |
47021 | # Absolute (can't be DOS-style, as IFS=:) |
47022 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47023 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47024 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47025 | echo "$f";; |
a848cd7e | 47026 | *) # Relative |
ac1cb8d3 VS |
47027 | if test -f "$f"; then |
47028 | # Build tree | |
47029 | echo "$f" | |
47030 | elif test -f "$srcdir/$f"; then | |
47031 | # Source tree | |
47032 | echo "$srcdir/$f" | |
47033 | else | |
47034 | # /dev/null tree | |
47035 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47036 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47037 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47038 | fi;; |
a848cd7e SC |
47039 | esac |
47040 | done` || { (exit 1); exit 1; } | |
6ebeb4c7 VZ |
47041 | |
47042 | if test x"$ac_file" != x-; then | |
47043 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47044 | echo "$as_me: creating $ac_file" >&6;} | |
47045 | rm -f "$ac_file" | |
47046 | fi | |
a848cd7e SC |
47047 | _ACEOF |
47048 | cat >>$CONFIG_STATUS <<_ACEOF | |
47049 | sed "$ac_vpsub | |
47050 | $extrasub | |
47051 | _ACEOF | |
47052 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47053 | :t | |
47054 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
47055 | s,@configure_input@,$configure_input,;t t | |
47056 | s,@srcdir@,$ac_srcdir,;t t | |
47057 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
47058 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
47059 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
47060 | s,@builddir@,$ac_builddir,;t t | |
47061 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
47062 | s,@top_builddir@,$ac_top_builddir,;t t | |
47063 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
47064 | s,@INSTALL@,$ac_INSTALL,;t t | |
47065 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
47066 | rm -f $tmp/stdin | |
47067 | if test x"$ac_file" != x-; then | |
47068 | mv $tmp/out $ac_file | |
47069 | else | |
47070 | cat $tmp/out | |
47071 | rm -f $tmp/out | |
47072 | fi | |
47073 | ||
ceec2216 RL |
47074 | # Run the commands associated with the file. |
47075 | case $ac_file in | |
47076 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
47077 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
47078 | esac | |
a848cd7e SC |
47079 | done |
47080 | _ACEOF | |
47081 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47082 | ||
47083 | # | |
47084 | # CONFIG_HEADER section. | |
47085 | # | |
47086 | ||
47087 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
47088 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
47089 | # | |
47090 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
47091 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
47092 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
47093 | ac_dC=' ' |
47094 | ac_dD=',;t' | |
47095 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 47096 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
47097 | ac_uB='$,\1#\2define\3' |
47098 | ac_uC=' ' | |
47099 | ac_uD=',;t' | |
47100 | ||
47101 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
47102 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
47103 | case $ac_file in | |
47104 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
47105 | cat >$tmp/stdin |
47106 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47107 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 47108 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 47109 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
47110 | * ) ac_file_in=$ac_file.in ;; |
47111 | esac | |
47112 | ||
47113 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47114 | echo "$as_me: creating $ac_file" >&6;} | |
47115 | ||
47116 | # First look for the input files in the build tree, otherwise in the | |
47117 | # src tree. | |
47118 | ac_file_inputs=`IFS=: | |
47119 | for f in $ac_file_in; do | |
47120 | case $f in | |
47121 | -) echo $tmp/stdin ;; | |
47122 | [\\/$]*) | |
ac1cb8d3 VS |
47123 | # Absolute (can't be DOS-style, as IFS=:) |
47124 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47125 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47126 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
47127 | # Do quote $f, to prevent DOS paths from being IFS'd. |
47128 | echo "$f";; | |
a848cd7e | 47129 | *) # Relative |
ac1cb8d3 VS |
47130 | if test -f "$f"; then |
47131 | # Build tree | |
47132 | echo "$f" | |
47133 | elif test -f "$srcdir/$f"; then | |
47134 | # Source tree | |
47135 | echo "$srcdir/$f" | |
47136 | else | |
47137 | # /dev/null tree | |
47138 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47139 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47140 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47141 | fi;; |
a848cd7e SC |
47142 | esac |
47143 | done` || { (exit 1); exit 1; } | |
47144 | # Remove the trailing spaces. | |
ac1cb8d3 | 47145 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
47146 | |
47147 | _ACEOF | |
47148 | ||
47149 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
47150 | # `conftest.undefs', that substitutes the proper values into | |
47151 | # config.h.in to produce config.h. The first handles `#define' | |
47152 | # templates, and the second `#undef' templates. | |
47153 | # And first: Protect against being on the right side of a sed subst in | |
47154 | # config.status. Protect against being in an unquoted here document | |
47155 | # in config.status. | |
47156 | rm -f conftest.defines conftest.undefs | |
47157 | # Using a here document instead of a string reduces the quoting nightmare. | |
47158 | # Putting comments in sed scripts is not portable. | |
47159 | # | |
47160 | # `end' is used to avoid that the second main sed command (meant for | |
47161 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
47162 | # See the Autoconf documentation for `clear'. | |
47163 | cat >confdef2sed.sed <<\_ACEOF | |
47164 | s/[\\&,]/\\&/g | |
47165 | s,[\\$`],\\&,g | |
47166 | t clear | |
47167 | : clear | |
ac1cb8d3 | 47168 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 47169 | t end |
ac1cb8d3 | 47170 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
47171 | : end |
47172 | _ACEOF | |
47173 | # If some macros were called several times there might be several times | |
47174 | # the same #defines, which is useless. Nevertheless, we may not want to | |
47175 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
47176 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
47177 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
47178 | rm -f confdef2sed.sed | |
47179 | ||
47180 | # This sed command replaces #undef with comments. This is necessary, for | |
47181 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
47182 | # on some systems where configure will not decide to define it. | |
47183 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 47184 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
47185 | _ACEOF |
47186 | ||
47187 | # Break up conftest.defines because some shells have a limit on the size | |
47188 | # of here documents, and old seds have small limits too (100 cmds). | |
47189 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 47190 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
47191 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
47192 | echo ' :' >>$CONFIG_STATUS | |
47193 | rm -f conftest.tail | |
47194 | while grep . conftest.defines >/dev/null | |
47195 | do | |
47196 | # Write a limited-size here document to $tmp/defines.sed. | |
47197 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
47198 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 47199 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
47200 | # Work around the forget-to-reset-the-flag bug. |
47201 | echo 't clr' >>$CONFIG_STATUS | |
47202 | echo ': clr' >>$CONFIG_STATUS | |
47203 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
47204 | echo 'CEOF | |
47205 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
47206 | rm -f $tmp/in | |
47207 | mv $tmp/out $tmp/in | |
47208 | ' >>$CONFIG_STATUS | |
47209 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
47210 | rm -f conftest.defines | |
47211 | mv conftest.tail conftest.defines | |
47212 | done | |
47213 | rm -f conftest.defines | |
47214 | echo ' fi # grep' >>$CONFIG_STATUS | |
47215 | echo >>$CONFIG_STATUS | |
47216 | ||
47217 | # Break up conftest.undefs because some shells have a limit on the size | |
47218 | # of here documents, and old seds have small limits too (100 cmds). | |
47219 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
47220 | rm -f conftest.tail | |
47221 | while grep . conftest.undefs >/dev/null | |
47222 | do | |
47223 | # Write a limited-size here document to $tmp/undefs.sed. | |
47224 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
47225 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 47226 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
47227 | # Work around the forget-to-reset-the-flag bug. |
47228 | echo 't clr' >>$CONFIG_STATUS | |
47229 | echo ': clr' >>$CONFIG_STATUS | |
47230 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
47231 | echo 'CEOF | |
47232 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
47233 | rm -f $tmp/in | |
47234 | mv $tmp/out $tmp/in | |
47235 | ' >>$CONFIG_STATUS | |
47236 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
47237 | rm -f conftest.undefs | |
47238 | mv conftest.tail conftest.undefs | |
47239 | done | |
47240 | rm -f conftest.undefs | |
47241 | ||
47242 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47243 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
47244 | # use $as_me), people would be surprised to read: | |
47245 | # /* config.h. Generated by config.status. */ | |
47246 | if test x"$ac_file" = x-; then | |
47247 | echo "/* Generated by configure. */" >$tmp/config.h | |
47248 | else | |
47249 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
47250 | fi | |
47251 | cat $tmp/in >>$tmp/config.h | |
47252 | rm -f $tmp/in | |
47253 | if test x"$ac_file" != x-; then | |
47254 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
47255 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
47256 | echo "$as_me: $ac_file is unchanged" >&6;} | |
47257 | else | |
47258 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
47259 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47260 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
47261 | X"$ac_file" : 'X\(//\)$' \| \ | |
47262 | X"$ac_file" : 'X\(/\)' \| \ | |
47263 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47264 | echo X"$ac_file" | |
47265 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47266 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47267 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47268 | /^X\(\/\).*/{ s//\1/; q; } | |
47269 | s/.*/./; q'` | |
47270 | { if $as_mkdir_p; then | |
47271 | mkdir -p "$ac_dir" | |
47272 | else | |
47273 | as_dir="$ac_dir" | |
47274 | as_dirs= | |
47275 | while test ! -d "$as_dir"; do | |
47276 | as_dirs="$as_dir $as_dirs" | |
47277 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47278 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47279 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47280 | X"$as_dir" : 'X\(//\)$' \| \ | |
47281 | X"$as_dir" : 'X\(/\)' \| \ | |
47282 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47283 | echo X"$as_dir" | |
47284 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47285 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47286 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47287 | /^X\(\/\).*/{ s//\1/; q; } | |
47288 | s/.*/./; q'` | |
47289 | done | |
47290 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47291 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47292 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47293 | { (exit 1); exit 1; }; }; } | |
47294 | ||
47295 | rm -f $ac_file | |
47296 | mv $tmp/config.h $ac_file | |
47297 | fi | |
47298 | else | |
47299 | cat $tmp/config.h | |
47300 | rm -f $tmp/config.h | |
47301 | fi | |
47302 | done | |
47303 | _ACEOF | |
47304 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47305 | ||
47306 | # | |
47307 | # CONFIG_COMMANDS section. | |
47308 | # | |
47309 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
47310 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
47311 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47312 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
47313 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47314 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
47315 | X"$ac_dest" : 'X\(//\)$' \| \ | |
47316 | X"$ac_dest" : 'X\(/\)' \| \ | |
47317 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47318 | echo X"$ac_dest" | |
47319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47320 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47321 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47322 | /^X\(\/\).*/{ s//\1/; q; } | |
47323 | s/.*/./; q'` | |
ac1cb8d3 VS |
47324 | { if $as_mkdir_p; then |
47325 | mkdir -p "$ac_dir" | |
47326 | else | |
47327 | as_dir="$ac_dir" | |
47328 | as_dirs= | |
47329 | while test ! -d "$as_dir"; do | |
47330 | as_dirs="$as_dir $as_dirs" | |
47331 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
47333 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
47334 | X"$as_dir" : 'X\(//\)$' \| \ | |
47335 | X"$as_dir" : 'X\(/\)' \| \ | |
47336 | . : '\(.\)' 2>/dev/null || | |
47337 | echo X"$as_dir" | | |
47338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47339 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47340 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47341 | /^X\(\/\).*/{ s//\1/; q; } | |
47342 | s/.*/./; q'` | |
47343 | done | |
47344 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47345 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47346 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47347 | { (exit 1); exit 1; }; }; } | |
47348 | ||
a848cd7e SC |
47349 | ac_builddir=. |
47350 | ||
47351 | if test "$ac_dir" != .; then | |
47352 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47353 | # A "../" for each directory in $ac_dir_suffix. | |
47354 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47355 | else | |
47356 | ac_dir_suffix= ac_top_builddir= | |
47357 | fi | |
47358 | ||
47359 | case $srcdir in | |
47360 | .) # No --srcdir option. We are building in place. | |
47361 | ac_srcdir=. | |
47362 | if test -z "$ac_top_builddir"; then | |
47363 | ac_top_srcdir=. | |
47364 | else | |
47365 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47366 | fi ;; | |
47367 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47368 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47369 | ac_top_srcdir=$srcdir ;; | |
47370 | *) # Relative path. | |
47371 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47372 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47373 | esac | |
ac1cb8d3 VS |
47374 | |
47375 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47376 | # the directories may not exist. | |
47377 | case `pwd` in | |
47378 | .) ac_abs_builddir="$ac_dir";; | |
47379 | *) | |
47380 | case "$ac_dir" in | |
47381 | .) ac_abs_builddir=`pwd`;; | |
47382 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47383 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47384 | esac;; | |
47385 | esac | |
47386 | case $ac_abs_builddir in | |
47387 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47388 | *) | |
47389 | case ${ac_top_builddir}. in | |
47390 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47391 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47392 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47393 | esac;; | |
47394 | esac | |
47395 | case $ac_abs_builddir in | |
47396 | .) ac_abs_srcdir=$ac_srcdir;; | |
47397 | *) | |
47398 | case $ac_srcdir in | |
47399 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47400 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47401 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47402 | esac;; | |
47403 | esac | |
47404 | case $ac_abs_builddir in | |
47405 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47406 | *) | |
47407 | case $ac_top_srcdir in | |
47408 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47409 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47410 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47411 | esac;; | |
47412 | esac | |
a848cd7e SC |
47413 | |
47414 | ||
47415 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
47416 | echo "$as_me: executing $ac_dest commands" >&6;} | |
47417 | case $ac_dest in | |
ceec2216 RL |
47418 | wx-config ) rm -f wx-config |
47419 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
47420 | ;; | |
a848cd7e SC |
47421 | esac |
47422 | done | |
47423 | _ACEOF | |
47424 | ||
47425 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47426 | ||
47427 | { (exit 0); exit 0; } | |
47428 | _ACEOF | |
47429 | chmod +x $CONFIG_STATUS | |
47430 | ac_clean_files=$ac_clean_files_save | |
47431 | ||
47432 | ||
47433 | # configure is writing to config.log, and then calls config.status. | |
47434 | # config.status does its own redirection, appending to config.log. | |
47435 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
47436 | # by configure, so config.status won't be able to write to it; its | |
47437 | # output is simply discarded. So we exec the FD to /dev/null, | |
47438 | # effectively closing config.log, so it can be properly (re)opened and | |
47439 | # appended to by config.status. When coming back to configure, we | |
47440 | # need to make the FD available again. | |
47441 | if test "$no_create" != yes; then | |
47442 | ac_cs_success=: | |
47443 | ac_config_status_args= | |
47444 | test "$silent" = yes && | |
47445 | ac_config_status_args="$ac_config_status_args --quiet" | |
47446 | exec 5>/dev/null | |
47447 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
47448 | exec 5>>config.log | |
47449 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
47450 | # would make configure fail if this is the last instruction. | |
47451 | $ac_cs_success || { (exit 1); exit 1; } | |
47452 | fi | |
47453 | ||
47454 | # | |
47455 | # CONFIG_SUBDIRS section. | |
47456 | # | |
47457 | if test "$no_recursion" != yes; then | |
47458 | ||
47459 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
47460 | ac_sub_configure_args= | |
47461 | ac_prev= | |
47462 | for ac_arg in $ac_configure_args; do | |
47463 | if test -n "$ac_prev"; then | |
47464 | ac_prev= | |
47465 | continue | |
47466 | fi | |
47467 | case $ac_arg in | |
47468 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
47469 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
47470 | ac_prev=cache_file ;; | |
47471 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
47472 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
47473 | | --c=*) | |
47474 | ;; | |
47475 | --config-cache | -C) | |
47476 | ;; | |
47477 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
47478 | ac_prev=srcdir ;; | |
47479 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
47480 | ;; | |
47481 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
47482 | ac_prev=prefix ;; | |
47483 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
47484 | ;; | |
47485 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
47486 | esac | |
47487 | done | |
47488 | ||
47489 | # Always prepend --prefix to ensure using the same prefix | |
47490 | # in subdir configurations. | |
47491 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
47492 | ||
47493 | ac_popdir=`pwd` | |
47494 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
47495 | ||
47496 | # Do not complain, so a configure script can configure whichever | |
47497 | # parts of a large source tree are present. | |
47498 | test -d $srcdir/$ac_dir || continue | |
47499 | ||
47500 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
47501 | echo "$as_me: configuring in $ac_dir" >&6;} | |
47502 | { if $as_mkdir_p; then | |
47503 | mkdir -p "$ac_dir" | |
47504 | else | |
47505 | as_dir="$ac_dir" | |
47506 | as_dirs= | |
47507 | while test ! -d "$as_dir"; do | |
47508 | as_dirs="$as_dir $as_dirs" | |
47509 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47510 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47511 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47512 | X"$as_dir" : 'X\(//\)$' \| \ | |
47513 | X"$as_dir" : 'X\(/\)' \| \ | |
47514 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47515 | echo X"$as_dir" | |
47516 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47517 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47518 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47519 | /^X\(\/\).*/{ s//\1/; q; } | |
47520 | s/.*/./; q'` | |
47521 | done | |
47522 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47523 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47524 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47525 | { (exit 1); exit 1; }; }; } | |
47526 | ||
47527 | ac_builddir=. | |
47528 | ||
47529 | if test "$ac_dir" != .; then | |
47530 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47531 | # A "../" for each directory in $ac_dir_suffix. | |
47532 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47533 | else | |
47534 | ac_dir_suffix= ac_top_builddir= | |
47535 | fi | |
47536 | ||
47537 | case $srcdir in | |
47538 | .) # No --srcdir option. We are building in place. | |
47539 | ac_srcdir=. | |
47540 | if test -z "$ac_top_builddir"; then | |
47541 | ac_top_srcdir=. | |
47542 | else | |
47543 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47544 | fi ;; | |
47545 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47546 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47547 | ac_top_srcdir=$srcdir ;; | |
47548 | *) # Relative path. | |
47549 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47550 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47551 | esac | |
ac1cb8d3 VS |
47552 | |
47553 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47554 | # the directories may not exist. | |
47555 | case `pwd` in | |
47556 | .) ac_abs_builddir="$ac_dir";; | |
47557 | *) | |
47558 | case "$ac_dir" in | |
47559 | .) ac_abs_builddir=`pwd`;; | |
47560 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47561 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47562 | esac;; | |
47563 | esac | |
47564 | case $ac_abs_builddir in | |
47565 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47566 | *) | |
47567 | case ${ac_top_builddir}. in | |
47568 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47569 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47570 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47571 | esac;; | |
47572 | esac | |
47573 | case $ac_abs_builddir in | |
47574 | .) ac_abs_srcdir=$ac_srcdir;; | |
47575 | *) | |
47576 | case $ac_srcdir in | |
47577 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47578 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47579 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47580 | esac;; | |
47581 | esac | |
47582 | case $ac_abs_builddir in | |
47583 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47584 | *) | |
47585 | case $ac_top_srcdir in | |
47586 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47587 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47588 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47589 | esac;; | |
47590 | esac | |
a848cd7e SC |
47591 | |
47592 | ||
47593 | cd $ac_dir | |
47594 | ||
47595 | # Check for guested configure; otherwise get Cygnus style configure. | |
47596 | if test -f $ac_srcdir/configure.gnu; then | |
47597 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
47598 | elif test -f $ac_srcdir/configure; then | |
47599 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
47600 | elif test -f $ac_srcdir/configure.in; then | |
47601 | ac_sub_configure=$ac_configure | |
47602 | else | |
47603 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
47604 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
47605 | ac_sub_configure= | |
47606 | fi | |
47607 | ||
47608 | # The recursion is here. | |
47609 | if test -n "$ac_sub_configure"; then | |
47610 | # Make the cache file name correct relative to the subdirectory. | |
47611 | case $cache_file in | |
47612 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
47613 | *) # Relative path. | |
ac1cb8d3 | 47614 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
47615 | esac |
47616 | ||
47617 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
47618 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
47619 | # The eval makes quoting arguments work. | |
47620 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
47621 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
47622 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
47623 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
47624 | { (exit 1); exit 1; }; } | |
47625 | fi | |
47626 | ||
6ebeb4c7 | 47627 | cd "$ac_popdir" |
a848cd7e SC |
47628 | done |
47629 | fi | |
47630 | ||
47631 | ||
47632 | echo | |
77ffb593 | 47633 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 47634 | echo "" |
4d4ff94c | 47635 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 47636 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 47637 | |
77ffb593 JS |
47638 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
47639 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
47640 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 47641 | |
77ffb593 JS |
47642 | echo " What level of wxWidgets compatibility should be enabled?" |
47643 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
47644 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 47645 | |
77ffb593 | 47646 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
47647 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
47648 | echo " png ${wxUSE_LIBPNG-none}" | |
47649 | echo " regex ${wxUSE_REGEX}" | |
47650 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
47651 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
47652 | echo " xpm ${wxUSE_LIBXPM-none}" | |
47653 | fi | |
47654 | echo " zlib ${wxUSE_ZLIB}" | |
47655 | echo " odbc ${wxUSE_ODBC}" | |
47656 | echo " expat ${wxUSE_EXPAT}" | |
47657 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
47658 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 47659 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
47660 | |
47661 | echo "" | |
47662 |