]>
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 | ||
6dcfc289 | 11647 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
480ccd21 DE |
11648 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
11649 | if test "${wx_cv_c_exto+set}" = set; then | |
11650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11651 | else | |
11652 | cat >conftest.$ac_ext <<_ACEOF | |
11653 | /* confdefs.h. */ | |
11654 | _ACEOF | |
11655 | cat confdefs.h >>conftest.$ac_ext | |
11656 | cat >>conftest.$ac_ext <<_ACEOF | |
11657 | /* end confdefs.h. */ | |
11658 | ||
11659 | int | |
11660 | main () | |
11661 | { | |
11662 | ||
11663 | ; | |
11664 | return 0; | |
11665 | } | |
11666 | _ACEOF | |
11667 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11669 | (eval $ac_compile) 2>&5 | |
11670 | ac_status=$? | |
11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11672 | (exit $ac_status); }; then | |
11673 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11674 | case $ac_file in | |
11675 | conftest.$ac_ext.o) | |
11676 | wx_cv_c_exto="-ext o" | |
11677 | ;; | |
11678 | *) | |
11679 | ;; | |
11680 | esac | |
11681 | done | |
11682 | else | |
11683 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11684 | See \`config.log' for more details." >&5 | |
11685 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11686 | See \`config.log' for more details." >&2;} | |
11687 | { (exit 1); exit 1; }; } | |
11688 | ||
11689 | fi | |
11690 | ||
11691 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11692 | ||
11693 | fi | |
11694 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11695 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11696 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11697 | if test "c" = "c"; then | |
11698 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11699 | fi | |
11700 | if test "c" = "cxx"; then | |
11701 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11702 | fi | |
11703 | fi | |
11704 | ||
6dcfc289 DE |
11705 | if test "x$wx_cv_c_exto" '!=' "x"; then |
11706 | unset ac_cv_prog_cc_g | |
11707 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11708 | ac_save_CFLAGS=$CFLAGS |
9122d155 | 11709 | CFLAGS="-g" |
480ccd21 DE |
11710 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11711 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11712 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11714 | else | |
11715 | cat >conftest.$ac_ext <<_ACEOF | |
11716 | /* confdefs.h. */ | |
11717 | _ACEOF | |
11718 | cat confdefs.h >>conftest.$ac_ext | |
11719 | cat >>conftest.$ac_ext <<_ACEOF | |
11720 | /* end confdefs.h. */ | |
11721 | ||
11722 | int | |
11723 | main () | |
11724 | { | |
11725 | ||
11726 | ; | |
11727 | return 0; | |
11728 | } | |
11729 | _ACEOF | |
11730 | rm -f conftest.$ac_objext | |
11731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11732 | (eval $ac_compile) 2>conftest.er1 | |
11733 | ac_status=$? | |
11734 | grep -v '^ *+' conftest.er1 >conftest.err | |
11735 | rm -f conftest.er1 | |
11736 | cat conftest.err >&5 | |
11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11738 | (exit $ac_status); } && | |
6ebeb4c7 | 11739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11741 | (eval $ac_try) 2>&5 | |
11742 | ac_status=$? | |
11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11744 | (exit $ac_status); }; } && | |
11745 | { ac_try='test -s conftest.$ac_objext' | |
11746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11747 | (eval $ac_try) 2>&5 | |
11748 | ac_status=$? | |
11749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11750 | (exit $ac_status); }; }; then | |
11751 | ac_cv_prog_cc_g=yes | |
11752 | else | |
11753 | echo "$as_me: failed program was:" >&5 | |
11754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11755 | ||
11756 | ac_cv_prog_cc_g=no | |
11757 | fi | |
11758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11759 | fi | |
11760 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11761 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11762 | if test "$ac_test_CFLAGS" = set; then | |
11763 | CFLAGS=$ac_save_CFLAGS | |
11764 | elif test $ac_cv_prog_cc_g = yes; then | |
11765 | if test "$GCC" = yes; then | |
11766 | CFLAGS="-g -O2" | |
11767 | else | |
11768 | CFLAGS="-g" | |
11769 | fi | |
11770 | else | |
11771 | if test "$GCC" = yes; then | |
11772 | CFLAGS="-O2" | |
11773 | else | |
11774 | CFLAGS= | |
11775 | fi | |
11776 | fi | |
6dcfc289 DE |
11777 | fi |
11778 | ac_ext=c | |
95986553 DE |
11779 | ac_cpp='$CPP $CPPFLAGS' |
11780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11783 | ||
11784 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11785 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11786 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11788 | else | |
11789 | cat >conftest.$ac_ext <<_ACEOF | |
11790 | /* confdefs.h. */ | |
11791 | _ACEOF | |
11792 | cat confdefs.h >>conftest.$ac_ext | |
11793 | cat >>conftest.$ac_ext <<_ACEOF | |
11794 | /* end confdefs.h. */ | |
11795 | ||
11796 | int | |
11797 | main () | |
11798 | { | |
11799 | #ifndef __MWERKS__ | |
11800 | choke me | |
11801 | #endif | |
11802 | ||
11803 | ; | |
11804 | return 0; | |
11805 | } | |
11806 | _ACEOF | |
11807 | rm -f conftest.$ac_objext | |
11808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11809 | (eval $ac_compile) 2>conftest.er1 | |
11810 | ac_status=$? | |
11811 | grep -v '^ *+' conftest.er1 >conftest.err | |
11812 | rm -f conftest.er1 | |
11813 | cat conftest.err >&5 | |
11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11815 | (exit $ac_status); } && | |
6ebeb4c7 | 11816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11818 | (eval $ac_try) 2>&5 | |
11819 | ac_status=$? | |
11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11821 | (exit $ac_status); }; } && | |
11822 | { ac_try='test -s conftest.$ac_objext' | |
11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11824 | (eval $ac_try) 2>&5 | |
11825 | ac_status=$? | |
11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11827 | (exit $ac_status); }; }; then | |
11828 | bakefile_compiler_mwerks=yes | |
11829 | else | |
11830 | echo "$as_me: failed program was:" >&5 | |
11831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11832 | ||
11833 | bakefile_compiler_mwerks=no | |
11834 | fi | |
11835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11836 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11837 | ||
11838 | fi | |
11839 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11840 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11841 | ||
0e6fa1d9 | 11842 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
11843 | ac_ext=c |
11844 | ac_cpp='$CPP $CPPFLAGS' | |
11845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11848 | ||
11849 | ||
6dcfc289 | 11850 | ac_ext=c |
9273ffba DE |
11851 | ac_cpp='$CPP $CPPFLAGS' |
11852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11855 | ||
11856 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11857 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11858 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11860 | else | |
11861 | cat >conftest.$ac_ext <<_ACEOF | |
11862 | /* confdefs.h. */ | |
11863 | _ACEOF | |
11864 | cat confdefs.h >>conftest.$ac_ext | |
11865 | cat >>conftest.$ac_ext <<_ACEOF | |
11866 | /* end confdefs.h. */ | |
11867 | ||
11868 | int | |
11869 | main () | |
11870 | { | |
11871 | #ifndef __xlC__ | |
11872 | choke me | |
11873 | #endif | |
11874 | ||
11875 | ; | |
11876 | return 0; | |
11877 | } | |
11878 | _ACEOF | |
11879 | rm -f conftest.$ac_objext | |
11880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11881 | (eval $ac_compile) 2>conftest.er1 | |
11882 | ac_status=$? | |
11883 | grep -v '^ *+' conftest.er1 >conftest.err | |
11884 | rm -f conftest.er1 | |
11885 | cat conftest.err >&5 | |
11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11887 | (exit $ac_status); } && | |
6ebeb4c7 | 11888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
11889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11890 | (eval $ac_try) 2>&5 | |
11891 | ac_status=$? | |
11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11893 | (exit $ac_status); }; } && | |
11894 | { ac_try='test -s conftest.$ac_objext' | |
11895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11896 | (eval $ac_try) 2>&5 | |
11897 | ac_status=$? | |
11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11899 | (exit $ac_status); }; }; then | |
11900 | wx_compiler_xlc=yes | |
11901 | else | |
11902 | echo "$as_me: failed program was:" >&5 | |
11903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11904 | ||
11905 | wx_compiler_xlc=no | |
11906 | fi | |
11907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11908 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11909 | ||
11910 | fi | |
11911 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11912 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11913 | ||
0e6fa1d9 | 11914 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
11915 | ac_ext=c |
11916 | ac_cpp='$CPP $CPPFLAGS' | |
11917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11920 | ||
11921 | ||
a848cd7e | 11922 | |
6dcfc289 | 11923 | |
0ad5d837 VZ |
11924 | ac_ext=c |
11925 | ac_cpp='$CPP $CPPFLAGS' | |
11926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11929 | ||
11930 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
11931 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
11932 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
11933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11934 | else | |
11935 | cat >conftest.$ac_ext <<_ACEOF | |
11936 | /* confdefs.h. */ | |
11937 | _ACEOF | |
11938 | cat confdefs.h >>conftest.$ac_ext | |
11939 | cat >>conftest.$ac_ext <<_ACEOF | |
11940 | /* end confdefs.h. */ | |
11941 | ||
11942 | int | |
11943 | main () | |
11944 | { | |
11945 | ||
11946 | #ifndef _SGI_COMPILER_VERSION | |
11947 | choke me | |
11948 | #endif | |
11949 | ||
11950 | ; | |
11951 | return 0; | |
11952 | } | |
11953 | _ACEOF | |
11954 | rm -f conftest.$ac_objext | |
11955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11956 | (eval $ac_compile) 2>conftest.er1 | |
11957 | ac_status=$? | |
11958 | grep -v '^ *+' conftest.er1 >conftest.err | |
11959 | rm -f conftest.er1 | |
11960 | cat conftest.err >&5 | |
11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11962 | (exit $ac_status); } && | |
11963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11965 | (eval $ac_try) 2>&5 | |
11966 | ac_status=$? | |
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11968 | (exit $ac_status); }; } && | |
11969 | { ac_try='test -s conftest.$ac_objext' | |
11970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11971 | (eval $ac_try) 2>&5 | |
11972 | ac_status=$? | |
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11974 | (exit $ac_status); }; }; then | |
11975 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
11976 | else | |
11977 | echo "$as_me: failed program was:" >&5 | |
11978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11979 | ||
11980 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
11981 | ||
11982 | fi | |
11983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11984 | ||
11985 | ||
11986 | fi | |
11987 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
11988 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
11989 | ac_ext=c | |
11990 | ac_cpp='$CPP $CPPFLAGS' | |
11991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11994 | ||
11995 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
11996 | :; SGICC=yes | |
11997 | else | |
11998 | :; | |
11999 | fi | |
12000 | ||
12001 | ||
12002 | ||
12003 | ||
a9e5b1f0 MW |
12004 | ac_ext=c |
12005 | ac_cpp='$CPP $CPPFLAGS' | |
12006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12009 | ||
12010 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12011 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12012 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12014 | else | |
12015 | cat >conftest.$ac_ext <<_ACEOF | |
12016 | /* confdefs.h. */ | |
12017 | _ACEOF | |
12018 | cat confdefs.h >>conftest.$ac_ext | |
12019 | cat >>conftest.$ac_ext <<_ACEOF | |
12020 | /* end confdefs.h. */ | |
12021 | ||
12022 | int | |
12023 | main () | |
12024 | { | |
12025 | ||
12026 | #ifndef __SUNPRO_C | |
12027 | choke me | |
12028 | #endif | |
12029 | ||
12030 | ; | |
12031 | return 0; | |
12032 | } | |
12033 | _ACEOF | |
12034 | rm -f conftest.$ac_objext | |
12035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12036 | (eval $ac_compile) 2>conftest.er1 | |
12037 | ac_status=$? | |
12038 | grep -v '^ *+' conftest.er1 >conftest.err | |
12039 | rm -f conftest.er1 | |
12040 | cat conftest.err >&5 | |
12041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12042 | (exit $ac_status); } && | |
6ebeb4c7 | 12043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
12044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12045 | (eval $ac_try) 2>&5 | |
12046 | ac_status=$? | |
12047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12048 | (exit $ac_status); }; } && | |
12049 | { ac_try='test -s conftest.$ac_objext' | |
12050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12051 | (eval $ac_try) 2>&5 | |
12052 | ac_status=$? | |
12053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12054 | (exit $ac_status); }; }; then | |
12055 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12056 | else | |
12057 | echo "$as_me: failed program was:" >&5 | |
12058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12059 | ||
12060 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12061 | ||
12062 | fi | |
12063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12064 | ||
12065 | ||
12066 | fi | |
12067 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12068 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12069 | ac_ext=c | |
12070 | ac_cpp='$CPP $CPPFLAGS' | |
12071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12074 | ||
12075 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12076 | :; SUNCC=yes | |
12077 | else | |
12078 | :; | |
12079 | fi | |
12080 | ||
12081 | ||
12082 | ||
12083 | ||
a848cd7e SC |
12084 | ac_ext=c |
12085 | ac_cpp='$CPP $CPPFLAGS' | |
12086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12089 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12090 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12091 | # On Suns, sometimes $CPP names a directory. | |
12092 | if test -n "$CPP" && test -d "$CPP"; then | |
12093 | CPP= | |
12094 | fi | |
12095 | if test -z "$CPP"; then | |
12096 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12098 | else | |
12099 | # Double quotes because CPP needs to be expanded | |
12100 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12101 | do | |
12102 | ac_preproc_ok=false | |
12103 | for ac_c_preproc_warn_flag in '' yes | |
12104 | do | |
12105 | # Use a header file that comes with gcc, so configuring glibc | |
12106 | # with a fresh cross-compiler works. | |
12107 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12108 | # <limits.h> exists even on freestanding compilers. | |
12109 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12110 | # not just through cpp. "Syntax error" is here to catch this case. | |
12111 | cat >conftest.$ac_ext <<_ACEOF | |
12112 | /* confdefs.h. */ | |
12113 | _ACEOF | |
12114 | cat confdefs.h >>conftest.$ac_ext | |
12115 | cat >>conftest.$ac_ext <<_ACEOF | |
12116 | /* end confdefs.h. */ | |
12117 | #ifdef __STDC__ | |
12118 | # include <limits.h> | |
12119 | #else | |
12120 | # include <assert.h> | |
12121 | #endif | |
ac1cb8d3 | 12122 | Syntax error |
a848cd7e SC |
12123 | _ACEOF |
12124 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12125 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12126 | ac_status=$? | |
12127 | grep -v '^ *+' conftest.er1 >conftest.err | |
12128 | rm -f conftest.er1 | |
12129 | cat conftest.err >&5 | |
12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12131 | (exit $ac_status); } >/dev/null; then | |
12132 | if test -s conftest.err; then | |
12133 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12134 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12135 | else |
12136 | ac_cpp_err= | |
12137 | fi | |
12138 | else | |
12139 | ac_cpp_err=yes | |
12140 | fi | |
12141 | if test -z "$ac_cpp_err"; then | |
12142 | : | |
12143 | else | |
12144 | echo "$as_me: failed program was:" >&5 | |
12145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12146 | ||
12147 | # Broken: fails on valid input. | |
12148 | continue | |
12149 | fi | |
12150 | rm -f conftest.err conftest.$ac_ext | |
12151 | ||
12152 | # OK, works on sane cases. Now check whether non-existent headers | |
12153 | # can be detected and how. | |
12154 | cat >conftest.$ac_ext <<_ACEOF | |
12155 | /* confdefs.h. */ | |
12156 | _ACEOF | |
12157 | cat confdefs.h >>conftest.$ac_ext | |
12158 | cat >>conftest.$ac_ext <<_ACEOF | |
12159 | /* end confdefs.h. */ | |
12160 | #include <ac_nonexistent.h> | |
12161 | _ACEOF | |
12162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12164 | ac_status=$? | |
12165 | grep -v '^ *+' conftest.er1 >conftest.err | |
12166 | rm -f conftest.er1 | |
12167 | cat conftest.err >&5 | |
12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12169 | (exit $ac_status); } >/dev/null; then | |
12170 | if test -s conftest.err; then | |
12171 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12172 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12173 | else |
12174 | ac_cpp_err= | |
12175 | fi | |
12176 | else | |
12177 | ac_cpp_err=yes | |
12178 | fi | |
12179 | if test -z "$ac_cpp_err"; then | |
12180 | # Broken: success on invalid input. | |
12181 | continue | |
12182 | else | |
12183 | echo "$as_me: failed program was:" >&5 | |
12184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12185 | ||
12186 | # Passes both tests. | |
12187 | ac_preproc_ok=: | |
12188 | break | |
12189 | fi | |
12190 | rm -f conftest.err conftest.$ac_ext | |
12191 | ||
12192 | done | |
12193 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12194 | rm -f conftest.err conftest.$ac_ext | |
12195 | if $ac_preproc_ok; then | |
12196 | break | |
12197 | fi | |
12198 | ||
12199 | done | |
12200 | ac_cv_prog_CPP=$CPP | |
12201 | ||
12202 | fi | |
12203 | CPP=$ac_cv_prog_CPP | |
12204 | else | |
12205 | ac_cv_prog_CPP=$CPP | |
12206 | fi | |
12207 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12208 | echo "${ECHO_T}$CPP" >&6 | |
12209 | ac_preproc_ok=false | |
12210 | for ac_c_preproc_warn_flag in '' yes | |
12211 | do | |
12212 | # Use a header file that comes with gcc, so configuring glibc | |
12213 | # with a fresh cross-compiler works. | |
12214 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12215 | # <limits.h> exists even on freestanding compilers. | |
12216 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12217 | # not just through cpp. "Syntax error" is here to catch this case. | |
12218 | cat >conftest.$ac_ext <<_ACEOF | |
12219 | /* confdefs.h. */ | |
12220 | _ACEOF | |
12221 | cat confdefs.h >>conftest.$ac_ext | |
12222 | cat >>conftest.$ac_ext <<_ACEOF | |
12223 | /* end confdefs.h. */ | |
12224 | #ifdef __STDC__ | |
12225 | # include <limits.h> | |
12226 | #else | |
12227 | # include <assert.h> | |
12228 | #endif | |
ac1cb8d3 | 12229 | Syntax error |
a848cd7e SC |
12230 | _ACEOF |
12231 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12232 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12233 | ac_status=$? | |
12234 | grep -v '^ *+' conftest.er1 >conftest.err | |
12235 | rm -f conftest.er1 | |
12236 | cat conftest.err >&5 | |
12237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12238 | (exit $ac_status); } >/dev/null; then | |
12239 | if test -s conftest.err; then | |
12240 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12241 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12242 | else |
12243 | ac_cpp_err= | |
12244 | fi | |
12245 | else | |
12246 | ac_cpp_err=yes | |
12247 | fi | |
12248 | if test -z "$ac_cpp_err"; then | |
12249 | : | |
12250 | else | |
12251 | echo "$as_me: failed program was:" >&5 | |
12252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12253 | ||
12254 | # Broken: fails on valid input. | |
12255 | continue | |
12256 | fi | |
12257 | rm -f conftest.err conftest.$ac_ext | |
12258 | ||
12259 | # OK, works on sane cases. Now check whether non-existent headers | |
12260 | # can be detected and how. | |
12261 | cat >conftest.$ac_ext <<_ACEOF | |
12262 | /* confdefs.h. */ | |
12263 | _ACEOF | |
12264 | cat confdefs.h >>conftest.$ac_ext | |
12265 | cat >>conftest.$ac_ext <<_ACEOF | |
12266 | /* end confdefs.h. */ | |
12267 | #include <ac_nonexistent.h> | |
12268 | _ACEOF | |
12269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12271 | ac_status=$? | |
12272 | grep -v '^ *+' conftest.er1 >conftest.err | |
12273 | rm -f conftest.er1 | |
12274 | cat conftest.err >&5 | |
12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12276 | (exit $ac_status); } >/dev/null; then | |
12277 | if test -s conftest.err; then | |
12278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12280 | else |
12281 | ac_cpp_err= | |
12282 | fi | |
12283 | else | |
12284 | ac_cpp_err=yes | |
12285 | fi | |
12286 | if test -z "$ac_cpp_err"; then | |
12287 | # Broken: success on invalid input. | |
12288 | continue | |
12289 | else | |
12290 | echo "$as_me: failed program was:" >&5 | |
12291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12292 | ||
12293 | # Passes both tests. | |
12294 | ac_preproc_ok=: | |
12295 | break | |
12296 | fi | |
12297 | rm -f conftest.err conftest.$ac_ext | |
12298 | ||
12299 | done | |
12300 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12301 | rm -f conftest.err conftest.$ac_ext | |
12302 | if $ac_preproc_ok; then | |
12303 | : | |
12304 | else | |
12305 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12306 | See \`config.log' for more details." >&5 | |
12307 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12308 | See \`config.log' for more details." >&2;} | |
12309 | { (exit 1); exit 1; }; } | |
12310 | fi | |
12311 | ||
12312 | ac_ext=c | |
12313 | ac_cpp='$CPP $CPPFLAGS' | |
12314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12317 | ||
12318 | ||
12319 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12320 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12321 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12323 | else | |
12324 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12325 | then ac_cv_prog_egrep='grep -E' | |
12326 | else ac_cv_prog_egrep='egrep' | |
12327 | fi | |
12328 | fi | |
12329 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12330 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12331 | EGREP=$ac_cv_prog_egrep | |
12332 | ||
12333 | ||
12334 | if test $ac_cv_c_compiler_gnu = yes; then | |
12335 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12336 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12337 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12339 | else | |
12340 | ac_pattern="Autoconf.*'x'" | |
12341 | cat >conftest.$ac_ext <<_ACEOF | |
12342 | /* confdefs.h. */ | |
12343 | _ACEOF | |
12344 | cat confdefs.h >>conftest.$ac_ext | |
12345 | cat >>conftest.$ac_ext <<_ACEOF | |
12346 | /* end confdefs.h. */ | |
12347 | #include <sgtty.h> | |
12348 | Autoconf TIOCGETP | |
12349 | _ACEOF | |
12350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12351 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12352 | ac_cv_prog_gcc_traditional=yes | |
12353 | else | |
12354 | ac_cv_prog_gcc_traditional=no | |
12355 | fi | |
12356 | rm -f conftest* | |
12357 | ||
12358 | ||
12359 | if test $ac_cv_prog_gcc_traditional = no; then | |
12360 | cat >conftest.$ac_ext <<_ACEOF | |
12361 | /* confdefs.h. */ | |
12362 | _ACEOF | |
12363 | cat confdefs.h >>conftest.$ac_ext | |
12364 | cat >>conftest.$ac_ext <<_ACEOF | |
12365 | /* end confdefs.h. */ | |
12366 | #include <termio.h> | |
12367 | Autoconf TCGETA | |
12368 | _ACEOF | |
12369 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12370 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12371 | ac_cv_prog_gcc_traditional=yes | |
12372 | fi | |
12373 | rm -f conftest* | |
12374 | ||
12375 | fi | |
12376 | fi | |
12377 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12378 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12379 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12380 | CC="$CC -traditional" | |
12381 | fi | |
12382 | fi | |
12383 | ||
12384 | ||
12385 | ||
12386 | ||
12387 | ac_ext=cc | |
12388 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12389 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12390 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12391 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12392 | ||
12393 | ||
12394 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12395 | |
12396 | ||
12397 | ac_ext=cc | |
a848cd7e SC |
12398 | ac_cpp='$CXXCPP $CPPFLAGS' |
12399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12402 | if test -n "$ac_tool_prefix"; then | |
12403 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12404 | do | |
12405 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12406 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12409 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12411 | else | |
12412 | if test -n "$CXX"; then | |
12413 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12414 | else | |
12415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12416 | for as_dir in $PATH | |
12417 | do | |
12418 | IFS=$as_save_IFS | |
12419 | test -z "$as_dir" && as_dir=. | |
12420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12422 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12424 | break 2 | |
12425 | fi | |
12426 | done | |
12427 | done | |
12428 | ||
12429 | fi | |
12430 | fi | |
12431 | CXX=$ac_cv_prog_CXX | |
12432 | if test -n "$CXX"; then | |
12433 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12434 | echo "${ECHO_T}$CXX" >&6 | |
12435 | else | |
12436 | echo "$as_me:$LINENO: result: no" >&5 | |
12437 | echo "${ECHO_T}no" >&6 | |
12438 | fi | |
12439 | ||
12440 | test -n "$CXX" && break | |
12441 | done | |
12442 | fi | |
12443 | if test -z "$CXX"; then | |
12444 | ac_ct_CXX=$CXX | |
12445 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12446 | do | |
12447 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12448 | set dummy $ac_prog; ac_word=$2 | |
12449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12451 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12453 | else | |
12454 | if test -n "$ac_ct_CXX"; then | |
12455 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12456 | else | |
12457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12458 | for as_dir in $PATH | |
12459 | do | |
12460 | IFS=$as_save_IFS | |
12461 | test -z "$as_dir" && as_dir=. | |
12462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12464 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12466 | break 2 | |
12467 | fi | |
12468 | done | |
12469 | done | |
12470 | ||
12471 | fi | |
12472 | fi | |
12473 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12474 | if test -n "$ac_ct_CXX"; then | |
12475 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12476 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12477 | else | |
12478 | echo "$as_me:$LINENO: result: no" >&5 | |
12479 | echo "${ECHO_T}no" >&6 | |
12480 | fi | |
12481 | ||
12482 | test -n "$ac_ct_CXX" && break | |
12483 | done | |
12484 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12485 | ||
12486 | CXX=$ac_ct_CXX | |
12487 | fi | |
12488 | ||
12489 | ||
12490 | # Provide some information about the compiler. | |
12491 | echo "$as_me:$LINENO:" \ | |
12492 | "checking for C++ compiler version" >&5 | |
12493 | ac_compiler=`set X $ac_compile; echo $2` | |
12494 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12495 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12496 | ac_status=$? | |
12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12498 | (exit $ac_status); } | |
12499 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12500 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12501 | ac_status=$? | |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12503 | (exit $ac_status); } | |
12504 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12505 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12506 | ac_status=$? | |
12507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12508 | (exit $ac_status); } | |
12509 | ||
12510 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12511 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12512 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12514 | else | |
12515 | cat >conftest.$ac_ext <<_ACEOF | |
12516 | /* confdefs.h. */ | |
12517 | _ACEOF | |
12518 | cat confdefs.h >>conftest.$ac_ext | |
12519 | cat >>conftest.$ac_ext <<_ACEOF | |
12520 | /* end confdefs.h. */ | |
12521 | ||
12522 | int | |
12523 | main () | |
12524 | { | |
12525 | #ifndef __GNUC__ | |
12526 | choke me | |
12527 | #endif | |
12528 | ||
12529 | ; | |
12530 | return 0; | |
12531 | } | |
12532 | _ACEOF | |
12533 | rm -f conftest.$ac_objext | |
12534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12535 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12536 | ac_status=$? |
ac1cb8d3 VS |
12537 | grep -v '^ *+' conftest.er1 >conftest.err |
12538 | rm -f conftest.er1 | |
12539 | cat conftest.err >&5 | |
a848cd7e SC |
12540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12541 | (exit $ac_status); } && | |
6ebeb4c7 | 12542 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12544 | (eval $ac_try) 2>&5 | |
12545 | ac_status=$? | |
12546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12547 | (exit $ac_status); }; } && | |
12548 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12550 | (eval $ac_try) 2>&5 | |
12551 | ac_status=$? | |
12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12553 | (exit $ac_status); }; }; then | |
12554 | ac_compiler_gnu=yes | |
12555 | else | |
12556 | echo "$as_me: failed program was:" >&5 | |
12557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12558 | ||
12559 | ac_compiler_gnu=no | |
12560 | fi | |
ac1cb8d3 | 12561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12562 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12563 | ||
12564 | fi | |
12565 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12566 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12567 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12568 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12569 | ac_save_CXXFLAGS=$CXXFLAGS | |
12570 | CXXFLAGS="-g" | |
12571 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12572 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12573 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12575 | else | |
12576 | cat >conftest.$ac_ext <<_ACEOF | |
12577 | /* confdefs.h. */ | |
12578 | _ACEOF | |
12579 | cat confdefs.h >>conftest.$ac_ext | |
12580 | cat >>conftest.$ac_ext <<_ACEOF | |
12581 | /* end confdefs.h. */ | |
12582 | ||
12583 | int | |
12584 | main () | |
12585 | { | |
12586 | ||
12587 | ; | |
12588 | return 0; | |
12589 | } | |
12590 | _ACEOF | |
12591 | rm -f conftest.$ac_objext | |
12592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12593 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12594 | ac_status=$? |
ac1cb8d3 VS |
12595 | grep -v '^ *+' conftest.er1 >conftest.err |
12596 | rm -f conftest.er1 | |
12597 | cat conftest.err >&5 | |
a848cd7e SC |
12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12599 | (exit $ac_status); } && | |
6ebeb4c7 | 12600 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12602 | (eval $ac_try) 2>&5 | |
12603 | ac_status=$? | |
12604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12605 | (exit $ac_status); }; } && | |
12606 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12608 | (eval $ac_try) 2>&5 | |
12609 | ac_status=$? | |
12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12611 | (exit $ac_status); }; }; then | |
12612 | ac_cv_prog_cxx_g=yes | |
12613 | else | |
12614 | echo "$as_me: failed program was:" >&5 | |
12615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12616 | ||
12617 | ac_cv_prog_cxx_g=no | |
12618 | fi | |
ac1cb8d3 | 12619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12620 | fi |
12621 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12622 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12623 | if test "$ac_test_CXXFLAGS" = set; then | |
12624 | CXXFLAGS=$ac_save_CXXFLAGS | |
12625 | elif test $ac_cv_prog_cxx_g = yes; then | |
12626 | if test "$GXX" = yes; then | |
9122d155 | 12627 | CXXFLAGS="-g -O2" |
a848cd7e | 12628 | else |
9122d155 | 12629 | CXXFLAGS="-g" |
a848cd7e SC |
12630 | fi |
12631 | else | |
12632 | if test "$GXX" = yes; then | |
12633 | CXXFLAGS="-O2" | |
12634 | else | |
12635 | CXXFLAGS= | |
12636 | fi | |
12637 | fi | |
12638 | for ac_declaration in \ | |
ac1cb8d3 | 12639 | '' \ |
a848cd7e SC |
12640 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12641 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12642 | 'extern "C" void exit (int) throw ();' \ | |
12643 | 'extern "C" void exit (int);' \ | |
12644 | 'void exit (int);' | |
12645 | do | |
12646 | cat >conftest.$ac_ext <<_ACEOF | |
12647 | /* confdefs.h. */ | |
12648 | _ACEOF | |
12649 | cat confdefs.h >>conftest.$ac_ext | |
12650 | cat >>conftest.$ac_ext <<_ACEOF | |
12651 | /* end confdefs.h. */ | |
de59c161 | 12652 | $ac_declaration |
ac1cb8d3 | 12653 | #include <stdlib.h> |
a848cd7e SC |
12654 | int |
12655 | main () | |
12656 | { | |
12657 | exit (42); | |
12658 | ; | |
12659 | return 0; | |
12660 | } | |
12661 | _ACEOF | |
12662 | rm -f conftest.$ac_objext | |
12663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12664 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12665 | ac_status=$? |
ac1cb8d3 VS |
12666 | grep -v '^ *+' conftest.er1 >conftest.err |
12667 | rm -f conftest.er1 | |
12668 | cat conftest.err >&5 | |
a848cd7e SC |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12670 | (exit $ac_status); } && | |
6ebeb4c7 | 12671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12673 | (eval $ac_try) 2>&5 | |
12674 | ac_status=$? | |
12675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12676 | (exit $ac_status); }; } && | |
12677 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12679 | (eval $ac_try) 2>&5 | |
12680 | ac_status=$? | |
12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12682 | (exit $ac_status); }; }; then | |
12683 | : | |
12684 | else | |
12685 | echo "$as_me: failed program was:" >&5 | |
12686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12687 | ||
12688 | continue | |
12689 | fi | |
ac1cb8d3 | 12690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12691 | cat >conftest.$ac_ext <<_ACEOF |
12692 | /* confdefs.h. */ | |
12693 | _ACEOF | |
12694 | cat confdefs.h >>conftest.$ac_ext | |
12695 | cat >>conftest.$ac_ext <<_ACEOF | |
12696 | /* end confdefs.h. */ | |
12697 | $ac_declaration | |
12698 | int | |
12699 | main () | |
12700 | { | |
12701 | exit (42); | |
12702 | ; | |
12703 | return 0; | |
12704 | } | |
12705 | _ACEOF | |
12706 | rm -f conftest.$ac_objext | |
12707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12709 | ac_status=$? |
ac1cb8d3 VS |
12710 | grep -v '^ *+' conftest.er1 >conftest.err |
12711 | rm -f conftest.er1 | |
12712 | cat conftest.err >&5 | |
a848cd7e SC |
12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12714 | (exit $ac_status); } && | |
6ebeb4c7 | 12715 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12717 | (eval $ac_try) 2>&5 | |
12718 | ac_status=$? | |
12719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12720 | (exit $ac_status); }; } && | |
12721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12723 | (eval $ac_try) 2>&5 | |
12724 | ac_status=$? | |
12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12726 | (exit $ac_status); }; }; then | |
12727 | break | |
12728 | else | |
12729 | echo "$as_me: failed program was:" >&5 | |
12730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12731 | ||
12732 | fi | |
ac1cb8d3 | 12733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12734 | done |
12735 | rm -f conftest* | |
12736 | if test -n "$ac_declaration"; then | |
12737 | echo '#ifdef __cplusplus' >>confdefs.h | |
12738 | echo $ac_declaration >>confdefs.h | |
12739 | echo '#endif' >>confdefs.h | |
12740 | fi | |
12741 | ||
12742 | ac_ext=cc | |
12743 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12744 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12745 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12746 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12747 | ||
6dcfc289 | 12748 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
480ccd21 DE |
12749 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
12750 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12752 | else | |
12753 | cat >conftest.$ac_ext <<_ACEOF | |
12754 | /* confdefs.h. */ | |
12755 | _ACEOF | |
12756 | cat confdefs.h >>conftest.$ac_ext | |
12757 | cat >>conftest.$ac_ext <<_ACEOF | |
12758 | /* end confdefs.h. */ | |
12759 | ||
12760 | int | |
12761 | main () | |
12762 | { | |
12763 | ||
12764 | ; | |
12765 | return 0; | |
12766 | } | |
12767 | _ACEOF | |
12768 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12770 | (eval $ac_compile) 2>&5 | |
12771 | ac_status=$? | |
12772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12773 | (exit $ac_status); }; then | |
12774 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12775 | case $ac_file in | |
12776 | conftest.$ac_ext.o) | |
12777 | wx_cv_cxx_exto="-ext o" | |
12778 | ;; | |
12779 | *) | |
12780 | ;; | |
12781 | esac | |
12782 | done | |
12783 | else | |
12784 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12785 | See \`config.log' for more details." >&5 | |
12786 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12787 | See \`config.log' for more details." >&2;} | |
12788 | { (exit 1); exit 1; }; } | |
12789 | ||
12790 | fi | |
12791 | ||
12792 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12793 | ||
12794 | fi | |
12795 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12796 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12797 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12798 | if test "cxx" = "c"; then | |
12799 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12800 | fi | |
12801 | if test "cxx" = "cxx"; then | |
12802 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12803 | fi | |
12804 | fi | |
12805 | ||
6dcfc289 DE |
12806 | if test "x$wx_cv_cxx_exto" '!=' "x"; then |
12807 | unset ac_cv_prog_cxx_g | |
12808 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
480ccd21 DE |
12809 | ac_save_CXXFLAGS=$CXXFLAGS |
12810 | CXXFLAGS="-g" | |
12811 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12812 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12813 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12815 | else | |
12816 | cat >conftest.$ac_ext <<_ACEOF | |
12817 | /* confdefs.h. */ | |
12818 | _ACEOF | |
12819 | cat confdefs.h >>conftest.$ac_ext | |
12820 | cat >>conftest.$ac_ext <<_ACEOF | |
12821 | /* end confdefs.h. */ | |
12822 | ||
12823 | int | |
12824 | main () | |
12825 | { | |
12826 | ||
12827 | ; | |
12828 | return 0; | |
12829 | } | |
12830 | _ACEOF | |
12831 | rm -f conftest.$ac_objext | |
12832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12833 | (eval $ac_compile) 2>conftest.er1 | |
12834 | ac_status=$? | |
12835 | grep -v '^ *+' conftest.er1 >conftest.err | |
12836 | rm -f conftest.er1 | |
12837 | cat conftest.err >&5 | |
12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12839 | (exit $ac_status); } && | |
6ebeb4c7 | 12840 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12842 | (eval $ac_try) 2>&5 | |
12843 | ac_status=$? | |
12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12845 | (exit $ac_status); }; } && | |
12846 | { ac_try='test -s conftest.$ac_objext' | |
12847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12848 | (eval $ac_try) 2>&5 | |
12849 | ac_status=$? | |
12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12851 | (exit $ac_status); }; }; then | |
12852 | ac_cv_prog_cxx_g=yes | |
12853 | else | |
12854 | echo "$as_me: failed program was:" >&5 | |
12855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12856 | ||
12857 | ac_cv_prog_cxx_g=no | |
12858 | fi | |
12859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12860 | fi | |
12861 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12862 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12863 | if test "$ac_test_CXXFLAGS" = set; then | |
12864 | CXXFLAGS=$ac_save_CXXFLAGS | |
12865 | elif test $ac_cv_prog_cxx_g = yes; then | |
12866 | if test "$GXX" = yes; then | |
9122d155 | 12867 | CXXFLAGS="-g -O2" |
480ccd21 | 12868 | else |
9122d155 | 12869 | CXXFLAGS="-g" |
480ccd21 DE |
12870 | fi |
12871 | else | |
12872 | if test "$GXX" = yes; then | |
12873 | CXXFLAGS="-O2" | |
12874 | else | |
12875 | CXXFLAGS= | |
12876 | fi | |
12877 | fi | |
6dcfc289 DE |
12878 | fi |
12879 | ac_ext=cc | |
95986553 DE |
12880 | ac_cpp='$CXXCPP $CPPFLAGS' |
12881 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12882 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12883 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12884 | ||
12885 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12886 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12887 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12889 | else | |
12890 | cat >conftest.$ac_ext <<_ACEOF | |
12891 | /* confdefs.h. */ | |
12892 | _ACEOF | |
12893 | cat confdefs.h >>conftest.$ac_ext | |
12894 | cat >>conftest.$ac_ext <<_ACEOF | |
12895 | /* end confdefs.h. */ | |
12896 | ||
12897 | int | |
12898 | main () | |
12899 | { | |
12900 | #ifndef __MWERKS__ | |
12901 | choke me | |
12902 | #endif | |
12903 | ||
12904 | ; | |
12905 | return 0; | |
12906 | } | |
12907 | _ACEOF | |
12908 | rm -f conftest.$ac_objext | |
12909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12910 | (eval $ac_compile) 2>conftest.er1 | |
12911 | ac_status=$? | |
12912 | grep -v '^ *+' conftest.er1 >conftest.err | |
12913 | rm -f conftest.er1 | |
12914 | cat conftest.err >&5 | |
12915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12916 | (exit $ac_status); } && | |
6ebeb4c7 | 12917 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12919 | (eval $ac_try) 2>&5 | |
12920 | ac_status=$? | |
12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12922 | (exit $ac_status); }; } && | |
12923 | { ac_try='test -s conftest.$ac_objext' | |
12924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12925 | (eval $ac_try) 2>&5 | |
12926 | ac_status=$? | |
12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12928 | (exit $ac_status); }; }; then | |
12929 | bakefile_compiler_mwerks=yes | |
12930 | else | |
12931 | echo "$as_me: failed program was:" >&5 | |
12932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12933 | ||
12934 | bakefile_compiler_mwerks=no | |
12935 | fi | |
12936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12937 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12938 | ||
12939 | fi | |
12940 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12941 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12942 | ||
0e6fa1d9 | 12943 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
12944 | ac_ext=cc |
12945 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12946 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12947 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12948 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12949 | ||
12950 | ||
6dcfc289 | 12951 | ac_ext=cc |
9273ffba DE |
12952 | ac_cpp='$CXXCPP $CPPFLAGS' |
12953 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12954 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12955 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12956 | ||
12957 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12958 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12959 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12961 | else | |
12962 | cat >conftest.$ac_ext <<_ACEOF | |
12963 | /* confdefs.h. */ | |
12964 | _ACEOF | |
12965 | cat confdefs.h >>conftest.$ac_ext | |
12966 | cat >>conftest.$ac_ext <<_ACEOF | |
12967 | /* end confdefs.h. */ | |
12968 | ||
12969 | int | |
12970 | main () | |
12971 | { | |
12972 | #ifndef __xlC__ | |
12973 | choke me | |
12974 | #endif | |
12975 | ||
12976 | ; | |
12977 | return 0; | |
12978 | } | |
12979 | _ACEOF | |
12980 | rm -f conftest.$ac_objext | |
12981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12982 | (eval $ac_compile) 2>conftest.er1 | |
12983 | ac_status=$? | |
12984 | grep -v '^ *+' conftest.er1 >conftest.err | |
12985 | rm -f conftest.er1 | |
12986 | cat conftest.err >&5 | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); } && | |
6ebeb4c7 | 12989 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12991 | (eval $ac_try) 2>&5 | |
12992 | ac_status=$? | |
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12994 | (exit $ac_status); }; } && | |
12995 | { ac_try='test -s conftest.$ac_objext' | |
12996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12997 | (eval $ac_try) 2>&5 | |
12998 | ac_status=$? | |
12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13000 | (exit $ac_status); }; }; then | |
13001 | wx_compiler_xlc=yes | |
13002 | else | |
13003 | echo "$as_me: failed program was:" >&5 | |
13004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13005 | ||
13006 | wx_compiler_xlc=no | |
13007 | fi | |
13008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13009 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
13010 | ||
13011 | fi | |
13012 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
13013 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
13014 | ||
0e6fa1d9 | 13015 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13016 | ac_ext=cc |
13017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13021 | ||
13022 | ||
95986553 | 13023 | |
6dcfc289 | 13024 | |
0ad5d837 VZ |
13025 | ac_ext=cc |
13026 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13027 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13028 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13029 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13030 | ||
13031 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13032 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13033 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13035 | else | |
13036 | cat >conftest.$ac_ext <<_ACEOF | |
13037 | /* confdefs.h. */ | |
13038 | _ACEOF | |
13039 | cat confdefs.h >>conftest.$ac_ext | |
13040 | cat >>conftest.$ac_ext <<_ACEOF | |
13041 | /* end confdefs.h. */ | |
13042 | ||
13043 | int | |
13044 | main () | |
13045 | { | |
13046 | ||
13047 | #ifndef _SGI_COMPILER_VERSION | |
13048 | choke me | |
13049 | #endif | |
13050 | ||
13051 | ; | |
13052 | return 0; | |
13053 | } | |
13054 | _ACEOF | |
13055 | rm -f conftest.$ac_objext | |
13056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13057 | (eval $ac_compile) 2>conftest.er1 | |
13058 | ac_status=$? | |
13059 | grep -v '^ *+' conftest.er1 >conftest.err | |
13060 | rm -f conftest.er1 | |
13061 | cat conftest.err >&5 | |
13062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13063 | (exit $ac_status); } && | |
13064 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
13065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13066 | (eval $ac_try) 2>&5 | |
13067 | ac_status=$? | |
13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13069 | (exit $ac_status); }; } && | |
13070 | { ac_try='test -s conftest.$ac_objext' | |
13071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13072 | (eval $ac_try) 2>&5 | |
13073 | ac_status=$? | |
13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13075 | (exit $ac_status); }; }; then | |
13076 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13077 | else | |
13078 | echo "$as_me: failed program was:" >&5 | |
13079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13080 | ||
13081 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13082 | ||
13083 | fi | |
13084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13085 | ||
13086 | ||
13087 | fi | |
13088 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13089 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13090 | ac_ext=cc | |
13091 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13092 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13093 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13094 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13095 | ||
13096 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13097 | :; SGICXX=yes | |
13098 | else | |
13099 | :; | |
13100 | fi | |
13101 | ||
13102 | ||
13103 | ||
13104 | ||
a9e5b1f0 MW |
13105 | ac_ext=cc |
13106 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13110 | ||
13111 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
13112 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
13113 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
13114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13115 | else | |
13116 | cat >conftest.$ac_ext <<_ACEOF | |
13117 | /* confdefs.h. */ | |
13118 | _ACEOF | |
13119 | cat confdefs.h >>conftest.$ac_ext | |
13120 | cat >>conftest.$ac_ext <<_ACEOF | |
13121 | /* end confdefs.h. */ | |
13122 | ||
13123 | int | |
13124 | main () | |
13125 | { | |
13126 | ||
13127 | #ifndef __SUNPRO_CC | |
13128 | choke me | |
13129 | #endif | |
13130 | ||
13131 | ; | |
13132 | return 0; | |
13133 | } | |
13134 | _ACEOF | |
13135 | rm -f conftest.$ac_objext | |
13136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13137 | (eval $ac_compile) 2>conftest.er1 | |
13138 | ac_status=$? | |
13139 | grep -v '^ *+' conftest.er1 >conftest.err | |
13140 | rm -f conftest.er1 | |
13141 | cat conftest.err >&5 | |
13142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13143 | (exit $ac_status); } && | |
6ebeb4c7 | 13144 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a9e5b1f0 MW |
13145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13146 | (eval $ac_try) 2>&5 | |
13147 | ac_status=$? | |
13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13149 | (exit $ac_status); }; } && | |
13150 | { ac_try='test -s conftest.$ac_objext' | |
13151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13152 | (eval $ac_try) 2>&5 | |
13153 | ac_status=$? | |
13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13155 | (exit $ac_status); }; }; then | |
13156 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
13157 | else | |
13158 | echo "$as_me: failed program was:" >&5 | |
13159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13160 | ||
13161 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
13162 | ||
13163 | fi | |
13164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13165 | ||
13166 | ||
13167 | fi | |
13168 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
13169 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
13170 | ac_ext=cc | |
13171 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13175 | ||
13176 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
13177 | :; SUNCXX=yes | |
13178 | else | |
13179 | :; | |
13180 | fi | |
13181 | ||
13182 | ||
13183 | ||
13184 | ||
a848cd7e SC |
13185 | ac_ext=c |
13186 | ac_cpp='$CPP $CPPFLAGS' | |
13187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13190 | ||
13191 | ||
a848cd7e SC |
13192 | if test -n "$ac_tool_prefix"; then |
13193 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
13194 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
13195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13197 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
13198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13199 | else | |
13200 | if test -n "$RANLIB"; then | |
13201 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
13202 | else | |
13203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13204 | for as_dir in $PATH | |
13205 | do | |
13206 | IFS=$as_save_IFS | |
13207 | test -z "$as_dir" && as_dir=. | |
13208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13210 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
13211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13212 | break 2 | |
13213 | fi | |
13214 | done | |
13215 | done | |
13216 | ||
13217 | fi | |
13218 | fi | |
13219 | RANLIB=$ac_cv_prog_RANLIB | |
13220 | if test -n "$RANLIB"; then | |
13221 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
13222 | echo "${ECHO_T}$RANLIB" >&6 | |
13223 | else | |
13224 | echo "$as_me:$LINENO: result: no" >&5 | |
13225 | echo "${ECHO_T}no" >&6 | |
13226 | fi | |
13227 | ||
13228 | fi | |
13229 | if test -z "$ac_cv_prog_RANLIB"; then | |
13230 | ac_ct_RANLIB=$RANLIB | |
13231 | # Extract the first word of "ranlib", so it can be a program name with args. | |
13232 | set dummy ranlib; ac_word=$2 | |
13233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13235 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
13236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13237 | else | |
13238 | if test -n "$ac_ct_RANLIB"; then | |
13239 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
13240 | else | |
13241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13242 | for as_dir in $PATH | |
13243 | do | |
13244 | IFS=$as_save_IFS | |
13245 | test -z "$as_dir" && as_dir=. | |
13246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13248 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
13249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13250 | break 2 | |
13251 | fi | |
13252 | done | |
13253 | done | |
13254 | ||
13255 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
13256 | fi | |
13257 | fi | |
13258 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
13259 | if test -n "$ac_ct_RANLIB"; then | |
13260 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
13261 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
13262 | else | |
13263 | echo "$as_me:$LINENO: result: no" >&5 | |
13264 | echo "${ECHO_T}no" >&6 | |
13265 | fi | |
13266 | ||
13267 | RANLIB=$ac_ct_RANLIB | |
13268 | else | |
13269 | RANLIB="$ac_cv_prog_RANLIB" | |
13270 | fi | |
13271 | ||
13272 | ||
8c80d384 DE |
13273 | if test -n "$ac_tool_prefix"; then |
13274 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13275 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
13276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13278 | if test "${ac_cv_prog_AR+set}" = set; then | |
13279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13280 | else | |
13281 | if test -n "$AR"; then | |
13282 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13283 | else | |
13284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13285 | for as_dir in $PATH | |
13286 | do | |
13287 | IFS=$as_save_IFS | |
13288 | test -z "$as_dir" && as_dir=. | |
13289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13290 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13291 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
13292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13293 | break 2 | |
13294 | fi | |
13295 | done | |
13296 | done | |
13297 | ||
13298 | fi | |
13299 | fi | |
13300 | AR=$ac_cv_prog_AR | |
13301 | if test -n "$AR"; then | |
13302 | echo "$as_me:$LINENO: result: $AR" >&5 | |
13303 | echo "${ECHO_T}$AR" >&6 | |
13304 | else | |
13305 | echo "$as_me:$LINENO: result: no" >&5 | |
13306 | echo "${ECHO_T}no" >&6 | |
13307 | fi | |
13308 | ||
8c80d384 DE |
13309 | fi |
13310 | if test -z "$ac_cv_prog_AR"; then | |
13311 | ac_ct_AR=$AR | |
13312 | # Extract the first word of "ar", so it can be a program name with args. | |
13313 | set dummy ar; ac_word=$2 | |
13314 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13316 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
13317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13318 | else | |
13319 | if test -n "$ac_ct_AR"; then | |
13320 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13321 | else | |
13322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13323 | for as_dir in $PATH | |
13324 | do | |
13325 | IFS=$as_save_IFS | |
13326 | test -z "$as_dir" && as_dir=. | |
13327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13328 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13329 | ac_cv_prog_ac_ct_AR="ar" | |
13330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13331 | break 2 | |
13332 | fi | |
13333 | done | |
13334 | done | |
13335 | ||
13336 | fi | |
13337 | fi | |
13338 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13339 | if test -n "$ac_ct_AR"; then | |
13340 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
13341 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
13342 | else | |
13343 | echo "$as_me:$LINENO: result: no" >&5 | |
13344 | echo "${ECHO_T}no" >&6 | |
13345 | fi | |
13346 | ||
13347 | AR=$ac_ct_AR | |
13348 | else | |
13349 | AR="$ac_cv_prog_AR" | |
13350 | fi | |
13351 | ||
a848cd7e | 13352 | if test "x$AR" = "x" ; then |
77ffb593 JS |
13353 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
13354 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
13355 | { (exit 1); exit 1; }; } |
13356 | fi | |
13357 | ||
13358 | # Find a good install program. We prefer a C program (faster), | |
13359 | # so one script is as good as another. But avoid the broken or | |
13360 | # incompatible versions: | |
13361 | # SysV /etc/install, /usr/sbin/install | |
13362 | # SunOS /usr/etc/install | |
13363 | # IRIX /sbin/install | |
13364 | # AIX /bin/install | |
13365 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
13366 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
13367 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
13368 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 13369 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
13370 | # ./install, which can be erroneously created by make from ./install.sh. |
13371 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
13372 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
13373 | if test -z "$INSTALL"; then | |
13374 | if test "${ac_cv_path_install+set}" = set; then | |
13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13376 | else | |
13377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13378 | for as_dir in $PATH | |
13379 | do | |
13380 | IFS=$as_save_IFS | |
13381 | test -z "$as_dir" && as_dir=. | |
13382 | # Account for people who put trailing slashes in PATH elements. | |
13383 | case $as_dir/ in | |
13384 | ./ | .// | /cC/* | \ | |
13385 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13386 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13387 | /usr/ucb/* ) ;; |
13388 | *) | |
13389 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13390 | # Don't use installbsd from OSF since it installs stuff as root | |
13391 | # by default. | |
13392 | for ac_prog in ginstall scoinst install; do | |
13393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13394 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13395 | if test $ac_prog = install && | |
13396 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13397 | # AIX install. It has an incompatible calling convention. | |
13398 | : | |
13399 | elif test $ac_prog = install && | |
13400 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13401 | # program-specific install script used by HP pwplus--don't use. | |
13402 | : | |
13403 | else | |
13404 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13405 | break 3 | |
13406 | fi | |
13407 | fi | |
a848cd7e SC |
13408 | done |
13409 | done | |
13410 | ;; | |
13411 | esac | |
13412 | done | |
13413 | ||
13414 | ||
13415 | fi | |
13416 | if test "${ac_cv_path_install+set}" = set; then | |
13417 | INSTALL=$ac_cv_path_install | |
13418 | else | |
13419 | # As a last resort, use the slow shell script. We don't cache a | |
13420 | # path for INSTALL within a source directory, because that will | |
13421 | # break other packages using the cache if that directory is | |
13422 | # removed, or if the path is relative. | |
13423 | INSTALL=$ac_install_sh | |
13424 | fi | |
13425 | fi | |
13426 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
13427 | echo "${ECHO_T}$INSTALL" >&6 | |
13428 | ||
13429 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
13430 | # It thinks the first close brace ends the variable substitution. | |
13431 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
13432 | ||
13433 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
13434 | ||
13435 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
13436 | ||
13437 | ||
13438 | case ${INSTALL} in | |
13439 | /* ) # Absolute | |
13440 | ;; | |
13441 | ?:* ) # Drive letter, considered as absolute. | |
13442 | ;; | |
13443 | *) | |
13444 | INSTALL=`pwd`/${INSTALL} ;; | |
13445 | esac | |
13446 | ||
a848cd7e SC |
13447 | |
13448 | case "${host}" in | |
13449 | ||
cfda0ea8 | 13450 | *-*-darwin* ) |
a848cd7e SC |
13451 | INSTALL_PROGRAM="cp -fp" |
13452 | INSTALL_DATA="cp -fp" | |
13453 | ;; | |
13454 | *) | |
13455 | ;; | |
13456 | esac | |
13457 | ||
8c80d384 DE |
13458 | if test -n "$ac_tool_prefix"; then |
13459 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
13460 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
13461 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13463 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
13464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13465 | else | |
13466 | if test -n "$STRIP"; then | |
13467 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13468 | else | |
13469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13470 | for as_dir in $PATH | |
13471 | do | |
13472 | IFS=$as_save_IFS | |
13473 | test -z "$as_dir" && as_dir=. | |
13474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13475 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13476 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
13477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13478 | break 2 | |
13479 | fi | |
13480 | done | |
13481 | done | |
13482 | ||
a848cd7e SC |
13483 | fi |
13484 | fi | |
13485 | STRIP=$ac_cv_prog_STRIP | |
13486 | if test -n "$STRIP"; then | |
13487 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
13488 | echo "${ECHO_T}$STRIP" >&6 | |
13489 | else | |
13490 | echo "$as_me:$LINENO: result: no" >&5 | |
13491 | echo "${ECHO_T}no" >&6 | |
13492 | fi | |
13493 | ||
8c80d384 DE |
13494 | fi |
13495 | if test -z "$ac_cv_prog_STRIP"; then | |
13496 | ac_ct_STRIP=$STRIP | |
13497 | # Extract the first word of "strip", so it can be a program name with args. | |
13498 | set dummy strip; ac_word=$2 | |
13499 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13500 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13501 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
13502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13503 | else | |
13504 | if test -n "$ac_ct_STRIP"; then | |
13505 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13506 | else | |
13507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13508 | for as_dir in $PATH | |
13509 | do | |
13510 | IFS=$as_save_IFS | |
13511 | test -z "$as_dir" && as_dir=. | |
13512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13514 | ac_cv_prog_ac_ct_STRIP="strip" | |
13515 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13516 | break 2 | |
13517 | fi | |
13518 | done | |
13519 | done | |
13520 | ||
13521 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
13522 | fi | |
13523 | fi | |
13524 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
13525 | if test -n "$ac_ct_STRIP"; then | |
13526 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
13527 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
13528 | else | |
13529 | echo "$as_me:$LINENO: result: no" >&5 | |
13530 | echo "${ECHO_T}no" >&6 | |
13531 | fi | |
13532 | ||
13533 | STRIP=$ac_ct_STRIP | |
13534 | else | |
13535 | STRIP="$ac_cv_prog_STRIP" | |
13536 | fi | |
13537 | ||
13538 | ||
13539 | if test "$wxUSE_WINE" = "yes"; then | |
13540 | if test -n "$ac_tool_prefix"; then | |
13541 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
13542 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
13543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13545 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
13546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13547 | else | |
13548 | if test -n "$RESCOMP"; then | |
13549 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13550 | else | |
13551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13552 | for as_dir in $PATH | |
13553 | do | |
13554 | IFS=$as_save_IFS | |
13555 | test -z "$as_dir" && as_dir=. | |
13556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13558 | ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc" | |
13559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13560 | break 2 | |
13561 | fi | |
13562 | done | |
13563 | done | |
13564 | ||
13565 | fi | |
13566 | fi | |
13567 | RESCOMP=$ac_cv_prog_RESCOMP | |
13568 | if test -n "$RESCOMP"; then | |
13569 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13570 | echo "${ECHO_T}$RESCOMP" >&6 | |
13571 | else | |
13572 | echo "$as_me:$LINENO: result: no" >&5 | |
13573 | echo "${ECHO_T}no" >&6 | |
13574 | fi | |
13575 | ||
13576 | fi | |
13577 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13578 | ac_ct_RESCOMP=$RESCOMP | |
13579 | # Extract the first word of "wrc", so it can be a program name with args. | |
13580 | set dummy wrc; ac_word=$2 | |
13581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13583 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
13584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13585 | else | |
13586 | if test -n "$ac_ct_RESCOMP"; then | |
13587 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
13588 | else | |
13589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13590 | for as_dir in $PATH | |
13591 | do | |
13592 | IFS=$as_save_IFS | |
13593 | test -z "$as_dir" && as_dir=. | |
13594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13596 | ac_cv_prog_ac_ct_RESCOMP="wrc" | |
13597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13598 | break 2 | |
13599 | fi | |
13600 | done | |
13601 | done | |
13602 | ||
13603 | fi | |
13604 | fi | |
13605 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13606 | if test -n "$ac_ct_RESCOMP"; then | |
13607 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13608 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13609 | else | |
13610 | echo "$as_me:$LINENO: result: no" >&5 | |
13611 | echo "${ECHO_T}no" >&6 | |
13612 | fi | |
13613 | ||
13614 | RESCOMP=$ac_ct_RESCOMP | |
13615 | else | |
13616 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13617 | fi | |
13618 | ||
13619 | else | |
13620 | case "${host}" in | |
13621 | *-*-cygwin* | *-*-mingw32* ) | |
13622 | if test -n "$ac_tool_prefix"; then | |
13623 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
13624 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
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_RESCOMP+set}" = set; then | |
13628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13629 | else | |
13630 | if test -n "$RESCOMP"; then | |
13631 | ac_cv_prog_RESCOMP="$RESCOMP" # 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 | |
13640 | ac_cv_prog_RESCOMP="${ac_tool_prefix}windres" | |
13641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13642 | break 2 | |
13643 | fi | |
13644 | done | |
13645 | done | |
13646 | ||
13647 | fi | |
13648 | fi | |
13649 | RESCOMP=$ac_cv_prog_RESCOMP | |
13650 | if test -n "$RESCOMP"; then | |
13651 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
13652 | echo "${ECHO_T}$RESCOMP" >&6 | |
13653 | else | |
13654 | echo "$as_me:$LINENO: result: no" >&5 | |
13655 | echo "${ECHO_T}no" >&6 | |
13656 | fi | |
13657 | ||
13658 | fi | |
13659 | if test -z "$ac_cv_prog_RESCOMP"; then | |
13660 | ac_ct_RESCOMP=$RESCOMP | |
13661 | # Extract the first word of "windres", so it can be a program name with args. | |
13662 | set dummy windres; 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_RESCOMP+set}" = set; then | |
13666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13667 | else | |
13668 | if test -n "$ac_ct_RESCOMP"; then | |
13669 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # 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_RESCOMP="windres" | |
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 | fi | |
13686 | fi | |
13687 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
13688 | if test -n "$ac_ct_RESCOMP"; then | |
13689 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
13690 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
13691 | else | |
13692 | echo "$as_me:$LINENO: result: no" >&5 | |
13693 | echo "${ECHO_T}no" >&6 | |
13694 | fi | |
13695 | ||
13696 | RESCOMP=$ac_ct_RESCOMP | |
13697 | else | |
13698 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13699 | fi | |
13700 | ||
13701 | if test -n "$ac_tool_prefix"; then | |
13702 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
13703 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
13704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13706 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
13707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13708 | else | |
13709 | if test -n "$DLLTOOL"; then | |
13710 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
13711 | else | |
13712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13713 | for as_dir in $PATH | |
13714 | do | |
13715 | IFS=$as_save_IFS | |
13716 | test -z "$as_dir" && as_dir=. | |
13717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13719 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
13720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13721 | break 2 | |
13722 | fi | |
13723 | done | |
13724 | done | |
13725 | ||
13726 | fi | |
13727 | fi | |
13728 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
13729 | if test -n "$DLLTOOL"; then | |
13730 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
13731 | echo "${ECHO_T}$DLLTOOL" >&6 | |
13732 | else | |
13733 | echo "$as_me:$LINENO: result: no" >&5 | |
13734 | echo "${ECHO_T}no" >&6 | |
13735 | fi | |
13736 | ||
13737 | fi | |
13738 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
13739 | ac_ct_DLLTOOL=$DLLTOOL | |
13740 | # Extract the first word of "dlltool", so it can be a program name with args. | |
13741 | set dummy dlltool; ac_word=$2 | |
13742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13744 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
13745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13746 | else | |
13747 | if test -n "$ac_ct_DLLTOOL"; then | |
13748 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
13749 | else | |
13750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13751 | for as_dir in $PATH | |
13752 | do | |
13753 | IFS=$as_save_IFS | |
13754 | test -z "$as_dir" && as_dir=. | |
13755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13757 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
13758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13759 | break 2 | |
13760 | fi | |
13761 | done | |
13762 | done | |
13763 | ||
13764 | fi | |
13765 | fi | |
13766 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
13767 | if test -n "$ac_ct_DLLTOOL"; then | |
13768 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
13769 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
13770 | else | |
13771 | echo "$as_me:$LINENO: result: no" >&5 | |
13772 | echo "${ECHO_T}no" >&6 | |
13773 | fi | |
13774 | ||
13775 | DLLTOOL=$ac_ct_DLLTOOL | |
13776 | else | |
13777 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
13778 | fi | |
13779 | ||
13780 | ;; | |
13781 | esac | |
13782 | fi | |
a848cd7e SC |
13783 | |
13784 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
13785 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
13786 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
13787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13788 | else | |
13789 | ||
13790 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
13791 | egrep -s GNU > /dev/null); then | |
13792 | wx_cv_prog_makeisgnu="yes" | |
13793 | else | |
13794 | wx_cv_prog_makeisgnu="no" | |
13795 | fi | |
13796 | ||
13797 | fi | |
13798 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
13799 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
13800 | ||
13801 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
13802 | IF_GNU_MAKE="" | |
13803 | else | |
13804 | IF_GNU_MAKE="#" | |
13805 | fi | |
13806 | ||
13807 | ||
13808 | ||
13809 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
13810 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13811 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13812 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13814 | else | |
13815 | ||
13816 | cat - << EOF > confMake | |
13817 | check : file | |
13818 | cp \$? \$@ | |
13819 | cp \$? final_file | |
13820 | EOF | |
13821 | ||
13822 | if test ! -d sub ; then | |
13823 | mkdir sub | |
13824 | fi | |
13825 | echo dummy > sub/file | |
13826 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13827 | RESULT=$? | |
13828 | rm -f sub/file check final_file confMake | |
13829 | rmdir sub | |
13830 | if test "$RESULT" = 0; then | |
13831 | wx_cv_prog_makevpath="yes" | |
13832 | else | |
13833 | wx_cv_prog_makevpath="no" | |
13834 | fi | |
13835 | ||
13836 | fi | |
13837 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
13838 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13839 | ||
13840 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13841 | { { echo "$as_me:$LINENO: error: | |
13842 | You need a make-utility that is able to use the variable | |
13843 | VPATH correctly. | |
13844 | If your version of make does not support VPATH correctly, | |
13845 | please install GNU-make (possibly as gmake), and start | |
13846 | configure with the following command: | |
13847 | export MAKE=gmake; ./configure for sh-type shells | |
13848 | setenv MAKE gmake; ./configure for csh-type shells | |
13849 | Also please do remember to use gmake in this case every time | |
13850 | you are trying to compile. | |
13851 | " >&5 | |
13852 | echo "$as_me: error: | |
13853 | You need a make-utility that is able to use the variable | |
13854 | VPATH correctly. | |
13855 | If your version of make does not support VPATH correctly, | |
13856 | please install GNU-make (possibly as gmake), and start | |
13857 | configure with the following command: | |
13858 | export MAKE=gmake; ./configure for sh-type shells | |
13859 | setenv MAKE gmake; ./configure for csh-type shells | |
13860 | Also please do remember to use gmake in this case every time | |
13861 | you are trying to compile. | |
13862 | " >&2;} | |
13863 | { (exit 1); exit 1; }; } | |
13864 | fi fi | |
13865 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13866 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13867 | LN_S=$as_ln_s | |
13868 | if test "$LN_S" = "ln -s"; then | |
13869 | echo "$as_me:$LINENO: result: yes" >&5 | |
13870 | echo "${ECHO_T}yes" >&6 | |
13871 | else | |
13872 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13873 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13874 | fi | |
13875 | ||
13876 | ||
13877 | ||
2113bc77 | 13878 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
9273ffba DE |
13879 | CXXFLAGS="$CXXFLAGS -qunique" |
13880 | fi | |
13881 | ||
13882 | ||
4d7ec9f1 DE |
13883 | case "${host}" in |
13884 | powerpc-*-darwin* ) | |
13885 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13886 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13887 | cat >conftest.$ac_ext <<_ACEOF | |
13888 | /* confdefs.h. */ | |
13889 | _ACEOF | |
13890 | cat confdefs.h >>conftest.$ac_ext | |
13891 | cat >>conftest.$ac_ext <<_ACEOF | |
13892 | /* end confdefs.h. */ | |
13893 | ||
13894 | int | |
13895 | main () | |
13896 | { | |
13897 | #ifndef __POWERPC__ | |
13898 | choke me for lack of PowerPC | |
13899 | #endif | |
13900 | ||
13901 | ; | |
13902 | return 0; | |
13903 | } | |
13904 | _ACEOF | |
13905 | rm -f conftest.$ac_objext | |
13906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13907 | (eval $ac_compile) 2>conftest.er1 | |
13908 | ac_status=$? | |
13909 | grep -v '^ *+' conftest.er1 >conftest.err | |
13910 | rm -f conftest.er1 | |
13911 | cat conftest.err >&5 | |
13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13913 | (exit $ac_status); } && | |
6ebeb4c7 | 13914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13916 | (eval $ac_try) 2>&5 | |
13917 | ac_status=$? | |
13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13919 | (exit $ac_status); }; } && | |
13920 | { ac_try='test -s conftest.$ac_objext' | |
13921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13922 | (eval $ac_try) 2>&5 | |
13923 | ac_status=$? | |
13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13925 | (exit $ac_status); }; }; then | |
13926 | echo "$as_me:$LINENO: result: yes" >&5 | |
13927 | echo "${ECHO_T}yes" >&6 | |
13928 | else | |
13929 | echo "$as_me: failed program was:" >&5 | |
13930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13931 | ||
13932 | echo "$as_me:$LINENO: result: no" >&5 | |
13933 | echo "${ECHO_T}no" >&6 | |
13934 | cat >>confdefs.h <<\_ACEOF | |
13935 | #define __POWERPC__ 1 | |
13936 | _ACEOF | |
13937 | ||
13938 | ||
13939 | fi | |
13940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
13941 | ;; |
13942 | esac | |
13943 | ||
13944 | case "${host}" in | |
13945 | *-*-darwin* ) | |
4d7ec9f1 DE |
13946 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
13947 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13948 | cat >conftest.$ac_ext <<_ACEOF | |
13949 | /* confdefs.h. */ | |
13950 | _ACEOF | |
13951 | cat confdefs.h >>conftest.$ac_ext | |
13952 | cat >>conftest.$ac_ext <<_ACEOF | |
13953 | /* end confdefs.h. */ | |
13954 | #include <CoreFoundation/CFBase.h> | |
13955 | ||
13956 | int | |
13957 | main () | |
13958 | { | |
13959 | ||
13960 | ; | |
13961 | return 0; | |
13962 | } | |
13963 | _ACEOF | |
13964 | rm -f conftest.$ac_objext | |
13965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13966 | (eval $ac_compile) 2>conftest.er1 | |
13967 | ac_status=$? | |
13968 | grep -v '^ *+' conftest.er1 >conftest.err | |
13969 | rm -f conftest.er1 | |
13970 | cat conftest.err >&5 | |
13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13972 | (exit $ac_status); } && | |
6ebeb4c7 | 13973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13975 | (eval $ac_try) 2>&5 | |
13976 | ac_status=$? | |
13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13978 | (exit $ac_status); }; } && | |
13979 | { ac_try='test -s conftest.$ac_objext' | |
13980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13981 | (eval $ac_try) 2>&5 | |
13982 | ac_status=$? | |
13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13984 | (exit $ac_status); }; }; then | |
13985 | echo "$as_me:$LINENO: result: yes" >&5 | |
13986 | echo "${ECHO_T}yes" >&6 | |
13987 | else | |
13988 | echo "$as_me: failed program was:" >&5 | |
13989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13990 | ||
13991 | echo "$as_me:$LINENO: result: no" >&5 | |
13992 | echo "${ECHO_T}no" >&6 | |
13993 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13994 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13995 | cat >conftest.$ac_ext <<_ACEOF | |
13996 | /* confdefs.h. */ | |
13997 | _ACEOF | |
13998 | cat confdefs.h >>conftest.$ac_ext | |
13999 | cat >>conftest.$ac_ext <<_ACEOF | |
14000 | /* end confdefs.h. */ | |
14001 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14002 | #include <CoreFoundation/CFBase.h> | |
14003 | ||
14004 | int | |
14005 | main () | |
14006 | { | |
14007 | ||
14008 | ; | |
14009 | return 0; | |
14010 | } | |
14011 | _ACEOF | |
14012 | rm -f conftest.$ac_objext | |
14013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14014 | (eval $ac_compile) 2>conftest.er1 | |
14015 | ac_status=$? | |
14016 | grep -v '^ *+' conftest.er1 >conftest.err | |
14017 | rm -f conftest.er1 | |
14018 | cat conftest.err >&5 | |
14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14020 | (exit $ac_status); } && | |
6ebeb4c7 | 14021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14023 | (eval $ac_try) 2>&5 | |
14024 | ac_status=$? | |
14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14026 | (exit $ac_status); }; } && | |
14027 | { ac_try='test -s conftest.$ac_objext' | |
14028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14029 | (eval $ac_try) 2>&5 | |
14030 | ac_status=$? | |
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14032 | (exit $ac_status); }; }; then | |
14033 | echo "$as_me:$LINENO: result: yes" >&5 | |
14034 | echo "${ECHO_T}yes" >&6 | |
14035 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
14036 | else | |
14037 | echo "$as_me: failed program was:" >&5 | |
14038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14039 | ||
14040 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
14041 | See \`config.log' for more details." >&5 | |
14042 | echo "$as_me: error: no. CoreFoundation not available. | |
14043 | See \`config.log' for more details." >&2;} | |
14044 | { (exit 1); exit 1; }; } | |
14045 | ||
14046 | fi | |
14047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14048 | ||
14049 | ||
14050 | fi | |
14051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14052 | ;; | |
14053 | esac | |
14054 | ||
a848cd7e SC |
14055 | case "${host}" in |
14056 | *-pc-os2_emx | *-pc-os2-emx ) | |
14057 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
14058 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
14059 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
14060 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
14061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14062 | else | |
14063 | ac_check_lib_save_LIBS=$LIBS | |
14064 | LIBS="-lcExt $LIBS" | |
14065 | cat >conftest.$ac_ext <<_ACEOF | |
14066 | /* confdefs.h. */ | |
14067 | _ACEOF | |
14068 | cat confdefs.h >>conftest.$ac_ext | |
14069 | cat >>conftest.$ac_ext <<_ACEOF | |
14070 | /* end confdefs.h. */ | |
14071 | ||
14072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14073 | #ifdef __cplusplus | |
14074 | extern "C" | |
14075 | #endif | |
14076 | /* We use char because int might match the return type of a gcc2 | |
14077 | builtin and then its argument prototype would still apply. */ | |
14078 | char drand48 (); | |
14079 | int | |
14080 | main () | |
14081 | { | |
14082 | drand48 (); | |
14083 | ; | |
14084 | return 0; | |
14085 | } | |
14086 | _ACEOF | |
14087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14090 | ac_status=$? |
ac1cb8d3 VS |
14091 | grep -v '^ *+' conftest.er1 >conftest.err |
14092 | rm -f conftest.er1 | |
14093 | cat conftest.err >&5 | |
a848cd7e SC |
14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14095 | (exit $ac_status); } && | |
6ebeb4c7 | 14096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14098 | (eval $ac_try) 2>&5 | |
14099 | ac_status=$? | |
14100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14101 | (exit $ac_status); }; } && | |
14102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14104 | (eval $ac_try) 2>&5 | |
14105 | ac_status=$? | |
14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14107 | (exit $ac_status); }; }; then | |
14108 | ac_cv_lib_cExt_drand48=yes | |
14109 | else | |
14110 | echo "$as_me: failed program was:" >&5 | |
14111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14112 | ||
14113 | ac_cv_lib_cExt_drand48=no | |
14114 | fi | |
ac1cb8d3 VS |
14115 | rm -f conftest.err conftest.$ac_objext \ |
14116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14117 | LIBS=$ac_check_lib_save_LIBS |
14118 | fi | |
14119 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
14120 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
14121 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
14122 | LIBS="$LIBS -lcExt" | |
14123 | fi | |
14124 | ||
14125 | else | |
14126 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
14127 | fi | |
69120ee4 VZ |
14128 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
14129 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
14130 | if test "${wx_cv_gccversion+set}" = set; then |
14131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14132 | else | |
14133 | ||
391a765e VS |
14134 | if test "$cross_compiling" = yes; then |
14135 | wx_cv_gccversion="EMX2" | |
14136 | ||
14137 | else | |
14138 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
14139 | /* confdefs.h. */ |
14140 | _ACEOF | |
14141 | cat confdefs.h >>conftest.$ac_ext | |
14142 | cat >>conftest.$ac_ext <<_ACEOF | |
14143 | /* end confdefs.h. */ | |
14144 | ||
391a765e | 14145 | #include <stdio.h> |
a848cd7e | 14146 | |
391a765e VS |
14147 | int main() |
14148 | { | |
14149 | FILE *f=fopen("conftestval", "w"); | |
14150 | if (!f) exit(1); | |
14151 | fprintf(f, | |
a848cd7e | 14152 | #if (__GNUC__ < 3) |
391a765e VS |
14153 | "EMX2" |
14154 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
14155 | "EMX3" | |
14156 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
14157 | "Innotek5" | |
14158 | #else | |
14159 | "Innotek6" | |
a848cd7e | 14160 | #endif |
391a765e VS |
14161 | ); |
14162 | exit(0); | |
14163 | } | |
a848cd7e | 14164 | |
a848cd7e | 14165 | _ACEOF |
391a765e VS |
14166 | rm -f conftest$ac_exeext |
14167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14168 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
14169 | ac_status=$? |
14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 14171 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
14172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14173 | (eval $ac_try) 2>&5 | |
14174 | ac_status=$? | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); }; }; then | |
391a765e | 14177 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 14178 | else |
391a765e VS |
14179 | echo "$as_me: program exited with status $ac_status" >&5 |
14180 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
14181 | sed 's/^/| /' conftest.$ac_ext >&5 |
14182 | ||
391a765e VS |
14183 | ( exit $ac_status ) |
14184 | wx_cv_gccversion="EMX2" | |
a848cd7e | 14185 | fi |
391a765e | 14186 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14187 | fi |
a848cd7e SC |
14188 | |
14189 | fi | |
14190 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
14191 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 14192 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
14193 | LIBS="$LIBS -lstdcpp" |
14194 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
14195 | else | |
391a765e | 14196 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 14197 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
14198 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
14199 | else | |
14200 | LIBS="$LIBS -lstdc++" | |
14201 | fi | |
14202 | fi | |
94acd38e DE |
14203 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
14204 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
14205 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
14206 | wxUSE_OMF=yes | |
2da0c077 | 14207 | enable_omf=yes |
a848cd7e SC |
14208 | fi |
14209 | ;; | |
14210 | *) | |
14211 | ||
14212 | ||
14213 | ||
14214 | ac_ext=cc | |
14215 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14216 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14217 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14218 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14219 | ||
14220 | ||
95986553 | 14221 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
14222 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
14223 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
14224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14225 | else | |
14226 | ||
14227 | cat >conftest.$ac_ext <<_ACEOF | |
14228 | /* confdefs.h. */ | |
14229 | _ACEOF | |
14230 | cat confdefs.h >>conftest.$ac_ext | |
14231 | cat >>conftest.$ac_ext <<_ACEOF | |
14232 | /* end confdefs.h. */ | |
14233 | ||
14234 | #include <string.h> | |
14235 | ||
14236 | int | |
14237 | main () | |
14238 | { | |
14239 | ||
14240 | strcasecmp("foo", "bar"); | |
14241 | ||
14242 | ; | |
14243 | return 0; | |
14244 | } | |
14245 | _ACEOF | |
14246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14248 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14249 | ac_status=$? |
ac1cb8d3 VS |
14250 | grep -v '^ *+' conftest.er1 >conftest.err |
14251 | rm -f conftest.er1 | |
14252 | cat conftest.err >&5 | |
a848cd7e SC |
14253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14254 | (exit $ac_status); } && | |
6ebeb4c7 | 14255 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14257 | (eval $ac_try) 2>&5 | |
14258 | ac_status=$? | |
14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14260 | (exit $ac_status); }; } && | |
14261 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14263 | (eval $ac_try) 2>&5 | |
14264 | ac_status=$? | |
14265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14266 | (exit $ac_status); }; }; then | |
14267 | ac_cv_string_strcasecmp=yes | |
14268 | else | |
14269 | echo "$as_me: failed program was:" >&5 | |
14270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14271 | ||
14272 | ac_cv_string_strcasecmp=no | |
14273 | ||
14274 | fi | |
ac1cb8d3 VS |
14275 | rm -f conftest.err conftest.$ac_objext \ |
14276 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14277 | |
14278 | fi | |
14279 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
14280 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
14281 | ||
14282 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
14283 | cat >>confdefs.h <<\_ACEOF | |
14284 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
14285 | _ACEOF | |
14286 | ||
14287 | else | |
14288 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
14289 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
14290 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
14291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14292 | else | |
14293 | ||
14294 | cat >conftest.$ac_ext <<_ACEOF | |
14295 | /* confdefs.h. */ | |
14296 | _ACEOF | |
14297 | cat confdefs.h >>conftest.$ac_ext | |
14298 | cat >>conftest.$ac_ext <<_ACEOF | |
14299 | /* end confdefs.h. */ | |
14300 | ||
14301 | #include <strings.h> | |
14302 | ||
14303 | int | |
14304 | main () | |
14305 | { | |
14306 | ||
14307 | strcasecmp("foo", "bar"); | |
14308 | ||
14309 | ; | |
14310 | return 0; | |
14311 | } | |
14312 | _ACEOF | |
14313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14315 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14316 | ac_status=$? |
ac1cb8d3 VS |
14317 | grep -v '^ *+' conftest.er1 >conftest.err |
14318 | rm -f conftest.er1 | |
14319 | cat conftest.err >&5 | |
a848cd7e SC |
14320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14321 | (exit $ac_status); } && | |
6ebeb4c7 | 14322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14324 | (eval $ac_try) 2>&5 | |
14325 | ac_status=$? | |
14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14327 | (exit $ac_status); }; } && | |
14328 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14330 | (eval $ac_try) 2>&5 | |
14331 | ac_status=$? | |
14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14333 | (exit $ac_status); }; }; then | |
14334 | ac_cv_strings_strcasecmp=yes | |
14335 | else | |
14336 | echo "$as_me: failed program was:" >&5 | |
14337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14338 | ||
14339 | ac_cv_strings_strcasecmp=no | |
14340 | ||
14341 | fi | |
ac1cb8d3 VS |
14342 | rm -f conftest.err conftest.$ac_objext \ |
14343 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14344 | |
14345 | fi | |
14346 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
14347 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
14348 | ||
0c3c69fc | 14349 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
14350 | cat >>confdefs.h <<\_ACEOF |
14351 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
14352 | _ACEOF | |
14353 | ||
14354 | else | |
14355 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
14356 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
14357 | { (exit 1); exit 1; }; } | |
14358 | fi | |
14359 | fi | |
14360 | ||
14361 | ac_ext=c | |
14362 | ac_cpp='$CPP $CPPFLAGS' | |
14363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14366 | ||
14367 | ;; | |
14368 | esac | |
14369 | ||
14370 | ||
14371 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
14372 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
14373 | if test "${ac_cv_header_stdc+set}" = set; then | |
14374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14375 | else | |
14376 | cat >conftest.$ac_ext <<_ACEOF | |
14377 | /* confdefs.h. */ | |
14378 | _ACEOF | |
14379 | cat confdefs.h >>conftest.$ac_ext | |
14380 | cat >>conftest.$ac_ext <<_ACEOF | |
14381 | /* end confdefs.h. */ | |
14382 | #include <stdlib.h> | |
14383 | #include <stdarg.h> | |
14384 | #include <string.h> | |
14385 | #include <float.h> | |
14386 | ||
14387 | int | |
14388 | main () | |
14389 | { | |
14390 | ||
14391 | ; | |
14392 | return 0; | |
14393 | } | |
14394 | _ACEOF | |
14395 | rm -f conftest.$ac_objext | |
14396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14398 | ac_status=$? |
ac1cb8d3 VS |
14399 | grep -v '^ *+' conftest.er1 >conftest.err |
14400 | rm -f conftest.er1 | |
14401 | cat conftest.err >&5 | |
a848cd7e SC |
14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14403 | (exit $ac_status); } && | |
6ebeb4c7 | 14404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14406 | (eval $ac_try) 2>&5 | |
14407 | ac_status=$? | |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14409 | (exit $ac_status); }; } && | |
14410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14412 | (eval $ac_try) 2>&5 | |
14413 | ac_status=$? | |
14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14415 | (exit $ac_status); }; }; then | |
14416 | ac_cv_header_stdc=yes | |
14417 | else | |
14418 | echo "$as_me: failed program was:" >&5 | |
14419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14420 | ||
14421 | ac_cv_header_stdc=no | |
14422 | fi | |
ac1cb8d3 | 14423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14424 | |
14425 | if test $ac_cv_header_stdc = yes; then | |
14426 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14427 | cat >conftest.$ac_ext <<_ACEOF | |
14428 | /* confdefs.h. */ | |
14429 | _ACEOF | |
14430 | cat confdefs.h >>conftest.$ac_ext | |
14431 | cat >>conftest.$ac_ext <<_ACEOF | |
14432 | /* end confdefs.h. */ | |
14433 | #include <string.h> | |
14434 | ||
14435 | _ACEOF | |
14436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14437 | $EGREP "memchr" >/dev/null 2>&1; then | |
14438 | : | |
14439 | else | |
14440 | ac_cv_header_stdc=no | |
14441 | fi | |
14442 | rm -f conftest* | |
14443 | ||
14444 | fi | |
14445 | ||
14446 | if test $ac_cv_header_stdc = yes; then | |
14447 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14448 | cat >conftest.$ac_ext <<_ACEOF | |
14449 | /* confdefs.h. */ | |
14450 | _ACEOF | |
14451 | cat confdefs.h >>conftest.$ac_ext | |
14452 | cat >>conftest.$ac_ext <<_ACEOF | |
14453 | /* end confdefs.h. */ | |
14454 | #include <stdlib.h> | |
14455 | ||
14456 | _ACEOF | |
14457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14458 | $EGREP "free" >/dev/null 2>&1; then | |
14459 | : | |
14460 | else | |
14461 | ac_cv_header_stdc=no | |
14462 | fi | |
14463 | rm -f conftest* | |
14464 | ||
14465 | fi | |
14466 | ||
14467 | if test $ac_cv_header_stdc = yes; then | |
14468 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14469 | if test "$cross_compiling" = yes; then | |
14470 | : | |
14471 | else | |
14472 | cat >conftest.$ac_ext <<_ACEOF | |
14473 | /* confdefs.h. */ | |
14474 | _ACEOF | |
14475 | cat confdefs.h >>conftest.$ac_ext | |
14476 | cat >>conftest.$ac_ext <<_ACEOF | |
14477 | /* end confdefs.h. */ | |
14478 | #include <ctype.h> | |
14479 | #if ((' ' & 0x0FF) == 0x020) | |
14480 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14481 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14482 | #else | |
14483 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
14484 | (('a' <= (c) && (c) <= 'i') \ |
14485 | || ('j' <= (c) && (c) <= 'r') \ | |
14486 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
14487 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
14488 | #endif | |
14489 | ||
14490 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14491 | int | |
14492 | main () | |
14493 | { | |
14494 | int i; | |
14495 | for (i = 0; i < 256; i++) | |
14496 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 14497 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
14498 | exit(2); |
14499 | exit (0); | |
14500 | } | |
14501 | _ACEOF | |
14502 | rm -f conftest$ac_exeext | |
14503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14504 | (eval $ac_link) 2>&5 | |
14505 | ac_status=$? | |
14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14507 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14509 | (eval $ac_try) 2>&5 | |
14510 | ac_status=$? | |
14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14512 | (exit $ac_status); }; }; then | |
14513 | : | |
14514 | else | |
14515 | echo "$as_me: program exited with status $ac_status" >&5 | |
14516 | echo "$as_me: failed program was:" >&5 | |
14517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14518 | ||
14519 | ( exit $ac_status ) | |
14520 | ac_cv_header_stdc=no | |
14521 | fi | |
ac1cb8d3 | 14522 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14523 | fi |
14524 | fi | |
14525 | fi | |
14526 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
14527 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
14528 | if test $ac_cv_header_stdc = yes; then | |
14529 | ||
14530 | cat >>confdefs.h <<\_ACEOF | |
14531 | #define STDC_HEADERS 1 | |
14532 | _ACEOF | |
14533 | ||
14534 | fi | |
14535 | ||
14536 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
14537 | ||
14538 | ||
14539 | ||
14540 | ||
14541 | ||
14542 | ||
14543 | ||
14544 | ||
14545 | ||
14546 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 14547 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
14548 | do |
14549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14550 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14554 | else | |
14555 | cat >conftest.$ac_ext <<_ACEOF | |
14556 | /* confdefs.h. */ | |
14557 | _ACEOF | |
14558 | cat confdefs.h >>conftest.$ac_ext | |
14559 | cat >>conftest.$ac_ext <<_ACEOF | |
14560 | /* end confdefs.h. */ | |
14561 | $ac_includes_default | |
14562 | ||
14563 | #include <$ac_header> | |
14564 | _ACEOF | |
14565 | rm -f conftest.$ac_objext | |
14566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14567 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14568 | ac_status=$? |
ac1cb8d3 VS |
14569 | grep -v '^ *+' conftest.er1 >conftest.err |
14570 | rm -f conftest.er1 | |
14571 | cat conftest.err >&5 | |
a848cd7e SC |
14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14573 | (exit $ac_status); } && | |
6ebeb4c7 | 14574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14576 | (eval $ac_try) 2>&5 | |
14577 | ac_status=$? | |
14578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14579 | (exit $ac_status); }; } && | |
14580 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14582 | (eval $ac_try) 2>&5 | |
14583 | ac_status=$? | |
14584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14585 | (exit $ac_status); }; }; then | |
14586 | eval "$as_ac_Header=yes" | |
14587 | else | |
14588 | echo "$as_me: failed program was:" >&5 | |
14589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14590 | ||
14591 | eval "$as_ac_Header=no" | |
14592 | fi | |
ac1cb8d3 | 14593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14594 | fi |
14595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14598 | cat >>confdefs.h <<_ACEOF | |
14599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14600 | _ACEOF | |
14601 | ||
14602 | fi | |
14603 | ||
14604 | done | |
14605 | ||
14606 | ||
14607 | ||
14608 | for ac_header in stdlib.h | |
14609 | do | |
14610 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14611 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14612 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14614 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14616 | fi | |
14617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14618 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14619 | else | |
14620 | # Is the header compilable? | |
14621 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14622 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14623 | cat >conftest.$ac_ext <<_ACEOF | |
14624 | /* confdefs.h. */ | |
14625 | _ACEOF | |
14626 | cat confdefs.h >>conftest.$ac_ext | |
14627 | cat >>conftest.$ac_ext <<_ACEOF | |
14628 | /* end confdefs.h. */ | |
14629 | $ac_includes_default | |
14630 | #include <$ac_header> | |
14631 | _ACEOF | |
14632 | rm -f conftest.$ac_objext | |
14633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14634 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14635 | ac_status=$? |
ac1cb8d3 VS |
14636 | grep -v '^ *+' conftest.er1 >conftest.err |
14637 | rm -f conftest.er1 | |
14638 | cat conftest.err >&5 | |
a848cd7e SC |
14639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14640 | (exit $ac_status); } && | |
6ebeb4c7 | 14641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14643 | (eval $ac_try) 2>&5 | |
14644 | ac_status=$? | |
14645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14646 | (exit $ac_status); }; } && | |
14647 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14649 | (eval $ac_try) 2>&5 | |
14650 | ac_status=$? | |
14651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14652 | (exit $ac_status); }; }; then | |
14653 | ac_header_compiler=yes | |
14654 | else | |
14655 | echo "$as_me: failed program was:" >&5 | |
14656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14657 | ||
14658 | ac_header_compiler=no | |
14659 | fi | |
ac1cb8d3 | 14660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14661 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14662 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14663 | ||
14664 | # Is the header present? | |
14665 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14666 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14667 | cat >conftest.$ac_ext <<_ACEOF | |
14668 | /* confdefs.h. */ | |
14669 | _ACEOF | |
14670 | cat confdefs.h >>conftest.$ac_ext | |
14671 | cat >>conftest.$ac_ext <<_ACEOF | |
14672 | /* end confdefs.h. */ | |
14673 | #include <$ac_header> | |
14674 | _ACEOF | |
14675 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14676 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14677 | ac_status=$? | |
14678 | grep -v '^ *+' conftest.er1 >conftest.err | |
14679 | rm -f conftest.er1 | |
14680 | cat conftest.err >&5 | |
14681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14682 | (exit $ac_status); } >/dev/null; then | |
14683 | if test -s conftest.err; then | |
14684 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14685 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14686 | else |
14687 | ac_cpp_err= | |
14688 | fi | |
14689 | else | |
14690 | ac_cpp_err=yes | |
14691 | fi | |
14692 | if test -z "$ac_cpp_err"; then | |
14693 | ac_header_preproc=yes | |
14694 | else | |
14695 | echo "$as_me: failed program was:" >&5 | |
14696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14697 | ||
14698 | ac_header_preproc=no | |
14699 | fi | |
14700 | rm -f conftest.err conftest.$ac_ext | |
14701 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14702 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14703 | ||
14704 | # So? What about this header? | |
ac1cb8d3 VS |
14705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14706 | yes:no: ) | |
a848cd7e SC |
14707 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14708 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14710 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14711 | ac_header_preproc=yes | |
a848cd7e | 14712 | ;; |
ac1cb8d3 | 14713 | no:yes:* ) |
a848cd7e SC |
14714 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14715 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14716 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14717 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14718 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14719 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14720 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14721 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14722 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14723 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14724 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14725 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14726 | ( |
14727 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14728 | ## ----------------------------------------- ## |
14729 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14730 | ## ----------------------------------------- ## | |
a848cd7e SC |
14731 | _ASBOX |
14732 | ) | | |
14733 | sed "s/^/$as_me: WARNING: /" >&2 | |
14734 | ;; | |
14735 | esac | |
14736 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14740 | else | |
ac1cb8d3 | 14741 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14742 | fi |
14743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14745 | ||
14746 | fi | |
14747 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14748 | cat >>confdefs.h <<_ACEOF | |
14749 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14750 | _ACEOF | |
14751 | ||
14752 | fi | |
14753 | ||
14754 | done | |
14755 | ||
14756 | ||
14757 | for ac_header in malloc.h | |
14758 | do | |
14759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14765 | fi | |
14766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14768 | else | |
14769 | # Is the header compilable? | |
14770 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14771 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14772 | cat >conftest.$ac_ext <<_ACEOF | |
14773 | /* confdefs.h. */ | |
14774 | _ACEOF | |
14775 | cat confdefs.h >>conftest.$ac_ext | |
14776 | cat >>conftest.$ac_ext <<_ACEOF | |
14777 | /* end confdefs.h. */ | |
14778 | $ac_includes_default | |
14779 | #include <$ac_header> | |
14780 | _ACEOF | |
14781 | rm -f conftest.$ac_objext | |
14782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14783 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14784 | ac_status=$? |
ac1cb8d3 VS |
14785 | grep -v '^ *+' conftest.er1 >conftest.err |
14786 | rm -f conftest.er1 | |
14787 | cat conftest.err >&5 | |
a848cd7e SC |
14788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14789 | (exit $ac_status); } && | |
6ebeb4c7 | 14790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14792 | (eval $ac_try) 2>&5 | |
14793 | ac_status=$? | |
14794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14795 | (exit $ac_status); }; } && | |
14796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14798 | (eval $ac_try) 2>&5 | |
14799 | ac_status=$? | |
14800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14801 | (exit $ac_status); }; }; then | |
14802 | ac_header_compiler=yes | |
14803 | else | |
14804 | echo "$as_me: failed program was:" >&5 | |
14805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14806 | ||
14807 | ac_header_compiler=no | |
14808 | fi | |
ac1cb8d3 | 14809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14810 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14811 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14812 | ||
14813 | # Is the header present? | |
14814 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14816 | cat >conftest.$ac_ext <<_ACEOF | |
14817 | /* confdefs.h. */ | |
14818 | _ACEOF | |
14819 | cat confdefs.h >>conftest.$ac_ext | |
14820 | cat >>conftest.$ac_ext <<_ACEOF | |
14821 | /* end confdefs.h. */ | |
14822 | #include <$ac_header> | |
14823 | _ACEOF | |
14824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14826 | ac_status=$? | |
14827 | grep -v '^ *+' conftest.er1 >conftest.err | |
14828 | rm -f conftest.er1 | |
14829 | cat conftest.err >&5 | |
14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14831 | (exit $ac_status); } >/dev/null; then | |
14832 | if test -s conftest.err; then | |
14833 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14835 | else |
14836 | ac_cpp_err= | |
14837 | fi | |
14838 | else | |
14839 | ac_cpp_err=yes | |
14840 | fi | |
14841 | if test -z "$ac_cpp_err"; then | |
14842 | ac_header_preproc=yes | |
14843 | else | |
14844 | echo "$as_me: failed program was:" >&5 | |
14845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14846 | ||
14847 | ac_header_preproc=no | |
14848 | fi | |
14849 | rm -f conftest.err conftest.$ac_ext | |
14850 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14851 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14852 | ||
14853 | # So? What about this header? | |
ac1cb8d3 VS |
14854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14855 | yes:no: ) | |
a848cd7e SC |
14856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14860 | ac_header_preproc=yes | |
a848cd7e | 14861 | ;; |
ac1cb8d3 | 14862 | no:yes:* ) |
a848cd7e SC |
14863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14875 | ( |
14876 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14877 | ## ----------------------------------------- ## |
14878 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14879 | ## ----------------------------------------- ## | |
a848cd7e SC |
14880 | _ASBOX |
14881 | ) | | |
14882 | sed "s/^/$as_me: WARNING: /" >&2 | |
14883 | ;; | |
14884 | esac | |
14885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14889 | else | |
ac1cb8d3 | 14890 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14891 | fi |
14892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14894 | ||
14895 | fi | |
14896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14897 | cat >>confdefs.h <<_ACEOF | |
14898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14899 | _ACEOF | |
14900 | ||
14901 | fi | |
14902 | ||
14903 | done | |
14904 | ||
14905 | ||
14906 | for ac_header in unistd.h | |
14907 | do | |
14908 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14914 | fi | |
14915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14916 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14917 | else | |
14918 | # Is the header compilable? | |
14919 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14920 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14921 | cat >conftest.$ac_ext <<_ACEOF | |
14922 | /* confdefs.h. */ | |
14923 | _ACEOF | |
14924 | cat confdefs.h >>conftest.$ac_ext | |
14925 | cat >>conftest.$ac_ext <<_ACEOF | |
14926 | /* end confdefs.h. */ | |
14927 | $ac_includes_default | |
14928 | #include <$ac_header> | |
14929 | _ACEOF | |
14930 | rm -f conftest.$ac_objext | |
14931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14933 | ac_status=$? |
ac1cb8d3 VS |
14934 | grep -v '^ *+' conftest.er1 >conftest.err |
14935 | rm -f conftest.er1 | |
14936 | cat conftest.err >&5 | |
a848cd7e SC |
14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14938 | (exit $ac_status); } && | |
6ebeb4c7 | 14939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14941 | (eval $ac_try) 2>&5 | |
14942 | ac_status=$? | |
14943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14944 | (exit $ac_status); }; } && | |
14945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14947 | (eval $ac_try) 2>&5 | |
14948 | ac_status=$? | |
14949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14950 | (exit $ac_status); }; }; then | |
14951 | ac_header_compiler=yes | |
14952 | else | |
14953 | echo "$as_me: failed program was:" >&5 | |
14954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14955 | ||
14956 | ac_header_compiler=no | |
14957 | fi | |
ac1cb8d3 | 14958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14959 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14960 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14961 | ||
14962 | # Is the header present? | |
14963 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14964 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14965 | cat >conftest.$ac_ext <<_ACEOF | |
14966 | /* confdefs.h. */ | |
14967 | _ACEOF | |
14968 | cat confdefs.h >>conftest.$ac_ext | |
14969 | cat >>conftest.$ac_ext <<_ACEOF | |
14970 | /* end confdefs.h. */ | |
14971 | #include <$ac_header> | |
14972 | _ACEOF | |
14973 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14974 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14975 | ac_status=$? | |
14976 | grep -v '^ *+' conftest.er1 >conftest.err | |
14977 | rm -f conftest.er1 | |
14978 | cat conftest.err >&5 | |
14979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14980 | (exit $ac_status); } >/dev/null; then | |
14981 | if test -s conftest.err; then | |
14982 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14983 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14984 | else |
14985 | ac_cpp_err= | |
14986 | fi | |
14987 | else | |
14988 | ac_cpp_err=yes | |
14989 | fi | |
14990 | if test -z "$ac_cpp_err"; then | |
14991 | ac_header_preproc=yes | |
14992 | else | |
14993 | echo "$as_me: failed program was:" >&5 | |
14994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14995 | ||
14996 | ac_header_preproc=no | |
14997 | fi | |
14998 | rm -f conftest.err conftest.$ac_ext | |
14999 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15000 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15001 | ||
15002 | # So? What about this header? | |
ac1cb8d3 VS |
15003 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15004 | yes:no: ) | |
a848cd7e SC |
15005 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15006 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15007 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15008 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15009 | ac_header_preproc=yes | |
a848cd7e | 15010 | ;; |
ac1cb8d3 | 15011 | no:yes:* ) |
a848cd7e SC |
15012 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15013 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15014 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15015 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15016 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15017 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15018 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15019 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15021 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15022 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15023 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15024 | ( |
15025 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15026 | ## ----------------------------------------- ## |
15027 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15028 | ## ----------------------------------------- ## | |
a848cd7e SC |
15029 | _ASBOX |
15030 | ) | | |
15031 | sed "s/^/$as_me: WARNING: /" >&2 | |
15032 | ;; | |
15033 | esac | |
15034 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15038 | else | |
ac1cb8d3 | 15039 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15040 | fi |
15041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15042 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15043 | ||
15044 | fi | |
15045 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15046 | cat >>confdefs.h <<_ACEOF | |
15047 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15048 | _ACEOF | |
15049 | ||
15050 | fi | |
15051 | ||
15052 | done | |
15053 | ||
15054 | ||
15055 | for ac_header in wchar.h | |
15056 | do | |
15057 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15059 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15063 | fi | |
15064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15065 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15066 | else | |
15067 | # Is the header compilable? | |
15068 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15069 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15070 | cat >conftest.$ac_ext <<_ACEOF | |
15071 | /* confdefs.h. */ | |
15072 | _ACEOF | |
15073 | cat confdefs.h >>conftest.$ac_ext | |
15074 | cat >>conftest.$ac_ext <<_ACEOF | |
15075 | /* end confdefs.h. */ | |
15076 | $ac_includes_default | |
15077 | #include <$ac_header> | |
15078 | _ACEOF | |
15079 | rm -f conftest.$ac_objext | |
15080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15081 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15082 | ac_status=$? |
ac1cb8d3 VS |
15083 | grep -v '^ *+' conftest.er1 >conftest.err |
15084 | rm -f conftest.er1 | |
15085 | cat conftest.err >&5 | |
a848cd7e SC |
15086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15087 | (exit $ac_status); } && | |
6ebeb4c7 | 15088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15090 | (eval $ac_try) 2>&5 | |
15091 | ac_status=$? | |
15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15093 | (exit $ac_status); }; } && | |
15094 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15096 | (eval $ac_try) 2>&5 | |
15097 | ac_status=$? | |
15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15099 | (exit $ac_status); }; }; then | |
15100 | ac_header_compiler=yes | |
15101 | else | |
15102 | echo "$as_me: failed program was:" >&5 | |
15103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15104 | ||
15105 | ac_header_compiler=no | |
15106 | fi | |
ac1cb8d3 | 15107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15108 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15109 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15110 | ||
15111 | # Is the header present? | |
15112 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15113 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15114 | cat >conftest.$ac_ext <<_ACEOF | |
15115 | /* confdefs.h. */ | |
15116 | _ACEOF | |
15117 | cat confdefs.h >>conftest.$ac_ext | |
15118 | cat >>conftest.$ac_ext <<_ACEOF | |
15119 | /* end confdefs.h. */ | |
15120 | #include <$ac_header> | |
15121 | _ACEOF | |
15122 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15123 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15124 | ac_status=$? | |
15125 | grep -v '^ *+' conftest.er1 >conftest.err | |
15126 | rm -f conftest.er1 | |
15127 | cat conftest.err >&5 | |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 | (exit $ac_status); } >/dev/null; then | |
15130 | if test -s conftest.err; then | |
15131 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15132 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15133 | else |
15134 | ac_cpp_err= | |
15135 | fi | |
15136 | else | |
15137 | ac_cpp_err=yes | |
15138 | fi | |
15139 | if test -z "$ac_cpp_err"; then | |
15140 | ac_header_preproc=yes | |
15141 | else | |
15142 | echo "$as_me: failed program was:" >&5 | |
15143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15144 | ||
15145 | ac_header_preproc=no | |
15146 | fi | |
15147 | rm -f conftest.err conftest.$ac_ext | |
15148 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15149 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15150 | ||
15151 | # So? What about this header? | |
ac1cb8d3 VS |
15152 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15153 | yes:no: ) | |
a848cd7e SC |
15154 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15155 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15156 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15157 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15158 | ac_header_preproc=yes | |
a848cd7e | 15159 | ;; |
ac1cb8d3 | 15160 | no:yes:* ) |
a848cd7e SC |
15161 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15162 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15163 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15164 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15165 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15166 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15167 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15168 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15170 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15171 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15172 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15173 | ( |
15174 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15175 | ## ----------------------------------------- ## |
15176 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15177 | ## ----------------------------------------- ## | |
a848cd7e SC |
15178 | _ASBOX |
15179 | ) | | |
15180 | sed "s/^/$as_me: WARNING: /" >&2 | |
15181 | ;; | |
15182 | esac | |
15183 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15184 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15187 | else | |
ac1cb8d3 | 15188 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15189 | fi |
15190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15191 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15192 | ||
15193 | fi | |
15194 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15195 | cat >>confdefs.h <<_ACEOF | |
15196 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15197 | _ACEOF | |
15198 | ||
15199 | fi | |
15200 | ||
15201 | done | |
15202 | ||
15203 | ||
15204 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
15205 | ||
15206 | for ac_header in wcstr.h | |
15207 | do | |
15208 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15214 | fi | |
15215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15216 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15217 | else | |
15218 | # Is the header compilable? | |
15219 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15220 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15221 | cat >conftest.$ac_ext <<_ACEOF | |
15222 | /* confdefs.h. */ | |
15223 | _ACEOF | |
15224 | cat confdefs.h >>conftest.$ac_ext | |
15225 | cat >>conftest.$ac_ext <<_ACEOF | |
15226 | /* end confdefs.h. */ | |
15227 | $ac_includes_default | |
15228 | #include <$ac_header> | |
15229 | _ACEOF | |
15230 | rm -f conftest.$ac_objext | |
15231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15232 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15233 | ac_status=$? |
ac1cb8d3 VS |
15234 | grep -v '^ *+' conftest.er1 >conftest.err |
15235 | rm -f conftest.er1 | |
15236 | cat conftest.err >&5 | |
a848cd7e SC |
15237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15238 | (exit $ac_status); } && | |
6ebeb4c7 | 15239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15241 | (eval $ac_try) 2>&5 | |
15242 | ac_status=$? | |
15243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15244 | (exit $ac_status); }; } && | |
15245 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15247 | (eval $ac_try) 2>&5 | |
15248 | ac_status=$? | |
15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15250 | (exit $ac_status); }; }; then | |
15251 | ac_header_compiler=yes | |
15252 | else | |
15253 | echo "$as_me: failed program was:" >&5 | |
15254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15255 | ||
15256 | ac_header_compiler=no | |
15257 | fi | |
ac1cb8d3 | 15258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15260 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15261 | ||
15262 | # Is the header present? | |
15263 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15264 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15265 | cat >conftest.$ac_ext <<_ACEOF | |
15266 | /* confdefs.h. */ | |
15267 | _ACEOF | |
15268 | cat confdefs.h >>conftest.$ac_ext | |
15269 | cat >>conftest.$ac_ext <<_ACEOF | |
15270 | /* end confdefs.h. */ | |
15271 | #include <$ac_header> | |
15272 | _ACEOF | |
15273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15275 | ac_status=$? | |
15276 | grep -v '^ *+' conftest.er1 >conftest.err | |
15277 | rm -f conftest.er1 | |
15278 | cat conftest.err >&5 | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); } >/dev/null; then | |
15281 | if test -s conftest.err; then | |
15282 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15284 | else |
15285 | ac_cpp_err= | |
15286 | fi | |
15287 | else | |
15288 | ac_cpp_err=yes | |
15289 | fi | |
15290 | if test -z "$ac_cpp_err"; then | |
15291 | ac_header_preproc=yes | |
15292 | else | |
15293 | echo "$as_me: failed program was:" >&5 | |
15294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15295 | ||
15296 | ac_header_preproc=no | |
15297 | fi | |
15298 | rm -f conftest.err conftest.$ac_ext | |
15299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15300 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15301 | ||
15302 | # So? What about this header? | |
ac1cb8d3 VS |
15303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15304 | yes:no: ) | |
a848cd7e SC |
15305 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15306 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15308 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15309 | ac_header_preproc=yes | |
a848cd7e | 15310 | ;; |
ac1cb8d3 | 15311 | no:yes:* ) |
a848cd7e SC |
15312 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15313 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15314 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15315 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15316 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15317 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15318 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15319 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15322 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15323 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15324 | ( |
15325 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15326 | ## ----------------------------------------- ## |
15327 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15328 | ## ----------------------------------------- ## | |
a848cd7e SC |
15329 | _ASBOX |
15330 | ) | | |
15331 | sed "s/^/$as_me: WARNING: /" >&2 | |
15332 | ;; | |
15333 | esac | |
15334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15338 | else | |
ac1cb8d3 | 15339 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15340 | fi |
15341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15342 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15343 | ||
15344 | fi | |
15345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15346 | cat >>confdefs.h <<_ACEOF | |
15347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15348 | _ACEOF | |
15349 | ||
15350 | fi | |
15351 | ||
15352 | done | |
15353 | ||
15354 | fi | |
15355 | ||
15356 | ||
15357 | for ac_header in fnmatch.h | |
15358 | do | |
15359 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15365 | fi | |
15366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15367 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15368 | else | |
15369 | # Is the header compilable? | |
15370 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15371 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15372 | cat >conftest.$ac_ext <<_ACEOF | |
15373 | /* confdefs.h. */ | |
15374 | _ACEOF | |
15375 | cat confdefs.h >>conftest.$ac_ext | |
15376 | cat >>conftest.$ac_ext <<_ACEOF | |
15377 | /* end confdefs.h. */ | |
15378 | $ac_includes_default | |
15379 | #include <$ac_header> | |
15380 | _ACEOF | |
15381 | rm -f conftest.$ac_objext | |
15382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15384 | ac_status=$? |
ac1cb8d3 VS |
15385 | grep -v '^ *+' conftest.er1 >conftest.err |
15386 | rm -f conftest.er1 | |
15387 | cat conftest.err >&5 | |
a848cd7e SC |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15389 | (exit $ac_status); } && | |
6ebeb4c7 | 15390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15392 | (eval $ac_try) 2>&5 | |
15393 | ac_status=$? | |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15395 | (exit $ac_status); }; } && | |
15396 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15398 | (eval $ac_try) 2>&5 | |
15399 | ac_status=$? | |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | (exit $ac_status); }; }; then | |
15402 | ac_header_compiler=yes | |
15403 | else | |
15404 | echo "$as_me: failed program was:" >&5 | |
15405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15406 | ||
15407 | ac_header_compiler=no | |
15408 | fi | |
ac1cb8d3 | 15409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15410 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15411 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15412 | ||
15413 | # Is the header present? | |
15414 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15415 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15416 | cat >conftest.$ac_ext <<_ACEOF | |
15417 | /* confdefs.h. */ | |
15418 | _ACEOF | |
15419 | cat confdefs.h >>conftest.$ac_ext | |
15420 | cat >>conftest.$ac_ext <<_ACEOF | |
15421 | /* end confdefs.h. */ | |
15422 | #include <$ac_header> | |
15423 | _ACEOF | |
15424 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15425 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15426 | ac_status=$? | |
15427 | grep -v '^ *+' conftest.er1 >conftest.err | |
15428 | rm -f conftest.er1 | |
15429 | cat conftest.err >&5 | |
15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15431 | (exit $ac_status); } >/dev/null; then | |
15432 | if test -s conftest.err; then | |
15433 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15434 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15435 | else |
15436 | ac_cpp_err= | |
15437 | fi | |
15438 | else | |
15439 | ac_cpp_err=yes | |
15440 | fi | |
15441 | if test -z "$ac_cpp_err"; then | |
15442 | ac_header_preproc=yes | |
15443 | else | |
15444 | echo "$as_me: failed program was:" >&5 | |
15445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15446 | ||
15447 | ac_header_preproc=no | |
15448 | fi | |
15449 | rm -f conftest.err conftest.$ac_ext | |
15450 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15451 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15452 | ||
15453 | # So? What about this header? | |
ac1cb8d3 VS |
15454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15455 | yes:no: ) | |
a848cd7e SC |
15456 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15457 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15459 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15460 | ac_header_preproc=yes | |
a848cd7e | 15461 | ;; |
ac1cb8d3 | 15462 | no:yes:* ) |
a848cd7e SC |
15463 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15464 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15465 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15466 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15467 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15468 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15469 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15470 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15473 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15474 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15475 | ( |
15476 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15477 | ## ----------------------------------------- ## |
15478 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15479 | ## ----------------------------------------- ## | |
a848cd7e SC |
15480 | _ASBOX |
15481 | ) | | |
15482 | sed "s/^/$as_me: WARNING: /" >&2 | |
15483 | ;; | |
15484 | esac | |
15485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15489 | else | |
ac1cb8d3 | 15490 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15491 | fi |
15492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15494 | ||
15495 | fi | |
15496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15497 | cat >>confdefs.h <<_ACEOF | |
15498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15499 | _ACEOF | |
15500 | ||
15501 | fi | |
15502 | ||
15503 | done | |
15504 | ||
15505 | ||
a848cd7e SC |
15506 | |
15507 | for ac_header in langinfo.h | |
15508 | do | |
15509 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15515 | fi | |
15516 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15517 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15518 | else | |
15519 | # Is the header compilable? | |
15520 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15521 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15522 | cat >conftest.$ac_ext <<_ACEOF | |
15523 | /* confdefs.h. */ | |
15524 | _ACEOF | |
15525 | cat confdefs.h >>conftest.$ac_ext | |
15526 | cat >>conftest.$ac_ext <<_ACEOF | |
15527 | /* end confdefs.h. */ | |
15528 | $ac_includes_default | |
15529 | #include <$ac_header> | |
15530 | _ACEOF | |
15531 | rm -f conftest.$ac_objext | |
15532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15534 | ac_status=$? |
ac1cb8d3 VS |
15535 | grep -v '^ *+' conftest.er1 >conftest.err |
15536 | rm -f conftest.er1 | |
15537 | cat conftest.err >&5 | |
a848cd7e SC |
15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15539 | (exit $ac_status); } && | |
6ebeb4c7 | 15540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15542 | (eval $ac_try) 2>&5 | |
15543 | ac_status=$? | |
15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15545 | (exit $ac_status); }; } && | |
15546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15548 | (eval $ac_try) 2>&5 | |
15549 | ac_status=$? | |
15550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15551 | (exit $ac_status); }; }; then | |
15552 | ac_header_compiler=yes | |
15553 | else | |
15554 | echo "$as_me: failed program was:" >&5 | |
15555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15556 | ||
15557 | ac_header_compiler=no | |
15558 | fi | |
ac1cb8d3 | 15559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15560 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15561 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15562 | ||
15563 | # Is the header present? | |
15564 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15565 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15566 | cat >conftest.$ac_ext <<_ACEOF | |
15567 | /* confdefs.h. */ | |
15568 | _ACEOF | |
15569 | cat confdefs.h >>conftest.$ac_ext | |
15570 | cat >>conftest.$ac_ext <<_ACEOF | |
15571 | /* end confdefs.h. */ | |
15572 | #include <$ac_header> | |
15573 | _ACEOF | |
15574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15576 | ac_status=$? | |
15577 | grep -v '^ *+' conftest.er1 >conftest.err | |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15581 | (exit $ac_status); } >/dev/null; then | |
15582 | if test -s conftest.err; then | |
15583 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15585 | else |
15586 | ac_cpp_err= | |
15587 | fi | |
15588 | else | |
15589 | ac_cpp_err=yes | |
15590 | fi | |
15591 | if test -z "$ac_cpp_err"; then | |
15592 | ac_header_preproc=yes | |
15593 | else | |
15594 | echo "$as_me: failed program was:" >&5 | |
15595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15596 | ||
15597 | ac_header_preproc=no | |
15598 | fi | |
15599 | rm -f conftest.err conftest.$ac_ext | |
15600 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15601 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15602 | ||
15603 | # So? What about this header? | |
ac1cb8d3 VS |
15604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15605 | yes:no: ) | |
a848cd7e SC |
15606 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15607 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15609 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15610 | ac_header_preproc=yes | |
a848cd7e | 15611 | ;; |
ac1cb8d3 | 15612 | no:yes:* ) |
a848cd7e SC |
15613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15617 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15618 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15619 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15620 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15623 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15624 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15625 | ( |
15626 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15627 | ## ----------------------------------------- ## |
15628 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15629 | ## ----------------------------------------- ## | |
a848cd7e SC |
15630 | _ASBOX |
15631 | ) | | |
15632 | sed "s/^/$as_me: WARNING: /" >&2 | |
15633 | ;; | |
15634 | esac | |
15635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15639 | else | |
ac1cb8d3 | 15640 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15641 | fi |
15642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15644 | ||
15645 | fi | |
15646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15647 | cat >>confdefs.h <<_ACEOF | |
15648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15649 | _ACEOF | |
15650 | ||
15651 | fi | |
15652 | ||
15653 | done | |
15654 | ||
15655 | ||
15656 | case "${host}" in | |
15657 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
15658 | if test $ac_cv_header_langinfo_h = "yes" \ |
15659 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
15660 | -o "$wx_cv_gccversion" = "EMX3" \ | |
15661 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
15662 | LIBS="$LIBS -lintl" |
15663 | fi | |
15664 | ;; | |
15665 | esac | |
15666 | ||
a848cd7e SC |
15667 | |
15668 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15669 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15670 | if test "${ac_cv_c_const+set}" = set; then | |
15671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15672 | else | |
15673 | cat >conftest.$ac_ext <<_ACEOF | |
15674 | /* confdefs.h. */ | |
15675 | _ACEOF | |
15676 | cat confdefs.h >>conftest.$ac_ext | |
15677 | cat >>conftest.$ac_ext <<_ACEOF | |
15678 | /* end confdefs.h. */ | |
15679 | ||
15680 | int | |
15681 | main () | |
15682 | { | |
15683 | /* FIXME: Include the comments suggested by Paul. */ | |
15684 | #ifndef __cplusplus | |
15685 | /* Ultrix mips cc rejects this. */ | |
15686 | typedef int charset[2]; | |
15687 | const charset x; | |
15688 | /* SunOS 4.1.1 cc rejects this. */ | |
15689 | char const *const *ccp; | |
15690 | char **p; | |
15691 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15692 | struct point {int x, y;}; | |
15693 | static struct point const zero = {0,0}; | |
15694 | /* AIX XL C 1.02.0.0 rejects this. | |
15695 | It does not let you subtract one const X* pointer from another in | |
15696 | an arm of an if-expression whose if-part is not a constant | |
15697 | expression */ | |
15698 | const char *g = "string"; | |
15699 | ccp = &g + (g ? g-g : 0); | |
15700 | /* HPUX 7.0 cc rejects these. */ | |
15701 | ++ccp; | |
15702 | p = (char**) ccp; | |
15703 | ccp = (char const *const *) p; | |
15704 | { /* SCO 3.2v4 cc rejects this. */ | |
15705 | char *t; | |
15706 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15707 | ||
15708 | *t++ = 0; | |
15709 | } | |
15710 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15711 | int x[] = {25, 17}; | |
15712 | const int *foo = &x[0]; | |
15713 | ++foo; | |
15714 | } | |
15715 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15716 | typedef const int *iptr; | |
15717 | iptr p = 0; | |
15718 | ++p; | |
15719 | } | |
15720 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15721 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15722 | struct s { int j; const int *ap[3]; }; | |
15723 | struct s *b; b->j = 5; | |
15724 | } | |
15725 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15726 | const int foo = 10; | |
15727 | } | |
15728 | #endif | |
15729 | ||
15730 | ; | |
15731 | return 0; | |
15732 | } | |
15733 | _ACEOF | |
15734 | rm -f conftest.$ac_objext | |
15735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15736 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15737 | ac_status=$? |
ac1cb8d3 VS |
15738 | grep -v '^ *+' conftest.er1 >conftest.err |
15739 | rm -f conftest.er1 | |
15740 | cat conftest.err >&5 | |
a848cd7e SC |
15741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15742 | (exit $ac_status); } && | |
6ebeb4c7 | 15743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15745 | (eval $ac_try) 2>&5 | |
15746 | ac_status=$? | |
15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15748 | (exit $ac_status); }; } && | |
15749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15751 | (eval $ac_try) 2>&5 | |
15752 | ac_status=$? | |
15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15754 | (exit $ac_status); }; }; then | |
15755 | ac_cv_c_const=yes | |
15756 | else | |
15757 | echo "$as_me: failed program was:" >&5 | |
15758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15759 | ||
15760 | ac_cv_c_const=no | |
15761 | fi | |
ac1cb8d3 | 15762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15763 | fi |
15764 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15765 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15766 | if test $ac_cv_c_const = no; then | |
15767 | ||
15768 | cat >>confdefs.h <<\_ACEOF | |
15769 | #define const | |
15770 | _ACEOF | |
15771 | ||
15772 | fi | |
15773 | ||
15774 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15775 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15776 | if test "${ac_cv_c_inline+set}" = set; then | |
15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15778 | else | |
15779 | ac_cv_c_inline=no | |
15780 | for ac_kw in inline __inline__ __inline; do | |
15781 | cat >conftest.$ac_ext <<_ACEOF | |
15782 | /* confdefs.h. */ | |
15783 | _ACEOF | |
15784 | cat confdefs.h >>conftest.$ac_ext | |
15785 | cat >>conftest.$ac_ext <<_ACEOF | |
15786 | /* end confdefs.h. */ | |
15787 | #ifndef __cplusplus | |
15788 | typedef int foo_t; | |
15789 | static $ac_kw foo_t static_foo () {return 0; } | |
15790 | $ac_kw foo_t foo () {return 0; } | |
15791 | #endif | |
15792 | ||
15793 | _ACEOF | |
15794 | rm -f conftest.$ac_objext | |
15795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15796 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15797 | ac_status=$? |
ac1cb8d3 VS |
15798 | grep -v '^ *+' conftest.er1 >conftest.err |
15799 | rm -f conftest.er1 | |
15800 | cat conftest.err >&5 | |
a848cd7e SC |
15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15802 | (exit $ac_status); } && | |
6ebeb4c7 | 15803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15805 | (eval $ac_try) 2>&5 | |
15806 | ac_status=$? | |
15807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15808 | (exit $ac_status); }; } && | |
15809 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15811 | (eval $ac_try) 2>&5 | |
15812 | ac_status=$? | |
15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15814 | (exit $ac_status); }; }; then | |
15815 | ac_cv_c_inline=$ac_kw; break | |
15816 | else | |
15817 | echo "$as_me: failed program was:" >&5 | |
15818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15819 | ||
15820 | fi | |
ac1cb8d3 | 15821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15822 | done |
15823 | ||
15824 | fi | |
15825 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15826 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15827 | |
15828 | ||
a848cd7e SC |
15829 | case $ac_cv_c_inline in |
15830 | inline | yes) ;; | |
ac1cb8d3 VS |
15831 | *) |
15832 | case $ac_cv_c_inline in | |
15833 | no) ac_val=;; | |
15834 | *) ac_val=$ac_cv_c_inline;; | |
15835 | esac | |
15836 | cat >>confdefs.h <<_ACEOF | |
15837 | #ifndef __cplusplus | |
15838 | #define inline $ac_val | |
15839 | #endif | |
de59c161 | 15840 | _ACEOF |
ac1cb8d3 | 15841 | ;; |
a848cd7e SC |
15842 | esac |
15843 | ||
15844 | ||
15845 | echo "$as_me:$LINENO: checking for char" >&5 | |
15846 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15847 | if test "${ac_cv_type_char+set}" = set; then | |
15848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15849 | else | |
15850 | cat >conftest.$ac_ext <<_ACEOF | |
15851 | /* confdefs.h. */ | |
15852 | _ACEOF | |
15853 | cat confdefs.h >>conftest.$ac_ext | |
15854 | cat >>conftest.$ac_ext <<_ACEOF | |
15855 | /* end confdefs.h. */ | |
15856 | $ac_includes_default | |
15857 | int | |
15858 | main () | |
15859 | { | |
15860 | if ((char *) 0) | |
15861 | return 0; | |
15862 | if (sizeof (char)) | |
15863 | return 0; | |
15864 | ; | |
15865 | return 0; | |
15866 | } | |
15867 | _ACEOF | |
15868 | rm -f conftest.$ac_objext | |
15869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15870 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15871 | ac_status=$? |
ac1cb8d3 VS |
15872 | grep -v '^ *+' conftest.er1 >conftest.err |
15873 | rm -f conftest.er1 | |
15874 | cat conftest.err >&5 | |
a848cd7e SC |
15875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15876 | (exit $ac_status); } && | |
6ebeb4c7 | 15877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15879 | (eval $ac_try) 2>&5 | |
15880 | ac_status=$? | |
15881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15882 | (exit $ac_status); }; } && | |
15883 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15885 | (eval $ac_try) 2>&5 | |
15886 | ac_status=$? | |
15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15888 | (exit $ac_status); }; }; then | |
15889 | ac_cv_type_char=yes | |
15890 | else | |
15891 | echo "$as_me: failed program was:" >&5 | |
15892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15893 | ||
15894 | ac_cv_type_char=no | |
15895 | fi | |
ac1cb8d3 | 15896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15897 | fi |
15898 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15899 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15900 | ||
15901 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15902 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15903 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15905 | else | |
15906 | if test "$ac_cv_type_char" = yes; then | |
15907 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15908 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15909 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15910 | # This bug is HP SR number 8606223364. | |
15911 | if test "$cross_compiling" = yes; then | |
15912 | # Depending upon the size, compute the lo and hi bounds. | |
15913 | cat >conftest.$ac_ext <<_ACEOF | |
15914 | /* confdefs.h. */ | |
15915 | _ACEOF | |
15916 | cat confdefs.h >>conftest.$ac_ext | |
15917 | cat >>conftest.$ac_ext <<_ACEOF | |
15918 | /* end confdefs.h. */ | |
15919 | $ac_includes_default | |
15920 | int | |
15921 | main () | |
15922 | { | |
15923 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15924 | test_array [0] = 0 | |
15925 | ||
15926 | ; | |
15927 | return 0; | |
15928 | } | |
15929 | _ACEOF | |
15930 | rm -f conftest.$ac_objext | |
15931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15933 | ac_status=$? |
ac1cb8d3 VS |
15934 | grep -v '^ *+' conftest.er1 >conftest.err |
15935 | rm -f conftest.er1 | |
15936 | cat conftest.err >&5 | |
a848cd7e SC |
15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15938 | (exit $ac_status); } && | |
6ebeb4c7 | 15939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15941 | (eval $ac_try) 2>&5 | |
15942 | ac_status=$? | |
15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15944 | (exit $ac_status); }; } && | |
15945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15947 | (eval $ac_try) 2>&5 | |
15948 | ac_status=$? | |
15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15950 | (exit $ac_status); }; }; then | |
15951 | ac_lo=0 ac_mid=0 | |
15952 | while :; do | |
15953 | cat >conftest.$ac_ext <<_ACEOF | |
15954 | /* confdefs.h. */ | |
15955 | _ACEOF | |
15956 | cat confdefs.h >>conftest.$ac_ext | |
15957 | cat >>conftest.$ac_ext <<_ACEOF | |
15958 | /* end confdefs.h. */ | |
15959 | $ac_includes_default | |
15960 | int | |
15961 | main () | |
15962 | { | |
15963 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15964 | test_array [0] = 0 | |
15965 | ||
15966 | ; | |
15967 | return 0; | |
15968 | } | |
15969 | _ACEOF | |
15970 | rm -f conftest.$ac_objext | |
15971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15973 | ac_status=$? |
ac1cb8d3 VS |
15974 | grep -v '^ *+' conftest.er1 >conftest.err |
15975 | rm -f conftest.er1 | |
15976 | cat conftest.err >&5 | |
a848cd7e SC |
15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15978 | (exit $ac_status); } && | |
6ebeb4c7 | 15979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15981 | (eval $ac_try) 2>&5 | |
15982 | ac_status=$? | |
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15984 | (exit $ac_status); }; } && | |
15985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15987 | (eval $ac_try) 2>&5 | |
15988 | ac_status=$? | |
15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15990 | (exit $ac_status); }; }; then | |
15991 | ac_hi=$ac_mid; break | |
15992 | else | |
15993 | echo "$as_me: failed program was:" >&5 | |
15994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15995 | ||
15996 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15997 | if test $ac_lo -le $ac_mid; then |
15998 | ac_lo= ac_hi= | |
15999 | break | |
16000 | fi | |
16001 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16002 | fi |
ac1cb8d3 | 16003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16004 | done |
16005 | else | |
16006 | echo "$as_me: failed program was:" >&5 | |
16007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16008 | ||
16009 | cat >conftest.$ac_ext <<_ACEOF | |
16010 | /* confdefs.h. */ | |
16011 | _ACEOF | |
16012 | cat confdefs.h >>conftest.$ac_ext | |
16013 | cat >>conftest.$ac_ext <<_ACEOF | |
16014 | /* end confdefs.h. */ | |
16015 | $ac_includes_default | |
16016 | int | |
16017 | main () | |
16018 | { | |
16019 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
16020 | test_array [0] = 0 | |
16021 | ||
16022 | ; | |
16023 | return 0; | |
16024 | } | |
16025 | _ACEOF | |
16026 | rm -f conftest.$ac_objext | |
16027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16028 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16029 | ac_status=$? |
ac1cb8d3 VS |
16030 | grep -v '^ *+' conftest.er1 >conftest.err |
16031 | rm -f conftest.er1 | |
16032 | cat conftest.err >&5 | |
a848cd7e SC |
16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16034 | (exit $ac_status); } && | |
6ebeb4c7 | 16035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16037 | (eval $ac_try) 2>&5 | |
16038 | ac_status=$? | |
16039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16040 | (exit $ac_status); }; } && | |
16041 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16043 | (eval $ac_try) 2>&5 | |
16044 | ac_status=$? | |
16045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16046 | (exit $ac_status); }; }; then | |
16047 | ac_hi=-1 ac_mid=-1 | |
16048 | while :; do | |
16049 | cat >conftest.$ac_ext <<_ACEOF | |
16050 | /* confdefs.h. */ | |
16051 | _ACEOF | |
16052 | cat confdefs.h >>conftest.$ac_ext | |
16053 | cat >>conftest.$ac_ext <<_ACEOF | |
16054 | /* end confdefs.h. */ | |
16055 | $ac_includes_default | |
16056 | int | |
16057 | main () | |
16058 | { | |
16059 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
16060 | test_array [0] = 0 | |
16061 | ||
16062 | ; | |
16063 | return 0; | |
16064 | } | |
16065 | _ACEOF | |
16066 | rm -f conftest.$ac_objext | |
16067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16068 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16069 | ac_status=$? |
ac1cb8d3 VS |
16070 | grep -v '^ *+' conftest.er1 >conftest.err |
16071 | rm -f conftest.er1 | |
16072 | cat conftest.err >&5 | |
a848cd7e SC |
16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16074 | (exit $ac_status); } && | |
6ebeb4c7 | 16075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16077 | (eval $ac_try) 2>&5 | |
16078 | ac_status=$? | |
16079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16080 | (exit $ac_status); }; } && | |
16081 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16083 | (eval $ac_try) 2>&5 | |
16084 | ac_status=$? | |
16085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16086 | (exit $ac_status); }; }; then | |
16087 | ac_lo=$ac_mid; break | |
16088 | else | |
16089 | echo "$as_me: failed program was:" >&5 | |
16090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16091 | ||
16092 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16093 | if test $ac_mid -le $ac_hi; then |
16094 | ac_lo= ac_hi= | |
16095 | break | |
16096 | fi | |
16097 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16098 | fi |
ac1cb8d3 | 16099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16100 | done |
16101 | else | |
16102 | echo "$as_me: failed program was:" >&5 | |
16103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16104 | ||
16105 | ac_lo= ac_hi= | |
16106 | fi | |
ac1cb8d3 | 16107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16108 | fi |
ac1cb8d3 | 16109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16110 | # Binary search between lo and hi bounds. |
16111 | while test "x$ac_lo" != "x$ac_hi"; do | |
16112 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16113 | cat >conftest.$ac_ext <<_ACEOF | |
16114 | /* confdefs.h. */ | |
16115 | _ACEOF | |
16116 | cat confdefs.h >>conftest.$ac_ext | |
16117 | cat >>conftest.$ac_ext <<_ACEOF | |
16118 | /* end confdefs.h. */ | |
16119 | $ac_includes_default | |
16120 | int | |
16121 | main () | |
16122 | { | |
16123 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16124 | test_array [0] = 0 | |
16125 | ||
16126 | ; | |
16127 | return 0; | |
16128 | } | |
16129 | _ACEOF | |
16130 | rm -f conftest.$ac_objext | |
16131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16132 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16133 | ac_status=$? |
ac1cb8d3 VS |
16134 | grep -v '^ *+' conftest.er1 >conftest.err |
16135 | rm -f conftest.er1 | |
16136 | cat conftest.err >&5 | |
a848cd7e SC |
16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16138 | (exit $ac_status); } && | |
6ebeb4c7 | 16139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16141 | (eval $ac_try) 2>&5 | |
16142 | ac_status=$? | |
16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16144 | (exit $ac_status); }; } && | |
16145 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16147 | (eval $ac_try) 2>&5 | |
16148 | ac_status=$? | |
16149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16150 | (exit $ac_status); }; }; then | |
16151 | ac_hi=$ac_mid | |
16152 | else | |
16153 | echo "$as_me: failed program was:" >&5 | |
16154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16155 | ||
16156 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16157 | fi | |
ac1cb8d3 | 16158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16159 | done |
16160 | case $ac_lo in | |
16161 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
16162 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16163 | See \`config.log' for more details." >&5 | |
16164 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16165 | See \`config.log' for more details." >&2;} | |
16166 | { (exit 1); exit 1; }; } ;; | |
16167 | esac | |
16168 | else | |
16169 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16170 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16171 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16172 | { (exit 1); exit 1; }; } |
16173 | else | |
16174 | cat >conftest.$ac_ext <<_ACEOF | |
16175 | /* confdefs.h. */ | |
16176 | _ACEOF | |
16177 | cat confdefs.h >>conftest.$ac_ext | |
16178 | cat >>conftest.$ac_ext <<_ACEOF | |
16179 | /* end confdefs.h. */ | |
16180 | $ac_includes_default | |
16181 | long longval () { return (long) (sizeof (char)); } | |
16182 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16183 | #include <stdio.h> | |
16184 | #include <stdlib.h> | |
16185 | int | |
16186 | main () | |
16187 | { | |
16188 | ||
16189 | FILE *f = fopen ("conftest.val", "w"); | |
16190 | if (! f) | |
16191 | exit (1); | |
16192 | if (((long) (sizeof (char))) < 0) | |
16193 | { | |
16194 | long i = longval (); | |
16195 | if (i != ((long) (sizeof (char)))) | |
16196 | exit (1); | |
16197 | fprintf (f, "%ld\n", i); | |
16198 | } | |
16199 | else | |
16200 | { | |
16201 | unsigned long i = ulongval (); | |
16202 | if (i != ((long) (sizeof (char)))) | |
16203 | exit (1); | |
16204 | fprintf (f, "%lu\n", i); | |
16205 | } | |
16206 | exit (ferror (f) || fclose (f) != 0); | |
16207 | ||
16208 | ; | |
16209 | return 0; | |
16210 | } | |
16211 | _ACEOF | |
16212 | rm -f conftest$ac_exeext | |
16213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16214 | (eval $ac_link) 2>&5 | |
16215 | ac_status=$? | |
16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16219 | (eval $ac_try) 2>&5 | |
16220 | ac_status=$? | |
16221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16222 | (exit $ac_status); }; }; then | |
16223 | ac_cv_sizeof_char=`cat conftest.val` | |
16224 | else | |
16225 | echo "$as_me: program exited with status $ac_status" >&5 | |
16226 | echo "$as_me: failed program was:" >&5 | |
16227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16228 | ||
16229 | ( exit $ac_status ) | |
16230 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16231 | See \`config.log' for more details." >&5 | |
16232 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16233 | See \`config.log' for more details." >&2;} | |
16234 | { (exit 1); exit 1; }; } | |
16235 | fi | |
ac1cb8d3 | 16236 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16237 | fi |
16238 | fi | |
16239 | rm -f conftest.val | |
16240 | else | |
16241 | ac_cv_sizeof_char=0 | |
16242 | fi | |
16243 | fi | |
16244 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
16245 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
16246 | cat >>confdefs.h <<_ACEOF | |
16247 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16248 | _ACEOF | |
16249 | ||
16250 | ||
16251 | echo "$as_me:$LINENO: checking for short" >&5 | |
16252 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16253 | if test "${ac_cv_type_short+set}" = set; then | |
16254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16255 | else | |
16256 | cat >conftest.$ac_ext <<_ACEOF | |
16257 | /* confdefs.h. */ | |
16258 | _ACEOF | |
16259 | cat confdefs.h >>conftest.$ac_ext | |
16260 | cat >>conftest.$ac_ext <<_ACEOF | |
16261 | /* end confdefs.h. */ | |
16262 | $ac_includes_default | |
16263 | int | |
16264 | main () | |
16265 | { | |
16266 | if ((short *) 0) | |
16267 | return 0; | |
16268 | if (sizeof (short)) | |
16269 | return 0; | |
16270 | ; | |
16271 | return 0; | |
16272 | } | |
16273 | _ACEOF | |
16274 | rm -f conftest.$ac_objext | |
16275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16276 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16277 | ac_status=$? |
ac1cb8d3 VS |
16278 | grep -v '^ *+' conftest.er1 >conftest.err |
16279 | rm -f conftest.er1 | |
16280 | cat conftest.err >&5 | |
a848cd7e SC |
16281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16282 | (exit $ac_status); } && | |
6ebeb4c7 | 16283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16285 | (eval $ac_try) 2>&5 | |
16286 | ac_status=$? | |
16287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16288 | (exit $ac_status); }; } && | |
16289 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16291 | (eval $ac_try) 2>&5 | |
16292 | ac_status=$? | |
16293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16294 | (exit $ac_status); }; }; then | |
16295 | ac_cv_type_short=yes | |
16296 | else | |
16297 | echo "$as_me: failed program was:" >&5 | |
16298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16299 | ||
16300 | ac_cv_type_short=no | |
16301 | fi | |
ac1cb8d3 | 16302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16303 | fi |
16304 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16305 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16306 | ||
16307 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16308 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16309 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16311 | else | |
16312 | if test "$ac_cv_type_short" = yes; then | |
16313 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16314 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16315 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16316 | # This bug is HP SR number 8606223364. | |
16317 | if test "$cross_compiling" = yes; then | |
16318 | # Depending upon the size, compute the lo and hi bounds. | |
16319 | cat >conftest.$ac_ext <<_ACEOF | |
16320 | /* confdefs.h. */ | |
16321 | _ACEOF | |
16322 | cat confdefs.h >>conftest.$ac_ext | |
16323 | cat >>conftest.$ac_ext <<_ACEOF | |
16324 | /* end confdefs.h. */ | |
16325 | $ac_includes_default | |
16326 | int | |
16327 | main () | |
16328 | { | |
16329 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16330 | test_array [0] = 0 | |
16331 | ||
16332 | ; | |
16333 | return 0; | |
16334 | } | |
16335 | _ACEOF | |
16336 | rm -f conftest.$ac_objext | |
16337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16338 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16339 | ac_status=$? |
ac1cb8d3 VS |
16340 | grep -v '^ *+' conftest.er1 >conftest.err |
16341 | rm -f conftest.er1 | |
16342 | cat conftest.err >&5 | |
a848cd7e SC |
16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16344 | (exit $ac_status); } && | |
6ebeb4c7 | 16345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16347 | (eval $ac_try) 2>&5 | |
16348 | ac_status=$? | |
16349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16350 | (exit $ac_status); }; } && | |
16351 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16353 | (eval $ac_try) 2>&5 | |
16354 | ac_status=$? | |
16355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16356 | (exit $ac_status); }; }; then | |
16357 | ac_lo=0 ac_mid=0 | |
16358 | while :; do | |
16359 | cat >conftest.$ac_ext <<_ACEOF | |
16360 | /* confdefs.h. */ | |
16361 | _ACEOF | |
16362 | cat confdefs.h >>conftest.$ac_ext | |
16363 | cat >>conftest.$ac_ext <<_ACEOF | |
16364 | /* end confdefs.h. */ | |
16365 | $ac_includes_default | |
16366 | int | |
16367 | main () | |
16368 | { | |
16369 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16370 | test_array [0] = 0 | |
16371 | ||
16372 | ; | |
16373 | return 0; | |
16374 | } | |
16375 | _ACEOF | |
16376 | rm -f conftest.$ac_objext | |
16377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16378 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16379 | ac_status=$? |
ac1cb8d3 VS |
16380 | grep -v '^ *+' conftest.er1 >conftest.err |
16381 | rm -f conftest.er1 | |
16382 | cat conftest.err >&5 | |
a848cd7e SC |
16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16384 | (exit $ac_status); } && | |
6ebeb4c7 | 16385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16387 | (eval $ac_try) 2>&5 | |
16388 | ac_status=$? | |
16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16390 | (exit $ac_status); }; } && | |
16391 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16393 | (eval $ac_try) 2>&5 | |
16394 | ac_status=$? | |
16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16396 | (exit $ac_status); }; }; then | |
16397 | ac_hi=$ac_mid; break | |
16398 | else | |
16399 | echo "$as_me: failed program was:" >&5 | |
16400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16401 | ||
16402 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16403 | if test $ac_lo -le $ac_mid; then |
16404 | ac_lo= ac_hi= | |
16405 | break | |
16406 | fi | |
16407 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16408 | fi |
ac1cb8d3 | 16409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16410 | done |
16411 | else | |
16412 | echo "$as_me: failed program was:" >&5 | |
16413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16414 | ||
16415 | cat >conftest.$ac_ext <<_ACEOF | |
16416 | /* confdefs.h. */ | |
16417 | _ACEOF | |
16418 | cat confdefs.h >>conftest.$ac_ext | |
16419 | cat >>conftest.$ac_ext <<_ACEOF | |
16420 | /* end confdefs.h. */ | |
16421 | $ac_includes_default | |
16422 | int | |
16423 | main () | |
16424 | { | |
16425 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16426 | test_array [0] = 0 | |
16427 | ||
16428 | ; | |
16429 | return 0; | |
16430 | } | |
16431 | _ACEOF | |
16432 | rm -f conftest.$ac_objext | |
16433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16435 | ac_status=$? |
ac1cb8d3 VS |
16436 | grep -v '^ *+' conftest.er1 >conftest.err |
16437 | rm -f conftest.er1 | |
16438 | cat conftest.err >&5 | |
a848cd7e SC |
16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16440 | (exit $ac_status); } && | |
6ebeb4c7 | 16441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16443 | (eval $ac_try) 2>&5 | |
16444 | ac_status=$? | |
16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16446 | (exit $ac_status); }; } && | |
16447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16449 | (eval $ac_try) 2>&5 | |
16450 | ac_status=$? | |
16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16452 | (exit $ac_status); }; }; then | |
16453 | ac_hi=-1 ac_mid=-1 | |
16454 | while :; do | |
16455 | cat >conftest.$ac_ext <<_ACEOF | |
16456 | /* confdefs.h. */ | |
16457 | _ACEOF | |
16458 | cat confdefs.h >>conftest.$ac_ext | |
16459 | cat >>conftest.$ac_ext <<_ACEOF | |
16460 | /* end confdefs.h. */ | |
16461 | $ac_includes_default | |
16462 | int | |
16463 | main () | |
16464 | { | |
16465 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16466 | test_array [0] = 0 | |
16467 | ||
16468 | ; | |
16469 | return 0; | |
16470 | } | |
16471 | _ACEOF | |
16472 | rm -f conftest.$ac_objext | |
16473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16474 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16475 | ac_status=$? |
ac1cb8d3 VS |
16476 | grep -v '^ *+' conftest.er1 >conftest.err |
16477 | rm -f conftest.er1 | |
16478 | cat conftest.err >&5 | |
a848cd7e SC |
16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16480 | (exit $ac_status); } && | |
6ebeb4c7 | 16481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16483 | (eval $ac_try) 2>&5 | |
16484 | ac_status=$? | |
16485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16486 | (exit $ac_status); }; } && | |
16487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16489 | (eval $ac_try) 2>&5 | |
16490 | ac_status=$? | |
16491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16492 | (exit $ac_status); }; }; then | |
16493 | ac_lo=$ac_mid; break | |
16494 | else | |
16495 | echo "$as_me: failed program was:" >&5 | |
16496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16497 | ||
16498 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16499 | if test $ac_mid -le $ac_hi; then |
16500 | ac_lo= ac_hi= | |
16501 | break | |
16502 | fi | |
16503 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16504 | fi |
ac1cb8d3 | 16505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16506 | done |
16507 | else | |
16508 | echo "$as_me: failed program was:" >&5 | |
16509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16510 | ||
16511 | ac_lo= ac_hi= | |
16512 | fi | |
ac1cb8d3 | 16513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16514 | fi |
ac1cb8d3 | 16515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16516 | # Binary search between lo and hi bounds. |
16517 | while test "x$ac_lo" != "x$ac_hi"; do | |
16518 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16519 | cat >conftest.$ac_ext <<_ACEOF | |
16520 | /* confdefs.h. */ | |
16521 | _ACEOF | |
16522 | cat confdefs.h >>conftest.$ac_ext | |
16523 | cat >>conftest.$ac_ext <<_ACEOF | |
16524 | /* end confdefs.h. */ | |
16525 | $ac_includes_default | |
16526 | int | |
16527 | main () | |
16528 | { | |
16529 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16530 | test_array [0] = 0 | |
16531 | ||
16532 | ; | |
16533 | return 0; | |
16534 | } | |
16535 | _ACEOF | |
16536 | rm -f conftest.$ac_objext | |
16537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16538 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16539 | ac_status=$? |
ac1cb8d3 VS |
16540 | grep -v '^ *+' conftest.er1 >conftest.err |
16541 | rm -f conftest.er1 | |
16542 | cat conftest.err >&5 | |
a848cd7e SC |
16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16544 | (exit $ac_status); } && | |
6ebeb4c7 | 16545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16547 | (eval $ac_try) 2>&5 | |
16548 | ac_status=$? | |
16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16550 | (exit $ac_status); }; } && | |
16551 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16553 | (eval $ac_try) 2>&5 | |
16554 | ac_status=$? | |
16555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16556 | (exit $ac_status); }; }; then | |
16557 | ac_hi=$ac_mid | |
16558 | else | |
16559 | echo "$as_me: failed program was:" >&5 | |
16560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16561 | ||
16562 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16563 | fi | |
ac1cb8d3 | 16564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16565 | done |
16566 | case $ac_lo in | |
16567 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16568 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16569 | See \`config.log' for more details." >&5 | |
16570 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16571 | See \`config.log' for more details." >&2;} | |
16572 | { (exit 1); exit 1; }; } ;; | |
16573 | esac | |
16574 | else | |
16575 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16576 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16577 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16578 | { (exit 1); exit 1; }; } |
16579 | else | |
16580 | cat >conftest.$ac_ext <<_ACEOF | |
16581 | /* confdefs.h. */ | |
16582 | _ACEOF | |
16583 | cat confdefs.h >>conftest.$ac_ext | |
16584 | cat >>conftest.$ac_ext <<_ACEOF | |
16585 | /* end confdefs.h. */ | |
16586 | $ac_includes_default | |
16587 | long longval () { return (long) (sizeof (short)); } | |
16588 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16589 | #include <stdio.h> | |
16590 | #include <stdlib.h> | |
16591 | int | |
16592 | main () | |
16593 | { | |
16594 | ||
16595 | FILE *f = fopen ("conftest.val", "w"); | |
16596 | if (! f) | |
16597 | exit (1); | |
16598 | if (((long) (sizeof (short))) < 0) | |
16599 | { | |
16600 | long i = longval (); | |
16601 | if (i != ((long) (sizeof (short)))) | |
16602 | exit (1); | |
16603 | fprintf (f, "%ld\n", i); | |
16604 | } | |
16605 | else | |
16606 | { | |
16607 | unsigned long i = ulongval (); | |
16608 | if (i != ((long) (sizeof (short)))) | |
16609 | exit (1); | |
16610 | fprintf (f, "%lu\n", i); | |
16611 | } | |
16612 | exit (ferror (f) || fclose (f) != 0); | |
16613 | ||
16614 | ; | |
16615 | return 0; | |
16616 | } | |
16617 | _ACEOF | |
16618 | rm -f conftest$ac_exeext | |
16619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16620 | (eval $ac_link) 2>&5 | |
16621 | ac_status=$? | |
16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16625 | (eval $ac_try) 2>&5 | |
16626 | ac_status=$? | |
16627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16628 | (exit $ac_status); }; }; then | |
16629 | ac_cv_sizeof_short=`cat conftest.val` | |
16630 | else | |
16631 | echo "$as_me: program exited with status $ac_status" >&5 | |
16632 | echo "$as_me: failed program was:" >&5 | |
16633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16634 | ||
16635 | ( exit $ac_status ) | |
16636 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16637 | See \`config.log' for more details." >&5 | |
16638 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16639 | See \`config.log' for more details." >&2;} | |
16640 | { (exit 1); exit 1; }; } | |
16641 | fi | |
ac1cb8d3 | 16642 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16643 | fi |
16644 | fi | |
16645 | rm -f conftest.val | |
16646 | else | |
16647 | ac_cv_sizeof_short=0 | |
16648 | fi | |
16649 | fi | |
16650 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16651 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16652 | cat >>confdefs.h <<_ACEOF | |
16653 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16654 | _ACEOF | |
16655 | ||
16656 | ||
16657 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16658 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16659 | if test "${ac_cv_type_void_p+set}" = set; then | |
16660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16661 | else | |
16662 | cat >conftest.$ac_ext <<_ACEOF | |
16663 | /* confdefs.h. */ | |
16664 | _ACEOF | |
16665 | cat confdefs.h >>conftest.$ac_ext | |
16666 | cat >>conftest.$ac_ext <<_ACEOF | |
16667 | /* end confdefs.h. */ | |
16668 | $ac_includes_default | |
16669 | int | |
16670 | main () | |
16671 | { | |
16672 | if ((void * *) 0) | |
16673 | return 0; | |
16674 | if (sizeof (void *)) | |
16675 | return 0; | |
16676 | ; | |
16677 | return 0; | |
16678 | } | |
16679 | _ACEOF | |
16680 | rm -f conftest.$ac_objext | |
16681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16682 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16683 | ac_status=$? |
ac1cb8d3 VS |
16684 | grep -v '^ *+' conftest.er1 >conftest.err |
16685 | rm -f conftest.er1 | |
16686 | cat conftest.err >&5 | |
a848cd7e SC |
16687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16688 | (exit $ac_status); } && | |
6ebeb4c7 | 16689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16691 | (eval $ac_try) 2>&5 | |
16692 | ac_status=$? | |
16693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16694 | (exit $ac_status); }; } && | |
16695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16697 | (eval $ac_try) 2>&5 | |
16698 | ac_status=$? | |
16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16700 | (exit $ac_status); }; }; then | |
16701 | ac_cv_type_void_p=yes | |
16702 | else | |
16703 | echo "$as_me: failed program was:" >&5 | |
16704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16705 | ||
16706 | ac_cv_type_void_p=no | |
16707 | fi | |
ac1cb8d3 | 16708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16709 | fi |
16710 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16711 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16712 | ||
16713 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16714 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16715 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16717 | else | |
16718 | if test "$ac_cv_type_void_p" = yes; then | |
16719 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16720 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16721 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16722 | # This bug is HP SR number 8606223364. | |
16723 | if test "$cross_compiling" = yes; then | |
16724 | # Depending upon the size, compute the lo and hi bounds. | |
16725 | cat >conftest.$ac_ext <<_ACEOF | |
16726 | /* confdefs.h. */ | |
16727 | _ACEOF | |
16728 | cat confdefs.h >>conftest.$ac_ext | |
16729 | cat >>conftest.$ac_ext <<_ACEOF | |
16730 | /* end confdefs.h. */ | |
16731 | $ac_includes_default | |
16732 | int | |
16733 | main () | |
16734 | { | |
16735 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16736 | test_array [0] = 0 | |
16737 | ||
16738 | ; | |
16739 | return 0; | |
16740 | } | |
16741 | _ACEOF | |
16742 | rm -f conftest.$ac_objext | |
16743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16744 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16745 | ac_status=$? |
ac1cb8d3 VS |
16746 | grep -v '^ *+' conftest.er1 >conftest.err |
16747 | rm -f conftest.er1 | |
16748 | cat conftest.err >&5 | |
a848cd7e SC |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16750 | (exit $ac_status); } && | |
6ebeb4c7 | 16751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16753 | (eval $ac_try) 2>&5 | |
16754 | ac_status=$? | |
16755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16756 | (exit $ac_status); }; } && | |
16757 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16759 | (eval $ac_try) 2>&5 | |
16760 | ac_status=$? | |
16761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16762 | (exit $ac_status); }; }; then | |
16763 | ac_lo=0 ac_mid=0 | |
16764 | while :; do | |
16765 | cat >conftest.$ac_ext <<_ACEOF | |
16766 | /* confdefs.h. */ | |
16767 | _ACEOF | |
16768 | cat confdefs.h >>conftest.$ac_ext | |
16769 | cat >>conftest.$ac_ext <<_ACEOF | |
16770 | /* end confdefs.h. */ | |
16771 | $ac_includes_default | |
16772 | int | |
16773 | main () | |
16774 | { | |
16775 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16776 | test_array [0] = 0 | |
16777 | ||
16778 | ; | |
16779 | return 0; | |
16780 | } | |
16781 | _ACEOF | |
16782 | rm -f conftest.$ac_objext | |
16783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16785 | ac_status=$? |
ac1cb8d3 VS |
16786 | grep -v '^ *+' conftest.er1 >conftest.err |
16787 | rm -f conftest.er1 | |
16788 | cat conftest.err >&5 | |
a848cd7e SC |
16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16790 | (exit $ac_status); } && | |
6ebeb4c7 | 16791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16793 | (eval $ac_try) 2>&5 | |
16794 | ac_status=$? | |
16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16796 | (exit $ac_status); }; } && | |
16797 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16799 | (eval $ac_try) 2>&5 | |
16800 | ac_status=$? | |
16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16802 | (exit $ac_status); }; }; then | |
16803 | ac_hi=$ac_mid; break | |
16804 | else | |
16805 | echo "$as_me: failed program was:" >&5 | |
16806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16807 | ||
16808 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16809 | if test $ac_lo -le $ac_mid; then |
16810 | ac_lo= ac_hi= | |
16811 | break | |
16812 | fi | |
16813 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16814 | fi |
ac1cb8d3 | 16815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16816 | done |
16817 | else | |
16818 | echo "$as_me: failed program was:" >&5 | |
16819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16820 | ||
16821 | cat >conftest.$ac_ext <<_ACEOF | |
16822 | /* confdefs.h. */ | |
16823 | _ACEOF | |
16824 | cat confdefs.h >>conftest.$ac_ext | |
16825 | cat >>conftest.$ac_ext <<_ACEOF | |
16826 | /* end confdefs.h. */ | |
16827 | $ac_includes_default | |
16828 | int | |
16829 | main () | |
16830 | { | |
16831 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16832 | test_array [0] = 0 | |
16833 | ||
16834 | ; | |
16835 | return 0; | |
16836 | } | |
16837 | _ACEOF | |
16838 | rm -f conftest.$ac_objext | |
16839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16840 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16841 | ac_status=$? |
ac1cb8d3 VS |
16842 | grep -v '^ *+' conftest.er1 >conftest.err |
16843 | rm -f conftest.er1 | |
16844 | cat conftest.err >&5 | |
a848cd7e SC |
16845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16846 | (exit $ac_status); } && | |
6ebeb4c7 | 16847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16849 | (eval $ac_try) 2>&5 | |
16850 | ac_status=$? | |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16852 | (exit $ac_status); }; } && | |
16853 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16855 | (eval $ac_try) 2>&5 | |
16856 | ac_status=$? | |
16857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16858 | (exit $ac_status); }; }; then | |
16859 | ac_hi=-1 ac_mid=-1 | |
16860 | while :; do | |
16861 | cat >conftest.$ac_ext <<_ACEOF | |
16862 | /* confdefs.h. */ | |
16863 | _ACEOF | |
16864 | cat confdefs.h >>conftest.$ac_ext | |
16865 | cat >>conftest.$ac_ext <<_ACEOF | |
16866 | /* end confdefs.h. */ | |
16867 | $ac_includes_default | |
16868 | int | |
16869 | main () | |
16870 | { | |
16871 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16872 | test_array [0] = 0 | |
16873 | ||
16874 | ; | |
16875 | return 0; | |
16876 | } | |
16877 | _ACEOF | |
16878 | rm -f conftest.$ac_objext | |
16879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16880 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16881 | ac_status=$? |
ac1cb8d3 VS |
16882 | grep -v '^ *+' conftest.er1 >conftest.err |
16883 | rm -f conftest.er1 | |
16884 | cat conftest.err >&5 | |
a848cd7e SC |
16885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16886 | (exit $ac_status); } && | |
6ebeb4c7 | 16887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16889 | (eval $ac_try) 2>&5 | |
16890 | ac_status=$? | |
16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16892 | (exit $ac_status); }; } && | |
16893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16895 | (eval $ac_try) 2>&5 | |
16896 | ac_status=$? | |
16897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16898 | (exit $ac_status); }; }; then | |
16899 | ac_lo=$ac_mid; break | |
16900 | else | |
16901 | echo "$as_me: failed program was:" >&5 | |
16902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16903 | ||
16904 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16905 | if test $ac_mid -le $ac_hi; then |
16906 | ac_lo= ac_hi= | |
16907 | break | |
16908 | fi | |
16909 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16910 | fi |
ac1cb8d3 | 16911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16912 | done |
16913 | else | |
16914 | echo "$as_me: failed program was:" >&5 | |
16915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16916 | ||
16917 | ac_lo= ac_hi= | |
16918 | fi | |
ac1cb8d3 | 16919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16920 | fi |
ac1cb8d3 | 16921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16922 | # Binary search between lo and hi bounds. |
16923 | while test "x$ac_lo" != "x$ac_hi"; do | |
16924 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16925 | cat >conftest.$ac_ext <<_ACEOF | |
16926 | /* confdefs.h. */ | |
16927 | _ACEOF | |
16928 | cat confdefs.h >>conftest.$ac_ext | |
16929 | cat >>conftest.$ac_ext <<_ACEOF | |
16930 | /* end confdefs.h. */ | |
16931 | $ac_includes_default | |
16932 | int | |
16933 | main () | |
16934 | { | |
16935 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16936 | test_array [0] = 0 | |
16937 | ||
16938 | ; | |
16939 | return 0; | |
16940 | } | |
16941 | _ACEOF | |
16942 | rm -f conftest.$ac_objext | |
16943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16945 | ac_status=$? |
ac1cb8d3 VS |
16946 | grep -v '^ *+' conftest.er1 >conftest.err |
16947 | rm -f conftest.er1 | |
16948 | cat conftest.err >&5 | |
a848cd7e SC |
16949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16950 | (exit $ac_status); } && | |
6ebeb4c7 | 16951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16953 | (eval $ac_try) 2>&5 | |
16954 | ac_status=$? | |
16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16956 | (exit $ac_status); }; } && | |
16957 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16959 | (eval $ac_try) 2>&5 | |
16960 | ac_status=$? | |
16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16962 | (exit $ac_status); }; }; then | |
16963 | ac_hi=$ac_mid | |
16964 | else | |
16965 | echo "$as_me: failed program was:" >&5 | |
16966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16967 | ||
16968 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16969 | fi | |
ac1cb8d3 | 16970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16971 | done |
16972 | case $ac_lo in | |
16973 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16974 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16975 | See \`config.log' for more details." >&5 | |
16976 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16977 | See \`config.log' for more details." >&2;} | |
16978 | { (exit 1); exit 1; }; } ;; | |
16979 | esac | |
16980 | else | |
16981 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
16982 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16983 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16984 | { (exit 1); exit 1; }; } |
16985 | else | |
16986 | cat >conftest.$ac_ext <<_ACEOF | |
16987 | /* confdefs.h. */ | |
16988 | _ACEOF | |
16989 | cat confdefs.h >>conftest.$ac_ext | |
16990 | cat >>conftest.$ac_ext <<_ACEOF | |
16991 | /* end confdefs.h. */ | |
16992 | $ac_includes_default | |
16993 | long longval () { return (long) (sizeof (void *)); } | |
16994 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16995 | #include <stdio.h> | |
16996 | #include <stdlib.h> | |
16997 | int | |
16998 | main () | |
16999 | { | |
17000 | ||
17001 | FILE *f = fopen ("conftest.val", "w"); | |
17002 | if (! f) | |
17003 | exit (1); | |
17004 | if (((long) (sizeof (void *))) < 0) | |
17005 | { | |
17006 | long i = longval (); | |
17007 | if (i != ((long) (sizeof (void *)))) | |
17008 | exit (1); | |
17009 | fprintf (f, "%ld\n", i); | |
17010 | } | |
17011 | else | |
17012 | { | |
17013 | unsigned long i = ulongval (); | |
17014 | if (i != ((long) (sizeof (void *)))) | |
17015 | exit (1); | |
17016 | fprintf (f, "%lu\n", i); | |
17017 | } | |
17018 | exit (ferror (f) || fclose (f) != 0); | |
17019 | ||
17020 | ; | |
17021 | return 0; | |
17022 | } | |
17023 | _ACEOF | |
17024 | rm -f conftest$ac_exeext | |
17025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17026 | (eval $ac_link) 2>&5 | |
17027 | ac_status=$? | |
17028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17029 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17031 | (eval $ac_try) 2>&5 | |
17032 | ac_status=$? | |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17034 | (exit $ac_status); }; }; then | |
17035 | ac_cv_sizeof_void_p=`cat conftest.val` | |
17036 | else | |
17037 | echo "$as_me: program exited with status $ac_status" >&5 | |
17038 | echo "$as_me: failed program was:" >&5 | |
17039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17040 | ||
17041 | ( exit $ac_status ) | |
17042 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17043 | See \`config.log' for more details." >&5 | |
17044 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17045 | See \`config.log' for more details." >&2;} | |
17046 | { (exit 1); exit 1; }; } | |
17047 | fi | |
ac1cb8d3 | 17048 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17049 | fi |
17050 | fi | |
17051 | rm -f conftest.val | |
17052 | else | |
17053 | ac_cv_sizeof_void_p=0 | |
17054 | fi | |
17055 | fi | |
17056 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
17057 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
17058 | cat >>confdefs.h <<_ACEOF | |
17059 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17060 | _ACEOF | |
17061 | ||
17062 | ||
17063 | echo "$as_me:$LINENO: checking for int" >&5 | |
17064 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
17065 | if test "${ac_cv_type_int+set}" = set; then | |
17066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17067 | else | |
17068 | cat >conftest.$ac_ext <<_ACEOF | |
17069 | /* confdefs.h. */ | |
17070 | _ACEOF | |
17071 | cat confdefs.h >>conftest.$ac_ext | |
17072 | cat >>conftest.$ac_ext <<_ACEOF | |
17073 | /* end confdefs.h. */ | |
17074 | $ac_includes_default | |
17075 | int | |
17076 | main () | |
17077 | { | |
17078 | if ((int *) 0) | |
17079 | return 0; | |
17080 | if (sizeof (int)) | |
17081 | return 0; | |
17082 | ; | |
17083 | return 0; | |
17084 | } | |
17085 | _ACEOF | |
17086 | rm -f conftest.$ac_objext | |
17087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17088 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17089 | ac_status=$? |
ac1cb8d3 VS |
17090 | grep -v '^ *+' conftest.er1 >conftest.err |
17091 | rm -f conftest.er1 | |
17092 | cat conftest.err >&5 | |
a848cd7e SC |
17093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17094 | (exit $ac_status); } && | |
6ebeb4c7 | 17095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17097 | (eval $ac_try) 2>&5 | |
17098 | ac_status=$? | |
17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17100 | (exit $ac_status); }; } && | |
17101 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17103 | (eval $ac_try) 2>&5 | |
17104 | ac_status=$? | |
17105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17106 | (exit $ac_status); }; }; then | |
17107 | ac_cv_type_int=yes | |
17108 | else | |
17109 | echo "$as_me: failed program was:" >&5 | |
17110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17111 | ||
17112 | ac_cv_type_int=no | |
17113 | fi | |
ac1cb8d3 | 17114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17115 | fi |
17116 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
17117 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
17118 | ||
17119 | echo "$as_me:$LINENO: checking size of int" >&5 | |
17120 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
17121 | if test "${ac_cv_sizeof_int+set}" = set; then | |
17122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17123 | else | |
17124 | if test "$ac_cv_type_int" = yes; then | |
17125 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17126 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17127 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17128 | # This bug is HP SR number 8606223364. | |
17129 | if test "$cross_compiling" = yes; then | |
17130 | # Depending upon the size, compute the lo and hi bounds. | |
17131 | cat >conftest.$ac_ext <<_ACEOF | |
17132 | /* confdefs.h. */ | |
17133 | _ACEOF | |
17134 | cat confdefs.h >>conftest.$ac_ext | |
17135 | cat >>conftest.$ac_ext <<_ACEOF | |
17136 | /* end confdefs.h. */ | |
17137 | $ac_includes_default | |
17138 | int | |
17139 | main () | |
17140 | { | |
17141 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
17142 | test_array [0] = 0 | |
17143 | ||
17144 | ; | |
17145 | return 0; | |
17146 | } | |
17147 | _ACEOF | |
17148 | rm -f conftest.$ac_objext | |
17149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17150 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17151 | ac_status=$? |
ac1cb8d3 VS |
17152 | grep -v '^ *+' conftest.er1 >conftest.err |
17153 | rm -f conftest.er1 | |
17154 | cat conftest.err >&5 | |
a848cd7e SC |
17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17156 | (exit $ac_status); } && | |
6ebeb4c7 | 17157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17159 | (eval $ac_try) 2>&5 | |
17160 | ac_status=$? | |
17161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17162 | (exit $ac_status); }; } && | |
17163 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17165 | (eval $ac_try) 2>&5 | |
17166 | ac_status=$? | |
17167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17168 | (exit $ac_status); }; }; then | |
17169 | ac_lo=0 ac_mid=0 | |
17170 | while :; do | |
17171 | cat >conftest.$ac_ext <<_ACEOF | |
17172 | /* confdefs.h. */ | |
17173 | _ACEOF | |
17174 | cat confdefs.h >>conftest.$ac_ext | |
17175 | cat >>conftest.$ac_ext <<_ACEOF | |
17176 | /* end confdefs.h. */ | |
17177 | $ac_includes_default | |
17178 | int | |
17179 | main () | |
17180 | { | |
17181 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17182 | test_array [0] = 0 | |
17183 | ||
17184 | ; | |
17185 | return 0; | |
17186 | } | |
17187 | _ACEOF | |
17188 | rm -f conftest.$ac_objext | |
17189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17191 | ac_status=$? |
ac1cb8d3 VS |
17192 | grep -v '^ *+' conftest.er1 >conftest.err |
17193 | rm -f conftest.er1 | |
17194 | cat conftest.err >&5 | |
a848cd7e SC |
17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17196 | (exit $ac_status); } && | |
6ebeb4c7 | 17197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17199 | (eval $ac_try) 2>&5 | |
17200 | ac_status=$? | |
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17202 | (exit $ac_status); }; } && | |
17203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17205 | (eval $ac_try) 2>&5 | |
17206 | ac_status=$? | |
17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17208 | (exit $ac_status); }; }; then | |
17209 | ac_hi=$ac_mid; break | |
17210 | else | |
17211 | echo "$as_me: failed program was:" >&5 | |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17213 | ||
17214 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17215 | if test $ac_lo -le $ac_mid; then |
17216 | ac_lo= ac_hi= | |
17217 | break | |
17218 | fi | |
17219 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17220 | fi |
ac1cb8d3 | 17221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17222 | done |
17223 | else | |
17224 | echo "$as_me: failed program was:" >&5 | |
17225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17226 | ||
17227 | cat >conftest.$ac_ext <<_ACEOF | |
17228 | /* confdefs.h. */ | |
17229 | _ACEOF | |
17230 | cat confdefs.h >>conftest.$ac_ext | |
17231 | cat >>conftest.$ac_ext <<_ACEOF | |
17232 | /* end confdefs.h. */ | |
17233 | $ac_includes_default | |
17234 | int | |
17235 | main () | |
17236 | { | |
17237 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
17238 | test_array [0] = 0 | |
17239 | ||
17240 | ; | |
17241 | return 0; | |
17242 | } | |
17243 | _ACEOF | |
17244 | rm -f conftest.$ac_objext | |
17245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17246 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17247 | ac_status=$? |
ac1cb8d3 VS |
17248 | grep -v '^ *+' conftest.er1 >conftest.err |
17249 | rm -f conftest.er1 | |
17250 | cat conftest.err >&5 | |
a848cd7e SC |
17251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17252 | (exit $ac_status); } && | |
6ebeb4c7 | 17253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17255 | (eval $ac_try) 2>&5 | |
17256 | ac_status=$? | |
17257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17258 | (exit $ac_status); }; } && | |
17259 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17261 | (eval $ac_try) 2>&5 | |
17262 | ac_status=$? | |
17263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17264 | (exit $ac_status); }; }; then | |
17265 | ac_hi=-1 ac_mid=-1 | |
17266 | while :; do | |
17267 | cat >conftest.$ac_ext <<_ACEOF | |
17268 | /* confdefs.h. */ | |
17269 | _ACEOF | |
17270 | cat confdefs.h >>conftest.$ac_ext | |
17271 | cat >>conftest.$ac_ext <<_ACEOF | |
17272 | /* end confdefs.h. */ | |
17273 | $ac_includes_default | |
17274 | int | |
17275 | main () | |
17276 | { | |
17277 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
17278 | test_array [0] = 0 | |
17279 | ||
17280 | ; | |
17281 | return 0; | |
17282 | } | |
17283 | _ACEOF | |
17284 | rm -f conftest.$ac_objext | |
17285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17287 | ac_status=$? |
ac1cb8d3 VS |
17288 | grep -v '^ *+' conftest.er1 >conftest.err |
17289 | rm -f conftest.er1 | |
17290 | cat conftest.err >&5 | |
a848cd7e SC |
17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17292 | (exit $ac_status); } && | |
6ebeb4c7 | 17293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17295 | (eval $ac_try) 2>&5 | |
17296 | ac_status=$? | |
17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17298 | (exit $ac_status); }; } && | |
17299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17301 | (eval $ac_try) 2>&5 | |
17302 | ac_status=$? | |
17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17304 | (exit $ac_status); }; }; then | |
17305 | ac_lo=$ac_mid; break | |
17306 | else | |
17307 | echo "$as_me: failed program was:" >&5 | |
17308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17309 | ||
17310 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17311 | if test $ac_mid -le $ac_hi; then |
17312 | ac_lo= ac_hi= | |
17313 | break | |
17314 | fi | |
17315 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17316 | fi |
ac1cb8d3 | 17317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17318 | done |
17319 | else | |
17320 | echo "$as_me: failed program was:" >&5 | |
17321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17322 | ||
17323 | ac_lo= ac_hi= | |
17324 | fi | |
ac1cb8d3 | 17325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17326 | fi |
ac1cb8d3 | 17327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17328 | # Binary search between lo and hi bounds. |
17329 | while test "x$ac_lo" != "x$ac_hi"; do | |
17330 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17331 | cat >conftest.$ac_ext <<_ACEOF | |
17332 | /* confdefs.h. */ | |
17333 | _ACEOF | |
17334 | cat confdefs.h >>conftest.$ac_ext | |
17335 | cat >>conftest.$ac_ext <<_ACEOF | |
17336 | /* end confdefs.h. */ | |
17337 | $ac_includes_default | |
17338 | int | |
17339 | main () | |
17340 | { | |
17341 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17342 | test_array [0] = 0 | |
17343 | ||
17344 | ; | |
17345 | return 0; | |
17346 | } | |
17347 | _ACEOF | |
17348 | rm -f conftest.$ac_objext | |
17349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17350 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17351 | ac_status=$? |
ac1cb8d3 VS |
17352 | grep -v '^ *+' conftest.er1 >conftest.err |
17353 | rm -f conftest.er1 | |
17354 | cat conftest.err >&5 | |
a848cd7e SC |
17355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17356 | (exit $ac_status); } && | |
6ebeb4c7 | 17357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17359 | (eval $ac_try) 2>&5 | |
17360 | ac_status=$? | |
17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17362 | (exit $ac_status); }; } && | |
17363 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17365 | (eval $ac_try) 2>&5 | |
17366 | ac_status=$? | |
17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17368 | (exit $ac_status); }; }; then | |
17369 | ac_hi=$ac_mid | |
17370 | else | |
17371 | echo "$as_me: failed program was:" >&5 | |
17372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17373 | ||
17374 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17375 | fi | |
ac1cb8d3 | 17376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17377 | done |
17378 | case $ac_lo in | |
17379 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
17380 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17381 | See \`config.log' for more details." >&5 | |
17382 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17383 | See \`config.log' for more details." >&2;} | |
17384 | { (exit 1); exit 1; }; } ;; | |
17385 | esac | |
17386 | else | |
17387 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17388 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17389 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17390 | { (exit 1); exit 1; }; } |
17391 | else | |
17392 | cat >conftest.$ac_ext <<_ACEOF | |
17393 | /* confdefs.h. */ | |
17394 | _ACEOF | |
17395 | cat confdefs.h >>conftest.$ac_ext | |
17396 | cat >>conftest.$ac_ext <<_ACEOF | |
17397 | /* end confdefs.h. */ | |
17398 | $ac_includes_default | |
17399 | long longval () { return (long) (sizeof (int)); } | |
17400 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
17401 | #include <stdio.h> | |
17402 | #include <stdlib.h> | |
17403 | int | |
17404 | main () | |
17405 | { | |
17406 | ||
17407 | FILE *f = fopen ("conftest.val", "w"); | |
17408 | if (! f) | |
17409 | exit (1); | |
17410 | if (((long) (sizeof (int))) < 0) | |
17411 | { | |
17412 | long i = longval (); | |
17413 | if (i != ((long) (sizeof (int)))) | |
17414 | exit (1); | |
17415 | fprintf (f, "%ld\n", i); | |
17416 | } | |
17417 | else | |
17418 | { | |
17419 | unsigned long i = ulongval (); | |
17420 | if (i != ((long) (sizeof (int)))) | |
17421 | exit (1); | |
17422 | fprintf (f, "%lu\n", i); | |
17423 | } | |
17424 | exit (ferror (f) || fclose (f) != 0); | |
17425 | ||
17426 | ; | |
17427 | return 0; | |
17428 | } | |
17429 | _ACEOF | |
17430 | rm -f conftest$ac_exeext | |
17431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17432 | (eval $ac_link) 2>&5 | |
17433 | ac_status=$? | |
17434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17435 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17437 | (eval $ac_try) 2>&5 | |
17438 | ac_status=$? | |
17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17440 | (exit $ac_status); }; }; then | |
17441 | ac_cv_sizeof_int=`cat conftest.val` | |
17442 | else | |
17443 | echo "$as_me: program exited with status $ac_status" >&5 | |
17444 | echo "$as_me: failed program was:" >&5 | |
17445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17446 | ||
17447 | ( exit $ac_status ) | |
17448 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
17449 | See \`config.log' for more details." >&5 | |
17450 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
17451 | See \`config.log' for more details." >&2;} | |
17452 | { (exit 1); exit 1; }; } | |
17453 | fi | |
ac1cb8d3 | 17454 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17455 | fi |
17456 | fi | |
17457 | rm -f conftest.val | |
17458 | else | |
17459 | ac_cv_sizeof_int=0 | |
17460 | fi | |
17461 | fi | |
17462 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17463 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
17464 | cat >>confdefs.h <<_ACEOF | |
17465 | #define SIZEOF_INT $ac_cv_sizeof_int | |
17466 | _ACEOF | |
17467 | ||
17468 | ||
17469 | echo "$as_me:$LINENO: checking for long" >&5 | |
17470 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
17471 | if test "${ac_cv_type_long+set}" = set; then | |
17472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17473 | else | |
17474 | cat >conftest.$ac_ext <<_ACEOF | |
17475 | /* confdefs.h. */ | |
17476 | _ACEOF | |
17477 | cat confdefs.h >>conftest.$ac_ext | |
17478 | cat >>conftest.$ac_ext <<_ACEOF | |
17479 | /* end confdefs.h. */ | |
17480 | $ac_includes_default | |
17481 | int | |
17482 | main () | |
17483 | { | |
17484 | if ((long *) 0) | |
17485 | return 0; | |
17486 | if (sizeof (long)) | |
17487 | return 0; | |
17488 | ; | |
17489 | return 0; | |
17490 | } | |
17491 | _ACEOF | |
17492 | rm -f conftest.$ac_objext | |
17493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17494 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17495 | ac_status=$? |
ac1cb8d3 VS |
17496 | grep -v '^ *+' conftest.er1 >conftest.err |
17497 | rm -f conftest.er1 | |
17498 | cat conftest.err >&5 | |
a848cd7e SC |
17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17500 | (exit $ac_status); } && | |
6ebeb4c7 | 17501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17503 | (eval $ac_try) 2>&5 | |
17504 | ac_status=$? | |
17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17506 | (exit $ac_status); }; } && | |
17507 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17509 | (eval $ac_try) 2>&5 | |
17510 | ac_status=$? | |
17511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17512 | (exit $ac_status); }; }; then | |
17513 | ac_cv_type_long=yes | |
17514 | else | |
17515 | echo "$as_me: failed program was:" >&5 | |
17516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17517 | ||
17518 | ac_cv_type_long=no | |
17519 | fi | |
ac1cb8d3 | 17520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17521 | fi |
17522 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17523 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17524 | ||
17525 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17526 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17527 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17529 | else | |
17530 | if test "$ac_cv_type_long" = yes; then | |
17531 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17532 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17533 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17534 | # This bug is HP SR number 8606223364. | |
17535 | if test "$cross_compiling" = yes; then | |
17536 | # Depending upon the size, compute the lo and hi bounds. | |
17537 | cat >conftest.$ac_ext <<_ACEOF | |
17538 | /* confdefs.h. */ | |
17539 | _ACEOF | |
17540 | cat confdefs.h >>conftest.$ac_ext | |
17541 | cat >>conftest.$ac_ext <<_ACEOF | |
17542 | /* end confdefs.h. */ | |
17543 | $ac_includes_default | |
17544 | int | |
17545 | main () | |
17546 | { | |
17547 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17548 | test_array [0] = 0 | |
17549 | ||
17550 | ; | |
17551 | return 0; | |
17552 | } | |
17553 | _ACEOF | |
17554 | rm -f conftest.$ac_objext | |
17555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17556 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17557 | ac_status=$? |
ac1cb8d3 VS |
17558 | grep -v '^ *+' conftest.er1 >conftest.err |
17559 | rm -f conftest.er1 | |
17560 | cat conftest.err >&5 | |
a848cd7e SC |
17561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17562 | (exit $ac_status); } && | |
6ebeb4c7 | 17563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17565 | (eval $ac_try) 2>&5 | |
17566 | ac_status=$? | |
17567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17568 | (exit $ac_status); }; } && | |
17569 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17571 | (eval $ac_try) 2>&5 | |
17572 | ac_status=$? | |
17573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17574 | (exit $ac_status); }; }; then | |
17575 | ac_lo=0 ac_mid=0 | |
17576 | while :; do | |
17577 | cat >conftest.$ac_ext <<_ACEOF | |
17578 | /* confdefs.h. */ | |
17579 | _ACEOF | |
17580 | cat confdefs.h >>conftest.$ac_ext | |
17581 | cat >>conftest.$ac_ext <<_ACEOF | |
17582 | /* end confdefs.h. */ | |
17583 | $ac_includes_default | |
17584 | int | |
17585 | main () | |
17586 | { | |
17587 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17588 | test_array [0] = 0 | |
17589 | ||
17590 | ; | |
17591 | return 0; | |
17592 | } | |
17593 | _ACEOF | |
17594 | rm -f conftest.$ac_objext | |
17595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17596 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17597 | ac_status=$? |
ac1cb8d3 VS |
17598 | grep -v '^ *+' conftest.er1 >conftest.err |
17599 | rm -f conftest.er1 | |
17600 | cat conftest.err >&5 | |
a848cd7e SC |
17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17602 | (exit $ac_status); } && | |
6ebeb4c7 | 17603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17605 | (eval $ac_try) 2>&5 | |
17606 | ac_status=$? | |
17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17608 | (exit $ac_status); }; } && | |
17609 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17611 | (eval $ac_try) 2>&5 | |
17612 | ac_status=$? | |
17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17614 | (exit $ac_status); }; }; then | |
17615 | ac_hi=$ac_mid; break | |
17616 | else | |
17617 | echo "$as_me: failed program was:" >&5 | |
17618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17619 | ||
17620 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17621 | if test $ac_lo -le $ac_mid; then |
17622 | ac_lo= ac_hi= | |
17623 | break | |
17624 | fi | |
17625 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17626 | fi |
ac1cb8d3 | 17627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17628 | done |
17629 | else | |
17630 | echo "$as_me: failed program was:" >&5 | |
17631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17632 | ||
17633 | cat >conftest.$ac_ext <<_ACEOF | |
17634 | /* confdefs.h. */ | |
17635 | _ACEOF | |
17636 | cat confdefs.h >>conftest.$ac_ext | |
17637 | cat >>conftest.$ac_ext <<_ACEOF | |
17638 | /* end confdefs.h. */ | |
17639 | $ac_includes_default | |
17640 | int | |
17641 | main () | |
17642 | { | |
17643 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17644 | test_array [0] = 0 | |
17645 | ||
17646 | ; | |
17647 | return 0; | |
17648 | } | |
17649 | _ACEOF | |
17650 | rm -f conftest.$ac_objext | |
17651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17652 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17653 | ac_status=$? |
ac1cb8d3 VS |
17654 | grep -v '^ *+' conftest.er1 >conftest.err |
17655 | rm -f conftest.er1 | |
17656 | cat conftest.err >&5 | |
a848cd7e SC |
17657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17658 | (exit $ac_status); } && | |
6ebeb4c7 | 17659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17661 | (eval $ac_try) 2>&5 | |
17662 | ac_status=$? | |
17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17664 | (exit $ac_status); }; } && | |
17665 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17667 | (eval $ac_try) 2>&5 | |
17668 | ac_status=$? | |
17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17670 | (exit $ac_status); }; }; then | |
17671 | ac_hi=-1 ac_mid=-1 | |
17672 | while :; do | |
17673 | cat >conftest.$ac_ext <<_ACEOF | |
17674 | /* confdefs.h. */ | |
17675 | _ACEOF | |
17676 | cat confdefs.h >>conftest.$ac_ext | |
17677 | cat >>conftest.$ac_ext <<_ACEOF | |
17678 | /* end confdefs.h. */ | |
17679 | $ac_includes_default | |
17680 | int | |
17681 | main () | |
17682 | { | |
17683 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17684 | test_array [0] = 0 | |
17685 | ||
17686 | ; | |
17687 | return 0; | |
17688 | } | |
17689 | _ACEOF | |
17690 | rm -f conftest.$ac_objext | |
17691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17693 | ac_status=$? |
ac1cb8d3 VS |
17694 | grep -v '^ *+' conftest.er1 >conftest.err |
17695 | rm -f conftest.er1 | |
17696 | cat conftest.err >&5 | |
a848cd7e SC |
17697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17698 | (exit $ac_status); } && | |
6ebeb4c7 | 17699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17701 | (eval $ac_try) 2>&5 | |
17702 | ac_status=$? | |
17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17704 | (exit $ac_status); }; } && | |
17705 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17707 | (eval $ac_try) 2>&5 | |
17708 | ac_status=$? | |
17709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17710 | (exit $ac_status); }; }; then | |
17711 | ac_lo=$ac_mid; break | |
17712 | else | |
17713 | echo "$as_me: failed program was:" >&5 | |
17714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17715 | ||
17716 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17717 | if test $ac_mid -le $ac_hi; then |
17718 | ac_lo= ac_hi= | |
17719 | break | |
17720 | fi | |
17721 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17722 | fi |
ac1cb8d3 | 17723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17724 | done |
17725 | else | |
17726 | echo "$as_me: failed program was:" >&5 | |
17727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17728 | ||
17729 | ac_lo= ac_hi= | |
17730 | fi | |
ac1cb8d3 | 17731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17732 | fi |
ac1cb8d3 | 17733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17734 | # Binary search between lo and hi bounds. |
17735 | while test "x$ac_lo" != "x$ac_hi"; do | |
17736 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17737 | cat >conftest.$ac_ext <<_ACEOF | |
17738 | /* confdefs.h. */ | |
17739 | _ACEOF | |
17740 | cat confdefs.h >>conftest.$ac_ext | |
17741 | cat >>conftest.$ac_ext <<_ACEOF | |
17742 | /* end confdefs.h. */ | |
17743 | $ac_includes_default | |
17744 | int | |
17745 | main () | |
17746 | { | |
17747 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17748 | test_array [0] = 0 | |
17749 | ||
17750 | ; | |
17751 | return 0; | |
17752 | } | |
17753 | _ACEOF | |
17754 | rm -f conftest.$ac_objext | |
17755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17756 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17757 | ac_status=$? |
ac1cb8d3 VS |
17758 | grep -v '^ *+' conftest.er1 >conftest.err |
17759 | rm -f conftest.er1 | |
17760 | cat conftest.err >&5 | |
a848cd7e SC |
17761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17762 | (exit $ac_status); } && | |
6ebeb4c7 | 17763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17765 | (eval $ac_try) 2>&5 | |
17766 | ac_status=$? | |
17767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17768 | (exit $ac_status); }; } && | |
17769 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17771 | (eval $ac_try) 2>&5 | |
17772 | ac_status=$? | |
17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17774 | (exit $ac_status); }; }; then | |
17775 | ac_hi=$ac_mid | |
17776 | else | |
17777 | echo "$as_me: failed program was:" >&5 | |
17778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17779 | ||
17780 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17781 | fi | |
ac1cb8d3 | 17782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17783 | done |
17784 | case $ac_lo in | |
17785 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17786 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17787 | See \`config.log' for more details." >&5 | |
17788 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17789 | See \`config.log' for more details." >&2;} | |
17790 | { (exit 1); exit 1; }; } ;; | |
17791 | esac | |
17792 | else | |
17793 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
17794 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17795 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17796 | { (exit 1); exit 1; }; } |
17797 | else | |
17798 | cat >conftest.$ac_ext <<_ACEOF | |
17799 | /* confdefs.h. */ | |
17800 | _ACEOF | |
17801 | cat confdefs.h >>conftest.$ac_ext | |
17802 | cat >>conftest.$ac_ext <<_ACEOF | |
17803 | /* end confdefs.h. */ | |
17804 | $ac_includes_default | |
17805 | long longval () { return (long) (sizeof (long)); } | |
17806 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17807 | #include <stdio.h> | |
17808 | #include <stdlib.h> | |
17809 | int | |
17810 | main () | |
17811 | { | |
17812 | ||
17813 | FILE *f = fopen ("conftest.val", "w"); | |
17814 | if (! f) | |
17815 | exit (1); | |
17816 | if (((long) (sizeof (long))) < 0) | |
17817 | { | |
17818 | long i = longval (); | |
17819 | if (i != ((long) (sizeof (long)))) | |
17820 | exit (1); | |
17821 | fprintf (f, "%ld\n", i); | |
17822 | } | |
17823 | else | |
17824 | { | |
17825 | unsigned long i = ulongval (); | |
17826 | if (i != ((long) (sizeof (long)))) | |
17827 | exit (1); | |
17828 | fprintf (f, "%lu\n", i); | |
17829 | } | |
17830 | exit (ferror (f) || fclose (f) != 0); | |
17831 | ||
17832 | ; | |
17833 | return 0; | |
17834 | } | |
17835 | _ACEOF | |
17836 | rm -f conftest$ac_exeext | |
17837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17838 | (eval $ac_link) 2>&5 | |
17839 | ac_status=$? | |
17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17843 | (eval $ac_try) 2>&5 | |
17844 | ac_status=$? | |
17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17846 | (exit $ac_status); }; }; then | |
17847 | ac_cv_sizeof_long=`cat conftest.val` | |
17848 | else | |
17849 | echo "$as_me: program exited with status $ac_status" >&5 | |
17850 | echo "$as_me: failed program was:" >&5 | |
17851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17852 | ||
17853 | ( exit $ac_status ) | |
17854 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17855 | See \`config.log' for more details." >&5 | |
17856 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17857 | See \`config.log' for more details." >&2;} | |
17858 | { (exit 1); exit 1; }; } | |
17859 | fi | |
ac1cb8d3 | 17860 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17861 | fi |
17862 | fi | |
17863 | rm -f conftest.val | |
17864 | else | |
17865 | ac_cv_sizeof_long=0 | |
17866 | fi | |
17867 | fi | |
17868 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17869 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17870 | cat >>confdefs.h <<_ACEOF | |
17871 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17872 | _ACEOF | |
17873 | ||
17874 | ||
17875 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17876 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17877 | if test "${ac_cv_type_size_t+set}" = set; then | |
17878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17879 | else | |
17880 | cat >conftest.$ac_ext <<_ACEOF | |
17881 | /* confdefs.h. */ | |
17882 | _ACEOF | |
17883 | cat confdefs.h >>conftest.$ac_ext | |
17884 | cat >>conftest.$ac_ext <<_ACEOF | |
17885 | /* end confdefs.h. */ | |
17886 | $ac_includes_default | |
17887 | int | |
17888 | main () | |
17889 | { | |
17890 | if ((size_t *) 0) | |
17891 | return 0; | |
17892 | if (sizeof (size_t)) | |
17893 | return 0; | |
17894 | ; | |
17895 | return 0; | |
17896 | } | |
17897 | _ACEOF | |
17898 | rm -f conftest.$ac_objext | |
17899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17901 | ac_status=$? |
ac1cb8d3 VS |
17902 | grep -v '^ *+' conftest.er1 >conftest.err |
17903 | rm -f conftest.er1 | |
17904 | cat conftest.err >&5 | |
a848cd7e SC |
17905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17906 | (exit $ac_status); } && | |
6ebeb4c7 | 17907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17909 | (eval $ac_try) 2>&5 | |
17910 | ac_status=$? | |
17911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17912 | (exit $ac_status); }; } && | |
17913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17915 | (eval $ac_try) 2>&5 | |
17916 | ac_status=$? | |
17917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17918 | (exit $ac_status); }; }; then | |
17919 | ac_cv_type_size_t=yes | |
17920 | else | |
17921 | echo "$as_me: failed program was:" >&5 | |
17922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17923 | ||
17924 | ac_cv_type_size_t=no | |
17925 | fi | |
ac1cb8d3 | 17926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17927 | fi |
17928 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17929 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17930 | ||
17931 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17932 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17933 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17935 | else | |
17936 | if test "$ac_cv_type_size_t" = yes; then | |
17937 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17938 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17939 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17940 | # This bug is HP SR number 8606223364. | |
17941 | if test "$cross_compiling" = yes; then | |
17942 | # Depending upon the size, compute the lo and hi bounds. | |
17943 | cat >conftest.$ac_ext <<_ACEOF | |
17944 | /* confdefs.h. */ | |
17945 | _ACEOF | |
17946 | cat confdefs.h >>conftest.$ac_ext | |
17947 | cat >>conftest.$ac_ext <<_ACEOF | |
17948 | /* end confdefs.h. */ | |
17949 | $ac_includes_default | |
17950 | int | |
17951 | main () | |
17952 | { | |
17953 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17954 | test_array [0] = 0 | |
17955 | ||
17956 | ; | |
17957 | return 0; | |
17958 | } | |
17959 | _ACEOF | |
17960 | rm -f conftest.$ac_objext | |
17961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17963 | ac_status=$? |
ac1cb8d3 VS |
17964 | grep -v '^ *+' conftest.er1 >conftest.err |
17965 | rm -f conftest.er1 | |
17966 | cat conftest.err >&5 | |
a848cd7e SC |
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17968 | (exit $ac_status); } && | |
6ebeb4c7 | 17969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17971 | (eval $ac_try) 2>&5 | |
17972 | ac_status=$? | |
17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17974 | (exit $ac_status); }; } && | |
17975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17977 | (eval $ac_try) 2>&5 | |
17978 | ac_status=$? | |
17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17980 | (exit $ac_status); }; }; then | |
17981 | ac_lo=0 ac_mid=0 | |
17982 | while :; do | |
17983 | cat >conftest.$ac_ext <<_ACEOF | |
17984 | /* confdefs.h. */ | |
17985 | _ACEOF | |
17986 | cat confdefs.h >>conftest.$ac_ext | |
17987 | cat >>conftest.$ac_ext <<_ACEOF | |
17988 | /* end confdefs.h. */ | |
17989 | $ac_includes_default | |
17990 | int | |
17991 | main () | |
17992 | { | |
17993 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17994 | test_array [0] = 0 | |
17995 | ||
17996 | ; | |
17997 | return 0; | |
17998 | } | |
17999 | _ACEOF | |
18000 | rm -f conftest.$ac_objext | |
18001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18002 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18003 | ac_status=$? |
ac1cb8d3 VS |
18004 | grep -v '^ *+' conftest.er1 >conftest.err |
18005 | rm -f conftest.er1 | |
18006 | cat conftest.err >&5 | |
a848cd7e SC |
18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18008 | (exit $ac_status); } && | |
6ebeb4c7 | 18009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18011 | (eval $ac_try) 2>&5 | |
18012 | ac_status=$? | |
18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18014 | (exit $ac_status); }; } && | |
18015 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18017 | (eval $ac_try) 2>&5 | |
18018 | ac_status=$? | |
18019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18020 | (exit $ac_status); }; }; then | |
18021 | ac_hi=$ac_mid; break | |
18022 | else | |
18023 | echo "$as_me: failed program was:" >&5 | |
18024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18025 | ||
18026 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18027 | if test $ac_lo -le $ac_mid; then |
18028 | ac_lo= ac_hi= | |
18029 | break | |
18030 | fi | |
18031 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18032 | fi |
ac1cb8d3 | 18033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18034 | done |
18035 | else | |
18036 | echo "$as_me: failed program was:" >&5 | |
18037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18038 | ||
18039 | cat >conftest.$ac_ext <<_ACEOF | |
18040 | /* confdefs.h. */ | |
18041 | _ACEOF | |
18042 | cat confdefs.h >>conftest.$ac_ext | |
18043 | cat >>conftest.$ac_ext <<_ACEOF | |
18044 | /* end confdefs.h. */ | |
18045 | $ac_includes_default | |
18046 | int | |
18047 | main () | |
18048 | { | |
18049 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
18050 | test_array [0] = 0 | |
18051 | ||
18052 | ; | |
18053 | return 0; | |
18054 | } | |
18055 | _ACEOF | |
18056 | rm -f conftest.$ac_objext | |
18057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18059 | ac_status=$? |
ac1cb8d3 VS |
18060 | grep -v '^ *+' conftest.er1 >conftest.err |
18061 | rm -f conftest.er1 | |
18062 | cat conftest.err >&5 | |
a848cd7e SC |
18063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18064 | (exit $ac_status); } && | |
6ebeb4c7 | 18065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18067 | (eval $ac_try) 2>&5 | |
18068 | ac_status=$? | |
18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18070 | (exit $ac_status); }; } && | |
18071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18073 | (eval $ac_try) 2>&5 | |
18074 | ac_status=$? | |
18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18076 | (exit $ac_status); }; }; then | |
18077 | ac_hi=-1 ac_mid=-1 | |
18078 | while :; do | |
18079 | cat >conftest.$ac_ext <<_ACEOF | |
18080 | /* confdefs.h. */ | |
18081 | _ACEOF | |
18082 | cat confdefs.h >>conftest.$ac_ext | |
18083 | cat >>conftest.$ac_ext <<_ACEOF | |
18084 | /* end confdefs.h. */ | |
18085 | $ac_includes_default | |
18086 | int | |
18087 | main () | |
18088 | { | |
18089 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
18090 | test_array [0] = 0 | |
18091 | ||
18092 | ; | |
18093 | return 0; | |
18094 | } | |
18095 | _ACEOF | |
18096 | rm -f conftest.$ac_objext | |
18097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18098 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18099 | ac_status=$? |
ac1cb8d3 VS |
18100 | grep -v '^ *+' conftest.er1 >conftest.err |
18101 | rm -f conftest.er1 | |
18102 | cat conftest.err >&5 | |
a848cd7e SC |
18103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18104 | (exit $ac_status); } && | |
6ebeb4c7 | 18105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18107 | (eval $ac_try) 2>&5 | |
18108 | ac_status=$? | |
18109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18110 | (exit $ac_status); }; } && | |
18111 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18113 | (eval $ac_try) 2>&5 | |
18114 | ac_status=$? | |
18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18116 | (exit $ac_status); }; }; then | |
18117 | ac_lo=$ac_mid; break | |
18118 | else | |
18119 | echo "$as_me: failed program was:" >&5 | |
18120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18121 | ||
18122 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18123 | if test $ac_mid -le $ac_hi; then |
18124 | ac_lo= ac_hi= | |
18125 | break | |
18126 | fi | |
18127 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18128 | fi |
ac1cb8d3 | 18129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18130 | done |
18131 | else | |
18132 | echo "$as_me: failed program was:" >&5 | |
18133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18134 | ||
18135 | ac_lo= ac_hi= | |
18136 | fi | |
ac1cb8d3 | 18137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18138 | fi |
ac1cb8d3 | 18139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18140 | # Binary search between lo and hi bounds. |
18141 | while test "x$ac_lo" != "x$ac_hi"; do | |
18142 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18143 | cat >conftest.$ac_ext <<_ACEOF | |
18144 | /* confdefs.h. */ | |
18145 | _ACEOF | |
18146 | cat confdefs.h >>conftest.$ac_ext | |
18147 | cat >>conftest.$ac_ext <<_ACEOF | |
18148 | /* end confdefs.h. */ | |
18149 | $ac_includes_default | |
18150 | int | |
18151 | main () | |
18152 | { | |
18153 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18154 | test_array [0] = 0 | |
18155 | ||
18156 | ; | |
18157 | return 0; | |
18158 | } | |
18159 | _ACEOF | |
18160 | rm -f conftest.$ac_objext | |
18161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18163 | ac_status=$? |
ac1cb8d3 VS |
18164 | grep -v '^ *+' conftest.er1 >conftest.err |
18165 | rm -f conftest.er1 | |
18166 | cat conftest.err >&5 | |
a848cd7e SC |
18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18168 | (exit $ac_status); } && | |
6ebeb4c7 | 18169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18171 | (eval $ac_try) 2>&5 | |
18172 | ac_status=$? | |
18173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18174 | (exit $ac_status); }; } && | |
18175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18177 | (eval $ac_try) 2>&5 | |
18178 | ac_status=$? | |
18179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18180 | (exit $ac_status); }; }; then | |
18181 | ac_hi=$ac_mid | |
18182 | else | |
18183 | echo "$as_me: failed program was:" >&5 | |
18184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18185 | ||
18186 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18187 | fi | |
ac1cb8d3 | 18188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18189 | done |
18190 | case $ac_lo in | |
18191 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
18192 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18193 | See \`config.log' for more details." >&5 | |
18194 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18195 | See \`config.log' for more details." >&2;} | |
18196 | { (exit 1); exit 1; }; } ;; | |
18197 | esac | |
18198 | else | |
18199 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18200 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18201 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18202 | { (exit 1); exit 1; }; } |
18203 | else | |
18204 | cat >conftest.$ac_ext <<_ACEOF | |
18205 | /* confdefs.h. */ | |
18206 | _ACEOF | |
18207 | cat confdefs.h >>conftest.$ac_ext | |
18208 | cat >>conftest.$ac_ext <<_ACEOF | |
18209 | /* end confdefs.h. */ | |
18210 | $ac_includes_default | |
18211 | long longval () { return (long) (sizeof (size_t)); } | |
18212 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
18213 | #include <stdio.h> | |
18214 | #include <stdlib.h> | |
18215 | int | |
18216 | main () | |
18217 | { | |
18218 | ||
18219 | FILE *f = fopen ("conftest.val", "w"); | |
18220 | if (! f) | |
18221 | exit (1); | |
18222 | if (((long) (sizeof (size_t))) < 0) | |
18223 | { | |
18224 | long i = longval (); | |
18225 | if (i != ((long) (sizeof (size_t)))) | |
18226 | exit (1); | |
18227 | fprintf (f, "%ld\n", i); | |
18228 | } | |
18229 | else | |
18230 | { | |
18231 | unsigned long i = ulongval (); | |
18232 | if (i != ((long) (sizeof (size_t)))) | |
18233 | exit (1); | |
18234 | fprintf (f, "%lu\n", i); | |
18235 | } | |
18236 | exit (ferror (f) || fclose (f) != 0); | |
18237 | ||
18238 | ; | |
18239 | return 0; | |
18240 | } | |
18241 | _ACEOF | |
18242 | rm -f conftest$ac_exeext | |
18243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18244 | (eval $ac_link) 2>&5 | |
18245 | ac_status=$? | |
18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18249 | (eval $ac_try) 2>&5 | |
18250 | ac_status=$? | |
18251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18252 | (exit $ac_status); }; }; then | |
18253 | ac_cv_sizeof_size_t=`cat conftest.val` | |
18254 | else | |
18255 | echo "$as_me: program exited with status $ac_status" >&5 | |
18256 | echo "$as_me: failed program was:" >&5 | |
18257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18258 | ||
18259 | ( exit $ac_status ) | |
18260 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18261 | See \`config.log' for more details." >&5 | |
18262 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18263 | See \`config.log' for more details." >&2;} | |
18264 | { (exit 1); exit 1; }; } | |
18265 | fi | |
ac1cb8d3 | 18266 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18267 | fi |
18268 | fi | |
18269 | rm -f conftest.val | |
18270 | else | |
18271 | ac_cv_sizeof_size_t=0 | |
18272 | fi | |
18273 | fi | |
18274 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
18275 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
18276 | cat >>confdefs.h <<_ACEOF | |
18277 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
18278 | _ACEOF | |
18279 | ||
18280 | ||
18281 | ||
18282 | case "${host}" in | |
18283 | arm-*-linux* ) | |
18284 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18285 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18286 | if test "${ac_cv_type_long_long+set}" = set; then | |
18287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18288 | else | |
18289 | cat >conftest.$ac_ext <<_ACEOF | |
18290 | /* confdefs.h. */ | |
18291 | _ACEOF | |
18292 | cat confdefs.h >>conftest.$ac_ext | |
18293 | cat >>conftest.$ac_ext <<_ACEOF | |
18294 | /* end confdefs.h. */ | |
18295 | $ac_includes_default | |
18296 | int | |
18297 | main () | |
18298 | { | |
18299 | if ((long long *) 0) | |
18300 | return 0; | |
18301 | if (sizeof (long long)) | |
18302 | return 0; | |
18303 | ; | |
18304 | return 0; | |
18305 | } | |
18306 | _ACEOF | |
18307 | rm -f conftest.$ac_objext | |
18308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18309 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18310 | ac_status=$? |
ac1cb8d3 VS |
18311 | grep -v '^ *+' conftest.er1 >conftest.err |
18312 | rm -f conftest.er1 | |
18313 | cat conftest.err >&5 | |
a848cd7e SC |
18314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18315 | (exit $ac_status); } && | |
6ebeb4c7 | 18316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18318 | (eval $ac_try) 2>&5 | |
18319 | ac_status=$? | |
18320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18321 | (exit $ac_status); }; } && | |
18322 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18324 | (eval $ac_try) 2>&5 | |
18325 | ac_status=$? | |
18326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18327 | (exit $ac_status); }; }; then | |
18328 | ac_cv_type_long_long=yes | |
18329 | else | |
18330 | echo "$as_me: failed program was:" >&5 | |
18331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18332 | ||
18333 | ac_cv_type_long_long=no | |
18334 | fi | |
ac1cb8d3 | 18335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18336 | fi |
18337 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18338 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18339 | ||
18340 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18341 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18342 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18344 | else | |
18345 | if test "$ac_cv_type_long_long" = yes; then | |
18346 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18347 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18348 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18349 | # This bug is HP SR number 8606223364. | |
18350 | if test "$cross_compiling" = yes; then | |
18351 | # Depending upon the size, compute the lo and hi bounds. | |
18352 | cat >conftest.$ac_ext <<_ACEOF | |
18353 | /* confdefs.h. */ | |
18354 | _ACEOF | |
18355 | cat confdefs.h >>conftest.$ac_ext | |
18356 | cat >>conftest.$ac_ext <<_ACEOF | |
18357 | /* end confdefs.h. */ | |
18358 | $ac_includes_default | |
18359 | int | |
18360 | main () | |
18361 | { | |
18362 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18363 | test_array [0] = 0 | |
18364 | ||
18365 | ; | |
18366 | return 0; | |
18367 | } | |
18368 | _ACEOF | |
18369 | rm -f conftest.$ac_objext | |
18370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18371 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18372 | ac_status=$? |
ac1cb8d3 VS |
18373 | grep -v '^ *+' conftest.er1 >conftest.err |
18374 | rm -f conftest.er1 | |
18375 | cat conftest.err >&5 | |
a848cd7e SC |
18376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18377 | (exit $ac_status); } && | |
6ebeb4c7 | 18378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18380 | (eval $ac_try) 2>&5 | |
18381 | ac_status=$? | |
18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18383 | (exit $ac_status); }; } && | |
18384 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18386 | (eval $ac_try) 2>&5 | |
18387 | ac_status=$? | |
18388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18389 | (exit $ac_status); }; }; then | |
18390 | ac_lo=0 ac_mid=0 | |
18391 | while :; do | |
18392 | cat >conftest.$ac_ext <<_ACEOF | |
18393 | /* confdefs.h. */ | |
18394 | _ACEOF | |
18395 | cat confdefs.h >>conftest.$ac_ext | |
18396 | cat >>conftest.$ac_ext <<_ACEOF | |
18397 | /* end confdefs.h. */ | |
18398 | $ac_includes_default | |
18399 | int | |
18400 | main () | |
18401 | { | |
18402 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18403 | test_array [0] = 0 | |
18404 | ||
18405 | ; | |
18406 | return 0; | |
18407 | } | |
18408 | _ACEOF | |
18409 | rm -f conftest.$ac_objext | |
18410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18412 | ac_status=$? |
ac1cb8d3 VS |
18413 | grep -v '^ *+' conftest.er1 >conftest.err |
18414 | rm -f conftest.er1 | |
18415 | cat conftest.err >&5 | |
a848cd7e SC |
18416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18417 | (exit $ac_status); } && | |
6ebeb4c7 | 18418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18420 | (eval $ac_try) 2>&5 | |
18421 | ac_status=$? | |
18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18423 | (exit $ac_status); }; } && | |
18424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18426 | (eval $ac_try) 2>&5 | |
18427 | ac_status=$? | |
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18429 | (exit $ac_status); }; }; then | |
18430 | ac_hi=$ac_mid; break | |
18431 | else | |
18432 | echo "$as_me: failed program was:" >&5 | |
18433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18434 | ||
18435 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18436 | if test $ac_lo -le $ac_mid; then |
18437 | ac_lo= ac_hi= | |
18438 | break | |
18439 | fi | |
18440 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18441 | fi |
ac1cb8d3 | 18442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18443 | done |
18444 | else | |
18445 | echo "$as_me: failed program was:" >&5 | |
18446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18447 | ||
18448 | cat >conftest.$ac_ext <<_ACEOF | |
18449 | /* confdefs.h. */ | |
18450 | _ACEOF | |
18451 | cat confdefs.h >>conftest.$ac_ext | |
18452 | cat >>conftest.$ac_ext <<_ACEOF | |
18453 | /* end confdefs.h. */ | |
18454 | $ac_includes_default | |
18455 | int | |
18456 | main () | |
18457 | { | |
18458 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18459 | test_array [0] = 0 | |
18460 | ||
18461 | ; | |
18462 | return 0; | |
18463 | } | |
18464 | _ACEOF | |
18465 | rm -f conftest.$ac_objext | |
18466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18467 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18468 | ac_status=$? |
ac1cb8d3 VS |
18469 | grep -v '^ *+' conftest.er1 >conftest.err |
18470 | rm -f conftest.er1 | |
18471 | cat conftest.err >&5 | |
a848cd7e SC |
18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18473 | (exit $ac_status); } && | |
6ebeb4c7 | 18474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18476 | (eval $ac_try) 2>&5 | |
18477 | ac_status=$? | |
18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18479 | (exit $ac_status); }; } && | |
18480 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18482 | (eval $ac_try) 2>&5 | |
18483 | ac_status=$? | |
18484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18485 | (exit $ac_status); }; }; then | |
18486 | ac_hi=-1 ac_mid=-1 | |
18487 | while :; do | |
18488 | cat >conftest.$ac_ext <<_ACEOF | |
18489 | /* confdefs.h. */ | |
18490 | _ACEOF | |
18491 | cat confdefs.h >>conftest.$ac_ext | |
18492 | cat >>conftest.$ac_ext <<_ACEOF | |
18493 | /* end confdefs.h. */ | |
18494 | $ac_includes_default | |
18495 | int | |
18496 | main () | |
18497 | { | |
18498 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18499 | test_array [0] = 0 | |
18500 | ||
18501 | ; | |
18502 | return 0; | |
18503 | } | |
18504 | _ACEOF | |
18505 | rm -f conftest.$ac_objext | |
18506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18507 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18508 | ac_status=$? |
ac1cb8d3 VS |
18509 | grep -v '^ *+' conftest.er1 >conftest.err |
18510 | rm -f conftest.er1 | |
18511 | cat conftest.err >&5 | |
a848cd7e SC |
18512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18513 | (exit $ac_status); } && | |
6ebeb4c7 | 18514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18516 | (eval $ac_try) 2>&5 | |
18517 | ac_status=$? | |
18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18519 | (exit $ac_status); }; } && | |
18520 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18522 | (eval $ac_try) 2>&5 | |
18523 | ac_status=$? | |
18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18525 | (exit $ac_status); }; }; then | |
18526 | ac_lo=$ac_mid; break | |
18527 | else | |
18528 | echo "$as_me: failed program was:" >&5 | |
18529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18530 | ||
18531 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18532 | if test $ac_mid -le $ac_hi; then |
18533 | ac_lo= ac_hi= | |
18534 | break | |
18535 | fi | |
18536 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18537 | fi |
ac1cb8d3 | 18538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18539 | done |
18540 | else | |
18541 | echo "$as_me: failed program was:" >&5 | |
18542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18543 | ||
18544 | ac_lo= ac_hi= | |
18545 | fi | |
ac1cb8d3 | 18546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18547 | fi |
ac1cb8d3 | 18548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18549 | # Binary search between lo and hi bounds. |
18550 | while test "x$ac_lo" != "x$ac_hi"; do | |
18551 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18552 | cat >conftest.$ac_ext <<_ACEOF | |
18553 | /* confdefs.h. */ | |
18554 | _ACEOF | |
18555 | cat confdefs.h >>conftest.$ac_ext | |
18556 | cat >>conftest.$ac_ext <<_ACEOF | |
18557 | /* end confdefs.h. */ | |
18558 | $ac_includes_default | |
18559 | int | |
18560 | main () | |
18561 | { | |
18562 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18563 | test_array [0] = 0 | |
18564 | ||
18565 | ; | |
18566 | return 0; | |
18567 | } | |
18568 | _ACEOF | |
18569 | rm -f conftest.$ac_objext | |
18570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18571 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18572 | ac_status=$? |
ac1cb8d3 VS |
18573 | grep -v '^ *+' conftest.er1 >conftest.err |
18574 | rm -f conftest.er1 | |
18575 | cat conftest.err >&5 | |
a848cd7e SC |
18576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18577 | (exit $ac_status); } && | |
6ebeb4c7 | 18578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18580 | (eval $ac_try) 2>&5 | |
18581 | ac_status=$? | |
18582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18583 | (exit $ac_status); }; } && | |
18584 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18586 | (eval $ac_try) 2>&5 | |
18587 | ac_status=$? | |
18588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18589 | (exit $ac_status); }; }; then | |
18590 | ac_hi=$ac_mid | |
18591 | else | |
18592 | echo "$as_me: failed program was:" >&5 | |
18593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18594 | ||
18595 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18596 | fi | |
ac1cb8d3 | 18597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18598 | done |
18599 | case $ac_lo in | |
18600 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18601 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18602 | See \`config.log' for more details." >&5 | |
18603 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18604 | See \`config.log' for more details." >&2;} | |
18605 | { (exit 1); exit 1; }; } ;; | |
18606 | esac | |
18607 | else | |
18608 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
18609 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18610 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18611 | { (exit 1); exit 1; }; } |
18612 | else | |
18613 | cat >conftest.$ac_ext <<_ACEOF | |
18614 | /* confdefs.h. */ | |
18615 | _ACEOF | |
18616 | cat confdefs.h >>conftest.$ac_ext | |
18617 | cat >>conftest.$ac_ext <<_ACEOF | |
18618 | /* end confdefs.h. */ | |
18619 | $ac_includes_default | |
18620 | long longval () { return (long) (sizeof (long long)); } | |
18621 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18622 | #include <stdio.h> | |
18623 | #include <stdlib.h> | |
18624 | int | |
18625 | main () | |
18626 | { | |
18627 | ||
18628 | FILE *f = fopen ("conftest.val", "w"); | |
18629 | if (! f) | |
18630 | exit (1); | |
18631 | if (((long) (sizeof (long long))) < 0) | |
18632 | { | |
18633 | long i = longval (); | |
18634 | if (i != ((long) (sizeof (long long)))) | |
18635 | exit (1); | |
18636 | fprintf (f, "%ld\n", i); | |
18637 | } | |
18638 | else | |
18639 | { | |
18640 | unsigned long i = ulongval (); | |
18641 | if (i != ((long) (sizeof (long long)))) | |
18642 | exit (1); | |
18643 | fprintf (f, "%lu\n", i); | |
18644 | } | |
18645 | exit (ferror (f) || fclose (f) != 0); | |
18646 | ||
18647 | ; | |
18648 | return 0; | |
18649 | } | |
18650 | _ACEOF | |
18651 | rm -f conftest$ac_exeext | |
18652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18653 | (eval $ac_link) 2>&5 | |
18654 | ac_status=$? | |
18655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18656 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18658 | (eval $ac_try) 2>&5 | |
18659 | ac_status=$? | |
18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18661 | (exit $ac_status); }; }; then | |
18662 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18663 | else | |
18664 | echo "$as_me: program exited with status $ac_status" >&5 | |
18665 | echo "$as_me: failed program was:" >&5 | |
18666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18667 | ||
18668 | ( exit $ac_status ) | |
18669 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18670 | See \`config.log' for more details." >&5 | |
18671 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18672 | See \`config.log' for more details." >&2;} | |
18673 | { (exit 1); exit 1; }; } | |
18674 | fi | |
ac1cb8d3 | 18675 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18676 | fi |
18677 | fi | |
18678 | rm -f conftest.val | |
18679 | else | |
18680 | ac_cv_sizeof_long_long=0 | |
18681 | fi | |
18682 | fi | |
18683 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18684 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18685 | cat >>confdefs.h <<_ACEOF | |
18686 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18687 | _ACEOF | |
18688 | ||
18689 | ||
18690 | ;; | |
18691 | *-hp-hpux* ) | |
18692 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18693 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18694 | if test "${ac_cv_type_long_long+set}" = set; then | |
18695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18696 | else | |
18697 | cat >conftest.$ac_ext <<_ACEOF | |
18698 | /* confdefs.h. */ | |
18699 | _ACEOF | |
18700 | cat confdefs.h >>conftest.$ac_ext | |
18701 | cat >>conftest.$ac_ext <<_ACEOF | |
18702 | /* end confdefs.h. */ | |
18703 | $ac_includes_default | |
18704 | int | |
18705 | main () | |
18706 | { | |
18707 | if ((long long *) 0) | |
18708 | return 0; | |
18709 | if (sizeof (long long)) | |
18710 | return 0; | |
18711 | ; | |
18712 | return 0; | |
18713 | } | |
18714 | _ACEOF | |
18715 | rm -f conftest.$ac_objext | |
18716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18718 | ac_status=$? |
ac1cb8d3 VS |
18719 | grep -v '^ *+' conftest.er1 >conftest.err |
18720 | rm -f conftest.er1 | |
18721 | cat conftest.err >&5 | |
a848cd7e SC |
18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18723 | (exit $ac_status); } && | |
6ebeb4c7 | 18724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18726 | (eval $ac_try) 2>&5 | |
18727 | ac_status=$? | |
18728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18729 | (exit $ac_status); }; } && | |
18730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18732 | (eval $ac_try) 2>&5 | |
18733 | ac_status=$? | |
18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18735 | (exit $ac_status); }; }; then | |
18736 | ac_cv_type_long_long=yes | |
18737 | else | |
18738 | echo "$as_me: failed program was:" >&5 | |
18739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18740 | ||
18741 | ac_cv_type_long_long=no | |
18742 | fi | |
ac1cb8d3 | 18743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18744 | fi |
18745 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18746 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18747 | ||
18748 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18749 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18750 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18752 | else | |
18753 | if test "$ac_cv_type_long_long" = yes; then | |
18754 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18755 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18756 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18757 | # This bug is HP SR number 8606223364. | |
18758 | if test "$cross_compiling" = yes; then | |
18759 | # Depending upon the size, compute the lo and hi bounds. | |
18760 | cat >conftest.$ac_ext <<_ACEOF | |
18761 | /* confdefs.h. */ | |
18762 | _ACEOF | |
18763 | cat confdefs.h >>conftest.$ac_ext | |
18764 | cat >>conftest.$ac_ext <<_ACEOF | |
18765 | /* end confdefs.h. */ | |
18766 | $ac_includes_default | |
18767 | int | |
18768 | main () | |
18769 | { | |
18770 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18771 | test_array [0] = 0 | |
18772 | ||
18773 | ; | |
18774 | return 0; | |
18775 | } | |
18776 | _ACEOF | |
18777 | rm -f conftest.$ac_objext | |
18778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18780 | ac_status=$? |
ac1cb8d3 VS |
18781 | grep -v '^ *+' conftest.er1 >conftest.err |
18782 | rm -f conftest.er1 | |
18783 | cat conftest.err >&5 | |
a848cd7e SC |
18784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18785 | (exit $ac_status); } && | |
6ebeb4c7 | 18786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18788 | (eval $ac_try) 2>&5 | |
18789 | ac_status=$? | |
18790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18791 | (exit $ac_status); }; } && | |
18792 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18794 | (eval $ac_try) 2>&5 | |
18795 | ac_status=$? | |
18796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18797 | (exit $ac_status); }; }; then | |
18798 | ac_lo=0 ac_mid=0 | |
18799 | while :; do | |
18800 | cat >conftest.$ac_ext <<_ACEOF | |
18801 | /* confdefs.h. */ | |
18802 | _ACEOF | |
18803 | cat confdefs.h >>conftest.$ac_ext | |
18804 | cat >>conftest.$ac_ext <<_ACEOF | |
18805 | /* end confdefs.h. */ | |
18806 | $ac_includes_default | |
18807 | int | |
18808 | main () | |
18809 | { | |
18810 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18811 | test_array [0] = 0 | |
18812 | ||
18813 | ; | |
18814 | return 0; | |
18815 | } | |
18816 | _ACEOF | |
18817 | rm -f conftest.$ac_objext | |
18818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18819 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18820 | ac_status=$? |
ac1cb8d3 VS |
18821 | grep -v '^ *+' conftest.er1 >conftest.err |
18822 | rm -f conftest.er1 | |
18823 | cat conftest.err >&5 | |
a848cd7e SC |
18824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18825 | (exit $ac_status); } && | |
6ebeb4c7 | 18826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18828 | (eval $ac_try) 2>&5 | |
18829 | ac_status=$? | |
18830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18831 | (exit $ac_status); }; } && | |
18832 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18834 | (eval $ac_try) 2>&5 | |
18835 | ac_status=$? | |
18836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18837 | (exit $ac_status); }; }; then | |
18838 | ac_hi=$ac_mid; break | |
18839 | else | |
18840 | echo "$as_me: failed program was:" >&5 | |
18841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18842 | ||
18843 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18844 | if test $ac_lo -le $ac_mid; then |
18845 | ac_lo= ac_hi= | |
18846 | break | |
18847 | fi | |
18848 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18849 | fi |
ac1cb8d3 | 18850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18851 | done |
18852 | else | |
18853 | echo "$as_me: failed program was:" >&5 | |
18854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18855 | ||
18856 | cat >conftest.$ac_ext <<_ACEOF | |
18857 | /* confdefs.h. */ | |
18858 | _ACEOF | |
18859 | cat confdefs.h >>conftest.$ac_ext | |
18860 | cat >>conftest.$ac_ext <<_ACEOF | |
18861 | /* end confdefs.h. */ | |
18862 | $ac_includes_default | |
18863 | int | |
18864 | main () | |
18865 | { | |
18866 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18867 | test_array [0] = 0 | |
18868 | ||
18869 | ; | |
18870 | return 0; | |
18871 | } | |
18872 | _ACEOF | |
18873 | rm -f conftest.$ac_objext | |
18874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18876 | ac_status=$? |
ac1cb8d3 VS |
18877 | grep -v '^ *+' conftest.er1 >conftest.err |
18878 | rm -f conftest.er1 | |
18879 | cat conftest.err >&5 | |
a848cd7e SC |
18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18881 | (exit $ac_status); } && | |
6ebeb4c7 | 18882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18884 | (eval $ac_try) 2>&5 | |
18885 | ac_status=$? | |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18887 | (exit $ac_status); }; } && | |
18888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18890 | (eval $ac_try) 2>&5 | |
18891 | ac_status=$? | |
18892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18893 | (exit $ac_status); }; }; then | |
18894 | ac_hi=-1 ac_mid=-1 | |
18895 | while :; do | |
18896 | cat >conftest.$ac_ext <<_ACEOF | |
18897 | /* confdefs.h. */ | |
18898 | _ACEOF | |
18899 | cat confdefs.h >>conftest.$ac_ext | |
18900 | cat >>conftest.$ac_ext <<_ACEOF | |
18901 | /* end confdefs.h. */ | |
18902 | $ac_includes_default | |
18903 | int | |
18904 | main () | |
18905 | { | |
18906 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18907 | test_array [0] = 0 | |
18908 | ||
18909 | ; | |
18910 | return 0; | |
18911 | } | |
18912 | _ACEOF | |
18913 | rm -f conftest.$ac_objext | |
18914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18916 | ac_status=$? |
ac1cb8d3 VS |
18917 | grep -v '^ *+' conftest.er1 >conftest.err |
18918 | rm -f conftest.er1 | |
18919 | cat conftest.err >&5 | |
a848cd7e SC |
18920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18921 | (exit $ac_status); } && | |
6ebeb4c7 | 18922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18924 | (eval $ac_try) 2>&5 | |
18925 | ac_status=$? | |
18926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18927 | (exit $ac_status); }; } && | |
18928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18930 | (eval $ac_try) 2>&5 | |
18931 | ac_status=$? | |
18932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18933 | (exit $ac_status); }; }; then | |
18934 | ac_lo=$ac_mid; break | |
18935 | else | |
18936 | echo "$as_me: failed program was:" >&5 | |
18937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18938 | ||
18939 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18940 | if test $ac_mid -le $ac_hi; then |
18941 | ac_lo= ac_hi= | |
18942 | break | |
18943 | fi | |
18944 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18945 | fi |
ac1cb8d3 | 18946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18947 | done |
18948 | else | |
18949 | echo "$as_me: failed program was:" >&5 | |
18950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18951 | ||
18952 | ac_lo= ac_hi= | |
18953 | fi | |
ac1cb8d3 | 18954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18955 | fi |
ac1cb8d3 | 18956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18957 | # Binary search between lo and hi bounds. |
18958 | while test "x$ac_lo" != "x$ac_hi"; do | |
18959 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18960 | cat >conftest.$ac_ext <<_ACEOF | |
18961 | /* confdefs.h. */ | |
18962 | _ACEOF | |
18963 | cat confdefs.h >>conftest.$ac_ext | |
18964 | cat >>conftest.$ac_ext <<_ACEOF | |
18965 | /* end confdefs.h. */ | |
18966 | $ac_includes_default | |
18967 | int | |
18968 | main () | |
18969 | { | |
18970 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18971 | test_array [0] = 0 | |
18972 | ||
18973 | ; | |
18974 | return 0; | |
18975 | } | |
18976 | _ACEOF | |
18977 | rm -f conftest.$ac_objext | |
18978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18980 | ac_status=$? |
ac1cb8d3 VS |
18981 | grep -v '^ *+' conftest.er1 >conftest.err |
18982 | rm -f conftest.er1 | |
18983 | cat conftest.err >&5 | |
a848cd7e SC |
18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18985 | (exit $ac_status); } && | |
6ebeb4c7 | 18986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18988 | (eval $ac_try) 2>&5 | |
18989 | ac_status=$? | |
18990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18991 | (exit $ac_status); }; } && | |
18992 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18994 | (eval $ac_try) 2>&5 | |
18995 | ac_status=$? | |
18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18997 | (exit $ac_status); }; }; then | |
18998 | ac_hi=$ac_mid | |
18999 | else | |
19000 | echo "$as_me: failed program was:" >&5 | |
19001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19002 | ||
19003 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19004 | fi | |
ac1cb8d3 | 19005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19006 | done |
19007 | case $ac_lo in | |
19008 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19009 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19010 | See \`config.log' for more details." >&5 | |
19011 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19012 | See \`config.log' for more details." >&2;} | |
19013 | { (exit 1); exit 1; }; } ;; | |
19014 | esac | |
19015 | else | |
19016 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19017 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19018 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19019 | { (exit 1); exit 1; }; } |
19020 | else | |
19021 | cat >conftest.$ac_ext <<_ACEOF | |
19022 | /* confdefs.h. */ | |
19023 | _ACEOF | |
19024 | cat confdefs.h >>conftest.$ac_ext | |
19025 | cat >>conftest.$ac_ext <<_ACEOF | |
19026 | /* end confdefs.h. */ | |
19027 | $ac_includes_default | |
19028 | long longval () { return (long) (sizeof (long long)); } | |
19029 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19030 | #include <stdio.h> | |
19031 | #include <stdlib.h> | |
19032 | int | |
19033 | main () | |
19034 | { | |
19035 | ||
19036 | FILE *f = fopen ("conftest.val", "w"); | |
19037 | if (! f) | |
19038 | exit (1); | |
19039 | if (((long) (sizeof (long long))) < 0) | |
19040 | { | |
19041 | long i = longval (); | |
19042 | if (i != ((long) (sizeof (long long)))) | |
19043 | exit (1); | |
19044 | fprintf (f, "%ld\n", i); | |
19045 | } | |
19046 | else | |
19047 | { | |
19048 | unsigned long i = ulongval (); | |
19049 | if (i != ((long) (sizeof (long long)))) | |
19050 | exit (1); | |
19051 | fprintf (f, "%lu\n", i); | |
19052 | } | |
19053 | exit (ferror (f) || fclose (f) != 0); | |
19054 | ||
19055 | ; | |
19056 | return 0; | |
19057 | } | |
19058 | _ACEOF | |
19059 | rm -f conftest$ac_exeext | |
19060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19061 | (eval $ac_link) 2>&5 | |
19062 | ac_status=$? | |
19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19066 | (eval $ac_try) 2>&5 | |
19067 | ac_status=$? | |
19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19069 | (exit $ac_status); }; }; then | |
19070 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19071 | else | |
19072 | echo "$as_me: program exited with status $ac_status" >&5 | |
19073 | echo "$as_me: failed program was:" >&5 | |
19074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19075 | ||
19076 | ( exit $ac_status ) | |
19077 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19078 | See \`config.log' for more details." >&5 | |
19079 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19080 | See \`config.log' for more details." >&2;} | |
19081 | { (exit 1); exit 1; }; } | |
19082 | fi | |
ac1cb8d3 | 19083 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19084 | fi |
19085 | fi | |
19086 | rm -f conftest.val | |
19087 | else | |
19088 | ac_cv_sizeof_long_long=0 | |
19089 | fi | |
19090 | fi | |
19091 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19092 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19093 | cat >>confdefs.h <<_ACEOF | |
19094 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19095 | _ACEOF | |
19096 | ||
19097 | ||
19098 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
19099 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
19100 | fi | |
19101 | ;; | |
19102 | * ) | |
19103 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19104 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19105 | if test "${ac_cv_type_long_long+set}" = set; then | |
19106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19107 | else | |
19108 | cat >conftest.$ac_ext <<_ACEOF | |
19109 | /* confdefs.h. */ | |
19110 | _ACEOF | |
19111 | cat confdefs.h >>conftest.$ac_ext | |
19112 | cat >>conftest.$ac_ext <<_ACEOF | |
19113 | /* end confdefs.h. */ | |
19114 | $ac_includes_default | |
19115 | int | |
19116 | main () | |
19117 | { | |
19118 | if ((long long *) 0) | |
19119 | return 0; | |
19120 | if (sizeof (long long)) | |
19121 | return 0; | |
19122 | ; | |
19123 | return 0; | |
19124 | } | |
19125 | _ACEOF | |
19126 | rm -f conftest.$ac_objext | |
19127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19129 | ac_status=$? |
ac1cb8d3 VS |
19130 | grep -v '^ *+' conftest.er1 >conftest.err |
19131 | rm -f conftest.er1 | |
19132 | cat conftest.err >&5 | |
a848cd7e SC |
19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19134 | (exit $ac_status); } && | |
6ebeb4c7 | 19135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19137 | (eval $ac_try) 2>&5 | |
19138 | ac_status=$? | |
19139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19140 | (exit $ac_status); }; } && | |
19141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19143 | (eval $ac_try) 2>&5 | |
19144 | ac_status=$? | |
19145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19146 | (exit $ac_status); }; }; then | |
19147 | ac_cv_type_long_long=yes | |
19148 | else | |
19149 | echo "$as_me: failed program was:" >&5 | |
19150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19151 | ||
19152 | ac_cv_type_long_long=no | |
19153 | fi | |
ac1cb8d3 | 19154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19155 | fi |
19156 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19157 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19158 | ||
19159 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19160 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19161 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19163 | else | |
19164 | if test "$ac_cv_type_long_long" = yes; then | |
19165 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19166 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19167 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19168 | # This bug is HP SR number 8606223364. | |
19169 | if test "$cross_compiling" = yes; then | |
19170 | # Depending upon the size, compute the lo and hi bounds. | |
19171 | cat >conftest.$ac_ext <<_ACEOF | |
19172 | /* confdefs.h. */ | |
19173 | _ACEOF | |
19174 | cat confdefs.h >>conftest.$ac_ext | |
19175 | cat >>conftest.$ac_ext <<_ACEOF | |
19176 | /* end confdefs.h. */ | |
19177 | $ac_includes_default | |
19178 | int | |
19179 | main () | |
19180 | { | |
19181 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19182 | test_array [0] = 0 | |
19183 | ||
19184 | ; | |
19185 | return 0; | |
19186 | } | |
19187 | _ACEOF | |
19188 | rm -f conftest.$ac_objext | |
19189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19191 | ac_status=$? |
ac1cb8d3 VS |
19192 | grep -v '^ *+' conftest.er1 >conftest.err |
19193 | rm -f conftest.er1 | |
19194 | cat conftest.err >&5 | |
a848cd7e SC |
19195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19196 | (exit $ac_status); } && | |
6ebeb4c7 | 19197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19199 | (eval $ac_try) 2>&5 | |
19200 | ac_status=$? | |
19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19202 | (exit $ac_status); }; } && | |
19203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19205 | (eval $ac_try) 2>&5 | |
19206 | ac_status=$? | |
19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19208 | (exit $ac_status); }; }; then | |
19209 | ac_lo=0 ac_mid=0 | |
19210 | while :; do | |
19211 | cat >conftest.$ac_ext <<_ACEOF | |
19212 | /* confdefs.h. */ | |
19213 | _ACEOF | |
19214 | cat confdefs.h >>conftest.$ac_ext | |
19215 | cat >>conftest.$ac_ext <<_ACEOF | |
19216 | /* end confdefs.h. */ | |
19217 | $ac_includes_default | |
19218 | int | |
19219 | main () | |
19220 | { | |
19221 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19222 | test_array [0] = 0 | |
19223 | ||
19224 | ; | |
19225 | return 0; | |
19226 | } | |
19227 | _ACEOF | |
19228 | rm -f conftest.$ac_objext | |
19229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19230 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19231 | ac_status=$? |
ac1cb8d3 VS |
19232 | grep -v '^ *+' conftest.er1 >conftest.err |
19233 | rm -f conftest.er1 | |
19234 | cat conftest.err >&5 | |
a848cd7e SC |
19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19236 | (exit $ac_status); } && | |
6ebeb4c7 | 19237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19239 | (eval $ac_try) 2>&5 | |
19240 | ac_status=$? | |
19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19242 | (exit $ac_status); }; } && | |
19243 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19245 | (eval $ac_try) 2>&5 | |
19246 | ac_status=$? | |
19247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19248 | (exit $ac_status); }; }; then | |
19249 | ac_hi=$ac_mid; break | |
19250 | else | |
19251 | echo "$as_me: failed program was:" >&5 | |
19252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19253 | ||
19254 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19255 | if test $ac_lo -le $ac_mid; then |
19256 | ac_lo= ac_hi= | |
19257 | break | |
19258 | fi | |
19259 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19260 | fi |
ac1cb8d3 | 19261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19262 | done |
19263 | else | |
19264 | echo "$as_me: failed program was:" >&5 | |
19265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19266 | ||
19267 | cat >conftest.$ac_ext <<_ACEOF | |
19268 | /* confdefs.h. */ | |
19269 | _ACEOF | |
19270 | cat confdefs.h >>conftest.$ac_ext | |
19271 | cat >>conftest.$ac_ext <<_ACEOF | |
19272 | /* end confdefs.h. */ | |
19273 | $ac_includes_default | |
19274 | int | |
19275 | main () | |
19276 | { | |
19277 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19278 | test_array [0] = 0 | |
19279 | ||
19280 | ; | |
19281 | return 0; | |
19282 | } | |
19283 | _ACEOF | |
19284 | rm -f conftest.$ac_objext | |
19285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19287 | ac_status=$? |
ac1cb8d3 VS |
19288 | grep -v '^ *+' conftest.er1 >conftest.err |
19289 | rm -f conftest.er1 | |
19290 | cat conftest.err >&5 | |
a848cd7e SC |
19291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19292 | (exit $ac_status); } && | |
6ebeb4c7 | 19293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19295 | (eval $ac_try) 2>&5 | |
19296 | ac_status=$? | |
19297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19298 | (exit $ac_status); }; } && | |
19299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19301 | (eval $ac_try) 2>&5 | |
19302 | ac_status=$? | |
19303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19304 | (exit $ac_status); }; }; then | |
19305 | ac_hi=-1 ac_mid=-1 | |
19306 | while :; do | |
19307 | cat >conftest.$ac_ext <<_ACEOF | |
19308 | /* confdefs.h. */ | |
19309 | _ACEOF | |
19310 | cat confdefs.h >>conftest.$ac_ext | |
19311 | cat >>conftest.$ac_ext <<_ACEOF | |
19312 | /* end confdefs.h. */ | |
19313 | $ac_includes_default | |
19314 | int | |
19315 | main () | |
19316 | { | |
19317 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19318 | test_array [0] = 0 | |
19319 | ||
19320 | ; | |
19321 | return 0; | |
19322 | } | |
19323 | _ACEOF | |
19324 | rm -f conftest.$ac_objext | |
19325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19326 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19327 | ac_status=$? |
ac1cb8d3 VS |
19328 | grep -v '^ *+' conftest.er1 >conftest.err |
19329 | rm -f conftest.er1 | |
19330 | cat conftest.err >&5 | |
a848cd7e SC |
19331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19332 | (exit $ac_status); } && | |
6ebeb4c7 | 19333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19335 | (eval $ac_try) 2>&5 | |
19336 | ac_status=$? | |
19337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19338 | (exit $ac_status); }; } && | |
19339 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19341 | (eval $ac_try) 2>&5 | |
19342 | ac_status=$? | |
19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19344 | (exit $ac_status); }; }; then | |
19345 | ac_lo=$ac_mid; break | |
19346 | else | |
19347 | echo "$as_me: failed program was:" >&5 | |
19348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19349 | ||
19350 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19351 | if test $ac_mid -le $ac_hi; then |
19352 | ac_lo= ac_hi= | |
19353 | break | |
19354 | fi | |
19355 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19356 | fi |
ac1cb8d3 | 19357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19358 | done |
19359 | else | |
19360 | echo "$as_me: failed program was:" >&5 | |
19361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19362 | ||
19363 | ac_lo= ac_hi= | |
19364 | fi | |
ac1cb8d3 | 19365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19366 | fi |
ac1cb8d3 | 19367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19368 | # Binary search between lo and hi bounds. |
19369 | while test "x$ac_lo" != "x$ac_hi"; do | |
19370 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19371 | cat >conftest.$ac_ext <<_ACEOF | |
19372 | /* confdefs.h. */ | |
19373 | _ACEOF | |
19374 | cat confdefs.h >>conftest.$ac_ext | |
19375 | cat >>conftest.$ac_ext <<_ACEOF | |
19376 | /* end confdefs.h. */ | |
19377 | $ac_includes_default | |
19378 | int | |
19379 | main () | |
19380 | { | |
19381 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19382 | test_array [0] = 0 | |
19383 | ||
19384 | ; | |
19385 | return 0; | |
19386 | } | |
19387 | _ACEOF | |
19388 | rm -f conftest.$ac_objext | |
19389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19391 | ac_status=$? |
ac1cb8d3 VS |
19392 | grep -v '^ *+' conftest.er1 >conftest.err |
19393 | rm -f conftest.er1 | |
19394 | cat conftest.err >&5 | |
a848cd7e SC |
19395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19396 | (exit $ac_status); } && | |
6ebeb4c7 | 19397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19399 | (eval $ac_try) 2>&5 | |
19400 | ac_status=$? | |
19401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19402 | (exit $ac_status); }; } && | |
19403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19405 | (eval $ac_try) 2>&5 | |
19406 | ac_status=$? | |
19407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19408 | (exit $ac_status); }; }; then | |
19409 | ac_hi=$ac_mid | |
19410 | else | |
19411 | echo "$as_me: failed program was:" >&5 | |
19412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19413 | ||
19414 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19415 | fi | |
ac1cb8d3 | 19416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19417 | done |
19418 | case $ac_lo in | |
19419 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19420 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19421 | See \`config.log' for more details." >&5 | |
19422 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19423 | See \`config.log' for more details." >&2;} | |
19424 | { (exit 1); exit 1; }; } ;; | |
19425 | esac | |
19426 | else | |
19427 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19428 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19429 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19430 | { (exit 1); exit 1; }; } |
19431 | else | |
19432 | cat >conftest.$ac_ext <<_ACEOF | |
19433 | /* confdefs.h. */ | |
19434 | _ACEOF | |
19435 | cat confdefs.h >>conftest.$ac_ext | |
19436 | cat >>conftest.$ac_ext <<_ACEOF | |
19437 | /* end confdefs.h. */ | |
19438 | $ac_includes_default | |
19439 | long longval () { return (long) (sizeof (long long)); } | |
19440 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19441 | #include <stdio.h> | |
19442 | #include <stdlib.h> | |
19443 | int | |
19444 | main () | |
19445 | { | |
19446 | ||
19447 | FILE *f = fopen ("conftest.val", "w"); | |
19448 | if (! f) | |
19449 | exit (1); | |
19450 | if (((long) (sizeof (long long))) < 0) | |
19451 | { | |
19452 | long i = longval (); | |
19453 | if (i != ((long) (sizeof (long long)))) | |
19454 | exit (1); | |
19455 | fprintf (f, "%ld\n", i); | |
19456 | } | |
19457 | else | |
19458 | { | |
19459 | unsigned long i = ulongval (); | |
19460 | if (i != ((long) (sizeof (long long)))) | |
19461 | exit (1); | |
19462 | fprintf (f, "%lu\n", i); | |
19463 | } | |
19464 | exit (ferror (f) || fclose (f) != 0); | |
19465 | ||
19466 | ; | |
19467 | return 0; | |
19468 | } | |
19469 | _ACEOF | |
19470 | rm -f conftest$ac_exeext | |
19471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19472 | (eval $ac_link) 2>&5 | |
19473 | ac_status=$? | |
19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19475 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19477 | (eval $ac_try) 2>&5 | |
19478 | ac_status=$? | |
19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19480 | (exit $ac_status); }; }; then | |
19481 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19482 | else | |
19483 | echo "$as_me: program exited with status $ac_status" >&5 | |
19484 | echo "$as_me: failed program was:" >&5 | |
19485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19486 | ||
19487 | ( exit $ac_status ) | |
19488 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19489 | See \`config.log' for more details." >&5 | |
19490 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19491 | See \`config.log' for more details." >&2;} | |
19492 | { (exit 1); exit 1; }; } | |
19493 | fi | |
ac1cb8d3 | 19494 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19495 | fi |
19496 | fi | |
19497 | rm -f conftest.val | |
19498 | else | |
19499 | ac_cv_sizeof_long_long=0 | |
19500 | fi | |
19501 | fi | |
19502 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19503 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19504 | cat >>confdefs.h <<_ACEOF | |
19505 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19506 | _ACEOF | |
19507 | ||
19508 | ||
19509 | esac | |
19510 | ||
238ecede MW |
19511 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19512 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19513 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19515 | else | |
19516 | cat >conftest.$ac_ext <<_ACEOF | |
19517 | /* confdefs.h. */ | |
19518 | _ACEOF | |
19519 | cat confdefs.h >>conftest.$ac_ext | |
19520 | cat >>conftest.$ac_ext <<_ACEOF | |
19521 | /* end confdefs.h. */ | |
19522 | ||
83d8eb47 MW |
19523 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19524 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19525 | # error "fake wchar_t" |
19526 | #endif | |
19527 | #ifdef HAVE_WCHAR_H | |
19528 | # ifdef __CYGWIN__ | |
19529 | # include <stddef.h> | |
19530 | # endif | |
19531 | # include <wchar.h> | |
19532 | #endif | |
19533 | #ifdef HAVE_STDLIB_H | |
19534 | # include <stdlib.h> | |
19535 | #endif | |
19536 | #include <stdio.h> | |
19537 | ||
19538 | ||
19539 | ||
19540 | int | |
19541 | main () | |
19542 | { | |
19543 | if ((wchar_t *) 0) | |
19544 | return 0; | |
19545 | if (sizeof (wchar_t)) | |
19546 | return 0; | |
19547 | ; | |
19548 | return 0; | |
19549 | } | |
19550 | _ACEOF | |
19551 | rm -f conftest.$ac_objext | |
19552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19553 | (eval $ac_compile) 2>conftest.er1 | |
19554 | ac_status=$? | |
19555 | grep -v '^ *+' conftest.er1 >conftest.err | |
19556 | rm -f conftest.er1 | |
19557 | cat conftest.err >&5 | |
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' |
238ecede MW |
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' | |
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_cv_type_wchar_t=yes | |
19573 | else | |
19574 | echo "$as_me: failed program was:" >&5 | |
19575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19576 | ||
19577 | ac_cv_type_wchar_t=no | |
19578 | fi | |
19579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19580 | fi | |
19581 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19582 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19583 | ||
a848cd7e SC |
19584 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19585 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19586 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19588 | else | |
238ecede MW |
19589 | if test "$ac_cv_type_wchar_t" = yes; then |
19590 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19591 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19592 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19593 | # This bug is HP SR number 8606223364. | |
19594 | if test "$cross_compiling" = yes; then | |
19595 | # Depending upon the size, compute the lo and hi bounds. | |
19596 | cat >conftest.$ac_ext <<_ACEOF | |
19597 | /* confdefs.h. */ | |
19598 | _ACEOF | |
19599 | cat confdefs.h >>conftest.$ac_ext | |
19600 | cat >>conftest.$ac_ext <<_ACEOF | |
19601 | /* end confdefs.h. */ | |
19602 | ||
83d8eb47 MW |
19603 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19604 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19605 | # error "fake wchar_t" |
19606 | #endif | |
19607 | #ifdef HAVE_WCHAR_H | |
19608 | # ifdef __CYGWIN__ | |
19609 | # include <stddef.h> | |
19610 | # endif | |
19611 | # include <wchar.h> | |
19612 | #endif | |
19613 | #ifdef HAVE_STDLIB_H | |
19614 | # include <stdlib.h> | |
19615 | #endif | |
19616 | #include <stdio.h> | |
19617 | ||
19618 | ||
19619 | ||
19620 | int | |
19621 | main () | |
19622 | { | |
19623 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19624 | test_array [0] = 0 | |
19625 | ||
19626 | ; | |
19627 | return 0; | |
19628 | } | |
19629 | _ACEOF | |
19630 | rm -f conftest.$ac_objext | |
19631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19632 | (eval $ac_compile) 2>conftest.er1 | |
19633 | ac_status=$? | |
19634 | grep -v '^ *+' conftest.er1 >conftest.err | |
19635 | rm -f conftest.er1 | |
19636 | cat conftest.err >&5 | |
19637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19638 | (exit $ac_status); } && | |
6ebeb4c7 | 19639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19641 | (eval $ac_try) 2>&5 | |
19642 | ac_status=$? | |
19643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19644 | (exit $ac_status); }; } && | |
19645 | { ac_try='test -s conftest.$ac_objext' | |
19646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19647 | (eval $ac_try) 2>&5 | |
19648 | ac_status=$? | |
19649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19650 | (exit $ac_status); }; }; then | |
19651 | ac_lo=0 ac_mid=0 | |
19652 | while :; do | |
19653 | cat >conftest.$ac_ext <<_ACEOF | |
19654 | /* confdefs.h. */ | |
19655 | _ACEOF | |
19656 | cat confdefs.h >>conftest.$ac_ext | |
19657 | cat >>conftest.$ac_ext <<_ACEOF | |
19658 | /* end confdefs.h. */ | |
19659 | ||
83d8eb47 MW |
19660 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19661 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19662 | # error "fake wchar_t" |
19663 | #endif | |
19664 | #ifdef HAVE_WCHAR_H | |
19665 | # ifdef __CYGWIN__ | |
19666 | # include <stddef.h> | |
19667 | # endif | |
19668 | # include <wchar.h> | |
19669 | #endif | |
19670 | #ifdef HAVE_STDLIB_H | |
19671 | # include <stdlib.h> | |
19672 | #endif | |
19673 | #include <stdio.h> | |
19674 | ||
19675 | ||
19676 | ||
19677 | int | |
19678 | main () | |
19679 | { | |
19680 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19681 | test_array [0] = 0 | |
19682 | ||
19683 | ; | |
19684 | return 0; | |
19685 | } | |
19686 | _ACEOF | |
19687 | rm -f conftest.$ac_objext | |
19688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19689 | (eval $ac_compile) 2>conftest.er1 | |
19690 | ac_status=$? | |
19691 | grep -v '^ *+' conftest.er1 >conftest.err | |
19692 | rm -f conftest.er1 | |
19693 | cat conftest.err >&5 | |
19694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19695 | (exit $ac_status); } && | |
6ebeb4c7 | 19696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19698 | (eval $ac_try) 2>&5 | |
19699 | ac_status=$? | |
19700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19701 | (exit $ac_status); }; } && | |
19702 | { ac_try='test -s conftest.$ac_objext' | |
19703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19704 | (eval $ac_try) 2>&5 | |
19705 | ac_status=$? | |
19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19707 | (exit $ac_status); }; }; then | |
19708 | ac_hi=$ac_mid; break | |
19709 | else | |
19710 | echo "$as_me: failed program was:" >&5 | |
19711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19712 | ||
19713 | ac_lo=`expr $ac_mid + 1` | |
19714 | if test $ac_lo -le $ac_mid; then | |
19715 | ac_lo= ac_hi= | |
19716 | break | |
19717 | fi | |
19718 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19719 | fi | |
19720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19721 | done | |
19722 | else | |
19723 | echo "$as_me: failed program was:" >&5 | |
19724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19725 | ||
19726 | cat >conftest.$ac_ext <<_ACEOF | |
19727 | /* confdefs.h. */ | |
19728 | _ACEOF | |
19729 | cat confdefs.h >>conftest.$ac_ext | |
19730 | cat >>conftest.$ac_ext <<_ACEOF | |
19731 | /* end confdefs.h. */ | |
19732 | ||
83d8eb47 MW |
19733 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19734 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19735 | # error "fake wchar_t" |
19736 | #endif | |
19737 | #ifdef HAVE_WCHAR_H | |
19738 | # ifdef __CYGWIN__ | |
19739 | # include <stddef.h> | |
19740 | # endif | |
19741 | # include <wchar.h> | |
19742 | #endif | |
19743 | #ifdef HAVE_STDLIB_H | |
19744 | # include <stdlib.h> | |
19745 | #endif | |
19746 | #include <stdio.h> | |
19747 | ||
19748 | ||
19749 | ||
19750 | int | |
19751 | main () | |
19752 | { | |
19753 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19754 | test_array [0] = 0 | |
19755 | ||
19756 | ; | |
19757 | return 0; | |
19758 | } | |
19759 | _ACEOF | |
19760 | rm -f conftest.$ac_objext | |
19761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19762 | (eval $ac_compile) 2>conftest.er1 | |
19763 | ac_status=$? | |
19764 | grep -v '^ *+' conftest.er1 >conftest.err | |
19765 | rm -f conftest.er1 | |
19766 | cat conftest.err >&5 | |
19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19768 | (exit $ac_status); } && | |
6ebeb4c7 | 19769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19771 | (eval $ac_try) 2>&5 | |
19772 | ac_status=$? | |
19773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19774 | (exit $ac_status); }; } && | |
19775 | { ac_try='test -s conftest.$ac_objext' | |
19776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19777 | (eval $ac_try) 2>&5 | |
19778 | ac_status=$? | |
19779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19780 | (exit $ac_status); }; }; then | |
19781 | ac_hi=-1 ac_mid=-1 | |
19782 | while :; do | |
19783 | cat >conftest.$ac_ext <<_ACEOF | |
19784 | /* confdefs.h. */ | |
19785 | _ACEOF | |
19786 | cat confdefs.h >>conftest.$ac_ext | |
19787 | cat >>conftest.$ac_ext <<_ACEOF | |
19788 | /* end confdefs.h. */ | |
19789 | ||
83d8eb47 MW |
19790 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19791 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19792 | # error "fake wchar_t" |
19793 | #endif | |
19794 | #ifdef HAVE_WCHAR_H | |
19795 | # ifdef __CYGWIN__ | |
19796 | # include <stddef.h> | |
19797 | # endif | |
19798 | # include <wchar.h> | |
19799 | #endif | |
19800 | #ifdef HAVE_STDLIB_H | |
19801 | # include <stdlib.h> | |
19802 | #endif | |
19803 | #include <stdio.h> | |
19804 | ||
19805 | ||
19806 | ||
19807 | int | |
19808 | main () | |
19809 | { | |
19810 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19811 | test_array [0] = 0 | |
19812 | ||
19813 | ; | |
19814 | return 0; | |
19815 | } | |
19816 | _ACEOF | |
19817 | rm -f conftest.$ac_objext | |
19818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19819 | (eval $ac_compile) 2>conftest.er1 | |
19820 | ac_status=$? | |
19821 | grep -v '^ *+' conftest.er1 >conftest.err | |
19822 | rm -f conftest.er1 | |
19823 | cat conftest.err >&5 | |
19824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19825 | (exit $ac_status); } && | |
6ebeb4c7 | 19826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19828 | (eval $ac_try) 2>&5 | |
19829 | ac_status=$? | |
19830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19831 | (exit $ac_status); }; } && | |
19832 | { ac_try='test -s conftest.$ac_objext' | |
19833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19834 | (eval $ac_try) 2>&5 | |
19835 | ac_status=$? | |
19836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19837 | (exit $ac_status); }; }; then | |
19838 | ac_lo=$ac_mid; break | |
19839 | else | |
19840 | echo "$as_me: failed program was:" >&5 | |
19841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19842 | ||
19843 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19844 | if test $ac_mid -le $ac_hi; then | |
19845 | ac_lo= ac_hi= | |
19846 | break | |
19847 | fi | |
19848 | ac_mid=`expr 2 '*' $ac_mid` | |
19849 | fi | |
19850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19851 | done | |
19852 | else | |
19853 | echo "$as_me: failed program was:" >&5 | |
19854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19855 | ||
19856 | ac_lo= ac_hi= | |
19857 | fi | |
19858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19859 | fi | |
19860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19861 | # Binary search between lo and hi bounds. | |
19862 | while test "x$ac_lo" != "x$ac_hi"; do | |
19863 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19864 | cat >conftest.$ac_ext <<_ACEOF | |
19865 | /* confdefs.h. */ | |
19866 | _ACEOF | |
19867 | cat confdefs.h >>conftest.$ac_ext | |
19868 | cat >>conftest.$ac_ext <<_ACEOF | |
19869 | /* end confdefs.h. */ | |
19870 | ||
83d8eb47 MW |
19871 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19872 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19873 | # error "fake wchar_t" |
19874 | #endif | |
19875 | #ifdef HAVE_WCHAR_H | |
19876 | # ifdef __CYGWIN__ | |
19877 | # include <stddef.h> | |
19878 | # endif | |
19879 | # include <wchar.h> | |
19880 | #endif | |
19881 | #ifdef HAVE_STDLIB_H | |
19882 | # include <stdlib.h> | |
19883 | #endif | |
19884 | #include <stdio.h> | |
a848cd7e | 19885 | |
a848cd7e | 19886 | |
a848cd7e | 19887 | |
238ecede MW |
19888 | int |
19889 | main () | |
19890 | { | |
19891 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19892 | test_array [0] = 0 | |
a848cd7e | 19893 | |
238ecede MW |
19894 | ; |
19895 | return 0; | |
19896 | } | |
19897 | _ACEOF | |
19898 | rm -f conftest.$ac_objext | |
19899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19900 | (eval $ac_compile) 2>conftest.er1 | |
19901 | ac_status=$? | |
19902 | grep -v '^ *+' conftest.er1 >conftest.err | |
19903 | rm -f conftest.er1 | |
19904 | cat conftest.err >&5 | |
19905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19906 | (exit $ac_status); } && | |
6ebeb4c7 | 19907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19909 | (eval $ac_try) 2>&5 | |
19910 | ac_status=$? | |
19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19912 | (exit $ac_status); }; } && | |
19913 | { ac_try='test -s conftest.$ac_objext' | |
19914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19915 | (eval $ac_try) 2>&5 | |
19916 | ac_status=$? | |
19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19918 | (exit $ac_status); }; }; then | |
19919 | ac_hi=$ac_mid | |
19920 | else | |
19921 | echo "$as_me: failed program was:" >&5 | |
19922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19923 | ||
19924 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19925 | fi | |
19926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19927 | done | |
19928 | case $ac_lo in | |
19929 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
19930 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
19931 | See \`config.log' for more details." >&5 | |
19932 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19933 | See \`config.log' for more details." >&2;} | |
19934 | { (exit 1); exit 1; }; } ;; | |
19935 | esac | |
19936 | else | |
19937 | if test "$cross_compiling" = yes; then | |
6ebeb4c7 VZ |
19938 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19939 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 19940 | { (exit 1); exit 1; }; } |
a848cd7e SC |
19941 | else |
19942 | cat >conftest.$ac_ext <<_ACEOF | |
19943 | /* confdefs.h. */ | |
19944 | _ACEOF | |
19945 | cat confdefs.h >>conftest.$ac_ext | |
19946 | cat >>conftest.$ac_ext <<_ACEOF | |
19947 | /* end confdefs.h. */ | |
19948 | ||
83d8eb47 MW |
19949 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
19950 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
19951 | # error "fake wchar_t" |
19952 | #endif | |
19953 | #ifdef HAVE_WCHAR_H | |
19954 | # ifdef __CYGWIN__ | |
19955 | # include <stddef.h> | |
19956 | # endif | |
19957 | # include <wchar.h> | |
19958 | #endif | |
19959 | #ifdef HAVE_STDLIB_H | |
19960 | # include <stdlib.h> | |
19961 | #endif | |
19962 | #include <stdio.h> | |
19963 | ||
19964 | ||
19965 | ||
19966 | long longval () { return (long) (sizeof (wchar_t)); } | |
19967 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
19968 | #include <stdio.h> | |
19969 | #include <stdlib.h> | |
19970 | int | |
19971 | main () | |
19972 | { | |
a848cd7e | 19973 | |
238ecede MW |
19974 | FILE *f = fopen ("conftest.val", "w"); |
19975 | if (! f) | |
19976 | exit (1); | |
19977 | if (((long) (sizeof (wchar_t))) < 0) | |
19978 | { | |
19979 | long i = longval (); | |
19980 | if (i != ((long) (sizeof (wchar_t)))) | |
19981 | exit (1); | |
19982 | fprintf (f, "%ld\n", i); | |
19983 | } | |
19984 | else | |
19985 | { | |
19986 | unsigned long i = ulongval (); | |
19987 | if (i != ((long) (sizeof (wchar_t)))) | |
19988 | exit (1); | |
19989 | fprintf (f, "%lu\n", i); | |
19990 | } | |
19991 | exit (ferror (f) || fclose (f) != 0); | |
19992 | ||
19993 | ; | |
19994 | return 0; | |
19995 | } | |
a848cd7e SC |
19996 | _ACEOF |
19997 | rm -f conftest$ac_exeext | |
19998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19999 | (eval $ac_link) 2>&5 | |
20000 | ac_status=$? | |
20001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20002 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20004 | (eval $ac_try) 2>&5 | |
20005 | ac_status=$? | |
20006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20007 | (exit $ac_status); }; }; then | |
238ecede | 20008 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
20009 | else |
20010 | echo "$as_me: program exited with status $ac_status" >&5 | |
20011 | echo "$as_me: failed program was:" >&5 | |
20012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20013 | ||
20014 | ( exit $ac_status ) | |
238ecede MW |
20015 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
20016 | See \`config.log' for more details." >&5 | |
20017 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20018 | See \`config.log' for more details." >&2;} | |
20019 | { (exit 1); exit 1; }; } | |
a848cd7e | 20020 | fi |
ac1cb8d3 | 20021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20022 | fi |
a848cd7e | 20023 | fi |
238ecede MW |
20024 | rm -f conftest.val |
20025 | else | |
20026 | ac_cv_sizeof_wchar_t=0 | |
20027 | fi | |
20028 | fi | |
20029 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
20030 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 20031 | cat >>confdefs.h <<_ACEOF |
238ecede | 20032 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
20033 | _ACEOF |
20034 | ||
20035 | ||
47a7e797 MW |
20036 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
20037 | wxUSE_WCHAR_T=yes | |
20038 | else | |
20039 | wxUSE_WCHAR_T=no | |
20040 | fi | |
238ecede | 20041 | |
ba3d13e1 VZ |
20042 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
20043 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
20044 | if test "${wx_cv_func_va_copy+set}" = set; then | |
20045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20046 | else | |
20047 | ||
20048 | cat >conftest.$ac_ext <<_ACEOF | |
20049 | ||
20050 | #include <stdarg.h> | |
20051 | void foo(char *f, ...) | |
20052 | { | |
20053 | va_list ap1, ap2; | |
20054 | va_start(ap1, f); | |
20055 | va_copy(ap2, ap1); | |
20056 | va_end(ap2); | |
20057 | va_end(ap1); | |
20058 | } | |
5886b072 VZ |
20059 | int main() |
20060 | { | |
b902e639 VZ |
20061 | foo("hi", 17); |
20062 | return 0; | |
5886b072 | 20063 | } |
ba3d13e1 VZ |
20064 | _ACEOF |
20065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20067 | (eval $ac_link) 2>conftest.er1 | |
20068 | ac_status=$? | |
20069 | grep -v '^ *+' conftest.er1 >conftest.err | |
20070 | rm -f conftest.er1 | |
20071 | cat conftest.err >&5 | |
20072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20073 | (exit $ac_status); } && | |
6ebeb4c7 | 20074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
20075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20076 | (eval $ac_try) 2>&5 | |
20077 | ac_status=$? | |
20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20079 | (exit $ac_status); }; } && | |
20080 | { ac_try='test -s conftest$ac_exeext' | |
20081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20082 | (eval $ac_try) 2>&5 | |
20083 | ac_status=$? | |
20084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20085 | (exit $ac_status); }; }; then | |
20086 | wx_cv_func_va_copy=yes | |
20087 | else | |
20088 | echo "$as_me: failed program was:" >&5 | |
20089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20090 | ||
20091 | wx_cv_func_va_copy=no | |
20092 | ||
20093 | fi | |
20094 | rm -f conftest.err conftest.$ac_objext \ | |
20095 | conftest$ac_exeext conftest.$ac_ext | |
20096 | ||
20097 | ||
20098 | fi | |
20099 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
20100 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
20101 | ||
20102 | if test $wx_cv_func_va_copy = "yes"; then | |
20103 | cat >>confdefs.h <<\_ACEOF | |
20104 | #define HAVE_VA_COPY 1 | |
20105 | _ACEOF | |
20106 | ||
20107 | else | |
20108 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
20109 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
20110 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
20111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20112 | else | |
20113 | ||
20114 | if test "$cross_compiling" = yes; then | |
20115 | wx_cv_type_va_list_lvalue=yes | |
20116 | ||
20117 | else | |
20118 | cat >conftest.$ac_ext <<_ACEOF | |
20119 | ||
20120 | #include <stdarg.h> | |
20121 | int foo(char *f, ...) | |
20122 | { | |
20123 | va_list ap1, ap2; | |
20124 | va_start(ap1, f); | |
20125 | ap2 = ap1; | |
20126 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
20127 | return 1; | |
20128 | va_end(ap2); | |
20129 | va_end(ap1); | |
20130 | return 0; | |
20131 | } | |
20132 | int main() | |
20133 | { | |
20134 | return foo("hi", 17); | |
20135 | } | |
20136 | _ACEOF | |
20137 | rm -f conftest$ac_exeext | |
20138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20139 | (eval $ac_link) 2>&5 | |
20140 | ac_status=$? | |
20141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20142 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20144 | (eval $ac_try) 2>&5 | |
20145 | ac_status=$? | |
20146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20147 | (exit $ac_status); }; }; then | |
20148 | wx_cv_type_va_list_lvalue=yes | |
20149 | else | |
20150 | echo "$as_me: program exited with status $ac_status" >&5 | |
20151 | echo "$as_me: failed program was:" >&5 | |
20152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20153 | ||
20154 | ( exit $ac_status ) | |
20155 | wx_cv_type_va_list_lvalue=no | |
20156 | fi | |
20157 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20158 | fi | |
20159 | ||
20160 | ||
20161 | fi | |
20162 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
20163 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
20164 | ||
20165 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
20166 | cat >>confdefs.h <<\_ACEOF | |
20167 | #define VA_LIST_IS_ARRAY 1 | |
20168 | _ACEOF | |
20169 | ||
20170 | fi | |
20171 | fi | |
20172 | ||
a848cd7e SC |
20173 | # Check whether --enable-largefile or --disable-largefile was given. |
20174 | if test "${enable_largefile+set}" = set; then | |
20175 | enableval="$enable_largefile" | |
20176 | ||
20177 | fi; | |
20178 | if test "$enable_largefile" != no; then | |
20179 | wx_largefile=no | |
20180 | ||
20181 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20182 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20183 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
20184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20185 | else | |
20186 | ||
20187 | cat >conftest.$ac_ext <<_ACEOF | |
20188 | /* confdefs.h. */ | |
20189 | _ACEOF | |
20190 | cat confdefs.h >>conftest.$ac_ext | |
20191 | cat >>conftest.$ac_ext <<_ACEOF | |
20192 | /* end confdefs.h. */ | |
20193 | #define _FILE_OFFSET_BITS 64 | |
20194 | #include <sys/types.h> | |
20195 | int | |
20196 | main () | |
20197 | { | |
20198 | typedef struct { | |
20199 | unsigned int field: sizeof(off_t) == 8; | |
20200 | } wxlf; | |
20201 | ||
20202 | ; | |
20203 | return 0; | |
20204 | } | |
20205 | _ACEOF | |
20206 | rm -f conftest.$ac_objext | |
20207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20208 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20209 | ac_status=$? |
ac1cb8d3 VS |
20210 | grep -v '^ *+' conftest.er1 >conftest.err |
20211 | rm -f conftest.er1 | |
20212 | cat conftest.err >&5 | |
a848cd7e SC |
20213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20214 | (exit $ac_status); } && | |
6ebeb4c7 | 20215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20217 | (eval $ac_try) 2>&5 | |
20218 | ac_status=$? | |
20219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20220 | (exit $ac_status); }; } && | |
20221 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20223 | (eval $ac_try) 2>&5 | |
20224 | ac_status=$? | |
20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20226 | (exit $ac_status); }; }; then | |
20227 | ac_cv_sys_file_offset_bits=64 | |
20228 | else | |
20229 | echo "$as_me: failed program was:" >&5 | |
20230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20231 | ||
20232 | ac_cv_sys_file_offset_bits=no | |
20233 | fi | |
ac1cb8d3 | 20234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20235 | |
20236 | ||
20237 | fi | |
20238 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
20239 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
20240 | ||
20241 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
20242 | wx_largefile=yes | |
20243 | cat >>confdefs.h <<_ACEOF | |
20244 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20245 | _ACEOF | |
20246 | ||
20247 | fi | |
20248 | ||
20249 | if test "x$wx_largefile" != "xyes"; then | |
20250 | ||
20251 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
20252 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
20253 | if test "${ac_cv_sys_large_files+set}" = set; then | |
20254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20255 | else | |
20256 | ||
20257 | cat >conftest.$ac_ext <<_ACEOF | |
20258 | /* confdefs.h. */ | |
20259 | _ACEOF | |
20260 | cat confdefs.h >>conftest.$ac_ext | |
20261 | cat >>conftest.$ac_ext <<_ACEOF | |
20262 | /* end confdefs.h. */ | |
20263 | #define _LARGE_FILES 1 | |
20264 | #include <sys/types.h> | |
20265 | int | |
20266 | main () | |
20267 | { | |
20268 | typedef struct { | |
20269 | unsigned int field: sizeof(off_t) == 8; | |
20270 | } wxlf; | |
20271 | ||
20272 | ; | |
20273 | return 0; | |
20274 | } | |
20275 | _ACEOF | |
20276 | rm -f conftest.$ac_objext | |
20277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20278 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20279 | ac_status=$? |
ac1cb8d3 VS |
20280 | grep -v '^ *+' conftest.er1 >conftest.err |
20281 | rm -f conftest.er1 | |
20282 | cat conftest.err >&5 | |
a848cd7e SC |
20283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20284 | (exit $ac_status); } && | |
6ebeb4c7 | 20285 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20287 | (eval $ac_try) 2>&5 | |
20288 | ac_status=$? | |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20290 | (exit $ac_status); }; } && | |
20291 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20293 | (eval $ac_try) 2>&5 | |
20294 | ac_status=$? | |
20295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20296 | (exit $ac_status); }; }; then | |
20297 | ac_cv_sys_large_files=1 | |
20298 | else | |
20299 | echo "$as_me: failed program was:" >&5 | |
20300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20301 | ||
20302 | ac_cv_sys_large_files=no | |
20303 | fi | |
ac1cb8d3 | 20304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20305 | |
20306 | ||
20307 | fi | |
20308 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
20309 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
20310 | ||
20311 | if test "$ac_cv_sys_large_files" != no; then | |
20312 | wx_largefile=yes | |
20313 | cat >>confdefs.h <<_ACEOF | |
20314 | #define _LARGE_FILES $ac_cv_sys_large_files | |
20315 | _ACEOF | |
20316 | ||
20317 | fi | |
20318 | ||
20319 | fi | |
20320 | ||
20321 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
20322 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
20323 | if test "x$wx_largefile" = "xyes"; then | |
20324 | cat >>confdefs.h <<\_ACEOF | |
20325 | #define HAVE_LARGEFILE_SUPPORT 1 | |
20326 | _ACEOF | |
20327 | ||
20328 | fi | |
20329 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
20330 | echo "${ECHO_T}$wx_largefile" >&6 | |
20331 | fi | |
20332 | ||
5b674b9d DE |
20333 | |
20334 | if test "x$wx_largefile" = "xyes"; then | |
20335 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
20336 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
00421666 MW |
20337 | |
20338 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
20339 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
20340 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
20341 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
20342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20343 | else | |
20344 | ||
20345 | ||
20346 | ||
20347 | ac_ext=cc | |
20348 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20349 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20350 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20351 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20352 | ||
20353 | cat >conftest.$ac_ext <<_ACEOF | |
20354 | /* confdefs.h. */ | |
20355 | _ACEOF | |
20356 | cat confdefs.h >>conftest.$ac_ext | |
20357 | cat >>conftest.$ac_ext <<_ACEOF | |
20358 | /* end confdefs.h. */ | |
20359 | ||
20360 | int | |
20361 | main () | |
20362 | { | |
20363 | ||
20364 | #ifndef __STDC_EXT__ | |
20365 | choke me | |
20366 | #endif | |
20367 | ||
20368 | ; | |
20369 | return 0; | |
20370 | } | |
20371 | _ACEOF | |
20372 | rm -f conftest.$ac_objext | |
20373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20374 | (eval $ac_compile) 2>conftest.er1 | |
20375 | ac_status=$? | |
20376 | grep -v '^ *+' conftest.er1 >conftest.err | |
20377 | rm -f conftest.er1 | |
20378 | cat conftest.err >&5 | |
20379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20380 | (exit $ac_status); } && | |
20381 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
20382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20383 | (eval $ac_try) 2>&5 | |
20384 | ac_status=$? | |
20385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20386 | (exit $ac_status); }; } && | |
20387 | { ac_try='test -s conftest.$ac_objext' | |
20388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20389 | (eval $ac_try) 2>&5 | |
20390 | ac_status=$? | |
20391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20392 | (exit $ac_status); }; }; then | |
20393 | wx_cv_STDC_EXT_required=no | |
20394 | else | |
20395 | echo "$as_me: failed program was:" >&5 | |
20396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20397 | ||
20398 | wx_cv_STDC_EXT_required=yes | |
20399 | ||
20400 | fi | |
20401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20402 | ac_ext=c | |
20403 | ac_cpp='$CPP $CPPFLAGS' | |
20404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20407 | ||
20408 | ||
20409 | ||
20410 | fi | |
20411 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
20412 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
20413 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
20414 | CXXFLAGS="$CXXFLAGS -D__STDC_EXT__" | |
20415 | fi | |
20416 | fi | |
5b674b9d DE |
20417 | else |
20418 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
20419 | fi | |
20420 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
20421 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
20422 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
20423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20424 | else | |
20425 | while :; do | |
20426 | ac_cv_sys_largefile_source=no | |
20427 | cat >conftest.$ac_ext <<_ACEOF | |
20428 | /* confdefs.h. */ | |
20429 | _ACEOF | |
20430 | cat confdefs.h >>conftest.$ac_ext | |
20431 | cat >>conftest.$ac_ext <<_ACEOF | |
20432 | /* end confdefs.h. */ | |
20433 | #include <stdio.h> | |
20434 | int | |
20435 | main () | |
20436 | { | |
20437 | return !fseeko; | |
20438 | ; | |
20439 | return 0; | |
20440 | } | |
20441 | _ACEOF | |
20442 | rm -f conftest.$ac_objext | |
20443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20444 | (eval $ac_compile) 2>conftest.er1 | |
20445 | ac_status=$? | |
20446 | grep -v '^ *+' conftest.er1 >conftest.err | |
20447 | rm -f conftest.er1 | |
20448 | cat conftest.err >&5 | |
20449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20450 | (exit $ac_status); } && | |
6ebeb4c7 | 20451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20453 | (eval $ac_try) 2>&5 | |
20454 | ac_status=$? | |
20455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20456 | (exit $ac_status); }; } && | |
20457 | { ac_try='test -s conftest.$ac_objext' | |
20458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20459 | (eval $ac_try) 2>&5 | |
20460 | ac_status=$? | |
20461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20462 | (exit $ac_status); }; }; then | |
20463 | break | |
20464 | else | |
20465 | echo "$as_me: failed program was:" >&5 | |
20466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20467 | ||
20468 | fi | |
20469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20470 | cat >conftest.$ac_ext <<_ACEOF | |
20471 | /* confdefs.h. */ | |
20472 | _ACEOF | |
20473 | cat confdefs.h >>conftest.$ac_ext | |
20474 | cat >>conftest.$ac_ext <<_ACEOF | |
20475 | /* end confdefs.h. */ | |
20476 | #define _LARGEFILE_SOURCE 1 | |
20477 | #include <stdio.h> | |
20478 | int | |
20479 | main () | |
20480 | { | |
20481 | return !fseeko; | |
20482 | ; | |
20483 | return 0; | |
20484 | } | |
20485 | _ACEOF | |
20486 | rm -f conftest.$ac_objext | |
20487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20488 | (eval $ac_compile) 2>conftest.er1 | |
20489 | ac_status=$? | |
20490 | grep -v '^ *+' conftest.er1 >conftest.err | |
20491 | rm -f conftest.er1 | |
20492 | cat conftest.err >&5 | |
20493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20494 | (exit $ac_status); } && | |
6ebeb4c7 | 20495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20497 | (eval $ac_try) 2>&5 | |
20498 | ac_status=$? | |
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20500 | (exit $ac_status); }; } && | |
20501 | { ac_try='test -s conftest.$ac_objext' | |
20502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20503 | (eval $ac_try) 2>&5 | |
20504 | ac_status=$? | |
20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20506 | (exit $ac_status); }; }; then | |
20507 | ac_cv_sys_largefile_source=1; break | |
20508 | else | |
20509 | echo "$as_me: failed program was:" >&5 | |
20510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20511 | ||
20512 | fi | |
20513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20514 | break | |
20515 | done | |
20516 | fi | |
20517 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20518 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
20519 | if test "$ac_cv_sys_largefile_source" != no; then | |
20520 | ||
20521 | cat >>confdefs.h <<_ACEOF | |
20522 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20523 | _ACEOF | |
20524 | ||
20525 | fi | |
20526 | rm -f conftest* | |
20527 | ||
20528 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20529 | # in glibc 2.1.3, but that breaks too many other things. | |
20530 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20531 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
20532 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
20533 | if test "${ac_cv_func_fseeko+set}" = set; then | |
20534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20535 | else | |
20536 | cat >conftest.$ac_ext <<_ACEOF | |
20537 | /* confdefs.h. */ | |
20538 | _ACEOF | |
20539 | cat confdefs.h >>conftest.$ac_ext | |
20540 | cat >>conftest.$ac_ext <<_ACEOF | |
20541 | /* end confdefs.h. */ | |
20542 | #include <stdio.h> | |
20543 | int | |
20544 | main () | |
20545 | { | |
20546 | return fseeko && fseeko (stdin, 0, 0); | |
20547 | ; | |
20548 | return 0; | |
20549 | } | |
20550 | _ACEOF | |
20551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20553 | (eval $ac_link) 2>conftest.er1 | |
20554 | ac_status=$? | |
20555 | grep -v '^ *+' conftest.er1 >conftest.err | |
20556 | rm -f conftest.er1 | |
20557 | cat conftest.err >&5 | |
20558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20559 | (exit $ac_status); } && | |
6ebeb4c7 | 20560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
20561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20562 | (eval $ac_try) 2>&5 | |
20563 | ac_status=$? | |
20564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20565 | (exit $ac_status); }; } && | |
20566 | { ac_try='test -s conftest$ac_exeext' | |
20567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20568 | (eval $ac_try) 2>&5 | |
20569 | ac_status=$? | |
20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20571 | (exit $ac_status); }; }; then | |
20572 | ac_cv_func_fseeko=yes | |
20573 | else | |
20574 | echo "$as_me: failed program was:" >&5 | |
20575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20576 | ||
20577 | ac_cv_func_fseeko=no | |
20578 | fi | |
20579 | rm -f conftest.err conftest.$ac_objext \ | |
20580 | conftest$ac_exeext conftest.$ac_ext | |
20581 | fi | |
20582 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20583 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20584 | if test $ac_cv_func_fseeko = yes; then | |
20585 | ||
20586 | cat >>confdefs.h <<\_ACEOF | |
20587 | #define HAVE_FSEEKO 1 | |
20588 | _ACEOF | |
20589 | ||
20590 | fi | |
20591 | ||
5b674b9d DE |
20592 | if test "$ac_cv_sys_largefile_source" != no; then |
20593 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20594 | fi |
20595 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20596 | fi | |
20597 | ||
20598 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20599 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20600 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20602 | else | |
20603 | ac_cv_c_bigendian=unknown | |
20604 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20605 | cat >conftest.$ac_ext <<_ACEOF | |
20606 | /* confdefs.h. */ | |
20607 | _ACEOF | |
20608 | cat confdefs.h >>conftest.$ac_ext | |
20609 | cat >>conftest.$ac_ext <<_ACEOF | |
20610 | /* end confdefs.h. */ | |
20611 | #include <sys/types.h> | |
20612 | #include <sys/param.h> | |
20613 | int | |
20614 | main () | |
20615 | { | |
20616 | ||
20617 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20618 | bogus endian macros | |
20619 | #endif | |
20620 | ; | |
20621 | return 0; | |
20622 | } | |
20623 | _ACEOF | |
20624 | rm -f conftest.$ac_objext | |
20625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20626 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20627 | ac_status=$? |
ac1cb8d3 VS |
20628 | grep -v '^ *+' conftest.er1 >conftest.err |
20629 | rm -f conftest.er1 | |
20630 | cat conftest.err >&5 | |
a848cd7e SC |
20631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20632 | (exit $ac_status); } && | |
6ebeb4c7 | 20633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20635 | (eval $ac_try) 2>&5 | |
20636 | ac_status=$? | |
20637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20638 | (exit $ac_status); }; } && | |
20639 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20641 | (eval $ac_try) 2>&5 | |
20642 | ac_status=$? | |
20643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20644 | (exit $ac_status); }; }; then | |
20645 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20646 | cat >conftest.$ac_ext <<_ACEOF | |
20647 | /* confdefs.h. */ | |
20648 | _ACEOF | |
20649 | cat confdefs.h >>conftest.$ac_ext | |
20650 | cat >>conftest.$ac_ext <<_ACEOF | |
20651 | /* end confdefs.h. */ | |
20652 | #include <sys/types.h> | |
20653 | #include <sys/param.h> | |
20654 | int | |
20655 | main () | |
20656 | { | |
20657 | ||
20658 | #if BYTE_ORDER != BIG_ENDIAN | |
20659 | not big endian | |
20660 | #endif | |
20661 | ; | |
20662 | return 0; | |
20663 | } | |
20664 | _ACEOF | |
20665 | rm -f conftest.$ac_objext | |
20666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20667 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20668 | ac_status=$? |
ac1cb8d3 VS |
20669 | grep -v '^ *+' conftest.er1 >conftest.err |
20670 | rm -f conftest.er1 | |
20671 | cat conftest.err >&5 | |
a848cd7e SC |
20672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20673 | (exit $ac_status); } && | |
6ebeb4c7 | 20674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20676 | (eval $ac_try) 2>&5 | |
20677 | ac_status=$? | |
20678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20679 | (exit $ac_status); }; } && | |
20680 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20682 | (eval $ac_try) 2>&5 | |
20683 | ac_status=$? | |
20684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20685 | (exit $ac_status); }; }; then | |
20686 | ac_cv_c_bigendian=yes | |
20687 | else | |
20688 | echo "$as_me: failed program was:" >&5 | |
20689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20690 | ||
20691 | ac_cv_c_bigendian=no | |
20692 | fi | |
ac1cb8d3 | 20693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20694 | else |
20695 | echo "$as_me: failed program was:" >&5 | |
20696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20697 | ||
20698 | fi | |
ac1cb8d3 | 20699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20700 | if test $ac_cv_c_bigendian = unknown; then |
20701 | if test "$cross_compiling" = yes; then | |
20702 | ac_cv_c_bigendian=unknown | |
20703 | else | |
20704 | cat >conftest.$ac_ext <<_ACEOF | |
20705 | /* confdefs.h. */ | |
20706 | _ACEOF | |
20707 | cat confdefs.h >>conftest.$ac_ext | |
20708 | cat >>conftest.$ac_ext <<_ACEOF | |
20709 | /* end confdefs.h. */ | |
20710 | main () { | |
20711 | /* Are we little or big endian? From Harbison&Steele. */ | |
20712 | union | |
20713 | { | |
20714 | long l; | |
20715 | char c[sizeof (long)]; | |
20716 | } u; | |
20717 | u.l = 1; | |
20718 | exit (u.c[sizeof (long) - 1] == 1); | |
20719 | } | |
20720 | _ACEOF | |
20721 | rm -f conftest$ac_exeext | |
20722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20723 | (eval $ac_link) 2>&5 | |
20724 | ac_status=$? | |
20725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20728 | (eval $ac_try) 2>&5 | |
20729 | ac_status=$? | |
20730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20731 | (exit $ac_status); }; }; then | |
20732 | ac_cv_c_bigendian=no | |
20733 | else | |
20734 | echo "$as_me: program exited with status $ac_status" >&5 | |
20735 | echo "$as_me: failed program was:" >&5 | |
20736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20737 | ||
20738 | ( exit $ac_status ) | |
20739 | ac_cv_c_bigendian=yes | |
20740 | fi | |
ac1cb8d3 | 20741 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20742 | fi |
20743 | fi | |
20744 | fi | |
20745 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20746 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20747 | if test $ac_cv_c_bigendian = unknown; then | |
20748 | { 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 | |
20749 | 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;} | |
20750 | fi | |
20751 | if test $ac_cv_c_bigendian = yes; then | |
20752 | cat >>confdefs.h <<\_ACEOF | |
20753 | #define WORDS_BIGENDIAN 1 | |
20754 | _ACEOF | |
20755 | ||
20756 | fi | |
20757 | ||
20758 | ||
20759 | ac_ext=cc | |
20760 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20761 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20762 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20763 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20764 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20765 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20766 | if test -z "$CXXCPP"; then | |
20767 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20769 | else | |
20770 | # Double quotes because CXXCPP needs to be expanded | |
20771 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20772 | do | |
20773 | ac_preproc_ok=false | |
20774 | for ac_cxx_preproc_warn_flag in '' yes | |
20775 | do | |
20776 | # Use a header file that comes with gcc, so configuring glibc | |
20777 | # with a fresh cross-compiler works. | |
20778 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20779 | # <limits.h> exists even on freestanding compilers. | |
20780 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20781 | # not just through cpp. "Syntax error" is here to catch this case. | |
20782 | cat >conftest.$ac_ext <<_ACEOF | |
20783 | /* confdefs.h. */ | |
20784 | _ACEOF | |
20785 | cat confdefs.h >>conftest.$ac_ext | |
20786 | cat >>conftest.$ac_ext <<_ACEOF | |
20787 | /* end confdefs.h. */ | |
20788 | #ifdef __STDC__ | |
20789 | # include <limits.h> | |
20790 | #else | |
20791 | # include <assert.h> | |
20792 | #endif | |
ac1cb8d3 | 20793 | Syntax error |
a848cd7e SC |
20794 | _ACEOF |
20795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20797 | ac_status=$? | |
20798 | grep -v '^ *+' conftest.er1 >conftest.err | |
20799 | rm -f conftest.er1 | |
20800 | cat conftest.err >&5 | |
20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20802 | (exit $ac_status); } >/dev/null; then | |
20803 | if test -s conftest.err; then | |
20804 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20805 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20806 | else |
20807 | ac_cpp_err= | |
20808 | fi | |
20809 | else | |
20810 | ac_cpp_err=yes | |
20811 | fi | |
20812 | if test -z "$ac_cpp_err"; then | |
20813 | : | |
20814 | else | |
20815 | echo "$as_me: failed program was:" >&5 | |
20816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20817 | ||
20818 | # Broken: fails on valid input. | |
20819 | continue | |
20820 | fi | |
20821 | rm -f conftest.err conftest.$ac_ext | |
20822 | ||
20823 | # OK, works on sane cases. Now check whether non-existent headers | |
20824 | # can be detected and how. | |
20825 | cat >conftest.$ac_ext <<_ACEOF | |
20826 | /* confdefs.h. */ | |
20827 | _ACEOF | |
20828 | cat confdefs.h >>conftest.$ac_ext | |
20829 | cat >>conftest.$ac_ext <<_ACEOF | |
20830 | /* end confdefs.h. */ | |
20831 | #include <ac_nonexistent.h> | |
20832 | _ACEOF | |
20833 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20834 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20835 | ac_status=$? | |
20836 | grep -v '^ *+' conftest.er1 >conftest.err | |
20837 | rm -f conftest.er1 | |
20838 | cat conftest.err >&5 | |
20839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20840 | (exit $ac_status); } >/dev/null; then | |
20841 | if test -s conftest.err; then | |
20842 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20843 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20844 | else |
20845 | ac_cpp_err= | |
20846 | fi | |
20847 | else | |
20848 | ac_cpp_err=yes | |
20849 | fi | |
20850 | if test -z "$ac_cpp_err"; then | |
20851 | # Broken: success on invalid input. | |
20852 | continue | |
20853 | else | |
20854 | echo "$as_me: failed program was:" >&5 | |
20855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20856 | ||
20857 | # Passes both tests. | |
20858 | ac_preproc_ok=: | |
20859 | break | |
20860 | fi | |
20861 | rm -f conftest.err conftest.$ac_ext | |
20862 | ||
20863 | done | |
20864 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20865 | rm -f conftest.err conftest.$ac_ext | |
20866 | if $ac_preproc_ok; then | |
20867 | break | |
20868 | fi | |
20869 | ||
20870 | done | |
20871 | ac_cv_prog_CXXCPP=$CXXCPP | |
20872 | ||
20873 | fi | |
20874 | CXXCPP=$ac_cv_prog_CXXCPP | |
20875 | else | |
20876 | ac_cv_prog_CXXCPP=$CXXCPP | |
20877 | fi | |
20878 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
20879 | echo "${ECHO_T}$CXXCPP" >&6 | |
20880 | ac_preproc_ok=false | |
20881 | for ac_cxx_preproc_warn_flag in '' yes | |
20882 | do | |
20883 | # Use a header file that comes with gcc, so configuring glibc | |
20884 | # with a fresh cross-compiler works. | |
20885 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20886 | # <limits.h> exists even on freestanding compilers. | |
20887 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20888 | # not just through cpp. "Syntax error" is here to catch this case. | |
20889 | cat >conftest.$ac_ext <<_ACEOF | |
20890 | /* confdefs.h. */ | |
20891 | _ACEOF | |
20892 | cat confdefs.h >>conftest.$ac_ext | |
20893 | cat >>conftest.$ac_ext <<_ACEOF | |
20894 | /* end confdefs.h. */ | |
20895 | #ifdef __STDC__ | |
20896 | # include <limits.h> | |
20897 | #else | |
20898 | # include <assert.h> | |
20899 | #endif | |
ac1cb8d3 | 20900 | Syntax error |
a848cd7e SC |
20901 | _ACEOF |
20902 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20903 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20904 | ac_status=$? | |
20905 | grep -v '^ *+' conftest.er1 >conftest.err | |
20906 | rm -f conftest.er1 | |
20907 | cat conftest.err >&5 | |
20908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20909 | (exit $ac_status); } >/dev/null; then | |
20910 | if test -s conftest.err; then | |
20911 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20912 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20913 | else |
20914 | ac_cpp_err= | |
20915 | fi | |
20916 | else | |
20917 | ac_cpp_err=yes | |
20918 | fi | |
20919 | if test -z "$ac_cpp_err"; then | |
20920 | : | |
20921 | else | |
20922 | echo "$as_me: failed program was:" >&5 | |
20923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20924 | ||
20925 | # Broken: fails on valid input. | |
20926 | continue | |
20927 | fi | |
20928 | rm -f conftest.err conftest.$ac_ext | |
20929 | ||
20930 | # OK, works on sane cases. Now check whether non-existent headers | |
20931 | # can be detected and how. | |
20932 | cat >conftest.$ac_ext <<_ACEOF | |
20933 | /* confdefs.h. */ | |
20934 | _ACEOF | |
20935 | cat confdefs.h >>conftest.$ac_ext | |
20936 | cat >>conftest.$ac_ext <<_ACEOF | |
20937 | /* end confdefs.h. */ | |
20938 | #include <ac_nonexistent.h> | |
20939 | _ACEOF | |
20940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20942 | ac_status=$? | |
20943 | grep -v '^ *+' conftest.er1 >conftest.err | |
20944 | rm -f conftest.er1 | |
20945 | cat conftest.err >&5 | |
20946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20947 | (exit $ac_status); } >/dev/null; then | |
20948 | if test -s conftest.err; then | |
20949 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20950 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20951 | else |
20952 | ac_cpp_err= | |
20953 | fi | |
20954 | else | |
20955 | ac_cpp_err=yes | |
20956 | fi | |
20957 | if test -z "$ac_cpp_err"; then | |
20958 | # Broken: success on invalid input. | |
20959 | continue | |
20960 | else | |
20961 | echo "$as_me: failed program was:" >&5 | |
20962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20963 | ||
20964 | # Passes both tests. | |
20965 | ac_preproc_ok=: | |
20966 | break | |
20967 | fi | |
20968 | rm -f conftest.err conftest.$ac_ext | |
20969 | ||
20970 | done | |
20971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20972 | rm -f conftest.err conftest.$ac_ext | |
20973 | if $ac_preproc_ok; then | |
20974 | : | |
20975 | else | |
20976 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20977 | See \`config.log' for more details." >&5 | |
20978 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20979 | See \`config.log' for more details." >&2;} | |
20980 | { (exit 1); exit 1; }; } | |
20981 | fi | |
20982 | ||
20983 | ac_ext=cc | |
20984 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20985 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20986 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20987 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20988 | ||
20989 | ||
20990 | ||
20991 | ||
20992 | ||
20993 | ac_ext=cc | |
20994 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20995 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20996 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20997 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20998 | ||
20999 | ||
21000 | ||
21001 | for ac_header in iostream | |
21002 | do | |
21003 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21005 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21006 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21009 | fi | |
21010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21012 | else | |
21013 | # Is the header compilable? | |
21014 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21015 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21016 | cat >conftest.$ac_ext <<_ACEOF | |
21017 | /* confdefs.h. */ | |
21018 | _ACEOF | |
21019 | cat confdefs.h >>conftest.$ac_ext | |
21020 | cat >>conftest.$ac_ext <<_ACEOF | |
21021 | /* end confdefs.h. */ | |
21022 | $ac_includes_default | |
21023 | #include <$ac_header> | |
21024 | _ACEOF | |
21025 | rm -f conftest.$ac_objext | |
21026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21027 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21028 | ac_status=$? |
ac1cb8d3 VS |
21029 | grep -v '^ *+' conftest.er1 >conftest.err |
21030 | rm -f conftest.er1 | |
21031 | cat conftest.err >&5 | |
a848cd7e SC |
21032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21033 | (exit $ac_status); } && | |
6ebeb4c7 | 21034 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21036 | (eval $ac_try) 2>&5 | |
21037 | ac_status=$? | |
21038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21039 | (exit $ac_status); }; } && | |
21040 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21042 | (eval $ac_try) 2>&5 | |
21043 | ac_status=$? | |
21044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21045 | (exit $ac_status); }; }; then | |
21046 | ac_header_compiler=yes | |
21047 | else | |
21048 | echo "$as_me: failed program was:" >&5 | |
21049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21050 | ||
21051 | ac_header_compiler=no | |
21052 | fi | |
ac1cb8d3 | 21053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21054 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21055 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21056 | ||
21057 | # Is the header present? | |
21058 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21059 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21060 | cat >conftest.$ac_ext <<_ACEOF | |
21061 | /* confdefs.h. */ | |
21062 | _ACEOF | |
21063 | cat confdefs.h >>conftest.$ac_ext | |
21064 | cat >>conftest.$ac_ext <<_ACEOF | |
21065 | /* end confdefs.h. */ | |
21066 | #include <$ac_header> | |
21067 | _ACEOF | |
21068 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21069 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21070 | ac_status=$? | |
21071 | grep -v '^ *+' conftest.er1 >conftest.err | |
21072 | rm -f conftest.er1 | |
21073 | cat conftest.err >&5 | |
21074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21075 | (exit $ac_status); } >/dev/null; then | |
21076 | if test -s conftest.err; then | |
21077 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21078 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21079 | else |
21080 | ac_cpp_err= | |
21081 | fi | |
21082 | else | |
21083 | ac_cpp_err=yes | |
21084 | fi | |
21085 | if test -z "$ac_cpp_err"; then | |
21086 | ac_header_preproc=yes | |
21087 | else | |
21088 | echo "$as_me: failed program was:" >&5 | |
21089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21090 | ||
21091 | ac_header_preproc=no | |
21092 | fi | |
21093 | rm -f conftest.err conftest.$ac_ext | |
21094 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21095 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21096 | ||
21097 | # So? What about this header? | |
ac1cb8d3 VS |
21098 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21099 | yes:no: ) | |
a848cd7e SC |
21100 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21101 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21102 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21103 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21104 | ac_header_preproc=yes | |
a848cd7e | 21105 | ;; |
ac1cb8d3 | 21106 | no:yes:* ) |
a848cd7e SC |
21107 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21108 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21109 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21110 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21111 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21112 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21113 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21114 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21115 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21116 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21117 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21118 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21119 | ( |
21120 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21121 | ## ----------------------------------------- ## |
21122 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21123 | ## ----------------------------------------- ## | |
a848cd7e SC |
21124 | _ASBOX |
21125 | ) | | |
21126 | sed "s/^/$as_me: WARNING: /" >&2 | |
21127 | ;; | |
21128 | esac | |
21129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21133 | else | |
ac1cb8d3 | 21134 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
21135 | fi |
21136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21138 | ||
21139 | fi | |
21140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21141 | cat >>confdefs.h <<_ACEOF | |
21142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21143 | _ACEOF | |
21144 | ||
21145 | fi | |
21146 | ||
21147 | done | |
21148 | ||
21149 | ||
21150 | if test "$ac_cv_header_iostream" = "yes" ; then | |
21151 | : | |
21152 | else | |
21153 | cat >>confdefs.h <<\_ACEOF | |
21154 | #define wxUSE_IOSTREAMH 1 | |
21155 | _ACEOF | |
21156 | ||
21157 | fi | |
21158 | ||
21159 | ac_ext=c | |
21160 | ac_cpp='$CPP $CPPFLAGS' | |
21161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21164 | ||
21165 | ||
21166 | ||
21167 | ||
21168 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
21169 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
21170 | if test "${wx_cv_cpp_bool+set}" = set; then | |
21171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21172 | else | |
21173 | ||
21174 | ||
21175 | ||
21176 | ac_ext=cc | |
21177 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21178 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21179 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21180 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21181 | ||
21182 | ||
21183 | cat >conftest.$ac_ext <<_ACEOF | |
21184 | /* confdefs.h. */ | |
21185 | _ACEOF | |
21186 | cat confdefs.h >>conftest.$ac_ext | |
21187 | cat >>conftest.$ac_ext <<_ACEOF | |
21188 | /* end confdefs.h. */ | |
21189 | ||
21190 | ||
21191 | int | |
21192 | main () | |
21193 | { | |
21194 | ||
21195 | bool b = true; | |
21196 | ||
21197 | return 0; | |
21198 | ||
21199 | ; | |
21200 | return 0; | |
21201 | } | |
21202 | _ACEOF | |
21203 | rm -f conftest.$ac_objext | |
21204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21205 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21206 | ac_status=$? |
ac1cb8d3 VS |
21207 | grep -v '^ *+' conftest.er1 >conftest.err |
21208 | rm -f conftest.er1 | |
21209 | cat conftest.err >&5 | |
a848cd7e SC |
21210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21211 | (exit $ac_status); } && | |
6ebeb4c7 | 21212 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21214 | (eval $ac_try) 2>&5 | |
21215 | ac_status=$? | |
21216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21217 | (exit $ac_status); }; } && | |
21218 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21220 | (eval $ac_try) 2>&5 | |
21221 | ac_status=$? | |
21222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21223 | (exit $ac_status); }; }; then | |
21224 | ||
21225 | wx_cv_cpp_bool=yes | |
21226 | ||
21227 | else | |
21228 | echo "$as_me: failed program was:" >&5 | |
21229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21230 | ||
21231 | ||
21232 | wx_cv_cpp_bool=no | |
21233 | ||
21234 | ||
21235 | fi | |
ac1cb8d3 | 21236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21237 | |
21238 | ac_ext=c | |
21239 | ac_cpp='$CPP $CPPFLAGS' | |
21240 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21241 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21242 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21243 | ||
21244 | ||
21245 | fi | |
21246 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
21247 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21248 | ||
21249 | if test "$wx_cv_cpp_bool" = "yes"; then | |
21250 | cat >>confdefs.h <<\_ACEOF | |
21251 | #define HAVE_BOOL 1 | |
21252 | _ACEOF | |
21253 | ||
21254 | fi | |
21255 | ||
21256 | ||
21257 | ||
21258 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
21259 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
21260 | if test "${wx_cv_explicit+set}" = set; then | |
21261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21262 | else | |
21263 | ||
21264 | ||
21265 | ||
21266 | ac_ext=cc | |
21267 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21268 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21269 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21270 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21271 | ||
21272 | ||
21273 | cat >conftest.$ac_ext <<_ACEOF | |
21274 | /* confdefs.h. */ | |
21275 | _ACEOF | |
21276 | cat confdefs.h >>conftest.$ac_ext | |
21277 | cat >>conftest.$ac_ext <<_ACEOF | |
21278 | /* end confdefs.h. */ | |
21279 | ||
21280 | class Foo { public: explicit Foo(int) {} }; | |
21281 | ||
21282 | int | |
21283 | main () | |
21284 | { | |
21285 | ||
21286 | return 0; | |
21287 | ||
21288 | ; | |
21289 | return 0; | |
21290 | } | |
21291 | _ACEOF | |
21292 | rm -f conftest.$ac_objext | |
21293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21294 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21295 | ac_status=$? |
ac1cb8d3 VS |
21296 | grep -v '^ *+' conftest.er1 >conftest.err |
21297 | rm -f conftest.er1 | |
21298 | cat conftest.err >&5 | |
a848cd7e SC |
21299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21300 | (exit $ac_status); } && | |
6ebeb4c7 | 21301 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21303 | (eval $ac_try) 2>&5 | |
21304 | ac_status=$? | |
21305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21306 | (exit $ac_status); }; } && | |
21307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21309 | (eval $ac_try) 2>&5 | |
21310 | ac_status=$? | |
21311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21312 | (exit $ac_status); }; }; then | |
21313 | ||
21314 | cat >conftest.$ac_ext <<_ACEOF | |
21315 | /* confdefs.h. */ | |
21316 | _ACEOF | |
21317 | cat confdefs.h >>conftest.$ac_ext | |
21318 | cat >>conftest.$ac_ext <<_ACEOF | |
21319 | /* end confdefs.h. */ | |
21320 | ||
21321 | class Foo { public: explicit Foo(int) {} }; | |
21322 | static void TakeFoo(const Foo& foo) { } | |
21323 | ||
21324 | int | |
21325 | main () | |
21326 | { | |
21327 | ||
21328 | TakeFoo(17); | |
21329 | return 0; | |
21330 | ||
21331 | ; | |
21332 | return 0; | |
21333 | } | |
21334 | _ACEOF | |
21335 | rm -f conftest.$ac_objext | |
21336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21338 | ac_status=$? |
ac1cb8d3 VS |
21339 | grep -v '^ *+' conftest.er1 >conftest.err |
21340 | rm -f conftest.er1 | |
21341 | cat conftest.err >&5 | |
a848cd7e SC |
21342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21343 | (exit $ac_status); } && | |
6ebeb4c7 | 21344 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21346 | (eval $ac_try) 2>&5 | |
21347 | ac_status=$? | |
21348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21349 | (exit $ac_status); }; } && | |
21350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21352 | (eval $ac_try) 2>&5 | |
21353 | ac_status=$? | |
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21355 | (exit $ac_status); }; }; then | |
21356 | wx_cv_explicit=no | |
21357 | else | |
21358 | echo "$as_me: failed program was:" >&5 | |
21359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21360 | ||
21361 | wx_cv_explicit=yes | |
21362 | ||
21363 | fi | |
ac1cb8d3 | 21364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21365 | |
21366 | else | |
21367 | echo "$as_me: failed program was:" >&5 | |
21368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21369 | ||
21370 | wx_cv_explicit=no | |
21371 | ||
21372 | fi | |
ac1cb8d3 | 21373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21374 | |
21375 | ac_ext=c | |
21376 | ac_cpp='$CPP $CPPFLAGS' | |
21377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21380 | ||
21381 | ||
21382 | fi | |
21383 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
21384 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
21385 | ||
21386 | if test "$wx_cv_explicit" = "yes"; then | |
21387 | cat >>confdefs.h <<\_ACEOF | |
21388 | #define HAVE_EXPLICIT 1 | |
21389 | _ACEOF | |
21390 | ||
21391 | fi | |
21392 | ||
21393 | ||
21394 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
21395 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
21396 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
21397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21398 | else | |
21399 | ||
21400 | ||
21401 | ac_ext=cc | |
21402 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21403 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21404 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21405 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21406 | ||
21407 | cat >conftest.$ac_ext <<_ACEOF | |
21408 | /* confdefs.h. */ | |
21409 | _ACEOF | |
21410 | cat confdefs.h >>conftest.$ac_ext | |
21411 | cat >>conftest.$ac_ext <<_ACEOF | |
21412 | /* end confdefs.h. */ | |
21413 | ||
21414 | int | |
21415 | main () | |
21416 | { | |
21417 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
21418 | ; | |
21419 | return 0; | |
21420 | } | |
21421 | _ACEOF | |
21422 | rm -f conftest.$ac_objext | |
21423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21425 | ac_status=$? |
ac1cb8d3 VS |
21426 | grep -v '^ *+' conftest.er1 >conftest.err |
21427 | rm -f conftest.er1 | |
21428 | cat conftest.err >&5 | |
a848cd7e SC |
21429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21430 | (exit $ac_status); } && | |
6ebeb4c7 | 21431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21433 | (eval $ac_try) 2>&5 | |
21434 | ac_status=$? | |
21435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21436 | (exit $ac_status); }; } && | |
21437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21439 | (eval $ac_try) 2>&5 | |
21440 | ac_status=$? | |
21441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21442 | (exit $ac_status); }; }; then | |
21443 | ac_cv_cxx_const_cast=yes | |
21444 | else | |
21445 | echo "$as_me: failed program was:" >&5 | |
21446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21447 | ||
21448 | ac_cv_cxx_const_cast=no | |
21449 | fi | |
ac1cb8d3 | 21450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21451 | ac_ext=c |
21452 | ac_cpp='$CPP $CPPFLAGS' | |
21453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21456 | ||
21457 | ||
21458 | fi | |
21459 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
21460 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
21461 | if test "$ac_cv_cxx_const_cast" = yes; then | |
21462 | ||
21463 | cat >>confdefs.h <<\_ACEOF | |
21464 | #define HAVE_CONST_CAST | |
21465 | _ACEOF | |
21466 | ||
21467 | fi | |
21468 | ||
7714864e RL |
21469 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
21470 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
21471 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
21472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21473 | else | |
21474 | ||
21475 | ||
21476 | ac_ext=cc | |
21477 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21480 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21481 | ||
21482 | cat >conftest.$ac_ext <<_ACEOF | |
21483 | /* confdefs.h. */ | |
21484 | _ACEOF | |
21485 | cat confdefs.h >>conftest.$ac_ext | |
21486 | cat >>conftest.$ac_ext <<_ACEOF | |
21487 | /* end confdefs.h. */ | |
21488 | #include <typeinfo> | |
21489 | class Base { public : Base () {} virtual void f () = 0;}; | |
21490 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21491 | class Unrelated { public : Unrelated () {} }; | |
21492 | int g (Unrelated&) { return 0; } | |
21493 | int | |
21494 | main () | |
21495 | { | |
21496 | ||
21497 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
21498 | ; | |
21499 | return 0; | |
21500 | } | |
21501 | _ACEOF | |
21502 | rm -f conftest.$ac_objext | |
21503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21504 | (eval $ac_compile) 2>conftest.er1 | |
21505 | ac_status=$? | |
21506 | grep -v '^ *+' conftest.er1 >conftest.err | |
21507 | rm -f conftest.er1 | |
21508 | cat conftest.err >&5 | |
21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21510 | (exit $ac_status); } && | |
6ebeb4c7 | 21511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
21512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21513 | (eval $ac_try) 2>&5 | |
21514 | ac_status=$? | |
21515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21516 | (exit $ac_status); }; } && | |
21517 | { ac_try='test -s conftest.$ac_objext' | |
21518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21519 | (eval $ac_try) 2>&5 | |
21520 | ac_status=$? | |
21521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21522 | (exit $ac_status); }; }; then | |
21523 | ac_cv_cxx_reinterpret_cast=yes | |
21524 | else | |
21525 | echo "$as_me: failed program was:" >&5 | |
21526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21527 | ||
21528 | ac_cv_cxx_reinterpret_cast=no | |
21529 | fi | |
21530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21531 | ac_ext=c | |
21532 | ac_cpp='$CPP $CPPFLAGS' | |
21533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21536 | ||
21537 | ||
21538 | fi | |
21539 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
21540 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
21541 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
21542 | ||
21543 | cat >>confdefs.h <<\_ACEOF | |
21544 | #define HAVE_REINTERPRET_CAST | |
21545 | _ACEOF | |
21546 | ||
21547 | fi | |
21548 | ||
a848cd7e SC |
21549 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
21550 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
21551 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
21552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21553 | else | |
21554 | ||
21555 | ||
21556 | ac_ext=cc | |
21557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21561 | ||
21562 | cat >conftest.$ac_ext <<_ACEOF | |
21563 | /* confdefs.h. */ | |
21564 | _ACEOF | |
21565 | cat confdefs.h >>conftest.$ac_ext | |
21566 | cat >>conftest.$ac_ext <<_ACEOF | |
21567 | /* end confdefs.h. */ | |
21568 | #include <typeinfo> | |
21569 | class Base { public : Base () {} virtual void f () = 0; }; | |
21570 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
21571 | int g (Derived&) { return 0; } | |
21572 | int | |
21573 | main () | |
21574 | { | |
21575 | ||
21576 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21577 | ; | |
21578 | return 0; | |
21579 | } | |
21580 | _ACEOF | |
21581 | rm -f conftest.$ac_objext | |
21582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21583 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21584 | ac_status=$? |
ac1cb8d3 VS |
21585 | grep -v '^ *+' conftest.er1 >conftest.err |
21586 | rm -f conftest.er1 | |
21587 | cat conftest.err >&5 | |
a848cd7e SC |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21589 | (exit $ac_status); } && | |
6ebeb4c7 | 21590 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21592 | (eval $ac_try) 2>&5 | |
21593 | ac_status=$? | |
21594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21595 | (exit $ac_status); }; } && | |
21596 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21598 | (eval $ac_try) 2>&5 | |
21599 | ac_status=$? | |
21600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21601 | (exit $ac_status); }; }; then | |
21602 | ac_cv_cxx_static_cast=yes | |
21603 | else | |
21604 | echo "$as_me: failed program was:" >&5 | |
21605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21606 | ||
21607 | ac_cv_cxx_static_cast=no | |
21608 | fi | |
ac1cb8d3 | 21609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21610 | ac_ext=c |
21611 | ac_cpp='$CPP $CPPFLAGS' | |
21612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21615 | ||
21616 | ||
21617 | fi | |
21618 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21619 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21620 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21621 | ||
21622 | cat >>confdefs.h <<\_ACEOF | |
21623 | #define HAVE_STATIC_CAST | |
21624 | _ACEOF | |
21625 | ||
21626 | fi | |
21627 | ||
21628 | ||
3c28b7cb MW |
21629 | if test "x$SUNCXX" = xyes; then |
21630 | CXXFLAGS="$CXXFLAGS -features=tmplife" | |
21631 | fi | |
21632 | ||
9122d155 VZ |
21633 | if test "x$SUNCC" = xyes; then |
21634 | CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN" | |
21635 | fi | |
21636 | ||
0ad5d837 VZ |
21637 | if test "x$SGICC" = "xyes"; then |
21638 | CFLAGS="$CFLAGS -woff 3970" | |
21639 | fi | |
21640 | if test "x$SGICXX" = "xyes"; then | |
21641 | CXXFLAGS="$CXXFLAGS -woff 3970" | |
21642 | fi | |
21643 | ||
f56c22b4 | 21644 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
21645 | ac_ext=cc |
21646 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21647 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21648 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21649 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21650 | ||
21651 | ||
f56c22b4 MW |
21652 | if test "$wxUSE_UNICODE" = "yes"; then |
21653 | std_string="std::wstring" | |
21654 | char_type="wchar_t" | |
21655 | else | |
21656 | std_string="std::string" | |
21657 | char_type="char" | |
21658 | fi | |
21659 | ||
21660 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
21661 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
21662 | cat >conftest.$ac_ext <<_ACEOF |
21663 | /* confdefs.h. */ | |
21664 | _ACEOF | |
21665 | cat confdefs.h >>conftest.$ac_ext | |
21666 | cat >>conftest.$ac_ext <<_ACEOF | |
21667 | /* end confdefs.h. */ | |
21668 | #include <string> | |
a848cd7e SC |
21669 | int |
21670 | main () | |
21671 | { | |
f56c22b4 | 21672 | $std_string foo; |
a848cd7e SC |
21673 | ; |
21674 | return 0; | |
21675 | } | |
21676 | _ACEOF | |
21677 | rm -f conftest.$ac_objext | |
21678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21679 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21680 | ac_status=$? |
ac1cb8d3 VS |
21681 | grep -v '^ *+' conftest.er1 >conftest.err |
21682 | rm -f conftest.er1 | |
21683 | cat conftest.err >&5 | |
a848cd7e SC |
21684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21685 | (exit $ac_status); } && | |
6ebeb4c7 | 21686 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21688 | (eval $ac_try) 2>&5 | |
21689 | ac_status=$? | |
21690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21691 | (exit $ac_status); }; } && | |
21692 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21694 | (eval $ac_try) 2>&5 | |
21695 | ac_status=$? | |
21696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21697 | (exit $ac_status); }; }; then | |
21698 | echo "$as_me:$LINENO: result: yes" >&5 | |
21699 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
21700 | cat >>confdefs.h <<\_ACEOF |
21701 | #define HAVE_STD_WSTRING 1 | |
21702 | _ACEOF | |
21703 | ||
a848cd7e SC |
21704 | else |
21705 | echo "$as_me: failed program was:" >&5 | |
21706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21707 | ||
21708 | echo "$as_me:$LINENO: result: no" >&5 | |
21709 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
21710 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
21711 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
21712 | cat >conftest.$ac_ext <<_ACEOF |
21713 | /* confdefs.h. */ | |
21714 | _ACEOF | |
21715 | cat confdefs.h >>conftest.$ac_ext | |
21716 | cat >>conftest.$ac_ext <<_ACEOF | |
21717 | /* end confdefs.h. */ | |
21718 | ||
21719 | #ifdef HAVE_WCHAR_H | |
21720 | # ifdef __CYGWIN__ | |
21721 | # include <stddef.h> | |
21722 | # endif | |
21723 | # include <wchar.h> | |
21724 | #endif | |
21725 | #ifdef HAVE_STDLIB_H | |
21726 | # include <stdlib.h> | |
21727 | #endif | |
21728 | #include <stdio.h> | |
21729 | #include <string> | |
21730 | ||
21731 | int | |
21732 | main () | |
21733 | { | |
f56c22b4 MW |
21734 | std::basic_string<$char_type> foo; |
21735 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
21736 | ; |
21737 | return 0; | |
21738 | } | |
21739 | _ACEOF | |
21740 | rm -f conftest.$ac_objext | |
21741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21742 | (eval $ac_compile) 2>conftest.er1 | |
21743 | ac_status=$? | |
21744 | grep -v '^ *+' conftest.er1 >conftest.err | |
21745 | rm -f conftest.er1 | |
21746 | cat conftest.err >&5 | |
21747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21748 | (exit $ac_status); } && | |
6ebeb4c7 | 21749 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
21750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21751 | (eval $ac_try) 2>&5 | |
21752 | ac_status=$? | |
21753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21754 | (exit $ac_status); }; } && | |
21755 | { ac_try='test -s conftest.$ac_objext' | |
21756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21757 | (eval $ac_try) 2>&5 | |
21758 | ac_status=$? | |
21759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21760 | (exit $ac_status); }; }; then | |
21761 | echo "$as_me:$LINENO: result: yes" >&5 | |
21762 | echo "${ECHO_T}yes" >&6 | |
21763 | else | |
21764 | echo "$as_me: failed program was:" >&5 | |
21765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21766 | ||
21767 | echo "$as_me:$LINENO: result: no" >&5 | |
21768 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 21769 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
21770 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
21771 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
21772 | { (exit 1); exit 1; }; } | |
21773 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
21774 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
21775 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 21776 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
21777 | else |
21778 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
21779 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
21780 | wxUSE_STD_STRING=no | |
21781 | fi | |
21782 | ||
0a08f02a | 21783 | |
a848cd7e | 21784 | fi |
ac1cb8d3 | 21785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21786 | |
0a08f02a MB |
21787 | fi |
21788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21789 | ||
21790 | ac_ext=c | |
21791 | ac_cpp='$CPP $CPPFLAGS' | |
21792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
21794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21795 | ||
21796 | fi | |
21797 | ||
21798 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
21799 | ac_ext=cc | |
21800 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21801 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21802 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21803 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21804 | ||
21805 | ||
21806 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
21807 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
21808 | if test "${ac_cv_type_std__istream+set}" = set; then | |
21809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21810 | else | |
21811 | cat >conftest.$ac_ext <<_ACEOF | |
21812 | /* confdefs.h. */ | |
21813 | _ACEOF | |
21814 | cat confdefs.h >>conftest.$ac_ext | |
21815 | cat >>conftest.$ac_ext <<_ACEOF | |
21816 | /* end confdefs.h. */ | |
21817 | #include <iostream> | |
21818 | ||
21819 | int | |
21820 | main () | |
21821 | { | |
21822 | if ((std::istream *) 0) | |
21823 | return 0; | |
21824 | if (sizeof (std::istream)) | |
21825 | return 0; | |
21826 | ; | |
21827 | return 0; | |
21828 | } | |
21829 | _ACEOF | |
21830 | rm -f conftest.$ac_objext | |
21831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21832 | (eval $ac_compile) 2>conftest.er1 | |
21833 | ac_status=$? | |
21834 | grep -v '^ *+' conftest.er1 >conftest.err | |
21835 | rm -f conftest.er1 | |
21836 | cat conftest.err >&5 | |
21837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21838 | (exit $ac_status); } && | |
6ebeb4c7 | 21839 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
21840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21841 | (eval $ac_try) 2>&5 | |
21842 | ac_status=$? | |
21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | (exit $ac_status); }; } && | |
21845 | { ac_try='test -s conftest.$ac_objext' | |
21846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21847 | (eval $ac_try) 2>&5 | |
21848 | ac_status=$? | |
21849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21850 | (exit $ac_status); }; }; then | |
21851 | ac_cv_type_std__istream=yes | |
21852 | else | |
21853 | echo "$as_me: failed program was:" >&5 | |
21854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21855 | ||
21856 | ac_cv_type_std__istream=no | |
21857 | fi | |
21858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21859 | fi | |
21860 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
21861 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
21862 | if test $ac_cv_type_std__istream = yes; then | |
21863 | ||
21864 | cat >>confdefs.h <<_ACEOF | |
21865 | #define HAVE_STD__ISTREAM 1 | |
21866 | _ACEOF | |
21867 | ||
21868 | ||
21869 | else | |
21870 | wxUSE_STD_IOSTREAM=no | |
21871 | fi | |
21872 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
21873 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
21874 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
21875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21876 | else | |
21877 | cat >conftest.$ac_ext <<_ACEOF | |
21878 | /* confdefs.h. */ | |
21879 | _ACEOF | |
21880 | cat confdefs.h >>conftest.$ac_ext | |
21881 | cat >>conftest.$ac_ext <<_ACEOF | |
21882 | /* end confdefs.h. */ | |
21883 | #include <iostream> | |
21884 | ||
21885 | int | |
21886 | main () | |
21887 | { | |
21888 | if ((std::ostream *) 0) | |
21889 | return 0; | |
21890 | if (sizeof (std::ostream)) | |
21891 | return 0; | |
21892 | ; | |
21893 | return 0; | |
21894 | } | |
21895 | _ACEOF | |
21896 | rm -f conftest.$ac_objext | |
21897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21898 | (eval $ac_compile) 2>conftest.er1 | |
21899 | ac_status=$? | |
21900 | grep -v '^ *+' conftest.er1 >conftest.err | |
21901 | rm -f conftest.er1 | |
21902 | cat conftest.err >&5 | |
21903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21904 | (exit $ac_status); } && | |
6ebeb4c7 | 21905 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
21906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21907 | (eval $ac_try) 2>&5 | |
21908 | ac_status=$? | |
21909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21910 | (exit $ac_status); }; } && | |
21911 | { ac_try='test -s conftest.$ac_objext' | |
21912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21913 | (eval $ac_try) 2>&5 | |
21914 | ac_status=$? | |
21915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21916 | (exit $ac_status); }; }; then | |
21917 | ac_cv_type_std__ostream=yes | |
21918 | else | |
21919 | echo "$as_me: failed program was:" >&5 | |
21920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21921 | ||
21922 | ac_cv_type_std__ostream=no | |
21923 | fi | |
21924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21925 | fi | |
21926 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
21927 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
21928 | if test $ac_cv_type_std__ostream = yes; then | |
21929 | ||
21930 | cat >>confdefs.h <<_ACEOF | |
21931 | #define HAVE_STD__OSTREAM 1 | |
21932 | _ACEOF | |
21933 | ||
21934 | ||
21935 | else | |
21936 | wxUSE_STD_IOSTREAM=no | |
21937 | fi | |
21938 | ||
21939 | ||
21940 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
21941 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
21942 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
21943 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
21944 | { (exit 1); exit 1; }; } | |
21945 | else | |
21946 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 21947 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 21948 | fi |
f56c22b4 MW |
21949 | fi |
21950 | ||
21951 | ac_ext=c | |
21952 | ac_cpp='$CPP $CPPFLAGS' | |
21953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
21955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21956 | ||
21957 | fi | |
21958 | ||
21959 | if test "$wxUSE_STL" = "yes"; then | |
21960 | ac_ext=cc | |
21961 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21962 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21963 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21964 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21965 | ||
21966 | ||
21967 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
21968 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
21969 | cat >conftest.$ac_ext <<_ACEOF |
21970 | /* confdefs.h. */ | |
21971 | _ACEOF | |
21972 | cat confdefs.h >>conftest.$ac_ext | |
21973 | cat >>conftest.$ac_ext <<_ACEOF | |
21974 | /* end confdefs.h. */ | |
21975 | #include <string> | |
0a08f02a MB |
21976 | #include <functional> |
21977 | #include <algorithm> | |
21978 | #include <vector> | |
21979 | #include <list> | |
a848cd7e SC |
21980 | int |
21981 | main () | |
21982 | { | |
0a08f02a MB |
21983 | std::vector<int> moo; |
21984 | std::list<int> foo; | |
21985 | std::vector<int>::iterator it = | |
21986 | std::find_if(moo.begin(), moo.end(), | |
21987 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
21988 | ; |
21989 | return 0; | |
21990 | } | |
21991 | _ACEOF | |
21992 | rm -f conftest.$ac_objext | |
21993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21995 | ac_status=$? |
ac1cb8d3 VS |
21996 | grep -v '^ *+' conftest.er1 >conftest.err |
21997 | rm -f conftest.er1 | |
21998 | cat conftest.err >&5 | |
a848cd7e SC |
21999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22000 | (exit $ac_status); } && | |
6ebeb4c7 | 22001 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22003 | (eval $ac_try) 2>&5 | |
22004 | ac_status=$? | |
22005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22006 | (exit $ac_status); }; } && | |
22007 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22009 | (eval $ac_try) 2>&5 | |
22010 | ac_status=$? | |
22011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22012 | (exit $ac_status); }; }; then | |
22013 | echo "$as_me:$LINENO: result: yes" >&5 | |
22014 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
22015 | else |
22016 | echo "$as_me: failed program was:" >&5 | |
22017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22018 | ||
22019 | echo "$as_me:$LINENO: result: no" >&5 | |
22020 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
22021 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
22022 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
22023 | { (exit 1); exit 1; }; } | |
a848cd7e | 22024 | fi |
ac1cb8d3 | 22025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22026 | |
22027 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
22028 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
22029 | cat >conftest.$ac_ext <<_ACEOF | |
22030 | /* confdefs.h. */ | |
22031 | _ACEOF | |
22032 | cat confdefs.h >>conftest.$ac_ext | |
22033 | cat >>conftest.$ac_ext <<_ACEOF | |
22034 | /* end confdefs.h. */ | |
22035 | #include <string> | |
22036 | int | |
22037 | main () | |
22038 | { | |
22039 | std::string foo, bar; | |
22040 | foo.compare(bar); | |
22041 | foo.compare(1, 1, bar); | |
22042 | foo.compare(1, 1, bar, 1, 1); | |
22043 | foo.compare(""); | |
22044 | foo.compare(1, 1, ""); | |
22045 | foo.compare(1, 1, "", 2); | |
22046 | ; | |
22047 | return 0; | |
22048 | } | |
22049 | _ACEOF | |
22050 | rm -f conftest.$ac_objext | |
22051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22052 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22053 | ac_status=$? |
ac1cb8d3 VS |
22054 | grep -v '^ *+' conftest.er1 >conftest.err |
22055 | rm -f conftest.er1 | |
22056 | cat conftest.err >&5 | |
a848cd7e SC |
22057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22058 | (exit $ac_status); } && | |
6ebeb4c7 | 22059 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22061 | (eval $ac_try) 2>&5 | |
22062 | ac_status=$? | |
22063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22064 | (exit $ac_status); }; } && | |
22065 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22067 | (eval $ac_try) 2>&5 | |
22068 | ac_status=$? | |
22069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22070 | (exit $ac_status); }; }; then | |
22071 | echo "$as_me:$LINENO: result: yes" >&5 | |
22072 | echo "${ECHO_T}yes" >&6 | |
22073 | cat >>confdefs.h <<\_ACEOF | |
22074 | #define HAVE_STD_STRING_COMPARE 1 | |
22075 | _ACEOF | |
22076 | ||
22077 | else | |
22078 | echo "$as_me: failed program was:" >&5 | |
22079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22080 | ||
22081 | echo "$as_me:$LINENO: result: no" >&5 | |
22082 | echo "${ECHO_T}no" >&6 | |
22083 | fi | |
ac1cb8d3 | 22084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22085 | |
22086 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22087 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22088 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22089 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22091 | fi | |
22092 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22093 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22094 | else | |
22095 | # Is the header compilable? | |
22096 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
22097 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
22098 | cat >conftest.$ac_ext <<_ACEOF | |
22099 | /* confdefs.h. */ | |
22100 | _ACEOF | |
22101 | cat confdefs.h >>conftest.$ac_ext | |
22102 | cat >>conftest.$ac_ext <<_ACEOF | |
22103 | /* end confdefs.h. */ | |
22104 | $ac_includes_default | |
22105 | #include <hash_map> | |
22106 | _ACEOF | |
22107 | rm -f conftest.$ac_objext | |
22108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22109 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22110 | ac_status=$? |
ac1cb8d3 VS |
22111 | grep -v '^ *+' conftest.er1 >conftest.err |
22112 | rm -f conftest.er1 | |
22113 | cat conftest.err >&5 | |
bdcade0a MB |
22114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22115 | (exit $ac_status); } && | |
6ebeb4c7 | 22116 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22118 | (eval $ac_try) 2>&5 | |
22119 | ac_status=$? | |
22120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22121 | (exit $ac_status); }; } && | |
22122 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22124 | (eval $ac_try) 2>&5 | |
22125 | ac_status=$? | |
22126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22127 | (exit $ac_status); }; }; then | |
22128 | ac_header_compiler=yes | |
22129 | else | |
22130 | echo "$as_me: failed program was:" >&5 | |
22131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22132 | ||
22133 | ac_header_compiler=no | |
22134 | fi | |
ac1cb8d3 | 22135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22136 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22137 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22138 | ||
22139 | # Is the header present? | |
22140 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
22141 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
22142 | cat >conftest.$ac_ext <<_ACEOF | |
22143 | /* confdefs.h. */ | |
22144 | _ACEOF | |
22145 | cat confdefs.h >>conftest.$ac_ext | |
22146 | cat >>conftest.$ac_ext <<_ACEOF | |
22147 | /* end confdefs.h. */ | |
22148 | #include <hash_map> | |
22149 | _ACEOF | |
22150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22152 | ac_status=$? | |
22153 | grep -v '^ *+' conftest.er1 >conftest.err | |
22154 | rm -f conftest.er1 | |
22155 | cat conftest.err >&5 | |
22156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22157 | (exit $ac_status); } >/dev/null; then | |
22158 | if test -s conftest.err; then | |
22159 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22160 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22161 | else |
22162 | ac_cpp_err= | |
22163 | fi | |
22164 | else | |
22165 | ac_cpp_err=yes | |
22166 | fi | |
22167 | if test -z "$ac_cpp_err"; then | |
22168 | ac_header_preproc=yes | |
22169 | else | |
22170 | echo "$as_me: failed program was:" >&5 | |
22171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22172 | ||
22173 | ac_header_preproc=no | |
22174 | fi | |
22175 | rm -f conftest.err conftest.$ac_ext | |
22176 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22177 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22178 | ||
22179 | # So? What about this header? | |
ac1cb8d3 VS |
22180 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22181 | yes:no: ) | |
bdcade0a MB |
22182 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22183 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22184 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
22185 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
22186 | ac_header_preproc=yes | |
bdcade0a | 22187 | ;; |
ac1cb8d3 | 22188 | no:yes:* ) |
bdcade0a MB |
22189 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
22190 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22191 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
22192 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
22193 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
22194 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
22195 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22196 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22197 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
22198 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22199 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
22200 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22201 | ( |
22202 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22203 | ## ----------------------------------------- ## |
22204 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22205 | ## ----------------------------------------- ## | |
bdcade0a MB |
22206 | _ASBOX |
22207 | ) | | |
22208 | sed "s/^/$as_me: WARNING: /" >&2 | |
22209 | ;; | |
22210 | esac | |
22211 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22212 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22213 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22215 | else | |
22216 | ac_cv_header_hash_map=$ac_header_preproc | |
22217 | fi | |
22218 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22219 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22220 | ||
22221 | fi | |
22222 | if test $ac_cv_header_hash_map = yes; then | |
22223 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22224 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22225 | cat >conftest.$ac_ext <<_ACEOF | |
22226 | /* confdefs.h. */ | |
22227 | _ACEOF | |
22228 | cat confdefs.h >>conftest.$ac_ext | |
22229 | cat >>conftest.$ac_ext <<_ACEOF | |
22230 | /* end confdefs.h. */ | |
22231 | #include <hash_map> | |
22232 | #include <hash_set> | |
22233 | int | |
22234 | main () | |
22235 | { | |
22236 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
22237 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
22238 | ; | |
22239 | return 0; | |
22240 | } | |
22241 | _ACEOF | |
22242 | rm -f conftest.$ac_objext | |
22243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22244 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22245 | ac_status=$? |
ac1cb8d3 VS |
22246 | grep -v '^ *+' conftest.er1 >conftest.err |
22247 | rm -f conftest.er1 | |
22248 | cat conftest.err >&5 | |
bdcade0a MB |
22249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22250 | (exit $ac_status); } && | |
6ebeb4c7 | 22251 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22253 | (eval $ac_try) 2>&5 | |
22254 | ac_status=$? | |
22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22256 | (exit $ac_status); }; } && | |
22257 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22259 | (eval $ac_try) 2>&5 | |
22260 | ac_status=$? | |
22261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22262 | (exit $ac_status); }; }; then | |
22263 | echo "$as_me:$LINENO: result: yes" >&5 | |
22264 | echo "${ECHO_T}yes" >&6 | |
22265 | cat >>confdefs.h <<\_ACEOF | |
22266 | #define HAVE_HASH_MAP 1 | |
22267 | _ACEOF | |
22268 | ||
22269 | cat >>confdefs.h <<\_ACEOF | |
22270 | #define HAVE_STD_HASH_MAP 1 | |
22271 | _ACEOF | |
22272 | ||
22273 | else | |
22274 | echo "$as_me: failed program was:" >&5 | |
22275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22276 | ||
22277 | echo "$as_me:$LINENO: result: no" >&5 | |
22278 | echo "${ECHO_T}no" >&6 | |
22279 | fi | |
ac1cb8d3 | 22280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22281 | |
22282 | fi | |
22283 | ||
22284 | ||
22285 | ||
22286 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22287 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22288 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22289 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22291 | fi | |
22292 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22293 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22294 | else | |
22295 | # Is the header compilable? | |
22296 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
22297 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
22298 | cat >conftest.$ac_ext <<_ACEOF | |
22299 | /* confdefs.h. */ | |
22300 | _ACEOF | |
22301 | cat confdefs.h >>conftest.$ac_ext | |
22302 | cat >>conftest.$ac_ext <<_ACEOF | |
22303 | /* end confdefs.h. */ | |
22304 | $ac_includes_default | |
22305 | #include <ext/hash_map> | |
22306 | _ACEOF | |
22307 | rm -f conftest.$ac_objext | |
22308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22309 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22310 | ac_status=$? |
ac1cb8d3 VS |
22311 | grep -v '^ *+' conftest.er1 >conftest.err |
22312 | rm -f conftest.er1 | |
22313 | cat conftest.err >&5 | |
bdcade0a MB |
22314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22315 | (exit $ac_status); } && | |
6ebeb4c7 | 22316 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22318 | (eval $ac_try) 2>&5 | |
22319 | ac_status=$? | |
22320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22321 | (exit $ac_status); }; } && | |
22322 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22324 | (eval $ac_try) 2>&5 | |
22325 | ac_status=$? | |
22326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22327 | (exit $ac_status); }; }; then | |
22328 | ac_header_compiler=yes | |
22329 | else | |
22330 | echo "$as_me: failed program was:" >&5 | |
22331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22332 | ||
22333 | ac_header_compiler=no | |
22334 | fi | |
ac1cb8d3 | 22335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22336 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22337 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22338 | ||
22339 | # Is the header present? | |
22340 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
22341 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
22342 | cat >conftest.$ac_ext <<_ACEOF | |
22343 | /* confdefs.h. */ | |
22344 | _ACEOF | |
22345 | cat confdefs.h >>conftest.$ac_ext | |
22346 | cat >>conftest.$ac_ext <<_ACEOF | |
22347 | /* end confdefs.h. */ | |
22348 | #include <ext/hash_map> | |
22349 | _ACEOF | |
22350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22352 | ac_status=$? | |
22353 | grep -v '^ *+' conftest.er1 >conftest.err | |
22354 | rm -f conftest.er1 | |
22355 | cat conftest.err >&5 | |
22356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22357 | (exit $ac_status); } >/dev/null; then | |
22358 | if test -s conftest.err; then | |
22359 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22360 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22361 | else |
22362 | ac_cpp_err= | |
22363 | fi | |
22364 | else | |
22365 | ac_cpp_err=yes | |
22366 | fi | |
22367 | if test -z "$ac_cpp_err"; then | |
22368 | ac_header_preproc=yes | |
22369 | else | |
22370 | echo "$as_me: failed program was:" >&5 | |
22371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22372 | ||
22373 | ac_header_preproc=no | |
22374 | fi | |
22375 | rm -f conftest.err conftest.$ac_ext | |
22376 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22377 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22378 | ||
22379 | # So? What about this header? | |
ac1cb8d3 VS |
22380 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22381 | yes:no: ) | |
bdcade0a MB |
22382 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22383 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22384 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
22385 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
22386 | ac_header_preproc=yes | |
bdcade0a | 22387 | ;; |
ac1cb8d3 | 22388 | no:yes:* ) |
bdcade0a MB |
22389 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
22390 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22391 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
22392 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
22393 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
22394 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
22395 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22396 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22397 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
22398 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22399 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
22400 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22401 | ( |
22402 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22403 | ## ----------------------------------------- ## |
22404 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22405 | ## ----------------------------------------- ## | |
bdcade0a MB |
22406 | _ASBOX |
22407 | ) | | |
22408 | sed "s/^/$as_me: WARNING: /" >&2 | |
22409 | ;; | |
22410 | esac | |
22411 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
22412 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
22413 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
22414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22415 | else | |
22416 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
22417 | fi | |
22418 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
22419 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
22420 | ||
22421 | fi | |
22422 | if test $ac_cv_header_ext_hash_map = yes; then | |
22423 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22424 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22425 | cat >conftest.$ac_ext <<_ACEOF | |
22426 | /* confdefs.h. */ | |
22427 | _ACEOF | |
22428 | cat confdefs.h >>conftest.$ac_ext | |
22429 | cat >>conftest.$ac_ext <<_ACEOF | |
22430 | /* end confdefs.h. */ | |
22431 | #include <ext/hash_map> | |
22432 | #include <ext/hash_set> | |
22433 | int | |
22434 | main () | |
22435 | { | |
22436 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
22437 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
22438 | ; | |
22439 | return 0; | |
22440 | } | |
22441 | _ACEOF | |
22442 | rm -f conftest.$ac_objext | |
22443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22444 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22445 | ac_status=$? |
ac1cb8d3 VS |
22446 | grep -v '^ *+' conftest.er1 >conftest.err |
22447 | rm -f conftest.er1 | |
22448 | cat conftest.err >&5 | |
bdcade0a MB |
22449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22450 | (exit $ac_status); } && | |
6ebeb4c7 | 22451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22453 | (eval $ac_try) 2>&5 | |
22454 | ac_status=$? | |
22455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22456 | (exit $ac_status); }; } && | |
22457 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22459 | (eval $ac_try) 2>&5 | |
22460 | ac_status=$? | |
22461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22462 | (exit $ac_status); }; }; then | |
22463 | echo "$as_me:$LINENO: result: yes" >&5 | |
22464 | echo "${ECHO_T}yes" >&6 | |
22465 | cat >>confdefs.h <<\_ACEOF | |
22466 | #define HAVE_EXT_HASH_MAP 1 | |
22467 | _ACEOF | |
22468 | ||
22469 | cat >>confdefs.h <<\_ACEOF | |
22470 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
22471 | _ACEOF | |
22472 | ||
22473 | else | |
22474 | echo "$as_me: failed program was:" >&5 | |
22475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22476 | ||
22477 | echo "$as_me:$LINENO: result: no" >&5 | |
22478 | echo "${ECHO_T}no" >&6 | |
22479 | fi | |
ac1cb8d3 | 22480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22481 | |
22482 | fi | |
22483 | ||
22484 | ||
a848cd7e SC |
22485 | |
22486 | ac_ext=c | |
22487 | ac_cpp='$CPP $CPPFLAGS' | |
22488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22491 | ||
22492 | fi | |
22493 | ||
22494 | ||
22495 | SEARCH_INCLUDE="\ | |
22496 | /usr/local/include \ | |
22497 | \ | |
22498 | /usr/Motif-2.1/include \ | |
22499 | /usr/Motif-1.2/include \ | |
22500 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
22501 | \ |
22502 | /usr/dt/include \ | |
22503 | /usr/openwin/include \ | |
22504 | \ | |
22505 | /usr/include/Xm \ | |
22506 | \ | |
22507 | /usr/X11R6/include \ | |
22508 | /usr/X11R6.4/include \ | |
22509 | /usr/X11R5/include \ | |
22510 | /usr/X11R4/include \ | |
22511 | \ | |
22512 | /usr/include/X11R6 \ | |
22513 | /usr/include/X11R5 \ | |
22514 | /usr/include/X11R4 \ | |
22515 | \ | |
22516 | /usr/local/X11R6/include \ | |
22517 | /usr/local/X11R5/include \ | |
22518 | /usr/local/X11R4/include \ | |
22519 | \ | |
22520 | /usr/local/include/X11R6 \ | |
22521 | /usr/local/include/X11R5 \ | |
22522 | /usr/local/include/X11R4 \ | |
22523 | \ | |
22524 | /usr/X11/include \ | |
22525 | /usr/include/X11 \ | |
22526 | /usr/local/X11/include \ | |
22527 | /usr/local/include/X11 \ | |
22528 | \ | |
a848cd7e | 22529 | /usr/XFree86/include/X11 \ |
e051b34e MW |
22530 | /usr/pkg/include \ |
22531 | \ | |
a848cd7e SC |
22532 | /usr/openwin/share/include" |
22533 | ||
6f9cf1e6 | 22534 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 22535 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
22536 | |
22537 | case "${host}" in | |
22538 | *-*-irix6* ) | |
22539 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
22540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22541 | else | |
22542 | ||
c687b303 VZ |
22543 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
22544 | for e in a so sl dylib dll.a; do | |
22545 | libc="$d/libc.$e" | |
22546 | if test -f $libc; then | |
22547 | save_LIBS="$LIBS" | |
22548 | LIBS="$libc" | |
22549 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
22550 | int main() { return 0; } |
22551 | _ACEOF | |
22552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22554 | (eval $ac_link) 2>conftest.er1 | |
22555 | ac_status=$? | |
22556 | grep -v '^ *+' conftest.er1 >conftest.err | |
22557 | rm -f conftest.er1 | |
22558 | cat conftest.err >&5 | |
22559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22560 | (exit $ac_status); } && | |
22561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
22562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22563 | (eval $ac_try) 2>&5 | |
22564 | ac_status=$? | |
22565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22566 | (exit $ac_status); }; } && | |
22567 | { ac_try='test -s conftest$ac_exeext' | |
22568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22569 | (eval $ac_try) 2>&5 | |
22570 | ac_status=$? | |
22571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22572 | (exit $ac_status); }; }; then | |
22573 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
22574 | else | |
22575 | echo "$as_me: failed program was:" >&5 | |
22576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22577 | ||
22578 | fi | |
22579 | rm -f conftest.err conftest.$ac_objext \ | |
22580 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
22581 | LIBS="$save_LIBS" |
22582 | if test "x$wx_cv_std_libpath" != "x"; then | |
22583 | break 2 | |
22584 | fi | |
22585 | fi | |
22586 | done | |
22587 | done | |
22588 | if test "x$wx_cv_std_libpath" = "x"; then | |
22589 | wx_cv_std_libpath="lib" | |
0ad5d837 | 22590 | fi |
0ad5d837 VZ |
22591 | |
22592 | ||
22593 | fi | |
6f9cf1e6 MW |
22594 | |
22595 | ;; | |
22596 | ||
22597 | *-*-solaris2* ) | |
22598 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
22599 | wx_cv_std_libpath="lib/64" | |
22600 | else | |
22601 | wx_cv_std_libpath="lib" | |
22602 | fi | |
22603 | ;; | |
22604 | ||
22605 | *-*-linux* ) | |
22606 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
22607 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
22608 | wx_cv_std_libpath="lib64" | |
22609 | else | |
22610 | wx_cv_std_libpath="lib" | |
22611 | fi | |
c687b303 VZ |
22612 | ;; |
22613 | ||
22614 | *) | |
22615 | wx_cv_std_libpath="lib"; | |
22616 | ;; | |
22617 | esac | |
0ad5d837 | 22618 | |
6f9cf1e6 MW |
22619 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
22620 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
22621 | ||
22622 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 22623 | |
3eca31dc MW |
22624 | if test "$build" != "$host" -a "$GCC" = yes; then |
22625 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
22626 | cross_root=`dirname $cross_root` | |
22627 | cross_root=`dirname $cross_root` | |
22628 | ||
22629 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22630 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22631 | ||
22632 | if test -z "$PKG_CONFIG_PATH"; then | |
22633 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
22634 | export PKG_CONFIG_PATH | |
22635 | fi | |
22636 | ||
22637 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
22638 | ||
22639 | ac_find_includes= | |
22640 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
22641 | do | |
22642 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
22643 | ac_find_includes=$ac_dir | |
22644 | break | |
22645 | fi | |
22646 | done | |
22647 | ||
22648 | x_includes=$ac_find_includes | |
22649 | fi | |
22650 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
22651 | ||
0ad5d837 VZ |
22652 | ac_find_libraries= |
22653 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
22654 | do |
22655 | for ac_extension in a so sl dylib dll.a; do | |
22656 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
22657 | ac_find_libraries=$ac_dir | |
22658 | break 2 | |
22659 | fi | |
22660 | done | |
22661 | done | |
22662 | ||
22663 | x_libraries=$ac_find_libraries | |
22664 | fi | |
22665 | fi | |
22666 | fi | |
22667 | ||
a848cd7e SC |
22668 | |
22669 | cat >confcache <<\_ACEOF | |
22670 | # This file is a shell script that caches the results of configure | |
22671 | # tests run on this system so they can be shared between configure | |
22672 | # scripts and configure runs, see configure's option --config-cache. | |
22673 | # It is not useful on other systems. If it contains results you don't | |
22674 | # want to keep, you may remove or edit it. | |
22675 | # | |
22676 | # config.status only pays attention to the cache file if you give it | |
22677 | # the --recheck option to rerun configure. | |
22678 | # | |
22679 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22680 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22681 | # following values. | |
22682 | ||
22683 | _ACEOF | |
22684 | ||
22685 | # The following way of writing the cache mishandles newlines in values, | |
22686 | # but we know of no workaround that is simple, portable, and efficient. | |
22687 | # So, don't put newlines in cache variables' values. | |
22688 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22689 | # and sets the high bit in the cache file unless we assign to the vars. | |
22690 | { | |
22691 | (set) 2>&1 | | |
22692 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22693 | *ac_space=\ *) | |
22694 | # `set' does not quote correctly, so add quotes (double-quote | |
22695 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22696 | sed -n \ | |
ac1cb8d3 VS |
22697 | "s/'/'\\\\''/g; |
22698 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
22699 | ;; |
22700 | *) | |
22701 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22702 | sed -n \ | |
ac1cb8d3 | 22703 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
22704 | ;; |
22705 | esac; | |
22706 | } | | |
22707 | sed ' | |
22708 | t clear | |
22709 | : clear | |
22710 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22711 | t end | |
22712 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22713 | : end' >>confcache | |
22714 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
22715 | if test -w $cache_file; then | |
22716 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
22717 | cat confcache >$cache_file | |
22718 | else | |
22719 | echo "not updating unwritable cache $cache_file" | |
22720 | fi | |
22721 | fi | |
22722 | rm -f confcache | |
22723 | ||
22724 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
22725 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
22726 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
22727 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
22728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22729 | else | |
22730 | ||
22731 | cat >conftest.$ac_ext <<_ACEOF | |
22732 | /* confdefs.h. */ | |
22733 | _ACEOF | |
22734 | cat confdefs.h >>conftest.$ac_ext | |
22735 | cat >>conftest.$ac_ext <<_ACEOF | |
22736 | /* end confdefs.h. */ | |
22737 | #include <features.h> | |
22738 | int | |
22739 | main () | |
22740 | { | |
22741 | ||
22742 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 22743 | not glibc 2.1 |
a848cd7e SC |
22744 | #endif |
22745 | ||
22746 | ; | |
22747 | return 0; | |
22748 | } | |
22749 | _ACEOF | |
22750 | rm -f conftest.$ac_objext | |
22751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22752 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22753 | ac_status=$? |
ac1cb8d3 VS |
22754 | grep -v '^ *+' conftest.er1 >conftest.err |
22755 | rm -f conftest.er1 | |
22756 | cat conftest.err >&5 | |
a848cd7e SC |
22757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22758 | (exit $ac_status); } && | |
6ebeb4c7 | 22759 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22761 | (eval $ac_try) 2>&5 | |
22762 | ac_status=$? | |
22763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22764 | (exit $ac_status); }; } && | |
22765 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22767 | (eval $ac_try) 2>&5 | |
22768 | ac_status=$? | |
22769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22770 | (exit $ac_status); }; }; then | |
22771 | ||
22772 | wx_cv_lib_glibc21=yes | |
22773 | ||
22774 | else | |
22775 | echo "$as_me: failed program was:" >&5 | |
22776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22777 | ||
22778 | ||
22779 | wx_cv_lib_glibc21=no | |
22780 | ||
22781 | ||
22782 | fi | |
ac1cb8d3 | 22783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22784 | |
22785 | fi | |
22786 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
22787 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
22788 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
22789 | cat >>confdefs.h <<\_ACEOF | |
22790 | #define wxHAVE_GLIBC2 1 | |
22791 | _ACEOF | |
22792 | ||
22793 | fi | |
22794 | fi | |
22795 | ||
22796 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
22797 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
22798 | cat >>confdefs.h <<\_ACEOF | |
22799 | #define _GNU_SOURCE 1 | |
22800 | _ACEOF | |
22801 | ||
22802 | fi | |
22803 | fi | |
22804 | ||
22805 | ||
22806 | ||
22807 | if test "$wxUSE_REGEX" != "no"; then | |
22808 | cat >>confdefs.h <<\_ACEOF | |
22809 | #define wxUSE_REGEX 1 | |
22810 | _ACEOF | |
22811 | ||
22812 | ||
22813 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22814 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
22815 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
22816 | wxUSE_REGEX=builtin | |
22817 | fi | |
22818 | ||
22819 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22820 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22821 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22822 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22823 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22825 | fi | |
22826 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22827 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22828 | else | |
22829 | # Is the header compilable? | |
22830 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
22831 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
22832 | cat >conftest.$ac_ext <<_ACEOF | |
22833 | /* confdefs.h. */ | |
22834 | _ACEOF | |
22835 | cat confdefs.h >>conftest.$ac_ext | |
22836 | cat >>conftest.$ac_ext <<_ACEOF | |
22837 | /* end confdefs.h. */ | |
22838 | $ac_includes_default | |
22839 | #include <regex.h> | |
22840 | _ACEOF | |
22841 | rm -f conftest.$ac_objext | |
22842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22843 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22844 | ac_status=$? |
ac1cb8d3 VS |
22845 | grep -v '^ *+' conftest.er1 >conftest.err |
22846 | rm -f conftest.er1 | |
22847 | cat conftest.err >&5 | |
a848cd7e SC |
22848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22849 | (exit $ac_status); } && | |
6ebeb4c7 | 22850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22852 | (eval $ac_try) 2>&5 | |
22853 | ac_status=$? | |
22854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22855 | (exit $ac_status); }; } && | |
22856 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22858 | (eval $ac_try) 2>&5 | |
22859 | ac_status=$? | |
22860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22861 | (exit $ac_status); }; }; then | |
22862 | ac_header_compiler=yes | |
22863 | else | |
22864 | echo "$as_me: failed program was:" >&5 | |
22865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22866 | ||
22867 | ac_header_compiler=no | |
22868 | fi | |
ac1cb8d3 | 22869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22870 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22871 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22872 | ||
22873 | # Is the header present? | |
22874 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
22875 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
22876 | cat >conftest.$ac_ext <<_ACEOF | |
22877 | /* confdefs.h. */ | |
22878 | _ACEOF | |
22879 | cat confdefs.h >>conftest.$ac_ext | |
22880 | cat >>conftest.$ac_ext <<_ACEOF | |
22881 | /* end confdefs.h. */ | |
22882 | #include <regex.h> | |
22883 | _ACEOF | |
22884 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22885 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22886 | ac_status=$? | |
22887 | grep -v '^ *+' conftest.er1 >conftest.err | |
22888 | rm -f conftest.er1 | |
22889 | cat conftest.err >&5 | |
22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22891 | (exit $ac_status); } >/dev/null; then | |
22892 | if test -s conftest.err; then | |
22893 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22894 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22895 | else |
22896 | ac_cpp_err= | |
22897 | fi | |
22898 | else | |
22899 | ac_cpp_err=yes | |
22900 | fi | |
22901 | if test -z "$ac_cpp_err"; then | |
22902 | ac_header_preproc=yes | |
22903 | else | |
22904 | echo "$as_me: failed program was:" >&5 | |
22905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22906 | ||
22907 | ac_header_preproc=no | |
22908 | fi | |
22909 | rm -f conftest.err conftest.$ac_ext | |
22910 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22911 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22912 | ||
22913 | # So? What about this header? | |
ac1cb8d3 VS |
22914 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22915 | yes:no: ) | |
a848cd7e SC |
22916 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22917 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22918 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
22919 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
22920 | ac_header_preproc=yes | |
a848cd7e | 22921 | ;; |
ac1cb8d3 | 22922 | no:yes:* ) |
a848cd7e SC |
22923 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
22924 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22925 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
22926 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
22927 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
22928 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
22929 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22930 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22931 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
22932 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22933 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
22934 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22935 | ( |
22936 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22937 | ## ----------------------------------------- ## |
22938 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22939 | ## ----------------------------------------- ## | |
a848cd7e SC |
22940 | _ASBOX |
22941 | ) | | |
22942 | sed "s/^/$as_me: WARNING: /" >&2 | |
22943 | ;; | |
22944 | esac | |
22945 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
22946 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
22947 | if test "${ac_cv_header_regex_h+set}" = set; then | |
22948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22949 | else | |
22950 | ac_cv_header_regex_h=$ac_header_preproc | |
22951 | fi | |
22952 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
22953 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
22954 | ||
22955 | fi | |
22956 | if test $ac_cv_header_regex_h = yes; then | |
22957 | ||
22958 | for ac_func in regcomp | |
22959 | do | |
22960 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22961 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22962 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22963 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22965 | else | |
22966 | cat >conftest.$ac_ext <<_ACEOF | |
22967 | /* confdefs.h. */ | |
22968 | _ACEOF | |
22969 | cat confdefs.h >>conftest.$ac_ext | |
22970 | cat >>conftest.$ac_ext <<_ACEOF | |
22971 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
22972 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22973 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22974 | #define $ac_func innocuous_$ac_func | |
22975 | ||
a848cd7e SC |
22976 | /* System header to define __stub macros and hopefully few prototypes, |
22977 | which can conflict with char $ac_func (); below. | |
22978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22979 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 22980 | |
a848cd7e SC |
22981 | #ifdef __STDC__ |
22982 | # include <limits.h> | |
22983 | #else | |
22984 | # include <assert.h> | |
22985 | #endif | |
ac1cb8d3 VS |
22986 | |
22987 | #undef $ac_func | |
22988 | ||
a848cd7e SC |
22989 | /* Override any gcc2 internal prototype to avoid an error. */ |
22990 | #ifdef __cplusplus | |
22991 | extern "C" | |
22992 | { | |
22993 | #endif | |
22994 | /* We use char because int might match the return type of a gcc2 | |
22995 | builtin and then its argument prototype would still apply. */ | |
22996 | char $ac_func (); | |
22997 | /* The GNU C library defines this for functions which it implements | |
22998 | to always fail with ENOSYS. Some functions are actually named | |
22999 | something starting with __ and the normal name is an alias. */ | |
23000 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23001 | choke me | |
23002 | #else | |
23003 | char (*f) () = $ac_func; | |
23004 | #endif | |
23005 | #ifdef __cplusplus | |
23006 | } | |
23007 | #endif | |
23008 | ||
23009 | int | |
23010 | main () | |
23011 | { | |
23012 | return f != $ac_func; | |
23013 | ; | |
23014 | return 0; | |
23015 | } | |
23016 | _ACEOF | |
23017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23019 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23020 | ac_status=$? |
ac1cb8d3 VS |
23021 | grep -v '^ *+' conftest.er1 >conftest.err |
23022 | rm -f conftest.er1 | |
23023 | cat conftest.err >&5 | |
a848cd7e SC |
23024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23025 | (exit $ac_status); } && | |
6ebeb4c7 | 23026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23028 | (eval $ac_try) 2>&5 | |
23029 | ac_status=$? | |
23030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23031 | (exit $ac_status); }; } && | |
23032 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23034 | (eval $ac_try) 2>&5 | |
23035 | ac_status=$? | |
23036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23037 | (exit $ac_status); }; }; then | |
23038 | eval "$as_ac_var=yes" | |
23039 | else | |
23040 | echo "$as_me: failed program was:" >&5 | |
23041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23042 | ||
23043 | eval "$as_ac_var=no" | |
23044 | fi | |
ac1cb8d3 VS |
23045 | rm -f conftest.err conftest.$ac_objext \ |
23046 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23047 | fi |
23048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23049 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23050 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23051 | cat >>confdefs.h <<_ACEOF | |
23052 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23053 | _ACEOF | |
23054 | ||
23055 | fi | |
23056 | done | |
23057 | ||
23058 | fi | |
23059 | ||
23060 | ||
23061 | ||
23062 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
23063 | if test "$wxUSE_REGEX" = "sys" ; then | |
23064 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
23065 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
23066 | { (exit 1); exit 1; }; } | |
23067 | else | |
23068 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
23069 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
23070 | wxUSE_REGEX=builtin | |
23071 | fi | |
23072 | else | |
23073 | wxUSE_REGEX=sys | |
23074 | cat >>confdefs.h <<\_ACEOF | |
23075 | #define WX_NO_REGEX_ADVANCED 1 | |
23076 | _ACEOF | |
23077 | ||
23078 | fi | |
23079 | fi | |
23080 | fi | |
23081 | ||
23082 | ||
23083 | ZLIB_LINK= | |
23084 | if test "$wxUSE_ZLIB" != "no" ; then | |
23085 | cat >>confdefs.h <<\_ACEOF | |
23086 | #define wxUSE_ZLIB 1 | |
23087 | _ACEOF | |
23088 | ||
23089 | ||
23090 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
23091 | if test "$USE_DARWIN" = 1; then | |
23092 | system_zlib_h_ok="yes" | |
23093 | else | |
23094 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
23095 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
23096 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23098 | else | |
23099 | if test "$cross_compiling" = yes; then | |
23100 | unset ac_cv_header_zlib_h | |
23101 | ||
23102 | else | |
23103 | cat >conftest.$ac_ext <<_ACEOF | |
23104 | /* confdefs.h. */ | |
23105 | _ACEOF | |
23106 | cat confdefs.h >>conftest.$ac_ext | |
23107 | cat >>conftest.$ac_ext <<_ACEOF | |
23108 | /* end confdefs.h. */ | |
23109 | ||
23110 | #include <zlib.h> | |
23111 | #include <stdio.h> | |
23112 | ||
23113 | int main() | |
23114 | { | |
23115 | FILE *f=fopen("conftestval", "w"); | |
23116 | if (!f) exit(1); | |
23117 | fprintf(f, "%s", | |
23118 | ZLIB_VERSION[0] == '1' && | |
23119 | (ZLIB_VERSION[2] > '1' || | |
23120 | (ZLIB_VERSION[2] == '1' && | |
23121 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
23122 | exit(0); | |
23123 | } | |
23124 | ||
23125 | _ACEOF | |
23126 | rm -f conftest$ac_exeext | |
23127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23128 | (eval $ac_link) 2>&5 | |
23129 | ac_status=$? | |
23130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23133 | (eval $ac_try) 2>&5 | |
23134 | ac_status=$? | |
23135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23136 | (exit $ac_status); }; }; then | |
23137 | ac_cv_header_zlib_h=`cat conftestval` | |
23138 | else | |
23139 | echo "$as_me: program exited with status $ac_status" >&5 | |
23140 | echo "$as_me: failed program was:" >&5 | |
23141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23142 | ||
23143 | ( exit $ac_status ) | |
23144 | ac_cv_header_zlib_h=no | |
23145 | fi | |
ac1cb8d3 | 23146 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23147 | fi |
23148 | ||
23149 | fi | |
23150 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23151 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23152 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23153 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23154 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23155 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23157 | fi | |
23158 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23159 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23160 | else | |
23161 | # Is the header compilable? | |
23162 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
23163 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
23164 | cat >conftest.$ac_ext <<_ACEOF | |
23165 | /* confdefs.h. */ | |
23166 | _ACEOF | |
23167 | cat confdefs.h >>conftest.$ac_ext | |
23168 | cat >>conftest.$ac_ext <<_ACEOF | |
23169 | /* end confdefs.h. */ | |
23170 | $ac_includes_default | |
23171 | #include <zlib.h> | |
23172 | _ACEOF | |
23173 | rm -f conftest.$ac_objext | |
23174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23175 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23176 | ac_status=$? |
ac1cb8d3 VS |
23177 | grep -v '^ *+' conftest.er1 >conftest.err |
23178 | rm -f conftest.er1 | |
23179 | cat conftest.err >&5 | |
a848cd7e SC |
23180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23181 | (exit $ac_status); } && | |
6ebeb4c7 | 23182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23184 | (eval $ac_try) 2>&5 | |
23185 | ac_status=$? | |
23186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23187 | (exit $ac_status); }; } && | |
23188 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23190 | (eval $ac_try) 2>&5 | |
23191 | ac_status=$? | |
23192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23193 | (exit $ac_status); }; }; then | |
23194 | ac_header_compiler=yes | |
23195 | else | |
23196 | echo "$as_me: failed program was:" >&5 | |
23197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23198 | ||
23199 | ac_header_compiler=no | |
23200 | fi | |
ac1cb8d3 | 23201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23202 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23203 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23204 | ||
23205 | # Is the header present? | |
23206 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
23207 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
23208 | cat >conftest.$ac_ext <<_ACEOF | |
23209 | /* confdefs.h. */ | |
23210 | _ACEOF | |
23211 | cat confdefs.h >>conftest.$ac_ext | |
23212 | cat >>conftest.$ac_ext <<_ACEOF | |
23213 | /* end confdefs.h. */ | |
23214 | #include <zlib.h> | |
23215 | _ACEOF | |
23216 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23217 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23218 | ac_status=$? | |
23219 | grep -v '^ *+' conftest.er1 >conftest.err | |
23220 | rm -f conftest.er1 | |
23221 | cat conftest.err >&5 | |
23222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23223 | (exit $ac_status); } >/dev/null; then | |
23224 | if test -s conftest.err; then | |
23225 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23226 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23227 | else |
23228 | ac_cpp_err= | |
23229 | fi | |
23230 | else | |
23231 | ac_cpp_err=yes | |
23232 | fi | |
23233 | if test -z "$ac_cpp_err"; then | |
23234 | ac_header_preproc=yes | |
23235 | else | |
23236 | echo "$as_me: failed program was:" >&5 | |
23237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23238 | ||
23239 | ac_header_preproc=no | |
23240 | fi | |
23241 | rm -f conftest.err conftest.$ac_ext | |
23242 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23243 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23244 | ||
23245 | # So? What about this header? | |
ac1cb8d3 VS |
23246 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23247 | yes:no: ) | |
a848cd7e SC |
23248 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23249 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23250 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
23251 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
23252 | ac_header_preproc=yes | |
a848cd7e | 23253 | ;; |
ac1cb8d3 | 23254 | no:yes:* ) |
a848cd7e SC |
23255 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
23256 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23257 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
23258 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
23259 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
23260 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
23261 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23262 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23263 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
23264 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23265 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
23266 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23267 | ( |
23268 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23269 | ## ----------------------------------------- ## |
23270 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23271 | ## ----------------------------------------- ## | |
a848cd7e SC |
23272 | _ASBOX |
23273 | ) | | |
23274 | sed "s/^/$as_me: WARNING: /" >&2 | |
23275 | ;; | |
23276 | esac | |
23277 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23278 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23279 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23281 | else | |
23282 | ac_cv_header_zlib_h=$ac_header_preproc | |
23283 | fi | |
23284 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23285 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23286 | ||
23287 | fi | |
23288 | ||
23289 | ||
23290 | ||
23291 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
23292 | fi | |
23293 | ||
23294 | if test "$system_zlib_h_ok" = "yes"; then | |
23295 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
23296 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
23297 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
23298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23299 | else | |
23300 | ac_check_lib_save_LIBS=$LIBS | |
23301 | LIBS="-lz $LIBS" | |
23302 | cat >conftest.$ac_ext <<_ACEOF | |
23303 | /* confdefs.h. */ | |
23304 | _ACEOF | |
23305 | cat confdefs.h >>conftest.$ac_ext | |
23306 | cat >>conftest.$ac_ext <<_ACEOF | |
23307 | /* end confdefs.h. */ | |
23308 | ||
23309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23310 | #ifdef __cplusplus | |
23311 | extern "C" | |
23312 | #endif | |
23313 | /* We use char because int might match the return type of a gcc2 | |
23314 | builtin and then its argument prototype would still apply. */ | |
23315 | char deflate (); | |
23316 | int | |
23317 | main () | |
23318 | { | |
23319 | deflate (); | |
23320 | ; | |
23321 | return 0; | |
23322 | } | |
23323 | _ACEOF | |
23324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23326 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23327 | ac_status=$? |
ac1cb8d3 VS |
23328 | grep -v '^ *+' conftest.er1 >conftest.err |
23329 | rm -f conftest.er1 | |
23330 | cat conftest.err >&5 | |
a848cd7e SC |
23331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23332 | (exit $ac_status); } && | |
6ebeb4c7 | 23333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23335 | (eval $ac_try) 2>&5 | |
23336 | ac_status=$? | |
23337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23338 | (exit $ac_status); }; } && | |
23339 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23341 | (eval $ac_try) 2>&5 | |
23342 | ac_status=$? | |
23343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23344 | (exit $ac_status); }; }; then | |
23345 | ac_cv_lib_z_deflate=yes | |
23346 | else | |
23347 | echo "$as_me: failed program was:" >&5 | |
23348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23349 | ||
23350 | ac_cv_lib_z_deflate=no | |
23351 | fi | |
ac1cb8d3 VS |
23352 | rm -f conftest.err conftest.$ac_objext \ |
23353 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23354 | LIBS=$ac_check_lib_save_LIBS |
23355 | fi | |
23356 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
23357 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
23358 | if test $ac_cv_lib_z_deflate = yes; then | |
23359 | ZLIB_LINK=" -lz" | |
23360 | fi | |
23361 | ||
23362 | fi | |
23363 | ||
23364 | if test "x$ZLIB_LINK" = "x" ; then | |
23365 | if test "$wxUSE_ZLIB" = "sys" ; then | |
23366 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
23367 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
23368 | { (exit 1); exit 1; }; } | |
23369 | else | |
23370 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
23371 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
23372 | wxUSE_ZLIB=builtin | |
23373 | fi | |
23374 | else | |
23375 | wxUSE_ZLIB=sys | |
23376 | fi | |
23377 | fi | |
23378 | fi | |
23379 | ||
23380 | ||
23381 | PNG_LINK= | |
23382 | if test "$wxUSE_LIBPNG" != "no" ; then | |
23383 | cat >>confdefs.h <<\_ACEOF | |
23384 | #define wxUSE_LIBPNG 1 | |
23385 | _ACEOF | |
23386 | ||
23387 | ||
23388 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
23389 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
23390 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
23391 | wxUSE_LIBPNG=sys | |
23392 | fi | |
23393 | ||
23394 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
23395 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
23396 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
23397 | wxUSE_LIBPNG=builtin | |
23398 | fi | |
23399 | ||
23400 | if test "$wxUSE_MGL" != 1 ; then | |
23401 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
23402 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
23403 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
23404 | if test "${ac_cv_header_png_h+set}" = set; then | |
23405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23406 | else | |
23407 | if test "$cross_compiling" = yes; then | |
23408 | unset ac_cv_header_png_h | |
23409 | ||
23410 | else | |
23411 | cat >conftest.$ac_ext <<_ACEOF | |
23412 | /* confdefs.h. */ | |
23413 | _ACEOF | |
23414 | cat confdefs.h >>conftest.$ac_ext | |
23415 | cat >>conftest.$ac_ext <<_ACEOF | |
23416 | /* end confdefs.h. */ | |
23417 | ||
23418 | #include <png.h> | |
23419 | #include <stdio.h> | |
23420 | ||
23421 | int main() | |
23422 | { | |
23423 | FILE *f=fopen("conftestval", "w"); | |
23424 | if (!f) exit(1); | |
23425 | fprintf(f, "%s", | |
23426 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
23427 | exit(0); | |
23428 | } | |
23429 | ||
23430 | _ACEOF | |
23431 | rm -f conftest$ac_exeext | |
23432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23433 | (eval $ac_link) 2>&5 | |
23434 | ac_status=$? | |
23435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23438 | (eval $ac_try) 2>&5 | |
23439 | ac_status=$? | |
23440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23441 | (exit $ac_status); }; }; then | |
23442 | ac_cv_header_png_h=`cat conftestval` | |
23443 | else | |
23444 | echo "$as_me: program exited with status $ac_status" >&5 | |
23445 | echo "$as_me: failed program was:" >&5 | |
23446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23447 | ||
23448 | ( exit $ac_status ) | |
23449 | ac_cv_header_png_h=no | |
23450 | fi | |
ac1cb8d3 | 23451 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23452 | fi |
23453 | ||
23454 | fi | |
23455 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23456 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23457 | if test "${ac_cv_header_png_h+set}" = set; then | |
23458 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23459 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23460 | if test "${ac_cv_header_png_h+set}" = set; then | |
23461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23462 | fi | |
23463 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23464 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23465 | else | |
23466 | # Is the header compilable? | |
23467 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
23468 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
23469 | cat >conftest.$ac_ext <<_ACEOF | |
23470 | /* confdefs.h. */ | |
23471 | _ACEOF | |
23472 | cat confdefs.h >>conftest.$ac_ext | |
23473 | cat >>conftest.$ac_ext <<_ACEOF | |
23474 | /* end confdefs.h. */ | |
23475 | $ac_includes_default | |
23476 | #include <png.h> | |
23477 | _ACEOF | |
23478 | rm -f conftest.$ac_objext | |
23479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23480 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23481 | ac_status=$? |
ac1cb8d3 VS |
23482 | grep -v '^ *+' conftest.er1 >conftest.err |
23483 | rm -f conftest.er1 | |
23484 | cat conftest.err >&5 | |
a848cd7e SC |
23485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23486 | (exit $ac_status); } && | |
6ebeb4c7 | 23487 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23489 | (eval $ac_try) 2>&5 | |
23490 | ac_status=$? | |
23491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23492 | (exit $ac_status); }; } && | |
23493 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23495 | (eval $ac_try) 2>&5 | |
23496 | ac_status=$? | |
23497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23498 | (exit $ac_status); }; }; then | |
23499 | ac_header_compiler=yes | |
23500 | else | |
23501 | echo "$as_me: failed program was:" >&5 | |
23502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23503 | ||
23504 | ac_header_compiler=no | |
23505 | fi | |
ac1cb8d3 | 23506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23507 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23508 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23509 | ||
23510 | # Is the header present? | |
23511 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
23512 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
23513 | cat >conftest.$ac_ext <<_ACEOF | |
23514 | /* confdefs.h. */ | |
23515 | _ACEOF | |
23516 | cat confdefs.h >>conftest.$ac_ext | |
23517 | cat >>conftest.$ac_ext <<_ACEOF | |
23518 | /* end confdefs.h. */ | |
23519 | #include <png.h> | |
23520 | _ACEOF | |
23521 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23522 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23523 | ac_status=$? | |
23524 | grep -v '^ *+' conftest.er1 >conftest.err | |
23525 | rm -f conftest.er1 | |
23526 | cat conftest.err >&5 | |
23527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23528 | (exit $ac_status); } >/dev/null; then | |
23529 | if test -s conftest.err; then | |
23530 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23531 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23532 | else |
23533 | ac_cpp_err= | |
23534 | fi | |
23535 | else | |
23536 | ac_cpp_err=yes | |
23537 | fi | |
23538 | if test -z "$ac_cpp_err"; then | |
23539 | ac_header_preproc=yes | |
23540 | else | |
23541 | echo "$as_me: failed program was:" >&5 | |
23542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23543 | ||
23544 | ac_header_preproc=no | |
23545 | fi | |
23546 | rm -f conftest.err conftest.$ac_ext | |
23547 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23548 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23549 | ||
23550 | # So? What about this header? | |
ac1cb8d3 VS |
23551 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23552 | yes:no: ) | |
a848cd7e SC |
23553 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23554 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23555 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
23556 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
23557 | ac_header_preproc=yes | |
a848cd7e | 23558 | ;; |
ac1cb8d3 | 23559 | no:yes:* ) |
a848cd7e SC |
23560 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
23561 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23562 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
23563 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
23564 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
23565 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
23566 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23567 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23568 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
23569 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23570 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
23571 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23572 | ( |
23573 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23574 | ## ----------------------------------------- ## |
23575 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23576 | ## ----------------------------------------- ## | |
a848cd7e SC |
23577 | _ASBOX |
23578 | ) | | |
23579 | sed "s/^/$as_me: WARNING: /" >&2 | |
23580 | ;; | |
23581 | esac | |
23582 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
23583 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
23584 | if test "${ac_cv_header_png_h+set}" = set; then | |
23585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23586 | else | |
23587 | ac_cv_header_png_h=$ac_header_preproc | |
23588 | fi | |
23589 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
23590 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
23591 | ||
23592 | fi | |
23593 | ||
23594 | ||
23595 | ||
23596 | if test "$ac_cv_header_png_h" = "yes"; then | |
23597 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
23598 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
23599 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
23600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23601 | else | |
23602 | ac_check_lib_save_LIBS=$LIBS | |
23603 | LIBS="-lpng -lz -lm $LIBS" | |
23604 | cat >conftest.$ac_ext <<_ACEOF | |
23605 | /* confdefs.h. */ | |
23606 | _ACEOF | |
23607 | cat confdefs.h >>conftest.$ac_ext | |
23608 | cat >>conftest.$ac_ext <<_ACEOF | |
23609 | /* end confdefs.h. */ | |
23610 | ||
23611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23612 | #ifdef __cplusplus | |
23613 | extern "C" | |
23614 | #endif | |
23615 | /* We use char because int might match the return type of a gcc2 | |
23616 | builtin and then its argument prototype would still apply. */ | |
23617 | char png_check_sig (); | |
23618 | int | |
23619 | main () | |
23620 | { | |
23621 | png_check_sig (); | |
23622 | ; | |
23623 | return 0; | |
23624 | } | |
23625 | _ACEOF | |
23626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23628 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23629 | ac_status=$? |
ac1cb8d3 VS |
23630 | grep -v '^ *+' conftest.er1 >conftest.err |
23631 | rm -f conftest.er1 | |
23632 | cat conftest.err >&5 | |
a848cd7e SC |
23633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23634 | (exit $ac_status); } && | |
6ebeb4c7 | 23635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23637 | (eval $ac_try) 2>&5 | |
23638 | ac_status=$? | |
23639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23640 | (exit $ac_status); }; } && | |
23641 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23643 | (eval $ac_try) 2>&5 | |
23644 | ac_status=$? | |
23645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23646 | (exit $ac_status); }; }; then | |
23647 | ac_cv_lib_png_png_check_sig=yes | |
23648 | else | |
23649 | echo "$as_me: failed program was:" >&5 | |
23650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23651 | ||
23652 | ac_cv_lib_png_png_check_sig=no | |
23653 | fi | |
ac1cb8d3 VS |
23654 | rm -f conftest.err conftest.$ac_objext \ |
23655 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23656 | LIBS=$ac_check_lib_save_LIBS |
23657 | fi | |
23658 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
23659 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
23660 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
23661 | PNG_LINK=" -lpng -lz" | |
23662 | fi | |
23663 | ||
23664 | fi | |
23665 | ||
23666 | if test "x$PNG_LINK" = "x" ; then | |
23667 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
23668 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
23669 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
23670 | { (exit 1); exit 1; }; } | |
23671 | else | |
23672 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
23673 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
23674 | wxUSE_LIBPNG=builtin | |
23675 | fi | |
23676 | else | |
23677 | wxUSE_LIBPNG=sys | |
23678 | fi | |
23679 | fi | |
23680 | fi | |
23681 | ||
23682 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
23683 | fi | |
23684 | ||
23685 | ||
23686 | JPEG_LINK= | |
23687 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
23688 | cat >>confdefs.h <<\_ACEOF | |
23689 | #define wxUSE_LIBJPEG 1 | |
23690 | _ACEOF | |
23691 | ||
23692 | ||
23693 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
23694 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
23695 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
23696 | wxUSE_LIBJPEG=sys | |
23697 | fi | |
23698 | ||
23699 | if test "$wxUSE_MGL" != 1 ; then | |
23700 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
23701 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
23702 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
23703 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
23704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23705 | else | |
23706 | cat >conftest.$ac_ext <<_ACEOF | |
23707 | /* confdefs.h. */ | |
23708 | _ACEOF | |
23709 | cat confdefs.h >>conftest.$ac_ext | |
23710 | cat >>conftest.$ac_ext <<_ACEOF | |
23711 | /* end confdefs.h. */ | |
23712 | ||
23713 | #undef HAVE_STDLIB_H | |
23714 | #include <stdio.h> | |
23715 | #include <jpeglib.h> | |
23716 | ||
23717 | int | |
23718 | main () | |
23719 | { | |
23720 | ||
23721 | ||
23722 | ; | |
23723 | return 0; | |
23724 | } | |
23725 | _ACEOF | |
23726 | rm -f conftest.$ac_objext | |
23727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23728 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23729 | ac_status=$? |
ac1cb8d3 VS |
23730 | grep -v '^ *+' conftest.er1 >conftest.err |
23731 | rm -f conftest.er1 | |
23732 | cat conftest.err >&5 | |
a848cd7e SC |
23733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23734 | (exit $ac_status); } && | |
6ebeb4c7 | 23735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23737 | (eval $ac_try) 2>&5 | |
23738 | ac_status=$? | |
23739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23740 | (exit $ac_status); }; } && | |
23741 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23743 | (eval $ac_try) 2>&5 | |
23744 | ac_status=$? | |
23745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23746 | (exit $ac_status); }; }; then | |
23747 | ac_cv_header_jpeglib_h=yes | |
23748 | else | |
23749 | echo "$as_me: failed program was:" >&5 | |
23750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23751 | ||
23752 | ac_cv_header_jpeglib_h=no | |
23753 | ||
23754 | fi | |
ac1cb8d3 | 23755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23756 | |
23757 | fi | |
23758 | ||
23759 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
23760 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
23761 | ||
23762 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
23763 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
23764 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
23765 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
23766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23767 | else | |
23768 | ac_check_lib_save_LIBS=$LIBS | |
23769 | LIBS="-ljpeg $LIBS" | |
23770 | cat >conftest.$ac_ext <<_ACEOF | |
23771 | /* confdefs.h. */ | |
23772 | _ACEOF | |
23773 | cat confdefs.h >>conftest.$ac_ext | |
23774 | cat >>conftest.$ac_ext <<_ACEOF | |
23775 | /* end confdefs.h. */ | |
23776 | ||
23777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23778 | #ifdef __cplusplus | |
23779 | extern "C" | |
23780 | #endif | |
23781 | /* We use char because int might match the return type of a gcc2 | |
23782 | builtin and then its argument prototype would still apply. */ | |
23783 | char jpeg_read_header (); | |
23784 | int | |
23785 | main () | |
23786 | { | |
23787 | jpeg_read_header (); | |
23788 | ; | |
23789 | return 0; | |
23790 | } | |
23791 | _ACEOF | |
23792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23794 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23795 | ac_status=$? |
ac1cb8d3 VS |
23796 | grep -v '^ *+' conftest.er1 >conftest.err |
23797 | rm -f conftest.er1 | |
23798 | cat conftest.err >&5 | |
a848cd7e SC |
23799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23800 | (exit $ac_status); } && | |
6ebeb4c7 | 23801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23803 | (eval $ac_try) 2>&5 | |
23804 | ac_status=$? | |
23805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23806 | (exit $ac_status); }; } && | |
23807 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23809 | (eval $ac_try) 2>&5 | |
23810 | ac_status=$? | |
23811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23812 | (exit $ac_status); }; }; then | |
23813 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
23814 | else | |
23815 | echo "$as_me: failed program was:" >&5 | |
23816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23817 | ||
23818 | ac_cv_lib_jpeg_jpeg_read_header=no | |
23819 | fi | |
ac1cb8d3 VS |
23820 | rm -f conftest.err conftest.$ac_objext \ |
23821 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23822 | LIBS=$ac_check_lib_save_LIBS |
23823 | fi | |
23824 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
23825 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
23826 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
23827 | JPEG_LINK=" -ljpeg" | |
23828 | fi | |
23829 | ||
23830 | fi | |
23831 | ||
23832 | if test "x$JPEG_LINK" = "x" ; then | |
23833 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
23834 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
23835 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
23836 | { (exit 1); exit 1; }; } | |
23837 | else | |
23838 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
23839 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
23840 | wxUSE_LIBJPEG=builtin | |
23841 | fi | |
23842 | else | |
23843 | wxUSE_LIBJPEG=sys | |
23844 | fi | |
23845 | fi | |
23846 | fi | |
23847 | fi | |
23848 | ||
23849 | ||
23850 | TIFF_LINK= | |
23851 | TIFF_PREREQ_LINKS=-lm | |
23852 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
23853 | cat >>confdefs.h <<\_ACEOF | |
23854 | #define wxUSE_LIBTIFF 1 | |
23855 | _ACEOF | |
23856 | ||
23857 | ||
23858 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
23859 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
23860 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
23861 | fi | |
23862 | if test "$wxUSE_ZLIB" = "sys"; then | |
23863 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
23864 | fi | |
23865 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23866 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23867 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23868 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23870 | fi | |
23871 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23872 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23873 | else | |
23874 | # Is the header compilable? | |
23875 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
23876 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
23877 | cat >conftest.$ac_ext <<_ACEOF | |
23878 | /* confdefs.h. */ | |
23879 | _ACEOF | |
23880 | cat confdefs.h >>conftest.$ac_ext | |
23881 | cat >>conftest.$ac_ext <<_ACEOF | |
23882 | /* end confdefs.h. */ | |
23883 | $ac_includes_default | |
23884 | #include <tiffio.h> | |
23885 | _ACEOF | |
23886 | rm -f conftest.$ac_objext | |
23887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23888 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23889 | ac_status=$? |
ac1cb8d3 VS |
23890 | grep -v '^ *+' conftest.er1 >conftest.err |
23891 | rm -f conftest.er1 | |
23892 | cat conftest.err >&5 | |
a848cd7e SC |
23893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23894 | (exit $ac_status); } && | |
6ebeb4c7 | 23895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23897 | (eval $ac_try) 2>&5 | |
23898 | ac_status=$? | |
23899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23900 | (exit $ac_status); }; } && | |
23901 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23903 | (eval $ac_try) 2>&5 | |
23904 | ac_status=$? | |
23905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23906 | (exit $ac_status); }; }; then | |
23907 | ac_header_compiler=yes | |
23908 | else | |
23909 | echo "$as_me: failed program was:" >&5 | |
23910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23911 | ||
23912 | ac_header_compiler=no | |
23913 | fi | |
ac1cb8d3 | 23914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23915 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23916 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23917 | ||
23918 | # Is the header present? | |
23919 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
23920 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
23921 | cat >conftest.$ac_ext <<_ACEOF | |
23922 | /* confdefs.h. */ | |
23923 | _ACEOF | |
23924 | cat confdefs.h >>conftest.$ac_ext | |
23925 | cat >>conftest.$ac_ext <<_ACEOF | |
23926 | /* end confdefs.h. */ | |
23927 | #include <tiffio.h> | |
23928 | _ACEOF | |
23929 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23931 | ac_status=$? | |
23932 | grep -v '^ *+' conftest.er1 >conftest.err | |
23933 | rm -f conftest.er1 | |
23934 | cat conftest.err >&5 | |
23935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23936 | (exit $ac_status); } >/dev/null; then | |
23937 | if test -s conftest.err; then | |
23938 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23939 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23940 | else |
23941 | ac_cpp_err= | |
23942 | fi | |
23943 | else | |
23944 | ac_cpp_err=yes | |
23945 | fi | |
23946 | if test -z "$ac_cpp_err"; then | |
23947 | ac_header_preproc=yes | |
23948 | else | |
23949 | echo "$as_me: failed program was:" >&5 | |
23950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23951 | ||
23952 | ac_header_preproc=no | |
23953 | fi | |
23954 | rm -f conftest.err conftest.$ac_ext | |
23955 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23956 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23957 | ||
23958 | # So? What about this header? | |
ac1cb8d3 VS |
23959 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23960 | yes:no: ) | |
a848cd7e SC |
23961 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23962 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23963 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
23964 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
23965 | ac_header_preproc=yes | |
a848cd7e | 23966 | ;; |
ac1cb8d3 | 23967 | no:yes:* ) |
a848cd7e SC |
23968 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
23969 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23970 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
23971 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
23972 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
23973 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
23974 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23975 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23976 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
23977 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23978 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
23979 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23980 | ( |
23981 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23982 | ## ----------------------------------------- ## |
23983 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23984 | ## ----------------------------------------- ## | |
a848cd7e SC |
23985 | _ASBOX |
23986 | ) | | |
23987 | sed "s/^/$as_me: WARNING: /" >&2 | |
23988 | ;; | |
23989 | esac | |
23990 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23991 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23992 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23994 | else | |
23995 | ac_cv_header_tiffio_h=$ac_header_preproc | |
23996 | fi | |
23997 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23998 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23999 | ||
24000 | fi | |
24001 | if test $ac_cv_header_tiffio_h = yes; then | |
24002 | ||
24003 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
24004 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
24005 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
24006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24007 | else | |
24008 | ac_check_lib_save_LIBS=$LIBS | |
24009 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
24010 | cat >conftest.$ac_ext <<_ACEOF | |
24011 | /* confdefs.h. */ | |
24012 | _ACEOF | |
24013 | cat confdefs.h >>conftest.$ac_ext | |
24014 | cat >>conftest.$ac_ext <<_ACEOF | |
24015 | /* end confdefs.h. */ | |
24016 | ||
24017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24018 | #ifdef __cplusplus | |
24019 | extern "C" | |
24020 | #endif | |
24021 | /* We use char because int might match the return type of a gcc2 | |
24022 | builtin and then its argument prototype would still apply. */ | |
24023 | char TIFFError (); | |
24024 | int | |
24025 | main () | |
24026 | { | |
24027 | TIFFError (); | |
24028 | ; | |
24029 | return 0; | |
24030 | } | |
24031 | _ACEOF | |
24032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24034 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24035 | ac_status=$? |
ac1cb8d3 VS |
24036 | grep -v '^ *+' conftest.er1 >conftest.err |
24037 | rm -f conftest.er1 | |
24038 | cat conftest.err >&5 | |
a848cd7e SC |
24039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24040 | (exit $ac_status); } && | |
6ebeb4c7 | 24041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24043 | (eval $ac_try) 2>&5 | |
24044 | ac_status=$? | |
24045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24046 | (exit $ac_status); }; } && | |
24047 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24049 | (eval $ac_try) 2>&5 | |
24050 | ac_status=$? | |
24051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24052 | (exit $ac_status); }; }; then | |
24053 | ac_cv_lib_tiff_TIFFError=yes | |
24054 | else | |
24055 | echo "$as_me: failed program was:" >&5 | |
24056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24057 | ||
24058 | ac_cv_lib_tiff_TIFFError=no | |
24059 | fi | |
ac1cb8d3 VS |
24060 | rm -f conftest.err conftest.$ac_objext \ |
24061 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24062 | LIBS=$ac_check_lib_save_LIBS |
24063 | fi | |
24064 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
24065 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
24066 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
24067 | TIFF_LINK=" -ltiff" | |
24068 | fi | |
24069 | ||
24070 | ||
24071 | ||
24072 | fi | |
24073 | ||
24074 | ||
24075 | ||
24076 | if test "x$TIFF_LINK" = "x" ; then | |
24077 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
24078 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
24079 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
24080 | { (exit 1); exit 1; }; } | |
24081 | else | |
24082 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
24083 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
24084 | wxUSE_LIBTIFF=builtin | |
24085 | fi | |
24086 | else | |
24087 | wxUSE_LIBTIFF=sys | |
24088 | fi | |
24089 | fi | |
24090 | fi | |
24091 | ||
24092 | ||
47a7e797 MW |
24093 | if test "$wxUSE_WCHAR_T" != "yes"; then |
24094 | if test "$wxUSE_EXPAT" != "no"; then | |
24095 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
24096 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
24097 | wxUSE_EXPAT=no | |
24098 | fi | |
24099 | if test "$wxUSE_XML" != "no"; then | |
24100 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
24101 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
24102 | wxUSE_XML=no | |
24103 | fi | |
24104 | fi | |
24105 | ||
a848cd7e SC |
24106 | if test "$wxUSE_EXPAT" != "no"; then |
24107 | wxUSE_XML=yes | |
24108 | cat >>confdefs.h <<\_ACEOF | |
24109 | #define wxUSE_EXPAT 1 | |
24110 | _ACEOF | |
24111 | ||
24112 | cat >>confdefs.h <<\_ACEOF | |
24113 | #define wxUSE_XML 1 | |
24114 | _ACEOF | |
24115 | ||
24116 | ||
24117 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
24118 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24119 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24120 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24121 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24123 | fi | |
24124 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24125 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24126 | else | |
24127 | # Is the header compilable? | |
24128 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
24129 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
24130 | cat >conftest.$ac_ext <<_ACEOF | |
24131 | /* confdefs.h. */ | |
24132 | _ACEOF | |
24133 | cat confdefs.h >>conftest.$ac_ext | |
24134 | cat >>conftest.$ac_ext <<_ACEOF | |
24135 | /* end confdefs.h. */ | |
24136 | $ac_includes_default | |
24137 | #include <expat.h> | |
24138 | _ACEOF | |
24139 | rm -f conftest.$ac_objext | |
24140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24141 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24142 | ac_status=$? |
ac1cb8d3 VS |
24143 | grep -v '^ *+' conftest.er1 >conftest.err |
24144 | rm -f conftest.er1 | |
24145 | cat conftest.err >&5 | |
a848cd7e SC |
24146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24147 | (exit $ac_status); } && | |
6ebeb4c7 | 24148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24150 | (eval $ac_try) 2>&5 | |
24151 | ac_status=$? | |
24152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24153 | (exit $ac_status); }; } && | |
24154 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24156 | (eval $ac_try) 2>&5 | |
24157 | ac_status=$? | |
24158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24159 | (exit $ac_status); }; }; then | |
24160 | ac_header_compiler=yes | |
24161 | else | |
24162 | echo "$as_me: failed program was:" >&5 | |
24163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24164 | ||
24165 | ac_header_compiler=no | |
24166 | fi | |
ac1cb8d3 | 24167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24168 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24169 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24170 | ||
24171 | # Is the header present? | |
24172 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
24173 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
24174 | cat >conftest.$ac_ext <<_ACEOF | |
24175 | /* confdefs.h. */ | |
24176 | _ACEOF | |
24177 | cat confdefs.h >>conftest.$ac_ext | |
24178 | cat >>conftest.$ac_ext <<_ACEOF | |
24179 | /* end confdefs.h. */ | |
24180 | #include <expat.h> | |
24181 | _ACEOF | |
24182 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24183 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24184 | ac_status=$? | |
24185 | grep -v '^ *+' conftest.er1 >conftest.err | |
24186 | rm -f conftest.er1 | |
24187 | cat conftest.err >&5 | |
24188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24189 | (exit $ac_status); } >/dev/null; then | |
24190 | if test -s conftest.err; then | |
24191 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24193 | else |
24194 | ac_cpp_err= | |
24195 | fi | |
24196 | else | |
24197 | ac_cpp_err=yes | |
24198 | fi | |
24199 | if test -z "$ac_cpp_err"; then | |
24200 | ac_header_preproc=yes | |
24201 | else | |
24202 | echo "$as_me: failed program was:" >&5 | |
24203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24204 | ||
24205 | ac_header_preproc=no | |
24206 | fi | |
24207 | rm -f conftest.err conftest.$ac_ext | |
24208 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24209 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24210 | ||
24211 | # So? What about this header? | |
ac1cb8d3 VS |
24212 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24213 | yes:no: ) | |
a848cd7e SC |
24214 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24215 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24216 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
24217 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
24218 | ac_header_preproc=yes | |
a848cd7e | 24219 | ;; |
ac1cb8d3 | 24220 | no:yes:* ) |
a848cd7e SC |
24221 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
24222 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24223 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
24224 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
24225 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
24226 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
24227 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24228 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24229 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
24230 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24231 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
24232 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24233 | ( |
24234 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24235 | ## ----------------------------------------- ## |
24236 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24237 | ## ----------------------------------------- ## | |
a848cd7e SC |
24238 | _ASBOX |
24239 | ) | | |
24240 | sed "s/^/$as_me: WARNING: /" >&2 | |
24241 | ;; | |
24242 | esac | |
24243 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24244 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24245 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24247 | else | |
24248 | ac_cv_header_expat_h=$ac_header_preproc | |
24249 | fi | |
24250 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24251 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24252 | ||
24253 | fi | |
24254 | if test $ac_cv_header_expat_h = yes; then | |
24255 | found_expat_h=1 | |
24256 | fi | |
24257 | ||
24258 | ||
24259 | if test "x$found_expat_h" = "x1"; then | |
24260 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
24261 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
24262 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
24263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24264 | else | |
24265 | ||
24266 | ||
24267 | ||
24268 | ac_ext=cc | |
24269 | ac_cpp='$CXXCPP $CPPFLAGS' | |
24270 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24271 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24272 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24273 | ||
24274 | cat >conftest.$ac_ext <<_ACEOF | |
24275 | /* confdefs.h. */ | |
24276 | _ACEOF | |
24277 | cat confdefs.h >>conftest.$ac_ext | |
24278 | cat >>conftest.$ac_ext <<_ACEOF | |
24279 | /* end confdefs.h. */ | |
24280 | #include <expat.h> | |
24281 | int | |
24282 | main () | |
24283 | { | |
24284 | ||
24285 | ; | |
24286 | return 0; | |
24287 | } | |
24288 | _ACEOF | |
24289 | rm -f conftest.$ac_objext | |
24290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24291 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24292 | ac_status=$? |
ac1cb8d3 VS |
24293 | grep -v '^ *+' conftest.er1 >conftest.err |
24294 | rm -f conftest.er1 | |
24295 | cat conftest.err >&5 | |
a848cd7e SC |
24296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24297 | (exit $ac_status); } && | |
6ebeb4c7 | 24298 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24300 | (eval $ac_try) 2>&5 | |
24301 | ac_status=$? | |
24302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24303 | (exit $ac_status); }; } && | |
24304 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24306 | (eval $ac_try) 2>&5 | |
24307 | ac_status=$? | |
24308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24309 | (exit $ac_status); }; }; then | |
24310 | wx_cv_expat_is_not_broken=yes | |
24311 | else | |
24312 | echo "$as_me: failed program was:" >&5 | |
24313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24314 | ||
24315 | wx_cv_expat_is_not_broken=no | |
24316 | ||
24317 | fi | |
ac1cb8d3 | 24318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24319 | ac_ext=c |
24320 | ac_cpp='$CPP $CPPFLAGS' | |
24321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24324 | ||
24325 | ||
24326 | ||
24327 | fi | |
24328 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
24329 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
24330 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
24331 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
24332 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
24333 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
24334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24335 | else | |
24336 | ac_check_lib_save_LIBS=$LIBS | |
24337 | LIBS="-lexpat $LIBS" | |
24338 | cat >conftest.$ac_ext <<_ACEOF | |
24339 | /* confdefs.h. */ | |
24340 | _ACEOF | |
24341 | cat confdefs.h >>conftest.$ac_ext | |
24342 | cat >>conftest.$ac_ext <<_ACEOF | |
24343 | /* end confdefs.h. */ | |
24344 | ||
24345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24346 | #ifdef __cplusplus | |
24347 | extern "C" | |
24348 | #endif | |
24349 | /* We use char because int might match the return type of a gcc2 | |
24350 | builtin and then its argument prototype would still apply. */ | |
24351 | char XML_ParserCreate (); | |
24352 | int | |
24353 | main () | |
24354 | { | |
24355 | XML_ParserCreate (); | |
24356 | ; | |
24357 | return 0; | |
24358 | } | |
24359 | _ACEOF | |
24360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24362 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24363 | ac_status=$? |
ac1cb8d3 VS |
24364 | grep -v '^ *+' conftest.er1 >conftest.err |
24365 | rm -f conftest.er1 | |
24366 | cat conftest.err >&5 | |
a848cd7e SC |
24367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24368 | (exit $ac_status); } && | |
6ebeb4c7 | 24369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24371 | (eval $ac_try) 2>&5 | |
24372 | ac_status=$? | |
24373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24374 | (exit $ac_status); }; } && | |
24375 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24377 | (eval $ac_try) 2>&5 | |
24378 | ac_status=$? | |
24379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24380 | (exit $ac_status); }; }; then | |
24381 | ac_cv_lib_expat_XML_ParserCreate=yes | |
24382 | else | |
24383 | echo "$as_me: failed program was:" >&5 | |
24384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24385 | ||
24386 | ac_cv_lib_expat_XML_ParserCreate=no | |
24387 | fi | |
ac1cb8d3 VS |
24388 | rm -f conftest.err conftest.$ac_objext \ |
24389 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24390 | LIBS=$ac_check_lib_save_LIBS |
24391 | fi | |
24392 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
24393 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
24394 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
24395 | EXPAT_LINK=" -lexpat" | |
24396 | fi | |
24397 | ||
24398 | fi | |
24399 | fi | |
24400 | if test "x$EXPAT_LINK" = "x" ; then | |
24401 | if test "$wxUSE_EXPAT" = "sys" ; then | |
24402 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
24403 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
24404 | { (exit 1); exit 1; }; } | |
24405 | else | |
24406 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
24407 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
24408 | wxUSE_EXPAT=builtin | |
24409 | fi | |
24410 | else | |
24411 | wxUSE_EXPAT=sys | |
24412 | fi | |
24413 | fi | |
24414 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
24415 | ||
24416 | ||
24417 | subdirs="$subdirs src/expat" | |
24418 | ||
24419 | fi | |
24420 | fi | |
24421 | ||
24422 | ||
24423 | ||
24424 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
24425 | if test "${ac_cv_header_mspack_h+set}" = set; then |
24426 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24427 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24428 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24430 | fi | |
24431 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24432 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24433 | else | |
24434 | # Is the header compilable? | |
24435 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
24436 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
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 | $ac_includes_default | |
24444 | #include <mspack.h> | |
24445 | _ACEOF | |
24446 | rm -f conftest.$ac_objext | |
24447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24448 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24449 | ac_status=$? |
ac1cb8d3 VS |
24450 | grep -v '^ *+' conftest.er1 >conftest.err |
24451 | rm -f conftest.er1 | |
24452 | cat conftest.err >&5 | |
a848cd7e SC |
24453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24454 | (exit $ac_status); } && | |
6ebeb4c7 | 24455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24457 | (eval $ac_try) 2>&5 | |
24458 | ac_status=$? | |
24459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24460 | (exit $ac_status); }; } && | |
24461 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
24467 | ac_header_compiler=yes | |
24468 | else | |
24469 | echo "$as_me: failed program was:" >&5 | |
24470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24471 | ||
24472 | ac_header_compiler=no | |
24473 | fi | |
ac1cb8d3 | 24474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24475 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24476 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24477 | ||
24478 | # Is the header present? | |
24479 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
24480 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
24481 | cat >conftest.$ac_ext <<_ACEOF | |
24482 | /* confdefs.h. */ | |
24483 | _ACEOF | |
24484 | cat confdefs.h >>conftest.$ac_ext | |
24485 | cat >>conftest.$ac_ext <<_ACEOF | |
24486 | /* end confdefs.h. */ | |
24487 | #include <mspack.h> | |
24488 | _ACEOF | |
24489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24491 | ac_status=$? | |
24492 | grep -v '^ *+' conftest.er1 >conftest.err | |
24493 | rm -f conftest.er1 | |
24494 | cat conftest.err >&5 | |
24495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24496 | (exit $ac_status); } >/dev/null; then | |
24497 | if test -s conftest.err; then | |
24498 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24500 | else |
24501 | ac_cpp_err= | |
24502 | fi | |
24503 | else | |
24504 | ac_cpp_err=yes | |
24505 | fi | |
24506 | if test -z "$ac_cpp_err"; then | |
24507 | ac_header_preproc=yes | |
24508 | else | |
24509 | echo "$as_me: failed program was:" >&5 | |
24510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24511 | ||
24512 | ac_header_preproc=no | |
24513 | fi | |
24514 | rm -f conftest.err conftest.$ac_ext | |
24515 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24516 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24517 | ||
24518 | # So? What about this header? | |
ac1cb8d3 VS |
24519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24520 | yes:no: ) | |
a848cd7e SC |
24521 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24522 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24523 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
24524 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
24525 | ac_header_preproc=yes | |
a848cd7e | 24526 | ;; |
ac1cb8d3 | 24527 | no:yes:* ) |
a848cd7e SC |
24528 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
24529 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24530 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
24531 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
24532 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
24533 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
24534 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24535 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24536 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
24537 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24538 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
24539 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24540 | ( |
24541 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24542 | ## ----------------------------------------- ## |
24543 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24544 | ## ----------------------------------------- ## | |
a848cd7e SC |
24545 | _ASBOX |
24546 | ) | | |
24547 | sed "s/^/$as_me: WARNING: /" >&2 | |
24548 | ;; | |
24549 | esac | |
24550 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
24551 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
24552 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
24553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24554 | else | |
24555 | ac_cv_header_mspack_h=$ac_header_preproc | |
24556 | fi | |
24557 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
24558 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
24559 | ||
24560 | fi | |
24561 | if test $ac_cv_header_mspack_h = yes; then | |
24562 | found_mspack_h=1 | |
24563 | fi | |
24564 | ||
24565 | ||
24566 | if test "x$found_mspack_h" = "x1"; then | |
24567 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
24568 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
24569 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
24570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24571 | else | |
24572 | ac_check_lib_save_LIBS=$LIBS | |
24573 | LIBS="-lmspack $LIBS" | |
24574 | cat >conftest.$ac_ext <<_ACEOF | |
24575 | /* confdefs.h. */ | |
24576 | _ACEOF | |
24577 | cat confdefs.h >>conftest.$ac_ext | |
24578 | cat >>conftest.$ac_ext <<_ACEOF | |
24579 | /* end confdefs.h. */ | |
24580 | ||
24581 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24582 | #ifdef __cplusplus | |
24583 | extern "C" | |
24584 | #endif | |
24585 | /* We use char because int might match the return type of a gcc2 | |
24586 | builtin and then its argument prototype would still apply. */ | |
24587 | char mspack_create_chm_decompressor (); | |
24588 | int | |
24589 | main () | |
24590 | { | |
24591 | mspack_create_chm_decompressor (); | |
24592 | ; | |
24593 | return 0; | |
24594 | } | |
24595 | _ACEOF | |
24596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24598 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24599 | ac_status=$? |
ac1cb8d3 VS |
24600 | grep -v '^ *+' conftest.er1 >conftest.err |
24601 | rm -f conftest.er1 | |
24602 | cat conftest.err >&5 | |
a848cd7e SC |
24603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24604 | (exit $ac_status); } && | |
6ebeb4c7 | 24605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24607 | (eval $ac_try) 2>&5 | |
24608 | ac_status=$? | |
24609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24610 | (exit $ac_status); }; } && | |
24611 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24613 | (eval $ac_try) 2>&5 | |
24614 | ac_status=$? | |
24615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24616 | (exit $ac_status); }; }; then | |
24617 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
24618 | else | |
24619 | echo "$as_me: failed program was:" >&5 | |
24620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24621 | ||
24622 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
24623 | fi | |
ac1cb8d3 VS |
24624 | rm -f conftest.err conftest.$ac_objext \ |
24625 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24626 | LIBS=$ac_check_lib_save_LIBS |
24627 | fi | |
24628 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
24629 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
24630 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
24631 | MSPACK_LINK=" -lmspack" | |
24632 | fi | |
24633 | ||
24634 | fi | |
24635 | if test "x$MSPACK_LINK" = "x" ; then | |
24636 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
24637 | fi |
24638 | fi | |
24639 | ||
24640 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
24641 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
24642 | #define wxUSE_LIBMSPACK 1 |
24643 | _ACEOF | |
24644 | ||
a848cd7e SC |
24645 | fi |
24646 | ||
24647 | ||
24648 | ||
24649 | AFMINSTALL= | |
24650 | WIN32INSTALL= | |
24651 | ||
24652 | TOOLKIT= | |
24653 | TOOLKIT_INCLUDE= | |
24654 | WIDGET_SET= | |
24655 | ||
24656 | if test "$USE_WIN32" = 1 ; then | |
24657 | ||
24658 | for ac_header in w32api.h | |
24659 | do | |
24660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24662 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24666 | fi | |
24667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24669 | else | |
24670 | # Is the header compilable? | |
24671 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24672 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
24673 | cat >conftest.$ac_ext <<_ACEOF | |
24674 | /* confdefs.h. */ | |
24675 | _ACEOF | |
24676 | cat confdefs.h >>conftest.$ac_ext | |
24677 | cat >>conftest.$ac_ext <<_ACEOF | |
24678 | /* end confdefs.h. */ | |
24679 | $ac_includes_default | |
24680 | #include <$ac_header> | |
24681 | _ACEOF | |
24682 | rm -f conftest.$ac_objext | |
24683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24684 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24685 | ac_status=$? |
ac1cb8d3 VS |
24686 | grep -v '^ *+' conftest.er1 >conftest.err |
24687 | rm -f conftest.er1 | |
24688 | cat conftest.err >&5 | |
a848cd7e SC |
24689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24690 | (exit $ac_status); } && | |
6ebeb4c7 | 24691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24693 | (eval $ac_try) 2>&5 | |
24694 | ac_status=$? | |
24695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24696 | (exit $ac_status); }; } && | |
24697 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24699 | (eval $ac_try) 2>&5 | |
24700 | ac_status=$? | |
24701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24702 | (exit $ac_status); }; }; then | |
24703 | ac_header_compiler=yes | |
24704 | else | |
24705 | echo "$as_me: failed program was:" >&5 | |
24706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24707 | ||
24708 | ac_header_compiler=no | |
24709 | fi | |
ac1cb8d3 | 24710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24712 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24713 | ||
24714 | # Is the header present? | |
24715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24717 | cat >conftest.$ac_ext <<_ACEOF | |
24718 | /* confdefs.h. */ | |
24719 | _ACEOF | |
24720 | cat confdefs.h >>conftest.$ac_ext | |
24721 | cat >>conftest.$ac_ext <<_ACEOF | |
24722 | /* end confdefs.h. */ | |
24723 | #include <$ac_header> | |
24724 | _ACEOF | |
24725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24727 | ac_status=$? | |
24728 | grep -v '^ *+' conftest.er1 >conftest.err | |
24729 | rm -f conftest.er1 | |
24730 | cat conftest.err >&5 | |
24731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24732 | (exit $ac_status); } >/dev/null; then | |
24733 | if test -s conftest.err; then | |
24734 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24736 | else |
24737 | ac_cpp_err= | |
24738 | fi | |
24739 | else | |
24740 | ac_cpp_err=yes | |
24741 | fi | |
24742 | if test -z "$ac_cpp_err"; then | |
24743 | ac_header_preproc=yes | |
24744 | else | |
24745 | echo "$as_me: failed program was:" >&5 | |
24746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24747 | ||
24748 | ac_header_preproc=no | |
24749 | fi | |
24750 | rm -f conftest.err conftest.$ac_ext | |
24751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24752 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24753 | ||
24754 | # So? What about this header? | |
ac1cb8d3 VS |
24755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24756 | yes:no: ) | |
a848cd7e SC |
24757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24760 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24761 | ac_header_preproc=yes | |
a848cd7e | 24762 | ;; |
ac1cb8d3 | 24763 | no:yes:* ) |
a848cd7e SC |
24764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24768 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24769 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24770 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24771 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24773 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24774 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24775 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24776 | ( |
24777 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24778 | ## ----------------------------------------- ## |
24779 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24780 | ## ----------------------------------------- ## | |
a848cd7e SC |
24781 | _ASBOX |
24782 | ) | | |
24783 | sed "s/^/$as_me: WARNING: /" >&2 | |
24784 | ;; | |
24785 | esac | |
24786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24790 | else | |
ac1cb8d3 | 24791 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
24792 | fi |
24793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24795 | ||
24796 | fi | |
24797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24798 | cat >>confdefs.h <<_ACEOF | |
24799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24800 | _ACEOF | |
24801 | ||
24802 | fi | |
24803 | ||
24804 | done | |
24805 | ||
24806 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24807 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24808 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24809 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24811 | fi | |
24812 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24813 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24814 | else | |
24815 | # Is the header compilable? | |
24816 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
24817 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
24818 | cat >conftest.$ac_ext <<_ACEOF | |
24819 | /* confdefs.h. */ | |
24820 | _ACEOF | |
24821 | cat confdefs.h >>conftest.$ac_ext | |
24822 | cat >>conftest.$ac_ext <<_ACEOF | |
24823 | /* end confdefs.h. */ | |
24824 | $ac_includes_default | |
24825 | #include <windows.h> | |
24826 | _ACEOF | |
24827 | rm -f conftest.$ac_objext | |
24828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24829 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24830 | ac_status=$? |
ac1cb8d3 VS |
24831 | grep -v '^ *+' conftest.er1 >conftest.err |
24832 | rm -f conftest.er1 | |
24833 | cat conftest.err >&5 | |
a848cd7e SC |
24834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24835 | (exit $ac_status); } && | |
6ebeb4c7 | 24836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24838 | (eval $ac_try) 2>&5 | |
24839 | ac_status=$? | |
24840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24841 | (exit $ac_status); }; } && | |
24842 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24844 | (eval $ac_try) 2>&5 | |
24845 | ac_status=$? | |
24846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24847 | (exit $ac_status); }; }; then | |
24848 | ac_header_compiler=yes | |
24849 | else | |
24850 | echo "$as_me: failed program was:" >&5 | |
24851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24852 | ||
24853 | ac_header_compiler=no | |
24854 | fi | |
ac1cb8d3 | 24855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24856 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24857 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24858 | ||
24859 | # Is the header present? | |
24860 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
24861 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
24862 | cat >conftest.$ac_ext <<_ACEOF | |
24863 | /* confdefs.h. */ | |
24864 | _ACEOF | |
24865 | cat confdefs.h >>conftest.$ac_ext | |
24866 | cat >>conftest.$ac_ext <<_ACEOF | |
24867 | /* end confdefs.h. */ | |
24868 | #include <windows.h> | |
24869 | _ACEOF | |
24870 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24871 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24872 | ac_status=$? | |
24873 | grep -v '^ *+' conftest.er1 >conftest.err | |
24874 | rm -f conftest.er1 | |
24875 | cat conftest.err >&5 | |
24876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24877 | (exit $ac_status); } >/dev/null; then | |
24878 | if test -s conftest.err; then | |
24879 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24880 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24881 | else |
24882 | ac_cpp_err= | |
24883 | fi | |
24884 | else | |
24885 | ac_cpp_err=yes | |
24886 | fi | |
24887 | if test -z "$ac_cpp_err"; then | |
24888 | ac_header_preproc=yes | |
24889 | else | |
24890 | echo "$as_me: failed program was:" >&5 | |
24891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24892 | ||
24893 | ac_header_preproc=no | |
24894 | fi | |
24895 | rm -f conftest.err conftest.$ac_ext | |
24896 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24897 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24898 | ||
24899 | # So? What about this header? | |
ac1cb8d3 VS |
24900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24901 | yes:no: ) | |
a848cd7e SC |
24902 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24903 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24904 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
24905 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
24906 | ac_header_preproc=yes | |
a848cd7e | 24907 | ;; |
ac1cb8d3 | 24908 | no:yes:* ) |
a848cd7e SC |
24909 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
24910 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24911 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
24912 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
24913 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
24914 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
24915 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24916 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24917 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
24918 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24919 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
24920 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24921 | ( |
24922 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24923 | ## ----------------------------------------- ## |
24924 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24925 | ## ----------------------------------------- ## | |
a848cd7e SC |
24926 | _ASBOX |
24927 | ) | | |
24928 | sed "s/^/$as_me: WARNING: /" >&2 | |
24929 | ;; | |
24930 | esac | |
24931 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
24932 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
24933 | if test "${ac_cv_header_windows_h+set}" = set; then | |
24934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24935 | else | |
24936 | ac_cv_header_windows_h=$ac_header_preproc | |
24937 | fi | |
24938 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
24939 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
24940 | ||
24941 | fi | |
24942 | if test $ac_cv_header_windows_h = yes; then | |
24943 | : | |
24944 | else | |
24945 | ||
24946 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
24947 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
24948 | { (exit 1); exit 1; }; } | |
24949 | ||
24950 | fi | |
24951 | ||
24952 | ||
24953 | ||
24954 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
24955 | ||
24956 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
24957 | LIBS="$LIBS -loleacc" | |
24958 | fi | |
24959 | ||
24960 | case "${host}" in | |
24961 | *-*-cygwin* ) | |
24962 | LIBS="$LIBS -lkernel32 -luser32" | |
24963 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
24964 | esac | |
24965 | ||
24966 | if test "$wxUSE_ODBC" = "sys" ; then | |
24967 | wxUSE_ODBC = "yes" | |
24968 | fi | |
24969 | if test "$wxUSE_ODBC" = "yes" ; then | |
24970 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
24971 | cat >>confdefs.h <<\_ACEOF | |
24972 | #define wxUSE_ODBC 1 | |
24973 | _ACEOF | |
24974 | ||
24975 | fi | |
24976 | ||
24977 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
24978 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
24979 | ||
24980 | WIN32INSTALL=win32install | |
24981 | fi | |
24982 | ||
24983 | if test "$wxUSE_GUI" = "yes"; then | |
24984 | USE_GUI=1 | |
24985 | ||
24986 | GUI_TK_LIBRARY= | |
24987 | ||
24988 | WXGTK12= | |
24989 | WXGTK127= | |
24990 | WXGTK20= | |
24991 | WXGPE= | |
24992 | ||
207bc66c RN |
24993 | if test "$wxUSE_COCOA" = 1 ; then |
24994 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
24995 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
24996 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
24997 | wxUSE_PRINTING_ARCHITECTURE=no | |
24998 | fi | |
24999 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
25000 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
25001 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
25002 | wxUSE_DRAG_AND_DROP=no | |
25003 | fi | |
25004 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
25005 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
25006 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
25007 | wxUSE_DRAGIMAGE=no | |
25008 | fi | |
25009 | fi | |
25010 | ||
a848cd7e SC |
25011 | if test "$wxUSE_MSW" = 1 ; then |
25012 | TOOLKIT=MSW | |
25013 | GUIDIST=MSW_DIST | |
25014 | ||
ceec2216 | 25015 | case "${host}" in |
a848cd7e SC |
25016 | *-*-mingw32* ) |
25017 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
25018 | esac | |
25019 | fi | |
25020 | ||
25021 | if test "$wxUSE_GTK" = 1; then | |
25022 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
25023 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
25024 | ||
25025 | gtk_version_cached=1 | |
25026 | if test "${wx_cv_lib_gtk+set}" = set; then | |
25027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25028 | else | |
25029 | ||
25030 | gtk_version_cached=0 | |
25031 | echo "$as_me:$LINENO: result: " >&5 | |
25032 | echo "${ECHO_T}" >&6 | |
25033 | ||
25034 | GTK_MODULES= | |
25035 | if test "$wxUSE_THREADS" = "yes"; then | |
25036 | GTK_MODULES=gthread | |
25037 | fi | |
25038 | ||
f597b41c | 25039 | wx_cv_lib_gtk= |
5001df0d MW |
25040 | if test "x$wxGTK_VERSION" != "x1" |
25041 | then | |
25042 | case "${host}" in | |
25043 | *-*-solaris2* ) | |
25044 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25045 | enable_gtktest=no | |
25046 | fi | |
25047 | esac | |
25048 | ||
a848cd7e SC |
25049 | # Check whether --enable-gtktest or --disable-gtktest was given. |
25050 | if test "${enable_gtktest+set}" = set; then | |
25051 | enableval="$enable_gtktest" | |
25052 | ||
25053 | else | |
25054 | enable_gtktest=yes | |
25055 | fi; | |
25056 | ||
25057 | pkg_config_args=gtk+-2.0 | |
25058 | for module in . $GTK_MODULES | |
25059 | do | |
25060 | case "$module" in | |
25061 | gthread) | |
25062 | pkg_config_args="$pkg_config_args gthread-2.0" | |
25063 | ;; | |
25064 | esac | |
25065 | done | |
25066 | ||
25067 | no_gtk="" | |
25068 | ||
25069 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25070 | set dummy pkg-config; ac_word=$2 | |
25071 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25073 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25075 | else | |
25076 | case $PKG_CONFIG in | |
25077 | [\\/]* | ?:[\\/]*) | |
25078 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25079 | ;; | |
25080 | *) | |
25081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25082 | for as_dir in $PATH | |
25083 | do | |
25084 | IFS=$as_save_IFS | |
25085 | test -z "$as_dir" && as_dir=. | |
25086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25088 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25090 | break 2 | |
25091 | fi | |
25092 | done | |
25093 | done | |
25094 | ||
25095 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25096 | ;; | |
25097 | esac | |
25098 | fi | |
25099 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25100 | ||
25101 | if test -n "$PKG_CONFIG"; then | |
25102 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25103 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25104 | else | |
25105 | echo "$as_me:$LINENO: result: no" >&5 | |
25106 | echo "${ECHO_T}no" >&6 | |
25107 | fi | |
25108 | ||
25109 | ||
25110 | if test x$PKG_CONFIG != xno ; then | |
25111 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
25112 | : | |
25113 | else | |
c2218763 | 25114 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
25115 | no_gtk=yes |
25116 | PKG_CONFIG=no | |
25117 | fi | |
25118 | else | |
25119 | no_gtk=yes | |
25120 | fi | |
25121 | ||
25122 | min_gtk_version=2.0.0 | |
25123 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
25124 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
25125 | ||
25126 | if test x$PKG_CONFIG != xno ; then | |
25127 | ## don't try to run the test against uninstalled libtool libs | |
25128 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
25129 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
25130 | enable_gtktest=no | |
25131 | fi | |
25132 | ||
25133 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
25134 | : | |
25135 | else | |
25136 | no_gtk=yes | |
25137 | fi | |
25138 | fi | |
25139 | ||
25140 | if test x"$no_gtk" = x ; then | |
25141 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
25142 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
25143 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25144 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25145 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25146 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25147 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25148 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25149 | if test "x$enable_gtktest" = "xyes" ; then | |
25150 | ac_save_CFLAGS="$CFLAGS" | |
25151 | ac_save_LIBS="$LIBS" | |
25152 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25153 | LIBS="$GTK_LIBS $LIBS" | |
25154 | rm -f conf.gtktest | |
25155 | if test "$cross_compiling" = yes; then | |
25156 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25157 | else | |
25158 | cat >conftest.$ac_ext <<_ACEOF | |
25159 | /* confdefs.h. */ | |
25160 | _ACEOF | |
25161 | cat confdefs.h >>conftest.$ac_ext | |
25162 | cat >>conftest.$ac_ext <<_ACEOF | |
25163 | /* end confdefs.h. */ | |
25164 | ||
25165 | #include <gtk/gtk.h> | |
25166 | #include <stdio.h> | |
25167 | #include <stdlib.h> | |
25168 | ||
25169 | int | |
25170 | main () | |
25171 | { | |
25172 | int major, minor, micro; | |
25173 | char *tmp_version; | |
25174 | ||
25175 | system ("touch conf.gtktest"); | |
25176 | ||
25177 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25178 | tmp_version = g_strdup("$min_gtk_version"); | |
25179 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25180 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25181 | exit(1); | |
25182 | } | |
25183 | ||
25184 | if ((gtk_major_version != $gtk_config_major_version) || | |
25185 | (gtk_minor_version != $gtk_config_minor_version) || | |
25186 | (gtk_micro_version != $gtk_config_micro_version)) | |
25187 | { | |
25188 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25189 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25190 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25191 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
25192 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25193 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25194 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25195 | printf("*** required on your system.\n"); | |
25196 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
25197 | printf("*** to point to the correct configuration files\n"); | |
25198 | } | |
25199 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25200 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25201 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25202 | { | |
25203 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25204 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25205 | printf("*** library (version %d.%d.%d)\n", | |
25206 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25207 | } | |
25208 | else | |
25209 | { | |
25210 | if ((gtk_major_version > major) || | |
25211 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25212 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25213 | { | |
25214 | return 0; | |
25215 | } | |
25216 | else | |
25217 | { | |
25218 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25219 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25220 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25221 | major, minor, micro); | |
25222 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25223 | printf("***\n"); | |
25224 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25225 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
25226 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25227 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
25228 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
25229 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25230 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25231 | } | |
25232 | } | |
25233 | return 1; | |
25234 | } | |
25235 | ||
25236 | _ACEOF | |
25237 | rm -f conftest$ac_exeext | |
25238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25239 | (eval $ac_link) 2>&5 | |
25240 | ac_status=$? | |
25241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25244 | (eval $ac_try) 2>&5 | |
25245 | ac_status=$? | |
25246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25247 | (exit $ac_status); }; }; then | |
25248 | : | |
25249 | else | |
25250 | echo "$as_me: program exited with status $ac_status" >&5 | |
25251 | echo "$as_me: failed program was:" >&5 | |
25252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25253 | ||
25254 | ( exit $ac_status ) | |
25255 | no_gtk=yes | |
25256 | fi | |
ac1cb8d3 | 25257 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25258 | fi |
25259 | CFLAGS="$ac_save_CFLAGS" | |
25260 | LIBS="$ac_save_LIBS" | |
25261 | fi | |
25262 | fi | |
25263 | if test "x$no_gtk" = x ; then | |
25264 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
25265 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
25266 | wx_cv_lib_gtk=2.0 | |
25267 | else | |
25268 | echo "$as_me:$LINENO: result: no" >&5 | |
25269 | echo "${ECHO_T}no" >&6 | |
25270 | if test "$PKG_CONFIG" = "no" ; then | |
25271 | echo "*** A new enough version of pkg-config was not found." | |
25272 | echo "*** See http://pkgconfig.sourceforge.net" | |
25273 | else | |
25274 | if test -f conf.gtktest ; then | |
25275 | : | |
25276 | else | |
25277 | echo "*** Could not run GTK+ test program, checking why..." | |
25278 | ac_save_CFLAGS="$CFLAGS" | |
25279 | ac_save_LIBS="$LIBS" | |
25280 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25281 | LIBS="$LIBS $GTK_LIBS" | |
25282 | cat >conftest.$ac_ext <<_ACEOF | |
25283 | /* confdefs.h. */ | |
25284 | _ACEOF | |
25285 | cat confdefs.h >>conftest.$ac_ext | |
25286 | cat >>conftest.$ac_ext <<_ACEOF | |
25287 | /* end confdefs.h. */ | |
25288 | ||
25289 | #include <gtk/gtk.h> | |
25290 | #include <stdio.h> | |
25291 | ||
25292 | int | |
25293 | main () | |
25294 | { | |
25295 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25296 | ; | |
25297 | return 0; | |
25298 | } | |
25299 | _ACEOF | |
25300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25302 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25303 | ac_status=$? |
ac1cb8d3 VS |
25304 | grep -v '^ *+' conftest.er1 >conftest.err |
25305 | rm -f conftest.er1 | |
25306 | cat conftest.err >&5 | |
a848cd7e SC |
25307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25308 | (exit $ac_status); } && | |
6ebeb4c7 | 25309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25311 | (eval $ac_try) 2>&5 | |
25312 | ac_status=$? | |
25313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25314 | (exit $ac_status); }; } && | |
25315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25317 | (eval $ac_try) 2>&5 | |
25318 | ac_status=$? | |
25319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25320 | (exit $ac_status); }; }; then | |
25321 | echo "*** The test program compiled, but did not run. This usually means" | |
25322 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
25323 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
25324 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25325 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25326 | echo "*** is required on your system" | |
25327 | echo "***" | |
25328 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25329 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25330 | else | |
25331 | echo "$as_me: failed program was:" >&5 | |
25332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25333 | ||
25334 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25335 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
25336 | fi | |
ac1cb8d3 VS |
25337 | rm -f conftest.err conftest.$ac_objext \ |
25338 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25339 | CFLAGS="$ac_save_CFLAGS" |
25340 | LIBS="$ac_save_LIBS" | |
25341 | fi | |
25342 | fi | |
25343 | GTK_CFLAGS="" | |
25344 | GTK_LIBS="" | |
25345 | : | |
25346 | fi | |
25347 | ||
25348 | ||
25349 | rm -f conf.gtktest | |
25350 | ||
5001df0d MW |
25351 | |
25352 | case "${host}" in | |
25353 | *-*-solaris2* ) | |
25354 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25355 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
25356 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
25357 | fi | |
25358 | if test "$wxUSE_SHARED" != "yes"; then | |
25359 | GTK_LIBS="$GTK_LIBS -lX11" | |
25360 | fi | |
25361 | esac | |
f597b41c MW |
25362 | fi |
25363 | ||
f34ca037 MW |
25364 | if test -z "$wx_cv_lib_gtk"; then |
25365 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
25366 | |
25367 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25368 | if test "${with_gtk_prefix+set}" = set; then | |
25369 | withval="$with_gtk_prefix" | |
25370 | gtk_config_prefix="$withval" | |
25371 | else | |
25372 | gtk_config_prefix="" | |
25373 | fi; | |
25374 | ||
25375 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25376 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25377 | withval="$with_gtk_exec_prefix" | |
25378 | gtk_config_exec_prefix="$withval" | |
25379 | else | |
25380 | gtk_config_exec_prefix="" | |
25381 | fi; | |
25382 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25383 | if test "${enable_gtktest+set}" = set; then | |
25384 | enableval="$enable_gtktest" | |
25385 | ||
25386 | else | |
25387 | enable_gtktest=yes | |
25388 | fi; | |
25389 | ||
25390 | for module in . $GTK_MODULES | |
25391 | do | |
25392 | case "$module" in | |
25393 | gthread) | |
25394 | gtk_config_args="$gtk_config_args gthread" | |
25395 | ;; | |
25396 | esac | |
25397 | done | |
25398 | ||
25399 | if test x$gtk_config_exec_prefix != x ; then | |
25400 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25401 | if test x${GTK_CONFIG+set} != xset ; then | |
25402 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25403 | fi | |
25404 | fi | |
25405 | if test x$gtk_config_prefix != x ; then | |
25406 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25407 | if test x${GTK_CONFIG+set} != xset ; then | |
25408 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25409 | fi | |
25410 | fi | |
25411 | ||
25412 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25413 | set dummy gtk-config; ac_word=$2 | |
25414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25416 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25418 | else | |
25419 | case $GTK_CONFIG in | |
25420 | [\\/]* | ?:[\\/]*) | |
25421 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25422 | ;; | |
25423 | *) | |
25424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25425 | for as_dir in $PATH | |
25426 | do | |
25427 | IFS=$as_save_IFS | |
25428 | test -z "$as_dir" && as_dir=. | |
25429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25431 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25433 | break 2 | |
25434 | fi | |
25435 | done | |
25436 | done | |
25437 | ||
25438 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25439 | ;; | |
25440 | esac | |
25441 | fi | |
25442 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25443 | ||
25444 | if test -n "$GTK_CONFIG"; then | |
25445 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25446 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25447 | else | |
25448 | echo "$as_me:$LINENO: result: no" >&5 | |
25449 | echo "${ECHO_T}no" >&6 | |
25450 | fi | |
25451 | ||
25452 | min_gtk_version=1.2.7 | |
25453 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25454 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25455 | no_gtk="" | |
25456 | if test "$GTK_CONFIG" = "no" ; then | |
25457 | no_gtk=yes | |
25458 | else | |
25459 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25460 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25461 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25462 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25463 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25464 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25465 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25466 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25467 | if test "x$enable_gtktest" = "xyes" ; then | |
25468 | ac_save_CFLAGS="$CFLAGS" | |
25469 | ac_save_LIBS="$LIBS" | |
25470 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25471 | LIBS="$GTK_LIBS $LIBS" | |
25472 | rm -f conf.gtktest | |
25473 | if test "$cross_compiling" = yes; then | |
25474 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25475 | else | |
25476 | cat >conftest.$ac_ext <<_ACEOF | |
25477 | /* confdefs.h. */ | |
25478 | _ACEOF | |
25479 | cat confdefs.h >>conftest.$ac_ext | |
25480 | cat >>conftest.$ac_ext <<_ACEOF | |
25481 | /* end confdefs.h. */ | |
25482 | ||
25483 | #include <gtk/gtk.h> | |
25484 | #include <stdio.h> | |
25485 | #include <stdlib.h> | |
25486 | ||
25487 | int | |
25488 | main () | |
25489 | { | |
25490 | int major, minor, micro; | |
25491 | char *tmp_version; | |
25492 | ||
25493 | system ("touch conf.gtktest"); | |
25494 | ||
25495 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25496 | tmp_version = g_strdup("$min_gtk_version"); | |
25497 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25498 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25499 | exit(1); | |
25500 | } | |
25501 | ||
25502 | if ((gtk_major_version != $gtk_config_major_version) || | |
25503 | (gtk_minor_version != $gtk_config_minor_version) || | |
25504 | (gtk_micro_version != $gtk_config_micro_version)) | |
25505 | { | |
25506 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25507 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25508 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25509 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25510 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25511 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25512 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25513 | printf("*** required on your system.\n"); | |
25514 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25515 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25516 | printf("*** before re-running configure\n"); | |
25517 | } | |
25518 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25519 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25520 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25521 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25522 | { | |
25523 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25524 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25525 | printf("*** library (version %d.%d.%d)\n", | |
25526 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25527 | } | |
25528 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25529 | else | |
25530 | { | |
25531 | if ((gtk_major_version > major) || | |
25532 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25533 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25534 | { | |
25535 | return 0; | |
25536 | } | |
25537 | else | |
25538 | { | |
25539 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25540 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25541 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25542 | major, minor, micro); | |
25543 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25544 | printf("***\n"); | |
25545 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25546 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25547 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25548 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25549 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25550 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25551 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25552 | } | |
25553 | } | |
25554 | return 1; | |
25555 | } | |
25556 | ||
25557 | _ACEOF | |
25558 | rm -f conftest$ac_exeext | |
25559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25560 | (eval $ac_link) 2>&5 | |
25561 | ac_status=$? | |
25562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25565 | (eval $ac_try) 2>&5 | |
25566 | ac_status=$? | |
25567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25568 | (exit $ac_status); }; }; then | |
25569 | : | |
25570 | else | |
25571 | echo "$as_me: program exited with status $ac_status" >&5 | |
25572 | echo "$as_me: failed program was:" >&5 | |
25573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25574 | ||
25575 | ( exit $ac_status ) | |
25576 | no_gtk=yes | |
25577 | fi | |
ac1cb8d3 | 25578 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25579 | fi |
25580 | CFLAGS="$ac_save_CFLAGS" | |
25581 | LIBS="$ac_save_LIBS" | |
25582 | fi | |
25583 | fi | |
25584 | if test "x$no_gtk" = x ; then | |
25585 | echo "$as_me:$LINENO: result: yes" >&5 | |
25586 | echo "${ECHO_T}yes" >&6 | |
25587 | wx_cv_lib_gtk=1.2.7 | |
25588 | else | |
25589 | echo "$as_me:$LINENO: result: no" >&5 | |
25590 | echo "${ECHO_T}no" >&6 | |
25591 | if test "$GTK_CONFIG" = "no" ; then | |
25592 | echo "*** The gtk-config script installed by GTK could not be found" | |
25593 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25594 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25595 | echo "*** full path to gtk-config." | |
25596 | else | |
25597 | if test -f conf.gtktest ; then | |
25598 | : | |
25599 | else | |
25600 | echo "*** Could not run GTK test program, checking why..." | |
25601 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25602 | LIBS="$LIBS $GTK_LIBS" | |
25603 | cat >conftest.$ac_ext <<_ACEOF | |
25604 | /* confdefs.h. */ | |
25605 | _ACEOF | |
25606 | cat confdefs.h >>conftest.$ac_ext | |
25607 | cat >>conftest.$ac_ext <<_ACEOF | |
25608 | /* end confdefs.h. */ | |
25609 | ||
25610 | #include <gtk/gtk.h> | |
25611 | #include <stdio.h> | |
25612 | ||
25613 | int | |
25614 | main () | |
25615 | { | |
25616 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25617 | ; | |
25618 | return 0; | |
25619 | } | |
25620 | _ACEOF | |
25621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25623 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25624 | ac_status=$? |
ac1cb8d3 VS |
25625 | grep -v '^ *+' conftest.er1 >conftest.err |
25626 | rm -f conftest.er1 | |
25627 | cat conftest.err >&5 | |
a848cd7e SC |
25628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25629 | (exit $ac_status); } && | |
6ebeb4c7 | 25630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25632 | (eval $ac_try) 2>&5 | |
25633 | ac_status=$? | |
25634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25635 | (exit $ac_status); }; } && | |
25636 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25638 | (eval $ac_try) 2>&5 | |
25639 | ac_status=$? | |
25640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25641 | (exit $ac_status); }; }; then | |
25642 | echo "*** The test program compiled, but did not run. This usually means" | |
25643 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25644 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25645 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25646 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25647 | echo "*** is required on your system" | |
25648 | echo "***" | |
25649 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25650 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25651 | echo "***" | |
25652 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25653 | echo "*** came with the system with the command" | |
25654 | echo "***" | |
25655 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25656 | else | |
25657 | echo "$as_me: failed program was:" >&5 | |
25658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25659 | ||
25660 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25661 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25662 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25663 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25664 | fi | |
ac1cb8d3 VS |
25665 | rm -f conftest.err conftest.$ac_objext \ |
25666 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25667 | CFLAGS="$ac_save_CFLAGS" |
25668 | LIBS="$ac_save_LIBS" | |
25669 | fi | |
25670 | fi | |
25671 | GTK_CFLAGS="" | |
25672 | GTK_LIBS="" | |
25673 | : | |
25674 | fi | |
25675 | ||
25676 | ||
25677 | rm -f conf.gtktest | |
25678 | ||
25679 | ||
f34ca037 | 25680 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
25681 | |
25682 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
25683 | if test "${with_gtk_prefix+set}" = set; then | |
25684 | withval="$with_gtk_prefix" | |
25685 | gtk_config_prefix="$withval" | |
25686 | else | |
25687 | gtk_config_prefix="" | |
25688 | fi; | |
25689 | ||
25690 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
25691 | if test "${with_gtk_exec_prefix+set}" = set; then | |
25692 | withval="$with_gtk_exec_prefix" | |
25693 | gtk_config_exec_prefix="$withval" | |
25694 | else | |
25695 | gtk_config_exec_prefix="" | |
25696 | fi; | |
25697 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
25698 | if test "${enable_gtktest+set}" = set; then | |
25699 | enableval="$enable_gtktest" | |
25700 | ||
25701 | else | |
25702 | enable_gtktest=yes | |
25703 | fi; | |
25704 | ||
25705 | for module in . $GTK_MODULES | |
25706 | do | |
25707 | case "$module" in | |
25708 | gthread) | |
25709 | gtk_config_args="$gtk_config_args gthread" | |
25710 | ;; | |
25711 | esac | |
25712 | done | |
25713 | ||
25714 | if test x$gtk_config_exec_prefix != x ; then | |
25715 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
25716 | if test x${GTK_CONFIG+set} != xset ; then | |
25717 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
25718 | fi | |
25719 | fi | |
25720 | if test x$gtk_config_prefix != x ; then | |
25721 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
25722 | if test x${GTK_CONFIG+set} != xset ; then | |
25723 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
25724 | fi | |
25725 | fi | |
25726 | ||
25727 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
25728 | set dummy gtk-config; ac_word=$2 | |
25729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25731 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
25732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25733 | else | |
25734 | case $GTK_CONFIG in | |
25735 | [\\/]* | ?:[\\/]*) | |
25736 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
25737 | ;; | |
25738 | *) | |
25739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25740 | for as_dir in $PATH | |
25741 | do | |
25742 | IFS=$as_save_IFS | |
25743 | test -z "$as_dir" && as_dir=. | |
25744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25746 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25748 | break 2 | |
25749 | fi | |
25750 | done | |
25751 | done | |
25752 | ||
25753 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
25754 | ;; | |
25755 | esac | |
25756 | fi | |
25757 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
25758 | ||
25759 | if test -n "$GTK_CONFIG"; then | |
25760 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
25761 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
25762 | else | |
25763 | echo "$as_me:$LINENO: result: no" >&5 | |
25764 | echo "${ECHO_T}no" >&6 | |
25765 | fi | |
25766 | ||
25767 | min_gtk_version=1.2.3 | |
25768 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
25769 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
25770 | no_gtk="" | |
25771 | if test "$GTK_CONFIG" = "no" ; then | |
25772 | no_gtk=yes | |
25773 | else | |
25774 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
25775 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
25776 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25777 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25778 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25779 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25780 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
25781 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25782 | if test "x$enable_gtktest" = "xyes" ; then | |
25783 | ac_save_CFLAGS="$CFLAGS" | |
25784 | ac_save_LIBS="$LIBS" | |
25785 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25786 | LIBS="$GTK_LIBS $LIBS" | |
25787 | rm -f conf.gtktest | |
25788 | if test "$cross_compiling" = yes; then | |
25789 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25790 | else | |
25791 | cat >conftest.$ac_ext <<_ACEOF | |
25792 | /* confdefs.h. */ | |
25793 | _ACEOF | |
25794 | cat confdefs.h >>conftest.$ac_ext | |
25795 | cat >>conftest.$ac_ext <<_ACEOF | |
25796 | /* end confdefs.h. */ | |
25797 | ||
25798 | #include <gtk/gtk.h> | |
25799 | #include <stdio.h> | |
25800 | #include <stdlib.h> | |
25801 | ||
25802 | int | |
25803 | main () | |
25804 | { | |
25805 | int major, minor, micro; | |
25806 | char *tmp_version; | |
25807 | ||
25808 | system ("touch conf.gtktest"); | |
25809 | ||
25810 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25811 | tmp_version = g_strdup("$min_gtk_version"); | |
25812 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25813 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25814 | exit(1); | |
25815 | } | |
25816 | ||
25817 | if ((gtk_major_version != $gtk_config_major_version) || | |
25818 | (gtk_minor_version != $gtk_config_minor_version) || | |
25819 | (gtk_micro_version != $gtk_config_micro_version)) | |
25820 | { | |
25821 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25822 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25823 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25824 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
25825 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25826 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25827 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25828 | printf("*** required on your system.\n"); | |
25829 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
25830 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
25831 | printf("*** before re-running configure\n"); | |
25832 | } | |
25833 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
25834 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25835 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25836 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25837 | { | |
25838 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25839 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25840 | printf("*** library (version %d.%d.%d)\n", | |
25841 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25842 | } | |
25843 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
25844 | else | |
25845 | { | |
25846 | if ((gtk_major_version > major) || | |
25847 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25848 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25849 | { | |
25850 | return 0; | |
25851 | } | |
25852 | else | |
25853 | { | |
25854 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25855 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25856 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25857 | major, minor, micro); | |
25858 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25859 | printf("***\n"); | |
25860 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25861 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
25862 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25863 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
25864 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
25865 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25866 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25867 | } | |
25868 | } | |
25869 | return 1; | |
25870 | } | |
25871 | ||
25872 | _ACEOF | |
25873 | rm -f conftest$ac_exeext | |
25874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25875 | (eval $ac_link) 2>&5 | |
25876 | ac_status=$? | |
25877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25878 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25880 | (eval $ac_try) 2>&5 | |
25881 | ac_status=$? | |
25882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25883 | (exit $ac_status); }; }; then | |
25884 | : | |
25885 | else | |
25886 | echo "$as_me: program exited with status $ac_status" >&5 | |
25887 | echo "$as_me: failed program was:" >&5 | |
25888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25889 | ||
25890 | ( exit $ac_status ) | |
25891 | no_gtk=yes | |
25892 | fi | |
ac1cb8d3 | 25893 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25894 | fi |
25895 | CFLAGS="$ac_save_CFLAGS" | |
25896 | LIBS="$ac_save_LIBS" | |
25897 | fi | |
25898 | fi | |
25899 | if test "x$no_gtk" = x ; then | |
25900 | echo "$as_me:$LINENO: result: yes" >&5 | |
25901 | echo "${ECHO_T}yes" >&6 | |
25902 | wx_cv_lib_gtk=1.2.3 | |
25903 | else | |
25904 | echo "$as_me:$LINENO: result: no" >&5 | |
25905 | echo "${ECHO_T}no" >&6 | |
25906 | if test "$GTK_CONFIG" = "no" ; then | |
25907 | echo "*** The gtk-config script installed by GTK could not be found" | |
25908 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
25909 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
25910 | echo "*** full path to gtk-config." | |
25911 | else | |
25912 | if test -f conf.gtktest ; then | |
25913 | : | |
25914 | else | |
25915 | echo "*** Could not run GTK test program, checking why..." | |
25916 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25917 | LIBS="$LIBS $GTK_LIBS" | |
25918 | cat >conftest.$ac_ext <<_ACEOF | |
25919 | /* confdefs.h. */ | |
25920 | _ACEOF | |
25921 | cat confdefs.h >>conftest.$ac_ext | |
25922 | cat >>conftest.$ac_ext <<_ACEOF | |
25923 | /* end confdefs.h. */ | |
25924 | ||
25925 | #include <gtk/gtk.h> | |
25926 | #include <stdio.h> | |
25927 | ||
25928 | int | |
25929 | main () | |
25930 | { | |
25931 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
25932 | ; | |
25933 | return 0; | |
25934 | } | |
25935 | _ACEOF | |
25936 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25938 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25939 | ac_status=$? |
ac1cb8d3 VS |
25940 | grep -v '^ *+' conftest.er1 >conftest.err |
25941 | rm -f conftest.er1 | |
25942 | cat conftest.err >&5 | |
a848cd7e SC |
25943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25944 | (exit $ac_status); } && | |
6ebeb4c7 | 25945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25947 | (eval $ac_try) 2>&5 | |
25948 | ac_status=$? | |
25949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25950 | (exit $ac_status); }; } && | |
25951 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25953 | (eval $ac_try) 2>&5 | |
25954 | ac_status=$? | |
25955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25956 | (exit $ac_status); }; }; then | |
25957 | echo "*** The test program compiled, but did not run. This usually means" | |
25958 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
25959 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
25960 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
25961 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
25962 | echo "*** is required on your system" | |
25963 | echo "***" | |
25964 | echo "*** If you have an old version installed, it is best to remove it, although" | |
25965 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
25966 | echo "***" | |
25967 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
25968 | echo "*** came with the system with the command" | |
25969 | echo "***" | |
25970 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
25971 | else | |
25972 | echo "$as_me: failed program was:" >&5 | |
25973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25974 | ||
25975 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
25976 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
25977 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
25978 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
25979 | fi | |
ac1cb8d3 VS |
25980 | rm -f conftest.err conftest.$ac_objext \ |
25981 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25982 | CFLAGS="$ac_save_CFLAGS" |
25983 | LIBS="$ac_save_LIBS" | |
25984 | fi | |
25985 | fi | |
25986 | GTK_CFLAGS="" | |
25987 | GTK_LIBS="" | |
25988 | : | |
25989 | fi | |
25990 | ||
25991 | ||
25992 | rm -f conf.gtktest | |
25993 | ||
f34ca037 | 25994 | fi |
a848cd7e SC |
25995 | fi |
25996 | fi | |
25997 | ||
25998 | if test -z "$wx_cv_lib_gtk"; then | |
25999 | wx_cv_lib_gtk=none | |
26000 | else | |
26001 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 26002 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
26003 | fi |
26004 | ||
26005 | ||
26006 | fi | |
26007 | ||
26008 | ||
26009 | if test "$gtk_version_cached" = 1; then | |
26010 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
26011 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
26012 | fi | |
26013 | ||
26014 | case "$wx_cv_lib_gtk" in | |
26015 | 2.0) WXGTK20=1 | |
26016 | TOOLKIT_VERSION=2 | |
26017 | ;; | |
26018 | 1.2.7) WXGTK127=1 | |
26019 | WXGTK12=1 | |
26020 | ;; | |
26021 | 1.2.3) WXGTK12=1 | |
26022 | ;; | |
26023 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
26024 | The development files for GTK+ were not found. For GTK+ 2, please |
26025 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26026 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26027 | and that the version is 1.2.3 or above. Also check that the | |
26028 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26029 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26030 | " >&5 |
26031 | echo "$as_me: error: | |
f597b41c MW |
26032 | The development files for GTK+ were not found. For GTK+ 2, please |
26033 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26034 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26035 | and that the version is 1.2.3 or above. Also check that the | |
26036 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26037 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26038 | " >&2;} |
26039 | { (exit 1); exit 1; }; } | |
26040 | ;; | |
26041 | esac | |
26042 | ||
26043 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
26044 | save_CFLAGS="$CFLAGS" |
26045 | save_LIBS="$LIBS" | |
9d271838 | 26046 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
abc736fd | 26047 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 26048 | |
d12aef51 VZ |
26049 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
26050 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
26051 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
26052 | /* confdefs.h. */ |
26053 | _ACEOF | |
26054 | cat confdefs.h >>conftest.$ac_ext | |
26055 | cat >>conftest.$ac_ext <<_ACEOF | |
26056 | /* end confdefs.h. */ | |
304205f1 | 26057 | |
d12aef51 | 26058 | #include <gtk/gtk.h> |
304205f1 | 26059 | |
d12aef51 VZ |
26060 | int |
26061 | main () | |
26062 | { | |
304205f1 | 26063 | |
d12aef51 | 26064 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
26065 | |
26066 | ; | |
26067 | return 0; | |
26068 | } | |
26069 | _ACEOF | |
26070 | rm -f conftest.$ac_objext | |
26071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26072 | (eval $ac_compile) 2>conftest.er1 | |
26073 | ac_status=$? | |
26074 | grep -v '^ *+' conftest.er1 >conftest.err | |
26075 | rm -f conftest.er1 | |
26076 | cat conftest.err >&5 | |
26077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26078 | (exit $ac_status); } && | |
6ebeb4c7 | 26079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
26080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26081 | (eval $ac_try) 2>&5 | |
26082 | ac_status=$? | |
26083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26084 | (exit $ac_status); }; } && | |
26085 | { ac_try='test -s conftest.$ac_objext' | |
26086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26087 | (eval $ac_try) 2>&5 | |
26088 | ac_status=$? | |
26089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26090 | (exit $ac_status); }; }; then | |
26091 | ||
26092 | echo "$as_me:$LINENO: result: no" >&5 | |
26093 | echo "${ECHO_T}no" >&6 | |
26094 | ||
26095 | else | |
26096 | echo "$as_me: failed program was:" >&5 | |
26097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26098 | ||
26099 | ||
26100 | cat >>confdefs.h <<\_ACEOF | |
26101 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
26102 | _ACEOF | |
26103 | ||
26104 | echo "$as_me:$LINENO: result: yes" >&5 | |
26105 | echo "${ECHO_T}yes" >&6 | |
26106 | ||
26107 | fi | |
26108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26109 | ||
9755e73b VS |
26110 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
26111 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
26112 | cat >conftest.$ac_ext <<_ACEOF | |
26113 | /* confdefs.h. */ | |
26114 | _ACEOF | |
26115 | cat confdefs.h >>conftest.$ac_ext | |
26116 | cat >>conftest.$ac_ext <<_ACEOF | |
26117 | /* end confdefs.h. */ | |
26118 | ||
26119 | #include <gtk/gtk.h> | |
26120 | ||
26121 | int | |
26122 | main () | |
26123 | { | |
26124 | ||
26125 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 26126 | Not GTK+ 2.4 |
9755e73b VS |
26127 | #endif |
26128 | ||
26129 | ; | |
26130 | return 0; | |
26131 | } | |
26132 | _ACEOF | |
26133 | rm -f conftest.$ac_objext | |
26134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26135 | (eval $ac_compile) 2>conftest.er1 | |
26136 | ac_status=$? | |
26137 | grep -v '^ *+' conftest.er1 >conftest.err | |
26138 | rm -f conftest.er1 | |
26139 | cat conftest.err >&5 | |
26140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26141 | (exit $ac_status); } && | |
6ebeb4c7 | 26142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
26143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26144 | (eval $ac_try) 2>&5 | |
26145 | ac_status=$? | |
26146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26147 | (exit $ac_status); }; } && | |
26148 | { ac_try='test -s conftest.$ac_objext' | |
26149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26150 | (eval $ac_try) 2>&5 | |
26151 | ac_status=$? | |
26152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26153 | (exit $ac_status); }; }; then | |
26154 | ||
26155 | cat >>confdefs.h <<\_ACEOF | |
26156 | #define __WXGTK24__ 1 | |
26157 | _ACEOF | |
26158 | ||
26159 | echo "$as_me:$LINENO: result: yes" >&5 | |
26160 | echo "${ECHO_T}yes" >&6 | |
26161 | ||
26162 | else | |
26163 | echo "$as_me: failed program was:" >&5 | |
26164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26165 | ||
26166 | ||
26167 | echo "$as_me:$LINENO: result: no" >&5 | |
26168 | echo "${ECHO_T}no" >&6 | |
26169 | ||
26170 | fi | |
26171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26172 | ||
304205f1 VS |
26173 | CFLAGS="$save_CFLAGS" |
26174 | LIBS="$save_LIBS" | |
a848cd7e SC |
26175 | else |
26176 | if test "$wxUSE_UNICODE" = "yes"; then | |
26177 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
26178 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
26179 | wxUSE_UNICODE=no | |
26180 | fi | |
26181 | fi | |
26182 | ||
26183 | if test "$USE_DARWIN" != 1; then | |
26184 | ||
26185 | for ac_func in poll | |
26186 | do | |
26187 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26188 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26189 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26190 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26192 | else | |
26193 | cat >conftest.$ac_ext <<_ACEOF | |
26194 | /* confdefs.h. */ | |
26195 | _ACEOF | |
26196 | cat confdefs.h >>conftest.$ac_ext | |
26197 | cat >>conftest.$ac_ext <<_ACEOF | |
26198 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26199 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
26200 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26201 | #define $ac_func innocuous_$ac_func | |
26202 | ||
a848cd7e SC |
26203 | /* System header to define __stub macros and hopefully few prototypes, |
26204 | which can conflict with char $ac_func (); below. | |
26205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26206 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26207 | |
a848cd7e SC |
26208 | #ifdef __STDC__ |
26209 | # include <limits.h> | |
26210 | #else | |
26211 | # include <assert.h> | |
26212 | #endif | |
ac1cb8d3 VS |
26213 | |
26214 | #undef $ac_func | |
26215 | ||
a848cd7e SC |
26216 | /* Override any gcc2 internal prototype to avoid an error. */ |
26217 | #ifdef __cplusplus | |
26218 | extern "C" | |
26219 | { | |
26220 | #endif | |
26221 | /* We use char because int might match the return type of a gcc2 | |
26222 | builtin and then its argument prototype would still apply. */ | |
26223 | char $ac_func (); | |
26224 | /* The GNU C library defines this for functions which it implements | |
26225 | to always fail with ENOSYS. Some functions are actually named | |
26226 | something starting with __ and the normal name is an alias. */ | |
26227 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26228 | choke me | |
26229 | #else | |
26230 | char (*f) () = $ac_func; | |
26231 | #endif | |
26232 | #ifdef __cplusplus | |
26233 | } | |
26234 | #endif | |
26235 | ||
26236 | int | |
26237 | main () | |
26238 | { | |
26239 | return f != $ac_func; | |
26240 | ; | |
26241 | return 0; | |
26242 | } | |
26243 | _ACEOF | |
26244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26246 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26247 | ac_status=$? |
ac1cb8d3 VS |
26248 | grep -v '^ *+' conftest.er1 >conftest.err |
26249 | rm -f conftest.er1 | |
26250 | cat conftest.err >&5 | |
a848cd7e SC |
26251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26252 | (exit $ac_status); } && | |
6ebeb4c7 | 26253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26255 | (eval $ac_try) 2>&5 | |
26256 | ac_status=$? | |
26257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26258 | (exit $ac_status); }; } && | |
26259 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26261 | (eval $ac_try) 2>&5 | |
26262 | ac_status=$? | |
26263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26264 | (exit $ac_status); }; }; then | |
26265 | eval "$as_ac_var=yes" | |
26266 | else | |
26267 | echo "$as_me: failed program was:" >&5 | |
26268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26269 | ||
26270 | eval "$as_ac_var=no" | |
26271 | fi | |
ac1cb8d3 VS |
26272 | rm -f conftest.err conftest.$ac_objext \ |
26273 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26274 | fi |
26275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26276 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26277 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26278 | cat >>confdefs.h <<_ACEOF | |
26279 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26280 | _ACEOF | |
26281 | ||
26282 | fi | |
26283 | done | |
26284 | ||
26285 | fi | |
26286 | ||
26287 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
26288 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
26289 | ||
26290 | AFMINSTALL=afminstall | |
26291 | TOOLKIT=GTK | |
26292 | GUIDIST=GTK_DIST | |
26293 | ||
26294 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
26295 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
26296 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
26297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26298 | else | |
26299 | ac_check_lib_save_LIBS=$LIBS | |
26300 | LIBS="-lgdk $LIBS" | |
26301 | cat >conftest.$ac_ext <<_ACEOF | |
26302 | /* confdefs.h. */ | |
26303 | _ACEOF | |
26304 | cat confdefs.h >>conftest.$ac_ext | |
26305 | cat >>conftest.$ac_ext <<_ACEOF | |
26306 | /* end confdefs.h. */ | |
26307 | ||
26308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26309 | #ifdef __cplusplus | |
26310 | extern "C" | |
26311 | #endif | |
26312 | /* We use char because int might match the return type of a gcc2 | |
26313 | builtin and then its argument prototype would still apply. */ | |
26314 | char gdk_im_open (); | |
26315 | int | |
26316 | main () | |
26317 | { | |
26318 | gdk_im_open (); | |
26319 | ; | |
26320 | return 0; | |
26321 | } | |
26322 | _ACEOF | |
26323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26325 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26326 | ac_status=$? |
ac1cb8d3 VS |
26327 | grep -v '^ *+' conftest.er1 >conftest.err |
26328 | rm -f conftest.er1 | |
26329 | cat conftest.err >&5 | |
a848cd7e SC |
26330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26331 | (exit $ac_status); } && | |
6ebeb4c7 | 26332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26334 | (eval $ac_try) 2>&5 | |
26335 | ac_status=$? | |
26336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26337 | (exit $ac_status); }; } && | |
26338 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26340 | (eval $ac_try) 2>&5 | |
26341 | ac_status=$? | |
26342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26343 | (exit $ac_status); }; }; then | |
26344 | ac_cv_lib_gdk_gdk_im_open=yes | |
26345 | else | |
26346 | echo "$as_me: failed program was:" >&5 | |
26347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26348 | ||
26349 | ac_cv_lib_gdk_gdk_im_open=no | |
26350 | fi | |
ac1cb8d3 VS |
26351 | rm -f conftest.err conftest.$ac_objext \ |
26352 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26353 | LIBS=$ac_check_lib_save_LIBS |
26354 | fi | |
26355 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
26356 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
26357 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
26358 | cat >>confdefs.h <<\_ACEOF | |
26359 | #define HAVE_XIM 1 | |
26360 | _ACEOF | |
26361 | ||
26362 | fi | |
26363 | ||
26364 | ||
26365 | ||
26366 | if test "$wxUSE_GPE" = "yes"; then | |
26367 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
26368 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
26369 | ||
0ad5d837 VZ |
26370 | ac_find_libraries= |
26371 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 26372 | do |
3eca31dc | 26373 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
26374 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
26375 | ac_find_libraries=$ac_dir | |
26376 | break 2 | |
26377 | fi | |
26378 | done | |
26379 | done | |
26380 | ||
26381 | if test "$ac_find_libraries" != "" ; then | |
26382 | ||
0ad5d837 | 26383 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
26384 | ac_path_to_link="" |
26385 | else | |
0ad5d837 VZ |
26386 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
26387 | result=$? | |
26388 | if test $result = 0; then | |
26389 | ac_path_to_link="" | |
26390 | else | |
26391 | ac_path_to_link=" -L$ac_find_libraries" | |
26392 | fi | |
a848cd7e SC |
26393 | fi |
26394 | ||
26395 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
26396 | WXGPE=1 | |
0ad5d837 VZ |
26397 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
26398 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
26399 | else |
26400 | echo "$as_me:$LINENO: result: not found" >&5 | |
26401 | echo "${ECHO_T}not found" >&6 | |
26402 | fi | |
26403 | ||
26404 | fi | |
26405 | fi | |
26406 | ||
26407 | if test "$wxUSE_MGL" = 1; then | |
26408 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
26409 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
26410 | if test "x$MGL_ROOT" = x ; then | |
26411 | echo "$as_me:$LINENO: result: not found" >&5 | |
26412 | echo "${ECHO_T}not found" >&6 | |
26413 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
26414 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
26415 | { (exit 1); exit 1; }; } | |
26416 | else | |
26417 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
26418 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
26419 | fi | |
26420 | ||
26421 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
26422 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
26423 | case "${host}" in | |
26424 | *-*-linux* ) | |
26425 | if test "x$wxUSE_SHARED" = xyes ; then | |
26426 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
26427 | else | |
26428 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
26429 | fi | |
26430 | ;; | |
26431 | *-pc-msdosdjgpp ) | |
26432 | mgl_os_candidates="dos32/dj2" | |
26433 | ;; | |
26434 | *) | |
26435 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
26436 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
26437 | { (exit 1); exit 1; }; } | |
26438 | esac | |
26439 | ||
26440 | mgl_lib_type="" | |
26441 | mgl_os="" | |
26442 | ||
26443 | for mgl_os_i in $mgl_os_candidates ; do | |
26444 | if test "x$mgl_os" = x ; then | |
26445 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
26446 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
26447 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
26448 | mgl_lib_type=debug | |
26449 | mgl_os=$mgl_os_i | |
26450 | fi | |
26451 | fi | |
26452 | if test "x$mgl_lib_type" = x ; then | |
26453 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
26454 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
26455 | mgl_lib_type=release | |
26456 | mgl_os=$mgl_os_i | |
26457 | fi | |
26458 | fi | |
26459 | fi | |
26460 | done | |
26461 | ||
26462 | if test "x$mgl_os" = x ; then | |
26463 | echo "$as_me:$LINENO: result: not found" >&5 | |
26464 | echo "${ECHO_T}not found" >&6 | |
26465 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
26466 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
26467 | { (exit 1); exit 1; }; } | |
26468 | fi | |
26469 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
26470 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
26471 | ||
26472 | wxUSE_UNIVERSAL="yes" | |
26473 | ||
26474 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
26475 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
26476 | ||
26477 | AFMINSTALL=afminstall | |
26478 | TOOLKIT=MGL | |
26479 | GUIDIST=MGL_DIST | |
26480 | fi | |
26481 | ||
26482 | if test "$wxUSE_MICROWIN" = 1; then | |
26483 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
26484 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
26485 | if test "x$MICROWINDOWS" = x ; then | |
26486 | echo "$as_me:$LINENO: result: not found" >&5 | |
26487 | echo "${ECHO_T}not found" >&6 | |
26488 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
26489 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
26490 | { (exit 1); exit 1; }; } | |
26491 | else | |
26492 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
26493 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
26494 | fi | |
26495 | ||
26496 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
26497 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
26498 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
26499 | else | |
26500 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
26501 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
26502 | { (exit 1); exit 1; }; } | |
26503 | fi | |
26504 | ||
26505 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
26506 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
26507 | ||
26508 | wxUSE_UNIVERSAL="yes" | |
26509 | ||
26510 | AFMINSTALL=afminstall | |
26511 | TOOLKIT=MICROWIN | |
26512 | GUIDIST=MICROWIN_DIST | |
26513 | ||
26514 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
26515 | fi | |
26516 | ||
74b84332 | 26517 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
6ebeb4c7 VZ |
26518 | |
26519 | if test "x$ac_path_x_has_been_run" != xyes; then | |
26520 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
26521 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
26522 | ||
6ebeb4c7 | 26523 | ac_path_x_has_been_run=yes |
a848cd7e SC |
26524 | |
26525 | # Check whether --with-x or --without-x was given. | |
26526 | if test "${with_x+set}" = set; then | |
26527 | withval="$with_x" | |
26528 | ||
26529 | fi; | |
26530 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
26531 | if test "x$with_x" = xno; then | |
26532 | # The user explicitly disabled X. | |
26533 | have_x=disabled | |
26534 | else | |
26535 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
26536 | # Both variables are already set. | |
26537 | have_x=yes | |
26538 | else | |
26539 | if test "${ac_cv_have_x+set}" = set; then | |
26540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26541 | else | |
26542 | # One or both of the vars are not set, and there is no cached value. | |
26543 | ac_x_includes=no ac_x_libraries=no | |
26544 | rm -fr conftest.dir | |
26545 | if mkdir conftest.dir; then | |
26546 | cd conftest.dir | |
26547 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
26548 | cat >Imakefile <<'_ACEOF' | |
26549 | acfindx: | |
26550 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
26551 | _ACEOF | |
26552 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
26553 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
26554 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
26555 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
26556 | for ac_extension in a so sl; do | |
26557 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
26558 | test -f $ac_im_libdir/libX11.$ac_extension; then |
26559 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
26560 | fi |
26561 | done | |
26562 | # Screen out bogus values from the imake configuration. They are | |
26563 | # bogus both because they are the default anyway, and because | |
26564 | # using them would break gcc on systems where it needs fixed includes. | |
26565 | case $ac_im_incroot in | |
26566 | /usr/include) ;; | |
26567 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
26568 | esac | |
26569 | case $ac_im_usrlibdir in | |
26570 | /usr/lib | /lib) ;; | |
26571 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
26572 | esac | |
26573 | fi | |
26574 | cd .. | |
26575 | rm -fr conftest.dir | |
26576 | fi | |
26577 | ||
26578 | # Standard set of common directories for X headers. | |
26579 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
26580 | ac_x_header_dirs=' | |
26581 | /usr/X11/include | |
26582 | /usr/X11R6/include | |
26583 | /usr/X11R5/include | |
26584 | /usr/X11R4/include | |
26585 | ||
26586 | /usr/include/X11 | |
26587 | /usr/include/X11R6 | |
26588 | /usr/include/X11R5 | |
26589 | /usr/include/X11R4 | |
26590 | ||
26591 | /usr/local/X11/include | |
26592 | /usr/local/X11R6/include | |
26593 | /usr/local/X11R5/include | |
26594 | /usr/local/X11R4/include | |
26595 | ||
26596 | /usr/local/include/X11 | |
26597 | /usr/local/include/X11R6 | |
26598 | /usr/local/include/X11R5 | |
26599 | /usr/local/include/X11R4 | |
26600 | ||
26601 | /usr/X386/include | |
26602 | /usr/x386/include | |
26603 | /usr/XFree86/include/X11 | |
26604 | ||
26605 | /usr/include | |
26606 | /usr/local/include | |
26607 | /usr/unsupported/include | |
26608 | /usr/athena/include | |
26609 | /usr/local/x11r5/include | |
26610 | /usr/lpp/Xamples/include | |
26611 | ||
26612 | /usr/openwin/include | |
26613 | /usr/openwin/share/include' | |
26614 | ||
26615 | if test "$ac_x_includes" = no; then | |
6ebeb4c7 | 26616 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
26617 | # First, try using that file with no special directory specified. |
26618 | cat >conftest.$ac_ext <<_ACEOF | |
26619 | /* confdefs.h. */ | |
26620 | _ACEOF | |
26621 | cat confdefs.h >>conftest.$ac_ext | |
26622 | cat >>conftest.$ac_ext <<_ACEOF | |
26623 | /* end confdefs.h. */ | |
26624 | #include <X11/Intrinsic.h> | |
26625 | _ACEOF | |
26626 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26627 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26628 | ac_status=$? | |
26629 | grep -v '^ *+' conftest.er1 >conftest.err | |
26630 | rm -f conftest.er1 | |
26631 | cat conftest.err >&5 | |
26632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26633 | (exit $ac_status); } >/dev/null; then | |
26634 | if test -s conftest.err; then | |
26635 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26636 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26637 | else |
26638 | ac_cpp_err= | |
26639 | fi | |
26640 | else | |
26641 | ac_cpp_err=yes | |
26642 | fi | |
26643 | if test -z "$ac_cpp_err"; then | |
26644 | # We can compile using X headers with no special include directory. | |
26645 | ac_x_includes= | |
26646 | else | |
26647 | echo "$as_me: failed program was:" >&5 | |
26648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26649 | ||
26650 | for ac_dir in $ac_x_header_dirs; do | |
26651 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
26652 | ac_x_includes=$ac_dir | |
26653 | break | |
26654 | fi | |
26655 | done | |
26656 | fi | |
26657 | rm -f conftest.err conftest.$ac_ext | |
26658 | fi # $ac_x_includes = no | |
26659 | ||
26660 | if test "$ac_x_libraries" = no; then | |
26661 | # Check for the libraries. | |
26662 | # See if we find them without any special options. | |
26663 | # Don't add to $LIBS permanently. | |
26664 | ac_save_LIBS=$LIBS | |
26665 | LIBS="-lXt $LIBS" | |
26666 | cat >conftest.$ac_ext <<_ACEOF | |
26667 | /* confdefs.h. */ | |
26668 | _ACEOF | |
26669 | cat confdefs.h >>conftest.$ac_ext | |
26670 | cat >>conftest.$ac_ext <<_ACEOF | |
26671 | /* end confdefs.h. */ | |
26672 | #include <X11/Intrinsic.h> | |
26673 | int | |
26674 | main () | |
26675 | { | |
26676 | XtMalloc (0) | |
26677 | ; | |
26678 | return 0; | |
26679 | } | |
26680 | _ACEOF | |
26681 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26683 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26684 | ac_status=$? |
ac1cb8d3 VS |
26685 | grep -v '^ *+' conftest.er1 >conftest.err |
26686 | rm -f conftest.er1 | |
26687 | cat conftest.err >&5 | |
a848cd7e SC |
26688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26689 | (exit $ac_status); } && | |
6ebeb4c7 | 26690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26692 | (eval $ac_try) 2>&5 | |
26693 | ac_status=$? | |
26694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26695 | (exit $ac_status); }; } && | |
26696 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26698 | (eval $ac_try) 2>&5 | |
26699 | ac_status=$? | |
26700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26701 | (exit $ac_status); }; }; then | |
26702 | LIBS=$ac_save_LIBS | |
26703 | # We can link X programs with no special library path. | |
26704 | ac_x_libraries= | |
26705 | else | |
26706 | echo "$as_me: failed program was:" >&5 | |
26707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26708 | ||
26709 | LIBS=$ac_save_LIBS | |
26710 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
26711 | do | |
26712 | # Don't even attempt the hair of trying to link an X program! | |
26713 | for ac_extension in a so sl; do | |
26714 | if test -r $ac_dir/libXt.$ac_extension; then | |
26715 | ac_x_libraries=$ac_dir | |
26716 | break 2 | |
26717 | fi | |
26718 | done | |
26719 | done | |
26720 | fi | |
ac1cb8d3 VS |
26721 | rm -f conftest.err conftest.$ac_objext \ |
26722 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26723 | fi # $ac_x_libraries = no |
26724 | ||
26725 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
26726 | # Didn't find X anywhere. Cache the known absence of X. | |
26727 | ac_cv_have_x="have_x=no" | |
26728 | else | |
26729 | # Record where we found X for the cache. | |
26730 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 26731 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
26732 | fi |
26733 | fi | |
26734 | ||
26735 | fi | |
26736 | eval "$ac_cv_have_x" | |
26737 | fi # $with_x != no | |
26738 | ||
26739 | if test "$have_x" != yes; then | |
26740 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
26741 | echo "${ECHO_T}$have_x" >&6 | |
26742 | no_x=yes | |
26743 | else | |
26744 | # If each of the values was on the command line, it overrides each guess. | |
26745 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
26746 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
26747 | # Update the cache value to reflect the command line values. | |
26748 | ac_cv_have_x="have_x=yes \ | |
26749 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
6ebeb4c7 VZ |
26750 | # It might be that x_includes is empty (headers are found in the |
26751 | # standard search path. Then output the corresponding message | |
26752 | ac_out_x_includes=$x_includes | |
26753 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
26754 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
26755 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
26756 | fi |
26757 | ||
6ebeb4c7 | 26758 | fi |
a848cd7e SC |
26759 | if test "$no_x" = yes; then |
26760 | # Not all programs may use this symbol, but it does not hurt to define it. | |
26761 | ||
26762 | cat >>confdefs.h <<\_ACEOF | |
26763 | #define X_DISPLAY_MISSING 1 | |
26764 | _ACEOF | |
26765 | ||
26766 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
26767 | else | |
26768 | if test -n "$x_includes"; then | |
26769 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
26770 | fi | |
26771 | ||
26772 | # It would also be nice to do this for all -L options, not just this one. | |
26773 | if test -n "$x_libraries"; then | |
26774 | X_LIBS="$X_LIBS -L$x_libraries" | |
26775 | # For Solaris; some versions of Sun CC require a space after -R and | |
26776 | # others require no space. Words are not sufficient . . . . | |
26777 | case `(uname -sr) 2>/dev/null` in | |
26778 | "SunOS 5"*) | |
26779 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
26780 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
26781 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
26782 | cat >conftest.$ac_ext <<_ACEOF | |
26783 | /* confdefs.h. */ | |
26784 | _ACEOF | |
26785 | cat confdefs.h >>conftest.$ac_ext | |
26786 | cat >>conftest.$ac_ext <<_ACEOF | |
26787 | /* end confdefs.h. */ | |
26788 | ||
26789 | int | |
26790 | main () | |
26791 | { | |
26792 | ||
26793 | ; | |
26794 | return 0; | |
26795 | } | |
26796 | _ACEOF | |
26797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26799 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26800 | ac_status=$? |
ac1cb8d3 VS |
26801 | grep -v '^ *+' conftest.er1 >conftest.err |
26802 | rm -f conftest.er1 | |
26803 | cat conftest.err >&5 | |
a848cd7e SC |
26804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26805 | (exit $ac_status); } && | |
6ebeb4c7 | 26806 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26808 | (eval $ac_try) 2>&5 | |
26809 | ac_status=$? | |
26810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26811 | (exit $ac_status); }; } && | |
26812 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26814 | (eval $ac_try) 2>&5 | |
26815 | ac_status=$? | |
26816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26817 | (exit $ac_status); }; }; then | |
26818 | ac_R_nospace=yes | |
26819 | else | |
26820 | echo "$as_me: failed program was:" >&5 | |
26821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26822 | ||
26823 | ac_R_nospace=no | |
26824 | fi | |
ac1cb8d3 VS |
26825 | rm -f conftest.err conftest.$ac_objext \ |
26826 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26827 | if test $ac_R_nospace = yes; then |
26828 | echo "$as_me:$LINENO: result: no" >&5 | |
26829 | echo "${ECHO_T}no" >&6 | |
26830 | X_LIBS="$X_LIBS -R$x_libraries" | |
26831 | else | |
26832 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
26833 | cat >conftest.$ac_ext <<_ACEOF | |
26834 | /* confdefs.h. */ | |
26835 | _ACEOF | |
26836 | cat confdefs.h >>conftest.$ac_ext | |
26837 | cat >>conftest.$ac_ext <<_ACEOF | |
26838 | /* end confdefs.h. */ | |
26839 | ||
26840 | int | |
26841 | main () | |
26842 | { | |
26843 | ||
26844 | ; | |
26845 | return 0; | |
26846 | } | |
26847 | _ACEOF | |
26848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26850 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26851 | ac_status=$? |
ac1cb8d3 VS |
26852 | grep -v '^ *+' conftest.er1 >conftest.err |
26853 | rm -f conftest.er1 | |
26854 | cat conftest.err >&5 | |
a848cd7e SC |
26855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26856 | (exit $ac_status); } && | |
6ebeb4c7 | 26857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26859 | (eval $ac_try) 2>&5 | |
26860 | ac_status=$? | |
26861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26862 | (exit $ac_status); }; } && | |
26863 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26865 | (eval $ac_try) 2>&5 | |
26866 | ac_status=$? | |
26867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26868 | (exit $ac_status); }; }; then | |
26869 | ac_R_space=yes | |
26870 | else | |
26871 | echo "$as_me: failed program was:" >&5 | |
26872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26873 | ||
26874 | ac_R_space=no | |
26875 | fi | |
ac1cb8d3 VS |
26876 | rm -f conftest.err conftest.$ac_objext \ |
26877 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26878 | if test $ac_R_space = yes; then |
26879 | echo "$as_me:$LINENO: result: yes" >&5 | |
26880 | echo "${ECHO_T}yes" >&6 | |
26881 | X_LIBS="$X_LIBS -R $x_libraries" | |
26882 | else | |
26883 | echo "$as_me:$LINENO: result: neither works" >&5 | |
26884 | echo "${ECHO_T}neither works" >&6 | |
26885 | fi | |
26886 | fi | |
26887 | LIBS=$ac_xsave_LIBS | |
26888 | esac | |
26889 | fi | |
26890 | ||
26891 | # Check for system-dependent libraries X programs must link with. | |
26892 | # Do this before checking for the system-independent R6 libraries | |
26893 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
26894 | ||
26895 | if test "$ISC" = yes; then | |
26896 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
26897 | else | |
26898 | # Martyn Johnson says this is needed for Ultrix, if the X | |
26899 | # libraries were built with DECnet support. And Karl Berry says | |
26900 | # the Alpha needs dnet_stub (dnet does not exist). | |
26901 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
26902 | cat >conftest.$ac_ext <<_ACEOF | |
26903 | /* confdefs.h. */ | |
26904 | _ACEOF | |
26905 | cat confdefs.h >>conftest.$ac_ext | |
26906 | cat >>conftest.$ac_ext <<_ACEOF | |
26907 | /* end confdefs.h. */ | |
26908 | ||
26909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26910 | #ifdef __cplusplus | |
26911 | extern "C" | |
26912 | #endif | |
26913 | /* We use char because int might match the return type of a gcc2 | |
26914 | builtin and then its argument prototype would still apply. */ | |
26915 | char XOpenDisplay (); | |
26916 | int | |
26917 | main () | |
26918 | { | |
26919 | XOpenDisplay (); | |
26920 | ; | |
26921 | return 0; | |
26922 | } | |
26923 | _ACEOF | |
26924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26927 | ac_status=$? |
ac1cb8d3 VS |
26928 | grep -v '^ *+' conftest.er1 >conftest.err |
26929 | rm -f conftest.er1 | |
26930 | cat conftest.err >&5 | |
a848cd7e SC |
26931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26932 | (exit $ac_status); } && | |
6ebeb4c7 | 26933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26935 | (eval $ac_try) 2>&5 | |
26936 | ac_status=$? | |
26937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26938 | (exit $ac_status); }; } && | |
26939 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26941 | (eval $ac_try) 2>&5 | |
26942 | ac_status=$? | |
26943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26944 | (exit $ac_status); }; }; then | |
26945 | : | |
26946 | else | |
26947 | echo "$as_me: failed program was:" >&5 | |
26948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26949 | ||
26950 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
26951 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
26952 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
26953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26954 | else | |
26955 | ac_check_lib_save_LIBS=$LIBS | |
26956 | LIBS="-ldnet $LIBS" | |
26957 | cat >conftest.$ac_ext <<_ACEOF | |
26958 | /* confdefs.h. */ | |
26959 | _ACEOF | |
26960 | cat confdefs.h >>conftest.$ac_ext | |
26961 | cat >>conftest.$ac_ext <<_ACEOF | |
26962 | /* end confdefs.h. */ | |
26963 | ||
26964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26965 | #ifdef __cplusplus | |
26966 | extern "C" | |
26967 | #endif | |
26968 | /* We use char because int might match the return type of a gcc2 | |
26969 | builtin and then its argument prototype would still apply. */ | |
26970 | char dnet_ntoa (); | |
26971 | int | |
26972 | main () | |
26973 | { | |
26974 | dnet_ntoa (); | |
26975 | ; | |
26976 | return 0; | |
26977 | } | |
26978 | _ACEOF | |
26979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26981 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26982 | ac_status=$? |
ac1cb8d3 VS |
26983 | grep -v '^ *+' conftest.er1 >conftest.err |
26984 | rm -f conftest.er1 | |
26985 | cat conftest.err >&5 | |
a848cd7e SC |
26986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26987 | (exit $ac_status); } && | |
6ebeb4c7 | 26988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26990 | (eval $ac_try) 2>&5 | |
26991 | ac_status=$? | |
26992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26993 | (exit $ac_status); }; } && | |
26994 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26996 | (eval $ac_try) 2>&5 | |
26997 | ac_status=$? | |
26998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26999 | (exit $ac_status); }; }; then | |
27000 | ac_cv_lib_dnet_dnet_ntoa=yes | |
27001 | else | |
27002 | echo "$as_me: failed program was:" >&5 | |
27003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27004 | ||
27005 | ac_cv_lib_dnet_dnet_ntoa=no | |
27006 | fi | |
ac1cb8d3 VS |
27007 | rm -f conftest.err conftest.$ac_objext \ |
27008 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27009 | LIBS=$ac_check_lib_save_LIBS |
27010 | fi | |
27011 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
27012 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
27013 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
27014 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
27015 | fi | |
27016 | ||
27017 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
27018 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
27019 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
27020 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
27021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27022 | else | |
27023 | ac_check_lib_save_LIBS=$LIBS | |
27024 | LIBS="-ldnet_stub $LIBS" | |
27025 | cat >conftest.$ac_ext <<_ACEOF | |
27026 | /* confdefs.h. */ | |
27027 | _ACEOF | |
27028 | cat confdefs.h >>conftest.$ac_ext | |
27029 | cat >>conftest.$ac_ext <<_ACEOF | |
27030 | /* end confdefs.h. */ | |
27031 | ||
27032 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27033 | #ifdef __cplusplus | |
27034 | extern "C" | |
27035 | #endif | |
27036 | /* We use char because int might match the return type of a gcc2 | |
27037 | builtin and then its argument prototype would still apply. */ | |
27038 | char dnet_ntoa (); | |
27039 | int | |
27040 | main () | |
27041 | { | |
27042 | dnet_ntoa (); | |
27043 | ; | |
27044 | return 0; | |
27045 | } | |
27046 | _ACEOF | |
27047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27049 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27050 | ac_status=$? |
ac1cb8d3 VS |
27051 | grep -v '^ *+' conftest.er1 >conftest.err |
27052 | rm -f conftest.er1 | |
27053 | cat conftest.err >&5 | |
a848cd7e SC |
27054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27055 | (exit $ac_status); } && | |
6ebeb4c7 | 27056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27058 | (eval $ac_try) 2>&5 | |
27059 | ac_status=$? | |
27060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27061 | (exit $ac_status); }; } && | |
27062 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27064 | (eval $ac_try) 2>&5 | |
27065 | ac_status=$? | |
27066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27067 | (exit $ac_status); }; }; then | |
27068 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
27069 | else | |
27070 | echo "$as_me: failed program was:" >&5 | |
27071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27072 | ||
27073 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
27074 | fi | |
ac1cb8d3 VS |
27075 | rm -f conftest.err conftest.$ac_objext \ |
27076 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27077 | LIBS=$ac_check_lib_save_LIBS |
27078 | fi | |
27079 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
27080 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
27081 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
27082 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
27083 | fi | |
27084 | ||
27085 | fi | |
27086 | fi | |
ac1cb8d3 VS |
27087 | rm -f conftest.err conftest.$ac_objext \ |
27088 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27089 | LIBS="$ac_xsave_LIBS" |
27090 | ||
27091 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
27092 | # to get the SysV transport functions. | |
27093 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
27094 | # needs -lnsl. | |
27095 | # The nsl library prevents programs from opening the X display | |
27096 | # on Irix 5.2, according to T.E. Dickey. | |
27097 | # The functions gethostbyname, getservbyname, and inet_addr are | |
27098 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
27099 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
27100 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
27101 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
27102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27103 | else | |
27104 | cat >conftest.$ac_ext <<_ACEOF | |
27105 | /* confdefs.h. */ | |
27106 | _ACEOF | |
27107 | cat confdefs.h >>conftest.$ac_ext | |
27108 | cat >>conftest.$ac_ext <<_ACEOF | |
27109 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27110 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
27111 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27112 | #define gethostbyname innocuous_gethostbyname | |
27113 | ||
a848cd7e SC |
27114 | /* System header to define __stub macros and hopefully few prototypes, |
27115 | which can conflict with char gethostbyname (); below. | |
27116 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27117 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27118 | |
a848cd7e SC |
27119 | #ifdef __STDC__ |
27120 | # include <limits.h> | |
27121 | #else | |
27122 | # include <assert.h> | |
27123 | #endif | |
ac1cb8d3 VS |
27124 | |
27125 | #undef gethostbyname | |
27126 | ||
a848cd7e SC |
27127 | /* Override any gcc2 internal prototype to avoid an error. */ |
27128 | #ifdef __cplusplus | |
27129 | extern "C" | |
27130 | { | |
27131 | #endif | |
27132 | /* We use char because int might match the return type of a gcc2 | |
27133 | builtin and then its argument prototype would still apply. */ | |
27134 | char gethostbyname (); | |
27135 | /* The GNU C library defines this for functions which it implements | |
27136 | to always fail with ENOSYS. Some functions are actually named | |
27137 | something starting with __ and the normal name is an alias. */ | |
27138 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
27139 | choke me | |
27140 | #else | |
27141 | char (*f) () = gethostbyname; | |
27142 | #endif | |
27143 | #ifdef __cplusplus | |
27144 | } | |
27145 | #endif | |
27146 | ||
27147 | int | |
27148 | main () | |
27149 | { | |
27150 | return f != gethostbyname; | |
27151 | ; | |
27152 | return 0; | |
27153 | } | |
27154 | _ACEOF | |
27155 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27157 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27158 | ac_status=$? |
ac1cb8d3 VS |
27159 | grep -v '^ *+' conftest.er1 >conftest.err |
27160 | rm -f conftest.er1 | |
27161 | cat conftest.err >&5 | |
a848cd7e SC |
27162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27163 | (exit $ac_status); } && | |
6ebeb4c7 | 27164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27166 | (eval $ac_try) 2>&5 | |
27167 | ac_status=$? | |
27168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27169 | (exit $ac_status); }; } && | |
27170 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27172 | (eval $ac_try) 2>&5 | |
27173 | ac_status=$? | |
27174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27175 | (exit $ac_status); }; }; then | |
27176 | ac_cv_func_gethostbyname=yes | |
27177 | else | |
27178 | echo "$as_me: failed program was:" >&5 | |
27179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27180 | ||
27181 | ac_cv_func_gethostbyname=no | |
27182 | fi | |
ac1cb8d3 VS |
27183 | rm -f conftest.err conftest.$ac_objext \ |
27184 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27185 | fi |
27186 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
27187 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
27188 | ||
27189 | if test $ac_cv_func_gethostbyname = no; then | |
27190 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
27191 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
27192 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
27193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27194 | else | |
27195 | ac_check_lib_save_LIBS=$LIBS | |
27196 | LIBS="-lnsl $LIBS" | |
27197 | cat >conftest.$ac_ext <<_ACEOF | |
27198 | /* confdefs.h. */ | |
27199 | _ACEOF | |
27200 | cat confdefs.h >>conftest.$ac_ext | |
27201 | cat >>conftest.$ac_ext <<_ACEOF | |
27202 | /* end confdefs.h. */ | |
27203 | ||
27204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27205 | #ifdef __cplusplus | |
27206 | extern "C" | |
27207 | #endif | |
27208 | /* We use char because int might match the return type of a gcc2 | |
27209 | builtin and then its argument prototype would still apply. */ | |
27210 | char gethostbyname (); | |
27211 | int | |
27212 | main () | |
27213 | { | |
27214 | gethostbyname (); | |
27215 | ; | |
27216 | return 0; | |
27217 | } | |
27218 | _ACEOF | |
27219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
27221 | (eval $ac_link) 2>conftest.er1 |
27222 | ac_status=$? | |
27223 | grep -v '^ *+' conftest.er1 >conftest.err | |
27224 | rm -f conftest.er1 | |
27225 | cat conftest.err >&5 | |
27226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27227 | (exit $ac_status); } && | |
6ebeb4c7 | 27228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27230 | (eval $ac_try) 2>&5 | |
27231 | ac_status=$? | |
27232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27233 | (exit $ac_status); }; } && | |
27234 | { ac_try='test -s conftest$ac_exeext' | |
27235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27236 | (eval $ac_try) 2>&5 | |
27237 | ac_status=$? | |
27238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27239 | (exit $ac_status); }; }; then | |
27240 | ac_cv_lib_nsl_gethostbyname=yes | |
27241 | else | |
27242 | echo "$as_me: failed program was:" >&5 | |
27243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27244 | ||
27245 | ac_cv_lib_nsl_gethostbyname=no | |
27246 | fi | |
27247 | rm -f conftest.err conftest.$ac_objext \ | |
27248 | conftest$ac_exeext conftest.$ac_ext | |
27249 | LIBS=$ac_check_lib_save_LIBS | |
27250 | fi | |
27251 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
27252 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
27253 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
27254 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
27255 | fi | |
27256 | ||
27257 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
27258 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
27259 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
27260 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
27261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27262 | else | |
27263 | ac_check_lib_save_LIBS=$LIBS | |
27264 | LIBS="-lbsd $LIBS" | |
27265 | cat >conftest.$ac_ext <<_ACEOF | |
27266 | /* confdefs.h. */ | |
27267 | _ACEOF | |
27268 | cat confdefs.h >>conftest.$ac_ext | |
27269 | cat >>conftest.$ac_ext <<_ACEOF | |
27270 | /* end confdefs.h. */ | |
27271 | ||
27272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27273 | #ifdef __cplusplus | |
27274 | extern "C" | |
27275 | #endif | |
27276 | /* We use char because int might match the return type of a gcc2 | |
27277 | builtin and then its argument prototype would still apply. */ | |
27278 | char gethostbyname (); | |
27279 | int | |
27280 | main () | |
27281 | { | |
27282 | gethostbyname (); | |
27283 | ; | |
27284 | return 0; | |
27285 | } | |
27286 | _ACEOF | |
27287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27289 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 27290 | ac_status=$? |
ac1cb8d3 VS |
27291 | grep -v '^ *+' conftest.er1 >conftest.err |
27292 | rm -f conftest.er1 | |
27293 | cat conftest.err >&5 | |
a848cd7e SC |
27294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27295 | (exit $ac_status); } && | |
6ebeb4c7 | 27296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
27297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27298 | (eval $ac_try) 2>&5 | |
27299 | ac_status=$? | |
27300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
27301 | (exit $ac_status); }; } && |
27302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27304 | (eval $ac_try) 2>&5 | |
27305 | ac_status=$? | |
27306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27307 | (exit $ac_status); }; }; then | |
27308 | ac_cv_lib_bsd_gethostbyname=yes | |
27309 | else | |
27310 | echo "$as_me: failed program was:" >&5 | |
27311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27312 | ||
27313 | ac_cv_lib_bsd_gethostbyname=no | |
27314 | fi | |
ac1cb8d3 VS |
27315 | rm -f conftest.err conftest.$ac_objext \ |
27316 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27317 | LIBS=$ac_check_lib_save_LIBS |
27318 | fi | |
27319 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
27320 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
27321 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
27322 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
27323 | fi | |
27324 | ||
27325 | fi | |
27326 | fi | |
27327 | ||
27328 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
27329 | # socket/setsockopt and other routines are undefined under SCO ODT | |
27330 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
27331 | # on later versions), says Simon Leinen: it contains gethostby* | |
27332 | # variants that don't use the name server (or something). -lsocket | |
27333 | # must be given before -lnsl if both are needed. We assume that | |
27334 | # if connect needs -lnsl, so does gethostbyname. | |
27335 | echo "$as_me:$LINENO: checking for connect" >&5 | |
27336 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
27337 | if test "${ac_cv_func_connect+set}" = set; then | |
27338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27339 | else | |
27340 | cat >conftest.$ac_ext <<_ACEOF | |
27341 | /* confdefs.h. */ | |
27342 | _ACEOF | |
27343 | cat confdefs.h >>conftest.$ac_ext | |
27344 | cat >>conftest.$ac_ext <<_ACEOF | |
27345 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27346 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
27347 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27348 | #define connect innocuous_connect | |
27349 | ||
a848cd7e SC |
27350 | /* System header to define __stub macros and hopefully few prototypes, |
27351 | which can conflict with char connect (); below. | |
27352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27353 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27354 | |
a848cd7e SC |
27355 | #ifdef __STDC__ |
27356 | # include <limits.h> | |
27357 | #else | |
27358 | # include <assert.h> | |
27359 | #endif | |
ac1cb8d3 VS |
27360 | |
27361 | #undef connect | |
27362 | ||
a848cd7e SC |
27363 | /* Override any gcc2 internal prototype to avoid an error. */ |
27364 | #ifdef __cplusplus | |
27365 | extern "C" | |
27366 | { | |
27367 | #endif | |
27368 | /* We use char because int might match the return type of a gcc2 | |
27369 | builtin and then its argument prototype would still apply. */ | |
27370 | char connect (); | |
27371 | /* The GNU C library defines this for functions which it implements | |
27372 | to always fail with ENOSYS. Some functions are actually named | |
27373 | something starting with __ and the normal name is an alias. */ | |
27374 | #if defined (__stub_connect) || defined (__stub___connect) | |
27375 | choke me | |
27376 | #else | |
27377 | char (*f) () = connect; | |
27378 | #endif | |
27379 | #ifdef __cplusplus | |
27380 | } | |
27381 | #endif | |
27382 | ||
27383 | int | |
27384 | main () | |
27385 | { | |
27386 | return f != connect; | |
27387 | ; | |
27388 | return 0; | |
27389 | } | |
27390 | _ACEOF | |
27391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27393 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27394 | ac_status=$? |
ac1cb8d3 VS |
27395 | grep -v '^ *+' conftest.er1 >conftest.err |
27396 | rm -f conftest.er1 | |
27397 | cat conftest.err >&5 | |
a848cd7e SC |
27398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27399 | (exit $ac_status); } && | |
6ebeb4c7 | 27400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27402 | (eval $ac_try) 2>&5 | |
27403 | ac_status=$? | |
27404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27405 | (exit $ac_status); }; } && | |
27406 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27408 | (eval $ac_try) 2>&5 | |
27409 | ac_status=$? | |
27410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27411 | (exit $ac_status); }; }; then | |
27412 | ac_cv_func_connect=yes | |
27413 | else | |
27414 | echo "$as_me: failed program was:" >&5 | |
27415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27416 | ||
27417 | ac_cv_func_connect=no | |
27418 | fi | |
ac1cb8d3 VS |
27419 | rm -f conftest.err conftest.$ac_objext \ |
27420 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27421 | fi |
27422 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
27423 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
27424 | ||
27425 | if test $ac_cv_func_connect = no; then | |
27426 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
27427 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
27428 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
27429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27430 | else | |
27431 | ac_check_lib_save_LIBS=$LIBS | |
27432 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
27433 | cat >conftest.$ac_ext <<_ACEOF | |
27434 | /* confdefs.h. */ | |
27435 | _ACEOF | |
27436 | cat confdefs.h >>conftest.$ac_ext | |
27437 | cat >>conftest.$ac_ext <<_ACEOF | |
27438 | /* end confdefs.h. */ | |
27439 | ||
27440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27441 | #ifdef __cplusplus | |
27442 | extern "C" | |
27443 | #endif | |
27444 | /* We use char because int might match the return type of a gcc2 | |
27445 | builtin and then its argument prototype would still apply. */ | |
27446 | char connect (); | |
27447 | int | |
27448 | main () | |
27449 | { | |
27450 | connect (); | |
27451 | ; | |
27452 | return 0; | |
27453 | } | |
27454 | _ACEOF | |
27455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27457 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27458 | ac_status=$? |
ac1cb8d3 VS |
27459 | grep -v '^ *+' conftest.er1 >conftest.err |
27460 | rm -f conftest.er1 | |
27461 | cat conftest.err >&5 | |
a848cd7e SC |
27462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27463 | (exit $ac_status); } && | |
6ebeb4c7 | 27464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27466 | (eval $ac_try) 2>&5 | |
27467 | ac_status=$? | |
27468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27469 | (exit $ac_status); }; } && | |
27470 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27472 | (eval $ac_try) 2>&5 | |
27473 | ac_status=$? | |
27474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27475 | (exit $ac_status); }; }; then | |
27476 | ac_cv_lib_socket_connect=yes | |
27477 | else | |
27478 | echo "$as_me: failed program was:" >&5 | |
27479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27480 | ||
27481 | ac_cv_lib_socket_connect=no | |
27482 | fi | |
ac1cb8d3 VS |
27483 | rm -f conftest.err conftest.$ac_objext \ |
27484 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27485 | LIBS=$ac_check_lib_save_LIBS |
27486 | fi | |
27487 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
27488 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
27489 | if test $ac_cv_lib_socket_connect = yes; then | |
27490 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
27491 | fi | |
27492 | ||
27493 | fi | |
27494 | ||
27495 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
27496 | echo "$as_me:$LINENO: checking for remove" >&5 | |
27497 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
27498 | if test "${ac_cv_func_remove+set}" = set; then | |
27499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27500 | else | |
27501 | cat >conftest.$ac_ext <<_ACEOF | |
27502 | /* confdefs.h. */ | |
27503 | _ACEOF | |
27504 | cat confdefs.h >>conftest.$ac_ext | |
27505 | cat >>conftest.$ac_ext <<_ACEOF | |
27506 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27507 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
27508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27509 | #define remove innocuous_remove | |
27510 | ||
a848cd7e SC |
27511 | /* System header to define __stub macros and hopefully few prototypes, |
27512 | which can conflict with char remove (); below. | |
27513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27514 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27515 | |
a848cd7e SC |
27516 | #ifdef __STDC__ |
27517 | # include <limits.h> | |
27518 | #else | |
27519 | # include <assert.h> | |
27520 | #endif | |
ac1cb8d3 VS |
27521 | |
27522 | #undef remove | |
27523 | ||
a848cd7e SC |
27524 | /* Override any gcc2 internal prototype to avoid an error. */ |
27525 | #ifdef __cplusplus | |
27526 | extern "C" | |
27527 | { | |
27528 | #endif | |
27529 | /* We use char because int might match the return type of a gcc2 | |
27530 | builtin and then its argument prototype would still apply. */ | |
27531 | char remove (); | |
27532 | /* The GNU C library defines this for functions which it implements | |
27533 | to always fail with ENOSYS. Some functions are actually named | |
27534 | something starting with __ and the normal name is an alias. */ | |
27535 | #if defined (__stub_remove) || defined (__stub___remove) | |
27536 | choke me | |
27537 | #else | |
27538 | char (*f) () = remove; | |
27539 | #endif | |
27540 | #ifdef __cplusplus | |
27541 | } | |
27542 | #endif | |
27543 | ||
27544 | int | |
27545 | main () | |
27546 | { | |
27547 | return f != remove; | |
27548 | ; | |
27549 | return 0; | |
27550 | } | |
27551 | _ACEOF | |
27552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27555 | ac_status=$? |
ac1cb8d3 VS |
27556 | grep -v '^ *+' conftest.er1 >conftest.err |
27557 | rm -f conftest.er1 | |
27558 | cat conftest.err >&5 | |
a848cd7e SC |
27559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27560 | (exit $ac_status); } && | |
6ebeb4c7 | 27561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27563 | (eval $ac_try) 2>&5 | |
27564 | ac_status=$? | |
27565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27566 | (exit $ac_status); }; } && | |
27567 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27569 | (eval $ac_try) 2>&5 | |
27570 | ac_status=$? | |
27571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27572 | (exit $ac_status); }; }; then | |
27573 | ac_cv_func_remove=yes | |
27574 | else | |
27575 | echo "$as_me: failed program was:" >&5 | |
27576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27577 | ||
27578 | ac_cv_func_remove=no | |
27579 | fi | |
ac1cb8d3 VS |
27580 | rm -f conftest.err conftest.$ac_objext \ |
27581 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27582 | fi |
27583 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
27584 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
27585 | ||
27586 | if test $ac_cv_func_remove = no; then | |
27587 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
27588 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
27589 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
27590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27591 | else | |
27592 | ac_check_lib_save_LIBS=$LIBS | |
27593 | LIBS="-lposix $LIBS" | |
27594 | cat >conftest.$ac_ext <<_ACEOF | |
27595 | /* confdefs.h. */ | |
27596 | _ACEOF | |
27597 | cat confdefs.h >>conftest.$ac_ext | |
27598 | cat >>conftest.$ac_ext <<_ACEOF | |
27599 | /* end confdefs.h. */ | |
27600 | ||
27601 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27602 | #ifdef __cplusplus | |
27603 | extern "C" | |
27604 | #endif | |
27605 | /* We use char because int might match the return type of a gcc2 | |
27606 | builtin and then its argument prototype would still apply. */ | |
27607 | char remove (); | |
27608 | int | |
27609 | main () | |
27610 | { | |
27611 | remove (); | |
27612 | ; | |
27613 | return 0; | |
27614 | } | |
27615 | _ACEOF | |
27616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27618 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27619 | ac_status=$? |
ac1cb8d3 VS |
27620 | grep -v '^ *+' conftest.er1 >conftest.err |
27621 | rm -f conftest.er1 | |
27622 | cat conftest.err >&5 | |
a848cd7e SC |
27623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27624 | (exit $ac_status); } && | |
6ebeb4c7 | 27625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27627 | (eval $ac_try) 2>&5 | |
27628 | ac_status=$? | |
27629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27630 | (exit $ac_status); }; } && | |
27631 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27633 | (eval $ac_try) 2>&5 | |
27634 | ac_status=$? | |
27635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27636 | (exit $ac_status); }; }; then | |
27637 | ac_cv_lib_posix_remove=yes | |
27638 | else | |
27639 | echo "$as_me: failed program was:" >&5 | |
27640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27641 | ||
27642 | ac_cv_lib_posix_remove=no | |
27643 | fi | |
ac1cb8d3 VS |
27644 | rm -f conftest.err conftest.$ac_objext \ |
27645 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27646 | LIBS=$ac_check_lib_save_LIBS |
27647 | fi | |
27648 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
27649 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
27650 | if test $ac_cv_lib_posix_remove = yes; then | |
27651 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
27652 | fi | |
27653 | ||
27654 | fi | |
27655 | ||
27656 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
27657 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
27658 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
27659 | if test "${ac_cv_func_shmat+set}" = set; then | |
27660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27661 | else | |
27662 | cat >conftest.$ac_ext <<_ACEOF | |
27663 | /* confdefs.h. */ | |
27664 | _ACEOF | |
27665 | cat confdefs.h >>conftest.$ac_ext | |
27666 | cat >>conftest.$ac_ext <<_ACEOF | |
27667 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27668 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
27669 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27670 | #define shmat innocuous_shmat | |
27671 | ||
a848cd7e SC |
27672 | /* System header to define __stub macros and hopefully few prototypes, |
27673 | which can conflict with char shmat (); below. | |
27674 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27675 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27676 | |
a848cd7e SC |
27677 | #ifdef __STDC__ |
27678 | # include <limits.h> | |
27679 | #else | |
27680 | # include <assert.h> | |
27681 | #endif | |
ac1cb8d3 VS |
27682 | |
27683 | #undef shmat | |
27684 | ||
a848cd7e SC |
27685 | /* Override any gcc2 internal prototype to avoid an error. */ |
27686 | #ifdef __cplusplus | |
27687 | extern "C" | |
27688 | { | |
27689 | #endif | |
27690 | /* We use char because int might match the return type of a gcc2 | |
27691 | builtin and then its argument prototype would still apply. */ | |
27692 | char shmat (); | |
27693 | /* The GNU C library defines this for functions which it implements | |
27694 | to always fail with ENOSYS. Some functions are actually named | |
27695 | something starting with __ and the normal name is an alias. */ | |
27696 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
27697 | choke me | |
27698 | #else | |
27699 | char (*f) () = shmat; | |
27700 | #endif | |
27701 | #ifdef __cplusplus | |
27702 | } | |
27703 | #endif | |
27704 | ||
27705 | int | |
27706 | main () | |
27707 | { | |
27708 | return f != shmat; | |
27709 | ; | |
27710 | return 0; | |
27711 | } | |
27712 | _ACEOF | |
27713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27715 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27716 | ac_status=$? |
ac1cb8d3 VS |
27717 | grep -v '^ *+' conftest.er1 >conftest.err |
27718 | rm -f conftest.er1 | |
27719 | cat conftest.err >&5 | |
a848cd7e SC |
27720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27721 | (exit $ac_status); } && | |
6ebeb4c7 | 27722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27724 | (eval $ac_try) 2>&5 | |
27725 | ac_status=$? | |
27726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27727 | (exit $ac_status); }; } && | |
27728 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27730 | (eval $ac_try) 2>&5 | |
27731 | ac_status=$? | |
27732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27733 | (exit $ac_status); }; }; then | |
27734 | ac_cv_func_shmat=yes | |
27735 | else | |
27736 | echo "$as_me: failed program was:" >&5 | |
27737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27738 | ||
27739 | ac_cv_func_shmat=no | |
27740 | fi | |
ac1cb8d3 VS |
27741 | rm -f conftest.err conftest.$ac_objext \ |
27742 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27743 | fi |
27744 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
27745 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
27746 | ||
27747 | if test $ac_cv_func_shmat = no; then | |
27748 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
27749 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
27750 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
27751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27752 | else | |
27753 | ac_check_lib_save_LIBS=$LIBS | |
27754 | LIBS="-lipc $LIBS" | |
27755 | cat >conftest.$ac_ext <<_ACEOF | |
27756 | /* confdefs.h. */ | |
27757 | _ACEOF | |
27758 | cat confdefs.h >>conftest.$ac_ext | |
27759 | cat >>conftest.$ac_ext <<_ACEOF | |
27760 | /* end confdefs.h. */ | |
27761 | ||
27762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27763 | #ifdef __cplusplus | |
27764 | extern "C" | |
27765 | #endif | |
27766 | /* We use char because int might match the return type of a gcc2 | |
27767 | builtin and then its argument prototype would still apply. */ | |
27768 | char shmat (); | |
27769 | int | |
27770 | main () | |
27771 | { | |
27772 | shmat (); | |
27773 | ; | |
27774 | return 0; | |
27775 | } | |
27776 | _ACEOF | |
27777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27779 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27780 | ac_status=$? |
ac1cb8d3 VS |
27781 | grep -v '^ *+' conftest.er1 >conftest.err |
27782 | rm -f conftest.er1 | |
27783 | cat conftest.err >&5 | |
a848cd7e SC |
27784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27785 | (exit $ac_status); } && | |
6ebeb4c7 | 27786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27788 | (eval $ac_try) 2>&5 | |
27789 | ac_status=$? | |
27790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27791 | (exit $ac_status); }; } && | |
27792 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27794 | (eval $ac_try) 2>&5 | |
27795 | ac_status=$? | |
27796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27797 | (exit $ac_status); }; }; then | |
27798 | ac_cv_lib_ipc_shmat=yes | |
27799 | else | |
27800 | echo "$as_me: failed program was:" >&5 | |
27801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27802 | ||
27803 | ac_cv_lib_ipc_shmat=no | |
27804 | fi | |
ac1cb8d3 VS |
27805 | rm -f conftest.err conftest.$ac_objext \ |
27806 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27807 | LIBS=$ac_check_lib_save_LIBS |
27808 | fi | |
27809 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
27810 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
27811 | if test $ac_cv_lib_ipc_shmat = yes; then | |
27812 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
27813 | fi | |
27814 | ||
27815 | fi | |
27816 | fi | |
27817 | ||
27818 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
27819 | ac_save_LDFLAGS=$LDFLAGS | |
27820 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
27821 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
27822 | # check for ICE first), but we must link in the order -lSM -lICE or | |
27823 | # we get undefined symbols. So assume we have SM if we have ICE. | |
27824 | # These have to be linked with before -lX11, unlike the other | |
27825 | # libraries we check for below, so use a different variable. | |
27826 | # John Interrante, Karl Berry | |
27827 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
27828 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
27829 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
27830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27831 | else | |
27832 | ac_check_lib_save_LIBS=$LIBS | |
27833 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
27834 | cat >conftest.$ac_ext <<_ACEOF | |
27835 | /* confdefs.h. */ | |
27836 | _ACEOF | |
27837 | cat confdefs.h >>conftest.$ac_ext | |
27838 | cat >>conftest.$ac_ext <<_ACEOF | |
27839 | /* end confdefs.h. */ | |
27840 | ||
27841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27842 | #ifdef __cplusplus | |
27843 | extern "C" | |
27844 | #endif | |
27845 | /* We use char because int might match the return type of a gcc2 | |
27846 | builtin and then its argument prototype would still apply. */ | |
27847 | char IceConnectionNumber (); | |
27848 | int | |
27849 | main () | |
27850 | { | |
27851 | IceConnectionNumber (); | |
27852 | ; | |
27853 | return 0; | |
27854 | } | |
27855 | _ACEOF | |
27856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27858 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27859 | ac_status=$? |
ac1cb8d3 VS |
27860 | grep -v '^ *+' conftest.er1 >conftest.err |
27861 | rm -f conftest.er1 | |
27862 | cat conftest.err >&5 | |
a848cd7e SC |
27863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27864 | (exit $ac_status); } && | |
6ebeb4c7 | 27865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27867 | (eval $ac_try) 2>&5 | |
27868 | ac_status=$? | |
27869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27870 | (exit $ac_status); }; } && | |
27871 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27873 | (eval $ac_try) 2>&5 | |
27874 | ac_status=$? | |
27875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27876 | (exit $ac_status); }; }; then | |
27877 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
27878 | else | |
27879 | echo "$as_me: failed program was:" >&5 | |
27880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27881 | ||
27882 | ac_cv_lib_ICE_IceConnectionNumber=no | |
27883 | fi | |
ac1cb8d3 VS |
27884 | rm -f conftest.err conftest.$ac_objext \ |
27885 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27886 | LIBS=$ac_check_lib_save_LIBS |
27887 | fi | |
27888 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
27889 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
27890 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
27891 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
27892 | fi | |
27893 | ||
27894 | LDFLAGS=$ac_save_LDFLAGS | |
27895 | ||
27896 | fi | |
27897 | ||
27898 | ||
27899 | if test "$no_x" = "yes"; then | |
27900 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
27901 | echo "$as_me: error: X11 not found" >&2;} | |
27902 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
27903 | fi | |
27904 | ||
74b84332 VS |
27905 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
27906 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
27907 | AFMINSTALL=afminstall |
27908 | COMPILED_X_PROGRAM=0 | |
27909 | ||
74b84332 VS |
27910 | fi |
27911 | ||
27912 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
27913 | if test "$wxUSE_NANOX" = "yes"; then |
27914 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
27915 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
27916 | if test "x$MICROWIN" = x ; then | |
27917 | echo "$as_me:$LINENO: result: not found" >&5 | |
27918 | echo "${ECHO_T}not found" >&6 | |
27919 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
27920 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
27921 | { (exit 1); exit 1; }; } | |
27922 | else | |
27923 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
27924 | echo "${ECHO_T}$MICROWIN" >&6 | |
27925 | cat >>confdefs.h <<\_ACEOF | |
27926 | #define wxUSE_NANOX 1 | |
27927 | _ACEOF | |
27928 | ||
27929 | fi | |
27930 | fi | |
27931 | ||
27932 | if test "$wxUSE_UNICODE" = "yes"; then | |
27933 | ||
27934 | succeeded=no | |
27935 | ||
27936 | if test -z "$PKG_CONFIG"; then | |
27937 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27938 | set dummy pkg-config; ac_word=$2 | |
27939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27941 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27943 | else | |
27944 | case $PKG_CONFIG in | |
27945 | [\\/]* | ?:[\\/]*) | |
27946 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27947 | ;; | |
27948 | *) | |
27949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27950 | for as_dir in $PATH | |
27951 | do | |
27952 | IFS=$as_save_IFS | |
27953 | test -z "$as_dir" && as_dir=. | |
27954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27956 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27958 | break 2 | |
27959 | fi | |
27960 | done | |
27961 | done | |
27962 | ||
27963 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27964 | ;; | |
27965 | esac | |
27966 | fi | |
27967 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27968 | ||
27969 | if test -n "$PKG_CONFIG"; then | |
27970 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27971 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27972 | else | |
27973 | echo "$as_me:$LINENO: result: no" >&5 | |
27974 | echo "${ECHO_T}no" >&6 | |
27975 | fi | |
27976 | ||
27977 | fi | |
27978 | ||
27979 | if test "$PKG_CONFIG" = "no" ; then | |
27980 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27981 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27982 | echo "*** to the full path to pkg-config." | |
27983 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27984 | else | |
27985 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27986 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27987 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
27988 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
27989 | ||
27990 | if $PKG_CONFIG --exists "pangox" ; then | |
27991 | echo "$as_me:$LINENO: result: yes" >&5 | |
27992 | echo "${ECHO_T}yes" >&6 | |
27993 | succeeded=yes | |
27994 | ||
27995 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
27996 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
27997 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
27998 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
27999 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
28000 | ||
28001 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
28002 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
28003 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
28004 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
28005 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
28006 | else | |
28007 | PANGOX_CFLAGS="" | |
28008 | PANGOX_LIBS="" | |
28009 | ## If we have a custom action on failure, don't print errors, but | |
28010 | ## do set a variable so people can do so. | |
28011 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
28012 | ||
28013 | fi | |
28014 | ||
28015 | ||
28016 | ||
28017 | else | |
28018 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28019 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28020 | fi | |
28021 | fi | |
28022 | ||
28023 | if test $succeeded = yes; then | |
28024 | ||
28025 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
28026 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
28027 | ||
28028 | else | |
28029 | ||
28030 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
28031 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
28032 | { (exit 1); exit 1; }; } | |
28033 | ||
28034 | ||
28035 | fi | |
28036 | ||
28037 | ||
28038 | succeeded=no | |
28039 | ||
28040 | if test -z "$PKG_CONFIG"; then | |
28041 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28042 | set dummy pkg-config; ac_word=$2 | |
28043 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28045 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28047 | else | |
28048 | case $PKG_CONFIG in | |
28049 | [\\/]* | ?:[\\/]*) | |
28050 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28051 | ;; | |
28052 | *) | |
28053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28054 | for as_dir in $PATH | |
28055 | do | |
28056 | IFS=$as_save_IFS | |
28057 | test -z "$as_dir" && as_dir=. | |
28058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28060 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28062 | break 2 | |
28063 | fi | |
28064 | done | |
28065 | done | |
28066 | ||
28067 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28068 | ;; | |
28069 | esac | |
28070 | fi | |
28071 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28072 | ||
28073 | if test -n "$PKG_CONFIG"; then | |
28074 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28075 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28076 | else | |
28077 | echo "$as_me:$LINENO: result: no" >&5 | |
28078 | echo "${ECHO_T}no" >&6 | |
28079 | fi | |
28080 | ||
28081 | fi | |
28082 | ||
28083 | if test "$PKG_CONFIG" = "no" ; then | |
28084 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28085 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28086 | echo "*** to the full path to pkg-config." | |
28087 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28088 | else | |
28089 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28090 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28091 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
28092 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
28093 | ||
28094 | if $PKG_CONFIG --exists "pangoft2" ; then | |
28095 | echo "$as_me:$LINENO: result: yes" >&5 | |
28096 | echo "${ECHO_T}yes" >&6 | |
28097 | succeeded=yes | |
28098 | ||
28099 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
28100 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
28101 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
28102 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
28103 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
28104 | ||
28105 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
28106 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
28107 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
28108 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
28109 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
28110 | else | |
28111 | PANGOFT2_CFLAGS="" | |
28112 | PANGOFT2_LIBS="" | |
28113 | ## If we have a custom action on failure, don't print errors, but | |
28114 | ## do set a variable so people can do so. | |
28115 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
28116 | ||
28117 | fi | |
28118 | ||
28119 | ||
28120 | ||
28121 | else | |
28122 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28123 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28124 | fi | |
28125 | fi | |
28126 | ||
28127 | if test $succeeded = yes; then | |
28128 | ||
28129 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
28130 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
28131 | ||
28132 | else | |
28133 | ||
28134 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
28135 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
28136 | wxUSE_PRINTING_ARCHITECTURE="no" | |
28137 | ||
28138 | ||
28139 | fi | |
28140 | ||
28141 | ||
28142 | succeeded=no | |
28143 | ||
28144 | if test -z "$PKG_CONFIG"; then | |
28145 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28146 | set dummy pkg-config; ac_word=$2 | |
28147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28149 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28151 | else | |
28152 | case $PKG_CONFIG in | |
28153 | [\\/]* | ?:[\\/]*) | |
28154 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28155 | ;; | |
28156 | *) | |
28157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28158 | for as_dir in $PATH | |
28159 | do | |
28160 | IFS=$as_save_IFS | |
28161 | test -z "$as_dir" && as_dir=. | |
28162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28164 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28166 | break 2 | |
28167 | fi | |
28168 | done | |
28169 | done | |
28170 | ||
28171 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28172 | ;; | |
28173 | esac | |
28174 | fi | |
28175 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28176 | ||
28177 | if test -n "$PKG_CONFIG"; then | |
28178 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28179 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28180 | else | |
28181 | echo "$as_me:$LINENO: result: no" >&5 | |
28182 | echo "${ECHO_T}no" >&6 | |
28183 | fi | |
28184 | ||
28185 | fi | |
28186 | ||
28187 | if test "$PKG_CONFIG" = "no" ; then | |
28188 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28189 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28190 | echo "*** to the full path to pkg-config." | |
28191 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28192 | else | |
28193 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28194 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28195 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
28196 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
28197 | ||
28198 | if $PKG_CONFIG --exists "pangoxft" ; then | |
28199 | echo "$as_me:$LINENO: result: yes" >&5 | |
28200 | echo "${ECHO_T}yes" >&6 | |
28201 | succeeded=yes | |
28202 | ||
28203 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
28204 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
28205 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
28206 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
28207 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
28208 | ||
28209 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
28210 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
28211 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
28212 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
28213 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
28214 | else | |
28215 | PANGOXFT_CFLAGS="" | |
28216 | PANGOXFT_LIBS="" | |
28217 | ## If we have a custom action on failure, don't print errors, but | |
28218 | ## do set a variable so people can do so. | |
28219 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
28220 | ||
28221 | fi | |
28222 | ||
28223 | ||
28224 | ||
28225 | else | |
28226 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28227 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28228 | fi | |
28229 | fi | |
28230 | ||
28231 | if test $succeeded = yes; then | |
28232 | ||
4ae1af05 MB |
28233 | cat >>confdefs.h <<\_ACEOF |
28234 | #define HAVE_PANGO_XFT 1 | |
28235 | _ACEOF | |
28236 | ||
a848cd7e SC |
28237 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
28238 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
28239 | ||
28240 | else | |
28241 | ||
28242 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
28243 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
28244 | ||
28245 | ||
28246 | fi | |
28247 | ||
304205f1 VS |
28248 | save_CFLAGS="$CFLAGS" |
28249 | save_LIBS="$LIBS" | |
28250 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
28251 | LIBS="$LIBS $PANGOX_LIBS" | |
28252 | ||
28253 | for ac_func in pango_font_family_is_monospace | |
28254 | do | |
28255 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28256 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28257 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28258 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28260 | else | |
28261 | cat >conftest.$ac_ext <<_ACEOF | |
28262 | /* confdefs.h. */ | |
28263 | _ACEOF | |
28264 | cat confdefs.h >>conftest.$ac_ext | |
28265 | cat >>conftest.$ac_ext <<_ACEOF | |
28266 | /* end confdefs.h. */ | |
28267 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
28268 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28269 | #define $ac_func innocuous_$ac_func | |
28270 | ||
28271 | /* System header to define __stub macros and hopefully few prototypes, | |
28272 | which can conflict with char $ac_func (); below. | |
28273 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28274 | <limits.h> exists even on freestanding compilers. */ | |
28275 | ||
28276 | #ifdef __STDC__ | |
28277 | # include <limits.h> | |
28278 | #else | |
28279 | # include <assert.h> | |
28280 | #endif | |
28281 | ||
28282 | #undef $ac_func | |
28283 | ||
28284 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28285 | #ifdef __cplusplus | |
28286 | extern "C" | |
28287 | { | |
28288 | #endif | |
28289 | /* We use char because int might match the return type of a gcc2 | |
28290 | builtin and then its argument prototype would still apply. */ | |
28291 | char $ac_func (); | |
28292 | /* The GNU C library defines this for functions which it implements | |
28293 | to always fail with ENOSYS. Some functions are actually named | |
28294 | something starting with __ and the normal name is an alias. */ | |
28295 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28296 | choke me | |
28297 | #else | |
28298 | char (*f) () = $ac_func; | |
28299 | #endif | |
28300 | #ifdef __cplusplus | |
28301 | } | |
28302 | #endif | |
28303 | ||
28304 | int | |
28305 | main () | |
28306 | { | |
28307 | return f != $ac_func; | |
28308 | ; | |
28309 | return 0; | |
28310 | } | |
28311 | _ACEOF | |
28312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28314 | (eval $ac_link) 2>conftest.er1 | |
28315 | ac_status=$? | |
28316 | grep -v '^ *+' conftest.er1 >conftest.err | |
28317 | rm -f conftest.er1 | |
28318 | cat conftest.err >&5 | |
28319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28320 | (exit $ac_status); } && | |
6ebeb4c7 | 28321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
28322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28323 | (eval $ac_try) 2>&5 | |
28324 | ac_status=$? | |
28325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28326 | (exit $ac_status); }; } && | |
28327 | { ac_try='test -s conftest$ac_exeext' | |
28328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28329 | (eval $ac_try) 2>&5 | |
28330 | ac_status=$? | |
28331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28332 | (exit $ac_status); }; }; then | |
28333 | eval "$as_ac_var=yes" | |
28334 | else | |
28335 | echo "$as_me: failed program was:" >&5 | |
28336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28337 | ||
28338 | eval "$as_ac_var=no" | |
28339 | fi | |
28340 | rm -f conftest.err conftest.$ac_objext \ | |
28341 | conftest$ac_exeext conftest.$ac_ext | |
28342 | fi | |
28343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28344 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28345 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28346 | cat >>confdefs.h <<_ACEOF | |
28347 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28348 | _ACEOF | |
28349 | ||
28350 | fi | |
28351 | done | |
28352 | ||
28353 | CFLAGS="$save_CFLAGS" | |
28354 | LIBS="$save_LIBS" | |
a848cd7e SC |
28355 | fi |
28356 | ||
28357 | wxUSE_UNIVERSAL="yes" | |
28358 | ||
28359 | if test "$wxUSE_NANOX" = "yes"; then | |
28360 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
28361 | 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" | |
28362 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
28363 | else | |
28364 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
28365 | fi | |
28366 | ||
a848cd7e SC |
28367 | TOOLKIT=X11 |
28368 | GUIDIST=X11_DIST | |
28369 | fi | |
28370 | ||
28371 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
28372 | if test "$wxUSE_UNICODE" = "yes"; then |
28373 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
28374 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
28375 | { (exit 1); exit 1; }; } | |
28376 | fi | |
28377 | ||
74b84332 VS |
28378 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
28379 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 28380 | |
74b84332 VS |
28381 | ac_find_includes= |
28382 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28383 | do | |
28384 | if test -f "$ac_dir/Xm/Xm.h"; then | |
28385 | ac_find_includes=$ac_dir | |
28386 | break | |
28387 | fi | |
28388 | done | |
a848cd7e | 28389 | |
74b84332 VS |
28390 | if test "$ac_find_includes" != "" ; then |
28391 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28392 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28393 | ||
28394 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28395 | ac_path_to_include="" | |
28396 | else | |
28397 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
28398 | result=$? | |
28399 | if test $result = 0; then | |
28400 | ac_path_to_include="" | |
28401 | else | |
28402 | ac_path_to_include=" -I$ac_find_includes" | |
28403 | fi | |
a848cd7e SC |
28404 | fi |
28405 | ||
74b84332 VS |
28406 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
28407 | else | |
e051b34e MW |
28408 | save_CFLAGS=$CFLAGS |
28409 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28410 | ||
74b84332 | 28411 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28412 | /* confdefs.h. */ |
28413 | _ACEOF | |
28414 | cat confdefs.h >>conftest.$ac_ext | |
28415 | cat >>conftest.$ac_ext <<_ACEOF | |
28416 | /* end confdefs.h. */ | |
28417 | ||
74b84332 VS |
28418 | #include <Xm/Xm.h> |
28419 | ||
a848cd7e SC |
28420 | int |
28421 | main () | |
28422 | { | |
28423 | ||
74b84332 VS |
28424 | int version; |
28425 | version = xmUseVersion; | |
28426 | ||
a848cd7e SC |
28427 | ; |
28428 | return 0; | |
28429 | } | |
28430 | _ACEOF | |
74b84332 VS |
28431 | rm -f conftest.$ac_objext |
28432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28433 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 28434 | ac_status=$? |
ac1cb8d3 VS |
28435 | grep -v '^ *+' conftest.er1 >conftest.err |
28436 | rm -f conftest.er1 | |
28437 | cat conftest.err >&5 | |
a848cd7e SC |
28438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28439 | (exit $ac_status); } && | |
6ebeb4c7 | 28440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28442 | (eval $ac_try) 2>&5 | |
28443 | ac_status=$? | |
28444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28445 | (exit $ac_status); }; } && | |
74b84332 | 28446 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28448 | (eval $ac_try) 2>&5 | |
28449 | ac_status=$? | |
28450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28451 | (exit $ac_status); }; }; then | |
74b84332 VS |
28452 | |
28453 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
28454 | echo "${ECHO_T}found in default search path" >&6 | |
28455 | COMPILED_X_PROGRAM=1 | |
28456 | ||
a848cd7e SC |
28457 | else |
28458 | echo "$as_me: failed program was:" >&5 | |
28459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28460 | ||
a848cd7e | 28461 | |
74b84332 VS |
28462 | echo "$as_me:$LINENO: result: no" >&5 |
28463 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
28464 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
28465 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 28466 | { (exit 1); exit 1; }; } |
a848cd7e | 28467 | |
a848cd7e | 28468 | |
a848cd7e | 28469 | fi |
74b84332 | 28470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
28471 | |
28472 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
28473 | fi |
28474 | ||
0ad5d837 VZ |
28475 | |
28476 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
28477 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
28478 | ||
0ad5d837 VZ |
28479 | ac_find_libraries= |
28480 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 28481 | do |
3eca31dc | 28482 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
28483 | if test -f "$ac_dir/libXm.$ac_extension"; then |
28484 | ac_find_libraries=$ac_dir | |
28485 | break 2 | |
a848cd7e | 28486 | fi |
74b84332 VS |
28487 | done |
28488 | done | |
a848cd7e | 28489 | |
0ad5d837 VZ |
28490 | |
28491 | if test "x$ac_find_libraries" != "x" ; then | |
28492 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
28493 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 28494 | |
74b84332 | 28495 | |
0ad5d837 | 28496 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 28497 | ac_path_to_link="" |
a848cd7e | 28498 | else |
0ad5d837 VZ |
28499 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28500 | result=$? | |
28501 | if test $result = 0; then | |
28502 | ac_path_to_link="" | |
28503 | else | |
28504 | ac_path_to_link=" -L$ac_find_libraries" | |
28505 | fi | |
74b84332 VS |
28506 | fi |
28507 | ||
0ad5d837 VZ |
28508 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
28509 | else | |
28510 | save_CFLAGS=$CFLAGS | |
28511 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
6f9cf1e6 MW |
28512 | save_LIBS="$LIBS" |
28513 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 28514 | |
0ad5d837 | 28515 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28516 | /* confdefs.h. */ |
28517 | _ACEOF | |
28518 | cat confdefs.h >>conftest.$ac_ext | |
28519 | cat >>conftest.$ac_ext <<_ACEOF | |
28520 | /* end confdefs.h. */ | |
28521 | ||
0ad5d837 | 28522 | #include <Xm/Xm.h> |
74b84332 | 28523 | |
a848cd7e SC |
28524 | int |
28525 | main () | |
28526 | { | |
74b84332 | 28527 | |
0ad5d837 VZ |
28528 | int version; |
28529 | version = xmUseVersion; | |
74b84332 | 28530 | |
a848cd7e SC |
28531 | ; |
28532 | return 0; | |
28533 | } | |
28534 | _ACEOF | |
0ad5d837 VZ |
28535 | rm -f conftest.$ac_objext conftest$ac_exeext |
28536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28537 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28538 | ac_status=$? |
ac1cb8d3 VS |
28539 | grep -v '^ *+' conftest.er1 >conftest.err |
28540 | rm -f conftest.er1 | |
28541 | cat conftest.err >&5 | |
a848cd7e SC |
28542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28543 | (exit $ac_status); } && | |
6ebeb4c7 | 28544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28546 | (eval $ac_try) 2>&5 | |
28547 | ac_status=$? | |
28548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28549 | (exit $ac_status); }; } && | |
0ad5d837 | 28550 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28552 | (eval $ac_try) 2>&5 | |
28553 | ac_status=$? | |
28554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28555 | (exit $ac_status); }; }; then | |
74b84332 | 28556 | |
0ad5d837 | 28557 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 28558 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 28559 | COMPILED_X_PROGRAM=1 |
74b84332 | 28560 | |
a848cd7e SC |
28561 | else |
28562 | echo "$as_me: failed program was:" >&5 | |
28563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28564 | ||
74b84332 | 28565 | |
6f9cf1e6 | 28566 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 28567 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 28568 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
28569 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
28570 | { (exit 1); exit 1; }; } | |
28571 | ||
28572 | ||
28573 | fi | |
0ad5d837 VZ |
28574 | rm -f conftest.err conftest.$ac_objext \ |
28575 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 28576 | |
0ad5d837 | 28577 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 28578 | LIBS="$save_LIBS" |
74b84332 VS |
28579 | fi |
28580 | ||
28581 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
28582 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
28583 | libp_link="" | |
28584 | libsm_ice_link="" | |
28585 | libs_found=0 | |
28586 | for libp in "" " -lXp"; do | |
28587 | if test "$libs_found" = "0"; then | |
28588 | for libsm_ice in "" " -lSM -lICE"; do | |
28589 | if test "$libs_found" = "0"; then | |
28590 | save_LIBS="$LIBS" | |
28591 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
28592 | save_CFLAGS=$CFLAGS | |
28593 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28594 | ||
28595 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28596 | /* confdefs.h. */ |
28597 | _ACEOF | |
28598 | cat confdefs.h >>conftest.$ac_ext | |
28599 | cat >>conftest.$ac_ext <<_ACEOF | |
28600 | /* end confdefs.h. */ | |
28601 | ||
74b84332 VS |
28602 | #include <Xm/Xm.h> |
28603 | #include <Xm/List.h> | |
28604 | ||
a848cd7e SC |
28605 | int |
28606 | main () | |
28607 | { | |
74b84332 VS |
28608 | |
28609 | XmString string = NULL; | |
28610 | Widget w = NULL; | |
28611 | int position = 0; | |
28612 | XmListAddItem(w, string, position); | |
28613 | ||
a848cd7e SC |
28614 | ; |
28615 | return 0; | |
28616 | } | |
28617 | _ACEOF | |
28618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28620 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28621 | ac_status=$? |
ac1cb8d3 VS |
28622 | grep -v '^ *+' conftest.er1 >conftest.err |
28623 | rm -f conftest.er1 | |
28624 | cat conftest.err >&5 | |
a848cd7e SC |
28625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28626 | (exit $ac_status); } && | |
6ebeb4c7 | 28627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28629 | (eval $ac_try) 2>&5 | |
28630 | ac_status=$? | |
28631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28632 | (exit $ac_status); }; } && | |
28633 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28635 | (eval $ac_try) 2>&5 | |
28636 | ac_status=$? | |
28637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28638 | (exit $ac_status); }; }; then | |
28639 | ||
28640 | libp_link="$libp" | |
28641 | libsm_ice_link="$libsm_ice" | |
28642 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
28643 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
28644 | libs_found=1 | |
28645 | ||
28646 | else | |
28647 | echo "$as_me: failed program was:" >&5 | |
28648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28649 | ||
28650 | ||
28651 | ||
28652 | fi | |
ac1cb8d3 VS |
28653 | rm -f conftest.err conftest.$ac_objext \ |
28654 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28655 | |
28656 | LIBS="$save_LIBS" | |
28657 | CFLAGS=$save_CFLAGS | |
28658 | fi | |
28659 | done | |
28660 | fi | |
28661 | done | |
28662 | ||
28663 | if test "$libs_found" = "0"; then | |
28664 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
28665 | echo "${ECHO_T}can't find the right libraries" >&6 | |
28666 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
28667 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
28668 | { (exit 1); exit 1; }; } | |
28669 | fi | |
28670 | ||
62fa8b3a MW |
28671 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
28672 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
28673 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
28674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28675 | else | |
28676 | ac_check_lib_save_LIBS=$LIBS | |
28677 | LIBS="-lSgm $LIBS" | |
28678 | cat >conftest.$ac_ext <<_ACEOF | |
28679 | /* confdefs.h. */ | |
28680 | _ACEOF | |
28681 | cat confdefs.h >>conftest.$ac_ext | |
28682 | cat >>conftest.$ac_ext <<_ACEOF | |
28683 | /* end confdefs.h. */ | |
28684 | ||
28685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28686 | #ifdef __cplusplus | |
28687 | extern "C" | |
28688 | #endif | |
28689 | /* We use char because int might match the return type of a gcc2 | |
28690 | builtin and then its argument prototype would still apply. */ | |
28691 | char SgCreateList (); | |
28692 | int | |
28693 | main () | |
28694 | { | |
28695 | SgCreateList (); | |
28696 | ; | |
28697 | return 0; | |
28698 | } | |
28699 | _ACEOF | |
28700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28702 | (eval $ac_link) 2>conftest.er1 | |
28703 | ac_status=$? | |
28704 | grep -v '^ *+' conftest.er1 >conftest.err | |
28705 | rm -f conftest.er1 | |
28706 | cat conftest.err >&5 | |
28707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28708 | (exit $ac_status); } && | |
28709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
28710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28711 | (eval $ac_try) 2>&5 | |
28712 | ac_status=$? | |
28713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28714 | (exit $ac_status); }; } && | |
28715 | { ac_try='test -s conftest$ac_exeext' | |
28716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28717 | (eval $ac_try) 2>&5 | |
28718 | ac_status=$? | |
28719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28720 | (exit $ac_status); }; }; then | |
28721 | ac_cv_lib_Sgm_SgCreateList=yes | |
28722 | else | |
28723 | echo "$as_me: failed program was:" >&5 | |
28724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28725 | ||
28726 | ac_cv_lib_Sgm_SgCreateList=no | |
28727 | fi | |
28728 | rm -f conftest.err conftest.$ac_objext \ | |
28729 | conftest$ac_exeext conftest.$ac_ext | |
28730 | LIBS=$ac_check_lib_save_LIBS | |
28731 | fi | |
28732 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
28733 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
28734 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
28735 | libsgm_link=" -lSgm" | |
28736 | fi | |
28737 | ||
28738 | ||
a848cd7e SC |
28739 | save_CFLAGS=$CFLAGS |
28740 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
0ad5d837 | 28741 | |
a848cd7e SC |
28742 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
28743 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
28744 | if test "${wx_cv_lib_motif2+set}" = set; then |
28745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28746 | else | |
28747 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
28748 | /* confdefs.h. */ |
28749 | _ACEOF | |
28750 | cat confdefs.h >>conftest.$ac_ext | |
28751 | cat >>conftest.$ac_ext <<_ACEOF | |
28752 | /* end confdefs.h. */ | |
28753 | ||
0ad5d837 | 28754 | #include <Xm/Xm.h> |
a848cd7e SC |
28755 | |
28756 | int | |
28757 | main () | |
28758 | { | |
28759 | ||
0ad5d837 VZ |
28760 | #if XmVersion < 2000 |
28761 | Not Motif 2 | |
28762 | #endif | |
a848cd7e SC |
28763 | |
28764 | ; | |
28765 | return 0; | |
28766 | } | |
28767 | _ACEOF | |
28768 | rm -f conftest.$ac_objext | |
28769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28771 | ac_status=$? |
ac1cb8d3 VS |
28772 | grep -v '^ *+' conftest.er1 >conftest.err |
28773 | rm -f conftest.er1 | |
28774 | cat conftest.err >&5 | |
a848cd7e SC |
28775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28776 | (exit $ac_status); } && | |
6ebeb4c7 | 28777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28779 | (eval $ac_try) 2>&5 | |
28780 | ac_status=$? | |
28781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28782 | (exit $ac_status); }; } && | |
28783 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28785 | (eval $ac_try) 2>&5 | |
28786 | ac_status=$? | |
28787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28788 | (exit $ac_status); }; }; then | |
0ad5d837 | 28789 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
28790 | else |
28791 | echo "$as_me: failed program was:" >&5 | |
28792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28793 | ||
0ad5d837 VZ |
28794 | wx_cv_lib_motif2="no" |
28795 | fi | |
28796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28797 | fi | |
28798 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
28799 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
28800 | if test "$wx_cv_lib_motif2" = "yes"; then | |
28801 | cat >>confdefs.h <<\_ACEOF | |
28802 | #define __WXMOTIF20__ 1 | |
28803 | _ACEOF | |
a848cd7e | 28804 | |
0ad5d837 VZ |
28805 | else |
28806 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
28807 | #define __WXMOTIF20__ 0 |
28808 | _ACEOF | |
28809 | ||
0ad5d837 | 28810 | fi |
2113bc77 MW |
28811 | |
28812 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
28813 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
28814 | if test "${wx_cv_lib_lesstif+set}" = set; then |
28815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28816 | else | |
28817 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
28818 | /* confdefs.h. */ |
28819 | _ACEOF | |
28820 | cat confdefs.h >>conftest.$ac_ext | |
28821 | cat >>conftest.$ac_ext <<_ACEOF | |
28822 | /* end confdefs.h. */ | |
28823 | ||
0ad5d837 | 28824 | #include <Xm/Xm.h> |
2113bc77 MW |
28825 | |
28826 | int | |
28827 | main () | |
28828 | { | |
28829 | ||
0ad5d837 VZ |
28830 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
28831 | Not Lesstif | |
28832 | #endif | |
2113bc77 MW |
28833 | |
28834 | ; | |
28835 | return 0; | |
28836 | } | |
28837 | _ACEOF | |
28838 | rm -f conftest.$ac_objext | |
28839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28840 | (eval $ac_compile) 2>conftest.er1 | |
28841 | ac_status=$? | |
28842 | grep -v '^ *+' conftest.er1 >conftest.err | |
28843 | rm -f conftest.er1 | |
28844 | cat conftest.err >&5 | |
28845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28846 | (exit $ac_status); } && | |
6ebeb4c7 | 28847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
28848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28849 | (eval $ac_try) 2>&5 | |
28850 | ac_status=$? | |
28851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28852 | (exit $ac_status); }; } && | |
28853 | { ac_try='test -s conftest.$ac_objext' | |
28854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28855 | (eval $ac_try) 2>&5 | |
28856 | ac_status=$? | |
28857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28858 | (exit $ac_status); }; }; then | |
0ad5d837 | 28859 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
28860 | else |
28861 | echo "$as_me: failed program was:" >&5 | |
28862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28863 | ||
0ad5d837 VZ |
28864 | wx_cv_lib_lesstif="no" |
28865 | fi | |
28866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 28867 | |
0ad5d837 VZ |
28868 | fi |
28869 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
28870 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
28871 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
28872 | cat >>confdefs.h <<\_ACEOF | |
28873 | #define __WXLESSTIF__ 1 | |
28874 | _ACEOF | |
28875 | ||
28876 | else | |
28877 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
28878 | #define __WXLESSTIF__ 0 |
28879 | _ACEOF | |
28880 | ||
0ad5d837 | 28881 | fi |
2113bc77 | 28882 | |
a848cd7e SC |
28883 | CFLAGS=$save_CFLAGS |
28884 | ||
62fa8b3a | 28885 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
28886 | TOOLKIT=MOTIF |
28887 | GUIDIST=MOTIF_DIST | |
28888 | fi | |
28889 | ||
74b84332 | 28890 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
28891 | if test "$wxUSE_LIBXPM" = "sys"; then |
28892 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
28893 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
28894 | ||
0ad5d837 VZ |
28895 | ac_find_libraries= |
28896 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 28897 | do |
3eca31dc | 28898 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
28899 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
28900 | ac_find_libraries=$ac_dir | |
28901 | break 2 | |
28902 | fi | |
28903 | done | |
28904 | done | |
28905 | ||
28906 | if test "$ac_find_libraries" != "" ; then | |
28907 | ||
0ad5d837 | 28908 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
28909 | ac_path_to_link="" |
28910 | else | |
0ad5d837 VZ |
28911 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28912 | result=$? | |
28913 | if test $result = 0; then | |
28914 | ac_path_to_link="" | |
28915 | else | |
28916 | ac_path_to_link=" -L$ac_find_libraries" | |
28917 | fi | |
a848cd7e SC |
28918 | fi |
28919 | ||
28920 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
28921 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
28922 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
28923 | |
28924 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
28925 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
28926 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
28927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28928 | else | |
28929 | ||
28930 | save_CFLAGS=$CFLAGS | |
28931 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
28932 | ||
28933 | cat >conftest.$ac_ext <<_ACEOF | |
28934 | /* confdefs.h. */ | |
28935 | _ACEOF | |
28936 | cat confdefs.h >>conftest.$ac_ext | |
28937 | cat >>conftest.$ac_ext <<_ACEOF | |
28938 | /* end confdefs.h. */ | |
28939 | ||
28940 | #include <X11/xpm.h> | |
28941 | ||
28942 | int | |
28943 | main () | |
28944 | { | |
28945 | ||
28946 | int version; | |
28947 | version = XpmLibraryVersion(); | |
28948 | ||
28949 | ; | |
28950 | return 0; | |
28951 | } | |
28952 | _ACEOF | |
28953 | rm -f conftest.$ac_objext | |
28954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28955 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28956 | ac_status=$? |
ac1cb8d3 VS |
28957 | grep -v '^ *+' conftest.er1 >conftest.err |
28958 | rm -f conftest.er1 | |
28959 | cat conftest.err >&5 | |
a848cd7e SC |
28960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28961 | (exit $ac_status); } && | |
6ebeb4c7 | 28962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28964 | (eval $ac_try) 2>&5 | |
28965 | ac_status=$? | |
28966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28967 | (exit $ac_status); }; } && | |
28968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28970 | (eval $ac_try) 2>&5 | |
28971 | ac_status=$? | |
28972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28973 | (exit $ac_status); }; }; then | |
28974 | wx_cv_x11_xpm_h=yes | |
28975 | else | |
28976 | echo "$as_me: failed program was:" >&5 | |
28977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28978 | ||
28979 | wx_cv_x11_xpm_h=no | |
28980 | ||
28981 | fi | |
ac1cb8d3 | 28982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28983 | |
28984 | CFLAGS=$save_CFLAGS | |
28985 | ||
28986 | ||
28987 | fi | |
28988 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
28989 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
28990 | ||
28991 | if test $wx_cv_x11_xpm_h = "yes"; then | |
28992 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
28993 | cat >>confdefs.h <<\_ACEOF | |
28994 | #define wxHAVE_LIB_XPM 1 | |
28995 | _ACEOF | |
28996 | ||
28997 | else | |
28998 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
28999 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
29000 | fi | |
29001 | fi | |
29002 | ||
29003 | fi | |
29004 | ||
29005 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
29006 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
29007 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
29008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29009 | else | |
29010 | ac_check_lib_save_LIBS=$LIBS | |
29011 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
29012 | cat >conftest.$ac_ext <<_ACEOF | |
29013 | /* confdefs.h. */ | |
29014 | _ACEOF | |
29015 | cat confdefs.h >>conftest.$ac_ext | |
29016 | cat >>conftest.$ac_ext <<_ACEOF | |
29017 | /* end confdefs.h. */ | |
29018 | ||
29019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29020 | #ifdef __cplusplus | |
29021 | extern "C" | |
29022 | #endif | |
29023 | /* We use char because int might match the return type of a gcc2 | |
29024 | builtin and then its argument prototype would still apply. */ | |
29025 | char XShapeQueryExtension (); | |
29026 | int | |
29027 | main () | |
29028 | { | |
29029 | XShapeQueryExtension (); | |
29030 | ; | |
29031 | return 0; | |
29032 | } | |
29033 | _ACEOF | |
29034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29036 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29037 | ac_status=$? |
ac1cb8d3 VS |
29038 | grep -v '^ *+' conftest.er1 >conftest.err |
29039 | rm -f conftest.er1 | |
29040 | cat conftest.err >&5 | |
a848cd7e SC |
29041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29042 | (exit $ac_status); } && | |
6ebeb4c7 | 29043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29045 | (eval $ac_try) 2>&5 | |
29046 | ac_status=$? | |
29047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29048 | (exit $ac_status); }; } && | |
29049 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29051 | (eval $ac_try) 2>&5 | |
29052 | ac_status=$? | |
29053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29054 | (exit $ac_status); }; }; then | |
29055 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
29056 | else | |
29057 | echo "$as_me: failed program was:" >&5 | |
29058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29059 | ||
29060 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
29061 | fi | |
ac1cb8d3 VS |
29062 | rm -f conftest.err conftest.$ac_objext \ |
29063 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29064 | LIBS=$ac_check_lib_save_LIBS |
29065 | fi | |
29066 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
29067 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
29068 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
29069 | ||
29070 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
29071 | wxHAVE_XEXT_LIB=1 | |
29072 | ||
29073 | fi | |
29074 | ||
29075 | ||
29076 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
29077 | save_CFLAGS="$CFLAGS" | |
29078 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29079 | ||
29080 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
29081 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
29082 | cat >conftest.$ac_ext <<_ACEOF | |
29083 | /* confdefs.h. */ | |
29084 | _ACEOF | |
29085 | cat confdefs.h >>conftest.$ac_ext | |
29086 | cat >>conftest.$ac_ext <<_ACEOF | |
29087 | /* end confdefs.h. */ | |
29088 | ||
29089 | #include <X11/Xlib.h> | |
29090 | #include <X11/extensions/shape.h> | |
29091 | ||
29092 | int | |
29093 | main () | |
29094 | { | |
29095 | ||
29096 | int dummy1, dummy2; | |
29097 | XShapeQueryExtension((Display*)NULL, | |
29098 | (int*)NULL, (int*)NULL); | |
29099 | ||
29100 | ; | |
29101 | return 0; | |
29102 | } | |
29103 | _ACEOF | |
29104 | rm -f conftest.$ac_objext | |
29105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29107 | ac_status=$? |
ac1cb8d3 VS |
29108 | grep -v '^ *+' conftest.er1 >conftest.err |
29109 | rm -f conftest.er1 | |
29110 | cat conftest.err >&5 | |
a848cd7e SC |
29111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29112 | (exit $ac_status); } && | |
6ebeb4c7 | 29113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29115 | (eval $ac_try) 2>&5 | |
29116 | ac_status=$? | |
29117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29118 | (exit $ac_status); }; } && | |
29119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29121 | (eval $ac_try) 2>&5 | |
29122 | ac_status=$? | |
29123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29124 | (exit $ac_status); }; }; then | |
29125 | ||
29126 | cat >>confdefs.h <<\_ACEOF | |
29127 | #define HAVE_XSHAPE 1 | |
29128 | _ACEOF | |
29129 | ||
29130 | echo "$as_me:$LINENO: result: found" >&5 | |
29131 | echo "${ECHO_T}found" >&6 | |
29132 | ||
29133 | else | |
29134 | echo "$as_me: failed program was:" >&5 | |
29135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29136 | ||
29137 | ||
29138 | echo "$as_me:$LINENO: result: not found" >&5 | |
29139 | echo "${ECHO_T}not found" >&6 | |
29140 | ||
29141 | fi | |
ac1cb8d3 | 29142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29143 | CFLAGS="$save_CFLAGS" |
29144 | ||
29145 | fi | |
29146 | fi | |
29147 | ||
29148 | if test "$wxUSE_MAC" = 1; then | |
29149 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
29150 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
29151 | if test "$GCC" = yes; then | |
29152 | echo "$as_me:$LINENO: result: gcc" >&5 | |
29153 | echo "${ECHO_T}gcc" >&6 | |
29154 | CPPFLAGS_PASCAL="-fpascal-strings" | |
29155 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
29156 | echo "$as_me:$LINENO: result: xlc" >&5 | |
29157 | echo "${ECHO_T}xlc" >&6 | |
29158 | CPPFLAGS_PASCAL="-qmacpstr" | |
29159 | else | |
29160 | echo "$as_me:$LINENO: result: none" >&5 | |
29161 | echo "${ECHO_T}none" >&6 | |
29162 | fi | |
29163 | ||
1e9e8aba DE |
29164 | if test "x$wxUSE_UNIX" = "xyes"; then |
29165 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
29166 | else | |
29167 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
29168 | fi | |
a848cd7e | 29169 | |
a848cd7e SC |
29170 | TOOLKIT=MAC |
29171 | GUIDIST=MACX_DIST | |
dd21ced8 | 29172 | WXBASEPORT="_carbon" |
a848cd7e SC |
29173 | fi |
29174 | ||
29175 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
29176 | TOOLKIT=COCOA |
29177 | GUIDIST=COCOA_DIST | |
29178 | fi | |
29179 | ||
29180 | if test "$wxUSE_PM" = 1; then | |
29181 | TOOLKIT=PM | |
de59c161 RD |
29182 | GUIDIST=PM_DIST |
29183 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
29184 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
29185 | if test "${wx_cv_spbcdata+set}" = set; then | |
29186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29187 | else | |
29188 | ||
29189 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
29190 | /* confdefs.h. */ |
29191 | _ACEOF | |
29192 | cat confdefs.h >>conftest.$ac_ext | |
29193 | cat >>conftest.$ac_ext <<_ACEOF | |
29194 | /* end confdefs.h. */ | |
29195 | ||
29196 | #define INCL_PM | |
29197 | #include <os2.h> | |
29198 | ||
29199 | int | |
29200 | main () | |
29201 | { | |
29202 | ||
29203 | SPBCDATA test; | |
29204 | ||
29205 | ; | |
29206 | return 0; | |
29207 | } | |
29208 | _ACEOF | |
29209 | rm -f conftest.$ac_objext | |
29210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29211 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 29212 | ac_status=$? |
ac1cb8d3 VS |
29213 | grep -v '^ *+' conftest.er1 >conftest.err |
29214 | rm -f conftest.er1 | |
29215 | cat conftest.err >&5 | |
de59c161 RD |
29216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29217 | (exit $ac_status); } && | |
6ebeb4c7 | 29218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29220 | (eval $ac_try) 2>&5 | |
29221 | ac_status=$? | |
29222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29223 | (exit $ac_status); }; } && | |
29224 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
29225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29226 | (eval $ac_try) 2>&5 | |
29227 | ac_status=$? | |
29228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29229 | (exit $ac_status); }; }; then | |
29230 | wx_cv_spbcdata=yes | |
29231 | else | |
29232 | echo "$as_me: failed program was:" >&5 | |
29233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29234 | ||
29235 | wx_cv_spbcdata=no | |
29236 | ||
29237 | fi | |
ac1cb8d3 | 29238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
29239 | |
29240 | ||
29241 | fi | |
29242 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
29243 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
29244 | ||
29245 | if test $wx_cv_spbcdata = "yes"; then | |
29246 | cat >>confdefs.h <<\_ACEOF | |
29247 | #define HAVE_SPBCDATA 1 | |
29248 | _ACEOF | |
29249 | ||
29250 | fi | |
a848cd7e SC |
29251 | fi |
29252 | ||
29253 | if test "$TOOLKIT" = "PM" ; then | |
29254 | TOOLKIT_DIR="os2" | |
29255 | else | |
29256 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
29257 | fi | |
29258 | ||
a848cd7e | 29259 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
29260 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
29261 | WIDGET_SET=univ | |
a848cd7e SC |
29262 | fi |
29263 | ||
29264 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
29265 | DISTDIR="wx\$(TOOLKIT)" | |
29266 | else | |
29267 | USE_GUI=0 | |
29268 | ||
29269 | TOOLKIT_DIR="base" | |
29270 | ||
29271 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 29272 | TOOLKIT="MSW" |
a848cd7e SC |
29273 | fi |
29274 | ||
a848cd7e SC |
29275 | GUIDIST="BASE_DIST" |
29276 | DISTDIR="wxBase" | |
29277 | fi | |
29278 | ||
29279 | ||
d12aef51 VZ |
29280 | if test "$wxUSE_GUI" = "yes"; then |
29281 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
29282 | ||
29283 | for ac_header in X11/Xlib.h | |
29284 | do | |
29285 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29291 | fi | |
29292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29293 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29294 | else | |
29295 | # Is the header compilable? | |
29296 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29298 | cat >conftest.$ac_ext <<_ACEOF | |
29299 | /* confdefs.h. */ | |
29300 | _ACEOF | |
29301 | cat confdefs.h >>conftest.$ac_ext | |
29302 | cat >>conftest.$ac_ext <<_ACEOF | |
29303 | /* end confdefs.h. */ | |
29304 | $ac_includes_default | |
29305 | #include <$ac_header> | |
29306 | _ACEOF | |
29307 | rm -f conftest.$ac_objext | |
29308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29309 | (eval $ac_compile) 2>conftest.er1 | |
29310 | ac_status=$? | |
29311 | grep -v '^ *+' conftest.er1 >conftest.err | |
29312 | rm -f conftest.er1 | |
29313 | cat conftest.err >&5 | |
29314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29315 | (exit $ac_status); } && | |
29316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29318 | (eval $ac_try) 2>&5 | |
29319 | ac_status=$? | |
29320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29321 | (exit $ac_status); }; } && | |
29322 | { ac_try='test -s conftest.$ac_objext' | |
29323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29324 | (eval $ac_try) 2>&5 | |
29325 | ac_status=$? | |
29326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29327 | (exit $ac_status); }; }; then | |
29328 | ac_header_compiler=yes | |
29329 | else | |
29330 | echo "$as_me: failed program was:" >&5 | |
29331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29332 | ||
29333 | ac_header_compiler=no | |
29334 | fi | |
29335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29336 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29337 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29338 | ||
29339 | # Is the header present? | |
29340 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29341 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29342 | cat >conftest.$ac_ext <<_ACEOF | |
29343 | /* confdefs.h. */ | |
29344 | _ACEOF | |
29345 | cat confdefs.h >>conftest.$ac_ext | |
29346 | cat >>conftest.$ac_ext <<_ACEOF | |
29347 | /* end confdefs.h. */ | |
29348 | #include <$ac_header> | |
29349 | _ACEOF | |
29350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29352 | ac_status=$? | |
29353 | grep -v '^ *+' conftest.er1 >conftest.err | |
29354 | rm -f conftest.er1 | |
29355 | cat conftest.err >&5 | |
29356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29357 | (exit $ac_status); } >/dev/null; then | |
29358 | if test -s conftest.err; then | |
29359 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29360 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
29361 | else | |
29362 | ac_cpp_err= | |
29363 | fi | |
29364 | else | |
29365 | ac_cpp_err=yes | |
29366 | fi | |
29367 | if test -z "$ac_cpp_err"; then | |
29368 | ac_header_preproc=yes | |
29369 | else | |
29370 | echo "$as_me: failed program was:" >&5 | |
29371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29372 | ||
29373 | ac_header_preproc=no | |
29374 | fi | |
29375 | rm -f conftest.err conftest.$ac_ext | |
29376 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29377 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29378 | ||
29379 | # So? What about this header? | |
29380 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
29381 | yes:no: ) | |
29382 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29383 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29384 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
29385 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
29386 | ac_header_preproc=yes | |
29387 | ;; | |
29388 | no:yes:* ) | |
29389 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29390 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29391 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29392 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29393 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
29394 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
29395 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
29396 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
29397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29398 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29399 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
29400 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
29401 | ( | |
29402 | cat <<\_ASBOX | |
29403 | ## ----------------------------------------- ## | |
29404 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29405 | ## ----------------------------------------- ## | |
29406 | _ASBOX | |
29407 | ) | | |
29408 | sed "s/^/$as_me: WARNING: /" >&2 | |
29409 | ;; | |
29410 | esac | |
29411 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29415 | else | |
29416 | eval "$as_ac_Header=\$ac_header_preproc" | |
29417 | fi | |
29418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29420 | ||
29421 | fi | |
29422 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29423 | cat >>confdefs.h <<_ACEOF | |
29424 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29425 | _ACEOF | |
29426 | ||
29427 | fi | |
29428 | ||
29429 | done | |
29430 | ||
29431 | ||
29432 | for ac_header in X11/XKBlib.h | |
29433 | do | |
29434 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29439 | else | |
29440 | cat >conftest.$ac_ext <<_ACEOF | |
29441 | /* confdefs.h. */ | |
29442 | _ACEOF | |
29443 | cat confdefs.h >>conftest.$ac_ext | |
29444 | cat >>conftest.$ac_ext <<_ACEOF | |
29445 | /* end confdefs.h. */ | |
29446 | ||
29447 | #if HAVE_X11_XLIB_H | |
29448 | #include <X11/Xlib.h> | |
29449 | #endif | |
29450 | ||
29451 | ||
29452 | #include <$ac_header> | |
29453 | _ACEOF | |
29454 | rm -f conftest.$ac_objext | |
29455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29456 | (eval $ac_compile) 2>conftest.er1 | |
29457 | ac_status=$? | |
29458 | grep -v '^ *+' conftest.er1 >conftest.err | |
29459 | rm -f conftest.er1 | |
29460 | cat conftest.err >&5 | |
29461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29462 | (exit $ac_status); } && | |
29463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
29464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29465 | (eval $ac_try) 2>&5 | |
29466 | ac_status=$? | |
29467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29468 | (exit $ac_status); }; } && | |
29469 | { ac_try='test -s conftest.$ac_objext' | |
29470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29471 | (eval $ac_try) 2>&5 | |
29472 | ac_status=$? | |
29473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29474 | (exit $ac_status); }; }; then | |
29475 | eval "$as_ac_Header=yes" | |
29476 | else | |
29477 | echo "$as_me: failed program was:" >&5 | |
29478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29479 | ||
29480 | eval "$as_ac_Header=no" | |
29481 | fi | |
29482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29483 | fi | |
29484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29487 | cat >>confdefs.h <<_ACEOF | |
29488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29489 | _ACEOF | |
29490 | ||
29491 | fi | |
29492 | ||
29493 | done | |
29494 | ||
29495 | fi | |
29496 | fi | |
29497 | ||
a848cd7e SC |
29498 | |
29499 | ||
29500 | IODBC_C_SRC="" | |
29501 | ||
29502 | ||
29503 | if test "$TOOLKIT" != "MSW" ; then | |
29504 | ||
29505 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
29506 | ||
29507 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29508 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29509 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29510 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29512 | fi | |
29513 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29514 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29515 | else | |
29516 | # Is the header compilable? | |
29517 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
29518 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
29519 | cat >conftest.$ac_ext <<_ACEOF | |
29520 | /* confdefs.h. */ | |
29521 | _ACEOF | |
29522 | cat confdefs.h >>conftest.$ac_ext | |
29523 | cat >>conftest.$ac_ext <<_ACEOF | |
29524 | /* end confdefs.h. */ | |
29525 | $ac_includes_default | |
29526 | #include <sql.h> | |
29527 | _ACEOF | |
29528 | rm -f conftest.$ac_objext | |
29529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29531 | ac_status=$? |
ac1cb8d3 VS |
29532 | grep -v '^ *+' conftest.er1 >conftest.err |
29533 | rm -f conftest.er1 | |
29534 | cat conftest.err >&5 | |
a848cd7e SC |
29535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29536 | (exit $ac_status); } && | |
6ebeb4c7 | 29537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29539 | (eval $ac_try) 2>&5 | |
29540 | ac_status=$? | |
29541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29542 | (exit $ac_status); }; } && | |
29543 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29545 | (eval $ac_try) 2>&5 | |
29546 | ac_status=$? | |
29547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29548 | (exit $ac_status); }; }; then | |
29549 | ac_header_compiler=yes | |
29550 | else | |
29551 | echo "$as_me: failed program was:" >&5 | |
29552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29553 | ||
29554 | ac_header_compiler=no | |
29555 | fi | |
ac1cb8d3 | 29556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29557 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29558 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29559 | ||
29560 | # Is the header present? | |
29561 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
29562 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
29563 | cat >conftest.$ac_ext <<_ACEOF | |
29564 | /* confdefs.h. */ | |
29565 | _ACEOF | |
29566 | cat confdefs.h >>conftest.$ac_ext | |
29567 | cat >>conftest.$ac_ext <<_ACEOF | |
29568 | /* end confdefs.h. */ | |
29569 | #include <sql.h> | |
29570 | _ACEOF | |
29571 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29573 | ac_status=$? | |
29574 | grep -v '^ *+' conftest.er1 >conftest.err | |
29575 | rm -f conftest.er1 | |
29576 | cat conftest.err >&5 | |
29577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29578 | (exit $ac_status); } >/dev/null; then | |
29579 | if test -s conftest.err; then | |
29580 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 29581 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
29582 | else |
29583 | ac_cpp_err= | |
29584 | fi | |
29585 | else | |
29586 | ac_cpp_err=yes | |
29587 | fi | |
29588 | if test -z "$ac_cpp_err"; then | |
29589 | ac_header_preproc=yes | |
29590 | else | |
29591 | echo "$as_me: failed program was:" >&5 | |
29592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29593 | ||
29594 | ac_header_preproc=no | |
29595 | fi | |
29596 | rm -f conftest.err conftest.$ac_ext | |
29597 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29598 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29599 | ||
29600 | # So? What about this header? | |
ac1cb8d3 VS |
29601 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
29602 | yes:no: ) | |
a848cd7e SC |
29603 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
29604 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
29605 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
29606 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
29607 | ac_header_preproc=yes | |
a848cd7e | 29608 | ;; |
ac1cb8d3 | 29609 | no:yes:* ) |
a848cd7e SC |
29610 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
29611 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
29612 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
29613 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
29614 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
29615 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
29616 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
29617 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
29618 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
29619 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
29620 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
29621 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
29622 | ( |
29623 | cat <<\_ASBOX | |
ac1cb8d3 VS |
29624 | ## ----------------------------------------- ## |
29625 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
29626 | ## ----------------------------------------- ## | |
a848cd7e SC |
29627 | _ASBOX |
29628 | ) | | |
29629 | sed "s/^/$as_me: WARNING: /" >&2 | |
29630 | ;; | |
29631 | esac | |
29632 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
29633 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
29634 | if test "${ac_cv_header_sql_h+set}" = set; then | |
29635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29636 | else | |
29637 | ac_cv_header_sql_h=$ac_header_preproc | |
29638 | fi | |
29639 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
29640 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
29641 | ||
29642 | fi | |
29643 | if test $ac_cv_header_sql_h = yes; then | |
29644 | found_sql_h=1 | |
29645 | fi | |
29646 | ||
29647 | ||
29648 | if test "x$found_sql_h" = "x1" ; then | |
29649 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
29650 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
29651 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
29652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29653 | else | |
29654 | ac_check_lib_save_LIBS=$LIBS | |
29655 | LIBS="-liodbc $LIBS" | |
29656 | cat >conftest.$ac_ext <<_ACEOF | |
29657 | /* confdefs.h. */ | |
29658 | _ACEOF | |
29659 | cat confdefs.h >>conftest.$ac_ext | |
29660 | cat >>conftest.$ac_ext <<_ACEOF | |
29661 | /* end confdefs.h. */ | |
29662 | ||
29663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29664 | #ifdef __cplusplus | |
29665 | extern "C" | |
29666 | #endif | |
29667 | /* We use char because int might match the return type of a gcc2 | |
29668 | builtin and then its argument prototype would still apply. */ | |
29669 | char SQLAllocEnv (); | |
29670 | int | |
29671 | main () | |
29672 | { | |
29673 | SQLAllocEnv (); | |
29674 | ; | |
29675 | return 0; | |
29676 | } | |
29677 | _ACEOF | |
29678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29680 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29681 | ac_status=$? |
ac1cb8d3 VS |
29682 | grep -v '^ *+' conftest.er1 >conftest.err |
29683 | rm -f conftest.er1 | |
29684 | cat conftest.err >&5 | |
a848cd7e SC |
29685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29686 | (exit $ac_status); } && | |
6ebeb4c7 | 29687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29689 | (eval $ac_try) 2>&5 | |
29690 | ac_status=$? | |
29691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29692 | (exit $ac_status); }; } && | |
29693 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29695 | (eval $ac_try) 2>&5 | |
29696 | ac_status=$? | |
29697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29698 | (exit $ac_status); }; }; then | |
29699 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
29700 | else | |
29701 | echo "$as_me: failed program was:" >&5 | |
29702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29703 | ||
29704 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
29705 | fi | |
ac1cb8d3 VS |
29706 | rm -f conftest.err conftest.$ac_objext \ |
29707 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29708 | LIBS=$ac_check_lib_save_LIBS |
29709 | fi | |
29710 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
29711 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
29712 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
29713 | ODBC_LINK=" -liodbc" | |
29714 | else | |
29715 | ||
29716 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
29717 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
29718 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
29719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29720 | else | |
29721 | ac_check_lib_save_LIBS=$LIBS | |
29722 | LIBS="-lunixodbc $LIBS" | |
29723 | cat >conftest.$ac_ext <<_ACEOF | |
29724 | /* confdefs.h. */ | |
29725 | _ACEOF | |
29726 | cat confdefs.h >>conftest.$ac_ext | |
29727 | cat >>conftest.$ac_ext <<_ACEOF | |
29728 | /* end confdefs.h. */ | |
29729 | ||
29730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29731 | #ifdef __cplusplus | |
29732 | extern "C" | |
29733 | #endif | |
29734 | /* We use char because int might match the return type of a gcc2 | |
29735 | builtin and then its argument prototype would still apply. */ | |
29736 | char SQLAllocEnv (); | |
29737 | int | |
29738 | main () | |
29739 | { | |
29740 | SQLAllocEnv (); | |
29741 | ; | |
29742 | return 0; | |
29743 | } | |
29744 | _ACEOF | |
29745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29747 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29748 | ac_status=$? |
ac1cb8d3 VS |
29749 | grep -v '^ *+' conftest.er1 >conftest.err |
29750 | rm -f conftest.er1 | |
29751 | cat conftest.err >&5 | |
a848cd7e SC |
29752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29753 | (exit $ac_status); } && | |
6ebeb4c7 | 29754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29756 | (eval $ac_try) 2>&5 | |
29757 | ac_status=$? | |
29758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29759 | (exit $ac_status); }; } && | |
29760 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29762 | (eval $ac_try) 2>&5 | |
29763 | ac_status=$? | |
29764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29765 | (exit $ac_status); }; }; then | |
29766 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
29767 | else | |
29768 | echo "$as_me: failed program was:" >&5 | |
29769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29770 | ||
29771 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
29772 | fi | |
ac1cb8d3 VS |
29773 | rm -f conftest.err conftest.$ac_objext \ |
29774 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29775 | LIBS=$ac_check_lib_save_LIBS |
29776 | fi | |
29777 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
29778 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
29779 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
29780 | ODBC_LINK=" -lunixodbc" | |
29781 | else | |
29782 | ||
29783 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
29784 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
29785 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
29786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29787 | else | |
29788 | ac_check_lib_save_LIBS=$LIBS | |
29789 | LIBS="-lodbc $LIBS" | |
29790 | cat >conftest.$ac_ext <<_ACEOF | |
29791 | /* confdefs.h. */ | |
29792 | _ACEOF | |
29793 | cat confdefs.h >>conftest.$ac_ext | |
29794 | cat >>conftest.$ac_ext <<_ACEOF | |
29795 | /* end confdefs.h. */ | |
29796 | ||
29797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29798 | #ifdef __cplusplus | |
29799 | extern "C" | |
29800 | #endif | |
29801 | /* We use char because int might match the return type of a gcc2 | |
29802 | builtin and then its argument prototype would still apply. */ | |
29803 | char SQLAllocEnv (); | |
29804 | int | |
29805 | main () | |
29806 | { | |
29807 | SQLAllocEnv (); | |
29808 | ; | |
29809 | return 0; | |
29810 | } | |
29811 | _ACEOF | |
29812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29814 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29815 | ac_status=$? |
ac1cb8d3 VS |
29816 | grep -v '^ *+' conftest.er1 >conftest.err |
29817 | rm -f conftest.er1 | |
29818 | cat conftest.err >&5 | |
a848cd7e SC |
29819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29820 | (exit $ac_status); } && | |
6ebeb4c7 | 29821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29823 | (eval $ac_try) 2>&5 | |
29824 | ac_status=$? | |
29825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29826 | (exit $ac_status); }; } && | |
29827 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29829 | (eval $ac_try) 2>&5 | |
29830 | ac_status=$? | |
29831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29832 | (exit $ac_status); }; }; then | |
29833 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
29834 | else | |
29835 | echo "$as_me: failed program was:" >&5 | |
29836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29837 | ||
29838 | ac_cv_lib_odbc_SQLAllocEnv=no | |
29839 | fi | |
ac1cb8d3 VS |
29840 | rm -f conftest.err conftest.$ac_objext \ |
29841 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29842 | LIBS=$ac_check_lib_save_LIBS |
29843 | fi | |
29844 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
29845 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
29846 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
29847 | ODBC_LINK=" -lodbc" | |
29848 | fi | |
29849 | ||
29850 | ||
29851 | fi | |
29852 | ||
29853 | ||
29854 | fi | |
29855 | ||
29856 | fi | |
29857 | if test "x$ODBC_LINK" = "x" ; then | |
29858 | if test "$wxUSE_ODBC" = "sys" ; then | |
29859 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
29860 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
29861 | { (exit 1); exit 1; }; } | |
29862 | else | |
29863 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
29864 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
29865 | wxUSE_ODBC=builtin | |
29866 | fi | |
29867 | else | |
29868 | wxUSE_ODBC=sys | |
29869 | fi | |
29870 | fi | |
a848cd7e | 29871 | |
2da0c077 RD |
29872 | if test "$wxUSE_ODBC" = "builtin" ; then |
29873 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29874 | #define wxUSE_BUILTIN_IODBC 1 |
29875 | _ACEOF | |
29876 | ||
a848cd7e SC |
29877 | fi |
29878 | fi | |
29879 | ||
2da0c077 RD |
29880 | if test "$wxUSE_ODBC" != "no" ; then |
29881 | cat >>confdefs.h <<\_ACEOF | |
29882 | #define wxUSE_ODBC 1 | |
29883 | _ACEOF | |
29884 | ||
29885 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
29886 | ||
29887 | WXODBCFLAG="-D_IODBC_" | |
29888 | fi | |
a848cd7e | 29889 | |
01cb68df | 29890 | |
a848cd7e | 29891 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 29892 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
29893 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
29894 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
29895 | ||
0ad5d837 VZ |
29896 | ac_find_libraries= |
29897 | for ac_dir in $SEARCH_LIB; | |
29898 | do | |
29899 | for ac_extension in a so sl dylib dll.a; do | |
29900 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
29901 | ac_find_libraries=$ac_dir | |
29902 | break 2 | |
29903 | fi | |
29904 | done | |
29905 | done | |
29906 | ||
a848cd7e SC |
29907 | if test "$ac_find_libraries" != "" ; then |
29908 | ||
0ad5d837 | 29909 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
29910 | ac_path_to_link="" |
29911 | else | |
0ad5d837 VZ |
29912 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
29913 | result=$? | |
29914 | if test $result = 0; then | |
29915 | ac_path_to_link="" | |
29916 | else | |
29917 | ac_path_to_link=" -L$ac_find_libraries" | |
29918 | fi | |
a848cd7e SC |
29919 | fi |
29920 | ||
29921 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
29922 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
29923 | fi | |
29924 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
29925 | echo "$as_me:$LINENO: result: yes" >&5 | |
29926 | echo "${ECHO_T}yes" >&6 | |
29927 | ||
29928 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
29929 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
29930 | ||
0ad5d837 VZ |
29931 | ac_find_libraries= |
29932 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 29933 | do |
3eca31dc | 29934 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29935 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
29936 | ac_find_libraries=$ac_dir | |
29937 | break 2 | |
29938 | fi | |
29939 | done | |
29940 | done | |
29941 | ||
29942 | if test "$ac_find_libraries" != "" ; then | |
29943 | echo "$as_me:$LINENO: result: yes" >&5 | |
29944 | echo "${ECHO_T}yes" >&6 | |
29945 | ||
29946 | for ac_header in X11/extensions/xf86vmode.h | |
29947 | do | |
29948 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29953 | else | |
29954 | cat >conftest.$ac_ext <<_ACEOF | |
29955 | /* confdefs.h. */ | |
29956 | _ACEOF | |
29957 | cat confdefs.h >>conftest.$ac_ext | |
29958 | cat >>conftest.$ac_ext <<_ACEOF | |
29959 | /* end confdefs.h. */ | |
29960 | ||
29961 | #if HAVE_X11_XLIB_H | |
29962 | #include <X11/Xlib.h> | |
29963 | #endif | |
29964 | ||
29965 | ||
29966 | #include <$ac_header> | |
29967 | _ACEOF | |
29968 | rm -f conftest.$ac_objext | |
29969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29971 | ac_status=$? |
ac1cb8d3 VS |
29972 | grep -v '^ *+' conftest.er1 >conftest.err |
29973 | rm -f conftest.er1 | |
29974 | cat conftest.err >&5 | |
a848cd7e SC |
29975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29976 | (exit $ac_status); } && | |
6ebeb4c7 | 29977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29979 | (eval $ac_try) 2>&5 | |
29980 | ac_status=$? | |
29981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29982 | (exit $ac_status); }; } && | |
29983 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29985 | (eval $ac_try) 2>&5 | |
29986 | ac_status=$? | |
29987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29988 | (exit $ac_status); }; }; then | |
29989 | eval "$as_ac_Header=yes" | |
29990 | else | |
29991 | echo "$as_me: failed program was:" >&5 | |
29992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29993 | ||
29994 | eval "$as_ac_Header=no" | |
29995 | fi | |
ac1cb8d3 | 29996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29997 | fi |
29998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30001 | cat >>confdefs.h <<_ACEOF | |
30002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30003 | _ACEOF | |
30004 | ||
30005 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
30006 | ||
30007 | fi | |
30008 | ||
30009 | done | |
30010 | ||
30011 | else | |
30012 | echo "$as_me:$LINENO: result: no" >&5 | |
30013 | echo "${ECHO_T}no" >&6 | |
30014 | fi | |
30015 | ||
30016 | else | |
30017 | echo "$as_me:$LINENO: result: no" >&5 | |
30018 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
30019 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
30020 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
30021 | wxUSE_DISPLAY="no" |
30022 | fi | |
01cb68df RG |
30023 | elif test "$wxUSE_MSW" = 1; then |
30024 | ||
30025 | ||
30026 | for ac_header in multimon.h ddraw.h | |
30027 | do | |
30028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 30029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
30030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
30031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 30033 | else |
5294a27e | 30034 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
30035 | /* confdefs.h. */ |
30036 | _ACEOF | |
30037 | cat confdefs.h >>conftest.$ac_ext | |
30038 | cat >>conftest.$ac_ext <<_ACEOF | |
30039 | /* end confdefs.h. */ | |
5294a27e VZ |
30040 | #include <windows.h> |
30041 | ||
01cb68df RG |
30042 | #include <$ac_header> |
30043 | _ACEOF | |
30044 | rm -f conftest.$ac_objext | |
30045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30046 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 30047 | ac_status=$? |
ac1cb8d3 VS |
30048 | grep -v '^ *+' conftest.er1 >conftest.err |
30049 | rm -f conftest.er1 | |
30050 | cat conftest.err >&5 | |
01cb68df RG |
30051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30052 | (exit $ac_status); } && | |
6ebeb4c7 | 30053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30055 | (eval $ac_try) 2>&5 | |
30056 | ac_status=$? | |
30057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30058 | (exit $ac_status); }; } && | |
30059 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
30060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30061 | (eval $ac_try) 2>&5 | |
30062 | ac_status=$? | |
30063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30064 | (exit $ac_status); }; }; then | |
5294a27e | 30065 | eval "$as_ac_Header=yes" |
01cb68df RG |
30066 | else |
30067 | echo "$as_me: failed program was:" >&5 | |
30068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30069 | ||
5294a27e | 30070 | eval "$as_ac_Header=no" |
01cb68df | 30071 | fi |
ac1cb8d3 | 30072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
30073 | fi |
30074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
30076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
30077 | cat >>confdefs.h <<_ACEOF | |
30078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30079 | _ACEOF | |
30080 | ||
30081 | else | |
30082 | ||
5294a27e VZ |
30083 | wxUSE_DISPLAY="no" |
30084 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 30085 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
30086 | |
30087 | fi | |
30088 | ||
30089 | done | |
30090 | ||
a848cd7e SC |
30091 | fi |
30092 | fi | |
30093 | ||
30094 | ||
30095 | USE_OPENGL=0 | |
30096 | if test "$wxUSE_OPENGL" = "yes"; then | |
30097 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
30098 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
30099 | elif test "$wxUSE_MSW" = 1; then | |
30100 | OPENGL_LIBS="-lopengl32 -lglu32" | |
30101 | else | |
30102 | ||
30103 | ||
30104 | ac_find_includes= | |
30105 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30106 | do | |
30107 | if test -f "$ac_dir/GL/gl.h"; then | |
30108 | ac_find_includes=$ac_dir | |
30109 | break | |
30110 | fi | |
30111 | done | |
30112 | ||
30113 | if test "$ac_find_includes" != "" ; then | |
30114 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30115 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30116 | ||
30117 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30118 | ac_path_to_include="" | |
30119 | else | |
30120 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
30121 | result=$? | |
30122 | if test $result = 0; then | |
30123 | ac_path_to_include="" | |
30124 | else | |
30125 | ac_path_to_include=" -I$ac_find_includes" | |
30126 | fi | |
30127 | fi | |
30128 | ||
30129 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
30130 | fi | |
30131 | ||
30132 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30133 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30134 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30135 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30137 | fi | |
30138 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30139 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30140 | else | |
30141 | # Is the header compilable? | |
30142 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
30143 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
30144 | cat >conftest.$ac_ext <<_ACEOF | |
30145 | /* confdefs.h. */ | |
30146 | _ACEOF | |
30147 | cat confdefs.h >>conftest.$ac_ext | |
30148 | cat >>conftest.$ac_ext <<_ACEOF | |
30149 | /* end confdefs.h. */ | |
30150 | $ac_includes_default | |
30151 | #include <GL/gl.h> | |
30152 | _ACEOF | |
30153 | rm -f conftest.$ac_objext | |
30154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30156 | ac_status=$? |
ac1cb8d3 VS |
30157 | grep -v '^ *+' conftest.er1 >conftest.err |
30158 | rm -f conftest.er1 | |
30159 | cat conftest.err >&5 | |
a848cd7e SC |
30160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30161 | (exit $ac_status); } && | |
6ebeb4c7 | 30162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30164 | (eval $ac_try) 2>&5 | |
30165 | ac_status=$? | |
30166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30167 | (exit $ac_status); }; } && | |
30168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30170 | (eval $ac_try) 2>&5 | |
30171 | ac_status=$? | |
30172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30173 | (exit $ac_status); }; }; then | |
30174 | ac_header_compiler=yes | |
30175 | else | |
30176 | echo "$as_me: failed program was:" >&5 | |
30177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30178 | ||
30179 | ac_header_compiler=no | |
30180 | fi | |
ac1cb8d3 | 30181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30184 | ||
30185 | # Is the header present? | |
30186 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
30187 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
30188 | cat >conftest.$ac_ext <<_ACEOF | |
30189 | /* confdefs.h. */ | |
30190 | _ACEOF | |
30191 | cat confdefs.h >>conftest.$ac_ext | |
30192 | cat >>conftest.$ac_ext <<_ACEOF | |
30193 | /* end confdefs.h. */ | |
30194 | #include <GL/gl.h> | |
30195 | _ACEOF | |
30196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30198 | ac_status=$? | |
30199 | grep -v '^ *+' conftest.er1 >conftest.err | |
30200 | rm -f conftest.er1 | |
30201 | cat conftest.err >&5 | |
30202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30203 | (exit $ac_status); } >/dev/null; then | |
30204 | if test -s conftest.err; then | |
30205 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30206 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30207 | else |
30208 | ac_cpp_err= | |
30209 | fi | |
30210 | else | |
30211 | ac_cpp_err=yes | |
30212 | fi | |
30213 | if test -z "$ac_cpp_err"; then | |
30214 | ac_header_preproc=yes | |
30215 | else | |
30216 | echo "$as_me: failed program was:" >&5 | |
30217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30218 | ||
30219 | ac_header_preproc=no | |
30220 | fi | |
30221 | rm -f conftest.err conftest.$ac_ext | |
30222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30224 | ||
30225 | # So? What about this header? | |
ac1cb8d3 VS |
30226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30227 | yes:no: ) | |
a848cd7e SC |
30228 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30229 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30230 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
30231 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
30232 | ac_header_preproc=yes | |
a848cd7e | 30233 | ;; |
ac1cb8d3 | 30234 | no:yes:* ) |
a848cd7e SC |
30235 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
30236 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30237 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
30238 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
30239 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
30240 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
30241 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30242 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30243 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
30244 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30245 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
30246 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30247 | ( |
30248 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30249 | ## ----------------------------------------- ## |
30250 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30251 | ## ----------------------------------------- ## | |
a848cd7e SC |
30252 | _ASBOX |
30253 | ) | | |
30254 | sed "s/^/$as_me: WARNING: /" >&2 | |
30255 | ;; | |
30256 | esac | |
30257 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30258 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30259 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30261 | else | |
30262 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
30263 | fi | |
30264 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30265 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30266 | ||
30267 | fi | |
30268 | if test $ac_cv_header_GL_gl_h = yes; then | |
30269 | ||
30270 | found_gl=0 | |
30271 | ||
30272 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
30273 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
30274 | ||
0ad5d837 VZ |
30275 | ac_find_libraries= |
30276 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30277 | do |
3eca31dc | 30278 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30279 | if test -f "$ac_dir/libGL.$ac_extension"; then |
30280 | ac_find_libraries=$ac_dir | |
30281 | break 2 | |
30282 | fi | |
30283 | done | |
30284 | done | |
30285 | ||
30286 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
30287 | echo "$as_me:$LINENO: result: yes" >&5 |
30288 | echo "${ECHO_T}yes" >&6 | |
30289 | ||
a848cd7e | 30290 | |
0ad5d837 | 30291 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30292 | ac_path_to_link="" |
30293 | else | |
0ad5d837 VZ |
30294 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30295 | result=$? | |
30296 | if test $result = 0; then | |
30297 | ac_path_to_link="" | |
30298 | else | |
30299 | ac_path_to_link=" -L$ac_find_libraries" | |
30300 | fi | |
a848cd7e SC |
30301 | fi |
30302 | ||
30303 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30304 | LDFLAGS_GL="$ac_path_to_link" | |
30305 | fi | |
30306 | ||
69120ee4 VZ |
30307 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
30308 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 30309 | |
0ad5d837 VZ |
30310 | ac_find_libraries= |
30311 | for ac_dir in $SEARCH_LIB; | |
30312 | do | |
30313 | for ac_extension in a so sl dylib dll.a; do | |
30314 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
30315 | ac_find_libraries=$ac_dir | |
30316 | break 2 | |
30317 | fi | |
30318 | done | |
30319 | done | |
30320 | ||
a848cd7e SC |
30321 | if test "$ac_find_libraries" != "" ; then |
30322 | ||
0ad5d837 | 30323 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30324 | ac_path_to_link="" |
30325 | else | |
0ad5d837 VZ |
30326 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30327 | result=$? | |
30328 | if test $result = 0; then | |
30329 | ac_path_to_link="" | |
30330 | else | |
30331 | ac_path_to_link=" -L$ac_find_libraries" | |
30332 | fi | |
a848cd7e SC |
30333 | fi |
30334 | ||
30335 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
30336 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
30337 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
30338 | fi | |
30339 | ||
30340 | found_gl=1 | |
30341 | OPENGL_LIBS="-lGL -lGLU" | |
30342 | echo "$as_me:$LINENO: result: yes" >&5 | |
30343 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
30344 | else |
30345 | echo "$as_me:$LINENO: result: no" >&5 | |
30346 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 30347 | fi |
69120ee4 VZ |
30348 | else |
30349 | echo "$as_me:$LINENO: result: no" >&5 | |
30350 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
30351 | fi |
30352 | ||
30353 | if test "$found_gl" != 1; then | |
a848cd7e SC |
30354 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
30355 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
30356 | ||
0ad5d837 VZ |
30357 | ac_find_libraries= |
30358 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30359 | do |
3eca31dc | 30360 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30361 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
30362 | ac_find_libraries=$ac_dir | |
30363 | break 2 | |
30364 | fi | |
30365 | done | |
30366 | done | |
30367 | ||
30368 | if test "$ac_find_libraries" != "" ; then | |
30369 | ||
0ad5d837 | 30370 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30371 | ac_path_to_link="" |
30372 | else | |
0ad5d837 VZ |
30373 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30374 | result=$? | |
30375 | if test $result = 0; then | |
30376 | ac_path_to_link="" | |
30377 | else | |
30378 | ac_path_to_link=" -L$ac_find_libraries" | |
30379 | fi | |
a848cd7e SC |
30380 | fi |
30381 | ||
30382 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
30383 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
30384 | echo "$as_me:$LINENO: result: yes" >&5 | |
30385 | echo "${ECHO_T}yes" >&6 | |
30386 | else | |
30387 | echo "$as_me:$LINENO: result: no" >&5 | |
30388 | echo "${ECHO_T}no" >&6 | |
30389 | fi | |
30390 | fi | |
30391 | ||
30392 | fi | |
30393 | ||
30394 | ||
30395 | ||
30396 | if test "x$OPENGL_LIBS" = "x"; then | |
30397 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
30398 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
30399 | { (exit 1); exit 1; }; } | |
30400 | fi | |
30401 | fi | |
30402 | ||
30403 | if test "$wxUSE_OPENGL" = "yes"; then | |
30404 | USE_OPENGL=1 | |
30405 | cat >>confdefs.h <<\_ACEOF | |
30406 | #define wxUSE_OPENGL 1 | |
30407 | _ACEOF | |
30408 | ||
30409 | cat >>confdefs.h <<\_ACEOF | |
30410 | #define wxUSE_GLCANVAS 1 | |
30411 | _ACEOF | |
30412 | ||
30413 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
30414 | fi | |
30415 | fi | |
30416 | ||
a848cd7e SC |
30417 | |
30418 | if test -n "$TOOLKIT" ; then | |
30419 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
30420 | fi | |
30421 | ||
a848cd7e SC |
30422 | |
30423 | ||
30424 | if test "$wxUSE_SHARED" = "yes"; then | |
30425 | case "${host}" in | |
30426 | *-pc-msdosdjgpp ) | |
30427 | wxUSE_SHARED=no | |
30428 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
30429 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
30430 | ;; | |
30431 | esac | |
30432 | fi | |
30433 | ||
a848cd7e | 30434 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
30435 | |
30436 | ||
30437 | found_versioning=no | |
30438 | ||
30439 | ||
30440 | if test $found_versioning = no ; then | |
30441 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
30442 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
30443 | if test "${wx_cv_version_script+set}" = set; then | |
30444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30445 | else | |
30446 | ||
30447 | echo "VER_1 { *; };" >conftest.sym | |
30448 | echo "int main() { return 0; }" >conftest.cpp | |
30449 | ||
30450 | if { ac_try=' | |
30451 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30452 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
30453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30454 | (eval $ac_try) 2>&5 | |
30455 | ac_status=$? | |
30456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30457 | (exit $ac_status); }; } ; then | |
30458 | if test -s conftest.stderr ; then | |
30459 | wx_cv_version_script=no | |
30460 | else | |
30461 | wx_cv_version_script=yes | |
30462 | fi | |
30463 | else | |
30464 | wx_cv_version_script=no | |
30465 | fi | |
e5d4b470 MW |
30466 | |
30467 | if test $wx_cv_version_script = yes | |
30468 | then | |
30469 | echo "struct B { virtual ~B() { } }; \ | |
30470 | struct D : public B { }; \ | |
30471 | void F() { D d; }" > conftest.cpp | |
30472 | ||
30473 | if { ac_try=' | |
30474 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30475 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
30476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30477 | (eval $ac_try) 2>&5 | |
30478 | ac_status=$? | |
30479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30480 | (exit $ac_status); }; } && | |
30481 | { ac_try=' | |
30482 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30483 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
30484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30485 | (eval $ac_try) 2>&5 | |
30486 | ac_status=$? | |
30487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30488 | (exit $ac_status); }; } | |
30489 | then | |
30490 | if { ac_try=' | |
30491 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
30492 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
30493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30494 | (eval $ac_try) 2>&5 | |
30495 | ac_status=$? | |
30496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30497 | (exit $ac_status); }; } | |
30498 | then | |
30499 | wx_cv_version_script=yes | |
30500 | else | |
30501 | wx_cv_version_script=no | |
30502 | fi | |
30503 | fi | |
30504 | fi | |
30505 | ||
a848cd7e | 30506 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 30507 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
30508 | |
30509 | fi | |
30510 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
30511 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
30512 | if test $wx_cv_version_script = yes ; then | |
30513 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
30514 | fi | |
30515 | fi | |
30516 | ||
30517 | ||
30518 | case "${host}" in | |
30519 | *-*-linux* | *-*-gnu* ) | |
30520 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30521 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 30522 | ;; |
a848cd7e SC |
30523 | |
30524 | *-*-solaris2* ) | |
30525 | if test "$GCC" = yes ; then | |
30526 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
30527 | ||
30528 | saveLdflags="$LDFLAGS" | |
30529 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
30530 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
30531 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
30532 | cat >conftest.$ac_ext <<_ACEOF | |
30533 | /* confdefs.h. */ | |
30534 | _ACEOF | |
30535 | cat confdefs.h >>conftest.$ac_ext | |
30536 | cat >>conftest.$ac_ext <<_ACEOF | |
30537 | /* end confdefs.h. */ | |
30538 | ||
30539 | int | |
30540 | main () | |
30541 | { | |
30542 | ||
30543 | ; | |
30544 | return 0; | |
30545 | } | |
30546 | _ACEOF | |
30547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30549 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30550 | ac_status=$? |
ac1cb8d3 VS |
30551 | grep -v '^ *+' conftest.er1 >conftest.err |
30552 | rm -f conftest.er1 | |
30553 | cat conftest.err >&5 | |
a848cd7e SC |
30554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30555 | (exit $ac_status); } && | |
6ebeb4c7 | 30556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30558 | (eval $ac_try) 2>&5 | |
30559 | ac_status=$? | |
30560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30561 | (exit $ac_status); }; } && | |
30562 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30564 | (eval $ac_try) 2>&5 | |
30565 | ac_status=$? | |
30566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30567 | (exit $ac_status); }; }; then | |
30568 | ||
30569 | echo "$as_me:$LINENO: result: yes" >&5 | |
30570 | echo "${ECHO_T}yes" >&6 | |
30571 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 30572 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
30573 | |
30574 | else | |
30575 | echo "$as_me: failed program was:" >&5 | |
30576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30577 | ||
30578 | ||
30579 | echo "$as_me:$LINENO: result: no" >&5 | |
30580 | echo "${ECHO_T}no" >&6 | |
30581 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
30582 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
30583 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
30584 | cat >conftest.$ac_ext <<_ACEOF | |
30585 | /* confdefs.h. */ | |
30586 | _ACEOF | |
30587 | cat confdefs.h >>conftest.$ac_ext | |
30588 | cat >>conftest.$ac_ext <<_ACEOF | |
30589 | /* end confdefs.h. */ | |
30590 | ||
30591 | int | |
30592 | main () | |
30593 | { | |
30594 | ||
30595 | ; | |
30596 | return 0; | |
30597 | } | |
30598 | _ACEOF | |
30599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30601 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30602 | ac_status=$? |
ac1cb8d3 VS |
30603 | grep -v '^ *+' conftest.er1 >conftest.err |
30604 | rm -f conftest.er1 | |
30605 | cat conftest.err >&5 | |
a848cd7e SC |
30606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30607 | (exit $ac_status); } && | |
6ebeb4c7 | 30608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30610 | (eval $ac_try) 2>&5 | |
30611 | ac_status=$? | |
30612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30613 | (exit $ac_status); }; } && | |
30614 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30616 | (eval $ac_try) 2>&5 | |
30617 | ac_status=$? | |
30618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30619 | (exit $ac_status); }; }; then | |
30620 | ||
ffa0583f | 30621 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 30622 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
30623 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
30624 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
30625 | ||
a848cd7e SC |
30626 | else |
30627 | echo "$as_me: failed program was:" >&5 | |
30628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30629 | ||
30630 | ||
30631 | echo "$as_me:$LINENO: result: no" >&5 | |
30632 | echo "${ECHO_T}no" >&6 | |
30633 | ||
30634 | fi | |
ac1cb8d3 VS |
30635 | rm -f conftest.err conftest.$ac_objext \ |
30636 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30637 | |
30638 | fi | |
ac1cb8d3 VS |
30639 | rm -f conftest.err conftest.$ac_objext \ |
30640 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30641 | LDFLAGS="$saveLdflags" |
30642 | else | |
a848cd7e | 30643 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 30644 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
30645 | fi |
30646 | ;; | |
30647 | ||
cfda0ea8 | 30648 | *-*-darwin* ) |
0caebc27 MW |
30649 | install_name_tool=`which install_name_tool` |
30650 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
30651 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
30652 | cat <<EOF >change-install-names | |
a848cd7e SC |
30653 | #!/bin/sh |
30654 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
30655 | inst_cmd="install_name_tool " | |
30656 | for i in \${libnames} ; do | |
30657 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
30658 | done | |
30659 | \${inst_cmd} \${3} | |
30660 | EOF | |
0caebc27 MW |
30661 | chmod +x change-install-names |
30662 | fi | |
a848cd7e SC |
30663 | ;; |
30664 | ||
30665 | *-*-cygwin* | *-*-mingw32* ) | |
30666 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
30667 | ;; | |
30668 | ||
81f90336 MW |
30669 | *-*-hpux* ) |
30670 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
30671 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
30672 | ;; | |
30673 | ||
a848cd7e | 30674 | esac |
ceec2216 | 30675 | |
ffa0583f RL |
30676 | if test $wxUSE_RPATH = "no"; then |
30677 | SAMPLES_RPATH_FLAG='' | |
30678 | SAMPLES_RPATH_POSTLINK='' | |
30679 | WXCONFIG_RPATH='' | |
30680 | fi | |
30681 | ||
30682 | SHARED=1 | |
30683 | ||
30684 | else | |
30685 | ||
ceec2216 RL |
30686 | config_linkage_component="-static" |
30687 | SHARED=0 | |
ffa0583f | 30688 | |
ceec2216 | 30689 | fi |
a848cd7e | 30690 | |
a848cd7e | 30691 | |
ceec2216 RL |
30692 | UNICODE=0 |
30693 | lib_unicode_suffix= | |
30694 | WX_CHARTYPE="ansi" | |
30695 | if test "$wxUSE_UNICODE" = "yes"; then | |
30696 | lib_unicode_suffix=u | |
30697 | WX_CHARTYPE="unicode" | |
30698 | UNICODE=1 | |
a848cd7e SC |
30699 | fi |
30700 | ||
ceec2216 RL |
30701 | lib_debug_suffix= |
30702 | WX_DEBUGTYPE="release" | |
30703 | DEBUG_FLAG=0 | |
30704 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
30705 | lib_debug_suffix=d | |
30706 | WX_DEBUGTYPE="debug" | |
30707 | DEBUG_FLAG=1 | |
30708 | fi | |
a848cd7e | 30709 | |
ceec2216 RL |
30710 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
30711 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 30712 | |
ceec2216 RL |
30713 | DEBUG_INFO=0 |
30714 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
30715 | DEBUG_INFO=1 | |
30716 | fi | |
a848cd7e | 30717 | |
ceec2216 | 30718 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 30719 | |
ceec2216 | 30720 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 30721 | |
ceec2216 | 30722 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 30723 | |
ceec2216 RL |
30724 | if test "$cross_compiling" = "yes"; then |
30725 | HOST_SUFFIX="-$host_alias" | |
30726 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
30727 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
30728 | fi |
30729 | ||
dd21ced8 | 30730 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
30731 | if test "${TOOLKIT_DIR}" = "os2"; then |
30732 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30733 | else | |
30734 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
30735 | fi | |
ceec2216 RL |
30736 | |
30737 | ||
30738 | ||
1d1af5ea DE |
30739 | if test "$wxUSE_COCOA" = 1; then |
30740 | ||
30741 | ||
30742 | ac_ext=c | |
30743 | ac_cpp='$CPP $CPPFLAGS' | |
30744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30747 | ||
30748 | ac_ext=m | |
30749 | ||
30750 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
30751 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
30752 | cat >conftest.$ac_ext <<_ACEOF | |
30753 | /* confdefs.h. */ | |
30754 | _ACEOF | |
30755 | cat confdefs.h >>conftest.$ac_ext | |
30756 | cat >>conftest.$ac_ext <<_ACEOF | |
30757 | /* end confdefs.h. */ | |
30758 | #include <AppKit/NSEvent.h> | |
30759 | #include <CoreFoundation/CoreFoundation.h> | |
30760 | ||
30761 | int | |
30762 | main () | |
30763 | { | |
30764 | ||
30765 | ; | |
30766 | return 0; | |
30767 | } | |
30768 | _ACEOF | |
30769 | rm -f conftest.$ac_objext | |
30770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30771 | (eval $ac_compile) 2>conftest.er1 | |
30772 | ac_status=$? | |
30773 | grep -v '^ *+' conftest.er1 >conftest.err | |
30774 | rm -f conftest.er1 | |
30775 | cat conftest.err >&5 | |
30776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30777 | (exit $ac_status); } && | |
6ebeb4c7 | 30778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
30779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30780 | (eval $ac_try) 2>&5 | |
30781 | ac_status=$? | |
30782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30783 | (exit $ac_status); }; } && | |
30784 | { ac_try='test -s conftest.$ac_objext' | |
30785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30786 | (eval $ac_try) 2>&5 | |
30787 | ac_status=$? | |
30788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30789 | (exit $ac_status); }; }; then | |
30790 | echo "$as_me:$LINENO: result: no" >&5 | |
30791 | echo "${ECHO_T}no" >&6 | |
30792 | else | |
30793 | echo "$as_me: failed program was:" >&5 | |
30794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30795 | ||
30796 | echo "$as_me:$LINENO: result: yes" >&5 | |
30797 | echo "${ECHO_T}yes" >&6 | |
30798 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
30799 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
30800 | cat >conftest.$ac_ext <<_ACEOF | |
30801 | /* confdefs.h. */ | |
30802 | _ACEOF | |
30803 | cat confdefs.h >>conftest.$ac_ext | |
30804 | cat >>conftest.$ac_ext <<_ACEOF | |
30805 | /* end confdefs.h. */ | |
30806 | #define __Point__ 1 | |
30807 | #include <AppKit/NSEvent.h> | |
30808 | #include <CoreFoundation/CoreFoundation.h> | |
30809 | ||
30810 | int | |
30811 | main () | |
30812 | { | |
30813 | ||
30814 | ; | |
30815 | return 0; | |
30816 | } | |
30817 | _ACEOF | |
30818 | rm -f conftest.$ac_objext | |
30819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30820 | (eval $ac_compile) 2>conftest.er1 | |
30821 | ac_status=$? | |
30822 | grep -v '^ *+' conftest.er1 >conftest.err | |
30823 | rm -f conftest.er1 | |
30824 | cat conftest.err >&5 | |
30825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30826 | (exit $ac_status); } && | |
6ebeb4c7 | 30827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
30828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30829 | (eval $ac_try) 2>&5 | |
30830 | ac_status=$? | |
30831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30832 | (exit $ac_status); }; } && | |
30833 | { ac_try='test -s conftest.$ac_objext' | |
30834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30835 | (eval $ac_try) 2>&5 | |
30836 | ac_status=$? | |
30837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30838 | (exit $ac_status); }; }; then | |
30839 | echo "$as_me:$LINENO: result: yes" >&5 | |
30840 | echo "${ECHO_T}yes" >&6 | |
30841 | cat >>confdefs.h <<\_ACEOF | |
30842 | #define __Point__ 1 | |
30843 | _ACEOF | |
30844 | ||
30845 | ||
30846 | else | |
30847 | echo "$as_me: failed program was:" >&5 | |
30848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30849 | ||
30850 | { { echo "$as_me:$LINENO: error: no | |
30851 | See \`config.log' for more details." >&5 | |
30852 | echo "$as_me: error: no | |
30853 | See \`config.log' for more details." >&2;} | |
30854 | { (exit 1); exit 1; }; } | |
30855 | ||
30856 | fi | |
30857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30858 | ||
30859 | fi | |
30860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30861 | ac_ext=c | |
30862 | ac_cpp='$CPP $CPPFLAGS' | |
30863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30866 | ||
30867 | fi | |
30868 | ||
a848cd7e | 30869 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
30870 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
30871 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 30872 | |
a848cd7e | 30873 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
30874 | |
30875 | # Extract the first word of "Rez", so it can be a program name with args. | |
30876 | set dummy Rez; ac_word=$2 | |
30877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30879 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
30880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30881 | else | |
30882 | if test -n "$RESCOMP"; then | |
30883 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
30884 | else | |
30885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30886 | for as_dir in $PATH | |
30887 | do | |
30888 | IFS=$as_save_IFS | |
30889 | test -z "$as_dir" && as_dir=. | |
30890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30892 | ac_cv_prog_RESCOMP="Rez" | |
30893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30894 | break 2 | |
30895 | fi | |
30896 | done | |
30897 | done | |
30898 | ||
30899 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
30900 | fi | |
30901 | fi | |
30902 | RESCOMP=$ac_cv_prog_RESCOMP | |
30903 | if test -n "$RESCOMP"; then | |
30904 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
30905 | echo "${ECHO_T}$RESCOMP" >&6 | |
30906 | else | |
30907 | echo "$as_me:$LINENO: result: no" >&5 | |
30908 | echo "${ECHO_T}no" >&6 | |
30909 | fi | |
30910 | ||
30911 | # Extract the first word of "DeRez", so it can be a program name with args. | |
30912 | set dummy DeRez; ac_word=$2 | |
30913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30915 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
30916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30917 | else | |
30918 | if test -n "$DEREZ"; then | |
30919 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
30920 | else | |
30921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30922 | for as_dir in $PATH | |
30923 | do | |
30924 | IFS=$as_save_IFS | |
30925 | test -z "$as_dir" && as_dir=. | |
30926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30927 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30928 | ac_cv_prog_DEREZ="DeRez" | |
30929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30930 | break 2 | |
30931 | fi | |
30932 | done | |
30933 | done | |
30934 | ||
30935 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
30936 | fi | |
30937 | fi | |
30938 | DEREZ=$ac_cv_prog_DEREZ | |
30939 | if test -n "$DEREZ"; then | |
30940 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
30941 | echo "${ECHO_T}$DEREZ" >&6 | |
30942 | else | |
30943 | echo "$as_me:$LINENO: result: no" >&5 | |
30944 | echo "${ECHO_T}no" >&6 | |
30945 | fi | |
30946 | ||
30947 | # Extract the first word of "SetFile", so it can be a program name with args. | |
30948 | set dummy SetFile; ac_word=$2 | |
30949 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30951 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
30952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30953 | else | |
30954 | if test -n "$SETFILE"; then | |
30955 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
30956 | else | |
30957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30958 | for as_dir in $PATH | |
30959 | do | |
30960 | IFS=$as_save_IFS | |
30961 | test -z "$as_dir" && as_dir=. | |
30962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30964 | ac_cv_prog_SETFILE="SetFile" | |
30965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30966 | break 2 | |
30967 | fi | |
30968 | done | |
30969 | done | |
30970 | ||
30971 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
30972 | fi | |
30973 | fi | |
30974 | SETFILE=$ac_cv_prog_SETFILE | |
30975 | if test -n "$SETFILE"; then | |
30976 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
30977 | echo "${ECHO_T}$SETFILE" >&6 | |
30978 | else | |
30979 | echo "$as_me:$LINENO: result: no" >&5 | |
30980 | echo "${ECHO_T}no" >&6 | |
30981 | fi | |
30982 | ||
30983 | ||
30984 | MACSETFILE="\$(SETFILE)" | |
30985 | ||
30986 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 30987 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 30988 | |
1a79f136 | 30989 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
30990 | else |
30991 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
30992 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
30993 | fi | |
30994 | else | |
ffa0583f RL |
30995 | MACSETFILE="@true" |
30996 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
30997 | |
30998 | if test "$wxUSE_PM" = 1; then | |
30999 | MACRESCOMP="emxbind -ep" | |
31000 | else | |
ffa0583f | 31001 | MACRESCOMP="@true" |
a848cd7e SC |
31002 | fi |
31003 | fi | |
31004 | ||
31005 | ||
31006 | ||
31007 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
31008 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
31009 | if test "${ac_cv_type_mode_t+set}" = set; then | |
31010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31011 | else | |
31012 | cat >conftest.$ac_ext <<_ACEOF | |
31013 | /* confdefs.h. */ | |
31014 | _ACEOF | |
31015 | cat confdefs.h >>conftest.$ac_ext | |
31016 | cat >>conftest.$ac_ext <<_ACEOF | |
31017 | /* end confdefs.h. */ | |
31018 | $ac_includes_default | |
31019 | int | |
31020 | main () | |
31021 | { | |
31022 | if ((mode_t *) 0) | |
31023 | return 0; | |
31024 | if (sizeof (mode_t)) | |
31025 | return 0; | |
31026 | ; | |
31027 | return 0; | |
31028 | } | |
31029 | _ACEOF | |
31030 | rm -f conftest.$ac_objext | |
31031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31032 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31033 | ac_status=$? |
ac1cb8d3 VS |
31034 | grep -v '^ *+' conftest.er1 >conftest.err |
31035 | rm -f conftest.er1 | |
31036 | cat conftest.err >&5 | |
a848cd7e SC |
31037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31038 | (exit $ac_status); } && | |
6ebeb4c7 | 31039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31041 | (eval $ac_try) 2>&5 | |
31042 | ac_status=$? | |
31043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31044 | (exit $ac_status); }; } && | |
31045 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31047 | (eval $ac_try) 2>&5 | |
31048 | ac_status=$? | |
31049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31050 | (exit $ac_status); }; }; then | |
31051 | ac_cv_type_mode_t=yes | |
31052 | else | |
31053 | echo "$as_me: failed program was:" >&5 | |
31054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31055 | ||
31056 | ac_cv_type_mode_t=no | |
31057 | fi | |
ac1cb8d3 | 31058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31059 | fi |
31060 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
31061 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
31062 | if test $ac_cv_type_mode_t = yes; then | |
31063 | : | |
31064 | else | |
31065 | ||
31066 | cat >>confdefs.h <<_ACEOF | |
31067 | #define mode_t int | |
31068 | _ACEOF | |
31069 | ||
31070 | fi | |
31071 | ||
31072 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
31073 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
31074 | if test "${ac_cv_type_off_t+set}" = set; then | |
31075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31076 | else | |
31077 | cat >conftest.$ac_ext <<_ACEOF | |
31078 | /* confdefs.h. */ | |
31079 | _ACEOF | |
31080 | cat confdefs.h >>conftest.$ac_ext | |
31081 | cat >>conftest.$ac_ext <<_ACEOF | |
31082 | /* end confdefs.h. */ | |
31083 | $ac_includes_default | |
31084 | int | |
31085 | main () | |
31086 | { | |
31087 | if ((off_t *) 0) | |
31088 | return 0; | |
31089 | if (sizeof (off_t)) | |
31090 | return 0; | |
31091 | ; | |
31092 | return 0; | |
31093 | } | |
31094 | _ACEOF | |
31095 | rm -f conftest.$ac_objext | |
31096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31097 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31098 | ac_status=$? |
ac1cb8d3 VS |
31099 | grep -v '^ *+' conftest.er1 >conftest.err |
31100 | rm -f conftest.er1 | |
31101 | cat conftest.err >&5 | |
a848cd7e SC |
31102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31103 | (exit $ac_status); } && | |
6ebeb4c7 | 31104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31106 | (eval $ac_try) 2>&5 | |
31107 | ac_status=$? | |
31108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31109 | (exit $ac_status); }; } && | |
31110 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31112 | (eval $ac_try) 2>&5 | |
31113 | ac_status=$? | |
31114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31115 | (exit $ac_status); }; }; then | |
31116 | ac_cv_type_off_t=yes | |
31117 | else | |
31118 | echo "$as_me: failed program was:" >&5 | |
31119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31120 | ||
31121 | ac_cv_type_off_t=no | |
31122 | fi | |
ac1cb8d3 | 31123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31124 | fi |
31125 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
31126 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
31127 | if test $ac_cv_type_off_t = yes; then | |
31128 | : | |
31129 | else | |
31130 | ||
31131 | cat >>confdefs.h <<_ACEOF | |
31132 | #define off_t long | |
31133 | _ACEOF | |
31134 | ||
31135 | fi | |
31136 | ||
31137 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
31138 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
31139 | if test "${ac_cv_type_pid_t+set}" = set; then | |
31140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31141 | else | |
31142 | cat >conftest.$ac_ext <<_ACEOF | |
31143 | /* confdefs.h. */ | |
31144 | _ACEOF | |
31145 | cat confdefs.h >>conftest.$ac_ext | |
31146 | cat >>conftest.$ac_ext <<_ACEOF | |
31147 | /* end confdefs.h. */ | |
31148 | $ac_includes_default | |
31149 | int | |
31150 | main () | |
31151 | { | |
31152 | if ((pid_t *) 0) | |
31153 | return 0; | |
31154 | if (sizeof (pid_t)) | |
31155 | return 0; | |
31156 | ; | |
31157 | return 0; | |
31158 | } | |
31159 | _ACEOF | |
31160 | rm -f conftest.$ac_objext | |
31161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31163 | ac_status=$? |
ac1cb8d3 VS |
31164 | grep -v '^ *+' conftest.er1 >conftest.err |
31165 | rm -f conftest.er1 | |
31166 | cat conftest.err >&5 | |
a848cd7e SC |
31167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31168 | (exit $ac_status); } && | |
6ebeb4c7 | 31169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31171 | (eval $ac_try) 2>&5 | |
31172 | ac_status=$? | |
31173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31174 | (exit $ac_status); }; } && | |
31175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31177 | (eval $ac_try) 2>&5 | |
31178 | ac_status=$? | |
31179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31180 | (exit $ac_status); }; }; then | |
31181 | ac_cv_type_pid_t=yes | |
31182 | else | |
31183 | echo "$as_me: failed program was:" >&5 | |
31184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31185 | ||
31186 | ac_cv_type_pid_t=no | |
31187 | fi | |
ac1cb8d3 | 31188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31189 | fi |
31190 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
31191 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
31192 | if test $ac_cv_type_pid_t = yes; then | |
31193 | : | |
31194 | else | |
31195 | ||
31196 | cat >>confdefs.h <<_ACEOF | |
31197 | #define pid_t int | |
31198 | _ACEOF | |
31199 | ||
31200 | fi | |
31201 | ||
31202 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
31203 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
31204 | if test "${ac_cv_type_size_t+set}" = set; then | |
31205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31206 | else | |
31207 | cat >conftest.$ac_ext <<_ACEOF | |
31208 | /* confdefs.h. */ | |
31209 | _ACEOF | |
31210 | cat confdefs.h >>conftest.$ac_ext | |
31211 | cat >>conftest.$ac_ext <<_ACEOF | |
31212 | /* end confdefs.h. */ | |
31213 | $ac_includes_default | |
31214 | int | |
31215 | main () | |
31216 | { | |
31217 | if ((size_t *) 0) | |
31218 | return 0; | |
31219 | if (sizeof (size_t)) | |
31220 | return 0; | |
31221 | ; | |
31222 | return 0; | |
31223 | } | |
31224 | _ACEOF | |
31225 | rm -f conftest.$ac_objext | |
31226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31227 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31228 | ac_status=$? |
ac1cb8d3 VS |
31229 | grep -v '^ *+' conftest.er1 >conftest.err |
31230 | rm -f conftest.er1 | |
31231 | cat conftest.err >&5 | |
a848cd7e SC |
31232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31233 | (exit $ac_status); } && | |
6ebeb4c7 | 31234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31236 | (eval $ac_try) 2>&5 | |
31237 | ac_status=$? | |
31238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31239 | (exit $ac_status); }; } && | |
31240 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31242 | (eval $ac_try) 2>&5 | |
31243 | ac_status=$? | |
31244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31245 | (exit $ac_status); }; }; then | |
31246 | ac_cv_type_size_t=yes | |
31247 | else | |
31248 | echo "$as_me: failed program was:" >&5 | |
31249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31250 | ||
31251 | ac_cv_type_size_t=no | |
31252 | fi | |
ac1cb8d3 | 31253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31254 | fi |
31255 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
31256 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
31257 | if test $ac_cv_type_size_t = yes; then | |
31258 | : | |
31259 | else | |
31260 | ||
31261 | cat >>confdefs.h <<_ACEOF | |
31262 | #define size_t unsigned | |
31263 | _ACEOF | |
31264 | ||
31265 | fi | |
31266 | ||
31267 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
31268 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
31269 | if test "${ac_cv_type_uid_t+set}" = set; then | |
31270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31271 | else | |
31272 | cat >conftest.$ac_ext <<_ACEOF | |
31273 | /* confdefs.h. */ | |
31274 | _ACEOF | |
31275 | cat confdefs.h >>conftest.$ac_ext | |
31276 | cat >>conftest.$ac_ext <<_ACEOF | |
31277 | /* end confdefs.h. */ | |
31278 | #include <sys/types.h> | |
31279 | ||
31280 | _ACEOF | |
31281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
31282 | $EGREP "uid_t" >/dev/null 2>&1; then | |
31283 | ac_cv_type_uid_t=yes | |
31284 | else | |
31285 | ac_cv_type_uid_t=no | |
31286 | fi | |
31287 | rm -f conftest* | |
31288 | ||
31289 | fi | |
31290 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
31291 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
31292 | if test $ac_cv_type_uid_t = no; then | |
31293 | ||
31294 | cat >>confdefs.h <<\_ACEOF | |
31295 | #define uid_t int | |
31296 | _ACEOF | |
31297 | ||
31298 | ||
31299 | cat >>confdefs.h <<\_ACEOF | |
31300 | #define gid_t int | |
31301 | _ACEOF | |
31302 | ||
31303 | fi | |
31304 | ||
31305 | ||
d51253e8 RL |
31306 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
31307 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
31308 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
31309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31310 | else | |
31311 | cat >conftest.$ac_ext <<_ACEOF | |
31312 | /* confdefs.h. */ | |
31313 | _ACEOF | |
31314 | cat confdefs.h >>conftest.$ac_ext | |
31315 | cat >>conftest.$ac_ext <<_ACEOF | |
31316 | /* end confdefs.h. */ | |
31317 | $ac_includes_default | |
31318 | int | |
31319 | main () | |
31320 | { | |
31321 | if ((ssize_t *) 0) | |
31322 | return 0; | |
31323 | if (sizeof (ssize_t)) | |
31324 | return 0; | |
31325 | ; | |
31326 | return 0; | |
31327 | } | |
31328 | _ACEOF | |
31329 | rm -f conftest.$ac_objext | |
31330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31331 | (eval $ac_compile) 2>conftest.er1 | |
31332 | ac_status=$? | |
31333 | grep -v '^ *+' conftest.er1 >conftest.err | |
31334 | rm -f conftest.er1 | |
31335 | cat conftest.err >&5 | |
31336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31337 | (exit $ac_status); } && | |
6ebeb4c7 | 31338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
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); }; } && | |
31344 | { ac_try='test -s conftest.$ac_objext' | |
31345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31346 | (eval $ac_try) 2>&5 | |
31347 | ac_status=$? | |
31348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31349 | (exit $ac_status); }; }; then | |
31350 | ac_cv_type_ssize_t=yes | |
31351 | else | |
31352 | echo "$as_me: failed program was:" >&5 | |
31353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31354 | ||
31355 | ac_cv_type_ssize_t=no | |
31356 | fi | |
31357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31358 | fi | |
31359 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
31360 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
31361 | if test $ac_cv_type_ssize_t = yes; then | |
31362 | ||
31363 | cat >>confdefs.h <<_ACEOF | |
31364 | #define HAVE_SSIZE_T 1 | |
31365 | _ACEOF | |
31366 | ||
31367 | ||
31368 | fi | |
31369 | ||
31370 | ||
a848cd7e SC |
31371 | |
31372 | ||
31373 | ac_ext=cc | |
31374 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31375 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31376 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31377 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31378 | ||
31379 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
31380 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
31381 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
31382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31383 | else | |
31384 | ||
31385 | cat >conftest.$ac_ext <<_ACEOF | |
31386 | /* confdefs.h. */ | |
31387 | _ACEOF | |
31388 | cat confdefs.h >>conftest.$ac_ext | |
31389 | cat >>conftest.$ac_ext <<_ACEOF | |
31390 | /* end confdefs.h. */ | |
31391 | #include <stddef.h> | |
31392 | int | |
31393 | main () | |
31394 | { | |
31395 | ||
31396 | return 0; } | |
31397 | ||
31398 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
31399 | ||
31400 | int bar() { | |
31401 | ||
31402 | ; | |
31403 | return 0; | |
31404 | } | |
31405 | _ACEOF | |
31406 | rm -f conftest.$ac_objext | |
31407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31408 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31409 | ac_status=$? |
ac1cb8d3 VS |
31410 | grep -v '^ *+' conftest.er1 >conftest.err |
31411 | rm -f conftest.er1 | |
31412 | cat conftest.err >&5 | |
a848cd7e SC |
31413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31414 | (exit $ac_status); } && | |
6ebeb4c7 | 31415 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31417 | (eval $ac_try) 2>&5 | |
31418 | ac_status=$? | |
31419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31420 | (exit $ac_status); }; } && | |
31421 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31423 | (eval $ac_try) 2>&5 | |
31424 | ac_status=$? | |
31425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31426 | (exit $ac_status); }; }; then | |
31427 | wx_cv_size_t_is_uint=no | |
31428 | else | |
31429 | echo "$as_me: failed program was:" >&5 | |
31430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31431 | ||
31432 | wx_cv_size_t_is_uint=yes | |
31433 | ||
31434 | fi | |
ac1cb8d3 | 31435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31436 | |
31437 | ||
31438 | fi | |
31439 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
31440 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
31441 | ||
31442 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
31443 | cat >>confdefs.h <<\_ACEOF | |
31444 | #define wxSIZE_T_IS_UINT 1 | |
31445 | _ACEOF | |
31446 | ||
31447 | else | |
31448 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
31449 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
31450 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
31451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31452 | else | |
31453 | cat >conftest.$ac_ext <<_ACEOF | |
31454 | /* confdefs.h. */ | |
31455 | _ACEOF | |
31456 | cat confdefs.h >>conftest.$ac_ext | |
31457 | cat >>conftest.$ac_ext <<_ACEOF | |
31458 | /* end confdefs.h. */ | |
31459 | #include <stddef.h> | |
31460 | int | |
31461 | main () | |
31462 | { | |
31463 | ||
31464 | return 0; } | |
31465 | ||
31466 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
31467 | ||
31468 | int bar() { | |
31469 | ||
31470 | ; | |
31471 | return 0; | |
31472 | } | |
31473 | _ACEOF | |
31474 | rm -f conftest.$ac_objext | |
31475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31476 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31477 | ac_status=$? |
ac1cb8d3 VS |
31478 | grep -v '^ *+' conftest.er1 >conftest.err |
31479 | rm -f conftest.er1 | |
31480 | cat conftest.err >&5 | |
a848cd7e SC |
31481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31482 | (exit $ac_status); } && | |
6ebeb4c7 | 31483 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31485 | (eval $ac_try) 2>&5 | |
31486 | ac_status=$? | |
31487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31488 | (exit $ac_status); }; } && | |
31489 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31491 | (eval $ac_try) 2>&5 | |
31492 | ac_status=$? | |
31493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31494 | (exit $ac_status); }; }; then | |
31495 | wx_cv_size_t_is_ulong=no | |
31496 | else | |
31497 | echo "$as_me: failed program was:" >&5 | |
31498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31499 | ||
31500 | wx_cv_size_t_is_ulong=yes | |
31501 | ||
31502 | fi | |
ac1cb8d3 | 31503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31504 | |
31505 | fi | |
31506 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
31507 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
31508 | ||
31509 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
31510 | cat >>confdefs.h <<\_ACEOF | |
31511 | #define wxSIZE_T_IS_ULONG 1 | |
31512 | _ACEOF | |
31513 | ||
31514 | fi | |
31515 | fi | |
31516 | ||
31517 | ac_ext=c | |
31518 | ac_cpp='$CPP $CPPFLAGS' | |
31519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31522 | ||
31523 | ||
31524 | ||
31525 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
31526 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
31527 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
31528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31529 | else | |
31530 | ||
31531 | cat >conftest.$ac_ext <<_ACEOF | |
31532 | /* confdefs.h. */ | |
31533 | _ACEOF | |
31534 | cat confdefs.h >>conftest.$ac_ext | |
31535 | cat >>conftest.$ac_ext <<_ACEOF | |
31536 | /* end confdefs.h. */ | |
31537 | #include <pwd.h> | |
31538 | int | |
31539 | main () | |
31540 | { | |
31541 | ||
31542 | char *p; | |
31543 | struct passwd *pw; | |
31544 | p = pw->pw_gecos; | |
31545 | ||
31546 | ; | |
31547 | return 0; | |
31548 | } | |
31549 | _ACEOF | |
31550 | rm -f conftest.$ac_objext | |
31551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31552 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31553 | ac_status=$? |
ac1cb8d3 VS |
31554 | grep -v '^ *+' conftest.er1 >conftest.err |
31555 | rm -f conftest.er1 | |
31556 | cat conftest.err >&5 | |
a848cd7e SC |
31557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31558 | (exit $ac_status); } && | |
6ebeb4c7 | 31559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31561 | (eval $ac_try) 2>&5 | |
31562 | ac_status=$? | |
31563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31564 | (exit $ac_status); }; } && | |
31565 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31567 | (eval $ac_try) 2>&5 | |
31568 | ac_status=$? | |
31569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31570 | (exit $ac_status); }; }; then | |
31571 | ||
31572 | wx_cv_struct_pw_gecos=yes | |
31573 | ||
31574 | else | |
31575 | echo "$as_me: failed program was:" >&5 | |
31576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31577 | ||
31578 | ||
31579 | wx_cv_struct_pw_gecos=no | |
31580 | ||
31581 | ||
31582 | fi | |
ac1cb8d3 | 31583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31584 | |
31585 | ||
31586 | fi | |
31587 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
31588 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
31589 | ||
31590 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
31591 | cat >>confdefs.h <<\_ACEOF | |
31592 | #define HAVE_PW_GECOS 1 | |
31593 | _ACEOF | |
31594 | ||
31595 | fi | |
31596 | ||
31597 | ||
47a7e797 | 31598 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
31599 | cat >>confdefs.h <<\_ACEOF |
31600 | #define wxUSE_WCHAR_T 1 | |
31601 | _ACEOF | |
31602 | ||
31603 | ||
31604 | WCSLEN_FOUND=0 | |
31605 | WCHAR_LINK= | |
31606 | ||
31607 | for ac_func in wcslen | |
31608 | do | |
31609 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31610 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31611 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31612 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31614 | else | |
31615 | cat >conftest.$ac_ext <<_ACEOF | |
31616 | /* confdefs.h. */ | |
31617 | _ACEOF | |
31618 | cat confdefs.h >>conftest.$ac_ext | |
31619 | cat >>conftest.$ac_ext <<_ACEOF | |
31620 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31621 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31623 | #define $ac_func innocuous_$ac_func | |
31624 | ||
a848cd7e SC |
31625 | /* System header to define __stub macros and hopefully few prototypes, |
31626 | which can conflict with char $ac_func (); below. | |
31627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31628 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31629 | |
a848cd7e SC |
31630 | #ifdef __STDC__ |
31631 | # include <limits.h> | |
31632 | #else | |
31633 | # include <assert.h> | |
31634 | #endif | |
ac1cb8d3 VS |
31635 | |
31636 | #undef $ac_func | |
31637 | ||
a848cd7e SC |
31638 | /* Override any gcc2 internal prototype to avoid an error. */ |
31639 | #ifdef __cplusplus | |
31640 | extern "C" | |
31641 | { | |
31642 | #endif | |
31643 | /* We use char because int might match the return type of a gcc2 | |
31644 | builtin and then its argument prototype would still apply. */ | |
31645 | char $ac_func (); | |
31646 | /* The GNU C library defines this for functions which it implements | |
31647 | to always fail with ENOSYS. Some functions are actually named | |
31648 | something starting with __ and the normal name is an alias. */ | |
31649 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31650 | choke me | |
31651 | #else | |
31652 | char (*f) () = $ac_func; | |
31653 | #endif | |
31654 | #ifdef __cplusplus | |
31655 | } | |
31656 | #endif | |
31657 | ||
31658 | int | |
31659 | main () | |
31660 | { | |
31661 | return f != $ac_func; | |
31662 | ; | |
31663 | return 0; | |
31664 | } | |
31665 | _ACEOF | |
31666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31668 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31669 | ac_status=$? |
ac1cb8d3 VS |
31670 | grep -v '^ *+' conftest.er1 >conftest.err |
31671 | rm -f conftest.er1 | |
31672 | cat conftest.err >&5 | |
a848cd7e SC |
31673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31674 | (exit $ac_status); } && | |
6ebeb4c7 | 31675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31677 | (eval $ac_try) 2>&5 | |
31678 | ac_status=$? | |
31679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31680 | (exit $ac_status); }; } && | |
31681 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31683 | (eval $ac_try) 2>&5 | |
31684 | ac_status=$? | |
31685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31686 | (exit $ac_status); }; }; then | |
31687 | eval "$as_ac_var=yes" | |
31688 | else | |
31689 | echo "$as_me: failed program was:" >&5 | |
31690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31691 | ||
31692 | eval "$as_ac_var=no" | |
31693 | fi | |
ac1cb8d3 VS |
31694 | rm -f conftest.err conftest.$ac_objext \ |
31695 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31696 | fi |
31697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31698 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31699 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31700 | cat >>confdefs.h <<_ACEOF | |
31701 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31702 | _ACEOF | |
31703 | WCSLEN_FOUND=1 | |
31704 | fi | |
31705 | done | |
31706 | ||
31707 | ||
31708 | if test "$WCSLEN_FOUND" = 0; then | |
31709 | if test "$TOOLKIT" = "MSW"; then | |
31710 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
31711 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
31712 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
31713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31714 | else | |
31715 | ac_check_lib_save_LIBS=$LIBS | |
31716 | LIBS="-lmsvcrt $LIBS" | |
31717 | cat >conftest.$ac_ext <<_ACEOF | |
31718 | /* confdefs.h. */ | |
31719 | _ACEOF | |
31720 | cat confdefs.h >>conftest.$ac_ext | |
31721 | cat >>conftest.$ac_ext <<_ACEOF | |
31722 | /* end confdefs.h. */ | |
31723 | ||
31724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31725 | #ifdef __cplusplus | |
31726 | extern "C" | |
31727 | #endif | |
31728 | /* We use char because int might match the return type of a gcc2 | |
31729 | builtin and then its argument prototype would still apply. */ | |
31730 | char wcslen (); | |
31731 | int | |
31732 | main () | |
31733 | { | |
31734 | wcslen (); | |
31735 | ; | |
31736 | return 0; | |
31737 | } | |
31738 | _ACEOF | |
31739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31741 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31742 | ac_status=$? |
ac1cb8d3 VS |
31743 | grep -v '^ *+' conftest.er1 >conftest.err |
31744 | rm -f conftest.er1 | |
31745 | cat conftest.err >&5 | |
a848cd7e SC |
31746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31747 | (exit $ac_status); } && | |
6ebeb4c7 | 31748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31750 | (eval $ac_try) 2>&5 | |
31751 | ac_status=$? | |
31752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31753 | (exit $ac_status); }; } && | |
31754 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31756 | (eval $ac_try) 2>&5 | |
31757 | ac_status=$? | |
31758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31759 | (exit $ac_status); }; }; then | |
31760 | ac_cv_lib_msvcrt_wcslen=yes | |
31761 | else | |
31762 | echo "$as_me: failed program was:" >&5 | |
31763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31764 | ||
31765 | ac_cv_lib_msvcrt_wcslen=no | |
31766 | fi | |
ac1cb8d3 VS |
31767 | rm -f conftest.err conftest.$ac_objext \ |
31768 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31769 | LIBS=$ac_check_lib_save_LIBS |
31770 | fi | |
31771 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
31772 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
31773 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
31774 | WCHAR_OK=1 | |
31775 | fi | |
31776 | ||
31777 | else | |
31778 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
31779 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
31780 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
31781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31782 | else | |
31783 | ac_check_lib_save_LIBS=$LIBS | |
31784 | LIBS="-lw $LIBS" | |
31785 | cat >conftest.$ac_ext <<_ACEOF | |
31786 | /* confdefs.h. */ | |
31787 | _ACEOF | |
31788 | cat confdefs.h >>conftest.$ac_ext | |
31789 | cat >>conftest.$ac_ext <<_ACEOF | |
31790 | /* end confdefs.h. */ | |
31791 | ||
31792 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31793 | #ifdef __cplusplus | |
31794 | extern "C" | |
31795 | #endif | |
31796 | /* We use char because int might match the return type of a gcc2 | |
31797 | builtin and then its argument prototype would still apply. */ | |
31798 | char wcslen (); | |
31799 | int | |
31800 | main () | |
31801 | { | |
31802 | wcslen (); | |
31803 | ; | |
31804 | return 0; | |
31805 | } | |
31806 | _ACEOF | |
31807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31809 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31810 | ac_status=$? |
ac1cb8d3 VS |
31811 | grep -v '^ *+' conftest.er1 >conftest.err |
31812 | rm -f conftest.er1 | |
31813 | cat conftest.err >&5 | |
a848cd7e SC |
31814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31815 | (exit $ac_status); } && | |
6ebeb4c7 | 31816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31818 | (eval $ac_try) 2>&5 | |
31819 | ac_status=$? | |
31820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31821 | (exit $ac_status); }; } && | |
31822 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31824 | (eval $ac_try) 2>&5 | |
31825 | ac_status=$? | |
31826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31827 | (exit $ac_status); }; }; then | |
31828 | ac_cv_lib_w_wcslen=yes | |
31829 | else | |
31830 | echo "$as_me: failed program was:" >&5 | |
31831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31832 | ||
31833 | ac_cv_lib_w_wcslen=no | |
31834 | fi | |
ac1cb8d3 VS |
31835 | rm -f conftest.err conftest.$ac_objext \ |
31836 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31837 | LIBS=$ac_check_lib_save_LIBS |
31838 | fi | |
31839 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
31840 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
31841 | if test $ac_cv_lib_w_wcslen = yes; then | |
31842 | ||
31843 | WCHAR_LINK=" -lw" | |
31844 | WCSLEN_FOUND=1 | |
31845 | ||
31846 | fi | |
31847 | ||
31848 | fi | |
31849 | fi | |
31850 | ||
31851 | if test "$WCSLEN_FOUND" = 1; then | |
31852 | cat >>confdefs.h <<\_ACEOF | |
31853 | #define HAVE_WCSLEN 1 | |
31854 | _ACEOF | |
31855 | ||
31856 | fi | |
31857 | ||
efdf6afe | 31858 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
473276a9 VS |
31859 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
31860 | fi | |
31861 | ||
efdf6afe VZ |
31862 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
31863 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
31864 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
31865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31866 | else | |
31867 | cat >conftest.$ac_ext <<_ACEOF | |
31868 | /* confdefs.h. */ | |
31869 | _ACEOF | |
31870 | cat confdefs.h >>conftest.$ac_ext | |
31871 | cat >>conftest.$ac_ext <<_ACEOF | |
31872 | /* end confdefs.h. */ | |
31873 | #include <wchar.h> | |
31874 | ||
31875 | int | |
31876 | main () | |
31877 | { | |
31878 | if ((mbstate_t *) 0) | |
31879 | return 0; | |
31880 | if (sizeof (mbstate_t)) | |
31881 | return 0; | |
31882 | ; | |
31883 | return 0; | |
31884 | } | |
31885 | _ACEOF | |
31886 | rm -f conftest.$ac_objext | |
31887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31888 | (eval $ac_compile) 2>conftest.er1 | |
31889 | ac_status=$? | |
31890 | grep -v '^ *+' conftest.er1 >conftest.err | |
31891 | rm -f conftest.er1 | |
31892 | cat conftest.err >&5 | |
31893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31894 | (exit $ac_status); } && | |
31895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
31896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31897 | (eval $ac_try) 2>&5 | |
31898 | ac_status=$? | |
31899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31900 | (exit $ac_status); }; } && | |
31901 | { ac_try='test -s conftest.$ac_objext' | |
31902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31903 | (eval $ac_try) 2>&5 | |
31904 | ac_status=$? | |
31905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31906 | (exit $ac_status); }; }; then | |
31907 | ac_cv_type_mbstate_t=yes | |
31908 | else | |
31909 | echo "$as_me: failed program was:" >&5 | |
31910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31911 | ||
31912 | ac_cv_type_mbstate_t=no | |
31913 | fi | |
31914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31915 | fi | |
31916 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
31917 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
31918 | if test $ac_cv_type_mbstate_t = yes; then | |
31919 | ||
31920 | cat >>confdefs.h <<_ACEOF | |
31921 | #define HAVE_MBSTATE_T 1 | |
31922 | _ACEOF | |
31923 | ||
a848cd7e SC |
31924 | |
31925 | for ac_func in wcsrtombs | |
31926 | do | |
31927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31928 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31930 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31932 | else | |
31933 | cat >conftest.$ac_ext <<_ACEOF | |
31934 | /* confdefs.h. */ | |
31935 | _ACEOF | |
31936 | cat confdefs.h >>conftest.$ac_ext | |
31937 | cat >>conftest.$ac_ext <<_ACEOF | |
31938 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31941 | #define $ac_func innocuous_$ac_func | |
31942 | ||
a848cd7e SC |
31943 | /* System header to define __stub macros and hopefully few prototypes, |
31944 | which can conflict with char $ac_func (); below. | |
31945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31946 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31947 | |
a848cd7e SC |
31948 | #ifdef __STDC__ |
31949 | # include <limits.h> | |
31950 | #else | |
31951 | # include <assert.h> | |
31952 | #endif | |
ac1cb8d3 VS |
31953 | |
31954 | #undef $ac_func | |
31955 | ||
a848cd7e SC |
31956 | /* Override any gcc2 internal prototype to avoid an error. */ |
31957 | #ifdef __cplusplus | |
31958 | extern "C" | |
31959 | { | |
31960 | #endif | |
31961 | /* We use char because int might match the return type of a gcc2 | |
31962 | builtin and then its argument prototype would still apply. */ | |
31963 | char $ac_func (); | |
31964 | /* The GNU C library defines this for functions which it implements | |
31965 | to always fail with ENOSYS. Some functions are actually named | |
31966 | something starting with __ and the normal name is an alias. */ | |
31967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31968 | choke me | |
31969 | #else | |
31970 | char (*f) () = $ac_func; | |
31971 | #endif | |
31972 | #ifdef __cplusplus | |
31973 | } | |
31974 | #endif | |
31975 | ||
31976 | int | |
31977 | main () | |
31978 | { | |
31979 | return f != $ac_func; | |
31980 | ; | |
31981 | return 0; | |
31982 | } | |
31983 | _ACEOF | |
31984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31986 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31987 | ac_status=$? |
ac1cb8d3 VS |
31988 | grep -v '^ *+' conftest.er1 >conftest.err |
31989 | rm -f conftest.er1 | |
31990 | cat conftest.err >&5 | |
a848cd7e SC |
31991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31992 | (exit $ac_status); } && | |
6ebeb4c7 | 31993 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31995 | (eval $ac_try) 2>&5 | |
31996 | ac_status=$? | |
31997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31998 | (exit $ac_status); }; } && | |
31999 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32001 | (eval $ac_try) 2>&5 | |
32002 | ac_status=$? | |
32003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32004 | (exit $ac_status); }; }; then | |
32005 | eval "$as_ac_var=yes" | |
32006 | else | |
32007 | echo "$as_me: failed program was:" >&5 | |
32008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32009 | ||
32010 | eval "$as_ac_var=no" | |
32011 | fi | |
ac1cb8d3 VS |
32012 | rm -f conftest.err conftest.$ac_objext \ |
32013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32014 | fi |
32015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32016 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32017 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32018 | cat >>confdefs.h <<_ACEOF | |
32019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32020 | _ACEOF | |
32021 | ||
32022 | fi | |
32023 | done | |
32024 | ||
efdf6afe VZ |
32025 | fi |
32026 | ||
a848cd7e SC |
32027 | else |
32028 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
32029 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
32030 | fi | |
32031 | ||
32032 | ||
32033 | ||
32034 | ac_ext=cc | |
32035 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32036 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32037 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32038 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32039 | ||
32040 | ||
32041 | ||
4a767dd5 VZ |
32042 | |
32043 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
32044 | do |
32045 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32046 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32047 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32048 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32050 | else | |
32051 | cat >conftest.$ac_ext <<_ACEOF | |
32052 | /* confdefs.h. */ | |
32053 | _ACEOF | |
32054 | cat confdefs.h >>conftest.$ac_ext | |
32055 | cat >>conftest.$ac_ext <<_ACEOF | |
32056 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32057 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32059 | #define $ac_func innocuous_$ac_func | |
32060 | ||
a848cd7e SC |
32061 | /* System header to define __stub macros and hopefully few prototypes, |
32062 | which can conflict with char $ac_func (); below. | |
32063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32064 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32065 | |
a848cd7e SC |
32066 | #ifdef __STDC__ |
32067 | # include <limits.h> | |
32068 | #else | |
32069 | # include <assert.h> | |
32070 | #endif | |
ac1cb8d3 VS |
32071 | |
32072 | #undef $ac_func | |
32073 | ||
a848cd7e SC |
32074 | /* Override any gcc2 internal prototype to avoid an error. */ |
32075 | #ifdef __cplusplus | |
32076 | extern "C" | |
32077 | { | |
32078 | #endif | |
32079 | /* We use char because int might match the return type of a gcc2 | |
32080 | builtin and then its argument prototype would still apply. */ | |
32081 | char $ac_func (); | |
32082 | /* The GNU C library defines this for functions which it implements | |
32083 | to always fail with ENOSYS. Some functions are actually named | |
32084 | something starting with __ and the normal name is an alias. */ | |
32085 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32086 | choke me | |
32087 | #else | |
32088 | char (*f) () = $ac_func; | |
32089 | #endif | |
32090 | #ifdef __cplusplus | |
32091 | } | |
32092 | #endif | |
32093 | ||
32094 | int | |
32095 | main () | |
32096 | { | |
32097 | return f != $ac_func; | |
32098 | ; | |
32099 | return 0; | |
32100 | } | |
32101 | _ACEOF | |
32102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32104 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32105 | ac_status=$? |
ac1cb8d3 VS |
32106 | grep -v '^ *+' conftest.er1 >conftest.err |
32107 | rm -f conftest.er1 | |
32108 | cat conftest.err >&5 | |
a848cd7e SC |
32109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32110 | (exit $ac_status); } && | |
6ebeb4c7 | 32111 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32113 | (eval $ac_try) 2>&5 | |
32114 | ac_status=$? | |
32115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32116 | (exit $ac_status); }; } && | |
32117 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32119 | (eval $ac_try) 2>&5 | |
32120 | ac_status=$? | |
32121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32122 | (exit $ac_status); }; }; then | |
32123 | eval "$as_ac_var=yes" | |
32124 | else | |
32125 | echo "$as_me: failed program was:" >&5 | |
32126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32127 | ||
32128 | eval "$as_ac_var=no" | |
32129 | fi | |
ac1cb8d3 VS |
32130 | rm -f conftest.err conftest.$ac_objext \ |
32131 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32132 | fi |
32133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32134 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32135 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32136 | cat >>confdefs.h <<_ACEOF | |
32137 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32138 | _ACEOF | |
32139 | ||
32140 | fi | |
32141 | done | |
32142 | ||
32143 | ||
32144 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
32145 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
32146 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
32147 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
32148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32149 | else | |
32150 | ||
efdf6afe | 32151 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
32152 | /* confdefs.h. */ |
32153 | _ACEOF | |
32154 | cat confdefs.h >>conftest.$ac_ext | |
32155 | cat >>conftest.$ac_ext <<_ACEOF | |
32156 | /* end confdefs.h. */ | |
32157 | ||
32158 | #include <stdio.h> | |
32159 | #include <stdarg.h> | |
efdf6afe VZ |
32160 | #ifdef __MSL__ |
32161 | #if __MSL__ >= 0x6000 | |
32162 | namespace std {} | |
32163 | using namespace std; | |
32164 | #endif | |
32165 | #endif | |
a848cd7e SC |
32166 | |
32167 | int | |
32168 | main () | |
32169 | { | |
32170 | ||
32171 | char *buf; | |
32172 | va_list ap; | |
62fa8b3a | 32173 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
32174 | |
32175 | ; | |
32176 | return 0; | |
32177 | } | |
32178 | _ACEOF | |
32179 | rm -f conftest.$ac_objext | |
32180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32181 | (eval $ac_compile) 2>conftest.er1 | |
32182 | ac_status=$? | |
32183 | grep -v '^ *+' conftest.er1 >conftest.err | |
32184 | rm -f conftest.er1 | |
32185 | cat conftest.err >&5 | |
32186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32187 | (exit $ac_status); } && | |
6ebeb4c7 | 32188 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
32189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32190 | (eval $ac_try) 2>&5 | |
32191 | ac_status=$? | |
32192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32193 | (exit $ac_status); }; } && | |
32194 | { ac_try='test -s conftest.$ac_objext' | |
32195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32196 | (eval $ac_try) 2>&5 | |
32197 | ac_status=$? | |
32198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32199 | (exit $ac_status); }; }; then | |
32200 | wx_cv_func_vsnprintf_decl=yes | |
32201 | else | |
32202 | echo "$as_me: failed program was:" >&5 | |
32203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32204 | ||
a848cd7e SC |
32205 | wx_cv_func_vsnprintf_decl=no |
32206 | ||
32207 | fi | |
ac1cb8d3 | 32208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32209 | |
32210 | ||
32211 | fi | |
32212 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
32213 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
32214 | ||
32215 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
32216 | cat >>confdefs.h <<\_ACEOF | |
32217 | #define HAVE_VSNPRINTF_DECL 1 | |
32218 | _ACEOF | |
32219 | ||
62fa8b3a MW |
32220 | |
32221 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
32222 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
32223 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
32224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32225 | else | |
32226 | ||
32227 | cat >conftest.$ac_ext <<_ACEOF | |
32228 | /* confdefs.h. */ | |
32229 | _ACEOF | |
32230 | cat confdefs.h >>conftest.$ac_ext | |
32231 | cat >>conftest.$ac_ext <<_ACEOF | |
32232 | /* end confdefs.h. */ | |
32233 | ||
32234 | #include <stdio.h> | |
32235 | #include <stdarg.h> | |
32236 | #ifdef __MSL__ | |
32237 | #if __MSL__ >= 0x6000 | |
32238 | namespace std {} | |
32239 | using namespace std; | |
32240 | #endif | |
32241 | #endif | |
32242 | ||
32243 | int | |
32244 | main () | |
32245 | { | |
32246 | ||
32247 | char *buf; | |
32248 | va_list ap; | |
32249 | const char *fmt = "%s"; | |
32250 | vsnprintf(buf, 10u, fmt, ap); | |
32251 | ||
32252 | ; | |
32253 | return 0; | |
32254 | } | |
32255 | _ACEOF | |
32256 | rm -f conftest.$ac_objext | |
32257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32258 | (eval $ac_compile) 2>conftest.er1 | |
32259 | ac_status=$? | |
32260 | grep -v '^ *+' conftest.er1 >conftest.err | |
32261 | rm -f conftest.er1 | |
32262 | cat conftest.err >&5 | |
32263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32264 | (exit $ac_status); } && | |
32265 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32267 | (eval $ac_try) 2>&5 | |
32268 | ac_status=$? | |
32269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32270 | (exit $ac_status); }; } && | |
32271 | { ac_try='test -s conftest.$ac_objext' | |
32272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32273 | (eval $ac_try) 2>&5 | |
32274 | ac_status=$? | |
32275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32276 | (exit $ac_status); }; }; then | |
32277 | wx_cv_func_broken_vsnprintf_decl=no | |
32278 | else | |
32279 | echo "$as_me: failed program was:" >&5 | |
32280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32281 | ||
32282 | wx_cv_func_broken_vsnprintf_decl=yes | |
32283 | ||
32284 | fi | |
32285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32286 | ||
32287 | ||
32288 | fi | |
32289 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
32290 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
32291 | ||
32292 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
32293 | cat >>confdefs.h <<\_ACEOF | |
32294 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
32295 | _ACEOF | |
32296 | ||
32297 | fi | |
a848cd7e SC |
32298 | fi |
32299 | fi | |
32300 | ||
4a767dd5 VZ |
32301 | if test "$ac_cv_func_snprintf" = "yes"; then |
32302 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
32303 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
32304 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
32305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32306 | else | |
32307 | ||
32308 | cat >conftest.$ac_ext <<_ACEOF | |
32309 | /* confdefs.h. */ | |
32310 | _ACEOF | |
32311 | cat confdefs.h >>conftest.$ac_ext | |
32312 | cat >>conftest.$ac_ext <<_ACEOF | |
32313 | /* end confdefs.h. */ | |
32314 | ||
32315 | #include <stdio.h> | |
32316 | #include <stdarg.h> | |
32317 | #ifdef __MSL__ | |
32318 | #if __MSL__ >= 0x6000 | |
32319 | namespace std {} | |
32320 | using namespace std; | |
32321 | #endif | |
32322 | #endif | |
32323 | ||
32324 | int | |
32325 | main () | |
32326 | { | |
32327 | ||
32328 | char *buf; | |
62fa8b3a | 32329 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
32330 | |
32331 | ; | |
32332 | return 0; | |
32333 | } | |
32334 | _ACEOF | |
32335 | rm -f conftest.$ac_objext | |
32336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32337 | (eval $ac_compile) 2>conftest.er1 | |
32338 | ac_status=$? | |
32339 | grep -v '^ *+' conftest.er1 >conftest.err | |
32340 | rm -f conftest.er1 | |
32341 | cat conftest.err >&5 | |
32342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32343 | (exit $ac_status); } && | |
32344 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32346 | (eval $ac_try) 2>&5 | |
32347 | ac_status=$? | |
32348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32349 | (exit $ac_status); }; } && | |
32350 | { ac_try='test -s conftest.$ac_objext' | |
32351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32352 | (eval $ac_try) 2>&5 | |
32353 | ac_status=$? | |
32354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32355 | (exit $ac_status); }; }; then | |
32356 | wx_cv_func_snprintf_decl=yes | |
32357 | else | |
32358 | echo "$as_me: failed program was:" >&5 | |
32359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32360 | ||
32361 | wx_cv_func_snprintf_decl=no | |
32362 | ||
32363 | fi | |
32364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32365 | ||
32366 | ||
32367 | fi | |
32368 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
32369 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
32370 | ||
32371 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
32372 | cat >>confdefs.h <<\_ACEOF | |
32373 | #define HAVE_SNPRINTF_DECL 1 | |
32374 | _ACEOF | |
32375 | ||
62fa8b3a MW |
32376 | |
32377 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
32378 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
32379 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
32380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32381 | else | |
32382 | ||
32383 | cat >conftest.$ac_ext <<_ACEOF | |
32384 | /* confdefs.h. */ | |
32385 | _ACEOF | |
32386 | cat confdefs.h >>conftest.$ac_ext | |
32387 | cat >>conftest.$ac_ext <<_ACEOF | |
32388 | /* end confdefs.h. */ | |
32389 | ||
32390 | #include <stdio.h> | |
32391 | #include <stdarg.h> | |
32392 | #ifdef __MSL__ | |
32393 | #if __MSL__ >= 0x6000 | |
32394 | namespace std {} | |
32395 | using namespace std; | |
32396 | #endif | |
32397 | #endif | |
32398 | ||
32399 | int | |
32400 | main () | |
32401 | { | |
32402 | ||
32403 | char *buf; | |
32404 | const char *fmt = "%s"; | |
32405 | snprintf(buf, 10u, fmt, "wx"); | |
32406 | ||
32407 | ; | |
32408 | return 0; | |
32409 | } | |
32410 | _ACEOF | |
32411 | rm -f conftest.$ac_objext | |
32412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32413 | (eval $ac_compile) 2>conftest.er1 | |
32414 | ac_status=$? | |
32415 | grep -v '^ *+' conftest.er1 >conftest.err | |
32416 | rm -f conftest.er1 | |
32417 | cat conftest.err >&5 | |
32418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32419 | (exit $ac_status); } && | |
32420 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
32421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32422 | (eval $ac_try) 2>&5 | |
32423 | ac_status=$? | |
32424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32425 | (exit $ac_status); }; } && | |
32426 | { ac_try='test -s conftest.$ac_objext' | |
32427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32428 | (eval $ac_try) 2>&5 | |
32429 | ac_status=$? | |
32430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32431 | (exit $ac_status); }; }; then | |
32432 | wx_cv_func_broken_snprintf_decl=no | |
32433 | else | |
32434 | echo "$as_me: failed program was:" >&5 | |
32435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32436 | ||
32437 | wx_cv_func_broken_snprintf_decl=yes | |
32438 | ||
32439 | fi | |
32440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32441 | ||
32442 | ||
32443 | fi | |
32444 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
32445 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
32446 | ||
32447 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
32448 | cat >>confdefs.h <<\_ACEOF | |
32449 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
32450 | _ACEOF | |
32451 | ||
32452 | fi | |
4a767dd5 VZ |
32453 | fi |
32454 | fi | |
32455 | ||
a848cd7e SC |
32456 | if test "$wxUSE_UNICODE" = yes; then |
32457 | ||
32458 | ||
32459 | ||
fbe47c7b VS |
32460 | |
32461 | ||
32462 | ||
32463 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
32464 | do |
32465 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32466 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32467 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32468 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32470 | else | |
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. */ | |
ac1cb8d3 VS |
32477 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32478 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32479 | #define $ac_func innocuous_$ac_func | |
32480 | ||
a848cd7e SC |
32481 | /* System header to define __stub macros and hopefully few prototypes, |
32482 | which can conflict with char $ac_func (); below. | |
32483 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32484 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32485 | |
a848cd7e SC |
32486 | #ifdef __STDC__ |
32487 | # include <limits.h> | |
32488 | #else | |
32489 | # include <assert.h> | |
32490 | #endif | |
ac1cb8d3 VS |
32491 | |
32492 | #undef $ac_func | |
32493 | ||
a848cd7e SC |
32494 | /* Override any gcc2 internal prototype to avoid an error. */ |
32495 | #ifdef __cplusplus | |
32496 | extern "C" | |
32497 | { | |
32498 | #endif | |
32499 | /* We use char because int might match the return type of a gcc2 | |
32500 | builtin and then its argument prototype would still apply. */ | |
32501 | char $ac_func (); | |
32502 | /* The GNU C library defines this for functions which it implements | |
32503 | to always fail with ENOSYS. Some functions are actually named | |
32504 | something starting with __ and the normal name is an alias. */ | |
32505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32506 | choke me | |
32507 | #else | |
32508 | char (*f) () = $ac_func; | |
32509 | #endif | |
32510 | #ifdef __cplusplus | |
32511 | } | |
32512 | #endif | |
32513 | ||
32514 | int | |
32515 | main () | |
32516 | { | |
32517 | return f != $ac_func; | |
32518 | ; | |
32519 | return 0; | |
32520 | } | |
32521 | _ACEOF | |
32522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32524 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32525 | ac_status=$? |
ac1cb8d3 VS |
32526 | grep -v '^ *+' conftest.er1 >conftest.err |
32527 | rm -f conftest.er1 | |
32528 | cat conftest.err >&5 | |
a848cd7e SC |
32529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32530 | (exit $ac_status); } && | |
6ebeb4c7 | 32531 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32533 | (eval $ac_try) 2>&5 | |
32534 | ac_status=$? | |
32535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32536 | (exit $ac_status); }; } && | |
32537 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32539 | (eval $ac_try) 2>&5 | |
32540 | ac_status=$? | |
32541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32542 | (exit $ac_status); }; }; then | |
32543 | eval "$as_ac_var=yes" | |
32544 | else | |
32545 | echo "$as_me: failed program was:" >&5 | |
32546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32547 | ||
32548 | eval "$as_ac_var=no" | |
32549 | fi | |
ac1cb8d3 VS |
32550 | rm -f conftest.err conftest.$ac_objext \ |
32551 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32552 | fi |
32553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32554 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32555 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32556 | cat >>confdefs.h <<_ACEOF | |
32557 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32558 | _ACEOF | |
32559 | ||
32560 | fi | |
32561 | done | |
32562 | ||
32563 | ||
32564 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
32565 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
32566 | cat >conftest.$ac_ext <<_ACEOF | |
32567 | /* confdefs.h. */ | |
32568 | _ACEOF | |
32569 | cat confdefs.h >>conftest.$ac_ext | |
32570 | cat >>conftest.$ac_ext <<_ACEOF | |
32571 | /* end confdefs.h. */ | |
32572 | #include <wchar.h> | |
32573 | int | |
32574 | main () | |
32575 | { | |
32576 | &_vsnwprintf; | |
32577 | ; | |
32578 | return 0; | |
32579 | } | |
32580 | _ACEOF | |
32581 | rm -f conftest.$ac_objext | |
32582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32583 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32584 | ac_status=$? |
ac1cb8d3 VS |
32585 | grep -v '^ *+' conftest.er1 >conftest.err |
32586 | rm -f conftest.er1 | |
32587 | cat conftest.err >&5 | |
a848cd7e SC |
32588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32589 | (exit $ac_status); } && | |
6ebeb4c7 | 32590 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32592 | (eval $ac_try) 2>&5 | |
32593 | ac_status=$? | |
32594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32595 | (exit $ac_status); }; } && | |
32596 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32598 | (eval $ac_try) 2>&5 | |
32599 | ac_status=$? | |
32600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32601 | (exit $ac_status); }; }; then | |
32602 | echo "$as_me:$LINENO: result: yes" >&5 | |
32603 | echo "${ECHO_T}yes" >&6 | |
32604 | cat >>confdefs.h <<\_ACEOF | |
32605 | #define HAVE__VSNWPRINTF 1 | |
32606 | _ACEOF | |
32607 | ||
32608 | else | |
32609 | echo "$as_me: failed program was:" >&5 | |
32610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32611 | ||
32612 | echo "$as_me:$LINENO: result: no" >&5 | |
32613 | echo "${ECHO_T}no" >&6 | |
32614 | fi | |
ac1cb8d3 | 32615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
32616 | fi |
32617 | ||
32618 | ac_ext=c | |
32619 | ac_cpp='$CPP $CPPFLAGS' | |
32620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32623 | ||
32624 | ||
6ebeb4c7 VZ |
32625 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
32626 | ||
32627 | for ac_func in fnmatch | |
32628 | do | |
32629 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32630 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32631 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32632 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32634 | else | |
32635 | cat >conftest.$ac_ext <<_ACEOF | |
32636 | /* confdefs.h. */ | |
32637 | _ACEOF | |
32638 | cat confdefs.h >>conftest.$ac_ext | |
32639 | cat >>conftest.$ac_ext <<_ACEOF | |
32640 | /* end confdefs.h. */ | |
32641 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32642 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32643 | #define $ac_func innocuous_$ac_func | |
32644 | ||
32645 | /* System header to define __stub macros and hopefully few prototypes, | |
32646 | which can conflict with char $ac_func (); below. | |
32647 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32648 | <limits.h> exists even on freestanding compilers. */ | |
32649 | ||
32650 | #ifdef __STDC__ | |
32651 | # include <limits.h> | |
32652 | #else | |
32653 | # include <assert.h> | |
32654 | #endif | |
32655 | ||
32656 | #undef $ac_func | |
32657 | ||
32658 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32659 | #ifdef __cplusplus | |
32660 | extern "C" | |
32661 | { | |
32662 | #endif | |
32663 | /* We use char because int might match the return type of a gcc2 | |
32664 | builtin and then its argument prototype would still apply. */ | |
32665 | char $ac_func (); | |
32666 | /* The GNU C library defines this for functions which it implements | |
32667 | to always fail with ENOSYS. Some functions are actually named | |
32668 | something starting with __ and the normal name is an alias. */ | |
32669 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32670 | choke me | |
32671 | #else | |
32672 | char (*f) () = $ac_func; | |
32673 | #endif | |
32674 | #ifdef __cplusplus | |
32675 | } | |
32676 | #endif | |
32677 | ||
32678 | int | |
32679 | main () | |
32680 | { | |
32681 | return f != $ac_func; | |
32682 | ; | |
32683 | return 0; | |
32684 | } | |
32685 | _ACEOF | |
32686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32688 | (eval $ac_link) 2>conftest.er1 | |
32689 | ac_status=$? | |
32690 | grep -v '^ *+' conftest.er1 >conftest.err | |
32691 | rm -f conftest.er1 | |
32692 | cat conftest.err >&5 | |
32693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32694 | (exit $ac_status); } && | |
32695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32697 | (eval $ac_try) 2>&5 | |
32698 | ac_status=$? | |
32699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32700 | (exit $ac_status); }; } && | |
32701 | { ac_try='test -s conftest$ac_exeext' | |
32702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32703 | (eval $ac_try) 2>&5 | |
32704 | ac_status=$? | |
32705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32706 | (exit $ac_status); }; }; then | |
32707 | eval "$as_ac_var=yes" | |
32708 | else | |
32709 | echo "$as_me: failed program was:" >&5 | |
32710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32711 | ||
32712 | eval "$as_ac_var=no" | |
32713 | fi | |
32714 | rm -f conftest.err conftest.$ac_objext \ | |
32715 | conftest$ac_exeext conftest.$ac_ext | |
32716 | fi | |
32717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32718 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32719 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32720 | cat >>confdefs.h <<_ACEOF | |
32721 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32722 | _ACEOF | |
32723 | ||
32724 | fi | |
32725 | done | |
32726 | ||
32727 | fi | |
32728 | ||
32729 | if test "$wxUSE_FILE" = "yes"; then | |
32730 | ||
32731 | for ac_func in fsync | |
32732 | do | |
32733 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32734 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32735 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32736 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32738 | else | |
32739 | cat >conftest.$ac_ext <<_ACEOF | |
32740 | /* confdefs.h. */ | |
32741 | _ACEOF | |
32742 | cat confdefs.h >>conftest.$ac_ext | |
32743 | cat >>conftest.$ac_ext <<_ACEOF | |
32744 | /* end confdefs.h. */ | |
32745 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32746 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32747 | #define $ac_func innocuous_$ac_func | |
32748 | ||
32749 | /* System header to define __stub macros and hopefully few prototypes, | |
32750 | which can conflict with char $ac_func (); below. | |
32751 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32752 | <limits.h> exists even on freestanding compilers. */ | |
32753 | ||
32754 | #ifdef __STDC__ | |
32755 | # include <limits.h> | |
32756 | #else | |
32757 | # include <assert.h> | |
32758 | #endif | |
32759 | ||
32760 | #undef $ac_func | |
32761 | ||
32762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32763 | #ifdef __cplusplus | |
32764 | extern "C" | |
32765 | { | |
32766 | #endif | |
32767 | /* We use char because int might match the return type of a gcc2 | |
32768 | builtin and then its argument prototype would still apply. */ | |
32769 | char $ac_func (); | |
32770 | /* The GNU C library defines this for functions which it implements | |
32771 | to always fail with ENOSYS. Some functions are actually named | |
32772 | something starting with __ and the normal name is an alias. */ | |
32773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32774 | choke me | |
32775 | #else | |
32776 | char (*f) () = $ac_func; | |
32777 | #endif | |
32778 | #ifdef __cplusplus | |
32779 | } | |
32780 | #endif | |
32781 | ||
32782 | int | |
32783 | main () | |
32784 | { | |
32785 | return f != $ac_func; | |
32786 | ; | |
32787 | return 0; | |
32788 | } | |
32789 | _ACEOF | |
32790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32792 | (eval $ac_link) 2>conftest.er1 | |
32793 | ac_status=$? | |
32794 | grep -v '^ *+' conftest.er1 >conftest.err | |
32795 | rm -f conftest.er1 | |
32796 | cat conftest.err >&5 | |
32797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32798 | (exit $ac_status); } && | |
32799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
32800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32801 | (eval $ac_try) 2>&5 | |
32802 | ac_status=$? | |
32803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32804 | (exit $ac_status); }; } && | |
32805 | { ac_try='test -s conftest$ac_exeext' | |
32806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32807 | (eval $ac_try) 2>&5 | |
32808 | ac_status=$? | |
32809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32810 | (exit $ac_status); }; }; then | |
32811 | eval "$as_ac_var=yes" | |
32812 | else | |
32813 | echo "$as_me: failed program was:" >&5 | |
32814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32815 | ||
32816 | eval "$as_ac_var=no" | |
32817 | fi | |
32818 | rm -f conftest.err conftest.$ac_objext \ | |
32819 | conftest$ac_exeext conftest.$ac_ext | |
32820 | fi | |
32821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32822 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32823 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32824 | cat >>confdefs.h <<_ACEOF | |
32825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32826 | _ACEOF | |
32827 | ||
32828 | fi | |
32829 | done | |
32830 | ||
32831 | fi | |
a848cd7e SC |
32832 | |
32833 | ||
32834 | if test "$TOOLKIT" != "MSW"; then | |
32835 | ||
32836 | ||
32837 | ||
32838 | ||
32839 | ac_ext=cc | |
32840 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32841 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32842 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32843 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32844 | ||
32845 | ||
32846 | ||
32847 | ||
32848 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
32849 | if test "${with_libiconv_prefix+set}" = set; then | |
32850 | withval="$with_libiconv_prefix" | |
32851 | ||
32852 | for dir in `echo "$withval" | tr : ' '`; do | |
32853 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
32854 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
32855 | done | |
32856 | ||
32857 | fi; | |
32858 | ||
32859 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
32860 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
32861 | if test "${am_cv_func_iconv+set}" = set; then | |
32862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32863 | else | |
32864 | ||
32865 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
32866 | am_cv_lib_iconv=no | |
32867 | cat >conftest.$ac_ext <<_ACEOF | |
32868 | /* confdefs.h. */ | |
32869 | _ACEOF | |
32870 | cat confdefs.h >>conftest.$ac_ext | |
32871 | cat >>conftest.$ac_ext <<_ACEOF | |
32872 | /* end confdefs.h. */ | |
32873 | #include <stdlib.h> | |
32874 | #include <iconv.h> | |
32875 | int | |
32876 | main () | |
32877 | { | |
32878 | iconv_t cd = iconv_open("",""); | |
32879 | iconv(cd,NULL,NULL,NULL,NULL); | |
32880 | iconv_close(cd); | |
32881 | ; | |
32882 | return 0; | |
32883 | } | |
32884 | _ACEOF | |
32885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32887 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32888 | ac_status=$? |
ac1cb8d3 VS |
32889 | grep -v '^ *+' conftest.er1 >conftest.err |
32890 | rm -f conftest.er1 | |
32891 | cat conftest.err >&5 | |
a848cd7e SC |
32892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32893 | (exit $ac_status); } && | |
6ebeb4c7 | 32894 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32896 | (eval $ac_try) 2>&5 | |
32897 | ac_status=$? | |
32898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32899 | (exit $ac_status); }; } && | |
32900 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32902 | (eval $ac_try) 2>&5 | |
32903 | ac_status=$? | |
32904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32905 | (exit $ac_status); }; }; then | |
32906 | am_cv_func_iconv=yes | |
32907 | else | |
32908 | echo "$as_me: failed program was:" >&5 | |
32909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32910 | ||
32911 | fi | |
ac1cb8d3 VS |
32912 | rm -f conftest.err conftest.$ac_objext \ |
32913 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32914 | if test "$am_cv_func_iconv" != yes; then |
32915 | am_save_LIBS="$LIBS" | |
32916 | LIBS="$LIBS -liconv" | |
32917 | cat >conftest.$ac_ext <<_ACEOF | |
32918 | /* confdefs.h. */ | |
32919 | _ACEOF | |
32920 | cat confdefs.h >>conftest.$ac_ext | |
32921 | cat >>conftest.$ac_ext <<_ACEOF | |
32922 | /* end confdefs.h. */ | |
32923 | #include <stdlib.h> | |
32924 | #include <iconv.h> | |
32925 | int | |
32926 | main () | |
32927 | { | |
32928 | iconv_t cd = iconv_open("",""); | |
32929 | iconv(cd,NULL,NULL,NULL,NULL); | |
32930 | iconv_close(cd); | |
32931 | ; | |
32932 | return 0; | |
32933 | } | |
32934 | _ACEOF | |
32935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32937 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32938 | ac_status=$? |
ac1cb8d3 VS |
32939 | grep -v '^ *+' conftest.er1 >conftest.err |
32940 | rm -f conftest.er1 | |
32941 | cat conftest.err >&5 | |
a848cd7e SC |
32942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32943 | (exit $ac_status); } && | |
6ebeb4c7 | 32944 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32946 | (eval $ac_try) 2>&5 | |
32947 | ac_status=$? | |
32948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32949 | (exit $ac_status); }; } && | |
32950 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32952 | (eval $ac_try) 2>&5 | |
32953 | ac_status=$? | |
32954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32955 | (exit $ac_status); }; }; then | |
32956 | am_cv_lib_iconv=yes | |
32957 | am_cv_func_iconv=yes | |
32958 | else | |
32959 | echo "$as_me: failed program was:" >&5 | |
32960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32961 | ||
32962 | fi | |
ac1cb8d3 VS |
32963 | rm -f conftest.err conftest.$ac_objext \ |
32964 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32965 | LIBS="$am_save_LIBS" |
32966 | fi | |
32967 | ||
32968 | fi | |
32969 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
32970 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
32971 | if test "$am_cv_func_iconv" = yes; then | |
32972 | ||
32973 | cat >>confdefs.h <<\_ACEOF | |
32974 | #define HAVE_ICONV 1 | |
32975 | _ACEOF | |
32976 | ||
32977 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
32978 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
32979 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
32980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32981 | else | |
32982 | cat >conftest.$ac_ext <<_ACEOF | |
32983 | /* confdefs.h. */ | |
32984 | _ACEOF | |
32985 | cat confdefs.h >>conftest.$ac_ext | |
32986 | cat >>conftest.$ac_ext <<_ACEOF | |
32987 | /* end confdefs.h. */ | |
32988 | ||
32989 | #include <stdlib.h> | |
32990 | #include <iconv.h> | |
32991 | extern | |
32992 | #ifdef __cplusplus | |
32993 | "C" | |
32994 | #endif | |
32995 | #if defined(__STDC__) || defined(__cplusplus) | |
32996 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
32997 | #else | |
32998 | size_t iconv(); | |
32999 | #endif | |
33000 | ||
33001 | int | |
33002 | main () | |
33003 | { | |
33004 | ||
33005 | ; | |
33006 | return 0; | |
33007 | } | |
33008 | _ACEOF | |
33009 | rm -f conftest.$ac_objext | |
33010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33011 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33012 | ac_status=$? |
ac1cb8d3 VS |
33013 | grep -v '^ *+' conftest.er1 >conftest.err |
33014 | rm -f conftest.er1 | |
33015 | cat conftest.err >&5 | |
a848cd7e SC |
33016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33017 | (exit $ac_status); } && | |
6ebeb4c7 | 33018 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33020 | (eval $ac_try) 2>&5 | |
33021 | ac_status=$? | |
33022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33023 | (exit $ac_status); }; } && | |
33024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33026 | (eval $ac_try) 2>&5 | |
33027 | ac_status=$? | |
33028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33029 | (exit $ac_status); }; }; then | |
33030 | wx_cv_func_iconv_const="no" | |
33031 | else | |
33032 | echo "$as_me: failed program was:" >&5 | |
33033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33034 | ||
33035 | wx_cv_func_iconv_const="yes" | |
33036 | ||
33037 | fi | |
ac1cb8d3 | 33038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33039 | |
33040 | fi | |
33041 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
33042 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
33043 | ||
33044 | iconv_const= | |
33045 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
33046 | iconv_const="const" | |
33047 | fi | |
33048 | ||
33049 | ||
33050 | cat >>confdefs.h <<_ACEOF | |
33051 | #define ICONV_CONST $iconv_const | |
33052 | _ACEOF | |
33053 | ||
33054 | fi | |
33055 | LIBICONV= | |
33056 | if test "$am_cv_lib_iconv" = yes; then | |
33057 | LIBICONV="-liconv" | |
33058 | fi | |
33059 | ||
33060 | ||
33061 | LIBS="$LIBICONV $LIBS" | |
33062 | ac_ext=c | |
33063 | ac_cpp='$CPP $CPPFLAGS' | |
33064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33067 | ||
33068 | ||
33069 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
33070 | ||
33071 | for ac_func in sigaction | |
33072 | do | |
33073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33074 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33076 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33078 | else | |
33079 | cat >conftest.$ac_ext <<_ACEOF | |
33080 | /* confdefs.h. */ | |
33081 | _ACEOF | |
33082 | cat confdefs.h >>conftest.$ac_ext | |
33083 | cat >>conftest.$ac_ext <<_ACEOF | |
33084 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33085 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33087 | #define $ac_func innocuous_$ac_func | |
33088 | ||
a848cd7e SC |
33089 | /* System header to define __stub macros and hopefully few prototypes, |
33090 | which can conflict with char $ac_func (); below. | |
33091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33092 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33093 | |
a848cd7e SC |
33094 | #ifdef __STDC__ |
33095 | # include <limits.h> | |
33096 | #else | |
33097 | # include <assert.h> | |
33098 | #endif | |
ac1cb8d3 VS |
33099 | |
33100 | #undef $ac_func | |
33101 | ||
a848cd7e SC |
33102 | /* Override any gcc2 internal prototype to avoid an error. */ |
33103 | #ifdef __cplusplus | |
33104 | extern "C" | |
33105 | { | |
33106 | #endif | |
33107 | /* We use char because int might match the return type of a gcc2 | |
33108 | builtin and then its argument prototype would still apply. */ | |
33109 | char $ac_func (); | |
33110 | /* The GNU C library defines this for functions which it implements | |
33111 | to always fail with ENOSYS. Some functions are actually named | |
33112 | something starting with __ and the normal name is an alias. */ | |
33113 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33114 | choke me | |
33115 | #else | |
33116 | char (*f) () = $ac_func; | |
33117 | #endif | |
33118 | #ifdef __cplusplus | |
33119 | } | |
33120 | #endif | |
33121 | ||
33122 | int | |
33123 | main () | |
33124 | { | |
33125 | return f != $ac_func; | |
33126 | ; | |
33127 | return 0; | |
33128 | } | |
33129 | _ACEOF | |
33130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33132 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33133 | ac_status=$? |
ac1cb8d3 VS |
33134 | grep -v '^ *+' conftest.er1 >conftest.err |
33135 | rm -f conftest.er1 | |
33136 | cat conftest.err >&5 | |
a848cd7e SC |
33137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33138 | (exit $ac_status); } && | |
6ebeb4c7 | 33139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33141 | (eval $ac_try) 2>&5 | |
33142 | ac_status=$? | |
33143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33144 | (exit $ac_status); }; } && | |
33145 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33147 | (eval $ac_try) 2>&5 | |
33148 | ac_status=$? | |
33149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33150 | (exit $ac_status); }; }; then | |
33151 | eval "$as_ac_var=yes" | |
33152 | else | |
33153 | echo "$as_me: failed program was:" >&5 | |
33154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33155 | ||
33156 | eval "$as_ac_var=no" | |
33157 | fi | |
ac1cb8d3 VS |
33158 | rm -f conftest.err conftest.$ac_objext \ |
33159 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33160 | fi |
33161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33162 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33163 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33164 | cat >>confdefs.h <<_ACEOF | |
33165 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33166 | _ACEOF | |
33167 | ||
33168 | fi | |
33169 | done | |
33170 | ||
33171 | ||
33172 | if test "$ac_cv_func_sigaction" = "no"; then | |
33173 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
33174 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
33175 | wxUSE_ON_FATAL_EXCEPTION=no | |
33176 | fi | |
33177 | ||
33178 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
33179 | ||
33180 | ||
33181 | ac_ext=cc | |
33182 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33183 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33184 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33185 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33186 | ||
33187 | ||
33188 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
33189 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
33190 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
33191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33192 | else | |
33193 | ||
33194 | cat >conftest.$ac_ext <<_ACEOF | |
33195 | /* confdefs.h. */ | |
33196 | _ACEOF | |
33197 | cat confdefs.h >>conftest.$ac_ext | |
33198 | cat >>conftest.$ac_ext <<_ACEOF | |
33199 | /* end confdefs.h. */ | |
33200 | #include <signal.h> | |
33201 | int | |
33202 | main () | |
33203 | { | |
33204 | ||
33205 | extern void testSigHandler(int); | |
33206 | ||
33207 | struct sigaction sa; | |
33208 | sa.sa_handler = testSigHandler; | |
33209 | ||
33210 | ; | |
33211 | return 0; | |
33212 | } | |
33213 | _ACEOF | |
33214 | rm -f conftest.$ac_objext | |
33215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33216 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33217 | ac_status=$? |
ac1cb8d3 VS |
33218 | grep -v '^ *+' conftest.er1 >conftest.err |
33219 | rm -f conftest.er1 | |
33220 | cat conftest.err >&5 | |
a848cd7e SC |
33221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33222 | (exit $ac_status); } && | |
6ebeb4c7 | 33223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33225 | (eval $ac_try) 2>&5 | |
33226 | ac_status=$? | |
33227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33228 | (exit $ac_status); }; } && | |
33229 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33231 | (eval $ac_try) 2>&5 | |
33232 | ac_status=$? | |
33233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33234 | (exit $ac_status); }; }; then | |
33235 | ||
33236 | wx_cv_type_sa_handler=int | |
33237 | ||
33238 | else | |
33239 | echo "$as_me: failed program was:" >&5 | |
33240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33241 | ||
33242 | ||
33243 | wx_cv_type_sa_handler=void | |
33244 | ||
33245 | fi | |
ac1cb8d3 | 33246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33247 | |
33248 | fi | |
33249 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
33250 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
33251 | ||
33252 | ac_ext=c | |
33253 | ac_cpp='$CPP $CPPFLAGS' | |
33254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33257 | ||
33258 | ||
33259 | cat >>confdefs.h <<_ACEOF | |
33260 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
33261 | _ACEOF | |
33262 | ||
33263 | fi | |
33264 | fi | |
33265 | ||
eaff0f0d VZ |
33266 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
33267 | ||
33268 | ||
33269 | ac_ext=cc | |
33270 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33271 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33272 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33273 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33274 | ||
33275 | ||
33276 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
33277 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
33278 | if test "${wx_cv_func_backtrace+set}" = set; then | |
33279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33280 | else | |
33281 | ||
33282 | cat >conftest.$ac_ext <<_ACEOF | |
33283 | /* confdefs.h. */ | |
33284 | _ACEOF | |
33285 | cat confdefs.h >>conftest.$ac_ext | |
33286 | cat >>conftest.$ac_ext <<_ACEOF | |
33287 | /* end confdefs.h. */ | |
33288 | #include <execinfo.h> | |
33289 | int | |
33290 | main () | |
33291 | { | |
33292 | ||
33293 | void *trace[1]; | |
33294 | char **messages; | |
33295 | ||
33296 | backtrace(trace, 1); | |
33297 | messages = backtrace_symbols(trace, 1); | |
33298 | ||
33299 | ; | |
33300 | return 0; | |
33301 | } | |
33302 | _ACEOF | |
33303 | rm -f conftest.$ac_objext | |
33304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33305 | (eval $ac_compile) 2>conftest.er1 | |
33306 | ac_status=$? | |
33307 | grep -v '^ *+' conftest.er1 >conftest.err | |
33308 | rm -f conftest.er1 | |
33309 | cat conftest.err >&5 | |
33310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33311 | (exit $ac_status); } && | |
6ebeb4c7 | 33312 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33314 | (eval $ac_try) 2>&5 | |
33315 | ac_status=$? | |
33316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33317 | (exit $ac_status); }; } && | |
33318 | { ac_try='test -s conftest.$ac_objext' | |
33319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33320 | (eval $ac_try) 2>&5 | |
33321 | ac_status=$? | |
33322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33323 | (exit $ac_status); }; }; then | |
33324 | wx_cv_func_backtrace=yes | |
33325 | else | |
33326 | echo "$as_me: failed program was:" >&5 | |
33327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33328 | ||
33329 | wx_cv_func_backtrace=no | |
33330 | ||
33331 | fi | |
33332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33333 | ||
33334 | ||
33335 | fi | |
33336 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
33337 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
33338 | ||
33339 | ||
33340 | if test "$wx_cv_func_backtrace" = "no"; then | |
33341 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
33342 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
33343 | wxUSE_STACKWALKER=no | |
33344 | else | |
33345 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
33346 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
33347 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
33348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33349 | else | |
33350 | ||
33351 | cat >conftest.$ac_ext <<_ACEOF | |
33352 | /* confdefs.h. */ | |
33353 | _ACEOF | |
33354 | cat confdefs.h >>conftest.$ac_ext | |
33355 | cat >>conftest.$ac_ext <<_ACEOF | |
33356 | /* end confdefs.h. */ | |
33357 | #include <cxxabi.h> | |
33358 | int | |
33359 | main () | |
33360 | { | |
33361 | ||
33362 | int rc; | |
33363 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
33364 | ||
33365 | ; | |
33366 | return 0; | |
33367 | } | |
33368 | _ACEOF | |
dfe0c803 JS |
33369 | rm -f conftest.$ac_objext conftest$ac_exeext |
33370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33371 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
33372 | ac_status=$? |
33373 | grep -v '^ *+' conftest.er1 >conftest.err | |
33374 | rm -f conftest.er1 | |
33375 | cat conftest.err >&5 | |
33376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33377 | (exit $ac_status); } && | |
6ebeb4c7 | 33378 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
33379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33380 | (eval $ac_try) 2>&5 | |
33381 | ac_status=$? | |
33382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33383 | (exit $ac_status); }; } && | |
dfe0c803 | 33384 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
33385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33386 | (eval $ac_try) 2>&5 | |
33387 | ac_status=$? | |
33388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33389 | (exit $ac_status); }; }; then | |
33390 | wx_cv_func_cxa_demangle=yes | |
33391 | else | |
33392 | echo "$as_me: failed program was:" >&5 | |
33393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33394 | ||
33395 | wx_cv_func_cxa_demangle=no | |
33396 | ||
33397 | fi | |
dfe0c803 JS |
33398 | rm -f conftest.err conftest.$ac_objext \ |
33399 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
33400 | |
33401 | ||
33402 | fi | |
33403 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
33404 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
33405 | ||
33406 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
33407 | cat >>confdefs.h <<\_ACEOF | |
33408 | #define HAVE_CXA_DEMANGLE 1 | |
33409 | _ACEOF | |
33410 | ||
33411 | fi | |
33412 | fi | |
33413 | ||
33414 | ac_ext=c | |
33415 | ac_cpp='$CPP $CPPFLAGS' | |
33416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33419 | ||
33420 | fi | |
33421 | ||
898beab1 DE |
33422 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
33423 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
33424 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
33425 | wxUSE_STACKWALKER=no | |
33426 | fi | |
33427 | ||
33428 | ||
a848cd7e SC |
33429 | |
33430 | ||
33431 | for ac_func in mkstemp mktemp | |
33432 | do | |
33433 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33434 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33435 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33436 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33438 | else | |
33439 | cat >conftest.$ac_ext <<_ACEOF | |
33440 | /* confdefs.h. */ | |
33441 | _ACEOF | |
33442 | cat confdefs.h >>conftest.$ac_ext | |
33443 | cat >>conftest.$ac_ext <<_ACEOF | |
33444 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33445 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33446 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33447 | #define $ac_func innocuous_$ac_func | |
33448 | ||
a848cd7e SC |
33449 | /* System header to define __stub macros and hopefully few prototypes, |
33450 | which can conflict with char $ac_func (); below. | |
33451 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33452 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33453 | |
a848cd7e SC |
33454 | #ifdef __STDC__ |
33455 | # include <limits.h> | |
33456 | #else | |
33457 | # include <assert.h> | |
33458 | #endif | |
ac1cb8d3 VS |
33459 | |
33460 | #undef $ac_func | |
33461 | ||
a848cd7e SC |
33462 | /* Override any gcc2 internal prototype to avoid an error. */ |
33463 | #ifdef __cplusplus | |
33464 | extern "C" | |
33465 | { | |
33466 | #endif | |
33467 | /* We use char because int might match the return type of a gcc2 | |
33468 | builtin and then its argument prototype would still apply. */ | |
33469 | char $ac_func (); | |
33470 | /* The GNU C library defines this for functions which it implements | |
33471 | to always fail with ENOSYS. Some functions are actually named | |
33472 | something starting with __ and the normal name is an alias. */ | |
33473 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33474 | choke me | |
33475 | #else | |
33476 | char (*f) () = $ac_func; | |
33477 | #endif | |
33478 | #ifdef __cplusplus | |
33479 | } | |
33480 | #endif | |
33481 | ||
33482 | int | |
33483 | main () | |
33484 | { | |
33485 | return f != $ac_func; | |
33486 | ; | |
33487 | return 0; | |
33488 | } | |
33489 | _ACEOF | |
33490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33492 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33493 | ac_status=$? |
ac1cb8d3 VS |
33494 | grep -v '^ *+' conftest.er1 >conftest.err |
33495 | rm -f conftest.er1 | |
33496 | cat conftest.err >&5 | |
a848cd7e SC |
33497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33498 | (exit $ac_status); } && | |
6ebeb4c7 | 33499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33501 | (eval $ac_try) 2>&5 | |
33502 | ac_status=$? | |
33503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33504 | (exit $ac_status); }; } && | |
33505 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33507 | (eval $ac_try) 2>&5 | |
33508 | ac_status=$? | |
33509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33510 | (exit $ac_status); }; }; then | |
33511 | eval "$as_ac_var=yes" | |
33512 | else | |
33513 | echo "$as_me: failed program was:" >&5 | |
33514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33515 | ||
33516 | eval "$as_ac_var=no" | |
33517 | fi | |
ac1cb8d3 VS |
33518 | rm -f conftest.err conftest.$ac_objext \ |
33519 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33520 | fi |
33521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33522 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33523 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33524 | cat >>confdefs.h <<_ACEOF | |
33525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33526 | _ACEOF | |
33527 | break | |
33528 | fi | |
33529 | done | |
33530 | ||
33531 | ||
33532 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
33533 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
33534 | if test "${wx_cv_func_statfs+set}" = set; then | |
33535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33536 | else | |
33537 | cat >conftest.$ac_ext <<_ACEOF | |
33538 | /* confdefs.h. */ | |
33539 | _ACEOF | |
33540 | cat confdefs.h >>conftest.$ac_ext | |
33541 | cat >>conftest.$ac_ext <<_ACEOF | |
33542 | /* end confdefs.h. */ | |
33543 | ||
33544 | #if defined(__BSD__) | |
84ae7ca4 VZ |
33545 | #include <sys/param.h> |
33546 | #include <sys/mount.h> | |
a848cd7e | 33547 | #else |
84ae7ca4 | 33548 | #include <sys/vfs.h> |
a848cd7e SC |
33549 | #endif |
33550 | ||
33551 | int | |
33552 | main () | |
33553 | { | |
33554 | ||
33555 | long l; | |
33556 | struct statfs fs; | |
33557 | statfs("/", &fs); | |
33558 | l = fs.f_bsize; | |
33559 | l += fs.f_blocks; | |
33560 | l += fs.f_bavail; | |
33561 | ||
33562 | ; | |
33563 | return 0; | |
33564 | } | |
33565 | _ACEOF | |
33566 | rm -f conftest.$ac_objext | |
33567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33568 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33569 | ac_status=$? |
ac1cb8d3 VS |
33570 | grep -v '^ *+' conftest.er1 >conftest.err |
33571 | rm -f conftest.er1 | |
33572 | cat conftest.err >&5 | |
a848cd7e SC |
33573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33574 | (exit $ac_status); } && | |
6ebeb4c7 | 33575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33577 | (eval $ac_try) 2>&5 | |
33578 | ac_status=$? | |
33579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33580 | (exit $ac_status); }; } && | |
33581 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33583 | (eval $ac_try) 2>&5 | |
33584 | ac_status=$? | |
33585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33586 | (exit $ac_status); }; }; then | |
84ae7ca4 | 33587 | wx_cv_func_statfs=yes |
a848cd7e SC |
33588 | else |
33589 | echo "$as_me: failed program was:" >&5 | |
33590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33591 | ||
84ae7ca4 | 33592 | wx_cv_func_statfs=no |
a848cd7e SC |
33593 | |
33594 | fi | |
ac1cb8d3 | 33595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33596 | |
33597 | fi | |
33598 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
33599 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
33600 | ||
33601 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
33602 | |
33603 | ||
33604 | ac_ext=cc | |
33605 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33606 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33607 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33608 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33609 | ||
33610 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
33611 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
33612 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
33613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33614 | else | |
0683aca6 VZ |
33615 | cat >conftest.$ac_ext <<_ACEOF |
33616 | /* confdefs.h. */ | |
33617 | _ACEOF | |
33618 | cat confdefs.h >>conftest.$ac_ext | |
33619 | cat >>conftest.$ac_ext <<_ACEOF | |
33620 | /* end confdefs.h. */ | |
84ae7ca4 | 33621 | |
0683aca6 VZ |
33622 | #if defined(__BSD__) |
33623 | #include <sys/param.h> | |
33624 | #include <sys/mount.h> | |
33625 | #else | |
33626 | #include <sys/vfs.h> | |
33627 | #endif | |
33628 | ||
33629 | int | |
33630 | main () | |
33631 | { | |
33632 | ||
33633 | struct statfs fs; | |
33634 | statfs("", &fs); | |
33635 | ||
33636 | ; | |
33637 | return 0; | |
33638 | } | |
33639 | _ACEOF | |
33640 | rm -f conftest.$ac_objext | |
33641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33642 | (eval $ac_compile) 2>conftest.er1 | |
33643 | ac_status=$? | |
33644 | grep -v '^ *+' conftest.er1 >conftest.err | |
33645 | rm -f conftest.er1 | |
33646 | cat conftest.err >&5 | |
33647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33648 | (exit $ac_status); } && | |
33649 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
33650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33651 | (eval $ac_try) 2>&5 | |
33652 | ac_status=$? | |
33653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33654 | (exit $ac_status); }; } && | |
33655 | { ac_try='test -s conftest.$ac_objext' | |
33656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33657 | (eval $ac_try) 2>&5 | |
33658 | ac_status=$? | |
33659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33660 | (exit $ac_status); }; }; then | |
33661 | wx_cv_func_statfs_decl=yes | |
33662 | else | |
33663 | echo "$as_me: failed program was:" >&5 | |
33664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33665 | ||
33666 | wx_cv_func_statfs_decl=no | |
33667 | ||
33668 | fi | |
33669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
33670 | |
33671 | fi | |
33672 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
33673 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
33674 | ac_ext=c | |
33675 | ac_cpp='$CPP $CPPFLAGS' | |
33676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33679 | ||
33680 | ||
33681 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
33682 | cat >>confdefs.h <<\_ACEOF | |
33683 | #define HAVE_STATFS_DECL 1 | |
33684 | _ACEOF | |
33685 | ||
33686 | fi | |
33687 | ||
a848cd7e SC |
33688 | wx_cv_type_statvfs_t="struct statfs" |
33689 | cat >>confdefs.h <<\_ACEOF | |
33690 | #define HAVE_STATFS 1 | |
33691 | _ACEOF | |
33692 | ||
33693 | else | |
33694 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
33695 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
33696 | if test "${wx_cv_func_statvfs+set}" = set; then | |
33697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33698 | else | |
33699 | cat >conftest.$ac_ext <<_ACEOF | |
33700 | /* confdefs.h. */ | |
33701 | _ACEOF | |
33702 | cat confdefs.h >>conftest.$ac_ext | |
33703 | cat >>conftest.$ac_ext <<_ACEOF | |
33704 | /* end confdefs.h. */ | |
33705 | ||
33706 | #include <stddef.h> | |
33707 | #include <sys/statvfs.h> | |
33708 | ||
33709 | int | |
33710 | main () | |
33711 | { | |
33712 | ||
33713 | statvfs("/", NULL); | |
33714 | ||
33715 | ; | |
33716 | return 0; | |
33717 | } | |
33718 | _ACEOF | |
33719 | rm -f conftest.$ac_objext | |
33720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33721 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33722 | ac_status=$? |
ac1cb8d3 VS |
33723 | grep -v '^ *+' conftest.er1 >conftest.err |
33724 | rm -f conftest.er1 | |
33725 | cat conftest.err >&5 | |
a848cd7e SC |
33726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33727 | (exit $ac_status); } && | |
6ebeb4c7 | 33728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33730 | (eval $ac_try) 2>&5 | |
33731 | ac_status=$? | |
33732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33733 | (exit $ac_status); }; } && | |
33734 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33736 | (eval $ac_try) 2>&5 | |
33737 | ac_status=$? | |
33738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33739 | (exit $ac_status); }; }; then | |
33740 | wx_cv_func_statvfs=yes | |
33741 | else | |
33742 | echo "$as_me: failed program was:" >&5 | |
33743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33744 | ||
33745 | wx_cv_func_statvfs=no | |
33746 | ||
33747 | fi | |
ac1cb8d3 | 33748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33749 | |
33750 | fi | |
33751 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
33752 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
33753 | ||
33754 | if test "$wx_cv_func_statvfs" = "yes"; then | |
33755 | ||
33756 | ||
33757 | ac_ext=cc | |
33758 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33759 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33760 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33761 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33762 | ||
33763 | ||
33764 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
33765 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
33766 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
33767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33768 | else | |
33769 | cat >conftest.$ac_ext <<_ACEOF | |
33770 | /* confdefs.h. */ | |
33771 | _ACEOF | |
33772 | cat confdefs.h >>conftest.$ac_ext | |
33773 | cat >>conftest.$ac_ext <<_ACEOF | |
33774 | /* end confdefs.h. */ | |
33775 | ||
33776 | #include <sys/statvfs.h> | |
33777 | ||
33778 | int | |
33779 | main () | |
33780 | { | |
33781 | ||
33782 | long l; | |
33783 | statvfs_t fs; | |
33784 | statvfs("/", &fs); | |
33785 | l = fs.f_bsize; | |
33786 | l += fs.f_blocks; | |
33787 | l += fs.f_bavail; | |
33788 | ||
33789 | ; | |
33790 | return 0; | |
33791 | } | |
33792 | _ACEOF | |
33793 | rm -f conftest.$ac_objext | |
33794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33796 | ac_status=$? |
ac1cb8d3 VS |
33797 | grep -v '^ *+' conftest.er1 >conftest.err |
33798 | rm -f conftest.er1 | |
33799 | cat conftest.err >&5 | |
a848cd7e SC |
33800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33801 | (exit $ac_status); } && | |
6ebeb4c7 | 33802 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33804 | (eval $ac_try) 2>&5 | |
33805 | ac_status=$? | |
33806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33807 | (exit $ac_status); }; } && | |
33808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33810 | (eval $ac_try) 2>&5 | |
33811 | ac_status=$? | |
33812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33813 | (exit $ac_status); }; }; then | |
33814 | wx_cv_type_statvfs_t=statvfs_t | |
33815 | else | |
33816 | echo "$as_me: failed program was:" >&5 | |
33817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33818 | ||
33819 | ||
33820 | cat >conftest.$ac_ext <<_ACEOF | |
33821 | /* confdefs.h. */ | |
33822 | _ACEOF | |
33823 | cat confdefs.h >>conftest.$ac_ext | |
33824 | cat >>conftest.$ac_ext <<_ACEOF | |
33825 | /* end confdefs.h. */ | |
33826 | ||
33827 | #include <sys/statvfs.h> | |
33828 | ||
33829 | int | |
33830 | main () | |
33831 | { | |
33832 | ||
33833 | long l; | |
33834 | struct statvfs fs; | |
33835 | statvfs("/", &fs); | |
33836 | l = fs.f_bsize; | |
33837 | l += fs.f_blocks; | |
33838 | l += fs.f_bavail; | |
33839 | ||
33840 | ; | |
33841 | return 0; | |
33842 | } | |
33843 | _ACEOF | |
33844 | rm -f conftest.$ac_objext | |
33845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33846 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33847 | ac_status=$? |
ac1cb8d3 VS |
33848 | grep -v '^ *+' conftest.er1 >conftest.err |
33849 | rm -f conftest.er1 | |
33850 | cat conftest.err >&5 | |
a848cd7e SC |
33851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33852 | (exit $ac_status); } && | |
6ebeb4c7 | 33853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33855 | (eval $ac_try) 2>&5 | |
33856 | ac_status=$? | |
33857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33858 | (exit $ac_status); }; } && | |
33859 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33861 | (eval $ac_try) 2>&5 | |
33862 | ac_status=$? | |
33863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33864 | (exit $ac_status); }; }; then | |
33865 | wx_cv_type_statvfs_t="struct statvfs" | |
33866 | else | |
33867 | echo "$as_me: failed program was:" >&5 | |
33868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33869 | ||
33870 | wx_cv_type_statvfs_t="unknown" | |
33871 | ||
33872 | fi | |
ac1cb8d3 | 33873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33874 | |
33875 | ||
33876 | fi | |
ac1cb8d3 | 33877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33878 | |
33879 | fi | |
33880 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
33881 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
33882 | ||
33883 | ac_ext=c | |
33884 | ac_cpp='$CPP $CPPFLAGS' | |
33885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33888 | ||
33889 | ||
33890 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
33891 | cat >>confdefs.h <<\_ACEOF | |
33892 | #define HAVE_STATVFS 1 | |
33893 | _ACEOF | |
33894 | ||
33895 | fi | |
33896 | else | |
33897 | wx_cv_type_statvfs_t="unknown" | |
33898 | fi | |
33899 | fi | |
33900 | ||
33901 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
33902 | cat >>confdefs.h <<_ACEOF | |
33903 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
33904 | _ACEOF | |
33905 | ||
33906 | else | |
33907 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
33908 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
33909 | fi | |
33910 | ||
33911 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
33912 | ||
33913 | ||
33914 | for ac_func in fcntl flock | |
33915 | do | |
33916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33917 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33919 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33921 | else | |
33922 | cat >conftest.$ac_ext <<_ACEOF | |
33923 | /* confdefs.h. */ | |
33924 | _ACEOF | |
33925 | cat confdefs.h >>conftest.$ac_ext | |
33926 | cat >>conftest.$ac_ext <<_ACEOF | |
33927 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33928 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33929 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33930 | #define $ac_func innocuous_$ac_func | |
33931 | ||
a848cd7e SC |
33932 | /* System header to define __stub macros and hopefully few prototypes, |
33933 | which can conflict with char $ac_func (); below. | |
33934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33935 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33936 | |
a848cd7e SC |
33937 | #ifdef __STDC__ |
33938 | # include <limits.h> | |
33939 | #else | |
33940 | # include <assert.h> | |
33941 | #endif | |
ac1cb8d3 VS |
33942 | |
33943 | #undef $ac_func | |
33944 | ||
a848cd7e SC |
33945 | /* Override any gcc2 internal prototype to avoid an error. */ |
33946 | #ifdef __cplusplus | |
33947 | extern "C" | |
33948 | { | |
33949 | #endif | |
33950 | /* We use char because int might match the return type of a gcc2 | |
33951 | builtin and then its argument prototype would still apply. */ | |
33952 | char $ac_func (); | |
33953 | /* The GNU C library defines this for functions which it implements | |
33954 | to always fail with ENOSYS. Some functions are actually named | |
33955 | something starting with __ and the normal name is an alias. */ | |
33956 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33957 | choke me | |
33958 | #else | |
33959 | char (*f) () = $ac_func; | |
33960 | #endif | |
33961 | #ifdef __cplusplus | |
33962 | } | |
33963 | #endif | |
33964 | ||
33965 | int | |
33966 | main () | |
33967 | { | |
33968 | return f != $ac_func; | |
33969 | ; | |
33970 | return 0; | |
33971 | } | |
33972 | _ACEOF | |
33973 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33975 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33976 | ac_status=$? |
ac1cb8d3 VS |
33977 | grep -v '^ *+' conftest.er1 >conftest.err |
33978 | rm -f conftest.er1 | |
33979 | cat conftest.err >&5 | |
a848cd7e SC |
33980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33981 | (exit $ac_status); } && | |
6ebeb4c7 | 33982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33984 | (eval $ac_try) 2>&5 | |
33985 | ac_status=$? | |
33986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33987 | (exit $ac_status); }; } && | |
33988 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33990 | (eval $ac_try) 2>&5 | |
33991 | ac_status=$? | |
33992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33993 | (exit $ac_status); }; }; then | |
33994 | eval "$as_ac_var=yes" | |
33995 | else | |
33996 | echo "$as_me: failed program was:" >&5 | |
33997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33998 | ||
33999 | eval "$as_ac_var=no" | |
34000 | fi | |
ac1cb8d3 VS |
34001 | rm -f conftest.err conftest.$ac_objext \ |
34002 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34003 | fi |
34004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34005 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34006 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34007 | cat >>confdefs.h <<_ACEOF | |
34008 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34009 | _ACEOF | |
34010 | break | |
34011 | fi | |
34012 | done | |
34013 | ||
34014 | ||
34015 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
34016 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
34017 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
34018 | wxUSE_SNGLINST_CHECKER=no | |
34019 | fi | |
34020 | fi | |
34021 | ||
34022 | ||
34023 | for ac_func in timegm | |
34024 | do | |
34025 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34026 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34027 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34028 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34030 | else | |
34031 | cat >conftest.$ac_ext <<_ACEOF | |
34032 | /* confdefs.h. */ | |
34033 | _ACEOF | |
34034 | cat confdefs.h >>conftest.$ac_ext | |
34035 | cat >>conftest.$ac_ext <<_ACEOF | |
34036 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34037 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34039 | #define $ac_func innocuous_$ac_func | |
34040 | ||
a848cd7e SC |
34041 | /* System header to define __stub macros and hopefully few prototypes, |
34042 | which can conflict with char $ac_func (); below. | |
34043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34044 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34045 | |
a848cd7e SC |
34046 | #ifdef __STDC__ |
34047 | # include <limits.h> | |
34048 | #else | |
34049 | # include <assert.h> | |
34050 | #endif | |
ac1cb8d3 VS |
34051 | |
34052 | #undef $ac_func | |
34053 | ||
a848cd7e SC |
34054 | /* Override any gcc2 internal prototype to avoid an error. */ |
34055 | #ifdef __cplusplus | |
34056 | extern "C" | |
34057 | { | |
34058 | #endif | |
34059 | /* We use char because int might match the return type of a gcc2 | |
34060 | builtin and then its argument prototype would still apply. */ | |
34061 | char $ac_func (); | |
34062 | /* The GNU C library defines this for functions which it implements | |
34063 | to always fail with ENOSYS. Some functions are actually named | |
34064 | something starting with __ and the normal name is an alias. */ | |
34065 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34066 | choke me | |
34067 | #else | |
34068 | char (*f) () = $ac_func; | |
34069 | #endif | |
34070 | #ifdef __cplusplus | |
34071 | } | |
34072 | #endif | |
34073 | ||
34074 | int | |
34075 | main () | |
34076 | { | |
34077 | return f != $ac_func; | |
34078 | ; | |
34079 | return 0; | |
34080 | } | |
34081 | _ACEOF | |
34082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34084 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34085 | ac_status=$? |
ac1cb8d3 VS |
34086 | grep -v '^ *+' conftest.er1 >conftest.err |
34087 | rm -f conftest.er1 | |
34088 | cat conftest.err >&5 | |
a848cd7e SC |
34089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34090 | (exit $ac_status); } && | |
6ebeb4c7 | 34091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34093 | (eval $ac_try) 2>&5 | |
34094 | ac_status=$? | |
34095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34096 | (exit $ac_status); }; } && | |
34097 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34099 | (eval $ac_try) 2>&5 | |
34100 | ac_status=$? | |
34101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34102 | (exit $ac_status); }; }; then | |
34103 | eval "$as_ac_var=yes" | |
34104 | else | |
34105 | echo "$as_me: failed program was:" >&5 | |
34106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34107 | ||
34108 | eval "$as_ac_var=no" | |
34109 | fi | |
ac1cb8d3 VS |
34110 | rm -f conftest.err conftest.$ac_objext \ |
34111 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34112 | fi |
34113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34114 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34115 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34116 | cat >>confdefs.h <<_ACEOF | |
34117 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34118 | _ACEOF | |
34119 | ||
34120 | fi | |
34121 | done | |
34122 | ||
34123 | ||
34124 | ||
34125 | ||
34126 | for ac_func in putenv setenv | |
34127 | do | |
34128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34131 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34133 | else | |
34134 | cat >conftest.$ac_ext <<_ACEOF | |
34135 | /* confdefs.h. */ | |
34136 | _ACEOF | |
34137 | cat confdefs.h >>conftest.$ac_ext | |
34138 | cat >>conftest.$ac_ext <<_ACEOF | |
34139 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34142 | #define $ac_func innocuous_$ac_func | |
34143 | ||
a848cd7e SC |
34144 | /* System header to define __stub macros and hopefully few prototypes, |
34145 | which can conflict with char $ac_func (); below. | |
34146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34147 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34148 | |
a848cd7e SC |
34149 | #ifdef __STDC__ |
34150 | # include <limits.h> | |
34151 | #else | |
34152 | # include <assert.h> | |
34153 | #endif | |
ac1cb8d3 VS |
34154 | |
34155 | #undef $ac_func | |
34156 | ||
a848cd7e SC |
34157 | /* Override any gcc2 internal prototype to avoid an error. */ |
34158 | #ifdef __cplusplus | |
34159 | extern "C" | |
34160 | { | |
34161 | #endif | |
34162 | /* We use char because int might match the return type of a gcc2 | |
34163 | builtin and then its argument prototype would still apply. */ | |
34164 | char $ac_func (); | |
34165 | /* The GNU C library defines this for functions which it implements | |
34166 | to always fail with ENOSYS. Some functions are actually named | |
34167 | something starting with __ and the normal name is an alias. */ | |
34168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34169 | choke me | |
34170 | #else | |
34171 | char (*f) () = $ac_func; | |
34172 | #endif | |
34173 | #ifdef __cplusplus | |
34174 | } | |
34175 | #endif | |
34176 | ||
34177 | int | |
34178 | main () | |
34179 | { | |
34180 | return f != $ac_func; | |
34181 | ; | |
34182 | return 0; | |
34183 | } | |
34184 | _ACEOF | |
34185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34187 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34188 | ac_status=$? |
ac1cb8d3 VS |
34189 | grep -v '^ *+' conftest.er1 >conftest.err |
34190 | rm -f conftest.er1 | |
34191 | cat conftest.err >&5 | |
a848cd7e SC |
34192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34193 | (exit $ac_status); } && | |
6ebeb4c7 | 34194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34196 | (eval $ac_try) 2>&5 | |
34197 | ac_status=$? | |
34198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34199 | (exit $ac_status); }; } && | |
34200 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34202 | (eval $ac_try) 2>&5 | |
34203 | ac_status=$? | |
34204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34205 | (exit $ac_status); }; }; then | |
34206 | eval "$as_ac_var=yes" | |
34207 | else | |
34208 | echo "$as_me: failed program was:" >&5 | |
34209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34210 | ||
34211 | eval "$as_ac_var=no" | |
34212 | fi | |
ac1cb8d3 VS |
34213 | rm -f conftest.err conftest.$ac_objext \ |
34214 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34215 | fi |
34216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34217 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34218 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34219 | cat >>confdefs.h <<_ACEOF | |
34220 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34221 | _ACEOF | |
34222 | break | |
34223 | fi | |
34224 | done | |
34225 | ||
34226 | ||
34227 | HAVE_SOME_SLEEP_FUNC=0 | |
34228 | if test "$USE_BEOS" = 1; then | |
34229 | cat >>confdefs.h <<\_ACEOF | |
34230 | #define HAVE_SLEEP 1 | |
34231 | _ACEOF | |
34232 | ||
34233 | HAVE_SOME_SLEEP_FUNC=1 | |
34234 | fi | |
34235 | ||
34236 | if test "$USE_DARWIN" = 1; then | |
34237 | cat >>confdefs.h <<\_ACEOF | |
34238 | #define HAVE_USLEEP 1 | |
34239 | _ACEOF | |
34240 | ||
34241 | HAVE_SOME_SLEEP_FUNC=1 | |
34242 | fi | |
34243 | ||
34244 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
34245 | POSIX4_LINK= | |
34246 | ||
34247 | for ac_func in nanosleep | |
34248 | do | |
34249 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34250 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34251 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34252 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34254 | else | |
34255 | cat >conftest.$ac_ext <<_ACEOF | |
34256 | /* confdefs.h. */ | |
34257 | _ACEOF | |
34258 | cat confdefs.h >>conftest.$ac_ext | |
34259 | cat >>conftest.$ac_ext <<_ACEOF | |
34260 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34261 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34262 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34263 | #define $ac_func innocuous_$ac_func | |
34264 | ||
a848cd7e SC |
34265 | /* System header to define __stub macros and hopefully few prototypes, |
34266 | which can conflict with char $ac_func (); below. | |
34267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34268 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34269 | |
a848cd7e SC |
34270 | #ifdef __STDC__ |
34271 | # include <limits.h> | |
34272 | #else | |
34273 | # include <assert.h> | |
34274 | #endif | |
ac1cb8d3 VS |
34275 | |
34276 | #undef $ac_func | |
34277 | ||
a848cd7e SC |
34278 | /* Override any gcc2 internal prototype to avoid an error. */ |
34279 | #ifdef __cplusplus | |
34280 | extern "C" | |
34281 | { | |
34282 | #endif | |
34283 | /* We use char because int might match the return type of a gcc2 | |
34284 | builtin and then its argument prototype would still apply. */ | |
34285 | char $ac_func (); | |
34286 | /* The GNU C library defines this for functions which it implements | |
34287 | to always fail with ENOSYS. Some functions are actually named | |
34288 | something starting with __ and the normal name is an alias. */ | |
34289 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34290 | choke me | |
34291 | #else | |
34292 | char (*f) () = $ac_func; | |
34293 | #endif | |
34294 | #ifdef __cplusplus | |
34295 | } | |
34296 | #endif | |
34297 | ||
34298 | int | |
34299 | main () | |
34300 | { | |
34301 | return f != $ac_func; | |
34302 | ; | |
34303 | return 0; | |
34304 | } | |
34305 | _ACEOF | |
34306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34308 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34309 | ac_status=$? |
ac1cb8d3 VS |
34310 | grep -v '^ *+' conftest.er1 >conftest.err |
34311 | rm -f conftest.er1 | |
34312 | cat conftest.err >&5 | |
a848cd7e SC |
34313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34314 | (exit $ac_status); } && | |
6ebeb4c7 | 34315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34317 | (eval $ac_try) 2>&5 | |
34318 | ac_status=$? | |
34319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34320 | (exit $ac_status); }; } && | |
34321 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34323 | (eval $ac_try) 2>&5 | |
34324 | ac_status=$? | |
34325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34326 | (exit $ac_status); }; }; then | |
34327 | eval "$as_ac_var=yes" | |
34328 | else | |
34329 | echo "$as_me: failed program was:" >&5 | |
34330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34331 | ||
34332 | eval "$as_ac_var=no" | |
34333 | fi | |
ac1cb8d3 VS |
34334 | rm -f conftest.err conftest.$ac_objext \ |
34335 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34336 | fi |
34337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34338 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34339 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34340 | cat >>confdefs.h <<_ACEOF | |
34341 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34342 | _ACEOF | |
34343 | cat >>confdefs.h <<\_ACEOF | |
34344 | #define HAVE_NANOSLEEP 1 | |
34345 | _ACEOF | |
34346 | ||
34347 | else | |
34348 | ||
34349 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
34350 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
34351 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
34352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34353 | else | |
34354 | ac_check_lib_save_LIBS=$LIBS | |
34355 | LIBS="-lposix4 $LIBS" | |
34356 | cat >conftest.$ac_ext <<_ACEOF | |
34357 | /* confdefs.h. */ | |
34358 | _ACEOF | |
34359 | cat confdefs.h >>conftest.$ac_ext | |
34360 | cat >>conftest.$ac_ext <<_ACEOF | |
34361 | /* end confdefs.h. */ | |
34362 | ||
34363 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34364 | #ifdef __cplusplus | |
34365 | extern "C" | |
34366 | #endif | |
34367 | /* We use char because int might match the return type of a gcc2 | |
34368 | builtin and then its argument prototype would still apply. */ | |
34369 | char nanosleep (); | |
34370 | int | |
34371 | main () | |
34372 | { | |
34373 | nanosleep (); | |
34374 | ; | |
34375 | return 0; | |
34376 | } | |
34377 | _ACEOF | |
34378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34380 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34381 | ac_status=$? |
ac1cb8d3 VS |
34382 | grep -v '^ *+' conftest.er1 >conftest.err |
34383 | rm -f conftest.er1 | |
34384 | cat conftest.err >&5 | |
a848cd7e SC |
34385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34386 | (exit $ac_status); } && | |
6ebeb4c7 | 34387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34389 | (eval $ac_try) 2>&5 | |
34390 | ac_status=$? | |
34391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34392 | (exit $ac_status); }; } && | |
34393 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34395 | (eval $ac_try) 2>&5 | |
34396 | ac_status=$? | |
34397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34398 | (exit $ac_status); }; }; then | |
34399 | ac_cv_lib_posix4_nanosleep=yes | |
34400 | else | |
34401 | echo "$as_me: failed program was:" >&5 | |
34402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34403 | ||
34404 | ac_cv_lib_posix4_nanosleep=no | |
34405 | fi | |
ac1cb8d3 VS |
34406 | rm -f conftest.err conftest.$ac_objext \ |
34407 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34408 | LIBS=$ac_check_lib_save_LIBS |
34409 | fi | |
34410 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
34411 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
34412 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
34413 | ||
34414 | cat >>confdefs.h <<\_ACEOF | |
34415 | #define HAVE_NANOSLEEP 1 | |
34416 | _ACEOF | |
34417 | ||
34418 | POSIX4_LINK=" -lposix4" | |
34419 | ||
34420 | else | |
34421 | ||
34422 | ||
34423 | for ac_func in usleep | |
34424 | do | |
34425 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34426 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34427 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34428 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34430 | else | |
34431 | cat >conftest.$ac_ext <<_ACEOF | |
34432 | /* confdefs.h. */ | |
34433 | _ACEOF | |
34434 | cat confdefs.h >>conftest.$ac_ext | |
34435 | cat >>conftest.$ac_ext <<_ACEOF | |
34436 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34437 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34439 | #define $ac_func innocuous_$ac_func | |
34440 | ||
a848cd7e SC |
34441 | /* System header to define __stub macros and hopefully few prototypes, |
34442 | which can conflict with char $ac_func (); below. | |
34443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34444 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34445 | |
a848cd7e SC |
34446 | #ifdef __STDC__ |
34447 | # include <limits.h> | |
34448 | #else | |
34449 | # include <assert.h> | |
34450 | #endif | |
ac1cb8d3 VS |
34451 | |
34452 | #undef $ac_func | |
34453 | ||
a848cd7e SC |
34454 | /* Override any gcc2 internal prototype to avoid an error. */ |
34455 | #ifdef __cplusplus | |
34456 | extern "C" | |
34457 | { | |
34458 | #endif | |
34459 | /* We use char because int might match the return type of a gcc2 | |
34460 | builtin and then its argument prototype would still apply. */ | |
34461 | char $ac_func (); | |
34462 | /* The GNU C library defines this for functions which it implements | |
34463 | to always fail with ENOSYS. Some functions are actually named | |
34464 | something starting with __ and the normal name is an alias. */ | |
34465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34466 | choke me | |
34467 | #else | |
34468 | char (*f) () = $ac_func; | |
34469 | #endif | |
34470 | #ifdef __cplusplus | |
34471 | } | |
34472 | #endif | |
34473 | ||
34474 | int | |
34475 | main () | |
34476 | { | |
34477 | return f != $ac_func; | |
34478 | ; | |
34479 | return 0; | |
34480 | } | |
34481 | _ACEOF | |
34482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34484 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34485 | ac_status=$? |
ac1cb8d3 VS |
34486 | grep -v '^ *+' conftest.er1 >conftest.err |
34487 | rm -f conftest.er1 | |
34488 | cat conftest.err >&5 | |
a848cd7e SC |
34489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34490 | (exit $ac_status); } && | |
6ebeb4c7 | 34491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34493 | (eval $ac_try) 2>&5 | |
34494 | ac_status=$? | |
34495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34496 | (exit $ac_status); }; } && | |
34497 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34499 | (eval $ac_try) 2>&5 | |
34500 | ac_status=$? | |
34501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34502 | (exit $ac_status); }; }; then | |
34503 | eval "$as_ac_var=yes" | |
34504 | else | |
34505 | echo "$as_me: failed program was:" >&5 | |
34506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34507 | ||
34508 | eval "$as_ac_var=no" | |
34509 | fi | |
ac1cb8d3 VS |
34510 | rm -f conftest.err conftest.$ac_objext \ |
34511 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34512 | fi |
34513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34514 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34515 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34516 | cat >>confdefs.h <<_ACEOF | |
34517 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34518 | _ACEOF | |
34519 | cat >>confdefs.h <<\_ACEOF | |
34520 | #define HAVE_USLEEP 1 | |
34521 | _ACEOF | |
34522 | ||
34523 | else | |
34524 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
34525 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
34526 | ||
34527 | fi | |
34528 | done | |
34529 | ||
34530 | ||
34531 | ||
34532 | fi | |
34533 | ||
34534 | ||
34535 | ||
34536 | fi | |
34537 | done | |
34538 | ||
34539 | fi | |
34540 | ||
34541 | ||
34542 | ||
34543 | for ac_func in uname gethostname | |
34544 | do | |
34545 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34546 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34547 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34548 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34550 | else | |
34551 | cat >conftest.$ac_ext <<_ACEOF | |
34552 | /* confdefs.h. */ | |
34553 | _ACEOF | |
34554 | cat confdefs.h >>conftest.$ac_ext | |
34555 | cat >>conftest.$ac_ext <<_ACEOF | |
34556 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34557 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34559 | #define $ac_func innocuous_$ac_func | |
34560 | ||
a848cd7e SC |
34561 | /* System header to define __stub macros and hopefully few prototypes, |
34562 | which can conflict with char $ac_func (); below. | |
34563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34564 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34565 | |
a848cd7e SC |
34566 | #ifdef __STDC__ |
34567 | # include <limits.h> | |
34568 | #else | |
34569 | # include <assert.h> | |
34570 | #endif | |
ac1cb8d3 VS |
34571 | |
34572 | #undef $ac_func | |
34573 | ||
a848cd7e SC |
34574 | /* Override any gcc2 internal prototype to avoid an error. */ |
34575 | #ifdef __cplusplus | |
34576 | extern "C" | |
34577 | { | |
34578 | #endif | |
34579 | /* We use char because int might match the return type of a gcc2 | |
34580 | builtin and then its argument prototype would still apply. */ | |
34581 | char $ac_func (); | |
34582 | /* The GNU C library defines this for functions which it implements | |
34583 | to always fail with ENOSYS. Some functions are actually named | |
34584 | something starting with __ and the normal name is an alias. */ | |
34585 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34586 | choke me | |
34587 | #else | |
34588 | char (*f) () = $ac_func; | |
34589 | #endif | |
34590 | #ifdef __cplusplus | |
34591 | } | |
34592 | #endif | |
34593 | ||
34594 | int | |
34595 | main () | |
34596 | { | |
34597 | return f != $ac_func; | |
34598 | ; | |
34599 | return 0; | |
34600 | } | |
34601 | _ACEOF | |
34602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34604 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34605 | ac_status=$? |
ac1cb8d3 VS |
34606 | grep -v '^ *+' conftest.er1 >conftest.err |
34607 | rm -f conftest.er1 | |
34608 | cat conftest.err >&5 | |
a848cd7e SC |
34609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34610 | (exit $ac_status); } && | |
6ebeb4c7 | 34611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34613 | (eval $ac_try) 2>&5 | |
34614 | ac_status=$? | |
34615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34616 | (exit $ac_status); }; } && | |
34617 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34619 | (eval $ac_try) 2>&5 | |
34620 | ac_status=$? | |
34621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34622 | (exit $ac_status); }; }; then | |
34623 | eval "$as_ac_var=yes" | |
34624 | else | |
34625 | echo "$as_me: failed program was:" >&5 | |
34626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34627 | ||
34628 | eval "$as_ac_var=no" | |
34629 | fi | |
ac1cb8d3 VS |
34630 | rm -f conftest.err conftest.$ac_objext \ |
34631 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34632 | fi |
34633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34634 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34635 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34636 | cat >>confdefs.h <<_ACEOF | |
34637 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34638 | _ACEOF | |
34639 | break | |
34640 | fi | |
34641 | done | |
34642 | ||
34643 | ||
34644 | ||
34645 | ||
34646 | ac_ext=cc | |
34647 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34648 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34649 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34650 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34651 | ||
34652 | ||
34653 | ||
34654 | for ac_func in strtok_r | |
34655 | do | |
34656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34657 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34659 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34661 | else | |
34662 | cat >conftest.$ac_ext <<_ACEOF | |
34663 | /* confdefs.h. */ | |
34664 | _ACEOF | |
34665 | cat confdefs.h >>conftest.$ac_ext | |
34666 | cat >>conftest.$ac_ext <<_ACEOF | |
34667 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34668 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34669 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34670 | #define $ac_func innocuous_$ac_func | |
34671 | ||
a848cd7e SC |
34672 | /* System header to define __stub macros and hopefully few prototypes, |
34673 | which can conflict with char $ac_func (); below. | |
34674 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34675 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34676 | |
a848cd7e SC |
34677 | #ifdef __STDC__ |
34678 | # include <limits.h> | |
34679 | #else | |
34680 | # include <assert.h> | |
34681 | #endif | |
ac1cb8d3 VS |
34682 | |
34683 | #undef $ac_func | |
34684 | ||
a848cd7e SC |
34685 | /* Override any gcc2 internal prototype to avoid an error. */ |
34686 | #ifdef __cplusplus | |
34687 | extern "C" | |
34688 | { | |
34689 | #endif | |
34690 | /* We use char because int might match the return type of a gcc2 | |
34691 | builtin and then its argument prototype would still apply. */ | |
34692 | char $ac_func (); | |
34693 | /* The GNU C library defines this for functions which it implements | |
34694 | to always fail with ENOSYS. Some functions are actually named | |
34695 | something starting with __ and the normal name is an alias. */ | |
34696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34697 | choke me | |
34698 | #else | |
34699 | char (*f) () = $ac_func; | |
34700 | #endif | |
34701 | #ifdef __cplusplus | |
34702 | } | |
34703 | #endif | |
34704 | ||
34705 | int | |
34706 | main () | |
34707 | { | |
34708 | return f != $ac_func; | |
34709 | ; | |
34710 | return 0; | |
34711 | } | |
34712 | _ACEOF | |
34713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34715 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34716 | ac_status=$? |
ac1cb8d3 VS |
34717 | grep -v '^ *+' conftest.er1 >conftest.err |
34718 | rm -f conftest.er1 | |
34719 | cat conftest.err >&5 | |
a848cd7e SC |
34720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34721 | (exit $ac_status); } && | |
6ebeb4c7 | 34722 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34724 | (eval $ac_try) 2>&5 | |
34725 | ac_status=$? | |
34726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34727 | (exit $ac_status); }; } && | |
34728 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34730 | (eval $ac_try) 2>&5 | |
34731 | ac_status=$? | |
34732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34733 | (exit $ac_status); }; }; then | |
34734 | eval "$as_ac_var=yes" | |
34735 | else | |
34736 | echo "$as_me: failed program was:" >&5 | |
34737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34738 | ||
34739 | eval "$as_ac_var=no" | |
34740 | fi | |
ac1cb8d3 VS |
34741 | rm -f conftest.err conftest.$ac_objext \ |
34742 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34743 | fi |
34744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34745 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34746 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34747 | cat >>confdefs.h <<_ACEOF | |
34748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34749 | _ACEOF | |
34750 | ||
34751 | fi | |
34752 | done | |
34753 | ||
34754 | ||
34755 | ac_ext=c | |
34756 | ac_cpp='$CPP $CPPFLAGS' | |
34757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34760 | ||
34761 | ||
34762 | INET_LINK= | |
34763 | ||
34764 | for ac_func in inet_addr | |
34765 | do | |
34766 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34767 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34768 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34769 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34771 | else | |
34772 | cat >conftest.$ac_ext <<_ACEOF | |
34773 | /* confdefs.h. */ | |
34774 | _ACEOF | |
34775 | cat confdefs.h >>conftest.$ac_ext | |
34776 | cat >>conftest.$ac_ext <<_ACEOF | |
34777 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34778 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34779 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34780 | #define $ac_func innocuous_$ac_func | |
34781 | ||
a848cd7e SC |
34782 | /* System header to define __stub macros and hopefully few prototypes, |
34783 | which can conflict with char $ac_func (); below. | |
34784 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34785 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34786 | |
a848cd7e SC |
34787 | #ifdef __STDC__ |
34788 | # include <limits.h> | |
34789 | #else | |
34790 | # include <assert.h> | |
34791 | #endif | |
ac1cb8d3 VS |
34792 | |
34793 | #undef $ac_func | |
34794 | ||
a848cd7e SC |
34795 | /* Override any gcc2 internal prototype to avoid an error. */ |
34796 | #ifdef __cplusplus | |
34797 | extern "C" | |
34798 | { | |
34799 | #endif | |
34800 | /* We use char because int might match the return type of a gcc2 | |
34801 | builtin and then its argument prototype would still apply. */ | |
34802 | char $ac_func (); | |
34803 | /* The GNU C library defines this for functions which it implements | |
34804 | to always fail with ENOSYS. Some functions are actually named | |
34805 | something starting with __ and the normal name is an alias. */ | |
34806 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34807 | choke me | |
34808 | #else | |
34809 | char (*f) () = $ac_func; | |
34810 | #endif | |
34811 | #ifdef __cplusplus | |
34812 | } | |
34813 | #endif | |
34814 | ||
34815 | int | |
34816 | main () | |
34817 | { | |
34818 | return f != $ac_func; | |
34819 | ; | |
34820 | return 0; | |
34821 | } | |
34822 | _ACEOF | |
34823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34825 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34826 | ac_status=$? |
ac1cb8d3 VS |
34827 | grep -v '^ *+' conftest.er1 >conftest.err |
34828 | rm -f conftest.er1 | |
34829 | cat conftest.err >&5 | |
a848cd7e SC |
34830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34831 | (exit $ac_status); } && | |
6ebeb4c7 | 34832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34834 | (eval $ac_try) 2>&5 | |
34835 | ac_status=$? | |
34836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34837 | (exit $ac_status); }; } && | |
34838 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34840 | (eval $ac_try) 2>&5 | |
34841 | ac_status=$? | |
34842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34843 | (exit $ac_status); }; }; then | |
34844 | eval "$as_ac_var=yes" | |
34845 | else | |
34846 | echo "$as_me: failed program was:" >&5 | |
34847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34848 | ||
34849 | eval "$as_ac_var=no" | |
34850 | fi | |
ac1cb8d3 VS |
34851 | rm -f conftest.err conftest.$ac_objext \ |
34852 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34853 | fi |
34854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34855 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34856 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34857 | cat >>confdefs.h <<_ACEOF | |
34858 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34859 | _ACEOF | |
34860 | cat >>confdefs.h <<\_ACEOF | |
34861 | #define HAVE_INET_ADDR 1 | |
34862 | _ACEOF | |
34863 | ||
34864 | else | |
34865 | ||
34866 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
34867 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
34868 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
34869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34870 | else | |
34871 | ac_check_lib_save_LIBS=$LIBS | |
34872 | LIBS="-lnsl $LIBS" | |
34873 | cat >conftest.$ac_ext <<_ACEOF | |
34874 | /* confdefs.h. */ | |
34875 | _ACEOF | |
34876 | cat confdefs.h >>conftest.$ac_ext | |
34877 | cat >>conftest.$ac_ext <<_ACEOF | |
34878 | /* end confdefs.h. */ | |
34879 | ||
34880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34881 | #ifdef __cplusplus | |
34882 | extern "C" | |
34883 | #endif | |
34884 | /* We use char because int might match the return type of a gcc2 | |
34885 | builtin and then its argument prototype would still apply. */ | |
34886 | char inet_addr (); | |
34887 | int | |
34888 | main () | |
34889 | { | |
34890 | inet_addr (); | |
34891 | ; | |
34892 | return 0; | |
34893 | } | |
34894 | _ACEOF | |
34895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34898 | ac_status=$? |
ac1cb8d3 VS |
34899 | grep -v '^ *+' conftest.er1 >conftest.err |
34900 | rm -f conftest.er1 | |
34901 | cat conftest.err >&5 | |
a848cd7e SC |
34902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34903 | (exit $ac_status); } && | |
6ebeb4c7 | 34904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34906 | (eval $ac_try) 2>&5 | |
34907 | ac_status=$? | |
34908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34909 | (exit $ac_status); }; } && | |
34910 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34912 | (eval $ac_try) 2>&5 | |
34913 | ac_status=$? | |
34914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34915 | (exit $ac_status); }; }; then | |
34916 | ac_cv_lib_nsl_inet_addr=yes | |
34917 | else | |
34918 | echo "$as_me: failed program was:" >&5 | |
34919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34920 | ||
34921 | ac_cv_lib_nsl_inet_addr=no | |
34922 | fi | |
ac1cb8d3 VS |
34923 | rm -f conftest.err conftest.$ac_objext \ |
34924 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34925 | LIBS=$ac_check_lib_save_LIBS |
34926 | fi | |
34927 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
34928 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
34929 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
34930 | INET_LINK="nsl" | |
34931 | else | |
34932 | ||
34933 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
34934 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
34935 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
34936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34937 | else | |
34938 | ac_check_lib_save_LIBS=$LIBS | |
34939 | LIBS="-lresolv $LIBS" | |
34940 | cat >conftest.$ac_ext <<_ACEOF | |
34941 | /* confdefs.h. */ | |
34942 | _ACEOF | |
34943 | cat confdefs.h >>conftest.$ac_ext | |
34944 | cat >>conftest.$ac_ext <<_ACEOF | |
34945 | /* end confdefs.h. */ | |
34946 | ||
34947 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34948 | #ifdef __cplusplus | |
34949 | extern "C" | |
34950 | #endif | |
34951 | /* We use char because int might match the return type of a gcc2 | |
34952 | builtin and then its argument prototype would still apply. */ | |
34953 | char inet_addr (); | |
34954 | int | |
34955 | main () | |
34956 | { | |
34957 | inet_addr (); | |
34958 | ; | |
34959 | return 0; | |
34960 | } | |
34961 | _ACEOF | |
34962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34964 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34965 | ac_status=$? |
ac1cb8d3 VS |
34966 | grep -v '^ *+' conftest.er1 >conftest.err |
34967 | rm -f conftest.er1 | |
34968 | cat conftest.err >&5 | |
a848cd7e SC |
34969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34970 | (exit $ac_status); } && | |
6ebeb4c7 | 34971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34973 | (eval $ac_try) 2>&5 | |
34974 | ac_status=$? | |
34975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34976 | (exit $ac_status); }; } && | |
34977 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34979 | (eval $ac_try) 2>&5 | |
34980 | ac_status=$? | |
34981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34982 | (exit $ac_status); }; }; then | |
34983 | ac_cv_lib_resolv_inet_addr=yes | |
34984 | else | |
34985 | echo "$as_me: failed program was:" >&5 | |
34986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34987 | ||
34988 | ac_cv_lib_resolv_inet_addr=no | |
34989 | fi | |
ac1cb8d3 VS |
34990 | rm -f conftest.err conftest.$ac_objext \ |
34991 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34992 | LIBS=$ac_check_lib_save_LIBS |
34993 | fi | |
34994 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
34995 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
34996 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
34997 | INET_LINK="resolv" | |
34998 | else | |
34999 | ||
35000 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
35001 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
35002 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
35003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35004 | else | |
35005 | ac_check_lib_save_LIBS=$LIBS | |
35006 | LIBS="-lsocket $LIBS" | |
35007 | cat >conftest.$ac_ext <<_ACEOF | |
35008 | /* confdefs.h. */ | |
35009 | _ACEOF | |
35010 | cat confdefs.h >>conftest.$ac_ext | |
35011 | cat >>conftest.$ac_ext <<_ACEOF | |
35012 | /* end confdefs.h. */ | |
35013 | ||
35014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35015 | #ifdef __cplusplus | |
35016 | extern "C" | |
35017 | #endif | |
35018 | /* We use char because int might match the return type of a gcc2 | |
35019 | builtin and then its argument prototype would still apply. */ | |
35020 | char inet_addr (); | |
35021 | int | |
35022 | main () | |
35023 | { | |
35024 | inet_addr (); | |
35025 | ; | |
35026 | return 0; | |
35027 | } | |
35028 | _ACEOF | |
35029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35031 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35032 | ac_status=$? |
ac1cb8d3 VS |
35033 | grep -v '^ *+' conftest.er1 >conftest.err |
35034 | rm -f conftest.er1 | |
35035 | cat conftest.err >&5 | |
a848cd7e SC |
35036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35037 | (exit $ac_status); } && | |
6ebeb4c7 | 35038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35040 | (eval $ac_try) 2>&5 | |
35041 | ac_status=$? | |
35042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35043 | (exit $ac_status); }; } && | |
35044 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35046 | (eval $ac_try) 2>&5 | |
35047 | ac_status=$? | |
35048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35049 | (exit $ac_status); }; }; then | |
35050 | ac_cv_lib_socket_inet_addr=yes | |
35051 | else | |
35052 | echo "$as_me: failed program was:" >&5 | |
35053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35054 | ||
35055 | ac_cv_lib_socket_inet_addr=no | |
35056 | fi | |
ac1cb8d3 VS |
35057 | rm -f conftest.err conftest.$ac_objext \ |
35058 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35059 | LIBS=$ac_check_lib_save_LIBS |
35060 | fi | |
35061 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
35062 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
35063 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
35064 | INET_LINK="socket" | |
35065 | ||
35066 | fi | |
35067 | ||
35068 | ||
35069 | ||
35070 | fi | |
35071 | ||
35072 | ||
35073 | ||
35074 | fi | |
35075 | ||
35076 | ||
35077 | ||
35078 | fi | |
35079 | done | |
35080 | ||
35081 | ||
35082 | ||
35083 | for ac_func in inet_aton | |
35084 | do | |
35085 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35086 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35087 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35088 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35090 | else | |
35091 | cat >conftest.$ac_ext <<_ACEOF | |
35092 | /* confdefs.h. */ | |
35093 | _ACEOF | |
35094 | cat confdefs.h >>conftest.$ac_ext | |
35095 | cat >>conftest.$ac_ext <<_ACEOF | |
35096 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35097 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35099 | #define $ac_func innocuous_$ac_func | |
35100 | ||
a848cd7e SC |
35101 | /* System header to define __stub macros and hopefully few prototypes, |
35102 | which can conflict with char $ac_func (); below. | |
35103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35104 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35105 | |
a848cd7e SC |
35106 | #ifdef __STDC__ |
35107 | # include <limits.h> | |
35108 | #else | |
35109 | # include <assert.h> | |
35110 | #endif | |
ac1cb8d3 VS |
35111 | |
35112 | #undef $ac_func | |
35113 | ||
a848cd7e SC |
35114 | /* Override any gcc2 internal prototype to avoid an error. */ |
35115 | #ifdef __cplusplus | |
35116 | extern "C" | |
35117 | { | |
35118 | #endif | |
35119 | /* We use char because int might match the return type of a gcc2 | |
35120 | builtin and then its argument prototype would still apply. */ | |
35121 | char $ac_func (); | |
35122 | /* The GNU C library defines this for functions which it implements | |
35123 | to always fail with ENOSYS. Some functions are actually named | |
35124 | something starting with __ and the normal name is an alias. */ | |
35125 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35126 | choke me | |
35127 | #else | |
35128 | char (*f) () = $ac_func; | |
35129 | #endif | |
35130 | #ifdef __cplusplus | |
35131 | } | |
35132 | #endif | |
35133 | ||
35134 | int | |
35135 | main () | |
35136 | { | |
35137 | return f != $ac_func; | |
35138 | ; | |
35139 | return 0; | |
35140 | } | |
35141 | _ACEOF | |
35142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35144 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35145 | ac_status=$? |
ac1cb8d3 VS |
35146 | grep -v '^ *+' conftest.er1 >conftest.err |
35147 | rm -f conftest.er1 | |
35148 | cat conftest.err >&5 | |
a848cd7e SC |
35149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35150 | (exit $ac_status); } && | |
6ebeb4c7 | 35151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35153 | (eval $ac_try) 2>&5 | |
35154 | ac_status=$? | |
35155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35156 | (exit $ac_status); }; } && | |
35157 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35159 | (eval $ac_try) 2>&5 | |
35160 | ac_status=$? | |
35161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35162 | (exit $ac_status); }; }; then | |
35163 | eval "$as_ac_var=yes" | |
35164 | else | |
35165 | echo "$as_me: failed program was:" >&5 | |
35166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35167 | ||
35168 | eval "$as_ac_var=no" | |
35169 | fi | |
ac1cb8d3 VS |
35170 | rm -f conftest.err conftest.$ac_objext \ |
35171 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35172 | fi |
35173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35174 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35175 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35176 | cat >>confdefs.h <<_ACEOF | |
35177 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35178 | _ACEOF | |
35179 | cat >>confdefs.h <<\_ACEOF | |
35180 | #define HAVE_INET_ATON 1 | |
35181 | _ACEOF | |
35182 | ||
35183 | else | |
35184 | ||
35185 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
35186 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
35187 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
35188 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
35189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35190 | else | |
35191 | ac_check_lib_save_LIBS=$LIBS | |
35192 | LIBS="-l$INET_LINK $LIBS" | |
35193 | cat >conftest.$ac_ext <<_ACEOF | |
35194 | /* confdefs.h. */ | |
35195 | _ACEOF | |
35196 | cat confdefs.h >>conftest.$ac_ext | |
35197 | cat >>conftest.$ac_ext <<_ACEOF | |
35198 | /* end confdefs.h. */ | |
35199 | ||
35200 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35201 | #ifdef __cplusplus | |
35202 | extern "C" | |
35203 | #endif | |
35204 | /* We use char because int might match the return type of a gcc2 | |
35205 | builtin and then its argument prototype would still apply. */ | |
35206 | char inet_aton (); | |
35207 | int | |
35208 | main () | |
35209 | { | |
35210 | inet_aton (); | |
35211 | ; | |
35212 | return 0; | |
35213 | } | |
35214 | _ACEOF | |
35215 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35217 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35218 | ac_status=$? |
ac1cb8d3 VS |
35219 | grep -v '^ *+' conftest.er1 >conftest.err |
35220 | rm -f conftest.er1 | |
35221 | cat conftest.err >&5 | |
a848cd7e SC |
35222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35223 | (exit $ac_status); } && | |
6ebeb4c7 | 35224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35226 | (eval $ac_try) 2>&5 | |
35227 | ac_status=$? | |
35228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35229 | (exit $ac_status); }; } && | |
35230 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35232 | (eval $ac_try) 2>&5 | |
35233 | ac_status=$? | |
35234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35235 | (exit $ac_status); }; }; then | |
35236 | eval "$as_ac_Lib=yes" | |
35237 | else | |
35238 | echo "$as_me: failed program was:" >&5 | |
35239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35240 | ||
35241 | eval "$as_ac_Lib=no" | |
35242 | fi | |
ac1cb8d3 VS |
35243 | rm -f conftest.err conftest.$ac_objext \ |
35244 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35245 | LIBS=$ac_check_lib_save_LIBS |
35246 | fi | |
35247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
35248 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
35249 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
35250 | cat >>confdefs.h <<\_ACEOF | |
35251 | #define HAVE_INET_ATON 1 | |
35252 | _ACEOF | |
35253 | ||
35254 | fi | |
35255 | ||
35256 | ||
35257 | fi | |
35258 | done | |
35259 | ||
35260 | ||
35261 | if test "x$INET_LINK" != "x"; then | |
35262 | cat >>confdefs.h <<\_ACEOF | |
35263 | #define HAVE_INET_ADDR 1 | |
35264 | _ACEOF | |
35265 | ||
35266 | INET_LINK=" -l$INET_LINK" | |
35267 | fi | |
35268 | ||
35269 | fi | |
35270 | ||
35271 | ||
35272 | ||
35273 | EXTRALIBS_ESD= | |
35274 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
35275 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
35276 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
35277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35278 | else | |
35279 | ac_check_lib_save_LIBS=$LIBS | |
35280 | LIBS="-lesd $LIBS" | |
35281 | cat >conftest.$ac_ext <<_ACEOF | |
35282 | /* confdefs.h. */ | |
35283 | _ACEOF | |
35284 | cat confdefs.h >>conftest.$ac_ext | |
35285 | cat >>conftest.$ac_ext <<_ACEOF | |
35286 | /* end confdefs.h. */ | |
35287 | ||
35288 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35289 | #ifdef __cplusplus | |
35290 | extern "C" | |
35291 | #endif | |
35292 | /* We use char because int might match the return type of a gcc2 | |
35293 | builtin and then its argument prototype would still apply. */ | |
35294 | char esd_close (); | |
35295 | int | |
35296 | main () | |
35297 | { | |
35298 | esd_close (); | |
35299 | ; | |
35300 | return 0; | |
35301 | } | |
35302 | _ACEOF | |
35303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35305 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35306 | ac_status=$? |
ac1cb8d3 VS |
35307 | grep -v '^ *+' conftest.er1 >conftest.err |
35308 | rm -f conftest.er1 | |
35309 | cat conftest.err >&5 | |
a848cd7e SC |
35310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35311 | (exit $ac_status); } && | |
6ebeb4c7 | 35312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35314 | (eval $ac_try) 2>&5 | |
35315 | ac_status=$? | |
35316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35317 | (exit $ac_status); }; } && | |
35318 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35320 | (eval $ac_try) 2>&5 | |
35321 | ac_status=$? | |
35322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35323 | (exit $ac_status); }; }; then | |
35324 | ac_cv_lib_esd_esd_close=yes | |
35325 | else | |
35326 | echo "$as_me: failed program was:" >&5 | |
35327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35328 | ||
35329 | ac_cv_lib_esd_esd_close=no | |
35330 | fi | |
ac1cb8d3 VS |
35331 | rm -f conftest.err conftest.$ac_objext \ |
35332 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35333 | LIBS=$ac_check_lib_save_LIBS |
35334 | fi | |
35335 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
35336 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
35337 | if test $ac_cv_lib_esd_esd_close = yes; then | |
35338 | ||
35339 | ||
35340 | for ac_header in esd.h | |
35341 | do | |
35342 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35348 | fi | |
35349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35350 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35351 | else | |
35352 | # Is the header compilable? | |
35353 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35354 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35355 | cat >conftest.$ac_ext <<_ACEOF | |
35356 | /* confdefs.h. */ | |
35357 | _ACEOF | |
35358 | cat confdefs.h >>conftest.$ac_ext | |
35359 | cat >>conftest.$ac_ext <<_ACEOF | |
35360 | /* end confdefs.h. */ | |
35361 | $ac_includes_default | |
35362 | #include <$ac_header> | |
35363 | _ACEOF | |
35364 | rm -f conftest.$ac_objext | |
35365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35366 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35367 | ac_status=$? |
ac1cb8d3 VS |
35368 | grep -v '^ *+' conftest.er1 >conftest.err |
35369 | rm -f conftest.er1 | |
35370 | cat conftest.err >&5 | |
a848cd7e SC |
35371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35372 | (exit $ac_status); } && | |
6ebeb4c7 | 35373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35375 | (eval $ac_try) 2>&5 | |
35376 | ac_status=$? | |
35377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35378 | (exit $ac_status); }; } && | |
35379 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35381 | (eval $ac_try) 2>&5 | |
35382 | ac_status=$? | |
35383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35384 | (exit $ac_status); }; }; then | |
35385 | ac_header_compiler=yes | |
35386 | else | |
35387 | echo "$as_me: failed program was:" >&5 | |
35388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35389 | ||
35390 | ac_header_compiler=no | |
35391 | fi | |
ac1cb8d3 | 35392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35393 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35394 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35395 | ||
35396 | # Is the header present? | |
35397 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35398 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35399 | cat >conftest.$ac_ext <<_ACEOF | |
35400 | /* confdefs.h. */ | |
35401 | _ACEOF | |
35402 | cat confdefs.h >>conftest.$ac_ext | |
35403 | cat >>conftest.$ac_ext <<_ACEOF | |
35404 | /* end confdefs.h. */ | |
35405 | #include <$ac_header> | |
35406 | _ACEOF | |
35407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35409 | ac_status=$? | |
35410 | grep -v '^ *+' conftest.er1 >conftest.err | |
35411 | rm -f conftest.er1 | |
35412 | cat conftest.err >&5 | |
35413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35414 | (exit $ac_status); } >/dev/null; then | |
35415 | if test -s conftest.err; then | |
35416 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35418 | else |
35419 | ac_cpp_err= | |
35420 | fi | |
35421 | else | |
35422 | ac_cpp_err=yes | |
35423 | fi | |
35424 | if test -z "$ac_cpp_err"; then | |
35425 | ac_header_preproc=yes | |
35426 | else | |
35427 | echo "$as_me: failed program was:" >&5 | |
35428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35429 | ||
35430 | ac_header_preproc=no | |
35431 | fi | |
35432 | rm -f conftest.err conftest.$ac_ext | |
35433 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35434 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35435 | ||
35436 | # So? What about this header? | |
ac1cb8d3 VS |
35437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35438 | yes:no: ) | |
a848cd7e SC |
35439 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35440 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35442 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35443 | ac_header_preproc=yes | |
a848cd7e | 35444 | ;; |
ac1cb8d3 | 35445 | no:yes:* ) |
a848cd7e SC |
35446 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35447 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35448 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35449 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35450 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35451 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35452 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35453 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35454 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35455 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35456 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35457 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35458 | ( |
35459 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35460 | ## ----------------------------------------- ## |
35461 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35462 | ## ----------------------------------------- ## | |
a848cd7e SC |
35463 | _ASBOX |
35464 | ) | | |
35465 | sed "s/^/$as_me: WARNING: /" >&2 | |
35466 | ;; | |
35467 | esac | |
35468 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35472 | else | |
ac1cb8d3 | 35473 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35474 | fi |
35475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35477 | ||
35478 | fi | |
35479 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35480 | cat >>confdefs.h <<_ACEOF | |
35481 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35482 | _ACEOF | |
35483 | ||
35484 | EXTRALIBS_ESD="-lesd" | |
35485 | ||
35486 | fi | |
35487 | ||
35488 | done | |
35489 | ||
35490 | ||
35491 | fi | |
35492 | ||
35493 | ||
35494 | ||
35495 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
35496 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
35497 | cat >conftest.$ac_ext <<_ACEOF | |
35498 | /* confdefs.h. */ | |
35499 | _ACEOF | |
35500 | cat confdefs.h >>conftest.$ac_ext | |
35501 | cat >>conftest.$ac_ext <<_ACEOF | |
35502 | /* end confdefs.h. */ | |
35503 | #ifdef __linux__ | |
35504 | #include <linux/cdrom.h> | |
35505 | #else | |
35506 | /* For Solaris */ | |
35507 | #include <sys/cdio.h> | |
35508 | #endif | |
35509 | ||
35510 | int | |
35511 | main () | |
35512 | { | |
35513 | struct cdrom_tocentry entry, old_entry; | |
35514 | ; | |
35515 | return 0; | |
35516 | } | |
35517 | _ACEOF | |
35518 | rm -f conftest.$ac_objext | |
35519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35520 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35521 | ac_status=$? |
ac1cb8d3 VS |
35522 | grep -v '^ *+' conftest.er1 >conftest.err |
35523 | rm -f conftest.er1 | |
35524 | cat conftest.err >&5 | |
a848cd7e SC |
35525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35526 | (exit $ac_status); } && | |
6ebeb4c7 | 35527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35529 | (eval $ac_try) 2>&5 | |
35530 | ac_status=$? | |
35531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35532 | (exit $ac_status); }; } && | |
35533 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35535 | (eval $ac_try) 2>&5 | |
35536 | ac_status=$? | |
35537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35538 | (exit $ac_status); }; }; then | |
35539 | echo "$as_me:$LINENO: result: yes" >&5 | |
35540 | echo "${ECHO_T}yes" >&6 | |
35541 | cat >>confdefs.h <<\_ACEOF | |
35542 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
35543 | _ACEOF | |
35544 | ||
35545 | else | |
35546 | echo "$as_me: failed program was:" >&5 | |
35547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35548 | ||
35549 | echo "$as_me:$LINENO: result: no" >&5 | |
35550 | echo "${ECHO_T}no" >&6 | |
35551 | fi | |
ac1cb8d3 | 35552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35553 | |
35554 | ||
35555 | cat >confcache <<\_ACEOF | |
35556 | # This file is a shell script that caches the results of configure | |
35557 | # tests run on this system so they can be shared between configure | |
35558 | # scripts and configure runs, see configure's option --config-cache. | |
35559 | # It is not useful on other systems. If it contains results you don't | |
35560 | # want to keep, you may remove or edit it. | |
35561 | # | |
35562 | # config.status only pays attention to the cache file if you give it | |
35563 | # the --recheck option to rerun configure. | |
35564 | # | |
35565 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35566 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35567 | # following values. | |
35568 | ||
35569 | _ACEOF | |
35570 | ||
35571 | # The following way of writing the cache mishandles newlines in values, | |
35572 | # but we know of no workaround that is simple, portable, and efficient. | |
35573 | # So, don't put newlines in cache variables' values. | |
35574 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35575 | # and sets the high bit in the cache file unless we assign to the vars. | |
35576 | { | |
35577 | (set) 2>&1 | | |
35578 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35579 | *ac_space=\ *) | |
35580 | # `set' does not quote correctly, so add quotes (double-quote | |
35581 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35582 | sed -n \ | |
ac1cb8d3 VS |
35583 | "s/'/'\\\\''/g; |
35584 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
35585 | ;; |
35586 | *) | |
35587 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35588 | sed -n \ | |
ac1cb8d3 | 35589 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
35590 | ;; |
35591 | esac; | |
35592 | } | | |
35593 | sed ' | |
35594 | t clear | |
35595 | : clear | |
35596 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35597 | t end | |
35598 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35599 | : end' >>confcache | |
35600 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35601 | if test -w $cache_file; then | |
35602 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35603 | cat confcache >$cache_file | |
35604 | else | |
35605 | echo "not updating unwritable cache $cache_file" | |
35606 | fi | |
35607 | fi | |
35608 | rm -f confcache | |
35609 | ||
35610 | ||
35611 | CPP_MT_FLAG= | |
35612 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
35613 | ||
35614 | ||
35615 | THREADS_LINK= | |
35616 | THREADS_CFLAGS= | |
35617 | ||
35618 | if test "$wxUSE_THREADS" = "yes" ; then | |
35619 | if test "$USE_BEOS" = 1; then | |
35620 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
35621 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
35622 | wxUSE_THREADS="no" | |
35623 | fi | |
35624 | fi | |
35625 | ||
35626 | if test "$wxUSE_THREADS" = "yes" ; then | |
35627 | ||
35628 | ||
35629 | THREAD_OPTS="-pthread" | |
35630 | case "${host}" in | |
35631 | *-*-solaris2* | *-*-sunos4* ) | |
35632 | if test "x$GCC" = "xyes"; then | |
35633 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
35634 | else | |
35635 | THREAD_OPTS="-mt $THREAD_OPTS" | |
35636 | fi | |
35637 | ;; | |
35638 | *-*-freebsd*) | |
35639 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
35640 | ;; | |
35641 | *-*-darwin* | *-*-cygwin* ) | |
35642 | THREAD_OPTS="" | |
35643 | ;; | |
35644 | *-*-aix*) | |
35645 | THREAD_OPTS="pthreads" | |
35646 | ;; | |
35647 | *-hp-hpux* ) | |
00421666 MW |
35648 | if test "x$GCC" = "xyes"; then |
35649 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
35650 | THREAD_OPTS="" | |
35651 | else | |
efdf6afe | 35652 | THREAD_OPTS="" |
a848cd7e SC |
35653 | fi |
35654 | ;; | |
35655 | ||
35656 | *-*-irix* ) | |
35657 | if test "x$GCC" = "xyes"; then | |
35658 | THREAD_OPTS="" | |
35659 | fi | |
35660 | ;; | |
35661 | ||
35662 | *-*-*UnixWare*) | |
35663 | if test "x$GCC" != "xyes"; then | |
35664 | THREAD_OPTS="-Ethread" | |
35665 | fi | |
35666 | ;; | |
35667 | esac | |
35668 | ||
35669 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
35670 | ||
35671 | THREADS_OK=no | |
35672 | for flag in $THREAD_OPTS; do | |
35673 | case $flag in | |
35674 | none) | |
35675 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
35676 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
35677 | ;; | |
35678 | ||
35679 | -*) | |
35680 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
35681 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
35682 | THREADS_CFLAGS="$flag" | |
35683 | ;; | |
35684 | ||
35685 | *) | |
35686 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
35687 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
35688 | THREADS_LINK="-l$flag" | |
35689 | ;; | |
35690 | esac | |
35691 | ||
35692 | save_LIBS="$LIBS" | |
35693 | save_CFLAGS="$CFLAGS" | |
35694 | LIBS="$THREADS_LINK $LIBS" | |
35695 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
35696 | ||
35697 | cat >conftest.$ac_ext <<_ACEOF | |
35698 | /* confdefs.h. */ | |
35699 | _ACEOF | |
35700 | cat confdefs.h >>conftest.$ac_ext | |
35701 | cat >>conftest.$ac_ext <<_ACEOF | |
35702 | /* end confdefs.h. */ | |
35703 | #include <pthread.h> | |
35704 | int | |
35705 | main () | |
35706 | { | |
35707 | pthread_create(0,0,0,0); | |
35708 | ; | |
35709 | return 0; | |
35710 | } | |
35711 | _ACEOF | |
35712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35715 | ac_status=$? |
ac1cb8d3 VS |
35716 | grep -v '^ *+' conftest.er1 >conftest.err |
35717 | rm -f conftest.er1 | |
35718 | cat conftest.err >&5 | |
a848cd7e SC |
35719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35720 | (exit $ac_status); } && | |
6ebeb4c7 | 35721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35723 | (eval $ac_try) 2>&5 | |
35724 | ac_status=$? | |
35725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35726 | (exit $ac_status); }; } && | |
35727 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35729 | (eval $ac_try) 2>&5 | |
35730 | ac_status=$? | |
35731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35732 | (exit $ac_status); }; }; then | |
35733 | THREADS_OK=yes | |
35734 | else | |
35735 | echo "$as_me: failed program was:" >&5 | |
35736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35737 | ||
35738 | fi | |
ac1cb8d3 VS |
35739 | rm -f conftest.err conftest.$ac_objext \ |
35740 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35741 | |
35742 | LIBS="$save_LIBS" | |
35743 | CFLAGS="$save_CFLAGS" | |
35744 | ||
35745 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
35746 | echo "${ECHO_T}$THREADS_OK" >&6 | |
35747 | if test "x$THREADS_OK" = "xyes"; then | |
35748 | break; | |
35749 | fi | |
35750 | ||
35751 | THREADS_LINK="" | |
35752 | THREADS_CFLAGS="" | |
35753 | done | |
35754 | ||
35755 | if test "x$THREADS_OK" != "xyes"; then | |
35756 | wxUSE_THREADS=no | |
35757 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
35758 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
35759 | else | |
35760 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
35761 | LIBS="$THREADS_LINK $LIBS" | |
35762 | ||
35763 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
35764 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
35765 | flag=no | |
35766 | case "${host}" in | |
35767 | *-aix*) | |
35768 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
35769 | flag="-D_THREAD_SAFE" | |
35770 | ;; | |
35771 | *-freebsd*) | |
35772 | flag="-D_THREAD_SAFE" | |
35773 | ;; | |
35774 | *-hp-hpux* ) | |
35775 | flag="-D_REENTRANT" | |
35776 | if test "x$GCC" != "xyes"; then | |
35777 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
35778 | fi | |
35779 | ;; | |
35780 | *solaris* | alpha*-osf*) | |
35781 | flag="-D_REENTRANT" | |
35782 | ;; | |
35783 | esac | |
35784 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
35785 | echo "${ECHO_T}${flag}" >&6 | |
35786 | if test "x$flag" != xno; then | |
35787 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
35788 | fi | |
35789 | ||
35790 | if test "x$THREADS_CFLAGS" != "x"; then | |
35791 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
35792 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
35793 | fi | |
35794 | fi | |
35795 | fi | |
35796 | ||
35797 | if test "$wxUSE_THREADS" = "yes" ; then | |
35798 | ||
35799 | for ac_func in thr_setconcurrency | |
35800 | do | |
35801 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35802 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35803 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35804 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35806 | else | |
35807 | cat >conftest.$ac_ext <<_ACEOF | |
35808 | /* confdefs.h. */ | |
35809 | _ACEOF | |
35810 | cat confdefs.h >>conftest.$ac_ext | |
35811 | cat >>conftest.$ac_ext <<_ACEOF | |
35812 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35813 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35814 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35815 | #define $ac_func innocuous_$ac_func | |
35816 | ||
a848cd7e SC |
35817 | /* System header to define __stub macros and hopefully few prototypes, |
35818 | which can conflict with char $ac_func (); below. | |
35819 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35820 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35821 | |
a848cd7e SC |
35822 | #ifdef __STDC__ |
35823 | # include <limits.h> | |
35824 | #else | |
35825 | # include <assert.h> | |
35826 | #endif | |
ac1cb8d3 VS |
35827 | |
35828 | #undef $ac_func | |
35829 | ||
a848cd7e SC |
35830 | /* Override any gcc2 internal prototype to avoid an error. */ |
35831 | #ifdef __cplusplus | |
35832 | extern "C" | |
35833 | { | |
35834 | #endif | |
35835 | /* We use char because int might match the return type of a gcc2 | |
35836 | builtin and then its argument prototype would still apply. */ | |
35837 | char $ac_func (); | |
35838 | /* The GNU C library defines this for functions which it implements | |
35839 | to always fail with ENOSYS. Some functions are actually named | |
35840 | something starting with __ and the normal name is an alias. */ | |
35841 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35842 | choke me | |
35843 | #else | |
35844 | char (*f) () = $ac_func; | |
35845 | #endif | |
35846 | #ifdef __cplusplus | |
35847 | } | |
35848 | #endif | |
35849 | ||
35850 | int | |
35851 | main () | |
35852 | { | |
35853 | return f != $ac_func; | |
35854 | ; | |
35855 | return 0; | |
35856 | } | |
35857 | _ACEOF | |
35858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35860 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35861 | ac_status=$? |
ac1cb8d3 VS |
35862 | grep -v '^ *+' conftest.er1 >conftest.err |
35863 | rm -f conftest.er1 | |
35864 | cat conftest.err >&5 | |
a848cd7e SC |
35865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35866 | (exit $ac_status); } && | |
6ebeb4c7 | 35867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35869 | (eval $ac_try) 2>&5 | |
35870 | ac_status=$? | |
35871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35872 | (exit $ac_status); }; } && | |
35873 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35875 | (eval $ac_try) 2>&5 | |
35876 | ac_status=$? | |
35877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35878 | (exit $ac_status); }; }; then | |
35879 | eval "$as_ac_var=yes" | |
35880 | else | |
35881 | echo "$as_me: failed program was:" >&5 | |
35882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35883 | ||
35884 | eval "$as_ac_var=no" | |
35885 | fi | |
ac1cb8d3 VS |
35886 | rm -f conftest.err conftest.$ac_objext \ |
35887 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35888 | fi |
35889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35890 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35891 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35892 | cat >>confdefs.h <<_ACEOF | |
35893 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35894 | _ACEOF | |
35895 | ||
35896 | fi | |
35897 | done | |
35898 | ||
35899 | ||
6ebeb4c7 VZ |
35900 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
35901 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
35902 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
35903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35904 | else | |
35905 | ||
35906 | cat >conftest.$ac_ext <<_ACEOF | |
35907 | /* confdefs.h. */ | |
35908 | _ACEOF | |
35909 | cat confdefs.h >>conftest.$ac_ext | |
35910 | cat >>conftest.$ac_ext <<_ACEOF | |
35911 | /* end confdefs.h. */ | |
35912 | #include <pthread.h> | |
35913 | void ThreadCleanupFunc(void *p); | |
35914 | ||
35915 | int | |
35916 | main () | |
35917 | { | |
35918 | ||
35919 | void *p; | |
35920 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
35921 | pthread_cleanup_pop(0); | |
35922 | ||
35923 | ; | |
35924 | return 0; | |
35925 | } | |
35926 | _ACEOF | |
35927 | rm -f conftest.$ac_objext | |
35928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35929 | (eval $ac_compile) 2>conftest.er1 | |
35930 | ac_status=$? | |
35931 | grep -v '^ *+' conftest.er1 >conftest.err | |
35932 | rm -f conftest.er1 | |
35933 | cat conftest.err >&5 | |
35934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35935 | (exit $ac_status); } && | |
35936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
35937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35938 | (eval $ac_try) 2>&5 | |
35939 | ac_status=$? | |
35940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35941 | (exit $ac_status); }; } && | |
35942 | { ac_try='test -s conftest.$ac_objext' | |
35943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35944 | (eval $ac_try) 2>&5 | |
35945 | ac_status=$? | |
35946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35947 | (exit $ac_status); }; }; then | |
35948 | ||
35949 | wx_cv_func_pthread_cleanup=yes | |
35950 | ||
35951 | else | |
35952 | echo "$as_me: failed program was:" >&5 | |
35953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35954 | ||
35955 | ||
35956 | wx_cv_func_pthread_cleanup=no | |
35957 | ||
35958 | ||
35959 | fi | |
35960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35961 | ||
35962 | fi | |
35963 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
35964 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
35965 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
35966 | cat >>confdefs.h <<\_ACEOF | |
35967 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
35968 | _ACEOF | |
35969 | ||
35970 | fi | |
35971 | ||
a848cd7e SC |
35972 | |
35973 | for ac_header in sched.h | |
35974 | do | |
35975 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35981 | fi | |
35982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35983 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35984 | else | |
35985 | # Is the header compilable? | |
35986 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35987 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35988 | cat >conftest.$ac_ext <<_ACEOF | |
35989 | /* confdefs.h. */ | |
35990 | _ACEOF | |
35991 | cat confdefs.h >>conftest.$ac_ext | |
35992 | cat >>conftest.$ac_ext <<_ACEOF | |
35993 | /* end confdefs.h. */ | |
35994 | $ac_includes_default | |
35995 | #include <$ac_header> | |
35996 | _ACEOF | |
35997 | rm -f conftest.$ac_objext | |
35998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35999 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36000 | ac_status=$? |
ac1cb8d3 VS |
36001 | grep -v '^ *+' conftest.er1 >conftest.err |
36002 | rm -f conftest.er1 | |
36003 | cat conftest.err >&5 | |
a848cd7e SC |
36004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36005 | (exit $ac_status); } && | |
6ebeb4c7 | 36006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36008 | (eval $ac_try) 2>&5 | |
36009 | ac_status=$? | |
36010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36011 | (exit $ac_status); }; } && | |
36012 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36014 | (eval $ac_try) 2>&5 | |
36015 | ac_status=$? | |
36016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36017 | (exit $ac_status); }; }; then | |
36018 | ac_header_compiler=yes | |
36019 | else | |
36020 | echo "$as_me: failed program was:" >&5 | |
36021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36022 | ||
36023 | ac_header_compiler=no | |
36024 | fi | |
ac1cb8d3 | 36025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36026 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36027 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36028 | ||
36029 | # Is the header present? | |
36030 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36031 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36032 | cat >conftest.$ac_ext <<_ACEOF | |
36033 | /* confdefs.h. */ | |
36034 | _ACEOF | |
36035 | cat confdefs.h >>conftest.$ac_ext | |
36036 | cat >>conftest.$ac_ext <<_ACEOF | |
36037 | /* end confdefs.h. */ | |
36038 | #include <$ac_header> | |
36039 | _ACEOF | |
36040 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36041 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36042 | ac_status=$? | |
36043 | grep -v '^ *+' conftest.er1 >conftest.err | |
36044 | rm -f conftest.er1 | |
36045 | cat conftest.err >&5 | |
36046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36047 | (exit $ac_status); } >/dev/null; then | |
36048 | if test -s conftest.err; then | |
36049 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36050 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36051 | else |
36052 | ac_cpp_err= | |
36053 | fi | |
36054 | else | |
36055 | ac_cpp_err=yes | |
36056 | fi | |
36057 | if test -z "$ac_cpp_err"; then | |
36058 | ac_header_preproc=yes | |
36059 | else | |
36060 | echo "$as_me: failed program was:" >&5 | |
36061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36062 | ||
36063 | ac_header_preproc=no | |
36064 | fi | |
36065 | rm -f conftest.err conftest.$ac_ext | |
36066 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36067 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36068 | ||
36069 | # So? What about this header? | |
ac1cb8d3 VS |
36070 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36071 | yes:no: ) | |
a848cd7e SC |
36072 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36073 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36074 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36075 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36076 | ac_header_preproc=yes | |
a848cd7e | 36077 | ;; |
ac1cb8d3 | 36078 | no:yes:* ) |
a848cd7e SC |
36079 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36080 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36081 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36082 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36083 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36084 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36085 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36086 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36087 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36088 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36089 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36090 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36091 | ( |
36092 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36093 | ## ----------------------------------------- ## |
36094 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36095 | ## ----------------------------------------- ## | |
a848cd7e SC |
36096 | _ASBOX |
36097 | ) | | |
36098 | sed "s/^/$as_me: WARNING: /" >&2 | |
36099 | ;; | |
36100 | esac | |
36101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36105 | else | |
ac1cb8d3 | 36106 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36107 | fi |
36108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36109 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36110 | ||
36111 | fi | |
36112 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36113 | cat >>confdefs.h <<_ACEOF | |
36114 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36115 | _ACEOF | |
36116 | ||
36117 | fi | |
36118 | ||
36119 | done | |
36120 | ||
36121 | if test "$ac_cv_header_sched_h" = "yes"; then | |
36122 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
36123 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
36124 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
36125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36126 | else | |
36127 | cat >conftest.$ac_ext <<_ACEOF | |
36128 | /* confdefs.h. */ | |
36129 | _ACEOF | |
36130 | cat confdefs.h >>conftest.$ac_ext | |
36131 | cat >>conftest.$ac_ext <<_ACEOF | |
36132 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36133 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
36134 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36135 | #define sched_yield innocuous_sched_yield | |
36136 | ||
a848cd7e SC |
36137 | /* System header to define __stub macros and hopefully few prototypes, |
36138 | which can conflict with char sched_yield (); below. | |
36139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36140 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36141 | |
a848cd7e SC |
36142 | #ifdef __STDC__ |
36143 | # include <limits.h> | |
36144 | #else | |
36145 | # include <assert.h> | |
36146 | #endif | |
ac1cb8d3 VS |
36147 | |
36148 | #undef sched_yield | |
36149 | ||
a848cd7e SC |
36150 | /* Override any gcc2 internal prototype to avoid an error. */ |
36151 | #ifdef __cplusplus | |
36152 | extern "C" | |
36153 | { | |
36154 | #endif | |
36155 | /* We use char because int might match the return type of a gcc2 | |
36156 | builtin and then its argument prototype would still apply. */ | |
36157 | char sched_yield (); | |
36158 | /* The GNU C library defines this for functions which it implements | |
36159 | to always fail with ENOSYS. Some functions are actually named | |
36160 | something starting with __ and the normal name is an alias. */ | |
36161 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
36162 | choke me | |
36163 | #else | |
36164 | char (*f) () = sched_yield; | |
36165 | #endif | |
36166 | #ifdef __cplusplus | |
36167 | } | |
36168 | #endif | |
36169 | ||
36170 | int | |
36171 | main () | |
36172 | { | |
36173 | return f != sched_yield; | |
36174 | ; | |
36175 | return 0; | |
36176 | } | |
36177 | _ACEOF | |
36178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36180 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36181 | ac_status=$? |
ac1cb8d3 VS |
36182 | grep -v '^ *+' conftest.er1 >conftest.err |
36183 | rm -f conftest.er1 | |
36184 | cat conftest.err >&5 | |
a848cd7e SC |
36185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36186 | (exit $ac_status); } && | |
6ebeb4c7 | 36187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36189 | (eval $ac_try) 2>&5 | |
36190 | ac_status=$? | |
36191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36192 | (exit $ac_status); }; } && | |
36193 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36195 | (eval $ac_try) 2>&5 | |
36196 | ac_status=$? | |
36197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36198 | (exit $ac_status); }; }; then | |
36199 | ac_cv_func_sched_yield=yes | |
36200 | else | |
36201 | echo "$as_me: failed program was:" >&5 | |
36202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36203 | ||
36204 | ac_cv_func_sched_yield=no | |
36205 | fi | |
ac1cb8d3 VS |
36206 | rm -f conftest.err conftest.$ac_objext \ |
36207 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36208 | fi |
36209 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
36210 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
36211 | if test $ac_cv_func_sched_yield = yes; then | |
36212 | cat >>confdefs.h <<\_ACEOF | |
36213 | #define HAVE_SCHED_YIELD 1 | |
36214 | _ACEOF | |
36215 | ||
36216 | else | |
36217 | ||
36218 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
36219 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
36220 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
36221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36222 | else | |
36223 | ac_check_lib_save_LIBS=$LIBS | |
36224 | LIBS="-lposix4 $LIBS" | |
36225 | cat >conftest.$ac_ext <<_ACEOF | |
36226 | /* confdefs.h. */ | |
36227 | _ACEOF | |
36228 | cat confdefs.h >>conftest.$ac_ext | |
36229 | cat >>conftest.$ac_ext <<_ACEOF | |
36230 | /* end confdefs.h. */ | |
36231 | ||
36232 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36233 | #ifdef __cplusplus | |
36234 | extern "C" | |
36235 | #endif | |
36236 | /* We use char because int might match the return type of a gcc2 | |
36237 | builtin and then its argument prototype would still apply. */ | |
36238 | char sched_yield (); | |
36239 | int | |
36240 | main () | |
36241 | { | |
36242 | sched_yield (); | |
36243 | ; | |
36244 | return 0; | |
36245 | } | |
36246 | _ACEOF | |
36247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36249 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36250 | ac_status=$? |
ac1cb8d3 VS |
36251 | grep -v '^ *+' conftest.er1 >conftest.err |
36252 | rm -f conftest.er1 | |
36253 | cat conftest.err >&5 | |
a848cd7e SC |
36254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36255 | (exit $ac_status); } && | |
6ebeb4c7 | 36256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36258 | (eval $ac_try) 2>&5 | |
36259 | ac_status=$? | |
36260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36261 | (exit $ac_status); }; } && | |
36262 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36264 | (eval $ac_try) 2>&5 | |
36265 | ac_status=$? | |
36266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36267 | (exit $ac_status); }; }; then | |
36268 | ac_cv_lib_posix4_sched_yield=yes | |
36269 | else | |
36270 | echo "$as_me: failed program was:" >&5 | |
36271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36272 | ||
36273 | ac_cv_lib_posix4_sched_yield=no | |
36274 | fi | |
ac1cb8d3 VS |
36275 | rm -f conftest.err conftest.$ac_objext \ |
36276 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36277 | LIBS=$ac_check_lib_save_LIBS |
36278 | fi | |
36279 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
36280 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
36281 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
36282 | cat >>confdefs.h <<\_ACEOF | |
36283 | #define HAVE_SCHED_YIELD 1 | |
36284 | _ACEOF | |
36285 | POSIX4_LINK=" -lposix4" | |
36286 | else | |
36287 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
36288 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
36289 | ||
36290 | fi | |
36291 | ||
36292 | ||
36293 | ||
36294 | fi | |
36295 | ||
36296 | fi | |
36297 | ||
36298 | HAVE_PRIOR_FUNCS=0 | |
36299 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
36300 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
36301 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
36302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36303 | else | |
36304 | cat >conftest.$ac_ext <<_ACEOF | |
36305 | /* confdefs.h. */ | |
36306 | _ACEOF | |
36307 | cat confdefs.h >>conftest.$ac_ext | |
36308 | cat >>conftest.$ac_ext <<_ACEOF | |
36309 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36310 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
36311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36312 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
36313 | ||
a848cd7e SC |
36314 | /* System header to define __stub macros and hopefully few prototypes, |
36315 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
36316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36317 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36318 | |
a848cd7e SC |
36319 | #ifdef __STDC__ |
36320 | # include <limits.h> | |
36321 | #else | |
36322 | # include <assert.h> | |
36323 | #endif | |
ac1cb8d3 VS |
36324 | |
36325 | #undef pthread_attr_getschedpolicy | |
36326 | ||
a848cd7e SC |
36327 | /* Override any gcc2 internal prototype to avoid an error. */ |
36328 | #ifdef __cplusplus | |
36329 | extern "C" | |
36330 | { | |
36331 | #endif | |
36332 | /* We use char because int might match the return type of a gcc2 | |
36333 | builtin and then its argument prototype would still apply. */ | |
36334 | char pthread_attr_getschedpolicy (); | |
36335 | /* The GNU C library defines this for functions which it implements | |
36336 | to always fail with ENOSYS. Some functions are actually named | |
36337 | something starting with __ and the normal name is an alias. */ | |
36338 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
36339 | choke me | |
36340 | #else | |
36341 | char (*f) () = pthread_attr_getschedpolicy; | |
36342 | #endif | |
36343 | #ifdef __cplusplus | |
36344 | } | |
36345 | #endif | |
36346 | ||
36347 | int | |
36348 | main () | |
36349 | { | |
36350 | return f != pthread_attr_getschedpolicy; | |
36351 | ; | |
36352 | return 0; | |
36353 | } | |
36354 | _ACEOF | |
36355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36357 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36358 | ac_status=$? |
ac1cb8d3 VS |
36359 | grep -v '^ *+' conftest.er1 >conftest.err |
36360 | rm -f conftest.er1 | |
36361 | cat conftest.err >&5 | |
a848cd7e SC |
36362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36363 | (exit $ac_status); } && | |
6ebeb4c7 | 36364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36366 | (eval $ac_try) 2>&5 | |
36367 | ac_status=$? | |
36368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36369 | (exit $ac_status); }; } && | |
36370 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36372 | (eval $ac_try) 2>&5 | |
36373 | ac_status=$? | |
36374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36375 | (exit $ac_status); }; }; then | |
36376 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
36377 | else | |
36378 | echo "$as_me: failed program was:" >&5 | |
36379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36380 | ||
36381 | ac_cv_func_pthread_attr_getschedpolicy=no | |
36382 | fi | |
ac1cb8d3 VS |
36383 | rm -f conftest.err conftest.$ac_objext \ |
36384 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36385 | fi |
36386 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
36387 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
36388 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
36389 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
36390 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
36391 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
36392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36393 | else | |
36394 | cat >conftest.$ac_ext <<_ACEOF | |
36395 | /* confdefs.h. */ | |
36396 | _ACEOF | |
36397 | cat confdefs.h >>conftest.$ac_ext | |
36398 | cat >>conftest.$ac_ext <<_ACEOF | |
36399 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36400 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
36401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36402 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
36403 | ||
a848cd7e SC |
36404 | /* System header to define __stub macros and hopefully few prototypes, |
36405 | which can conflict with char pthread_attr_setschedparam (); below. | |
36406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36407 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36408 | |
a848cd7e SC |
36409 | #ifdef __STDC__ |
36410 | # include <limits.h> | |
36411 | #else | |
36412 | # include <assert.h> | |
36413 | #endif | |
ac1cb8d3 VS |
36414 | |
36415 | #undef pthread_attr_setschedparam | |
36416 | ||
a848cd7e SC |
36417 | /* Override any gcc2 internal prototype to avoid an error. */ |
36418 | #ifdef __cplusplus | |
36419 | extern "C" | |
36420 | { | |
36421 | #endif | |
36422 | /* We use char because int might match the return type of a gcc2 | |
36423 | builtin and then its argument prototype would still apply. */ | |
36424 | char pthread_attr_setschedparam (); | |
36425 | /* The GNU C library defines this for functions which it implements | |
36426 | to always fail with ENOSYS. Some functions are actually named | |
36427 | something starting with __ and the normal name is an alias. */ | |
36428 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
36429 | choke me | |
36430 | #else | |
36431 | char (*f) () = pthread_attr_setschedparam; | |
36432 | #endif | |
36433 | #ifdef __cplusplus | |
36434 | } | |
36435 | #endif | |
36436 | ||
36437 | int | |
36438 | main () | |
36439 | { | |
36440 | return f != pthread_attr_setschedparam; | |
36441 | ; | |
36442 | return 0; | |
36443 | } | |
36444 | _ACEOF | |
36445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36447 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36448 | ac_status=$? |
ac1cb8d3 VS |
36449 | grep -v '^ *+' conftest.er1 >conftest.err |
36450 | rm -f conftest.er1 | |
36451 | cat conftest.err >&5 | |
a848cd7e SC |
36452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36453 | (exit $ac_status); } && | |
6ebeb4c7 | 36454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36456 | (eval $ac_try) 2>&5 | |
36457 | ac_status=$? | |
36458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36459 | (exit $ac_status); }; } && | |
36460 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36462 | (eval $ac_try) 2>&5 | |
36463 | ac_status=$? | |
36464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36465 | (exit $ac_status); }; }; then | |
36466 | ac_cv_func_pthread_attr_setschedparam=yes | |
36467 | else | |
36468 | echo "$as_me: failed program was:" >&5 | |
36469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36470 | ||
36471 | ac_cv_func_pthread_attr_setschedparam=no | |
36472 | fi | |
ac1cb8d3 VS |
36473 | rm -f conftest.err conftest.$ac_objext \ |
36474 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36475 | fi |
36476 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
36477 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
36478 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
36479 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
36480 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
36481 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
36482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36483 | else | |
36484 | cat >conftest.$ac_ext <<_ACEOF | |
36485 | /* confdefs.h. */ | |
36486 | _ACEOF | |
36487 | cat confdefs.h >>conftest.$ac_ext | |
36488 | cat >>conftest.$ac_ext <<_ACEOF | |
36489 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36490 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
36491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36492 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
36493 | ||
a848cd7e SC |
36494 | /* System header to define __stub macros and hopefully few prototypes, |
36495 | which can conflict with char sched_get_priority_max (); below. | |
36496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36497 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36498 | |
a848cd7e SC |
36499 | #ifdef __STDC__ |
36500 | # include <limits.h> | |
36501 | #else | |
36502 | # include <assert.h> | |
36503 | #endif | |
ac1cb8d3 VS |
36504 | |
36505 | #undef sched_get_priority_max | |
36506 | ||
a848cd7e SC |
36507 | /* Override any gcc2 internal prototype to avoid an error. */ |
36508 | #ifdef __cplusplus | |
36509 | extern "C" | |
36510 | { | |
36511 | #endif | |
36512 | /* We use char because int might match the return type of a gcc2 | |
36513 | builtin and then its argument prototype would still apply. */ | |
36514 | char sched_get_priority_max (); | |
36515 | /* The GNU C library defines this for functions which it implements | |
36516 | to always fail with ENOSYS. Some functions are actually named | |
36517 | something starting with __ and the normal name is an alias. */ | |
36518 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
36519 | choke me | |
36520 | #else | |
36521 | char (*f) () = sched_get_priority_max; | |
36522 | #endif | |
36523 | #ifdef __cplusplus | |
36524 | } | |
36525 | #endif | |
36526 | ||
36527 | int | |
36528 | main () | |
36529 | { | |
36530 | return f != sched_get_priority_max; | |
36531 | ; | |
36532 | return 0; | |
36533 | } | |
36534 | _ACEOF | |
36535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36538 | ac_status=$? |
ac1cb8d3 VS |
36539 | grep -v '^ *+' conftest.er1 >conftest.err |
36540 | rm -f conftest.er1 | |
36541 | cat conftest.err >&5 | |
a848cd7e SC |
36542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36543 | (exit $ac_status); } && | |
6ebeb4c7 | 36544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36546 | (eval $ac_try) 2>&5 | |
36547 | ac_status=$? | |
36548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36549 | (exit $ac_status); }; } && | |
36550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36552 | (eval $ac_try) 2>&5 | |
36553 | ac_status=$? | |
36554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36555 | (exit $ac_status); }; }; then | |
36556 | ac_cv_func_sched_get_priority_max=yes | |
36557 | else | |
36558 | echo "$as_me: failed program was:" >&5 | |
36559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36560 | ||
36561 | ac_cv_func_sched_get_priority_max=no | |
36562 | fi | |
ac1cb8d3 VS |
36563 | rm -f conftest.err conftest.$ac_objext \ |
36564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36565 | fi |
36566 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
36567 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
36568 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
36569 | HAVE_PRIOR_FUNCS=1 | |
36570 | else | |
36571 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
36572 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
36573 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
36574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36575 | else | |
36576 | ac_check_lib_save_LIBS=$LIBS | |
36577 | LIBS="-lposix4 $LIBS" | |
36578 | cat >conftest.$ac_ext <<_ACEOF | |
36579 | /* confdefs.h. */ | |
36580 | _ACEOF | |
36581 | cat confdefs.h >>conftest.$ac_ext | |
36582 | cat >>conftest.$ac_ext <<_ACEOF | |
36583 | /* end confdefs.h. */ | |
36584 | ||
36585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36586 | #ifdef __cplusplus | |
36587 | extern "C" | |
36588 | #endif | |
36589 | /* We use char because int might match the return type of a gcc2 | |
36590 | builtin and then its argument prototype would still apply. */ | |
36591 | char sched_get_priority_max (); | |
36592 | int | |
36593 | main () | |
36594 | { | |
36595 | sched_get_priority_max (); | |
36596 | ; | |
36597 | return 0; | |
36598 | } | |
36599 | _ACEOF | |
36600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36602 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36603 | ac_status=$? |
ac1cb8d3 VS |
36604 | grep -v '^ *+' conftest.er1 >conftest.err |
36605 | rm -f conftest.er1 | |
36606 | cat conftest.err >&5 | |
a848cd7e SC |
36607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36608 | (exit $ac_status); } && | |
6ebeb4c7 | 36609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36611 | (eval $ac_try) 2>&5 | |
36612 | ac_status=$? | |
36613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36614 | (exit $ac_status); }; } && | |
36615 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36617 | (eval $ac_try) 2>&5 | |
36618 | ac_status=$? | |
36619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36620 | (exit $ac_status); }; }; then | |
36621 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
36622 | else | |
36623 | echo "$as_me: failed program was:" >&5 | |
36624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36625 | ||
36626 | ac_cv_lib_posix4_sched_get_priority_max=no | |
36627 | fi | |
ac1cb8d3 VS |
36628 | rm -f conftest.err conftest.$ac_objext \ |
36629 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36630 | LIBS=$ac_check_lib_save_LIBS |
36631 | fi | |
36632 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
36633 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
36634 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
36635 | ||
36636 | HAVE_PRIOR_FUNCS=1 | |
36637 | POSIX4_LINK=" -lposix4" | |
36638 | ||
36639 | fi | |
36640 | ||
36641 | ||
36642 | fi | |
36643 | ||
36644 | ||
36645 | fi | |
36646 | ||
36647 | ||
36648 | fi | |
36649 | ||
36650 | ||
36651 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
36652 | cat >>confdefs.h <<\_ACEOF | |
36653 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
36654 | _ACEOF | |
36655 | ||
36656 | else | |
36657 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
36658 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
36659 | fi | |
36660 | ||
36661 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
36662 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
36663 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
36664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36665 | else | |
36666 | cat >conftest.$ac_ext <<_ACEOF | |
36667 | /* confdefs.h. */ | |
36668 | _ACEOF | |
36669 | cat confdefs.h >>conftest.$ac_ext | |
36670 | cat >>conftest.$ac_ext <<_ACEOF | |
36671 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36672 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
36673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36674 | #define pthread_cancel innocuous_pthread_cancel | |
36675 | ||
a848cd7e SC |
36676 | /* System header to define __stub macros and hopefully few prototypes, |
36677 | which can conflict with char pthread_cancel (); below. | |
36678 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36679 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36680 | |
a848cd7e SC |
36681 | #ifdef __STDC__ |
36682 | # include <limits.h> | |
36683 | #else | |
36684 | # include <assert.h> | |
36685 | #endif | |
ac1cb8d3 VS |
36686 | |
36687 | #undef pthread_cancel | |
36688 | ||
a848cd7e SC |
36689 | /* Override any gcc2 internal prototype to avoid an error. */ |
36690 | #ifdef __cplusplus | |
36691 | extern "C" | |
36692 | { | |
36693 | #endif | |
36694 | /* We use char because int might match the return type of a gcc2 | |
36695 | builtin and then its argument prototype would still apply. */ | |
36696 | char pthread_cancel (); | |
36697 | /* The GNU C library defines this for functions which it implements | |
36698 | to always fail with ENOSYS. Some functions are actually named | |
36699 | something starting with __ and the normal name is an alias. */ | |
36700 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
36701 | choke me | |
36702 | #else | |
36703 | char (*f) () = pthread_cancel; | |
36704 | #endif | |
36705 | #ifdef __cplusplus | |
36706 | } | |
36707 | #endif | |
36708 | ||
36709 | int | |
36710 | main () | |
36711 | { | |
36712 | return f != pthread_cancel; | |
36713 | ; | |
36714 | return 0; | |
36715 | } | |
36716 | _ACEOF | |
36717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36719 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36720 | ac_status=$? |
ac1cb8d3 VS |
36721 | grep -v '^ *+' conftest.er1 >conftest.err |
36722 | rm -f conftest.er1 | |
36723 | cat conftest.err >&5 | |
a848cd7e SC |
36724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36725 | (exit $ac_status); } && | |
6ebeb4c7 | 36726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36728 | (eval $ac_try) 2>&5 | |
36729 | ac_status=$? | |
36730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36731 | (exit $ac_status); }; } && | |
36732 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36734 | (eval $ac_try) 2>&5 | |
36735 | ac_status=$? | |
36736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36737 | (exit $ac_status); }; }; then | |
36738 | ac_cv_func_pthread_cancel=yes | |
36739 | else | |
36740 | echo "$as_me: failed program was:" >&5 | |
36741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36742 | ||
36743 | ac_cv_func_pthread_cancel=no | |
36744 | fi | |
ac1cb8d3 VS |
36745 | rm -f conftest.err conftest.$ac_objext \ |
36746 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36747 | fi |
36748 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
36749 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
36750 | if test $ac_cv_func_pthread_cancel = yes; then | |
36751 | cat >>confdefs.h <<\_ACEOF | |
36752 | #define HAVE_PTHREAD_CANCEL 1 | |
36753 | _ACEOF | |
36754 | ||
36755 | else | |
36756 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
36757 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
36758 | fi | |
36759 | ||
36760 | ||
abc736fd MW |
36761 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
36762 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
36763 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
36764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36765 | else | |
36766 | cat >conftest.$ac_ext <<_ACEOF | |
36767 | /* confdefs.h. */ | |
36768 | _ACEOF | |
36769 | cat confdefs.h >>conftest.$ac_ext | |
36770 | cat >>conftest.$ac_ext <<_ACEOF | |
36771 | /* end confdefs.h. */ | |
36772 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
36773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36774 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
36775 | ||
36776 | /* System header to define __stub macros and hopefully few prototypes, | |
36777 | which can conflict with char pthread_attr_setstacksize (); below. | |
36778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36779 | <limits.h> exists even on freestanding compilers. */ | |
36780 | ||
36781 | #ifdef __STDC__ | |
36782 | # include <limits.h> | |
36783 | #else | |
36784 | # include <assert.h> | |
36785 | #endif | |
36786 | ||
36787 | #undef pthread_attr_setstacksize | |
36788 | ||
36789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36790 | #ifdef __cplusplus | |
36791 | extern "C" | |
36792 | { | |
36793 | #endif | |
36794 | /* We use char because int might match the return type of a gcc2 | |
36795 | builtin and then its argument prototype would still apply. */ | |
36796 | char pthread_attr_setstacksize (); | |
36797 | /* The GNU C library defines this for functions which it implements | |
36798 | to always fail with ENOSYS. Some functions are actually named | |
36799 | something starting with __ and the normal name is an alias. */ | |
36800 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
36801 | choke me | |
36802 | #else | |
36803 | char (*f) () = pthread_attr_setstacksize; | |
36804 | #endif | |
36805 | #ifdef __cplusplus | |
36806 | } | |
36807 | #endif | |
36808 | ||
36809 | int | |
36810 | main () | |
36811 | { | |
36812 | return f != pthread_attr_setstacksize; | |
36813 | ; | |
36814 | return 0; | |
36815 | } | |
36816 | _ACEOF | |
36817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36819 | (eval $ac_link) 2>conftest.er1 | |
36820 | ac_status=$? | |
36821 | grep -v '^ *+' conftest.er1 >conftest.err | |
36822 | rm -f conftest.er1 | |
36823 | cat conftest.err >&5 | |
36824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36825 | (exit $ac_status); } && | |
6ebeb4c7 | 36826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
36827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36828 | (eval $ac_try) 2>&5 | |
36829 | ac_status=$? | |
36830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36831 | (exit $ac_status); }; } && | |
36832 | { ac_try='test -s conftest$ac_exeext' | |
36833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36834 | (eval $ac_try) 2>&5 | |
36835 | ac_status=$? | |
36836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36837 | (exit $ac_status); }; }; then | |
36838 | ac_cv_func_pthread_attr_setstacksize=yes | |
36839 | else | |
36840 | echo "$as_me: failed program was:" >&5 | |
36841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36842 | ||
36843 | ac_cv_func_pthread_attr_setstacksize=no | |
36844 | fi | |
36845 | rm -f conftest.err conftest.$ac_objext \ | |
36846 | conftest$ac_exeext conftest.$ac_ext | |
36847 | fi | |
36848 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
36849 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
36850 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
36851 | cat >>confdefs.h <<\_ACEOF | |
36852 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
36853 | _ACEOF | |
36854 | ||
36855 | fi | |
36856 | ||
a848cd7e SC |
36857 | |
36858 | ||
36859 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
36860 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
36861 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
36862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36863 | else | |
36864 | ||
36865 | cat >conftest.$ac_ext <<_ACEOF | |
36866 | /* confdefs.h. */ | |
36867 | _ACEOF | |
36868 | cat confdefs.h >>conftest.$ac_ext | |
36869 | cat >>conftest.$ac_ext <<_ACEOF | |
36870 | /* end confdefs.h. */ | |
36871 | #include <pthread.h> | |
36872 | int | |
36873 | main () | |
36874 | { | |
36875 | ||
36876 | pthread_mutexattr_t attr; | |
36877 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
36878 | ||
36879 | ; | |
36880 | return 0; | |
36881 | } | |
36882 | _ACEOF | |
36883 | rm -f conftest.$ac_objext | |
36884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36885 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36886 | ac_status=$? |
ac1cb8d3 VS |
36887 | grep -v '^ *+' conftest.er1 >conftest.err |
36888 | rm -f conftest.er1 | |
36889 | cat conftest.err >&5 | |
a848cd7e SC |
36890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36891 | (exit $ac_status); } && | |
6ebeb4c7 | 36892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36894 | (eval $ac_try) 2>&5 | |
36895 | ac_status=$? | |
36896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36897 | (exit $ac_status); }; } && | |
36898 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36900 | (eval $ac_try) 2>&5 | |
36901 | ac_status=$? | |
36902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36903 | (exit $ac_status); }; }; then | |
36904 | ||
36905 | wx_cv_type_pthread_mutexattr_t=yes | |
36906 | ||
36907 | else | |
36908 | echo "$as_me: failed program was:" >&5 | |
36909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36910 | ||
36911 | ||
36912 | wx_cv_type_pthread_mutexattr_t=no | |
36913 | ||
36914 | ||
36915 | fi | |
ac1cb8d3 | 36916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36917 | |
36918 | fi | |
36919 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
36920 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
36921 | ||
36922 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
36923 | cat >>confdefs.h <<\_ACEOF | |
36924 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
36925 | _ACEOF | |
36926 | ||
36927 | else | |
36928 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
36929 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
36930 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
36931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36932 | else | |
36933 | ||
36934 | cat >conftest.$ac_ext <<_ACEOF | |
36935 | /* confdefs.h. */ | |
36936 | _ACEOF | |
36937 | cat confdefs.h >>conftest.$ac_ext | |
36938 | cat >>conftest.$ac_ext <<_ACEOF | |
36939 | /* end confdefs.h. */ | |
36940 | #include <pthread.h> | |
36941 | int | |
36942 | main () | |
36943 | { | |
36944 | ||
36945 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
36946 | ||
36947 | ; | |
36948 | return 0; | |
36949 | } | |
36950 | _ACEOF | |
36951 | rm -f conftest.$ac_objext | |
36952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36953 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36954 | ac_status=$? |
ac1cb8d3 VS |
36955 | grep -v '^ *+' conftest.er1 >conftest.err |
36956 | rm -f conftest.er1 | |
36957 | cat conftest.err >&5 | |
a848cd7e SC |
36958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36959 | (exit $ac_status); } && | |
6ebeb4c7 | 36960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36962 | (eval $ac_try) 2>&5 | |
36963 | ac_status=$? | |
36964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36965 | (exit $ac_status); }; } && | |
36966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36968 | (eval $ac_try) 2>&5 | |
36969 | ac_status=$? | |
36970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36971 | (exit $ac_status); }; }; then | |
36972 | ||
36973 | wx_cv_type_pthread_rec_mutex_init=yes | |
36974 | ||
36975 | else | |
36976 | echo "$as_me: failed program was:" >&5 | |
36977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36978 | ||
36979 | ||
36980 | wx_cv_type_pthread_rec_mutex_init=no | |
36981 | ||
36982 | ||
36983 | fi | |
ac1cb8d3 | 36984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36985 | |
36986 | fi | |
36987 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
36988 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
36989 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
36990 | cat >>confdefs.h <<\_ACEOF | |
36991 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
36992 | _ACEOF | |
36993 | ||
36994 | else | |
36995 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
36996 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
36997 | fi | |
36998 | fi | |
36999 | fi | |
37000 | ||
37001 | else | |
37002 | if test "$wxUSE_THREADS" = "yes" ; then | |
37003 | case "${host}" in | |
37004 | *-*-mingw32* ) | |
37005 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
37006 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
37007 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
37008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37009 | else | |
37010 | ||
37011 | CFLAGS_OLD="$CFLAGS" | |
37012 | CFLAGS="$CFLAGS -mthreads" | |
37013 | cat >conftest.$ac_ext <<_ACEOF | |
37014 | /* confdefs.h. */ | |
37015 | _ACEOF | |
37016 | cat confdefs.h >>conftest.$ac_ext | |
37017 | cat >>conftest.$ac_ext <<_ACEOF | |
37018 | /* end confdefs.h. */ | |
37019 | ||
37020 | int | |
37021 | main () | |
37022 | { | |
37023 | ||
37024 | ; | |
37025 | return 0; | |
37026 | } | |
37027 | _ACEOF | |
37028 | rm -f conftest.$ac_objext | |
37029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37030 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37031 | ac_status=$? |
ac1cb8d3 VS |
37032 | grep -v '^ *+' conftest.er1 >conftest.err |
37033 | rm -f conftest.er1 | |
37034 | cat conftest.err >&5 | |
a848cd7e SC |
37035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37036 | (exit $ac_status); } && | |
6ebeb4c7 | 37037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37039 | (eval $ac_try) 2>&5 | |
37040 | ac_status=$? | |
37041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37042 | (exit $ac_status); }; } && | |
37043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37045 | (eval $ac_try) 2>&5 | |
37046 | ac_status=$? | |
37047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37048 | (exit $ac_status); }; }; then | |
37049 | wx_cv_cflags_mthread=yes | |
37050 | else | |
37051 | echo "$as_me: failed program was:" >&5 | |
37052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37053 | ||
37054 | wx_cv_cflags_mthread=no | |
37055 | ||
37056 | fi | |
ac1cb8d3 | 37057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37058 | |
37059 | ||
37060 | fi | |
37061 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
37062 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
37063 | ||
37064 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
37065 | CXXFLAGS="$CXXFLAGS -mthreads" | |
37066 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
37067 | LDFLAGS="$LDFLAGS -mthreads" | |
37068 | else | |
37069 | CFLAGS="$CFLAGS_OLD" | |
37070 | fi | |
37071 | ;; | |
37072 | *-pc-os2*emx ) | |
37073 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37074 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37075 | LDFLAGS="$LDFLAGS -Zmt" | |
37076 | ;; | |
37077 | esac | |
37078 | fi | |
37079 | fi | |
37080 | ||
37081 | if test "$wxUSE_THREADS" = "yes"; then | |
37082 | cat >>confdefs.h <<\_ACEOF | |
37083 | #define wxUSE_THREADS 1 | |
37084 | _ACEOF | |
37085 | ||
37086 | ||
37087 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
37088 | else | |
37089 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
37090 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
37091 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
37092 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
37093 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
37094 | echo "$as_me:$LINENO: result: yes" >&5 | |
37095 | echo "${ECHO_T}yes" >&6 | |
37096 | else | |
37097 | echo "$as_me:$LINENO: result: no" >&5 | |
37098 | echo "${ECHO_T}no" >&6 | |
37099 | fi | |
37100 | fi | |
37101 | fi | |
37102 | ||
37103 | if test "$WXGTK20" = 1 ; then | |
37104 | cat >>confdefs.h <<_ACEOF | |
37105 | #define __WXGTK20__ $WXGTK20 | |
37106 | _ACEOF | |
37107 | ||
37108 | WXGTK12=1 | |
37109 | fi | |
37110 | ||
37111 | if test "$WXGTK12" = 1 ; then | |
37112 | cat >>confdefs.h <<_ACEOF | |
37113 | #define __WXGTK12__ $WXGTK12 | |
37114 | _ACEOF | |
37115 | ||
37116 | fi | |
37117 | ||
37118 | if test "$WXGTK127" = 1 ; then | |
37119 | cat >>confdefs.h <<_ACEOF | |
37120 | #define __WXGTK127__ $WXGTK127 | |
37121 | _ACEOF | |
37122 | ||
37123 | fi | |
37124 | ||
37125 | if test "$WXGPE" = 1 ; then | |
37126 | cat >>confdefs.h <<_ACEOF | |
37127 | #define __WXGPE__ $WXGPE | |
37128 | _ACEOF | |
37129 | ||
37130 | fi | |
37131 | ||
37132 | WXDEBUG= | |
37133 | ||
37134 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
37135 | WXDEBUG="-g" | |
37136 | wxUSE_OPTIMISE=no | |
37137 | fi | |
37138 | ||
37139 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
37140 | wxUSE_DEBUG_INFO=yes | |
18228ab4 MW |
37141 | if test "$GCC" = yes; then |
37142 | WXDEBUG="-ggdb" | |
37143 | fi | |
a848cd7e SC |
37144 | fi |
37145 | ||
37146 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
37147 | cat >>confdefs.h <<\_ACEOF | |
37148 | #define WXDEBUG 1 | |
37149 | _ACEOF | |
37150 | ||
37151 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
37152 | else | |
37153 | if test "$wxUSE_GTK" = 1 ; then | |
37154 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
37155 | fi | |
37156 | fi | |
37157 | ||
37158 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
37159 | cat >>confdefs.h <<\_ACEOF | |
37160 | #define wxUSE_MEMORY_TRACING 1 | |
37161 | _ACEOF | |
37162 | ||
37163 | cat >>confdefs.h <<\_ACEOF | |
37164 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
37165 | _ACEOF | |
37166 | ||
37167 | cat >>confdefs.h <<\_ACEOF | |
37168 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
37169 | _ACEOF | |
37170 | ||
37171 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
37172 | fi | |
37173 | ||
37174 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
df1b269d | 37175 | DMALLOC_LIBS="-ldmallocthcxx" |
a848cd7e SC |
37176 | fi |
37177 | ||
37178 | PROFILE= | |
37179 | if test "$wxUSE_PROFILE" = "yes" ; then | |
37180 | PROFILE=" -pg" | |
37181 | fi | |
37182 | ||
37183 | CODE_GEN_FLAGS= | |
37184 | CODE_GEN_FLAGS_CXX= | |
37185 | if test "$GCC" = "yes" ; then | |
37186 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
37187 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
37188 | fi | |
37189 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
37190 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
37191 | fi | |
37192 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
37193 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
37194 | fi | |
37195 | ||
37196 | case "${host}" in | |
37197 | powerpc*-*-aix* ) | |
37198 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
37199 | ;; | |
37200 | *-hppa* ) | |
37201 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
37202 | ;; | |
37203 | esac | |
37204 | fi | |
37205 | ||
37206 | OPTIMISE= | |
37207 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
37208 | if test "$GCC" = yes ; then | |
37209 | OPTIMISE="-O0" | |
37210 | fi | |
37211 | else | |
37212 | if test "$GCC" = yes ; then | |
37213 | OPTIMISE="-O2" | |
37214 | ||
37215 | case "${host}" in | |
37216 | i586-*-*|i686-*-* ) | |
37217 | OPTIMISE="${OPTIMISE} " | |
37218 | ;; | |
37219 | esac | |
37220 | else | |
37221 | OPTIMISE="-O" | |
37222 | fi | |
37223 | fi | |
37224 | ||
37225 | ||
37226 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
37227 | cat >>confdefs.h <<\_ACEOF | |
37228 | #define WXWIN_COMPATIBILITY_2_2 1 | |
37229 | _ACEOF | |
37230 | ||
37231 | ||
37232 | WXWIN_COMPATIBILITY_2_4="yes" | |
37233 | fi | |
37234 | ||
37235 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
37236 | cat >>confdefs.h <<\_ACEOF | |
37237 | #define WXWIN_COMPATIBILITY_2_4 1 | |
37238 | _ACEOF | |
37239 | ||
37240 | fi | |
37241 | ||
37242 | ||
37243 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 37244 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
37245 | #define wxUSE_GUI 1 |
37246 | _ACEOF | |
37247 | ||
37248 | ||
370fd4c2 | 37249 | fi |
a848cd7e SC |
37250 | |
37251 | ||
37252 | if test "$wxUSE_UNIX" = "yes"; then | |
37253 | cat >>confdefs.h <<\_ACEOF | |
37254 | #define wxUSE_UNIX 1 | |
37255 | _ACEOF | |
37256 | ||
37257 | fi | |
37258 | ||
37259 | ||
37260 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
37261 | ||
37262 | HAVE_DL_FUNCS=0 | |
37263 | HAVE_SHL_FUNCS=0 | |
37264 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
37265 | if test "$USE_DARWIN" = 1; then | |
37266 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
37267 | elif test "$USE_DOS" = 1; then |
37268 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
37269 | else |
37270 | ||
37271 | for ac_func in dlopen | |
37272 | do | |
37273 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37274 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37275 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37276 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37278 | else | |
37279 | cat >conftest.$ac_ext <<_ACEOF | |
37280 | /* confdefs.h. */ | |
37281 | _ACEOF | |
37282 | cat confdefs.h >>conftest.$ac_ext | |
37283 | cat >>conftest.$ac_ext <<_ACEOF | |
37284 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37285 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37287 | #define $ac_func innocuous_$ac_func | |
37288 | ||
a848cd7e SC |
37289 | /* System header to define __stub macros and hopefully few prototypes, |
37290 | which can conflict with char $ac_func (); below. | |
37291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37292 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37293 | |
a848cd7e SC |
37294 | #ifdef __STDC__ |
37295 | # include <limits.h> | |
37296 | #else | |
37297 | # include <assert.h> | |
37298 | #endif | |
ac1cb8d3 VS |
37299 | |
37300 | #undef $ac_func | |
37301 | ||
a848cd7e SC |
37302 | /* Override any gcc2 internal prototype to avoid an error. */ |
37303 | #ifdef __cplusplus | |
37304 | extern "C" | |
37305 | { | |
37306 | #endif | |
37307 | /* We use char because int might match the return type of a gcc2 | |
37308 | builtin and then its argument prototype would still apply. */ | |
37309 | char $ac_func (); | |
37310 | /* The GNU C library defines this for functions which it implements | |
37311 | to always fail with ENOSYS. Some functions are actually named | |
37312 | something starting with __ and the normal name is an alias. */ | |
37313 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37314 | choke me | |
37315 | #else | |
37316 | char (*f) () = $ac_func; | |
37317 | #endif | |
37318 | #ifdef __cplusplus | |
37319 | } | |
37320 | #endif | |
37321 | ||
37322 | int | |
37323 | main () | |
37324 | { | |
37325 | return f != $ac_func; | |
37326 | ; | |
37327 | return 0; | |
37328 | } | |
37329 | _ACEOF | |
37330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37332 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37333 | ac_status=$? |
ac1cb8d3 VS |
37334 | grep -v '^ *+' conftest.er1 >conftest.err |
37335 | rm -f conftest.er1 | |
37336 | cat conftest.err >&5 | |
a848cd7e SC |
37337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37338 | (exit $ac_status); } && | |
6ebeb4c7 | 37339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37341 | (eval $ac_try) 2>&5 | |
37342 | ac_status=$? | |
37343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37344 | (exit $ac_status); }; } && | |
37345 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37347 | (eval $ac_try) 2>&5 | |
37348 | ac_status=$? | |
37349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37350 | (exit $ac_status); }; }; then | |
37351 | eval "$as_ac_var=yes" | |
37352 | else | |
37353 | echo "$as_me: failed program was:" >&5 | |
37354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37355 | ||
37356 | eval "$as_ac_var=no" | |
37357 | fi | |
ac1cb8d3 VS |
37358 | rm -f conftest.err conftest.$ac_objext \ |
37359 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37360 | fi |
37361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37362 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37363 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37364 | cat >>confdefs.h <<_ACEOF | |
37365 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37366 | _ACEOF | |
37367 | ||
37368 | cat >>confdefs.h <<\_ACEOF | |
37369 | #define HAVE_DLOPEN 1 | |
37370 | _ACEOF | |
37371 | ||
37372 | HAVE_DL_FUNCS=1 | |
37373 | ||
37374 | else | |
37375 | ||
37376 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
37377 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
37378 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
37379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37380 | else | |
37381 | ac_check_lib_save_LIBS=$LIBS | |
37382 | LIBS="-ldl $LIBS" | |
37383 | cat >conftest.$ac_ext <<_ACEOF | |
37384 | /* confdefs.h. */ | |
37385 | _ACEOF | |
37386 | cat confdefs.h >>conftest.$ac_ext | |
37387 | cat >>conftest.$ac_ext <<_ACEOF | |
37388 | /* end confdefs.h. */ | |
37389 | ||
37390 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37391 | #ifdef __cplusplus | |
37392 | extern "C" | |
37393 | #endif | |
37394 | /* We use char because int might match the return type of a gcc2 | |
37395 | builtin and then its argument prototype would still apply. */ | |
37396 | char dlopen (); | |
37397 | int | |
37398 | main () | |
37399 | { | |
37400 | dlopen (); | |
37401 | ; | |
37402 | return 0; | |
37403 | } | |
37404 | _ACEOF | |
37405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37407 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37408 | ac_status=$? |
ac1cb8d3 VS |
37409 | grep -v '^ *+' conftest.er1 >conftest.err |
37410 | rm -f conftest.er1 | |
37411 | cat conftest.err >&5 | |
a848cd7e SC |
37412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37413 | (exit $ac_status); } && | |
6ebeb4c7 | 37414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37416 | (eval $ac_try) 2>&5 | |
37417 | ac_status=$? | |
37418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37419 | (exit $ac_status); }; } && | |
37420 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37422 | (eval $ac_try) 2>&5 | |
37423 | ac_status=$? | |
37424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37425 | (exit $ac_status); }; }; then | |
37426 | ac_cv_lib_dl_dlopen=yes | |
37427 | else | |
37428 | echo "$as_me: failed program was:" >&5 | |
37429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37430 | ||
37431 | ac_cv_lib_dl_dlopen=no | |
37432 | fi | |
ac1cb8d3 VS |
37433 | rm -f conftest.err conftest.$ac_objext \ |
37434 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37435 | LIBS=$ac_check_lib_save_LIBS |
37436 | fi | |
37437 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
37438 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
37439 | if test $ac_cv_lib_dl_dlopen = yes; then | |
37440 | ||
37441 | cat >>confdefs.h <<\_ACEOF | |
37442 | #define HAVE_DLOPEN 1 | |
37443 | _ACEOF | |
37444 | ||
37445 | HAVE_DL_FUNCS=1 | |
37446 | DL_LINK=" -ldl$DL_LINK" | |
37447 | ||
37448 | else | |
37449 | ||
37450 | ||
37451 | for ac_func in shl_load | |
37452 | do | |
37453 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37454 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37456 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37458 | else | |
37459 | cat >conftest.$ac_ext <<_ACEOF | |
37460 | /* confdefs.h. */ | |
37461 | _ACEOF | |
37462 | cat confdefs.h >>conftest.$ac_ext | |
37463 | cat >>conftest.$ac_ext <<_ACEOF | |
37464 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37465 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37466 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37467 | #define $ac_func innocuous_$ac_func | |
37468 | ||
a848cd7e SC |
37469 | /* System header to define __stub macros and hopefully few prototypes, |
37470 | which can conflict with char $ac_func (); below. | |
37471 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37472 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37473 | |
a848cd7e SC |
37474 | #ifdef __STDC__ |
37475 | # include <limits.h> | |
37476 | #else | |
37477 | # include <assert.h> | |
37478 | #endif | |
ac1cb8d3 VS |
37479 | |
37480 | #undef $ac_func | |
37481 | ||
a848cd7e SC |
37482 | /* Override any gcc2 internal prototype to avoid an error. */ |
37483 | #ifdef __cplusplus | |
37484 | extern "C" | |
37485 | { | |
37486 | #endif | |
37487 | /* We use char because int might match the return type of a gcc2 | |
37488 | builtin and then its argument prototype would still apply. */ | |
37489 | char $ac_func (); | |
37490 | /* The GNU C library defines this for functions which it implements | |
37491 | to always fail with ENOSYS. Some functions are actually named | |
37492 | something starting with __ and the normal name is an alias. */ | |
37493 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37494 | choke me | |
37495 | #else | |
37496 | char (*f) () = $ac_func; | |
37497 | #endif | |
37498 | #ifdef __cplusplus | |
37499 | } | |
37500 | #endif | |
37501 | ||
37502 | int | |
37503 | main () | |
37504 | { | |
37505 | return f != $ac_func; | |
37506 | ; | |
37507 | return 0; | |
37508 | } | |
37509 | _ACEOF | |
37510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37512 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37513 | ac_status=$? |
ac1cb8d3 VS |
37514 | grep -v '^ *+' conftest.er1 >conftest.err |
37515 | rm -f conftest.er1 | |
37516 | cat conftest.err >&5 | |
a848cd7e SC |
37517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37518 | (exit $ac_status); } && | |
6ebeb4c7 | 37519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37521 | (eval $ac_try) 2>&5 | |
37522 | ac_status=$? | |
37523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37524 | (exit $ac_status); }; } && | |
37525 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37527 | (eval $ac_try) 2>&5 | |
37528 | ac_status=$? | |
37529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37530 | (exit $ac_status); }; }; then | |
37531 | eval "$as_ac_var=yes" | |
37532 | else | |
37533 | echo "$as_me: failed program was:" >&5 | |
37534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37535 | ||
37536 | eval "$as_ac_var=no" | |
37537 | fi | |
ac1cb8d3 VS |
37538 | rm -f conftest.err conftest.$ac_objext \ |
37539 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37540 | fi |
37541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37542 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37543 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37544 | cat >>confdefs.h <<_ACEOF | |
37545 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37546 | _ACEOF | |
37547 | ||
37548 | cat >>confdefs.h <<\_ACEOF | |
37549 | #define HAVE_SHL_LOAD 1 | |
37550 | _ACEOF | |
37551 | ||
37552 | HAVE_SHL_FUNCS=1 | |
37553 | ||
37554 | else | |
37555 | ||
37556 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
37557 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
37558 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
37559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37560 | else | |
37561 | ac_check_lib_save_LIBS=$LIBS | |
37562 | LIBS="-lshl_load $LIBS" | |
37563 | cat >conftest.$ac_ext <<_ACEOF | |
37564 | /* confdefs.h. */ | |
37565 | _ACEOF | |
37566 | cat confdefs.h >>conftest.$ac_ext | |
37567 | cat >>conftest.$ac_ext <<_ACEOF | |
37568 | /* end confdefs.h. */ | |
37569 | ||
37570 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37571 | #ifdef __cplusplus | |
37572 | extern "C" | |
37573 | #endif | |
37574 | /* We use char because int might match the return type of a gcc2 | |
37575 | builtin and then its argument prototype would still apply. */ | |
37576 | char dld (); | |
37577 | int | |
37578 | main () | |
37579 | { | |
37580 | dld (); | |
37581 | ; | |
37582 | return 0; | |
37583 | } | |
37584 | _ACEOF | |
37585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37587 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37588 | ac_status=$? |
ac1cb8d3 VS |
37589 | grep -v '^ *+' conftest.er1 >conftest.err |
37590 | rm -f conftest.er1 | |
37591 | cat conftest.err >&5 | |
a848cd7e SC |
37592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37593 | (exit $ac_status); } && | |
6ebeb4c7 | 37594 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37596 | (eval $ac_try) 2>&5 | |
37597 | ac_status=$? | |
37598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37599 | (exit $ac_status); }; } && | |
37600 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37602 | (eval $ac_try) 2>&5 | |
37603 | ac_status=$? | |
37604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37605 | (exit $ac_status); }; }; then | |
37606 | ac_cv_lib_shl_load_dld=yes | |
37607 | else | |
37608 | echo "$as_me: failed program was:" >&5 | |
37609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37610 | ||
37611 | ac_cv_lib_shl_load_dld=no | |
37612 | fi | |
ac1cb8d3 VS |
37613 | rm -f conftest.err conftest.$ac_objext \ |
37614 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37615 | LIBS=$ac_check_lib_save_LIBS |
37616 | fi | |
37617 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
37618 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
37619 | if test $ac_cv_lib_shl_load_dld = yes; then | |
37620 | ||
37621 | HAVE_SHL_FUNCS=1 | |
37622 | DL_LINK=" -ldld$DL_LINK" | |
37623 | ||
37624 | fi | |
37625 | ||
37626 | ||
37627 | fi | |
37628 | done | |
37629 | ||
37630 | ||
37631 | fi | |
37632 | ||
37633 | ||
37634 | fi | |
37635 | done | |
37636 | ||
37637 | ||
37638 | if test "$HAVE_DL_FUNCS" = 1; then | |
37639 | ||
37640 | for ac_func in dlerror | |
37641 | do | |
37642 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37643 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37644 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37645 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37647 | else | |
37648 | cat >conftest.$ac_ext <<_ACEOF | |
37649 | /* confdefs.h. */ | |
37650 | _ACEOF | |
37651 | cat confdefs.h >>conftest.$ac_ext | |
37652 | cat >>conftest.$ac_ext <<_ACEOF | |
37653 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37654 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37655 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37656 | #define $ac_func innocuous_$ac_func | |
37657 | ||
a848cd7e SC |
37658 | /* System header to define __stub macros and hopefully few prototypes, |
37659 | which can conflict with char $ac_func (); below. | |
37660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37661 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37662 | |
a848cd7e SC |
37663 | #ifdef __STDC__ |
37664 | # include <limits.h> | |
37665 | #else | |
37666 | # include <assert.h> | |
37667 | #endif | |
ac1cb8d3 VS |
37668 | |
37669 | #undef $ac_func | |
37670 | ||
a848cd7e SC |
37671 | /* Override any gcc2 internal prototype to avoid an error. */ |
37672 | #ifdef __cplusplus | |
37673 | extern "C" | |
37674 | { | |
37675 | #endif | |
37676 | /* We use char because int might match the return type of a gcc2 | |
37677 | builtin and then its argument prototype would still apply. */ | |
37678 | char $ac_func (); | |
37679 | /* The GNU C library defines this for functions which it implements | |
37680 | to always fail with ENOSYS. Some functions are actually named | |
37681 | something starting with __ and the normal name is an alias. */ | |
37682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37683 | choke me | |
37684 | #else | |
37685 | char (*f) () = $ac_func; | |
37686 | #endif | |
37687 | #ifdef __cplusplus | |
37688 | } | |
37689 | #endif | |
37690 | ||
37691 | int | |
37692 | main () | |
37693 | { | |
37694 | return f != $ac_func; | |
37695 | ; | |
37696 | return 0; | |
37697 | } | |
37698 | _ACEOF | |
37699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37701 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37702 | ac_status=$? |
ac1cb8d3 VS |
37703 | grep -v '^ *+' conftest.er1 >conftest.err |
37704 | rm -f conftest.er1 | |
37705 | cat conftest.err >&5 | |
a848cd7e SC |
37706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37707 | (exit $ac_status); } && | |
6ebeb4c7 | 37708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37710 | (eval $ac_try) 2>&5 | |
37711 | ac_status=$? | |
37712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37713 | (exit $ac_status); }; } && | |
37714 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37716 | (eval $ac_try) 2>&5 | |
37717 | ac_status=$? | |
37718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37719 | (exit $ac_status); }; }; then | |
37720 | eval "$as_ac_var=yes" | |
37721 | else | |
37722 | echo "$as_me: failed program was:" >&5 | |
37723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37724 | ||
37725 | eval "$as_ac_var=no" | |
37726 | fi | |
ac1cb8d3 VS |
37727 | rm -f conftest.err conftest.$ac_objext \ |
37728 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37729 | fi |
37730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37731 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37732 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37733 | cat >>confdefs.h <<_ACEOF | |
37734 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37735 | _ACEOF | |
37736 | cat >>confdefs.h <<\_ACEOF | |
37737 | #define HAVE_DLERROR 1 | |
37738 | _ACEOF | |
37739 | ||
37740 | else | |
37741 | ||
37742 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
37743 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
37744 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
37745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37746 | else | |
37747 | ac_check_lib_save_LIBS=$LIBS | |
37748 | LIBS="-ldl $LIBS" | |
37749 | cat >conftest.$ac_ext <<_ACEOF | |
37750 | /* confdefs.h. */ | |
37751 | _ACEOF | |
37752 | cat confdefs.h >>conftest.$ac_ext | |
37753 | cat >>conftest.$ac_ext <<_ACEOF | |
37754 | /* end confdefs.h. */ | |
37755 | ||
37756 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37757 | #ifdef __cplusplus | |
37758 | extern "C" | |
37759 | #endif | |
37760 | /* We use char because int might match the return type of a gcc2 | |
37761 | builtin and then its argument prototype would still apply. */ | |
37762 | char dlerror (); | |
37763 | int | |
37764 | main () | |
37765 | { | |
37766 | dlerror (); | |
37767 | ; | |
37768 | return 0; | |
37769 | } | |
37770 | _ACEOF | |
37771 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37773 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37774 | ac_status=$? |
ac1cb8d3 VS |
37775 | grep -v '^ *+' conftest.er1 >conftest.err |
37776 | rm -f conftest.er1 | |
37777 | cat conftest.err >&5 | |
a848cd7e SC |
37778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37779 | (exit $ac_status); } && | |
6ebeb4c7 | 37780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37782 | (eval $ac_try) 2>&5 | |
37783 | ac_status=$? | |
37784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37785 | (exit $ac_status); }; } && | |
37786 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37788 | (eval $ac_try) 2>&5 | |
37789 | ac_status=$? | |
37790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37791 | (exit $ac_status); }; }; then | |
37792 | ac_cv_lib_dl_dlerror=yes | |
37793 | else | |
37794 | echo "$as_me: failed program was:" >&5 | |
37795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37796 | ||
37797 | ac_cv_lib_dl_dlerror=no | |
37798 | fi | |
ac1cb8d3 VS |
37799 | rm -f conftest.err conftest.$ac_objext \ |
37800 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37801 | LIBS=$ac_check_lib_save_LIBS |
37802 | fi | |
37803 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
37804 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
37805 | if test $ac_cv_lib_dl_dlerror = yes; then | |
37806 | cat >>confdefs.h <<\_ACEOF | |
37807 | #define HAVE_DLERROR 1 | |
37808 | _ACEOF | |
37809 | ||
37810 | fi | |
37811 | ||
37812 | ||
37813 | ||
37814 | fi | |
37815 | done | |
37816 | ||
37817 | fi | |
37818 | fi | |
37819 | ||
37820 | if test "$HAVE_DL_FUNCS" = 0; then | |
37821 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 37822 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
37823 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
37824 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
37825 | wxUSE_DYNAMIC_LOADER=no | |
37826 | wxUSE_DYNLIB_CLASS=no | |
37827 | else | |
37828 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
37829 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
37830 | fi | |
37831 | fi | |
37832 | fi | |
37833 | fi | |
37834 | fi | |
37835 | ||
37836 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
37837 | cat >>confdefs.h <<\_ACEOF | |
37838 | #define wxUSE_DYNAMIC_LOADER 1 | |
37839 | _ACEOF | |
37840 | ||
37841 | fi | |
37842 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
37843 | cat >>confdefs.h <<\_ACEOF | |
37844 | #define wxUSE_DYNLIB_CLASS 1 | |
37845 | _ACEOF | |
37846 | ||
37847 | fi | |
37848 | ||
37849 | ||
37850 | ||
37851 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
37852 | if test "$wxUSE_SHARED" = "no" ; then | |
37853 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
37854 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
37855 | wxUSE_PLUGINS=no | |
37856 | fi | |
37857 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
37858 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
37859 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
37860 | wxUSE_PLUGINS=no | |
37861 | fi | |
37862 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
37863 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
37864 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
37865 | wxUSE_PLUGINS=no | |
37866 | fi | |
37867 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
37868 | cat >>confdefs.h <<\_ACEOF | |
37869 | #define wxUSE_PLUGINS 1 | |
37870 | _ACEOF | |
37871 | ||
37872 | fi | |
37873 | fi | |
37874 | ||
37875 | ||
37876 | if test "$wxUSE_STL" = "yes"; then | |
37877 | cat >>confdefs.h <<\_ACEOF | |
37878 | #define wxUSE_STL 1 | |
37879 | _ACEOF | |
37880 | ||
37881 | fi | |
37882 | ||
37883 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
37884 | cat >>confdefs.h <<\_ACEOF | |
37885 | #define wxUSE_APPLE_IEEE 1 | |
37886 | _ACEOF | |
37887 | ||
37888 | fi | |
37889 | ||
37890 | if test "$wxUSE_TIMER" = "yes"; then | |
37891 | cat >>confdefs.h <<\_ACEOF | |
37892 | #define wxUSE_TIMER 1 | |
37893 | _ACEOF | |
37894 | ||
37895 | fi | |
37896 | ||
9c112555 | 37897 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
37898 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
37899 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
37900 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 37901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 37902 | else |
d12aef51 VZ |
37903 | |
37904 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
37905 | /* confdefs.h. */ |
37906 | _ACEOF | |
37907 | cat confdefs.h >>conftest.$ac_ext | |
37908 | cat >>conftest.$ac_ext <<_ACEOF | |
37909 | /* end confdefs.h. */ | |
d12aef51 VZ |
37910 | |
37911 | #include <sys/soundcard.h> | |
37912 | ||
37913 | int | |
37914 | main () | |
37915 | { | |
37916 | ||
37917 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
37918 | ||
37919 | ; | |
37920 | return 0; | |
37921 | } | |
a848cd7e | 37922 | _ACEOF |
d12aef51 VZ |
37923 | rm -f conftest.$ac_objext conftest$ac_exeext |
37924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37925 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 37926 | ac_status=$? |
ac1cb8d3 VS |
37927 | grep -v '^ *+' conftest.er1 >conftest.err |
37928 | rm -f conftest.er1 | |
37929 | cat conftest.err >&5 | |
a848cd7e SC |
37930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37931 | (exit $ac_status); } && | |
6ebeb4c7 | 37932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37934 | (eval $ac_try) 2>&5 | |
37935 | ac_status=$? | |
37936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37937 | (exit $ac_status); }; } && | |
d12aef51 | 37938 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
37939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37940 | (eval $ac_try) 2>&5 | |
37941 | ac_status=$? | |
37942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37943 | (exit $ac_status); }; }; then | |
d12aef51 | 37944 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
37945 | else |
37946 | echo "$as_me: failed program was:" >&5 | |
37947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37948 | ||
a848cd7e | 37949 | |
d12aef51 VZ |
37950 | saveLibs="$LIBS" |
37951 | LIBS="$saveLibs -lossaudio" | |
37952 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
37953 | /* confdefs.h. */ |
37954 | _ACEOF | |
37955 | cat confdefs.h >>conftest.$ac_ext | |
37956 | cat >>conftest.$ac_ext <<_ACEOF | |
37957 | /* end confdefs.h. */ | |
d12aef51 VZ |
37958 | |
37959 | #include <sys/soundcard.h> | |
37960 | ||
37961 | int | |
37962 | main () | |
37963 | { | |
37964 | ||
37965 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
37966 | ||
37967 | ; | |
37968 | return 0; | |
37969 | } | |
a848cd7e | 37970 | _ACEOF |
d12aef51 VZ |
37971 | rm -f conftest.$ac_objext conftest$ac_exeext |
37972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37973 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
37974 | ac_status=$? |
37975 | grep -v '^ *+' conftest.er1 >conftest.err | |
37976 | rm -f conftest.er1 | |
37977 | cat conftest.err >&5 | |
37978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 VZ |
37979 | (exit $ac_status); } && |
37980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
37981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37982 | (eval $ac_try) 2>&5 | |
37983 | ac_status=$? | |
37984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37985 | (exit $ac_status); }; } && | |
37986 | { ac_try='test -s conftest$ac_exeext' | |
37987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37988 | (eval $ac_try) 2>&5 | |
37989 | ac_status=$? | |
37990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37991 | (exit $ac_status); }; }; then | |
37992 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
37993 | else |
37994 | echo "$as_me: failed program was:" >&5 | |
37995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37996 | ||
a848cd7e | 37997 | |
d12aef51 VZ |
37998 | LIBS="$saveLibs" |
37999 | ac_cv_header_sys_soundcard=no | |
38000 | ||
38001 | ||
a848cd7e | 38002 | fi |
d12aef51 VZ |
38003 | rm -f conftest.err conftest.$ac_objext \ |
38004 | conftest$ac_exeext conftest.$ac_ext | |
38005 | ||
a848cd7e SC |
38006 | |
38007 | fi | |
d12aef51 VZ |
38008 | rm -f conftest.err conftest.$ac_objext \ |
38009 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38010 | |
38011 | fi | |
d12aef51 VZ |
38012 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
38013 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 38014 | |
d12aef51 VZ |
38015 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
38016 | cat >>confdefs.h <<\_ACEOF | |
38017 | #define HAVE_SYS_SOUNDCARD_H 1 | |
38018 | _ACEOF | |
a848cd7e | 38019 | |
d12aef51 VZ |
38020 | else |
38021 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
38022 | fi | |
9c112555 MW |
38023 | fi |
38024 | WITH_PLUGIN_SDL=0 | |
38025 | if test "$wxUSE_SOUND" = "yes"; then | |
38026 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
38027 | if test "$wxUSE_LIBSDL" != "no"; then |
38028 | ||
38029 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
38030 | if test "${with_sdl_prefix+set}" = set; then | |
38031 | withval="$with_sdl_prefix" | |
38032 | sdl_prefix="$withval" | |
38033 | else | |
38034 | sdl_prefix="" | |
38035 | fi; | |
38036 | ||
38037 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
38038 | if test "${with_sdl_exec_prefix+set}" = set; then | |
38039 | withval="$with_sdl_exec_prefix" | |
38040 | sdl_exec_prefix="$withval" | |
38041 | else | |
38042 | sdl_exec_prefix="" | |
38043 | fi; | |
38044 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
38045 | if test "${enable_sdltest+set}" = set; then | |
38046 | enableval="$enable_sdltest" | |
38047 | ||
38048 | else | |
38049 | enable_sdltest=yes | |
38050 | fi; | |
38051 | ||
38052 | if test x$sdl_exec_prefix != x ; then | |
38053 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
38054 | if test x${SDL_CONFIG+set} != xset ; then | |
38055 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
38056 | fi | |
38057 | fi | |
38058 | if test x$sdl_prefix != x ; then | |
38059 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
38060 | if test x${SDL_CONFIG+set} != xset ; then | |
38061 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
38062 | fi | |
38063 | fi | |
38064 | ||
38065 | ||
38066 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
38067 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
38068 | set dummy sdl-config; ac_word=$2 | |
38069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38071 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
38072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38073 | else | |
38074 | case $SDL_CONFIG in | |
38075 | [\\/]* | ?:[\\/]*) | |
38076 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
38077 | ;; | |
38078 | *) | |
38079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38080 | for as_dir in $PATH | |
38081 | do | |
38082 | IFS=$as_save_IFS | |
38083 | test -z "$as_dir" && as_dir=. | |
38084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38085 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38086 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38088 | break 2 | |
38089 | fi | |
38090 | done | |
38091 | done | |
38092 | ||
38093 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
38094 | ;; | |
38095 | esac | |
38096 | fi | |
38097 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
38098 | ||
38099 | if test -n "$SDL_CONFIG"; then | |
38100 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
38101 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
38102 | else | |
38103 | echo "$as_me:$LINENO: result: no" >&5 | |
38104 | echo "${ECHO_T}no" >&6 | |
38105 | fi | |
38106 | ||
38107 | min_sdl_version=1.2.0 | |
38108 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
38109 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
38110 | no_sdl="" | |
38111 | if test "$SDL_CONFIG" = "no" ; then | |
38112 | no_sdl=yes | |
38113 | else | |
38114 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
38115 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
38116 | ||
38117 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
38118 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
38119 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
38120 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
38121 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
38122 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
38123 | if test "x$enable_sdltest" = "xyes" ; then | |
38124 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 38125 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
38126 | ac_save_LIBS="$LIBS" |
38127 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 38128 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
38129 | LIBS="$LIBS $SDL_LIBS" |
38130 | rm -f conf.sdltest | |
38131 | if test "$cross_compiling" = yes; then | |
38132 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
38133 | else | |
38134 | cat >conftest.$ac_ext <<_ACEOF | |
38135 | /* confdefs.h. */ | |
38136 | _ACEOF | |
38137 | cat confdefs.h >>conftest.$ac_ext | |
38138 | cat >>conftest.$ac_ext <<_ACEOF | |
38139 | /* end confdefs.h. */ | |
38140 | ||
38141 | #include <stdio.h> | |
38142 | #include <stdlib.h> | |
38143 | #include <string.h> | |
38144 | #include "SDL.h" | |
38145 | ||
38146 | char* | |
38147 | my_strdup (char *str) | |
38148 | { | |
38149 | char *new_str; | |
38150 | ||
38151 | if (str) | |
38152 | { | |
38153 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
38154 | strcpy (new_str, str); | |
38155 | } | |
38156 | else | |
38157 | new_str = NULL; | |
38158 | ||
38159 | return new_str; | |
38160 | } | |
38161 | ||
38162 | int main (int argc, char *argv[]) | |
38163 | { | |
38164 | int major, minor, micro; | |
38165 | char *tmp_version; | |
38166 | ||
38167 | /* This hangs on some systems (?) | |
38168 | system ("touch conf.sdltest"); | |
38169 | */ | |
38170 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
38171 | ||
38172 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
38173 | tmp_version = my_strdup("$min_sdl_version"); | |
38174 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
38175 | printf("%s, bad version string\n", "$min_sdl_version"); | |
38176 | exit(1); | |
38177 | } | |
38178 | ||
38179 | if (($sdl_major_version > major) || | |
38180 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
38181 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
38182 | { | |
38183 | return 0; | |
38184 | } | |
38185 | else | |
38186 | { | |
38187 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
38188 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
38189 | printf("*** best to upgrade to the required version.\n"); | |
38190 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
38191 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
38192 | printf("*** config.cache before re-running configure\n"); | |
38193 | return 1; | |
38194 | } | |
38195 | } | |
38196 | ||
38197 | ||
38198 | _ACEOF | |
38199 | rm -f conftest$ac_exeext | |
38200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38201 | (eval $ac_link) 2>&5 | |
38202 | ac_status=$? | |
38203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
38205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38206 | (eval $ac_try) 2>&5 | |
38207 | ac_status=$? | |
38208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38209 | (exit $ac_status); }; }; then | |
38210 | : | |
38211 | else | |
38212 | echo "$as_me: program exited with status $ac_status" >&5 | |
38213 | echo "$as_me: failed program was:" >&5 | |
38214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38215 | ||
38216 | ( exit $ac_status ) | |
38217 | no_sdl=yes | |
38218 | fi | |
ac1cb8d3 | 38219 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38220 | fi |
38221 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 38222 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
38223 | LIBS="$ac_save_LIBS" |
38224 | fi | |
38225 | fi | |
38226 | if test "x$no_sdl" = x ; then | |
38227 | echo "$as_me:$LINENO: result: yes" >&5 | |
38228 | echo "${ECHO_T}yes" >&6 | |
38229 | ||
38230 | EXTRALIBS_SDL="$SDL_LIBS" | |
38231 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
38232 | cat >>confdefs.h <<\_ACEOF | |
38233 | #define wxUSE_LIBSDL 1 | |
38234 | _ACEOF | |
38235 | ||
38236 | ||
38237 | else | |
38238 | echo "$as_me:$LINENO: result: no" >&5 | |
38239 | echo "${ECHO_T}no" >&6 | |
38240 | if test "$SDL_CONFIG" = "no" ; then | |
38241 | echo "*** The sdl-config script installed by SDL could not be found" | |
38242 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
38243 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
38244 | echo "*** full path to sdl-config." | |
38245 | else | |
38246 | if test -f conf.sdltest ; then | |
38247 | : | |
38248 | else | |
38249 | echo "*** Could not run SDL test program, checking why..." | |
38250 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 38251 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
38252 | LIBS="$LIBS $SDL_LIBS" |
38253 | cat >conftest.$ac_ext <<_ACEOF | |
38254 | /* confdefs.h. */ | |
38255 | _ACEOF | |
38256 | cat confdefs.h >>conftest.$ac_ext | |
38257 | cat >>conftest.$ac_ext <<_ACEOF | |
38258 | /* end confdefs.h. */ | |
38259 | ||
38260 | #include <stdio.h> | |
38261 | #include "SDL.h" | |
38262 | ||
38263 | int main(int argc, char *argv[]) | |
38264 | { return 0; } | |
38265 | #undef main | |
38266 | #define main K_and_R_C_main | |
38267 | ||
38268 | int | |
38269 | main () | |
38270 | { | |
38271 | return 0; | |
38272 | ; | |
38273 | return 0; | |
38274 | } | |
38275 | _ACEOF | |
38276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38278 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38279 | ac_status=$? |
ac1cb8d3 VS |
38280 | grep -v '^ *+' conftest.er1 >conftest.err |
38281 | rm -f conftest.er1 | |
38282 | cat conftest.err >&5 | |
a848cd7e SC |
38283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38284 | (exit $ac_status); } && | |
6ebeb4c7 | 38285 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38287 | (eval $ac_try) 2>&5 | |
38288 | ac_status=$? | |
38289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38290 | (exit $ac_status); }; } && | |
38291 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38293 | (eval $ac_try) 2>&5 | |
38294 | ac_status=$? | |
38295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38296 | (exit $ac_status); }; }; then | |
38297 | echo "*** The test program compiled, but did not run. This usually means" | |
38298 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
38299 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
38300 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
38301 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
38302 | echo "*** is required on your system" | |
38303 | echo "***" | |
38304 | echo "*** If you have an old version installed, it is best to remove it, although" | |
38305 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
38306 | else | |
38307 | echo "$as_me: failed program was:" >&5 | |
38308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38309 | ||
38310 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
38311 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
38312 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
38313 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
38314 | fi | |
ac1cb8d3 VS |
38315 | rm -f conftest.err conftest.$ac_objext \ |
38316 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 38317 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 38318 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
38319 | LIBS="$ac_save_LIBS" |
38320 | fi | |
38321 | fi | |
38322 | SDL_CFLAGS="" | |
38323 | SDL_LIBS="" | |
38324 | wxUSE_LIBSDL="no" | |
38325 | fi | |
38326 | ||
38327 | ||
38328 | rm -f conf.sdltest | |
38329 | ||
38330 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
38331 | WITH_PLUGIN_SDL=1 | |
38332 | fi | |
38333 | fi | |
38334 | fi | |
38335 | ||
38336 | cat >>confdefs.h <<\_ACEOF | |
38337 | #define wxUSE_SOUND 1 | |
38338 | _ACEOF | |
38339 | ||
38340 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
38341 | fi | |
38342 | ||
d1c38808 VZ |
38343 | if test "$WXGTK20" = 1; then |
38344 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38345 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
38346 | ||
38347 | ||
38348 | succeeded=no | |
38349 | ||
38350 | if test -z "$PKG_CONFIG"; then | |
38351 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
38352 | set dummy pkg-config; ac_word=$2 | |
38353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38355 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
38356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38357 | else | |
38358 | case $PKG_CONFIG in | |
38359 | [\\/]* | ?:[\\/]*) | |
38360 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
38361 | ;; | |
38362 | *) | |
38363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38364 | for as_dir in $PATH | |
38365 | do | |
38366 | IFS=$as_save_IFS | |
38367 | test -z "$as_dir" && as_dir=. | |
38368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38369 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38370 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38372 | break 2 | |
38373 | fi | |
38374 | done | |
38375 | done | |
38376 | ||
38377 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
38378 | ;; | |
38379 | esac | |
38380 | fi | |
38381 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
38382 | ||
38383 | if test -n "$PKG_CONFIG"; then | |
38384 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
38385 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
38386 | else | |
38387 | echo "$as_me:$LINENO: result: no" >&5 | |
38388 | echo "${ECHO_T}no" >&6 | |
38389 | fi | |
38390 | ||
38391 | fi | |
38392 | ||
38393 | if test "$PKG_CONFIG" = "no" ; then | |
38394 | echo "*** The pkg-config script could not be found. Make sure it is" | |
38395 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
38396 | echo "*** to the full path to pkg-config." | |
38397 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
38398 | else | |
38399 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
38400 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
38401 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
38402 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 38403 | |
ffa762ff | 38404 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
38405 | echo "$as_me:$LINENO: result: yes" >&5 |
38406 | echo "${ECHO_T}yes" >&6 | |
38407 | succeeded=yes | |
38408 | ||
38409 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
38410 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 38411 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38412 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
38413 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
38414 | ||
38415 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
38416 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 38417 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38418 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
38419 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
38420 | else | |
38421 | LIBGNOMEPRINTUI_CFLAGS="" | |
38422 | LIBGNOMEPRINTUI_LIBS="" | |
38423 | ## If we have a custom action on failure, don't print errors, but | |
38424 | ## do set a variable so people can do so. | |
ffa762ff | 38425 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
38426 | |
38427 | fi | |
38428 | ||
38429 | ||
38430 | ||
38431 | else | |
38432 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
38433 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
38434 | fi | |
38435 | fi | |
38436 | ||
38437 | if test $succeeded = yes; then | |
38438 | ||
d1c38808 VZ |
38439 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
38440 | cat >>confdefs.h <<\_ACEOF | |
38441 | #define wxUSE_LIBGNOMEPRINT 1 | |
38442 | _ACEOF | |
38443 | ||
38444 | ||
38445 | else | |
38446 | ||
38447 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
38448 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
38449 | wxUSE_LIBGNOMEPRINT="no" | |
38450 | ||
38451 | ||
38452 | fi | |
38453 | ||
38454 | fi | |
38455 | fi | |
38456 | fi | |
38457 | ||
38458 | ||
a848cd7e SC |
38459 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
38460 | cat >>confdefs.h <<\_ACEOF | |
38461 | #define wxUSE_CMDLINE_PARSER 1 | |
38462 | _ACEOF | |
38463 | ||
38464 | fi | |
38465 | ||
38466 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
38467 | cat >>confdefs.h <<\_ACEOF | |
38468 | #define wxUSE_STOPWATCH 1 | |
38469 | _ACEOF | |
38470 | ||
38471 | fi | |
38472 | ||
38473 | if test "$wxUSE_DATETIME" = "yes"; then | |
38474 | cat >>confdefs.h <<\_ACEOF | |
38475 | #define wxUSE_DATETIME 1 | |
38476 | _ACEOF | |
38477 | ||
38478 | fi | |
38479 | ||
38480 | if test "$wxUSE_FILE" = "yes"; then | |
38481 | cat >>confdefs.h <<\_ACEOF | |
38482 | #define wxUSE_FILE 1 | |
38483 | _ACEOF | |
38484 | ||
38485 | fi | |
38486 | ||
38487 | if test "$wxUSE_FFILE" = "yes"; then | |
38488 | cat >>confdefs.h <<\_ACEOF | |
38489 | #define wxUSE_FFILE 1 | |
38490 | _ACEOF | |
38491 | ||
38492 | fi | |
38493 | ||
38494 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
38495 | cat >>confdefs.h <<\_ACEOF | |
38496 | #define wxUSE_FILESYSTEM 1 | |
38497 | _ACEOF | |
38498 | ||
38499 | fi | |
38500 | ||
38501 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
38502 | cat >>confdefs.h <<\_ACEOF | |
38503 | #define wxUSE_FS_ZIP 1 | |
38504 | _ACEOF | |
38505 | ||
38506 | fi | |
38507 | ||
9e8e867f | 38508 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 38509 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 38510 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
38511 | _ACEOF |
38512 | ||
38513 | fi | |
38514 | ||
38515 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 38516 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
38517 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
38518 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
38519 | elif test "$wxUSE_ZLIB" = "no"; then | |
38520 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
38521 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
38522 | else | |
38523 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38524 | #define wxUSE_ZIPSTREAM 1 |
38525 | _ACEOF | |
38526 | ||
81f90336 | 38527 | fi |
a848cd7e SC |
38528 | fi |
38529 | ||
a848cd7e | 38530 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
38531 | if test "$USE_UNIX" != 1; then |
38532 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
38533 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
38534 | wxUSE_ON_FATAL_EXCEPTION=no | |
38535 | else | |
38536 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38537 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
38538 | _ACEOF | |
38539 | ||
18228ab4 | 38540 | fi |
a848cd7e SC |
38541 | fi |
38542 | ||
eaff0f0d VZ |
38543 | if test "$wxUSE_STACKWALKER" = "yes"; then |
38544 | cat >>confdefs.h <<\_ACEOF | |
38545 | #define wxUSE_STACKWALKER 1 | |
38546 | _ACEOF | |
38547 | ||
38548 | fi | |
38549 | ||
36b6448c | 38550 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
38551 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
38552 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
38553 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
38554 | wxUSE_DEBUGREPORT=no |
38555 | else | |
38556 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
38557 | #define wxUSE_DEBUGREPORT 1 |
38558 | _ACEOF | |
38559 | ||
21dfc162 MW |
38560 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
38561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
38562 | fi | |
dfe0c803 | 38563 | fi |
36b6448c VZ |
38564 | fi |
38565 | ||
a848cd7e SC |
38566 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
38567 | cat >>confdefs.h <<\_ACEOF | |
38568 | #define wxUSE_SNGLINST_CHECKER 1 | |
38569 | _ACEOF | |
38570 | ||
38571 | fi | |
38572 | ||
38573 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
38574 | cat >>confdefs.h <<\_ACEOF | |
38575 | #define wxUSE_BUSYINFO 1 | |
38576 | _ACEOF | |
38577 | ||
38578 | fi | |
38579 | ||
38580 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
38581 | cat >>confdefs.h <<\_ACEOF | |
38582 | #define wxUSE_STD_IOSTREAM 1 | |
38583 | _ACEOF | |
38584 | ||
38585 | fi | |
38586 | ||
59746b65 MW |
38587 | if test "$wxUSE_STD_STRING" = "yes"; then |
38588 | cat >>confdefs.h <<\_ACEOF | |
38589 | #define wxUSE_STD_STRING 1 | |
38590 | _ACEOF | |
38591 | ||
38592 | fi | |
38593 | ||
07158944 VZ |
38594 | if test "$wxUSE_STDPATHS" = "yes"; then |
38595 | cat >>confdefs.h <<\_ACEOF | |
38596 | #define wxUSE_STDPATHS 1 | |
38597 | _ACEOF | |
38598 | ||
38599 | fi | |
38600 | ||
a848cd7e SC |
38601 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
38602 | cat >>confdefs.h <<\_ACEOF | |
38603 | #define wxUSE_TEXTBUFFER 1 | |
38604 | _ACEOF | |
38605 | ||
38606 | fi | |
38607 | ||
38608 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
38609 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
38610 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
38611 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
38612 | else | |
38613 | cat >>confdefs.h <<\_ACEOF | |
38614 | #define wxUSE_TEXTFILE 1 | |
38615 | _ACEOF | |
38616 | ||
38617 | fi | |
38618 | fi | |
38619 | ||
38620 | if test "$wxUSE_CONFIG" = "yes" ; then | |
38621 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
38622 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
38623 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
38624 | else | |
38625 | cat >>confdefs.h <<\_ACEOF | |
38626 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
38627 | _ACEOF |
38628 | ||
38629 | cat >>confdefs.h <<\_ACEOF | |
38630 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
38631 | _ACEOF |
38632 | ||
38633 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
38634 | fi | |
38635 | fi | |
38636 | ||
38637 | if test "$wxUSE_INTL" = "yes" ; then | |
38638 | if test "$wxUSE_FILE" != "yes"; then | |
38639 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
38640 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
38641 | else | |
38642 | cat >>confdefs.h <<\_ACEOF | |
38643 | #define wxUSE_INTL 1 | |
38644 | _ACEOF | |
38645 | ||
38646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
38647 | GUIDIST="$GUIDIST INTL_DIST" | |
38648 | fi | |
38649 | fi | |
38650 | ||
38651 | if test "$wxUSE_LOG" = "yes"; then | |
38652 | cat >>confdefs.h <<\_ACEOF | |
38653 | #define wxUSE_LOG 1 | |
38654 | _ACEOF | |
38655 | ||
38656 | ||
38657 | if test "$wxUSE_LOGGUI" = "yes"; then | |
38658 | cat >>confdefs.h <<\_ACEOF | |
38659 | #define wxUSE_LOGGUI 1 | |
38660 | _ACEOF | |
38661 | ||
38662 | fi | |
38663 | ||
38664 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
38665 | cat >>confdefs.h <<\_ACEOF | |
38666 | #define wxUSE_LOGWINDOW 1 | |
38667 | _ACEOF | |
38668 | ||
38669 | fi | |
38670 | ||
38671 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
38672 | cat >>confdefs.h <<\_ACEOF | |
38673 | #define wxUSE_LOG_DIALOG 1 | |
38674 | _ACEOF | |
38675 | ||
38676 | fi | |
0b78747f MW |
38677 | |
38678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
38679 | fi |
38680 | ||
38681 | if test "$wxUSE_LONGLONG" = "yes"; then | |
38682 | cat >>confdefs.h <<\_ACEOF | |
38683 | #define wxUSE_LONGLONG 1 | |
38684 | _ACEOF | |
38685 | ||
38686 | fi | |
38687 | ||
38688 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
38689 | cat >>confdefs.h <<\_ACEOF | |
38690 | #define wxUSE_GEOMETRY 1 | |
38691 | _ACEOF | |
38692 | ||
38693 | fi | |
38694 | ||
a848cd7e SC |
38695 | if test "$wxUSE_STREAMS" = "yes" ; then |
38696 | cat >>confdefs.h <<\_ACEOF | |
38697 | #define wxUSE_STREAMS 1 | |
38698 | _ACEOF | |
38699 | ||
38700 | fi | |
38701 | ||
38702 | ||
38703 | if test "$wxUSE_DATETIME" = "yes"; then | |
38704 | ||
38705 | for ac_func in strptime | |
38706 | do | |
38707 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38708 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38709 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38710 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38712 | else | |
38713 | cat >conftest.$ac_ext <<_ACEOF | |
38714 | /* confdefs.h. */ | |
38715 | _ACEOF | |
38716 | cat confdefs.h >>conftest.$ac_ext | |
38717 | cat >>conftest.$ac_ext <<_ACEOF | |
38718 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38719 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38721 | #define $ac_func innocuous_$ac_func | |
38722 | ||
a848cd7e SC |
38723 | /* System header to define __stub macros and hopefully few prototypes, |
38724 | which can conflict with char $ac_func (); below. | |
38725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38726 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38727 | |
a848cd7e SC |
38728 | #ifdef __STDC__ |
38729 | # include <limits.h> | |
38730 | #else | |
38731 | # include <assert.h> | |
38732 | #endif | |
ac1cb8d3 VS |
38733 | |
38734 | #undef $ac_func | |
38735 | ||
a848cd7e SC |
38736 | /* Override any gcc2 internal prototype to avoid an error. */ |
38737 | #ifdef __cplusplus | |
38738 | extern "C" | |
38739 | { | |
38740 | #endif | |
38741 | /* We use char because int might match the return type of a gcc2 | |
38742 | builtin and then its argument prototype would still apply. */ | |
38743 | char $ac_func (); | |
38744 | /* The GNU C library defines this for functions which it implements | |
38745 | to always fail with ENOSYS. Some functions are actually named | |
38746 | something starting with __ and the normal name is an alias. */ | |
38747 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38748 | choke me | |
38749 | #else | |
38750 | char (*f) () = $ac_func; | |
38751 | #endif | |
38752 | #ifdef __cplusplus | |
38753 | } | |
38754 | #endif | |
38755 | ||
38756 | int | |
38757 | main () | |
38758 | { | |
38759 | return f != $ac_func; | |
38760 | ; | |
38761 | return 0; | |
38762 | } | |
38763 | _ACEOF | |
38764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38766 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38767 | ac_status=$? |
ac1cb8d3 VS |
38768 | grep -v '^ *+' conftest.er1 >conftest.err |
38769 | rm -f conftest.er1 | |
38770 | cat conftest.err >&5 | |
a848cd7e SC |
38771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38772 | (exit $ac_status); } && | |
6ebeb4c7 | 38773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38775 | (eval $ac_try) 2>&5 | |
38776 | ac_status=$? | |
38777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38778 | (exit $ac_status); }; } && | |
38779 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38781 | (eval $ac_try) 2>&5 | |
38782 | ac_status=$? | |
38783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38784 | (exit $ac_status); }; }; then | |
38785 | eval "$as_ac_var=yes" | |
38786 | else | |
38787 | echo "$as_me: failed program was:" >&5 | |
38788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38789 | ||
38790 | eval "$as_ac_var=no" | |
38791 | fi | |
ac1cb8d3 VS |
38792 | rm -f conftest.err conftest.$ac_objext \ |
38793 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38794 | fi |
38795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38796 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38797 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38798 | cat >>confdefs.h <<_ACEOF | |
38799 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38800 | _ACEOF | |
38801 | ||
38802 | fi | |
38803 | done | |
38804 | ||
38805 | ||
38806 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
38807 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
38808 | if test "${wx_cv_var_timezone+set}" = set; then | |
38809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38810 | else | |
38811 | ||
38812 | cat >conftest.$ac_ext <<_ACEOF | |
38813 | /* confdefs.h. */ | |
38814 | _ACEOF | |
38815 | cat confdefs.h >>conftest.$ac_ext | |
38816 | cat >>conftest.$ac_ext <<_ACEOF | |
38817 | /* end confdefs.h. */ | |
38818 | ||
38819 | #include <time.h> | |
38820 | ||
38821 | int | |
38822 | main () | |
38823 | { | |
38824 | ||
38825 | int tz; | |
38826 | tz = timezone; | |
38827 | ||
38828 | ; | |
38829 | return 0; | |
38830 | } | |
38831 | _ACEOF | |
38832 | rm -f conftest.$ac_objext | |
38833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38835 | ac_status=$? |
ac1cb8d3 VS |
38836 | grep -v '^ *+' conftest.er1 >conftest.err |
38837 | rm -f conftest.er1 | |
38838 | cat conftest.err >&5 | |
a848cd7e SC |
38839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38840 | (exit $ac_status); } && | |
6ebeb4c7 | 38841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38843 | (eval $ac_try) 2>&5 | |
38844 | ac_status=$? | |
38845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38846 | (exit $ac_status); }; } && | |
38847 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38849 | (eval $ac_try) 2>&5 | |
38850 | ac_status=$? | |
38851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38852 | (exit $ac_status); }; }; then | |
38853 | ||
38854 | wx_cv_var_timezone=timezone | |
38855 | ||
38856 | else | |
38857 | echo "$as_me: failed program was:" >&5 | |
38858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38859 | ||
38860 | ||
38861 | cat >conftest.$ac_ext <<_ACEOF | |
38862 | /* confdefs.h. */ | |
38863 | _ACEOF | |
38864 | cat confdefs.h >>conftest.$ac_ext | |
38865 | cat >>conftest.$ac_ext <<_ACEOF | |
38866 | /* end confdefs.h. */ | |
38867 | ||
38868 | #include <time.h> | |
38869 | ||
38870 | int | |
38871 | main () | |
38872 | { | |
38873 | ||
38874 | int tz; | |
38875 | tz = _timezone; | |
38876 | ||
38877 | ; | |
38878 | return 0; | |
38879 | } | |
38880 | _ACEOF | |
38881 | rm -f conftest.$ac_objext | |
38882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38883 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38884 | ac_status=$? |
ac1cb8d3 VS |
38885 | grep -v '^ *+' conftest.er1 >conftest.err |
38886 | rm -f conftest.er1 | |
38887 | cat conftest.err >&5 | |
a848cd7e SC |
38888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38889 | (exit $ac_status); } && | |
6ebeb4c7 | 38890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38892 | (eval $ac_try) 2>&5 | |
38893 | ac_status=$? | |
38894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38895 | (exit $ac_status); }; } && | |
38896 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38898 | (eval $ac_try) 2>&5 | |
38899 | ac_status=$? | |
38900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38901 | (exit $ac_status); }; }; then | |
38902 | ||
38903 | wx_cv_var_timezone=_timezone | |
38904 | ||
38905 | else | |
38906 | echo "$as_me: failed program was:" >&5 | |
38907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38908 | ||
38909 | ||
38910 | cat >conftest.$ac_ext <<_ACEOF | |
38911 | /* confdefs.h. */ | |
38912 | _ACEOF | |
38913 | cat confdefs.h >>conftest.$ac_ext | |
38914 | cat >>conftest.$ac_ext <<_ACEOF | |
38915 | /* end confdefs.h. */ | |
38916 | ||
38917 | #include <time.h> | |
38918 | ||
38919 | int | |
38920 | main () | |
38921 | { | |
38922 | ||
38923 | int tz; | |
38924 | tz = __timezone; | |
38925 | ||
38926 | ; | |
38927 | return 0; | |
38928 | } | |
38929 | _ACEOF | |
38930 | rm -f conftest.$ac_objext | |
38931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38933 | ac_status=$? |
ac1cb8d3 VS |
38934 | grep -v '^ *+' conftest.er1 >conftest.err |
38935 | rm -f conftest.er1 | |
38936 | cat conftest.err >&5 | |
a848cd7e SC |
38937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38938 | (exit $ac_status); } && | |
6ebeb4c7 | 38939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38941 | (eval $ac_try) 2>&5 | |
38942 | ac_status=$? | |
38943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38944 | (exit $ac_status); }; } && | |
38945 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38947 | (eval $ac_try) 2>&5 | |
38948 | ac_status=$? | |
38949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38950 | (exit $ac_status); }; }; then | |
38951 | ||
38952 | wx_cv_var_timezone=__timezone | |
38953 | ||
38954 | else | |
38955 | echo "$as_me: failed program was:" >&5 | |
38956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38957 | ||
38958 | ||
38959 | if test "$USE_DOS" = 0 ; then | |
38960 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
38961 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
38962 | fi | |
38963 | ||
38964 | ||
38965 | fi | |
ac1cb8d3 | 38966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38967 | |
38968 | ||
38969 | fi | |
ac1cb8d3 | 38970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38971 | |
38972 | ||
38973 | fi | |
ac1cb8d3 | 38974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38975 | |
38976 | ||
38977 | fi | |
38978 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
38979 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
38980 | ||
38981 | if test "x$wx_cv_var_timezone" != x ; then | |
38982 | cat >>confdefs.h <<_ACEOF | |
38983 | #define WX_TIMEZONE $wx_cv_var_timezone | |
38984 | _ACEOF | |
38985 | ||
38986 | fi | |
38987 | ||
38988 | ||
38989 | for ac_func in localtime | |
38990 | do | |
38991 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38992 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38993 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38994 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38996 | else | |
38997 | cat >conftest.$ac_ext <<_ACEOF | |
38998 | /* confdefs.h. */ | |
38999 | _ACEOF | |
39000 | cat confdefs.h >>conftest.$ac_ext | |
39001 | cat >>conftest.$ac_ext <<_ACEOF | |
39002 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39003 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39005 | #define $ac_func innocuous_$ac_func | |
39006 | ||
a848cd7e SC |
39007 | /* System header to define __stub macros and hopefully few prototypes, |
39008 | which can conflict with char $ac_func (); below. | |
39009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39010 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39011 | |
a848cd7e SC |
39012 | #ifdef __STDC__ |
39013 | # include <limits.h> | |
39014 | #else | |
39015 | # include <assert.h> | |
39016 | #endif | |
ac1cb8d3 VS |
39017 | |
39018 | #undef $ac_func | |
39019 | ||
a848cd7e SC |
39020 | /* Override any gcc2 internal prototype to avoid an error. */ |
39021 | #ifdef __cplusplus | |
39022 | extern "C" | |
39023 | { | |
39024 | #endif | |
39025 | /* We use char because int might match the return type of a gcc2 | |
39026 | builtin and then its argument prototype would still apply. */ | |
39027 | char $ac_func (); | |
39028 | /* The GNU C library defines this for functions which it implements | |
39029 | to always fail with ENOSYS. Some functions are actually named | |
39030 | something starting with __ and the normal name is an alias. */ | |
39031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39032 | choke me | |
39033 | #else | |
39034 | char (*f) () = $ac_func; | |
39035 | #endif | |
39036 | #ifdef __cplusplus | |
39037 | } | |
39038 | #endif | |
39039 | ||
39040 | int | |
39041 | main () | |
39042 | { | |
39043 | return f != $ac_func; | |
39044 | ; | |
39045 | return 0; | |
39046 | } | |
39047 | _ACEOF | |
39048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39050 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39051 | ac_status=$? |
ac1cb8d3 VS |
39052 | grep -v '^ *+' conftest.er1 >conftest.err |
39053 | rm -f conftest.er1 | |
39054 | cat conftest.err >&5 | |
a848cd7e SC |
39055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39056 | (exit $ac_status); } && | |
6ebeb4c7 | 39057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39059 | (eval $ac_try) 2>&5 | |
39060 | ac_status=$? | |
39061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39062 | (exit $ac_status); }; } && | |
39063 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39065 | (eval $ac_try) 2>&5 | |
39066 | ac_status=$? | |
39067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39068 | (exit $ac_status); }; }; then | |
39069 | eval "$as_ac_var=yes" | |
39070 | else | |
39071 | echo "$as_me: failed program was:" >&5 | |
39072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39073 | ||
39074 | eval "$as_ac_var=no" | |
39075 | fi | |
ac1cb8d3 VS |
39076 | rm -f conftest.err conftest.$ac_objext \ |
39077 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39078 | fi |
39079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39080 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39081 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39082 | cat >>confdefs.h <<_ACEOF | |
39083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39084 | _ACEOF | |
39085 | ||
39086 | fi | |
39087 | done | |
39088 | ||
39089 | ||
39090 | if test "$ac_cv_func_localtime" = "yes"; then | |
39091 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
39092 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
39093 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
39094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39095 | else | |
39096 | ||
39097 | cat >conftest.$ac_ext <<_ACEOF | |
39098 | /* confdefs.h. */ | |
39099 | _ACEOF | |
39100 | cat confdefs.h >>conftest.$ac_ext | |
39101 | cat >>conftest.$ac_ext <<_ACEOF | |
39102 | /* end confdefs.h. */ | |
39103 | ||
39104 | #include <time.h> | |
39105 | ||
39106 | int | |
39107 | main () | |
39108 | { | |
39109 | ||
39110 | struct tm tm; | |
39111 | tm.tm_gmtoff++; | |
39112 | ||
39113 | ; | |
39114 | return 0; | |
39115 | } | |
39116 | _ACEOF | |
39117 | rm -f conftest.$ac_objext | |
39118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39120 | ac_status=$? |
ac1cb8d3 VS |
39121 | grep -v '^ *+' conftest.er1 >conftest.err |
39122 | rm -f conftest.er1 | |
39123 | cat conftest.err >&5 | |
a848cd7e SC |
39124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39125 | (exit $ac_status); } && | |
6ebeb4c7 | 39126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39128 | (eval $ac_try) 2>&5 | |
39129 | ac_status=$? | |
39130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39131 | (exit $ac_status); }; } && | |
39132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39134 | (eval $ac_try) 2>&5 | |
39135 | ac_status=$? | |
39136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39137 | (exit $ac_status); }; }; then | |
39138 | ||
39139 | wx_cv_struct_tm_has_gmtoff=yes | |
39140 | ||
39141 | else | |
39142 | echo "$as_me: failed program was:" >&5 | |
39143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39144 | ||
39145 | wx_cv_struct_tm_has_gmtoff=no | |
39146 | ||
39147 | fi | |
ac1cb8d3 | 39148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39149 | |
39150 | fi | |
39151 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
39152 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
39153 | fi | |
39154 | ||
39155 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
39156 | cat >>confdefs.h <<\_ACEOF | |
39157 | #define WX_GMTOFF_IN_TM 1 | |
39158 | _ACEOF | |
39159 | ||
39160 | fi | |
39161 | ||
39162 | ||
39163 | ||
39164 | for ac_func in gettimeofday ftime | |
39165 | do | |
39166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39167 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39169 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39171 | else | |
39172 | cat >conftest.$ac_ext <<_ACEOF | |
39173 | /* confdefs.h. */ | |
39174 | _ACEOF | |
39175 | cat confdefs.h >>conftest.$ac_ext | |
39176 | cat >>conftest.$ac_ext <<_ACEOF | |
39177 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39180 | #define $ac_func innocuous_$ac_func | |
39181 | ||
a848cd7e SC |
39182 | /* System header to define __stub macros and hopefully few prototypes, |
39183 | which can conflict with char $ac_func (); below. | |
39184 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39185 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39186 | |
a848cd7e SC |
39187 | #ifdef __STDC__ |
39188 | # include <limits.h> | |
39189 | #else | |
39190 | # include <assert.h> | |
39191 | #endif | |
ac1cb8d3 VS |
39192 | |
39193 | #undef $ac_func | |
39194 | ||
a848cd7e SC |
39195 | /* Override any gcc2 internal prototype to avoid an error. */ |
39196 | #ifdef __cplusplus | |
39197 | extern "C" | |
39198 | { | |
39199 | #endif | |
39200 | /* We use char because int might match the return type of a gcc2 | |
39201 | builtin and then its argument prototype would still apply. */ | |
39202 | char $ac_func (); | |
39203 | /* The GNU C library defines this for functions which it implements | |
39204 | to always fail with ENOSYS. Some functions are actually named | |
39205 | something starting with __ and the normal name is an alias. */ | |
39206 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39207 | choke me | |
39208 | #else | |
39209 | char (*f) () = $ac_func; | |
39210 | #endif | |
39211 | #ifdef __cplusplus | |
39212 | } | |
39213 | #endif | |
39214 | ||
39215 | int | |
39216 | main () | |
39217 | { | |
39218 | return f != $ac_func; | |
39219 | ; | |
39220 | return 0; | |
39221 | } | |
39222 | _ACEOF | |
39223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39225 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39226 | ac_status=$? |
ac1cb8d3 VS |
39227 | grep -v '^ *+' conftest.er1 >conftest.err |
39228 | rm -f conftest.er1 | |
39229 | cat conftest.err >&5 | |
a848cd7e SC |
39230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39231 | (exit $ac_status); } && | |
6ebeb4c7 | 39232 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39234 | (eval $ac_try) 2>&5 | |
39235 | ac_status=$? | |
39236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39237 | (exit $ac_status); }; } && | |
39238 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39240 | (eval $ac_try) 2>&5 | |
39241 | ac_status=$? | |
39242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39243 | (exit $ac_status); }; }; then | |
39244 | eval "$as_ac_var=yes" | |
39245 | else | |
39246 | echo "$as_me: failed program was:" >&5 | |
39247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39248 | ||
39249 | eval "$as_ac_var=no" | |
39250 | fi | |
ac1cb8d3 VS |
39251 | rm -f conftest.err conftest.$ac_objext \ |
39252 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39253 | fi |
39254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39255 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39256 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39257 | cat >>confdefs.h <<_ACEOF | |
39258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39259 | _ACEOF | |
39260 | break | |
39261 | fi | |
39262 | done | |
39263 | ||
39264 | ||
39265 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
39266 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
39267 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
39268 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
39269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39270 | else | |
39271 | ||
39272 | ||
39273 | ||
39274 | ac_ext=cc | |
39275 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39276 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39277 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39278 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39279 | ||
39280 | ||
39281 | cat >conftest.$ac_ext <<_ACEOF | |
39282 | /* confdefs.h. */ | |
39283 | _ACEOF | |
39284 | cat confdefs.h >>conftest.$ac_ext | |
39285 | cat >>conftest.$ac_ext <<_ACEOF | |
39286 | /* end confdefs.h. */ | |
39287 | ||
39288 | #include <sys/time.h> | |
39289 | #include <unistd.h> | |
39290 | ||
39291 | int | |
39292 | main () | |
39293 | { | |
39294 | ||
39295 | struct timeval tv; | |
39296 | gettimeofday(&tv, NULL); | |
39297 | ||
39298 | ; | |
39299 | return 0; | |
39300 | } | |
39301 | _ACEOF | |
39302 | rm -f conftest.$ac_objext | |
39303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39304 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39305 | ac_status=$? |
ac1cb8d3 VS |
39306 | grep -v '^ *+' conftest.er1 >conftest.err |
39307 | rm -f conftest.er1 | |
39308 | cat conftest.err >&5 | |
a848cd7e SC |
39309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39310 | (exit $ac_status); } && | |
6ebeb4c7 | 39311 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39313 | (eval $ac_try) 2>&5 | |
39314 | ac_status=$? | |
39315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39316 | (exit $ac_status); }; } && | |
39317 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39319 | (eval $ac_try) 2>&5 | |
39320 | ac_status=$? | |
39321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39322 | (exit $ac_status); }; }; then | |
39323 | wx_cv_func_gettimeofday_has_2_args=yes | |
39324 | else | |
39325 | echo "$as_me: failed program was:" >&5 | |
39326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39327 | ||
39328 | cat >conftest.$ac_ext <<_ACEOF | |
39329 | /* confdefs.h. */ | |
39330 | _ACEOF | |
39331 | cat confdefs.h >>conftest.$ac_ext | |
39332 | cat >>conftest.$ac_ext <<_ACEOF | |
39333 | /* end confdefs.h. */ | |
39334 | ||
39335 | #include <sys/time.h> | |
39336 | #include <unistd.h> | |
39337 | ||
39338 | int | |
39339 | main () | |
39340 | { | |
39341 | ||
39342 | struct timeval tv; | |
39343 | gettimeofday(&tv); | |
39344 | ||
39345 | ; | |
39346 | return 0; | |
39347 | } | |
39348 | _ACEOF | |
39349 | rm -f conftest.$ac_objext | |
39350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39351 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39352 | ac_status=$? |
ac1cb8d3 VS |
39353 | grep -v '^ *+' conftest.er1 >conftest.err |
39354 | rm -f conftest.er1 | |
39355 | cat conftest.err >&5 | |
a848cd7e SC |
39356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39357 | (exit $ac_status); } && | |
6ebeb4c7 | 39358 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39360 | (eval $ac_try) 2>&5 | |
39361 | ac_status=$? | |
39362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39363 | (exit $ac_status); }; } && | |
39364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39366 | (eval $ac_try) 2>&5 | |
39367 | ac_status=$? | |
39368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39369 | (exit $ac_status); }; }; then | |
39370 | wx_cv_func_gettimeofday_has_2_args=no | |
39371 | else | |
39372 | echo "$as_me: failed program was:" >&5 | |
39373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39374 | ||
39375 | ||
39376 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
39377 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
39378 | wx_cv_func_gettimeofday_has_2_args=unknown | |
39379 | ||
39380 | ||
39381 | fi | |
ac1cb8d3 | 39382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39383 | |
39384 | fi | |
ac1cb8d3 | 39385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39386 | ac_ext=c |
39387 | ac_cpp='$CPP $CPPFLAGS' | |
39388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39391 | ||
39392 | ||
39393 | fi | |
39394 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
39395 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
39396 | ||
39397 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
39398 | cat >>confdefs.h <<\_ACEOF | |
39399 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
39400 | _ACEOF | |
39401 | ||
39402 | fi | |
39403 | fi | |
39404 | ||
39405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
39406 | fi | |
39407 | ||
39408 | ||
39409 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39410 | if test "$wxUSE_MGL" = "1"; then | |
39411 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
39412 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
39413 | wxUSE_SOCKETS="no" | |
39414 | fi | |
39415 | fi | |
39416 | ||
39417 | if test "$wxUSE_SOCKETS" = "yes"; then | |
39418 | if test "$TOOLKIT" != "MSW"; then | |
39419 | echo "$as_me:$LINENO: checking for socket" >&5 | |
39420 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
39421 | if test "${ac_cv_func_socket+set}" = set; then | |
39422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39423 | else | |
39424 | cat >conftest.$ac_ext <<_ACEOF | |
39425 | /* confdefs.h. */ | |
39426 | _ACEOF | |
39427 | cat confdefs.h >>conftest.$ac_ext | |
39428 | cat >>conftest.$ac_ext <<_ACEOF | |
39429 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39430 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
39431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39432 | #define socket innocuous_socket | |
39433 | ||
a848cd7e SC |
39434 | /* System header to define __stub macros and hopefully few prototypes, |
39435 | which can conflict with char socket (); below. | |
39436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39437 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39438 | |
a848cd7e SC |
39439 | #ifdef __STDC__ |
39440 | # include <limits.h> | |
39441 | #else | |
39442 | # include <assert.h> | |
39443 | #endif | |
ac1cb8d3 VS |
39444 | |
39445 | #undef socket | |
39446 | ||
a848cd7e SC |
39447 | /* Override any gcc2 internal prototype to avoid an error. */ |
39448 | #ifdef __cplusplus | |
39449 | extern "C" | |
39450 | { | |
39451 | #endif | |
39452 | /* We use char because int might match the return type of a gcc2 | |
39453 | builtin and then its argument prototype would still apply. */ | |
39454 | char socket (); | |
39455 | /* The GNU C library defines this for functions which it implements | |
39456 | to always fail with ENOSYS. Some functions are actually named | |
39457 | something starting with __ and the normal name is an alias. */ | |
39458 | #if defined (__stub_socket) || defined (__stub___socket) | |
39459 | choke me | |
39460 | #else | |
39461 | char (*f) () = socket; | |
39462 | #endif | |
39463 | #ifdef __cplusplus | |
39464 | } | |
39465 | #endif | |
39466 | ||
39467 | int | |
39468 | main () | |
39469 | { | |
39470 | return f != socket; | |
39471 | ; | |
39472 | return 0; | |
39473 | } | |
39474 | _ACEOF | |
39475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39477 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39478 | ac_status=$? |
ac1cb8d3 VS |
39479 | grep -v '^ *+' conftest.er1 >conftest.err |
39480 | rm -f conftest.er1 | |
39481 | cat conftest.err >&5 | |
a848cd7e SC |
39482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39483 | (exit $ac_status); } && | |
6ebeb4c7 | 39484 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
39490 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39492 | (eval $ac_try) 2>&5 | |
39493 | ac_status=$? | |
39494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39495 | (exit $ac_status); }; }; then | |
39496 | ac_cv_func_socket=yes | |
39497 | else | |
39498 | echo "$as_me: failed program was:" >&5 | |
39499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39500 | ||
39501 | ac_cv_func_socket=no | |
39502 | fi | |
ac1cb8d3 VS |
39503 | rm -f conftest.err conftest.$ac_objext \ |
39504 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39505 | fi |
39506 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
39507 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
39508 | if test $ac_cv_func_socket = yes; then | |
39509 | : | |
39510 | else | |
39511 | ||
39512 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
39513 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
39514 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
39515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39516 | else | |
39517 | ac_check_lib_save_LIBS=$LIBS | |
39518 | LIBS="-lsocket $LIBS" | |
39519 | cat >conftest.$ac_ext <<_ACEOF | |
39520 | /* confdefs.h. */ | |
39521 | _ACEOF | |
39522 | cat confdefs.h >>conftest.$ac_ext | |
39523 | cat >>conftest.$ac_ext <<_ACEOF | |
39524 | /* end confdefs.h. */ | |
39525 | ||
39526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39527 | #ifdef __cplusplus | |
39528 | extern "C" | |
39529 | #endif | |
39530 | /* We use char because int might match the return type of a gcc2 | |
39531 | builtin and then its argument prototype would still apply. */ | |
39532 | char socket (); | |
39533 | int | |
39534 | main () | |
39535 | { | |
39536 | socket (); | |
39537 | ; | |
39538 | return 0; | |
39539 | } | |
39540 | _ACEOF | |
39541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39544 | ac_status=$? |
ac1cb8d3 VS |
39545 | grep -v '^ *+' conftest.er1 >conftest.err |
39546 | rm -f conftest.er1 | |
39547 | cat conftest.err >&5 | |
a848cd7e SC |
39548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39549 | (exit $ac_status); } && | |
6ebeb4c7 | 39550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39552 | (eval $ac_try) 2>&5 | |
39553 | ac_status=$? | |
39554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39555 | (exit $ac_status); }; } && | |
39556 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39558 | (eval $ac_try) 2>&5 | |
39559 | ac_status=$? | |
39560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39561 | (exit $ac_status); }; }; then | |
39562 | ac_cv_lib_socket_socket=yes | |
39563 | else | |
39564 | echo "$as_me: failed program was:" >&5 | |
39565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39566 | ||
39567 | ac_cv_lib_socket_socket=no | |
39568 | fi | |
ac1cb8d3 VS |
39569 | rm -f conftest.err conftest.$ac_objext \ |
39570 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39571 | LIBS=$ac_check_lib_save_LIBS |
39572 | fi | |
39573 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
39574 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
39575 | if test $ac_cv_lib_socket_socket = yes; then | |
39576 | if test "$INET_LINK" != " -lsocket"; then | |
39577 | INET_LINK="$INET_LINK -lsocket" | |
39578 | fi | |
39579 | else | |
39580 | ||
39581 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
39582 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
39583 | wxUSE_SOCKETS=no | |
39584 | ||
39585 | ||
39586 | fi | |
39587 | ||
39588 | ||
39589 | ||
39590 | fi | |
39591 | ||
39592 | fi | |
39593 | fi | |
39594 | ||
39595 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
39596 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
39597 | ac_ext=cc |
39598 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39599 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39600 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39601 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39602 | ||
39603 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
39604 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
39605 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
39606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39607 | else | |
39608 | ||
39609 | cat >conftest.$ac_ext <<_ACEOF | |
39610 | /* confdefs.h. */ | |
39611 | _ACEOF | |
39612 | cat confdefs.h >>conftest.$ac_ext | |
39613 | cat >>conftest.$ac_ext <<_ACEOF | |
39614 | /* end confdefs.h. */ | |
39615 | ||
39616 | #include <sys/types.h> | |
39617 | #include <sys/socket.h> | |
39618 | ||
39619 | int | |
39620 | main () | |
39621 | { | |
39622 | ||
39623 | socklen_t len; | |
39624 | getsockname(0, 0, &len); | |
39625 | ||
39626 | ; | |
39627 | return 0; | |
39628 | } | |
39629 | _ACEOF | |
39630 | rm -f conftest.$ac_objext | |
39631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39632 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39633 | ac_status=$? |
ac1cb8d3 VS |
39634 | grep -v '^ *+' conftest.er1 >conftest.err |
39635 | rm -f conftest.er1 | |
39636 | cat conftest.err >&5 | |
a848cd7e SC |
39637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39638 | (exit $ac_status); } && | |
6ebeb4c7 | 39639 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39641 | (eval $ac_try) 2>&5 | |
39642 | ac_status=$? | |
39643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39644 | (exit $ac_status); }; } && | |
39645 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39647 | (eval $ac_try) 2>&5 | |
39648 | ac_status=$? | |
39649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39650 | (exit $ac_status); }; }; then | |
39651 | wx_cv_type_getsockname3=socklen_t | |
39652 | else | |
39653 | echo "$as_me: failed program was:" >&5 | |
39654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39655 | ||
39656 | ||
6459a506 | 39657 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 39658 | if test "$GCC" = yes ; then |
6459a506 | 39659 | CXXFLAGS="$CXXFLAGS -Werror" |
a848cd7e SC |
39660 | fi |
39661 | ||
39662 | cat >conftest.$ac_ext <<_ACEOF | |
39663 | /* confdefs.h. */ | |
39664 | _ACEOF | |
39665 | cat confdefs.h >>conftest.$ac_ext | |
39666 | cat >>conftest.$ac_ext <<_ACEOF | |
39667 | /* end confdefs.h. */ | |
39668 | ||
39669 | #include <sys/types.h> | |
39670 | #include <sys/socket.h> | |
39671 | ||
39672 | int | |
39673 | main () | |
39674 | { | |
39675 | ||
39676 | size_t len; | |
39677 | getsockname(0, 0, &len); | |
39678 | ||
39679 | ; | |
39680 | return 0; | |
39681 | } | |
39682 | _ACEOF | |
39683 | rm -f conftest.$ac_objext | |
39684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39685 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39686 | ac_status=$? |
ac1cb8d3 VS |
39687 | grep -v '^ *+' conftest.er1 >conftest.err |
39688 | rm -f conftest.er1 | |
39689 | cat conftest.err >&5 | |
a848cd7e SC |
39690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39691 | (exit $ac_status); } && | |
6ebeb4c7 | 39692 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39694 | (eval $ac_try) 2>&5 | |
39695 | ac_status=$? | |
39696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39697 | (exit $ac_status); }; } && | |
39698 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39700 | (eval $ac_try) 2>&5 | |
39701 | ac_status=$? | |
39702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39703 | (exit $ac_status); }; }; then | |
39704 | wx_cv_type_getsockname3=size_t | |
39705 | else | |
39706 | echo "$as_me: failed program was:" >&5 | |
39707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39708 | ||
39709 | cat >conftest.$ac_ext <<_ACEOF | |
39710 | /* confdefs.h. */ | |
39711 | _ACEOF | |
39712 | cat confdefs.h >>conftest.$ac_ext | |
39713 | cat >>conftest.$ac_ext <<_ACEOF | |
39714 | /* end confdefs.h. */ | |
39715 | ||
39716 | #include <sys/types.h> | |
39717 | #include <sys/socket.h> | |
39718 | ||
39719 | int | |
39720 | main () | |
39721 | { | |
39722 | ||
39723 | int len; | |
39724 | getsockname(0, 0, &len); | |
39725 | ||
39726 | ; | |
39727 | return 0; | |
39728 | } | |
39729 | _ACEOF | |
39730 | rm -f conftest.$ac_objext | |
39731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39733 | ac_status=$? |
ac1cb8d3 VS |
39734 | grep -v '^ *+' conftest.er1 >conftest.err |
39735 | rm -f conftest.er1 | |
39736 | cat conftest.err >&5 | |
a848cd7e SC |
39737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39738 | (exit $ac_status); } && | |
6ebeb4c7 | 39739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39741 | (eval $ac_try) 2>&5 | |
39742 | ac_status=$? | |
39743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39744 | (exit $ac_status); }; } && | |
39745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39747 | (eval $ac_try) 2>&5 | |
39748 | ac_status=$? | |
39749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39750 | (exit $ac_status); }; }; then | |
39751 | wx_cv_type_getsockname3=int | |
39752 | else | |
39753 | echo "$as_me: failed program was:" >&5 | |
39754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39755 | ||
39756 | wx_cv_type_getsockname3=unknown | |
39757 | ||
39758 | fi | |
ac1cb8d3 | 39759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39760 | |
39761 | fi | |
ac1cb8d3 | 39762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 39763 | |
6459a506 | 39764 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
39765 | |
39766 | ||
39767 | fi | |
ac1cb8d3 | 39768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39769 | |
39770 | fi | |
39771 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
39772 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
39773 | ||
39774 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
39775 | wxUSE_SOCKETS=no | |
39776 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
39777 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
39778 | else | |
39779 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 39780 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
39781 | _ACEOF |
39782 | ||
39783 | fi | |
39784 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
39785 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
39786 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
39787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39788 | else | |
39789 | ||
39790 | cat >conftest.$ac_ext <<_ACEOF | |
39791 | /* confdefs.h. */ | |
39792 | _ACEOF | |
39793 | cat confdefs.h >>conftest.$ac_ext | |
39794 | cat >>conftest.$ac_ext <<_ACEOF | |
39795 | /* end confdefs.h. */ | |
39796 | ||
39797 | #include <sys/types.h> | |
39798 | #include <sys/socket.h> | |
39799 | ||
39800 | int | |
39801 | main () | |
39802 | { | |
39803 | ||
39804 | socklen_t len; | |
39805 | getsockopt(0, 0, 0, 0, &len); | |
39806 | ||
39807 | ; | |
39808 | return 0; | |
39809 | } | |
39810 | _ACEOF | |
39811 | rm -f conftest.$ac_objext | |
39812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39813 | (eval $ac_compile) 2>conftest.er1 | |
39814 | ac_status=$? | |
39815 | grep -v '^ *+' conftest.er1 >conftest.err | |
39816 | rm -f conftest.er1 | |
39817 | cat conftest.err >&5 | |
39818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39819 | (exit $ac_status); } && | |
6ebeb4c7 | 39820 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
39821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39822 | (eval $ac_try) 2>&5 | |
39823 | ac_status=$? | |
39824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39825 | (exit $ac_status); }; } && | |
39826 | { ac_try='test -s conftest.$ac_objext' | |
39827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39828 | (eval $ac_try) 2>&5 | |
39829 | ac_status=$? | |
39830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39831 | (exit $ac_status); }; }; then | |
39832 | wx_cv_type_getsockopt5=socklen_t | |
39833 | else | |
39834 | echo "$as_me: failed program was:" >&5 | |
39835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39836 | ||
39837 | ||
6459a506 | 39838 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 39839 | if test "$GCC" = yes ; then |
6459a506 | 39840 | CXXFLAGS="$CXXFLAGS -Werror" |
5b674b9d DE |
39841 | fi |
39842 | ||
39843 | cat >conftest.$ac_ext <<_ACEOF | |
39844 | /* confdefs.h. */ | |
39845 | _ACEOF | |
39846 | cat confdefs.h >>conftest.$ac_ext | |
39847 | cat >>conftest.$ac_ext <<_ACEOF | |
39848 | /* end confdefs.h. */ | |
39849 | ||
39850 | #include <sys/types.h> | |
39851 | #include <sys/socket.h> | |
39852 | ||
39853 | int | |
39854 | main () | |
39855 | { | |
39856 | ||
39857 | size_t len; | |
39858 | getsockopt(0, 0, 0, 0, &len); | |
39859 | ||
39860 | ; | |
39861 | return 0; | |
39862 | } | |
39863 | _ACEOF | |
39864 | rm -f conftest.$ac_objext | |
39865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39866 | (eval $ac_compile) 2>conftest.er1 | |
39867 | ac_status=$? | |
39868 | grep -v '^ *+' conftest.er1 >conftest.err | |
39869 | rm -f conftest.er1 | |
39870 | cat conftest.err >&5 | |
39871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39872 | (exit $ac_status); } && | |
6ebeb4c7 | 39873 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
39874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39875 | (eval $ac_try) 2>&5 | |
39876 | ac_status=$? | |
39877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39878 | (exit $ac_status); }; } && | |
39879 | { ac_try='test -s conftest.$ac_objext' | |
39880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39881 | (eval $ac_try) 2>&5 | |
39882 | ac_status=$? | |
39883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39884 | (exit $ac_status); }; }; then | |
39885 | wx_cv_type_getsockopt5=size_t | |
39886 | else | |
39887 | echo "$as_me: failed program was:" >&5 | |
39888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39889 | ||
39890 | cat >conftest.$ac_ext <<_ACEOF | |
39891 | /* confdefs.h. */ | |
39892 | _ACEOF | |
39893 | cat confdefs.h >>conftest.$ac_ext | |
39894 | cat >>conftest.$ac_ext <<_ACEOF | |
39895 | /* end confdefs.h. */ | |
39896 | ||
39897 | #include <sys/types.h> | |
39898 | #include <sys/socket.h> | |
39899 | ||
39900 | int | |
39901 | main () | |
39902 | { | |
39903 | ||
39904 | int len; | |
39905 | getsockopt(0, 0, 0, 0, &len); | |
39906 | ||
39907 | ; | |
39908 | return 0; | |
39909 | } | |
39910 | _ACEOF | |
39911 | rm -f conftest.$ac_objext | |
39912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39913 | (eval $ac_compile) 2>conftest.er1 | |
39914 | ac_status=$? | |
39915 | grep -v '^ *+' conftest.er1 >conftest.err | |
39916 | rm -f conftest.er1 | |
39917 | cat conftest.err >&5 | |
39918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39919 | (exit $ac_status); } && | |
6ebeb4c7 | 39920 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
39921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39922 | (eval $ac_try) 2>&5 | |
39923 | ac_status=$? | |
39924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39925 | (exit $ac_status); }; } && | |
39926 | { ac_try='test -s conftest.$ac_objext' | |
39927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39928 | (eval $ac_try) 2>&5 | |
39929 | ac_status=$? | |
39930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39931 | (exit $ac_status); }; }; then | |
39932 | wx_cv_type_getsockopt5=int | |
39933 | else | |
39934 | echo "$as_me: failed program was:" >&5 | |
39935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39936 | ||
39937 | wx_cv_type_getsockopt5=unknown | |
39938 | ||
39939 | fi | |
39940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39941 | ||
39942 | fi | |
39943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39944 | ||
6459a506 | 39945 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
39946 | |
39947 | ||
39948 | fi | |
39949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39950 | ||
39951 | fi | |
39952 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
39953 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
39954 | ||
39955 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
39956 | wxUSE_SOCKETS=no | |
39957 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
39958 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
39959 | else | |
39960 | cat >>confdefs.h <<_ACEOF | |
39961 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
39962 | _ACEOF |
39963 | ||
39964 | fi | |
4d4ff94c VZ |
39965 | ac_ext=c |
39966 | ac_cpp='$CPP $CPPFLAGS' | |
39967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39970 | ||
a848cd7e SC |
39971 | fi |
39972 | fi | |
39973 | ||
39974 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
39975 | cat >>confdefs.h <<\_ACEOF | |
39976 | #define wxUSE_SOCKETS 1 | |
39977 | _ACEOF | |
39978 | ||
39979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
39980 | fi | |
39981 | ||
39982 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
39983 | if test "$wxUSE_SOCKETS" != "yes"; then | |
39984 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
39985 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
39986 | wxUSE_PROTOCOL=no | |
39987 | fi | |
39988 | fi | |
39989 | ||
39990 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
39991 | cat >>confdefs.h <<\_ACEOF | |
39992 | #define wxUSE_PROTOCOL 1 | |
39993 | _ACEOF | |
39994 | ||
39995 | ||
39996 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
39997 | cat >>confdefs.h <<\_ACEOF | |
39998 | #define wxUSE_PROTOCOL_HTTP 1 | |
39999 | _ACEOF | |
40000 | ||
40001 | fi | |
40002 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
40003 | cat >>confdefs.h <<\_ACEOF | |
40004 | #define wxUSE_PROTOCOL_FTP 1 | |
40005 | _ACEOF | |
40006 | ||
40007 | fi | |
40008 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
40009 | cat >>confdefs.h <<\_ACEOF | |
40010 | #define wxUSE_PROTOCOL_FILE 1 | |
40011 | _ACEOF | |
40012 | ||
40013 | fi | |
40014 | else | |
40015 | if test "$wxUSE_FS_INET" = "yes"; then | |
40016 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
40017 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
40018 | wxUSE_FS_INET="no" | |
40019 | fi | |
40020 | fi | |
40021 | ||
40022 | if test "$wxUSE_URL" = "yes"; then | |
40023 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
40024 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
40025 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
40026 | wxUSE_URL=no | |
40027 | fi | |
40028 | if test "$wxUSE_URL" = "yes"; then | |
40029 | cat >>confdefs.h <<\_ACEOF | |
40030 | #define wxUSE_URL 1 | |
40031 | _ACEOF | |
40032 | ||
40033 | fi | |
40034 | fi | |
40035 | ||
40036 | if test "$wxUSE_FS_INET" = "yes"; then | |
40037 | cat >>confdefs.h <<\_ACEOF | |
40038 | #define wxUSE_FS_INET 1 | |
40039 | _ACEOF | |
40040 | ||
40041 | fi | |
40042 | ||
40043 | ||
ee45c548 MW |
40044 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
40045 | wxUSE_JOYSTICK=no | |
40046 | ||
40047 | if test "$TOOLKIT" = "MSW"; then | |
40048 | wxUSE_JOYSTICK=yes | |
40049 | ||
40050 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
40051 | if test "$USE_DARWIN" = 1; then | |
40052 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
40053 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
40054 | ac_ext=cc | |
40055 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40056 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40057 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40058 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40059 | ||
40060 | cat >conftest.$ac_ext <<_ACEOF | |
40061 | /* confdefs.h. */ | |
40062 | _ACEOF | |
40063 | cat confdefs.h >>conftest.$ac_ext | |
40064 | cat >>conftest.$ac_ext <<_ACEOF | |
40065 | /* end confdefs.h. */ | |
40066 | #include <IOKit/hid/IOHIDLib.h> | |
40067 | int | |
40068 | main () | |
40069 | { | |
40070 | IOHIDQueueInterface *qi = NULL; | |
40071 | IOHIDCallbackFunction cb = NULL; | |
40072 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
40073 | ; | |
40074 | return 0; | |
40075 | } | |
40076 | _ACEOF | |
40077 | rm -f conftest.$ac_objext | |
40078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40079 | (eval $ac_compile) 2>conftest.er1 | |
40080 | ac_status=$? | |
40081 | grep -v '^ *+' conftest.er1 >conftest.err | |
40082 | rm -f conftest.er1 | |
40083 | cat conftest.err >&5 | |
40084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40085 | (exit $ac_status); } && | |
6ebeb4c7 | 40086 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
40087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40088 | (eval $ac_try) 2>&5 | |
40089 | ac_status=$? | |
40090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40091 | (exit $ac_status); }; } && | |
40092 | { ac_try='test -s conftest.$ac_objext' | |
40093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40094 | (eval $ac_try) 2>&5 | |
40095 | ac_status=$? | |
40096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40097 | (exit $ac_status); }; }; then | |
40098 | wxUSE_JOYSTICK=yes | |
a848cd7e | 40099 | |
ee45c548 MW |
40100 | else |
40101 | echo "$as_me: failed program was:" >&5 | |
40102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40103 | ||
40104 | fi | |
40105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40106 | ac_ext=c | |
40107 | ac_cpp='$CPP $CPPFLAGS' | |
40108 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40109 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40110 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40111 | ||
40112 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
40113 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
40114 | fi | |
40115 | ||
40116 | else | |
a848cd7e SC |
40117 | |
40118 | for ac_header in linux/joystick.h | |
40119 | do | |
40120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40122 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40126 | fi | |
40127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40129 | else | |
40130 | # Is the header compilable? | |
40131 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
40132 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
40133 | cat >conftest.$ac_ext <<_ACEOF | |
40134 | /* confdefs.h. */ | |
40135 | _ACEOF | |
40136 | cat confdefs.h >>conftest.$ac_ext | |
40137 | cat >>conftest.$ac_ext <<_ACEOF | |
40138 | /* end confdefs.h. */ | |
40139 | $ac_includes_default | |
40140 | #include <$ac_header> | |
40141 | _ACEOF | |
40142 | rm -f conftest.$ac_objext | |
40143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40144 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40145 | ac_status=$? |
ac1cb8d3 VS |
40146 | grep -v '^ *+' conftest.er1 >conftest.err |
40147 | rm -f conftest.er1 | |
40148 | cat conftest.err >&5 | |
a848cd7e SC |
40149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40150 | (exit $ac_status); } && | |
6ebeb4c7 | 40151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40153 | (eval $ac_try) 2>&5 | |
40154 | ac_status=$? | |
40155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40156 | (exit $ac_status); }; } && | |
40157 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40159 | (eval $ac_try) 2>&5 | |
40160 | ac_status=$? | |
40161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40162 | (exit $ac_status); }; }; then | |
40163 | ac_header_compiler=yes | |
40164 | else | |
40165 | echo "$as_me: failed program was:" >&5 | |
40166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40167 | ||
40168 | ac_header_compiler=no | |
40169 | fi | |
ac1cb8d3 | 40170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40171 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
40172 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
40173 | ||
40174 | # Is the header present? | |
40175 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
40176 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
40177 | cat >conftest.$ac_ext <<_ACEOF | |
40178 | /* confdefs.h. */ | |
40179 | _ACEOF | |
40180 | cat confdefs.h >>conftest.$ac_ext | |
40181 | cat >>conftest.$ac_ext <<_ACEOF | |
40182 | /* end confdefs.h. */ | |
40183 | #include <$ac_header> | |
40184 | _ACEOF | |
40185 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40186 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
40187 | ac_status=$? | |
40188 | grep -v '^ *+' conftest.er1 >conftest.err | |
40189 | rm -f conftest.er1 | |
40190 | cat conftest.err >&5 | |
40191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40192 | (exit $ac_status); } >/dev/null; then | |
40193 | if test -s conftest.err; then | |
40194 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 40195 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
40196 | else |
40197 | ac_cpp_err= | |
40198 | fi | |
40199 | else | |
40200 | ac_cpp_err=yes | |
40201 | fi | |
40202 | if test -z "$ac_cpp_err"; then | |
40203 | ac_header_preproc=yes | |
40204 | else | |
40205 | echo "$as_me: failed program was:" >&5 | |
40206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40207 | ||
40208 | ac_header_preproc=no | |
40209 | fi | |
40210 | rm -f conftest.err conftest.$ac_ext | |
40211 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40212 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40213 | ||
40214 | # So? What about this header? | |
ac1cb8d3 VS |
40215 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
40216 | yes:no: ) | |
a848cd7e SC |
40217 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40218 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40219 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40220 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40221 | ac_header_preproc=yes | |
a848cd7e | 40222 | ;; |
ac1cb8d3 | 40223 | no:yes:* ) |
a848cd7e SC |
40224 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40225 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40226 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40227 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40228 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40229 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40230 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40231 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40232 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40233 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40234 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40235 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40236 | ( |
40237 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40238 | ## ----------------------------------------- ## |
40239 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40240 | ## ----------------------------------------- ## | |
a848cd7e SC |
40241 | _ASBOX |
40242 | ) | | |
40243 | sed "s/^/$as_me: WARNING: /" >&2 | |
40244 | ;; | |
40245 | esac | |
40246 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40248 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40250 | else | |
ac1cb8d3 | 40251 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40252 | fi |
40253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40254 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40255 | ||
40256 | fi | |
40257 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40258 | cat >>confdefs.h <<_ACEOF | |
40259 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40260 | _ACEOF | |
ee45c548 | 40261 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
40262 | fi |
40263 | ||
40264 | done | |
40265 | ||
ee45c548 | 40266 | fi |
4cb1d3da | 40267 | |
ee45c548 MW |
40268 | if test "$wxUSE_JOYSTICK" = "yes"; then |
40269 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40270 | #define wxUSE_JOYSTICK 1 |
40271 | _ACEOF | |
40272 | ||
ee45c548 MW |
40273 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
40274 | else | |
40275 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
40276 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
40277 | fi |
40278 | fi | |
40279 | ||
40280 | ||
40281 | ||
40282 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
40283 | cat >>confdefs.h <<\_ACEOF | |
40284 | #define wxUSE_FONTMAP 1 | |
40285 | _ACEOF | |
40286 | ||
40287 | fi | |
40288 | ||
40289 | if test "$wxUSE_UNICODE" = "yes" ; then | |
40290 | cat >>confdefs.h <<\_ACEOF | |
40291 | #define wxUSE_UNICODE 1 | |
40292 | _ACEOF | |
40293 | ||
40294 | ||
40295 | if test "$USE_WIN32" != 1; then | |
40296 | wxUSE_UNICODE_MSLU=no | |
40297 | fi | |
40298 | ||
40299 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
40300 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
40301 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
40302 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
40303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40304 | else | |
40305 | ac_check_lib_save_LIBS=$LIBS | |
40306 | LIBS="-lunicows $LIBS" | |
40307 | cat >conftest.$ac_ext <<_ACEOF | |
40308 | /* confdefs.h. */ | |
40309 | _ACEOF | |
40310 | cat confdefs.h >>conftest.$ac_ext | |
40311 | cat >>conftest.$ac_ext <<_ACEOF | |
40312 | /* end confdefs.h. */ | |
40313 | ||
40314 | ||
40315 | int | |
40316 | main () | |
40317 | { | |
40318 | main (); | |
40319 | ; | |
40320 | return 0; | |
40321 | } | |
40322 | _ACEOF | |
40323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40325 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40326 | ac_status=$? |
ac1cb8d3 VS |
40327 | grep -v '^ *+' conftest.er1 >conftest.err |
40328 | rm -f conftest.er1 | |
40329 | cat conftest.err >&5 | |
a848cd7e SC |
40330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40331 | (exit $ac_status); } && | |
6ebeb4c7 | 40332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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_exeext' | |
a848cd7e SC |
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 | ac_cv_lib_unicows_main=yes | |
40345 | else | |
40346 | echo "$as_me: failed program was:" >&5 | |
40347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40348 | ||
40349 | ac_cv_lib_unicows_main=no | |
40350 | fi | |
ac1cb8d3 VS |
40351 | rm -f conftest.err conftest.$ac_objext \ |
40352 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40353 | LIBS=$ac_check_lib_save_LIBS |
40354 | fi | |
40355 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
40356 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
40357 | if test $ac_cv_lib_unicows_main = yes; then | |
40358 | ||
40359 | cat >>confdefs.h <<\_ACEOF | |
40360 | #define wxUSE_UNICODE_MSLU 1 | |
40361 | _ACEOF | |
40362 | ||
40363 | ||
40364 | else | |
40365 | ||
40366 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40367 | Applications will only run on Windows NT/2000/XP!" >&5 | |
40368 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
40369 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
40370 | wxUSE_UNICODE_MSLU=no | |
40371 | ||
40372 | fi | |
40373 | ||
40374 | fi | |
40375 | fi | |
40376 | ||
40377 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
40378 | cat >>confdefs.h <<\_ACEOF | |
40379 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
40380 | _ACEOF | |
40381 | ||
40382 | fi | |
40383 | ||
40384 | ||
40385 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
40386 | cat >>confdefs.h <<\_ACEOF | |
40387 | #define wxUSE_POSTSCRIPT 1 | |
40388 | _ACEOF | |
40389 | ||
40390 | fi | |
40391 | ||
40392 | cat >>confdefs.h <<\_ACEOF | |
40393 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
40394 | _ACEOF | |
40395 | ||
40396 | ||
40397 | cat >>confdefs.h <<\_ACEOF | |
40398 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
40399 | _ACEOF | |
40400 | ||
40401 | ||
40402 | ||
40403 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
40404 | cat >>confdefs.h <<\_ACEOF | |
40405 | #define wxUSE_CONSTRAINTS 1 | |
40406 | _ACEOF | |
40407 | ||
40408 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
40409 | fi | |
40410 | ||
8a7b1113 VZ |
40411 | if test "$wxUSE_MDI" = "yes"; then |
40412 | cat >>confdefs.h <<\_ACEOF | |
40413 | #define wxUSE_MDI 1 | |
40414 | _ACEOF | |
40415 | ||
40416 | ||
40417 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40418 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40419 | #define wxUSE_MDI_ARCHITECTURE 1 |
40420 | _ACEOF | |
40421 | ||
8a7b1113 VZ |
40422 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
40423 | fi | |
a848cd7e SC |
40424 | fi |
40425 | ||
40426 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
40427 | cat >>confdefs.h <<\_ACEOF | |
40428 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
40429 | _ACEOF | |
40430 | ||
40431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
40432 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
40433 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
40434 | fi | |
40435 | fi | |
40436 | ||
40437 | if test "$wxUSE_HELP" = "yes"; then | |
40438 | cat >>confdefs.h <<\_ACEOF | |
40439 | #define wxUSE_HELP 1 | |
40440 | _ACEOF | |
40441 | ||
40442 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
40443 | ||
40444 | if test "$wxUSE_MSW" = 1; then | |
40445 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
40446 | cat >>confdefs.h <<\_ACEOF | |
40447 | #define wxUSE_MS_HTML_HELP 1 | |
40448 | _ACEOF | |
40449 | ||
40450 | fi | |
40451 | fi | |
40452 | ||
40453 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
40454 | if test "$wxUSE_HTML" = "yes"; then | |
40455 | cat >>confdefs.h <<\_ACEOF | |
40456 | #define wxUSE_WXHTML_HELP 1 | |
40457 | _ACEOF | |
40458 | ||
40459 | else | |
40460 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
40461 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
40462 | wxUSE_WXHTML_HELP=no | |
40463 | fi | |
40464 | fi | |
40465 | fi | |
40466 | ||
40467 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40468 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
40469 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
40470 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
40471 | else | |
40472 | cat >>confdefs.h <<\_ACEOF | |
40473 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
40474 | _ACEOF | |
40475 | ||
40476 | fi | |
40477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
40478 | fi | |
40479 | ||
40480 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
40481 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
40482 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
40483 | { (exit 1); exit 1; }; } | |
40484 | fi | |
40485 | ||
40486 | ||
efdf6afe VZ |
40487 | if test "$wxUSE_METAFILE" = "yes"; then |
40488 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
40489 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
40490 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
40491 | wxUSE_METAFILE=no | |
40492 | fi | |
40493 | fi | |
40494 | ||
40495 | ||
a848cd7e SC |
40496 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
40497 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
40498 | -o "$wxUSE_OLE" = "yes" \ | |
40499 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
40500 | ||
40501 | for ac_header in ole2.h | |
40502 | do | |
40503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40509 | fi | |
40510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40512 | else | |
40513 | # Is the header compilable? | |
40514 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
40515 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
40516 | cat >conftest.$ac_ext <<_ACEOF | |
40517 | /* confdefs.h. */ | |
40518 | _ACEOF | |
40519 | cat confdefs.h >>conftest.$ac_ext | |
40520 | cat >>conftest.$ac_ext <<_ACEOF | |
40521 | /* end confdefs.h. */ | |
40522 | $ac_includes_default | |
40523 | #include <$ac_header> | |
40524 | _ACEOF | |
40525 | rm -f conftest.$ac_objext | |
40526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40528 | ac_status=$? |
ac1cb8d3 VS |
40529 | grep -v '^ *+' conftest.er1 >conftest.err |
40530 | rm -f conftest.er1 | |
40531 | cat conftest.err >&5 | |
a848cd7e SC |
40532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40533 | (exit $ac_status); } && | |
6ebeb4c7 | 40534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40536 | (eval $ac_try) 2>&5 | |
40537 | ac_status=$? | |
40538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40539 | (exit $ac_status); }; } && | |
40540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40542 | (eval $ac_try) 2>&5 | |
40543 | ac_status=$? | |
40544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40545 | (exit $ac_status); }; }; then | |
40546 | ac_header_compiler=yes | |
40547 | else | |
40548 | echo "$as_me: failed program was:" >&5 | |
40549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40550 | ||
40551 | ac_header_compiler=no | |
40552 | fi | |
ac1cb8d3 | 40553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40554 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
40555 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
40556 | ||
40557 | # Is the header present? | |
40558 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
40559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
40560 | cat >conftest.$ac_ext <<_ACEOF | |
40561 | /* confdefs.h. */ | |
40562 | _ACEOF | |
40563 | cat confdefs.h >>conftest.$ac_ext | |
40564 | cat >>conftest.$ac_ext <<_ACEOF | |
40565 | /* end confdefs.h. */ | |
40566 | #include <$ac_header> | |
40567 | _ACEOF | |
40568 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40569 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
40570 | ac_status=$? | |
40571 | grep -v '^ *+' conftest.er1 >conftest.err | |
40572 | rm -f conftest.er1 | |
40573 | cat conftest.err >&5 | |
40574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40575 | (exit $ac_status); } >/dev/null; then | |
40576 | if test -s conftest.err; then | |
40577 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 40578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
40579 | else |
40580 | ac_cpp_err= | |
40581 | fi | |
40582 | else | |
40583 | ac_cpp_err=yes | |
40584 | fi | |
40585 | if test -z "$ac_cpp_err"; then | |
40586 | ac_header_preproc=yes | |
40587 | else | |
40588 | echo "$as_me: failed program was:" >&5 | |
40589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40590 | ||
40591 | ac_header_preproc=no | |
40592 | fi | |
40593 | rm -f conftest.err conftest.$ac_ext | |
40594 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
40595 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
40596 | ||
40597 | # So? What about this header? | |
ac1cb8d3 VS |
40598 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
40599 | yes:no: ) | |
a848cd7e SC |
40600 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
40601 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
40602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
40603 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
40604 | ac_header_preproc=yes | |
a848cd7e | 40605 | ;; |
ac1cb8d3 | 40606 | no:yes:* ) |
a848cd7e SC |
40607 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
40608 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
40609 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
40610 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
40611 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
40612 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
40613 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
40614 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
40615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
40616 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
40617 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
40618 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
40619 | ( |
40620 | cat <<\_ASBOX | |
ac1cb8d3 VS |
40621 | ## ----------------------------------------- ## |
40622 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
40623 | ## ----------------------------------------- ## | |
a848cd7e SC |
40624 | _ASBOX |
40625 | ) | | |
40626 | sed "s/^/$as_me: WARNING: /" >&2 | |
40627 | ;; | |
40628 | esac | |
40629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
40631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
40632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40633 | else | |
ac1cb8d3 | 40634 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
40635 | fi |
40636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40637 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
40638 | ||
40639 | fi | |
40640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
40641 | cat >>confdefs.h <<_ACEOF | |
40642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
40643 | _ACEOF | |
40644 | ||
40645 | fi | |
40646 | ||
40647 | done | |
40648 | ||
40649 | ||
40650 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
40651 | if test "$GCC" = yes ; then | |
40652 | ||
40653 | ||
40654 | ac_ext=cc | |
40655 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40656 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40657 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40658 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40659 | ||
40660 | ||
40661 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
40662 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
40663 | cat >conftest.$ac_ext <<_ACEOF | |
40664 | /* confdefs.h. */ | |
40665 | _ACEOF | |
40666 | cat confdefs.h >>conftest.$ac_ext | |
40667 | cat >>conftest.$ac_ext <<_ACEOF | |
40668 | /* end confdefs.h. */ | |
40669 | #include <windows.h> | |
40670 | #include <ole2.h> | |
40671 | int | |
40672 | main () | |
40673 | { | |
40674 | ||
40675 | ; | |
40676 | return 0; | |
40677 | } | |
40678 | _ACEOF | |
40679 | rm -f conftest.$ac_objext | |
40680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40682 | ac_status=$? |
ac1cb8d3 VS |
40683 | grep -v '^ *+' conftest.er1 >conftest.err |
40684 | rm -f conftest.er1 | |
40685 | cat conftest.err >&5 | |
a848cd7e SC |
40686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40687 | (exit $ac_status); } && | |
6ebeb4c7 | 40688 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40690 | (eval $ac_try) 2>&5 | |
40691 | ac_status=$? | |
40692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40693 | (exit $ac_status); }; } && | |
40694 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40696 | (eval $ac_try) 2>&5 | |
40697 | ac_status=$? | |
40698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40699 | (exit $ac_status); }; }; then | |
40700 | echo "$as_me:$LINENO: result: no" >&5 | |
40701 | echo "${ECHO_T}no" >&6 | |
40702 | else | |
40703 | echo "$as_me: failed program was:" >&5 | |
40704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40705 | ||
40706 | echo "$as_me:$LINENO: result: yes" >&5 | |
40707 | echo "${ECHO_T}yes" >&6 | |
40708 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
40709 | fi | |
ac1cb8d3 | 40710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40711 | ac_ext=c |
40712 | ac_cpp='$CPP $CPPFLAGS' | |
40713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40716 | ||
a848cd7e SC |
40717 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
40718 | if test "$wxUSE_OLE" = "yes" ; then | |
40719 | cat >>confdefs.h <<\_ACEOF | |
40720 | #define wxUSE_OLE 1 | |
40721 | _ACEOF | |
40722 | ||
0b78747f | 40723 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
40724 | fi |
40725 | fi | |
40726 | ||
40727 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
40728 | cat >>confdefs.h <<\_ACEOF | |
40729 | #define wxUSE_DATAOBJ 1 | |
40730 | _ACEOF | |
40731 | ||
40732 | fi | |
40733 | else | |
40734 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
40735 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
40736 | ||
40737 | wxUSE_CLIPBOARD=no | |
40738 | wxUSE_DRAG_AND_DROP=no | |
40739 | wxUSE_DATAOBJ=no | |
40740 | wxUSE_OLE=no | |
40741 | fi | |
40742 | ||
40743 | if test "$wxUSE_METAFILE" = "yes"; then | |
40744 | cat >>confdefs.h <<\_ACEOF | |
40745 | #define wxUSE_METAFILE 1 | |
40746 | _ACEOF | |
40747 | ||
40748 | ||
40749 | cat >>confdefs.h <<\_ACEOF | |
40750 | #define wxUSE_ENH_METAFILE 1 | |
40751 | _ACEOF | |
40752 | ||
40753 | fi | |
40754 | fi | |
40755 | ||
40756 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 40757 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
40758 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
40759 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 40760 | wxUSE_IPC=no |
a848cd7e SC |
40761 | fi |
40762 | ||
0b78747f MW |
40763 | if test "$wxUSE_IPC" = "yes"; then |
40764 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40765 | #define wxUSE_IPC 1 |
40766 | _ACEOF | |
40767 | ||
0b78747f MW |
40768 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
40769 | fi | |
a848cd7e SC |
40770 | fi |
40771 | ||
eb730a0c | 40772 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
40773 | if test "$wxUSE_MGL" = 1; then |
40774 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
40775 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
40776 | wxUSE_DATAOBJ=no | |
40777 | else | |
40778 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
40779 | #define wxUSE_DATAOBJ 1 |
40780 | _ACEOF | |
40781 | ||
2113bc77 | 40782 | fi |
eb730a0c JS |
40783 | else |
40784 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
40785 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
40786 | wxUSE_CLIPBOARD=no | |
40787 | wxUSE_DRAG_AND_DROP=no | |
40788 | fi | |
40789 | ||
a848cd7e SC |
40790 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
40791 | if test "$wxUSE_MGL" = 1; then | |
40792 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
40793 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
40794 | wxUSE_CLIPBOARD=no | |
40795 | fi | |
40796 | ||
40797 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
40798 | cat >>confdefs.h <<\_ACEOF | |
40799 | #define wxUSE_CLIPBOARD 1 | |
40800 | _ACEOF | |
40801 | ||
a848cd7e SC |
40802 | fi |
40803 | fi | |
40804 | ||
40805 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
40806 | if test "$wxUSE_GTK" = 1; then | |
40807 | if test "$WXGTK12" != 1; then | |
40808 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
40809 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
40810 | wxUSE_DRAG_AND_DROP=no | |
40811 | fi | |
40812 | fi | |
40813 | ||
40814 | if test "$wxUSE_MOTIF" = 1; then | |
40815 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
40816 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
40817 | wxUSE_DRAG_AND_DROP=no | |
40818 | fi | |
40819 | ||
40820 | if test "$wxUSE_X11" = 1; then | |
40821 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
40822 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
40823 | wxUSE_DRAG_AND_DROP=no | |
40824 | fi | |
40825 | ||
40826 | if test "$wxUSE_MGL" = 1; then | |
40827 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
40828 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
40829 | wxUSE_DRAG_AND_DROP=no | |
40830 | fi | |
40831 | ||
40832 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
40833 | cat >>confdefs.h <<\_ACEOF | |
40834 | #define wxUSE_DRAG_AND_DROP 1 | |
40835 | _ACEOF | |
40836 | ||
40837 | fi | |
40838 | ||
40839 | fi | |
40840 | ||
40841 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
40842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
40843 | fi | |
40844 | ||
40845 | if test "$wxUSE_SPLINES" = "yes" ; then | |
40846 | cat >>confdefs.h <<\_ACEOF | |
40847 | #define wxUSE_SPLINES 1 | |
40848 | _ACEOF | |
40849 | ||
40850 | fi | |
40851 | ||
fbe2ca43 SN |
40852 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
40853 | cat >>confdefs.h <<\_ACEOF | |
40854 | #define wxUSE_MOUSEWHEEL 1 | |
40855 | _ACEOF | |
40856 | ||
40857 | fi | |
40858 | ||
a848cd7e SC |
40859 | |
40860 | USES_CONTROLS=0 | |
40861 | if test "$wxUSE_CONTROLS" = "yes"; then | |
40862 | USES_CONTROLS=1 | |
40863 | fi | |
40864 | ||
40865 | if test "$wxUSE_ACCEL" = "yes"; then | |
40866 | cat >>confdefs.h <<\_ACEOF | |
40867 | #define wxUSE_ACCEL 1 | |
40868 | _ACEOF | |
40869 | ||
40870 | USES_CONTROLS=1 | |
40871 | fi | |
40872 | ||
40873 | if test "$wxUSE_BUTTON" = "yes"; then | |
40874 | cat >>confdefs.h <<\_ACEOF | |
40875 | #define wxUSE_BUTTON 1 | |
40876 | _ACEOF | |
40877 | ||
40878 | USES_CONTROLS=1 | |
40879 | fi | |
40880 | ||
40881 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
40882 | cat >>confdefs.h <<\_ACEOF | |
40883 | #define wxUSE_BMPBUTTON 1 | |
40884 | _ACEOF | |
40885 | ||
40886 | USES_CONTROLS=1 | |
40887 | fi | |
40888 | ||
40889 | if test "$wxUSE_CALCTRL" = "yes"; then | |
40890 | cat >>confdefs.h <<\_ACEOF | |
40891 | #define wxUSE_CALENDARCTRL 1 | |
40892 | _ACEOF | |
40893 | ||
40894 | USES_CONTROLS=1 | |
40895 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
40896 | fi | |
40897 | ||
40898 | if test "$wxUSE_CARET" = "yes"; then | |
40899 | cat >>confdefs.h <<\_ACEOF | |
40900 | #define wxUSE_CARET 1 | |
40901 | _ACEOF | |
40902 | ||
40903 | USES_CONTROLS=1 | |
40904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
40905 | fi | |
40906 | ||
40907 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
40908 | cat >>confdefs.h <<\_ACEOF | |
40909 | #define wxUSE_COMBOBOX 1 | |
40910 | _ACEOF | |
40911 | ||
40912 | USES_CONTROLS=1 | |
40913 | fi | |
40914 | ||
40915 | if test "$wxUSE_CHOICE" = "yes"; then | |
40916 | cat >>confdefs.h <<\_ACEOF | |
40917 | #define wxUSE_CHOICE 1 | |
40918 | _ACEOF | |
40919 | ||
40920 | USES_CONTROLS=1 | |
40921 | fi | |
40922 | ||
92bbdbcd WS |
40923 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
40924 | cat >>confdefs.h <<\_ACEOF | |
40925 | #define wxUSE_CHOICEBOOK 1 | |
40926 | _ACEOF | |
40927 | ||
40928 | USES_CONTROLS=1 | |
40929 | fi | |
40930 | ||
a848cd7e SC |
40931 | if test "$wxUSE_CHECKBOX" = "yes"; then |
40932 | cat >>confdefs.h <<\_ACEOF | |
40933 | #define wxUSE_CHECKBOX 1 | |
40934 | _ACEOF | |
40935 | ||
40936 | USES_CONTROLS=1 | |
40937 | fi | |
40938 | ||
40939 | if test "$wxUSE_CHECKLST" = "yes"; then | |
40940 | cat >>confdefs.h <<\_ACEOF | |
40941 | #define wxUSE_CHECKLISTBOX 1 | |
40942 | _ACEOF | |
40943 | ||
40944 | USES_CONTROLS=1 | |
40945 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
40946 | fi | |
40947 | ||
da98e9be VZ |
40948 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
40949 | cat >>confdefs.h <<\_ACEOF | |
40950 | #define wxUSE_DATEPICKCTRL 1 | |
40951 | _ACEOF | |
40952 | ||
40953 | USES_CONTROLS=1 | |
40954 | fi | |
40955 | ||
a848cd7e SC |
40956 | if test "$wxUSE_DISPLAY" = "yes"; then |
40957 | cat >>confdefs.h <<\_ACEOF | |
40958 | #define wxUSE_DISPLAY 1 | |
40959 | _ACEOF | |
40960 | ||
0b78747f | 40961 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
40962 | fi |
40963 | ||
40964 | if test "$wxUSE_GAUGE" = "yes"; then | |
40965 | cat >>confdefs.h <<\_ACEOF | |
40966 | #define wxUSE_GAUGE 1 | |
40967 | _ACEOF | |
40968 | ||
40969 | USES_CONTROLS=1 | |
40970 | fi | |
40971 | ||
40972 | if test "$wxUSE_GRID" = "yes"; then | |
40973 | cat >>confdefs.h <<\_ACEOF | |
40974 | #define wxUSE_GRID 1 | |
40975 | _ACEOF | |
40976 | ||
40977 | USES_CONTROLS=1 | |
40978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
40979 | fi | |
40980 | ||
40981 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
40982 | cat >>confdefs.h <<\_ACEOF | |
40983 | #define wxUSE_IMAGLIST 1 | |
40984 | _ACEOF | |
40985 | ||
40986 | fi | |
40987 | ||
40988 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
40989 | cat >>confdefs.h <<\_ACEOF | |
40990 | #define wxUSE_LISTBOOK 1 | |
40991 | _ACEOF | |
40992 | ||
40993 | USES_CONTROLS=1 | |
40994 | fi | |
40995 | ||
40996 | if test "$wxUSE_LISTBOX" = "yes"; then | |
40997 | cat >>confdefs.h <<\_ACEOF | |
40998 | #define wxUSE_LISTBOX 1 | |
40999 | _ACEOF | |
41000 | ||
41001 | USES_CONTROLS=1 | |
0b78747f | 41002 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
41003 | fi |
41004 | ||
41005 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
41006 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41007 | cat >>confdefs.h <<\_ACEOF | |
41008 | #define wxUSE_LISTCTRL 1 | |
41009 | _ACEOF | |
41010 | ||
41011 | USES_CONTROLS=1 | |
41012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
41013 | else | |
41014 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
41015 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
41016 | fi | |
41017 | fi | |
41018 | ||
41019 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
41020 | cat >>confdefs.h <<\_ACEOF | |
41021 | #define wxUSE_NOTEBOOK 1 | |
41022 | _ACEOF | |
41023 | ||
41024 | USES_CONTROLS=1 | |
41025 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
41026 | fi | |
41027 | ||
41028 | ||
41029 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
41030 | cat >>confdefs.h <<\_ACEOF | |
41031 | #define wxUSE_RADIOBOX 1 | |
41032 | _ACEOF | |
41033 | ||
41034 | USES_CONTROLS=1 | |
41035 | fi | |
41036 | ||
41037 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
41038 | cat >>confdefs.h <<\_ACEOF | |
41039 | #define wxUSE_RADIOBTN 1 | |
41040 | _ACEOF | |
41041 | ||
41042 | USES_CONTROLS=1 | |
41043 | fi | |
41044 | ||
41045 | if test "$wxUSE_SASH" = "yes"; then | |
41046 | cat >>confdefs.h <<\_ACEOF | |
41047 | #define wxUSE_SASH 1 | |
41048 | _ACEOF | |
41049 | ||
41050 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
41051 | fi | |
41052 | ||
41053 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
41054 | cat >>confdefs.h <<\_ACEOF | |
41055 | #define wxUSE_SCROLLBAR 1 | |
41056 | _ACEOF | |
41057 | ||
41058 | USES_CONTROLS=1 | |
41059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
41060 | fi | |
41061 | ||
41062 | if test "$wxUSE_SLIDER" = "yes"; then | |
41063 | cat >>confdefs.h <<\_ACEOF | |
41064 | #define wxUSE_SLIDER 1 | |
41065 | _ACEOF | |
41066 | ||
41067 | USES_CONTROLS=1 | |
41068 | fi | |
41069 | ||
41070 | if test "$wxUSE_SPINBTN" = "yes"; then | |
41071 | cat >>confdefs.h <<\_ACEOF | |
41072 | #define wxUSE_SPINBTN 1 | |
41073 | _ACEOF | |
41074 | ||
41075 | USES_CONTROLS=1 | |
41076 | fi | |
41077 | ||
41078 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
41079 | cat >>confdefs.h <<\_ACEOF | |
41080 | #define wxUSE_SPINCTRL 1 | |
41081 | _ACEOF | |
41082 | ||
41083 | USES_CONTROLS=1 | |
41084 | fi | |
41085 | ||
41086 | if test "$wxUSE_SPLITTER" = "yes"; then | |
41087 | cat >>confdefs.h <<\_ACEOF | |
41088 | #define wxUSE_SPLITTER 1 | |
41089 | _ACEOF | |
41090 | ||
41091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
41092 | fi | |
41093 | ||
41094 | if test "$wxUSE_STATBMP" = "yes"; then | |
41095 | cat >>confdefs.h <<\_ACEOF | |
41096 | #define wxUSE_STATBMP 1 | |
41097 | _ACEOF | |
41098 | ||
41099 | USES_CONTROLS=1 | |
41100 | fi | |
41101 | ||
41102 | if test "$wxUSE_STATBOX" = "yes"; then | |
41103 | cat >>confdefs.h <<\_ACEOF | |
41104 | #define wxUSE_STATBOX 1 | |
41105 | _ACEOF | |
41106 | ||
41107 | USES_CONTROLS=1 | |
41108 | fi | |
41109 | ||
41110 | if test "$wxUSE_STATTEXT" = "yes"; then | |
41111 | cat >>confdefs.h <<\_ACEOF | |
41112 | #define wxUSE_STATTEXT 1 | |
41113 | _ACEOF | |
41114 | ||
41115 | USES_CONTROLS=1 | |
41116 | fi | |
41117 | ||
41118 | if test "$wxUSE_STATLINE" = "yes"; then | |
41119 | cat >>confdefs.h <<\_ACEOF | |
41120 | #define wxUSE_STATLINE 1 | |
41121 | _ACEOF | |
41122 | ||
41123 | USES_CONTROLS=1 | |
41124 | fi | |
41125 | ||
41126 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
41127 | cat >>confdefs.h <<\_ACEOF |
41128 | #define wxUSE_NATIVE_STATUSBAR 1 | |
41129 | _ACEOF | |
41130 | ||
a848cd7e SC |
41131 | cat >>confdefs.h <<\_ACEOF |
41132 | #define wxUSE_STATUSBAR 1 | |
41133 | _ACEOF | |
41134 | ||
41135 | USES_CONTROLS=1 | |
41136 | ||
41137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
41138 | fi | |
41139 | ||
41140 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
41141 | cat >>confdefs.h <<\_ACEOF | |
41142 | #define wxUSE_TAB_DIALOG 1 | |
41143 | _ACEOF | |
41144 | ||
a848cd7e SC |
41145 | fi |
41146 | ||
41147 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
41148 | cat >>confdefs.h <<\_ACEOF | |
41149 | #define wxUSE_TEXTCTRL 1 | |
41150 | _ACEOF | |
41151 | ||
41152 | USES_CONTROLS=1 | |
41153 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
41154 | fi | |
41155 | ||
41156 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
41157 | if test "$wxUSE_COCOA" = 1 ; then | |
41158 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
41159 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
41160 | wxUSE_TOGGLEBTN=no | |
41161 | fi | |
41162 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
41163 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
41164 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
41165 | wxUSE_TOGGLEBTN=no | |
41166 | fi | |
41167 | ||
41168 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
41169 | cat >>confdefs.h <<\_ACEOF | |
41170 | #define wxUSE_TOGGLEBTN 1 | |
41171 | _ACEOF | |
41172 | ||
41173 | USES_CONTROLS=1 | |
41174 | fi | |
41175 | fi | |
41176 | ||
41177 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
41178 | cat >>confdefs.h <<\_ACEOF | |
41179 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
41180 | _ACEOF | |
41181 | ||
41182 | wxUSE_TOOLBAR="yes" | |
41183 | USES_CONTROLS=1 | |
41184 | fi | |
41185 | ||
41186 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
41187 | cat >>confdefs.h <<\_ACEOF | |
41188 | #define wxUSE_TOOLBAR 1 | |
41189 | _ACEOF | |
41190 | ||
41191 | USES_CONTROLS=1 | |
41192 | ||
41193 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
41194 | wxUSE_TOOLBAR_NATIVE="yes" | |
41195 | fi | |
41196 | ||
41197 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
41198 | cat >>confdefs.h <<\_ACEOF | |
41199 | #define wxUSE_TOOLBAR_NATIVE 1 | |
41200 | _ACEOF | |
41201 | ||
41202 | USES_CONTROLS=1 | |
41203 | fi | |
41204 | ||
41205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
41206 | fi | |
41207 | ||
41208 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
41209 | if test "$wxUSE_MOTIF" = 1; then | |
41210 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
41211 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
41212 | else | |
41213 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
41214 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
41215 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
41216 | else | |
41217 | cat >>confdefs.h <<\_ACEOF | |
41218 | #define wxUSE_TOOLTIPS 1 | |
41219 | _ACEOF | |
41220 | ||
41221 | fi | |
41222 | fi | |
41223 | fi | |
41224 | ||
41225 | if test "$wxUSE_TREECTRL" = "yes"; then | |
41226 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41227 | cat >>confdefs.h <<\_ACEOF | |
41228 | #define wxUSE_TREECTRL 1 | |
41229 | _ACEOF | |
41230 | ||
41231 | USES_CONTROLS=1 | |
41232 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
41233 | else | |
41234 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
41235 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
41236 | fi | |
41237 | fi | |
41238 | ||
41239 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
41240 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
41241 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
41242 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
41243 | else | |
41244 | if test "$wxUSE_PM" = 1; then | |
41245 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
41246 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
41247 | else | |
41248 | cat >>confdefs.h <<\_ACEOF | |
41249 | #define wxUSE_POPUPWIN 1 | |
41250 | _ACEOF | |
41251 | ||
0b78747f | 41252 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
41253 | |
41254 | USES_CONTROLS=1 | |
41255 | fi | |
41256 | fi | |
41257 | fi | |
41258 | ||
0dcd06dd | 41259 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
41260 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
41261 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
41262 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
41263 | else | |
41264 | cat >>confdefs.h <<\_ACEOF | |
41265 | #define wxUSE_DIALUP_MANAGER 1 | |
41266 | _ACEOF | |
41267 | ||
41268 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
41269 | fi | |
41270 | fi | |
41271 | ||
a848cd7e SC |
41272 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
41273 | if test "$wxUSE_PM" = 1; then | |
41274 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
41275 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
41276 | else | |
41277 | cat >>confdefs.h <<\_ACEOF | |
41278 | #define wxUSE_TIPWINDOW 1 | |
41279 | _ACEOF | |
41280 | ||
41281 | fi | |
41282 | fi | |
41283 | ||
41284 | if test "$USES_CONTROLS" = 1; then | |
41285 | cat >>confdefs.h <<\_ACEOF | |
41286 | #define wxUSE_CONTROLS 1 | |
41287 | _ACEOF | |
41288 | ||
41289 | fi | |
41290 | ||
41291 | ||
41292 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
41293 | cat >>confdefs.h <<\_ACEOF | |
41294 | #define wxUSE_ACCESSIBILITY 1 | |
41295 | _ACEOF | |
41296 | ||
41297 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
41298 | fi | |
41299 | ||
38b4a946 VZ |
41300 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
41301 | cat >>confdefs.h <<\_ACEOF | |
41302 | #define wxUSE_DC_CACHEING 1 | |
41303 | _ACEOF | |
41304 | ||
41305 | fi | |
41306 | ||
a848cd7e SC |
41307 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
41308 | cat >>confdefs.h <<\_ACEOF | |
41309 | #define wxUSE_DRAGIMAGE 1 | |
41310 | _ACEOF | |
41311 | ||
41312 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
41313 | fi | |
41314 | ||
41315 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
41316 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
41317 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
41318 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
41319 | else | |
41320 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41321 | #define wxUSE_EXCEPTIONS 1 |
41322 | _ACEOF | |
41323 | ||
07bea8f0 VS |
41324 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
41325 | fi | |
a848cd7e SC |
41326 | fi |
41327 | ||
41328 | USE_HTML=0 | |
41329 | if test "$wxUSE_HTML" = "yes"; then | |
41330 | cat >>confdefs.h <<\_ACEOF | |
41331 | #define wxUSE_HTML 1 | |
41332 | _ACEOF | |
41333 | ||
41334 | USE_HTML=1 | |
41335 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
41336 | if test "$wxUSE_MAC" = 1; then |
41337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
41338 | fi | |
a848cd7e | 41339 | fi |
646b6ec1 | 41340 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 41341 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
41342 | old_CPPFLAGS="$CPPFLAGS" |
41343 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
41344 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
41345 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
41346 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
41347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41348 | else | |
41349 | cat >conftest.$ac_ext <<_ACEOF | |
41350 | /* confdefs.h. */ | |
41351 | _ACEOF | |
41352 | cat confdefs.h >>conftest.$ac_ext | |
41353 | cat >>conftest.$ac_ext <<_ACEOF | |
41354 | /* end confdefs.h. */ | |
41355 | #include <Carbon/Carbon.h> | |
41356 | ||
41357 | #include <WebKit/HIWebView.h> | |
41358 | _ACEOF | |
41359 | rm -f conftest.$ac_objext | |
41360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41361 | (eval $ac_compile) 2>conftest.er1 | |
41362 | ac_status=$? | |
41363 | grep -v '^ *+' conftest.er1 >conftest.err | |
41364 | rm -f conftest.er1 | |
41365 | cat conftest.err >&5 | |
41366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41367 | (exit $ac_status); } && | |
6ebeb4c7 | 41368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
41369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41370 | (eval $ac_try) 2>&5 | |
41371 | ac_status=$? | |
41372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41373 | (exit $ac_status); }; } && | |
41374 | { ac_try='test -s conftest.$ac_objext' | |
41375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41376 | (eval $ac_try) 2>&5 | |
41377 | ac_status=$? | |
41378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41379 | (exit $ac_status); }; }; then | |
41380 | ac_cv_header_WebKit_HIWebView_h=yes | |
41381 | else | |
41382 | echo "$as_me: failed program was:" >&5 | |
41383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41384 | ||
41385 | ac_cv_header_WebKit_HIWebView_h=no | |
41386 | fi | |
41387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41388 | fi | |
41389 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
41390 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
41391 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
41392 | ||
41393 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
41394 | #define wxUSE_WEBKIT 1 |
41395 | _ACEOF | |
41396 | ||
07bea8f0 VS |
41397 | WEBKIT_LINK="-framework WebKit" |
41398 | ||
41399 | else | |
41400 | ||
41401 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
41402 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
41403 | wxUSE_WEBKIT=no | |
41404 | ||
646b6ec1 VS |
41405 | fi |
41406 | ||
07bea8f0 VS |
41407 | |
41408 | CPPFLAGS="$old_CPPFLAGS" | |
41409 | elif test "$wxUSE_COCOA" = 1; then | |
41410 | cat >>confdefs.h <<\_ACEOF | |
41411 | #define wxUSE_WEBKIT 1 | |
41412 | _ACEOF | |
41413 | ||
41414 | else | |
41415 | wxUSE_WEBKIT=no | |
41416 | fi | |
41417 | fi | |
41418 | ||
9a8f0513 VS |
41419 | USE_XRC=0 |
41420 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
41421 | if test "$wxUSE_XML" != "yes"; then |
41422 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
41423 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
41424 | wxUSE_XRC=no | |
41425 | else | |
41426 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
41427 | #define wxUSE_XRC 1 |
41428 | _ACEOF | |
41429 | ||
d2ebf0b7 VS |
41430 | USE_XRC=1 |
41431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
41432 | fi | |
9a8f0513 | 41433 | fi |
07bea8f0 | 41434 | |
a848cd7e SC |
41435 | if test "$wxUSE_MENUS" = "yes"; then |
41436 | cat >>confdefs.h <<\_ACEOF | |
41437 | #define wxUSE_MENUS 1 | |
41438 | _ACEOF | |
41439 | ||
41440 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
41441 | fi | |
41442 | ||
41443 | if test "$wxUSE_METAFILE" = "yes"; then | |
41444 | cat >>confdefs.h <<\_ACEOF | |
41445 | #define wxUSE_METAFILE 1 | |
41446 | _ACEOF | |
41447 | ||
41448 | fi | |
41449 | ||
41450 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
41451 | cat >>confdefs.h <<\_ACEOF | |
41452 | #define wxUSE_MIMETYPE 1 | |
41453 | _ACEOF | |
41454 | ||
41455 | fi | |
41456 | ||
41457 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
41458 | cat >>confdefs.h <<\_ACEOF | |
41459 | #define wxUSE_MINIFRAME 1 | |
41460 | _ACEOF | |
41461 | ||
41462 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
41463 | fi | |
41464 | ||
41465 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
41466 | cat >>confdefs.h <<\_ACEOF | |
41467 | #define wxUSE_SYSTEM_OPTIONS 1 | |
41468 | _ACEOF | |
41469 | ||
41470 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 41471 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
41472 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
41473 | fi | |
41474 | fi | |
41475 | ||
41476 | ||
41477 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
41478 | cat >>confdefs.h <<\_ACEOF | |
41479 | #define wxUSE_VALIDATORS 1 | |
41480 | _ACEOF | |
41481 | ||
41482 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
41483 | fi | |
41484 | ||
41485 | if test "$wxUSE_PALETTE" = "yes" ; then | |
41486 | cat >>confdefs.h <<\_ACEOF | |
41487 | #define wxUSE_PALETTE 1 | |
41488 | _ACEOF | |
41489 | ||
41490 | fi | |
41491 | ||
41492 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
41493 | LIBS=" -lunicows $LIBS" | |
41494 | fi | |
41495 | ||
41496 | ||
41497 | if test "$wxUSE_IMAGE" = "yes" ; then | |
41498 | cat >>confdefs.h <<\_ACEOF | |
41499 | #define wxUSE_IMAGE 1 | |
41500 | _ACEOF | |
41501 | ||
41502 | ||
41503 | if test "$wxUSE_GIF" = "yes" ; then | |
41504 | cat >>confdefs.h <<\_ACEOF | |
41505 | #define wxUSE_GIF 1 | |
41506 | _ACEOF | |
41507 | ||
41508 | fi | |
41509 | ||
41510 | if test "$wxUSE_PCX" = "yes" ; then | |
41511 | cat >>confdefs.h <<\_ACEOF | |
41512 | #define wxUSE_PCX 1 | |
41513 | _ACEOF | |
41514 | ||
41515 | fi | |
41516 | ||
41517 | if test "$wxUSE_IFF" = "yes" ; then | |
41518 | cat >>confdefs.h <<\_ACEOF | |
41519 | #define wxUSE_IFF 1 | |
41520 | _ACEOF | |
41521 | ||
41522 | fi | |
41523 | ||
41524 | if test "$wxUSE_PNM" = "yes" ; then | |
41525 | cat >>confdefs.h <<\_ACEOF | |
41526 | #define wxUSE_PNM 1 | |
41527 | _ACEOF | |
41528 | ||
41529 | fi | |
41530 | ||
41531 | if test "$wxUSE_XPM" = "yes" ; then | |
41532 | cat >>confdefs.h <<\_ACEOF | |
41533 | #define wxUSE_XPM 1 | |
41534 | _ACEOF | |
41535 | ||
41536 | fi | |
41537 | ||
41538 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
41539 | cat >>confdefs.h <<\_ACEOF | |
41540 | #define wxUSE_ICO_CUR 1 | |
41541 | _ACEOF | |
41542 | ||
41543 | fi | |
41544 | fi | |
41545 | ||
41546 | ||
41547 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
41548 | cat >>confdefs.h <<\_ACEOF | |
41549 | #define wxUSE_CHOICEDLG 1 | |
41550 | _ACEOF | |
41551 | ||
41552 | fi | |
41553 | ||
41554 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
41555 | cat >>confdefs.h <<\_ACEOF | |
41556 | #define wxUSE_COLOURDLG 1 | |
41557 | _ACEOF | |
41558 | ||
41559 | fi | |
41560 | ||
41561 | if test "$wxUSE_FILEDLG" = "yes"; then | |
41562 | cat >>confdefs.h <<\_ACEOF | |
41563 | #define wxUSE_FILEDLG 1 | |
41564 | _ACEOF | |
41565 | ||
41566 | fi | |
41567 | ||
41568 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
41569 | cat >>confdefs.h <<\_ACEOF | |
41570 | #define wxUSE_FINDREPLDLG 1 | |
41571 | _ACEOF | |
41572 | ||
41573 | fi | |
41574 | ||
41575 | if test "$wxUSE_FONTDLG" = "yes"; then | |
41576 | cat >>confdefs.h <<\_ACEOF | |
41577 | #define wxUSE_FONTDLG 1 | |
41578 | _ACEOF | |
41579 | ||
41580 | fi | |
41581 | ||
41582 | if test "$wxUSE_DIRDLG" = "yes"; then | |
41583 | if test "$wxUSE_TREECTRL" != "yes"; then | |
41584 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
41585 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
41586 | else | |
41587 | cat >>confdefs.h <<\_ACEOF | |
41588 | #define wxUSE_DIRDLG 1 | |
41589 | _ACEOF | |
41590 | ||
41591 | fi | |
41592 | fi | |
41593 | ||
41594 | if test "$wxUSE_MSGDLG" = "yes"; then | |
41595 | cat >>confdefs.h <<\_ACEOF | |
41596 | #define wxUSE_MSGDLG 1 | |
41597 | _ACEOF | |
41598 | ||
41599 | fi | |
41600 | ||
41601 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
41602 | cat >>confdefs.h <<\_ACEOF | |
41603 | #define wxUSE_NUMBERDLG 1 | |
41604 | _ACEOF | |
41605 | ||
41606 | fi | |
41607 | ||
41608 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
41609 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41610 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
41611 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
41612 | else | |
41613 | cat >>confdefs.h <<\_ACEOF | |
41614 | #define wxUSE_PROGRESSDLG 1 | |
41615 | _ACEOF | |
41616 | ||
41617 | fi | |
41618 | fi | |
41619 | ||
41620 | if test "$wxUSE_SPLASH" = "yes"; then | |
41621 | cat >>confdefs.h <<\_ACEOF | |
41622 | #define wxUSE_SPLASH 1 | |
41623 | _ACEOF | |
41624 | ||
2057db16 | 41625 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
41626 | fi |
41627 | ||
41628 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
41629 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41630 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
41631 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
41632 | else | |
41633 | cat >>confdefs.h <<\_ACEOF | |
41634 | #define wxUSE_STARTUP_TIPS 1 | |
41635 | _ACEOF | |
41636 | ||
41637 | fi | |
41638 | fi | |
41639 | ||
41640 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
41641 | cat >>confdefs.h <<\_ACEOF | |
41642 | #define wxUSE_TEXTDLG 1 | |
41643 | _ACEOF | |
41644 | ||
41645 | fi | |
41646 | ||
41647 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
41648 | cat >>confdefs.h <<\_ACEOF | |
41649 | #define wxUSE_WIZARDDLG 1 | |
41650 | _ACEOF | |
41651 | ||
41652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
41653 | fi | |
41654 | ||
41655 | ||
ce756cb0 | 41656 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
41657 | if test "$wxUSE_GTK" = 1; then |
41658 | wxUSE_GSTREAMER="yes" | |
41659 | ||
ce756cb0 | 41660 | |
dae87f93 | 41661 | succeeded=no |
ce756cb0 | 41662 | |
dae87f93 RN |
41663 | if test -z "$PKG_CONFIG"; then |
41664 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41665 | set dummy pkg-config; ac_word=$2 | |
41666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41668 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41670 | else | |
41671 | case $PKG_CONFIG in | |
41672 | [\\/]* | ?:[\\/]*) | |
41673 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41674 | ;; | |
41675 | *) | |
41676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41677 | for as_dir in $PATH | |
41678 | do | |
41679 | IFS=$as_save_IFS | |
41680 | test -z "$as_dir" && as_dir=. | |
41681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41682 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41683 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41685 | break 2 | |
41686 | fi | |
41687 | done | |
41688 | done | |
41689 | ||
41690 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41691 | ;; | |
41692 | esac | |
41693 | fi | |
41694 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41695 | ||
41696 | if test -n "$PKG_CONFIG"; then | |
41697 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41698 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41699 | else | |
41700 | echo "$as_me:$LINENO: result: no" >&5 | |
41701 | echo "${ECHO_T}no" >&6 | |
41702 | fi | |
41703 | ||
41704 | fi | |
41705 | ||
41706 | if test "$PKG_CONFIG" = "no" ; then | |
41707 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41708 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41709 | echo "*** to the full path to pkg-config." | |
41710 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41711 | else | |
41712 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41713 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41714 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
41715 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
41716 | ||
41717 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
41718 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 41719 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 41720 | succeeded=yes |
ce756cb0 | 41721 | |
dae87f93 RN |
41722 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
41723 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
41724 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
41725 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
41726 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
41727 | ||
41728 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
41729 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
41730 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
41731 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
41732 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
41733 | else | |
41734 | GSTREAMER_CFLAGS="" | |
41735 | GSTREAMER_LIBS="" | |
41736 | ## If we have a custom action on failure, don't print errors, but | |
41737 | ## do set a variable so people can do so. | |
41738 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 41739 | |
dae87f93 RN |
41740 | fi |
41741 | ||
41742 | ||
41743 | ||
41744 | else | |
41745 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41746 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41747 | fi | |
41748 | fi | |
41749 | ||
41750 | if test $succeeded = yes; then | |
41751 | ||
41752 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
41753 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 41754 | |
ce756cb0 | 41755 | else |
dae87f93 RN |
41756 | |
41757 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
41758 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
41759 | wxUSE_GSTREAMER="no" | |
41760 | ||
41761 | fi | |
41762 | ||
41763 | ||
41764 | ||
41765 | ||
41766 | ||
41767 | if test "x$GST_INSPECT" == "x"; then | |
41768 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
41769 | set dummy gst-inspect; ac_word=$2 | |
41770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41772 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
41773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41774 | else | |
41775 | if test -n "$GST_INSPECT"; then | |
41776 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
41777 | else | |
41778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41779 | for as_dir in $PATH | |
41780 | do | |
41781 | IFS=$as_save_IFS | |
41782 | test -z "$as_dir" && as_dir=. | |
41783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41785 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
41786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41787 | break 2 | |
ce756cb0 | 41788 | fi |
dae87f93 RN |
41789 | done |
41790 | done | |
41791 | ||
41792 | fi | |
41793 | fi | |
41794 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
41795 | if test -n "$GST_INSPECT"; then | |
41796 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
41797 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
41798 | else | |
41799 | echo "$as_me:$LINENO: result: no" >&5 | |
41800 | echo "${ECHO_T}no" >&6 | |
41801 | fi | |
41802 | ||
41803 | fi | |
41804 | ||
41805 | if test "x$GST_INSPECT" != "x"; then | |
41806 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
41807 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
41808 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
41809 | echo "$as_me:$LINENO: result: found." >&5 | |
41810 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 41811 | |
ce756cb0 | 41812 | else |
dae87f93 RN |
41813 | echo "$as_me:$LINENO: result: not found." >&5 |
41814 | echo "${ECHO_T}not found." >&6 | |
41815 | ||
41816 | wxUSE_GSTREAMER="no" | |
41817 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
41818 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
41819 | ||
41820 | fi | |
41821 | fi | |
41822 | ||
41823 | ||
41824 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
41825 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
41826 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
41827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41828 | else | |
41829 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
41830 | /* confdefs.h. */ |
41831 | _ACEOF | |
41832 | cat confdefs.h >>conftest.$ac_ext | |
41833 | cat >>conftest.$ac_ext <<_ACEOF | |
41834 | /* end confdefs.h. */ | |
dae87f93 | 41835 | #include <gst/gst.h> |
ce756cb0 | 41836 | |
dae87f93 | 41837 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
41838 | _ACEOF |
41839 | rm -f conftest.$ac_objext | |
41840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41841 | (eval $ac_compile) 2>conftest.er1 | |
41842 | ac_status=$? | |
41843 | grep -v '^ *+' conftest.er1 >conftest.err | |
41844 | rm -f conftest.er1 | |
41845 | cat conftest.err >&5 | |
41846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41847 | (exit $ac_status); } && | |
6ebeb4c7 | 41848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
41849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41850 | (eval $ac_try) 2>&5 | |
41851 | ac_status=$? | |
41852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41853 | (exit $ac_status); }; } && | |
41854 | { ac_try='test -s conftest.$ac_objext' | |
41855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41856 | (eval $ac_try) 2>&5 | |
41857 | ac_status=$? | |
41858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41859 | (exit $ac_status); }; }; then | |
dae87f93 | 41860 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
41861 | else |
41862 | echo "$as_me: failed program was:" >&5 | |
41863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41864 | ||
dae87f93 | 41865 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
41866 | fi |
41867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
41868 | fi |
41869 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
41870 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
41871 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
41872 | : | |
41873 | else | |
ce756cb0 | 41874 | |
dae87f93 RN |
41875 | wxUSE_GSTREAMER="no" |
41876 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
41877 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 41878 | |
dae87f93 | 41879 | fi |
ce756cb0 | 41880 | |
dae87f93 RN |
41881 | |
41882 | ||
41883 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
41884 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
41885 | ||
0ad5d837 VZ |
41886 | ac_find_libraries= |
41887 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 41888 | do |
3eca31dc | 41889 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
41890 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
41891 | ac_find_libraries=$ac_dir | |
41892 | break 2 | |
41893 | fi | |
41894 | done | |
41895 | done | |
41896 | ||
ce756cb0 | 41897 | |
dae87f93 RN |
41898 | if test "$ac_find_libraries" = "" ; then |
41899 | echo "$as_me:$LINENO: result: no" >&5 | |
41900 | echo "${ECHO_T}no" >&6 | |
41901 | wxUSE_GSTREAMER="no" | |
41902 | else | |
41903 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 41904 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 41905 | fi |
ce756cb0 | 41906 | |
dae87f93 RN |
41907 | if test "$wxUSE_GSTREAMER" = "yes"; then |
41908 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
41909 | #define wxUSE_GSTREAMER 1 |
41910 | _ACEOF | |
41911 | ||
dae87f93 RN |
41912 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
41913 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
41914 | fi |
41915 | fi | |
41916 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
41917 | cat >>confdefs.h <<\_ACEOF | |
41918 | #define wxUSE_MEDIACTRL 1 | |
41919 | _ACEOF | |
41920 | ||
41921 | fi | |
41922 | ||
41923 | ||
a848cd7e SC |
41924 | if test "$cross_compiling" = "yes"; then |
41925 | OSINFO="\"$host\"" | |
41926 | else | |
41927 | OSINFO=`uname -s -r -m` | |
41928 | OSINFO="\"$OSINFO\"" | |
41929 | fi | |
41930 | ||
41931 | cat >>confdefs.h <<_ACEOF | |
41932 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
41933 | _ACEOF | |
41934 | ||
41935 | ||
41936 | ||
41937 | if test "x$prefix" != "xNONE"; then | |
41938 | wxPREFIX=$prefix | |
41939 | else | |
41940 | wxPREFIX=$ac_default_prefix | |
41941 | fi | |
41942 | ||
41943 | cat >>confdefs.h <<_ACEOF | |
41944 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
41945 | _ACEOF | |
41946 | ||
41947 | ||
a848cd7e SC |
41948 | |
41949 | ||
41950 | CORE_BASE_LIBS="net base" | |
41951 | CORE_GUI_LIBS="adv core" | |
41952 | ||
41953 | if test "$wxUSE_XML" = "yes" ; then | |
41954 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
41955 | fi | |
41956 | if test "$wxUSE_ODBC" != "no" ; then | |
41957 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
41958 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
41959 | fi | |
41960 | if test "$wxUSE_HTML" = "yes" ; then | |
41961 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
41962 | fi | |
61639efb VZ |
41963 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
41964 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
41965 | fi | |
9a8f0513 VS |
41966 | if test "$wxUSE_XRC" = "yes" ; then |
41967 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
41968 | fi | |
a848cd7e SC |
41969 | |
41970 | if test "$wxUSE_GUI" != "yes"; then | |
41971 | CORE_GUI_LIBS="" | |
41972 | fi | |
41973 | ||
41974 | ||
41975 | ||
41976 | ||
41977 | ||
41978 | ||
41979 | ||
41980 | ||
41981 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 41982 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
41983 | if test "$USE_DARWIN" = 1; then |
41984 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
41985 | else | |
41986 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
41987 | fi | |
07bea8f0 | 41988 | fi |
5dcf30a0 | 41989 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
41990 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
41991 | else | |
41992 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 41993 | fi |
a848cd7e SC |
41994 | fi |
41995 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 41996 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
41997 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
41998 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
41999 | fi | |
a848cd7e | 42000 | fi |
19b27e78 MW |
42001 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
42002 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
42003 | fi | |
a848cd7e SC |
42004 | |
42005 | ||
42006 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
42007 | ||
42008 | have_cos=0 | |
42009 | have_floor=0 | |
42010 | ||
42011 | for ac_func in cos | |
42012 | do | |
42013 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42014 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42015 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42016 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42018 | else | |
42019 | cat >conftest.$ac_ext <<_ACEOF | |
42020 | /* confdefs.h. */ | |
42021 | _ACEOF | |
42022 | cat confdefs.h >>conftest.$ac_ext | |
42023 | cat >>conftest.$ac_ext <<_ACEOF | |
42024 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42025 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42027 | #define $ac_func innocuous_$ac_func | |
42028 | ||
a848cd7e SC |
42029 | /* System header to define __stub macros and hopefully few prototypes, |
42030 | which can conflict with char $ac_func (); below. | |
42031 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42032 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42033 | |
a848cd7e SC |
42034 | #ifdef __STDC__ |
42035 | # include <limits.h> | |
42036 | #else | |
42037 | # include <assert.h> | |
42038 | #endif | |
ac1cb8d3 VS |
42039 | |
42040 | #undef $ac_func | |
42041 | ||
a848cd7e SC |
42042 | /* Override any gcc2 internal prototype to avoid an error. */ |
42043 | #ifdef __cplusplus | |
42044 | extern "C" | |
42045 | { | |
42046 | #endif | |
42047 | /* We use char because int might match the return type of a gcc2 | |
42048 | builtin and then its argument prototype would still apply. */ | |
42049 | char $ac_func (); | |
42050 | /* The GNU C library defines this for functions which it implements | |
42051 | to always fail with ENOSYS. Some functions are actually named | |
42052 | something starting with __ and the normal name is an alias. */ | |
42053 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42054 | choke me | |
42055 | #else | |
42056 | char (*f) () = $ac_func; | |
42057 | #endif | |
42058 | #ifdef __cplusplus | |
42059 | } | |
42060 | #endif | |
42061 | ||
42062 | int | |
42063 | main () | |
42064 | { | |
42065 | return f != $ac_func; | |
42066 | ; | |
42067 | return 0; | |
42068 | } | |
42069 | _ACEOF | |
42070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42072 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42073 | ac_status=$? |
ac1cb8d3 VS |
42074 | grep -v '^ *+' conftest.er1 >conftest.err |
42075 | rm -f conftest.er1 | |
42076 | cat conftest.err >&5 | |
a848cd7e SC |
42077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42078 | (exit $ac_status); } && | |
6ebeb4c7 | 42079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42081 | (eval $ac_try) 2>&5 | |
42082 | ac_status=$? | |
42083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42084 | (exit $ac_status); }; } && | |
42085 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42087 | (eval $ac_try) 2>&5 | |
42088 | ac_status=$? | |
42089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42090 | (exit $ac_status); }; }; then | |
42091 | eval "$as_ac_var=yes" | |
42092 | else | |
42093 | echo "$as_me: failed program was:" >&5 | |
42094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42095 | ||
42096 | eval "$as_ac_var=no" | |
42097 | fi | |
ac1cb8d3 VS |
42098 | rm -f conftest.err conftest.$ac_objext \ |
42099 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42100 | fi |
42101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42102 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42103 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42104 | cat >>confdefs.h <<_ACEOF | |
42105 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42106 | _ACEOF | |
42107 | have_cos=1 | |
42108 | fi | |
42109 | done | |
42110 | ||
42111 | ||
42112 | for ac_func in floor | |
42113 | do | |
42114 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42115 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42116 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42117 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42119 | else | |
42120 | cat >conftest.$ac_ext <<_ACEOF | |
42121 | /* confdefs.h. */ | |
42122 | _ACEOF | |
42123 | cat confdefs.h >>conftest.$ac_ext | |
42124 | cat >>conftest.$ac_ext <<_ACEOF | |
42125 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42126 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42127 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42128 | #define $ac_func innocuous_$ac_func | |
42129 | ||
a848cd7e SC |
42130 | /* System header to define __stub macros and hopefully few prototypes, |
42131 | which can conflict with char $ac_func (); below. | |
42132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42133 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42134 | |
a848cd7e SC |
42135 | #ifdef __STDC__ |
42136 | # include <limits.h> | |
42137 | #else | |
42138 | # include <assert.h> | |
42139 | #endif | |
ac1cb8d3 VS |
42140 | |
42141 | #undef $ac_func | |
42142 | ||
a848cd7e SC |
42143 | /* Override any gcc2 internal prototype to avoid an error. */ |
42144 | #ifdef __cplusplus | |
42145 | extern "C" | |
42146 | { | |
42147 | #endif | |
42148 | /* We use char because int might match the return type of a gcc2 | |
42149 | builtin and then its argument prototype would still apply. */ | |
42150 | char $ac_func (); | |
42151 | /* The GNU C library defines this for functions which it implements | |
42152 | to always fail with ENOSYS. Some functions are actually named | |
42153 | something starting with __ and the normal name is an alias. */ | |
42154 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42155 | choke me | |
42156 | #else | |
42157 | char (*f) () = $ac_func; | |
42158 | #endif | |
42159 | #ifdef __cplusplus | |
42160 | } | |
42161 | #endif | |
42162 | ||
42163 | int | |
42164 | main () | |
42165 | { | |
42166 | return f != $ac_func; | |
42167 | ; | |
42168 | return 0; | |
42169 | } | |
42170 | _ACEOF | |
42171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42173 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42174 | ac_status=$? |
ac1cb8d3 VS |
42175 | grep -v '^ *+' conftest.er1 >conftest.err |
42176 | rm -f conftest.er1 | |
42177 | cat conftest.err >&5 | |
a848cd7e SC |
42178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42179 | (exit $ac_status); } && | |
6ebeb4c7 | 42180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42182 | (eval $ac_try) 2>&5 | |
42183 | ac_status=$? | |
42184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42185 | (exit $ac_status); }; } && | |
42186 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42188 | (eval $ac_try) 2>&5 | |
42189 | ac_status=$? | |
42190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42191 | (exit $ac_status); }; }; then | |
42192 | eval "$as_ac_var=yes" | |
42193 | else | |
42194 | echo "$as_me: failed program was:" >&5 | |
42195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42196 | ||
42197 | eval "$as_ac_var=no" | |
42198 | fi | |
ac1cb8d3 VS |
42199 | rm -f conftest.err conftest.$ac_objext \ |
42200 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42201 | fi |
42202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42203 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42204 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42205 | cat >>confdefs.h <<_ACEOF | |
42206 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42207 | _ACEOF | |
42208 | have_floor=1 | |
42209 | fi | |
42210 | done | |
42211 | ||
42212 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
42213 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
42214 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
42215 | echo "$as_me:$LINENO: result: yes" >&5 | |
42216 | echo "${ECHO_T}yes" >&6 | |
42217 | else | |
42218 | echo "$as_me:$LINENO: result: no" >&5 | |
42219 | echo "${ECHO_T}no" >&6 | |
42220 | LIBS="$LIBS -lm" | |
42221 | # use different functions to avoid configure caching | |
42222 | have_sin=0 | |
42223 | have_ceil=0 | |
42224 | ||
42225 | for ac_func in sin | |
42226 | do | |
42227 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42228 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42229 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42230 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42232 | else | |
42233 | cat >conftest.$ac_ext <<_ACEOF | |
42234 | /* confdefs.h. */ | |
42235 | _ACEOF | |
42236 | cat confdefs.h >>conftest.$ac_ext | |
42237 | cat >>conftest.$ac_ext <<_ACEOF | |
42238 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42239 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42240 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42241 | #define $ac_func innocuous_$ac_func | |
42242 | ||
a848cd7e SC |
42243 | /* System header to define __stub macros and hopefully few prototypes, |
42244 | which can conflict with char $ac_func (); below. | |
42245 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42246 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42247 | |
a848cd7e SC |
42248 | #ifdef __STDC__ |
42249 | # include <limits.h> | |
42250 | #else | |
42251 | # include <assert.h> | |
42252 | #endif | |
ac1cb8d3 VS |
42253 | |
42254 | #undef $ac_func | |
42255 | ||
a848cd7e SC |
42256 | /* Override any gcc2 internal prototype to avoid an error. */ |
42257 | #ifdef __cplusplus | |
42258 | extern "C" | |
42259 | { | |
42260 | #endif | |
42261 | /* We use char because int might match the return type of a gcc2 | |
42262 | builtin and then its argument prototype would still apply. */ | |
42263 | char $ac_func (); | |
42264 | /* The GNU C library defines this for functions which it implements | |
42265 | to always fail with ENOSYS. Some functions are actually named | |
42266 | something starting with __ and the normal name is an alias. */ | |
42267 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42268 | choke me | |
42269 | #else | |
42270 | char (*f) () = $ac_func; | |
42271 | #endif | |
42272 | #ifdef __cplusplus | |
42273 | } | |
42274 | #endif | |
42275 | ||
42276 | int | |
42277 | main () | |
42278 | { | |
42279 | return f != $ac_func; | |
42280 | ; | |
42281 | return 0; | |
42282 | } | |
42283 | _ACEOF | |
42284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42286 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42287 | ac_status=$? |
ac1cb8d3 VS |
42288 | grep -v '^ *+' conftest.er1 >conftest.err |
42289 | rm -f conftest.er1 | |
42290 | cat conftest.err >&5 | |
a848cd7e SC |
42291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42292 | (exit $ac_status); } && | |
6ebeb4c7 | 42293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42295 | (eval $ac_try) 2>&5 | |
42296 | ac_status=$? | |
42297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42298 | (exit $ac_status); }; } && | |
42299 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42301 | (eval $ac_try) 2>&5 | |
42302 | ac_status=$? | |
42303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42304 | (exit $ac_status); }; }; then | |
42305 | eval "$as_ac_var=yes" | |
42306 | else | |
42307 | echo "$as_me: failed program was:" >&5 | |
42308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42309 | ||
42310 | eval "$as_ac_var=no" | |
42311 | fi | |
ac1cb8d3 VS |
42312 | rm -f conftest.err conftest.$ac_objext \ |
42313 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42314 | fi |
42315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42316 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42317 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42318 | cat >>confdefs.h <<_ACEOF | |
42319 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42320 | _ACEOF | |
42321 | have_sin=1 | |
42322 | fi | |
42323 | done | |
42324 | ||
42325 | ||
42326 | for ac_func in ceil | |
42327 | do | |
42328 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42329 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42330 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42331 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42333 | else | |
42334 | cat >conftest.$ac_ext <<_ACEOF | |
42335 | /* confdefs.h. */ | |
42336 | _ACEOF | |
42337 | cat confdefs.h >>conftest.$ac_ext | |
42338 | cat >>conftest.$ac_ext <<_ACEOF | |
42339 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42340 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42341 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42342 | #define $ac_func innocuous_$ac_func | |
42343 | ||
a848cd7e SC |
42344 | /* System header to define __stub macros and hopefully few prototypes, |
42345 | which can conflict with char $ac_func (); below. | |
42346 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42347 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42348 | |
a848cd7e SC |
42349 | #ifdef __STDC__ |
42350 | # include <limits.h> | |
42351 | #else | |
42352 | # include <assert.h> | |
42353 | #endif | |
ac1cb8d3 VS |
42354 | |
42355 | #undef $ac_func | |
42356 | ||
a848cd7e SC |
42357 | /* Override any gcc2 internal prototype to avoid an error. */ |
42358 | #ifdef __cplusplus | |
42359 | extern "C" | |
42360 | { | |
42361 | #endif | |
42362 | /* We use char because int might match the return type of a gcc2 | |
42363 | builtin and then its argument prototype would still apply. */ | |
42364 | char $ac_func (); | |
42365 | /* The GNU C library defines this for functions which it implements | |
42366 | to always fail with ENOSYS. Some functions are actually named | |
42367 | something starting with __ and the normal name is an alias. */ | |
42368 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42369 | choke me | |
42370 | #else | |
42371 | char (*f) () = $ac_func; | |
42372 | #endif | |
42373 | #ifdef __cplusplus | |
42374 | } | |
42375 | #endif | |
42376 | ||
42377 | int | |
42378 | main () | |
42379 | { | |
42380 | return f != $ac_func; | |
42381 | ; | |
42382 | return 0; | |
42383 | } | |
42384 | _ACEOF | |
42385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42387 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42388 | ac_status=$? |
ac1cb8d3 VS |
42389 | grep -v '^ *+' conftest.er1 >conftest.err |
42390 | rm -f conftest.er1 | |
42391 | cat conftest.err >&5 | |
a848cd7e SC |
42392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42393 | (exit $ac_status); } && | |
6ebeb4c7 | 42394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42396 | (eval $ac_try) 2>&5 | |
42397 | ac_status=$? | |
42398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42399 | (exit $ac_status); }; } && | |
42400 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42402 | (eval $ac_try) 2>&5 | |
42403 | ac_status=$? | |
42404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42405 | (exit $ac_status); }; }; then | |
42406 | eval "$as_ac_var=yes" | |
42407 | else | |
42408 | echo "$as_me: failed program was:" >&5 | |
42409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42410 | ||
42411 | eval "$as_ac_var=no" | |
42412 | fi | |
ac1cb8d3 VS |
42413 | rm -f conftest.err conftest.$ac_objext \ |
42414 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42415 | fi |
42416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42417 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42418 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42419 | cat >>confdefs.h <<_ACEOF | |
42420 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42421 | _ACEOF | |
42422 | have_ceil=1 | |
42423 | fi | |
42424 | done | |
42425 | ||
42426 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
42427 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
42428 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
42429 | echo "$as_me:$LINENO: result: yes" >&5 | |
42430 | echo "${ECHO_T}yes" >&6 | |
42431 | else | |
42432 | echo "$as_me:$LINENO: result: no" >&5 | |
42433 | echo "${ECHO_T}no" >&6 | |
42434 | # not sure we should warn the user, crash, etc. | |
42435 | fi | |
42436 | fi | |
42437 | ||
42438 | if test "$wxUSE_GUI" = "yes"; then | |
42439 | ||
42440 | ||
8bce5cda MW |
42441 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
42442 | dynamic erase event exec font image minimal mobile \ | |
42443 | mobile/wxedit mobile/styles propsize render \ | |
42444 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
42445 | |
42446 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
42447 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
42448 | fi | |
0b78747f | 42449 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
42450 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
42451 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
42452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
42453 | fi | |
42454 | fi | |
42455 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
42456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 42457 | fi |
a848cd7e SC |
42458 | else |
42459 | SAMPLES_SUBDIRS="console" | |
42460 | fi | |
42461 | ||
42462 | ||
ceec2216 | 42463 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
42464 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
42465 | ||
42466 | if test "$GXX" = yes ; then | |
6ebeb4c7 | 42467 | CWARNINGS="-Wall -Wundef" |
5294a27e | 42468 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" |
6ebeb4c7 | 42469 | fi |
a848cd7e SC |
42470 | |
42471 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
42472 | ||
0c3c69fc | 42473 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 42474 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 42475 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 42476 | |
95986553 DE |
42477 | if test "x$MWCC" = "xyes"; then |
42478 | ||
42479 | CC="$CC -cwd source -I-" | |
42480 | CXX="$CXX -cwd source -I-" | |
42481 | fi | |
42482 | ||
a848cd7e | 42483 | |
0c3c69fc | 42484 | LIBS=`echo $LIBS` |
a848cd7e SC |
42485 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
42486 | EXTRALIBS_XML="$EXPAT_LINK" | |
42487 | EXTRALIBS_HTML="$MSPACK_LINK" | |
42488 | EXTRALIBS_ODBC="$ODBC_LINK" | |
42489 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 42490 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
42491 | fi |
42492 | if test "$wxUSE_OPENGL" = "yes"; then | |
42493 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
42494 | fi | |
42495 | ||
42496 | LDFLAGS="$LDFLAGS $PROFILE" | |
42497 | ||
42498 | if test "$wxUSE_GTK" = 1; then | |
42499 | WXCONFIG_INCLUDE= | |
42500 | else | |
42501 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
42502 | fi | |
42503 | ||
42504 | WXCONFIG_EXTRALIBS="$LIBS" | |
42505 | ||
42506 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 42507 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
42508 | fi |
42509 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 42510 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
42511 | fi |
42512 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 42513 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
42514 | fi |
42515 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 42516 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
42517 | fi |
42518 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 42519 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
42520 | fi |
42521 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 42522 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
42523 | fi |
42524 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 42525 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
42526 | fi |
42527 | ||
42528 | for i in $wxconfig_3rdparty ; do | |
74802184 | 42529 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
42530 | done |
42531 | ||
42532 | ||
42533 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
42534 | WXUNIV=1 | |
42535 | else | |
42536 | WXUNIV=0 | |
42537 | fi | |
42538 | ||
42539 | ||
42540 | ||
42541 | ||
42542 | ||
42543 | ||
42544 | ||
42545 | ||
42546 | ||
42547 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
42548 | MONOLITHIC=1 | |
42549 | else | |
42550 | MONOLITHIC=0 | |
42551 | fi | |
42552 | ||
42553 | if test $wxUSE_PLUGINS = "yes" ; then | |
42554 | USE_PLUGINS=1 | |
42555 | else | |
42556 | USE_PLUGINS=0 | |
42557 | fi | |
42558 | ||
42559 | if test $wxUSE_ODBC != "no" ; then | |
42560 | USE_ODBC=1 | |
42561 | else | |
42562 | USE_ODBC=0 | |
42563 | fi | |
42564 | ||
16358932 VZ |
42565 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42566 | USE_QA=1 | |
42567 | else | |
42568 | USE_QA=0 | |
42569 | fi | |
42570 | ||
a848cd7e SC |
42571 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
42572 | OFFICIAL_BUILD=1 | |
42573 | else | |
42574 | OFFICIAL_BUILD=0 | |
42575 | fi | |
42576 | ||
42577 | ||
42578 | ||
42579 | ||
42580 | ||
42581 | ||
42582 | ||
42583 | ||
42584 | ||
42585 | ||
42586 | ||
42587 | ||
42588 | ||
42589 | ||
42590 | ||
42591 | ||
42592 | ||
42593 | ||
42594 | ||
ceec2216 | 42595 | |
d1c38808 | 42596 | |
a848cd7e SC |
42597 | |
42598 | ||
42599 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
42600 | ||
42601 | ||
42602 | ||
42603 | ||
42604 | ||
42605 | ||
42606 | ||
42607 | ||
4d4ff94c VZ |
42608 | case "$TOOLKIT" in |
42609 | GTK) | |
42610 | TOOLKIT_USER="GTK+" | |
42611 | if test "$WXGTK20" = 1; then | |
42612 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
42613 | fi | |
9a8f0513 | 42614 | ;; |
4d4ff94c VZ |
42615 | |
42616 | *) | |
42617 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 42618 | ;; |
4d4ff94c | 42619 | esac |
a848cd7e | 42620 | |
fb00f58d JS |
42621 | if test "$wxUSE_WINE" = "yes"; then |
42622 | BAKEFILE_FORCE_PLATFORM=win32 | |
42623 | fi | |
42624 | ||
9a8f0513 | 42625 | |
1e9e8aba DE |
42626 | |
42627 | ||
a848cd7e SC |
42628 | if test "x$BAKEFILE_HOST" = "x"; then |
42629 | BAKEFILE_HOST="${host}" | |
42630 | fi | |
42631 | ||
42632 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
42633 | ||
42634 | if test -n "$ac_tool_prefix"; then | |
42635 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
42636 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
42637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42639 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
42640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42641 | else | |
42642 | if test -n "$RANLIB"; then | |
42643 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
42644 | else | |
42645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42646 | for as_dir in $PATH | |
42647 | do | |
42648 | IFS=$as_save_IFS | |
42649 | test -z "$as_dir" && as_dir=. | |
42650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42652 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
42653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42654 | break 2 | |
42655 | fi | |
42656 | done | |
42657 | done | |
42658 | ||
42659 | fi | |
42660 | fi | |
42661 | RANLIB=$ac_cv_prog_RANLIB | |
42662 | if test -n "$RANLIB"; then | |
42663 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
42664 | echo "${ECHO_T}$RANLIB" >&6 | |
42665 | else | |
42666 | echo "$as_me:$LINENO: result: no" >&5 | |
42667 | echo "${ECHO_T}no" >&6 | |
42668 | fi | |
42669 | ||
42670 | fi | |
42671 | if test -z "$ac_cv_prog_RANLIB"; then | |
42672 | ac_ct_RANLIB=$RANLIB | |
42673 | # Extract the first word of "ranlib", so it can be a program name with args. | |
42674 | set dummy ranlib; ac_word=$2 | |
42675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42677 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
42678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42679 | else | |
42680 | if test -n "$ac_ct_RANLIB"; then | |
42681 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
42682 | else | |
42683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42684 | for as_dir in $PATH | |
42685 | do | |
42686 | IFS=$as_save_IFS | |
42687 | test -z "$as_dir" && as_dir=. | |
42688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42690 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
42691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42692 | break 2 | |
42693 | fi | |
42694 | done | |
42695 | done | |
42696 | ||
42697 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
42698 | fi | |
42699 | fi | |
42700 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
42701 | if test -n "$ac_ct_RANLIB"; then | |
42702 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
42703 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
42704 | else | |
42705 | echo "$as_me:$LINENO: result: no" >&5 | |
42706 | echo "${ECHO_T}no" >&6 | |
42707 | fi | |
42708 | ||
42709 | RANLIB=$ac_ct_RANLIB | |
42710 | else | |
42711 | RANLIB="$ac_cv_prog_RANLIB" | |
42712 | fi | |
42713 | ||
42714 | # Find a good install program. We prefer a C program (faster), | |
42715 | # so one script is as good as another. But avoid the broken or | |
42716 | # incompatible versions: | |
42717 | # SysV /etc/install, /usr/sbin/install | |
42718 | # SunOS /usr/etc/install | |
42719 | # IRIX /sbin/install | |
42720 | # AIX /bin/install | |
42721 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
42722 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
42723 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
42724 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 42725 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
42726 | # ./install, which can be erroneously created by make from ./install.sh. |
42727 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
42728 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
42729 | if test -z "$INSTALL"; then | |
42730 | if test "${ac_cv_path_install+set}" = set; then | |
42731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42732 | else | |
42733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42734 | for as_dir in $PATH | |
42735 | do | |
42736 | IFS=$as_save_IFS | |
42737 | test -z "$as_dir" && as_dir=. | |
42738 | # Account for people who put trailing slashes in PATH elements. | |
42739 | case $as_dir/ in | |
42740 | ./ | .// | /cC/* | \ | |
42741 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 42742 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
42743 | /usr/ucb/* ) ;; |
42744 | *) | |
42745 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
42746 | # Don't use installbsd from OSF since it installs stuff as root | |
42747 | # by default. | |
42748 | for ac_prog in ginstall scoinst install; do | |
42749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
42750 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
42751 | if test $ac_prog = install && | |
42752 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
42753 | # AIX install. It has an incompatible calling convention. | |
42754 | : | |
42755 | elif test $ac_prog = install && | |
42756 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
42757 | # program-specific install script used by HP pwplus--don't use. | |
42758 | : | |
42759 | else | |
42760 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
42761 | break 3 | |
42762 | fi | |
42763 | fi | |
a848cd7e SC |
42764 | done |
42765 | done | |
42766 | ;; | |
42767 | esac | |
42768 | done | |
42769 | ||
42770 | ||
42771 | fi | |
42772 | if test "${ac_cv_path_install+set}" = set; then | |
42773 | INSTALL=$ac_cv_path_install | |
42774 | else | |
42775 | # As a last resort, use the slow shell script. We don't cache a | |
42776 | # path for INSTALL within a source directory, because that will | |
42777 | # break other packages using the cache if that directory is | |
42778 | # removed, or if the path is relative. | |
42779 | INSTALL=$ac_install_sh | |
42780 | fi | |
42781 | fi | |
42782 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
42783 | echo "${ECHO_T}$INSTALL" >&6 | |
42784 | ||
42785 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
42786 | # It thinks the first close brace ends the variable substitution. | |
42787 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
42788 | ||
42789 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
42790 | ||
42791 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
42792 | ||
42793 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
42794 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
42795 | LN_S=$as_ln_s | |
42796 | if test "$LN_S" = "ln -s"; then | |
42797 | echo "$as_me:$LINENO: result: yes" >&5 | |
42798 | echo "${ECHO_T}yes" >&6 | |
42799 | else | |
42800 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
42801 | echo "${ECHO_T}no, using $LN_S" >&6 | |
42802 | fi | |
42803 | ||
42804 | ||
42805 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
42806 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 42807 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
42808 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
42809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42810 | else | |
42811 | cat >conftest.make <<\_ACEOF | |
42812 | all: | |
42813 | @echo 'ac_maketemp="$(MAKE)"' | |
42814 | _ACEOF | |
42815 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
42816 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
42817 | if test -n "$ac_maketemp"; then | |
42818 | eval ac_cv_prog_make_${ac_make}_set=yes | |
42819 | else | |
42820 | eval ac_cv_prog_make_${ac_make}_set=no | |
42821 | fi | |
42822 | rm -f conftest.make | |
42823 | fi | |
42824 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42825 | echo "$as_me:$LINENO: result: yes" >&5 | |
42826 | echo "${ECHO_T}yes" >&6 | |
42827 | SET_MAKE= | |
42828 | else | |
42829 | echo "$as_me:$LINENO: result: no" >&5 | |
42830 | echo "${ECHO_T}no" >&6 | |
42831 | SET_MAKE="MAKE=${MAKE-make}" | |
42832 | fi | |
42833 | ||
42834 | ||
42835 | ||
42836 | if test -n "$ac_tool_prefix"; then | |
42837 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
42838 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
42839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42841 | if test "${ac_cv_prog_AR+set}" = set; then | |
42842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42843 | else | |
42844 | if test -n "$AR"; then | |
42845 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
42846 | else | |
42847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42848 | for as_dir in $PATH | |
42849 | do | |
42850 | IFS=$as_save_IFS | |
42851 | test -z "$as_dir" && as_dir=. | |
42852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42853 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42854 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
42855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42856 | break 2 | |
42857 | fi | |
42858 | done | |
42859 | done | |
42860 | ||
42861 | fi | |
42862 | fi | |
42863 | AR=$ac_cv_prog_AR | |
42864 | if test -n "$AR"; then | |
42865 | echo "$as_me:$LINENO: result: $AR" >&5 | |
42866 | echo "${ECHO_T}$AR" >&6 | |
42867 | else | |
42868 | echo "$as_me:$LINENO: result: no" >&5 | |
42869 | echo "${ECHO_T}no" >&6 | |
42870 | fi | |
42871 | ||
42872 | fi | |
42873 | if test -z "$ac_cv_prog_AR"; then | |
42874 | ac_ct_AR=$AR | |
42875 | # Extract the first word of "ar", so it can be a program name with args. | |
42876 | set dummy ar; ac_word=$2 | |
42877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42879 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
42880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42881 | else | |
42882 | if test -n "$ac_ct_AR"; then | |
42883 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
42884 | else | |
42885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42886 | for as_dir in $PATH | |
42887 | do | |
42888 | IFS=$as_save_IFS | |
42889 | test -z "$as_dir" && as_dir=. | |
42890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42892 | ac_cv_prog_ac_ct_AR="ar" | |
42893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42894 | break 2 | |
42895 | fi | |
42896 | done | |
42897 | done | |
42898 | ||
42899 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
42900 | fi | |
42901 | fi | |
42902 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
42903 | if test -n "$ac_ct_AR"; then | |
42904 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
42905 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
42906 | else | |
42907 | echo "$as_me:$LINENO: result: no" >&5 | |
42908 | echo "${ECHO_T}no" >&6 | |
42909 | fi | |
42910 | ||
42911 | AR=$ac_ct_AR | |
42912 | else | |
42913 | AR="$ac_cv_prog_AR" | |
42914 | fi | |
42915 | ||
42916 | if test -n "$ac_tool_prefix"; then | |
42917 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
42918 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
42919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42921 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
42922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42923 | else | |
42924 | if test -n "$STRIP"; then | |
42925 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
42926 | else | |
42927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42928 | for as_dir in $PATH | |
42929 | do | |
42930 | IFS=$as_save_IFS | |
42931 | test -z "$as_dir" && as_dir=. | |
42932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42933 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42934 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
42935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42936 | break 2 | |
42937 | fi | |
42938 | done | |
42939 | done | |
42940 | ||
42941 | fi | |
42942 | fi | |
42943 | STRIP=$ac_cv_prog_STRIP | |
42944 | if test -n "$STRIP"; then | |
42945 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
42946 | echo "${ECHO_T}$STRIP" >&6 | |
42947 | else | |
42948 | echo "$as_me:$LINENO: result: no" >&5 | |
42949 | echo "${ECHO_T}no" >&6 | |
42950 | fi | |
42951 | ||
42952 | fi | |
42953 | if test -z "$ac_cv_prog_STRIP"; then | |
42954 | ac_ct_STRIP=$STRIP | |
42955 | # Extract the first word of "strip", so it can be a program name with args. | |
42956 | set dummy strip; ac_word=$2 | |
42957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42959 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
42960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42961 | else | |
42962 | if test -n "$ac_ct_STRIP"; then | |
42963 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
42964 | else | |
42965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42966 | for as_dir in $PATH | |
42967 | do | |
42968 | IFS=$as_save_IFS | |
42969 | test -z "$as_dir" && as_dir=. | |
42970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42972 | ac_cv_prog_ac_ct_STRIP="strip" | |
42973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42974 | break 2 | |
42975 | fi | |
42976 | done | |
42977 | done | |
42978 | ||
42979 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
42980 | fi | |
42981 | fi | |
42982 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
42983 | if test -n "$ac_ct_STRIP"; then | |
42984 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
42985 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
42986 | else | |
42987 | echo "$as_me:$LINENO: result: no" >&5 | |
42988 | echo "${ECHO_T}no" >&6 | |
42989 | fi | |
42990 | ||
42991 | STRIP=$ac_ct_STRIP | |
42992 | else | |
42993 | STRIP="$ac_cv_prog_STRIP" | |
42994 | fi | |
42995 | ||
42996 | if test -n "$ac_tool_prefix"; then | |
42997 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
42998 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
42999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43001 | if test "${ac_cv_prog_NM+set}" = set; then | |
43002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43003 | else | |
43004 | if test -n "$NM"; then | |
43005 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
43006 | else | |
43007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43008 | for as_dir in $PATH | |
43009 | do | |
43010 | IFS=$as_save_IFS | |
43011 | test -z "$as_dir" && as_dir=. | |
43012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43014 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
43015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43016 | break 2 | |
43017 | fi | |
43018 | done | |
43019 | done | |
43020 | ||
43021 | fi | |
43022 | fi | |
43023 | NM=$ac_cv_prog_NM | |
43024 | if test -n "$NM"; then | |
43025 | echo "$as_me:$LINENO: result: $NM" >&5 | |
43026 | echo "${ECHO_T}$NM" >&6 | |
43027 | else | |
43028 | echo "$as_me:$LINENO: result: no" >&5 | |
43029 | echo "${ECHO_T}no" >&6 | |
43030 | fi | |
43031 | ||
43032 | fi | |
43033 | if test -z "$ac_cv_prog_NM"; then | |
43034 | ac_ct_NM=$NM | |
43035 | # Extract the first word of "nm", so it can be a program name with args. | |
43036 | set dummy nm; ac_word=$2 | |
43037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43039 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
43040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43041 | else | |
43042 | if test -n "$ac_ct_NM"; then | |
43043 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
43044 | else | |
43045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43046 | for as_dir in $PATH | |
43047 | do | |
43048 | IFS=$as_save_IFS | |
43049 | test -z "$as_dir" && as_dir=. | |
43050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43051 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43052 | ac_cv_prog_ac_ct_NM="nm" | |
43053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43054 | break 2 | |
43055 | fi | |
43056 | done | |
43057 | done | |
43058 | ||
43059 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
43060 | fi | |
43061 | fi | |
43062 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
43063 | if test -n "$ac_ct_NM"; then | |
43064 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
43065 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
43066 | else | |
43067 | echo "$as_me:$LINENO: result: no" >&5 | |
43068 | echo "${ECHO_T}no" >&6 | |
43069 | fi | |
43070 | ||
43071 | NM=$ac_ct_NM | |
43072 | else | |
43073 | NM="$ac_cv_prog_NM" | |
43074 | fi | |
43075 | ||
43076 | ||
43077 | case ${BAKEFILE_HOST} in | |
43078 | *-hp-hpux* ) | |
1e9e8aba | 43079 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
43080 | ;; |
43081 | *) INSTALL_DIR="$INSTALL -d" | |
43082 | ;; | |
43083 | esac | |
43084 | ||
43085 | ||
43086 | LDFLAGS_GUI= | |
43087 | case ${BAKEFILE_HOST} in | |
43088 | *-*-cygwin* | *-*-mingw32* ) | |
43089 | LDFLAGS_GUI="-mwindows" | |
43090 | esac | |
43091 | ||
43092 | ||
43093 | fi | |
43094 | ||
43095 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
43096 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
43097 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
43098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43099 | else | |
43100 | ||
43101 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
43102 | egrep -s GNU > /dev/null); then | |
43103 | bakefile_cv_prog_makeisgnu="yes" | |
43104 | else | |
43105 | bakefile_cv_prog_makeisgnu="no" | |
43106 | fi | |
43107 | ||
43108 | fi | |
43109 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
43110 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
43111 | ||
43112 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
43113 | IF_GNU_MAKE="" | |
43114 | else | |
43115 | IF_GNU_MAKE="#" | |
43116 | fi | |
43117 | ||
43118 | ||
43119 | ||
43120 | PLATFORM_UNIX=0 | |
43121 | PLATFORM_WIN32=0 | |
43122 | PLATFORM_MSDOS=0 | |
43123 | PLATFORM_MAC=0 | |
1e9e8aba | 43124 | PLATFORM_MACOS=0 |
a848cd7e SC |
43125 | PLATFORM_MACOSX=0 |
43126 | PLATFORM_OS2=0 | |
1e9e8aba | 43127 | PLATFORM_BEOS=0 |
a848cd7e SC |
43128 | |
43129 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
43130 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 43131 | *-*-mingw32* ) |
a848cd7e SC |
43132 | PLATFORM_WIN32=1 |
43133 | ;; | |
43134 | *-pc-msdosdjgpp ) | |
43135 | PLATFORM_MSDOS=1 | |
43136 | ;; | |
43137 | *-pc-os2_emx | *-pc-os2-emx ) | |
43138 | PLATFORM_OS2=1 | |
43139 | ;; | |
47bd5406 | 43140 | *-*-darwin* ) |
a848cd7e SC |
43141 | PLATFORM_MAC=1 |
43142 | PLATFORM_MACOSX=1 | |
43143 | ;; | |
1e9e8aba DE |
43144 | *-*-beos* ) |
43145 | PLATFORM_BEOS=1 | |
43146 | ;; | |
43147 | powerpc-apple-macos* ) | |
43148 | PLATFORM_MAC=1 | |
43149 | PLATFORM_MACOS=1 | |
43150 | ;; | |
a848cd7e SC |
43151 | * ) |
43152 | PLATFORM_UNIX=1 | |
43153 | ;; | |
43154 | esac | |
43155 | else | |
43156 | case "$BAKEFILE_FORCE_PLATFORM" in | |
43157 | win32 ) | |
43158 | PLATFORM_WIN32=1 | |
43159 | ;; | |
43160 | msdos ) | |
43161 | PLATFORM_MSDOS=1 | |
43162 | ;; | |
43163 | os2 ) | |
43164 | PLATFORM_OS2=1 | |
43165 | ;; | |
43166 | darwin ) | |
43167 | PLATFORM_MAC=1 | |
43168 | PLATFORM_MACOSX=1 | |
43169 | ;; | |
43170 | unix ) | |
43171 | PLATFORM_UNIX=1 | |
43172 | ;; | |
1e9e8aba DE |
43173 | beos ) |
43174 | PLATFORM_BEOS=1 | |
43175 | ;; | |
a848cd7e SC |
43176 | * ) |
43177 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
43178 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
43179 | { (exit 1); exit 1; }; } | |
43180 | ;; | |
43181 | esac | |
43182 | fi | |
43183 | ||
43184 | ||
43185 | ||
43186 | ||
43187 | ||
43188 | ||
43189 | ||
43190 | ||
43191 | ||
1e9e8aba DE |
43192 | |
43193 | ||
a848cd7e SC |
43194 | # Check whether --enable-omf or --disable-omf was given. |
43195 | if test "${enable_omf+set}" = set; then | |
43196 | enableval="$enable_omf" | |
43197 | bk_os2_use_omf="$enableval" | |
43198 | fi; | |
43199 | ||
43200 | case "${BAKEFILE_HOST}" in | |
43201 | *-*-darwin* ) | |
47bd5406 VZ |
43202 | if test "x$GCC" = "xyes"; then |
43203 | CFLAGS="$CFLAGS -fno-common" | |
43204 | CXXFLAGS="$CXXFLAGS -fno-common" | |
43205 | fi | |
43206 | if test "x$XLCC" = "xyes"; then | |
43207 | CFLAGS="$CFLAGS -qnocommon" | |
43208 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
43209 | fi | |
a848cd7e SC |
43210 | ;; |
43211 | ||
43212 | *-pc-os2_emx | *-pc-os2-emx ) | |
43213 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
43214 | AR=emxomfar | |
43215 | RANLIB=: | |
43216 | LDFLAGS="-Zomf $LDFLAGS" | |
43217 | CFLAGS="-Zomf $CFLAGS" | |
43218 | CXXFLAGS="-Zomf $CXXFLAGS" | |
43219 | OS2_LIBEXT="lib" | |
43220 | else | |
43221 | OS2_LIBEXT="a" | |
43222 | fi | |
43223 | ;; | |
1e9e8aba DE |
43224 | |
43225 | i*86-*-beos* ) | |
43226 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
43227 | ;; | |
a848cd7e SC |
43228 | esac |
43229 | ||
43230 | ||
43231 | SO_SUFFIX="so" | |
43232 | SO_SUFFIX_MODULE="so" | |
43233 | EXEEXT="" | |
43234 | LIBPREFIX="lib" | |
43235 | LIBEXT=".a" | |
43236 | DLLPREFIX="lib" | |
43237 | DLLPREFIX_MODULE="" | |
43238 | DLLIMP_SUFFIX="" | |
810b94f0 | 43239 | dlldir="$libdir" |
a848cd7e SC |
43240 | |
43241 | case "${BAKEFILE_HOST}" in | |
43242 | *-hp-hpux* ) | |
43243 | SO_SUFFIX="sl" | |
43244 | SO_SUFFIX_MODULE="sl" | |
43245 | ;; | |
43246 | *-*-aix* ) | |
43247 | SO_SUFFIX="a" | |
43248 | SO_SUFFIX_MODULE="a" | |
43249 | ;; | |
810b94f0 MW |
43250 | *-*-cygwin* ) |
43251 | SO_SUFFIX="dll" | |
43252 | SO_SUFFIX_MODULE="dll" | |
43253 | DLLIMP_SUFFIX="dll.a" | |
43254 | EXEEXT=".exe" | |
43255 | DLLPREFIX="cyg" | |
43256 | dlldir="$bindir" | |
43257 | ;; | |
43258 | *-*-mingw32* ) | |
a848cd7e SC |
43259 | SO_SUFFIX="dll" |
43260 | SO_SUFFIX_MODULE="dll" | |
43261 | DLLIMP_SUFFIX="dll.a" | |
43262 | EXEEXT=".exe" | |
43263 | DLLPREFIX="" | |
810b94f0 | 43264 | dlldir="$bindir" |
a848cd7e SC |
43265 | ;; |
43266 | *-pc-msdosdjgpp ) | |
43267 | EXEEXT=".exe" | |
43268 | DLLPREFIX="" | |
810b94f0 | 43269 | dlldir="$bindir" |
a848cd7e SC |
43270 | ;; |
43271 | *-pc-os2_emx | *-pc-os2-emx ) | |
43272 | SO_SUFFIX="dll" | |
43273 | SO_SUFFIX_MODULE="dll" | |
43274 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
43275 | EXEEXT=".exe" | |
43276 | DLLPREFIX="" | |
43277 | LIBPREFIX="" | |
43278 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 43279 | dlldir="$bindir" |
a848cd7e | 43280 | ;; |
47bd5406 | 43281 | *-*-darwin* ) |
a848cd7e SC |
43282 | SO_SUFFIX="dylib" |
43283 | SO_SUFFIX_MODULE="bundle" | |
43284 | ;; | |
43285 | esac | |
43286 | ||
43287 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
43288 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
43289 | fi | |
43290 | ||
43291 | ||
43292 | ||
43293 | ||
43294 | ||
43295 | ||
43296 | ||
43297 | ||
43298 | ||
43299 | ||
43300 | ||
810b94f0 | 43301 | |
1e9e8aba DE |
43302 | PIC_FLAG="" |
43303 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
43304 | PIC_FLAG="-fPIC" |
43305 | fi | |
43306 | ||
1e9e8aba DE |
43307 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
43308 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 43309 | WINDOWS_IMPLIB=0 |
1e9e8aba | 43310 | |
a848cd7e SC |
43311 | case "${BAKEFILE_HOST}" in |
43312 | *-hp-hpux* ) | |
1e9e8aba | 43313 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
43314 | LDFLAGS="$LDFLAGS -L/usr/lib" |
43315 | ||
43316 | SHARED_LD_CC="${CC} -b -o" | |
43317 | SHARED_LD_CXX="${CXX} -b -o" | |
43318 | PIC_FLAG="+Z" | |
43319 | fi | |
43320 | ;; | |
43321 | ||
43322 | *-*-linux* ) | |
43323 | if test "x$GCC" != "xyes"; then | |
43324 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
43325 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
43326 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
43327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43328 | else | |
43329 | ||
43330 | cat >conftest.$ac_ext <<_ACEOF | |
43331 | /* confdefs.h. */ | |
43332 | _ACEOF | |
43333 | cat confdefs.h >>conftest.$ac_ext | |
43334 | cat >>conftest.$ac_ext <<_ACEOF | |
43335 | /* end confdefs.h. */ | |
43336 | ||
43337 | int | |
43338 | main () | |
43339 | { | |
43340 | ||
43341 | #ifndef __INTEL_COMPILER | |
43342 | #error Not icc | |
43343 | #endif | |
43344 | ||
43345 | ; | |
43346 | return 0; | |
43347 | } | |
43348 | _ACEOF | |
43349 | rm -f conftest.$ac_objext | |
43350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43351 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43352 | ac_status=$? |
ac1cb8d3 VS |
43353 | grep -v '^ *+' conftest.er1 >conftest.err |
43354 | rm -f conftest.er1 | |
43355 | cat conftest.err >&5 | |
a848cd7e SC |
43356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43357 | (exit $ac_status); } && | |
6ebeb4c7 | 43358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43360 | (eval $ac_try) 2>&5 | |
43361 | ac_status=$? | |
43362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43363 | (exit $ac_status); }; } && | |
43364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43366 | (eval $ac_try) 2>&5 | |
43367 | ac_status=$? | |
43368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43369 | (exit $ac_status); }; }; then | |
43370 | bakefile_cv_prog_icc=yes | |
43371 | else | |
43372 | echo "$as_me: failed program was:" >&5 | |
43373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43374 | ||
43375 | bakefile_cv_prog_icc=no | |
43376 | ||
43377 | fi | |
ac1cb8d3 | 43378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43379 | |
43380 | fi | |
43381 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
43382 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
43383 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
43384 | PIC_FLAG="-KPIC" | |
43385 | fi | |
43386 | fi | |
43387 | ;; | |
43388 | ||
43389 | *-*-solaris2* ) | |
43390 | if test "x$GCC" != xyes ; then | |
43391 | SHARED_LD_CC="${CC} -G -o" | |
43392 | SHARED_LD_CXX="${CXX} -G -o" | |
43393 | PIC_FLAG="-KPIC" | |
43394 | fi | |
43395 | ;; | |
43396 | ||
43397 | *-*-darwin* ) | |
43398 | ||
43399 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
43400 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
43401 | if test "${wx_cv_gcc31+set}" = set; then | |
43402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43403 | else | |
43404 | ||
43405 | cat >conftest.$ac_ext <<_ACEOF | |
43406 | /* confdefs.h. */ | |
43407 | _ACEOF | |
43408 | cat confdefs.h >>conftest.$ac_ext | |
43409 | cat >>conftest.$ac_ext <<_ACEOF | |
43410 | /* end confdefs.h. */ | |
43411 | ||
43412 | int | |
43413 | main () | |
43414 | { | |
43415 | ||
43416 | #if (__GNUC__ < 3) || \ | |
43417 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
43418 | #error old gcc | |
43419 | #endif | |
43420 | ||
43421 | ; | |
43422 | return 0; | |
43423 | } | |
43424 | _ACEOF | |
43425 | rm -f conftest.$ac_objext | |
43426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43427 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43428 | ac_status=$? |
ac1cb8d3 VS |
43429 | grep -v '^ *+' conftest.er1 >conftest.err |
43430 | rm -f conftest.er1 | |
43431 | cat conftest.err >&5 | |
a848cd7e SC |
43432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43433 | (exit $ac_status); } && | |
6ebeb4c7 | 43434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43436 | (eval $ac_try) 2>&5 | |
43437 | ac_status=$? | |
43438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43439 | (exit $ac_status); }; } && | |
43440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43442 | (eval $ac_try) 2>&5 | |
43443 | ac_status=$? | |
43444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43445 | (exit $ac_status); }; }; then | |
43446 | ||
43447 | wx_cv_gcc31=yes | |
43448 | ||
43449 | else | |
43450 | echo "$as_me: failed program was:" >&5 | |
43451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43452 | ||
43453 | ||
43454 | wx_cv_gcc31=no | |
43455 | ||
43456 | ||
43457 | fi | |
ac1cb8d3 | 43458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43459 | |
43460 | fi | |
43461 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
43462 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
43463 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
43464 | |
43465 | D='$' | |
43466 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
43467 | #!/bin/sh |
43468 | #----------------------------------------------------------------------------- | |
43469 | #-- Name: distrib/mac/shared-ld-sh | |
43470 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
43471 | #-- Author: Gilles Depeyrot | |
43472 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
43473 | #-- Licence: any use permitted | |
43474 | #----------------------------------------------------------------------------- | |
43475 | ||
43476 | verbose=0 | |
43477 | args="" | |
43478 | objects="" | |
43479 | linking_flag="-dynamiclib" | |
810b94f0 | 43480 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 43481 | |
473276a9 VS |
43482 | while test ${D}# -gt 0; do |
43483 | case ${D}1 in | |
a848cd7e SC |
43484 | |
43485 | -v) | |
43486 | verbose=1 | |
43487 | ;; | |
43488 | ||
43489 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
43490 | # collect these options and values | |
473276a9 | 43491 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
43492 | shift |
43493 | ;; | |
43494 | ||
810b94f0 MW |
43495 | -s|-Wl,*) |
43496 | # collect these load args | |
43497 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 43498 | ;; |
810b94f0 MW |
43499 | |
43500 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 43501 | # collect these options |
473276a9 | 43502 | args="${D}{args} ${D}1" |
a848cd7e SC |
43503 | ;; |
43504 | ||
43505 | -dynamiclib|-bundle) | |
473276a9 | 43506 | linking_flag="${D}1" |
a848cd7e SC |
43507 | ;; |
43508 | ||
43509 | -*) | |
473276a9 | 43510 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
43511 | exit 1 |
43512 | ;; | |
43513 | ||
43514 | *.o | *.a | *.dylib) | |
43515 | # collect object files | |
473276a9 | 43516 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
43517 | ;; |
43518 | ||
43519 | *) | |
473276a9 | 43520 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
43521 | exit 1 |
43522 | ;; | |
43523 | ||
43524 | esac | |
43525 | shift | |
43526 | done | |
43527 | ||
810b94f0 MW |
43528 | status=0 |
43529 | ||
a848cd7e SC |
43530 | # |
43531 | # Link one module containing all the others | |
43532 | # | |
473276a9 | 43533 | if test ${D}{verbose} = 1; then |
810b94f0 | 43534 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 43535 | fi |
810b94f0 | 43536 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 43537 | status=${D}? |
a848cd7e SC |
43538 | |
43539 | # | |
810b94f0 MW |
43540 | # Link the shared library from the single module created, but only if the |
43541 | # previous command didn't fail: | |
a848cd7e | 43542 | # |
810b94f0 MW |
43543 | if test ${D}{status} = 0; then |
43544 | if test ${D}{verbose} = 1; then | |
43545 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
43546 | fi | |
43547 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
43548 | status=${D}? | |
a848cd7e SC |
43549 | fi |
43550 | ||
43551 | # | |
43552 | # Remove intermediate module | |
43553 | # | |
473276a9 | 43554 | rm -f master.${D}${D}.o |
a848cd7e | 43555 | |
810b94f0 | 43556 | exit ${D}status |
a848cd7e | 43557 | EOF |
473276a9 | 43558 | |
a848cd7e SC |
43559 | chmod +x shared-ld-sh |
43560 | ||
43561 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
43562 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
43563 | SHARED_LD_CXX="$SHARED_LD_CC" | |
43564 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
43565 | else | |
43566 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43567 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
43568 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
43569 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
43570 | fi | |
43571 | ||
47bd5406 VZ |
43572 | if test "x$GCC" == "xyes"; then |
43573 | PIC_FLAG="-dynamic -fPIC" | |
43574 | fi | |
43575 | if test "x$XLCC" = "xyes"; then | |
43576 | PIC_FLAG="-dynamic -DPIC" | |
43577 | fi | |
a848cd7e SC |
43578 | ;; |
43579 | ||
43580 | *-*-aix* ) | |
f6b50c59 VZ |
43581 | if test "x$GCC" = "xyes"; then |
43582 | PIC_FLAG="" | |
43583 | ||
43584 | case "${BAKEFILE_HOST}" in | |
43585 | *-*-aix5* ) | |
43586 | LD_EXPFULL="-Wl,-bexpfull" | |
43587 | ;; | |
43588 | esac | |
43589 | ||
7b94a67c VZ |
43590 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
43591 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
0ad5d837 | 43592 | else |
f6b50c59 | 43593 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
a848cd7e SC |
43594 | set dummy makeC++SharedLib; ac_word=$2 |
43595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43597 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
43598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43599 | else | |
43600 | if test -n "$AIX_CXX_LD"; then | |
43601 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
43602 | else | |
43603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43604 | for as_dir in $PATH | |
43605 | do | |
43606 | IFS=$as_save_IFS | |
43607 | test -z "$as_dir" && as_dir=. | |
43608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43610 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
43611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43612 | break 2 | |
43613 | fi | |
43614 | done | |
43615 | done | |
43616 | ||
43617 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
43618 | fi | |
43619 | fi | |
43620 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
43621 | if test -n "$AIX_CXX_LD"; then | |
43622 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
43623 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
43624 | else | |
43625 | echo "$as_me:$LINENO: result: no" >&5 | |
43626 | echo "${ECHO_T}no" >&6 | |
43627 | fi | |
43628 | ||
f6b50c59 | 43629 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
43630 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
43631 | fi | |
43632 | ;; | |
43633 | ||
43634 | *-*-beos* ) | |
1e9e8aba DE |
43635 | SHARED_LD_CC="${LD} -nostart -o" |
43636 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
43637 | ;; |
43638 | ||
43639 | *-*-irix* ) | |
43640 | if test "x$GCC" != "xyes"; then | |
43641 | PIC_FLAG="-KPIC" | |
43642 | fi | |
43643 | ;; | |
43644 | ||
43645 | *-*-cygwin* | *-*-mingw32* ) | |
43646 | PIC_FLAG="" | |
1e9e8aba DE |
43647 | SHARED_LD_CC="\$(CC) -shared -o" |
43648 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 43649 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
43650 | ;; |
43651 | ||
43652 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
43653 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
43654 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 43655 | PIC_FLAG="" |
473276a9 VS |
43656 | |
43657 | D='$' | |
43658 | cat <<EOF >dllar.sh | |
43659 | #!/bin/sh | |
43660 | # | |
43661 | # dllar - a tool to build both a .dll and an .a file | |
43662 | # from a set of object (.o) files for EMX/OS2. | |
43663 | # | |
43664 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
43665 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
43666 | # | |
43667 | # This script will accept a set of files on the command line. | |
43668 | # All the public symbols from the .o files will be exported into | |
43669 | # a .DEF file, then linker will be run (through gcc) against them to | |
43670 | # build a shared library consisting of all given .o files. All libraries | |
43671 | # (.a) will be first decompressed into component .o files then act as | |
43672 | # described above. You can optionally give a description (-d "description") | |
43673 | # which will be put into .DLL. To see the list of accepted options (as well | |
43674 | # as command-line format) simply run this program without options. The .DLL | |
43675 | # is built to be imported by name (there is no guarantee that new versions | |
43676 | # of the library you build will have same ordinals for same symbols). | |
43677 | # | |
43678 | # dllar is free software; you can redistribute it and/or modify | |
43679 | # it under the terms of the GNU General Public License as published by | |
43680 | # the Free Software Foundation; either version 2, or (at your option) | |
43681 | # any later version. | |
43682 | # | |
43683 | # dllar is distributed in the hope that it will be useful, | |
43684 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
43685 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
43686 | # GNU General Public License for more details. | |
43687 | # | |
43688 | # You should have received a copy of the GNU General Public License | |
43689 | # along with dllar; see the file COPYING. If not, write to the Free | |
43690 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
43691 | # 02111-1307, USA. | |
43692 | ||
43693 | # To successfuly run this program you will need: | |
43694 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
43695 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
43696 | # - gcc | |
43697 | # (used to build the .dll) | |
43698 | # - emxexp | |
43699 | # (used to create .def file from .o files) | |
43700 | # - emximp | |
43701 | # (used to create .a file from .def file) | |
43702 | # - GNU text utilites (cat, sort, uniq) | |
43703 | # used to process emxexp output | |
43704 | # - GNU file utilities (mv, rm) | |
43705 | # - GNU sed | |
43706 | # - lxlite (optional, see flag below) | |
43707 | # (used for general .dll cleanup) | |
43708 | # | |
43709 | ||
43710 | flag_USE_LXLITE=1; | |
43711 | ||
43712 | # | |
43713 | # helper functions | |
43714 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
43715 | # second argument (suffix to remove) is given | |
43716 | basnam(){ | |
43717 | case ${D}# in | |
43718 | 1) | |
1e9e8aba | 43719 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
43720 | ;; |
43721 | 2) | |
43722 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
43723 | ;; | |
43724 | *) | |
43725 | echo "error in basnam ${D}*" | |
43726 | exit 8 | |
43727 | ;; | |
43728 | esac | |
43729 | } | |
43730 | ||
43731 | # Cleanup temporary files and output | |
43732 | CleanUp() { | |
43733 | cd ${D}curDir | |
43734 | for i in ${D}inputFiles ; do | |
43735 | case ${D}i in | |
43736 | *!) | |
43737 | rm -rf \`basnam ${D}i !\` | |
43738 | ;; | |
43739 | *) | |
43740 | ;; | |
43741 | esac | |
43742 | done | |
43743 | ||
43744 | # Kill result in case of failure as there is just to many stupid make/nmake | |
43745 | # things out there which doesn't do this. | |
1e9e8aba | 43746 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
43747 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
43748 | fi | |
43749 | } | |
43750 | ||
43751 | # Print usage and exit script with rc=1. | |
43752 | PrintHelp() { | |
b1d22ded DE |
43753 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
43754 | echo ' [-name-mangler-script script.sh]' | |
43755 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
43756 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
43757 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 43758 | echo ' [*.o] [*.a]' |
473276a9 VS |
43759 | echo '*> "output_file" should have no extension.' |
43760 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
43761 | echo ' The import library name is derived from this and is set to "name".a,' | |
43762 | echo ' unless overridden by -import' | |
43763 | echo '*> "importlib_name" should have no extension.' | |
43764 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
43765 | echo ' This name is used as the import library name and may be longer and' | |
43766 | echo ' more descriptive than the DLL name which has to follow the old ' | |
43767 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
43768 | echo '*> "script.sh may be given to override the output_file name by a' |
43769 | echo ' different name. It is mainly useful if the regular make process' | |
43770 | echo ' of some package does not take into account OS/2 restriction of' | |
43771 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
43772 | echo ' supposed to procude a shorter name as output. The script should' | |
43773 | echo ' expect to get importlib_name without extension and should produce' | |
43774 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
43775 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
43776 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
43777 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
43778 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
43779 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
43780 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
43781 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
43782 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 43783 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 43784 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 43785 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 43786 | echo ' C runtime DLLs.' |
b1d22ded | 43787 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
43788 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
43789 | echo ' unchanged to GCC at the end of command line.' | |
43790 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
43791 | echo ' the basename for DLL and import library will be set to library name,' | |
43792 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
43793 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
43794 | echo ' library will be renamed into gcc_s.a.' | |
43795 | echo '--------' | |
43796 | echo 'Example:' | |
43797 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
43798 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
43799 | CleanUp | |
43800 | exit 1 | |
43801 | } | |
43802 | ||
43803 | # Execute a command. | |
43804 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
43805 | # @Uses Whatever CleanUp() uses. | |
43806 | doCommand() { | |
43807 | echo "${D}*" | |
43808 | eval ${D}* | |
43809 | rcCmd=${D}? | |
43810 | ||
1e9e8aba | 43811 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
43812 | echo "command failed, exit code="${D}rcCmd |
43813 | CleanUp | |
43814 | exit ${D}rcCmd | |
43815 | fi | |
43816 | } | |
43817 | ||
43818 | # main routine | |
43819 | # setup globals | |
43820 | cmdLine=${D}* | |
43821 | outFile="" | |
43822 | outimpFile="" | |
43823 | inputFiles="" | |
b1d22ded | 43824 | renameScript="" |
473276a9 VS |
43825 | description="" |
43826 | CC=gcc.exe | |
43827 | CFLAGS="-s -Zcrtdll" | |
43828 | EXTRA_CFLAGS="" | |
43829 | EXPORT_BY_ORDINALS=0 | |
43830 | exclude_symbols="" | |
43831 | library_flags="" | |
43832 | curDir=\`pwd\` | |
43833 | curDirS=curDir | |
43834 | case ${D}curDirS in | |
43835 | */) | |
43836 | ;; | |
43837 | *) | |
43838 | curDirS=${D}{curDirS}"/" | |
43839 | ;; | |
43840 | esac | |
43841 | # Parse commandline | |
43842 | libsToLink=0 | |
b1d22ded | 43843 | omfLinking=0 |
1e9e8aba | 43844 | while [ ${D}1 ]; do |
473276a9 VS |
43845 | case ${D}1 in |
43846 | -ord*) | |
43847 | EXPORT_BY_ORDINALS=1; | |
43848 | ;; | |
43849 | -o*) | |
43850 | shift | |
43851 | outFile=${D}1 | |
43852 | ;; | |
43853 | -i*) | |
43854 | shift | |
43855 | outimpFile=${D}1 | |
43856 | ;; | |
b1d22ded DE |
43857 | -name-mangler-script) |
43858 | shift | |
43859 | renameScript=${D}1 | |
43860 | ;; | |
473276a9 VS |
43861 | -d*) |
43862 | shift | |
43863 | description=${D}1 | |
43864 | ;; | |
43865 | -f*) | |
43866 | shift | |
43867 | CFLAGS=${D}1 | |
43868 | ;; | |
43869 | -c*) | |
43870 | shift | |
43871 | CC=${D}1 | |
43872 | ;; | |
43873 | -h*) | |
43874 | PrintHelp | |
43875 | ;; | |
43876 | -ex*) | |
43877 | shift | |
43878 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
43879 | ;; | |
43880 | -libf*) | |
43881 | shift | |
43882 | library_flags=${D}{library_flags}${D}1" " | |
43883 | ;; | |
43884 | -nocrt*) | |
43885 | CFLAGS="-s" | |
43886 | ;; | |
43887 | -nolxl*) | |
43888 | flag_USE_LXLITE=0 | |
43889 | ;; | |
43890 | -* | /*) | |
43891 | case ${D}1 in | |
43892 | -L* | -l*) | |
43893 | libsToLink=1 | |
43894 | ;; | |
b1d22ded DE |
43895 | -Zomf) |
43896 | omfLinking=1 | |
43897 | ;; | |
473276a9 VS |
43898 | *) |
43899 | ;; | |
43900 | esac | |
43901 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
43902 | ;; | |
b1d22ded DE |
43903 | *.dll) |
43904 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
43905 | if [ ${D}omfLinking -eq 1 ]; then | |
43906 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
43907 | else | |
43908 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
43909 | fi | |
43910 | ;; | |
473276a9 VS |
43911 | *) |
43912 | found=0; | |
1e9e8aba | 43913 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
43914 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
43915 | else | |
43916 | for file in ${D}1 ; do | |
1e9e8aba | 43917 | if [ -f ${D}file ]; then |
473276a9 VS |
43918 | inputFiles="${D}{inputFiles} ${D}file" |
43919 | found=1 | |
43920 | fi | |
43921 | done | |
1e9e8aba | 43922 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
43923 | echo "ERROR: No file(s) found: "${D}1 |
43924 | exit 8 | |
43925 | fi | |
43926 | fi | |
43927 | ;; | |
43928 | esac | |
43929 | shift | |
43930 | done # iterate cmdline words | |
43931 | ||
43932 | # | |
1e9e8aba | 43933 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
43934 | echo "dllar: no input files" |
43935 | PrintHelp | |
43936 | fi | |
43937 | ||
43938 | # Now extract all .o files from .a files | |
43939 | newInputFiles="" | |
43940 | for file in ${D}inputFiles ; do | |
43941 | case ${D}file in | |
43942 | *.a | *.lib) | |
43943 | case ${D}file in | |
43944 | *.a) | |
43945 | suffix=".a" | |
43946 | AR="ar" | |
43947 | ;; | |
43948 | *.lib) | |
43949 | suffix=".lib" | |
43950 | AR="emxomfar" | |
43951 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
43952 | ;; | |
43953 | *) | |
43954 | ;; | |
43955 | esac | |
43956 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
43957 | mkdir ${D}dirname | |
1e9e8aba | 43958 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
43959 | echo "Failed to create subdirectory ./${D}dirname" |
43960 | CleanUp | |
43961 | exit 8; | |
43962 | fi | |
43963 | # Append '!' to indicate archive | |
43964 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
43965 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
43966 | cd ${D}curDir | |
43967 | found=0; | |
43968 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 43969 | if [ -f ${D}subfile ]; then |
473276a9 | 43970 | found=1 |
1e9e8aba | 43971 | if [ -s ${D}subfile ]; then |
473276a9 VS |
43972 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
43973 | newInputFiles="${D}newInputFiles ${D}subfile" | |
43974 | fi | |
43975 | fi | |
43976 | done | |
1e9e8aba DE |
43977 | if [ ${D}found -eq 0 ]; then |
43978 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
43979 | fi |
43980 | ;; | |
43981 | *) | |
43982 | newInputFiles="${D}{newInputFiles} ${D}file" | |
43983 | ;; | |
43984 | esac | |
43985 | done | |
43986 | inputFiles="${D}newInputFiles" | |
43987 | ||
43988 | # Output filename(s). | |
43989 | do_backup=0; | |
1e9e8aba | 43990 | if [ -z ${D}outFile ]; then |
473276a9 VS |
43991 | do_backup=1; |
43992 | set outFile ${D}inputFiles; outFile=${D}2 | |
43993 | fi | |
43994 | ||
43995 | # If it is an archive, remove the '!' and the '_%' suffixes | |
43996 | case ${D}outFile in | |
43997 | *_%!) | |
43998 | outFile=\`basnam ${D}outFile _%!\` | |
43999 | ;; | |
44000 | *) | |
44001 | ;; | |
44002 | esac | |
44003 | case ${D}outFile in | |
44004 | *.dll) | |
44005 | outFile=\`basnam ${D}outFile .dll\` | |
44006 | ;; | |
44007 | *.DLL) | |
44008 | outFile=\`basnam ${D}outFile .DLL\` | |
44009 | ;; | |
44010 | *.o) | |
44011 | outFile=\`basnam ${D}outFile .o\` | |
44012 | ;; | |
44013 | *.obj) | |
44014 | outFile=\`basnam ${D}outFile .obj\` | |
44015 | ;; | |
44016 | *.a) | |
44017 | outFile=\`basnam ${D}outFile .a\` | |
44018 | ;; | |
44019 | *.lib) | |
44020 | outFile=\`basnam ${D}outFile .lib\` | |
44021 | ;; | |
44022 | *) | |
44023 | ;; | |
44024 | esac | |
44025 | case ${D}outimpFile in | |
44026 | *.a) | |
44027 | outimpFile=\`basnam ${D}outimpFile .a\` | |
44028 | ;; | |
44029 | *.lib) | |
44030 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
44031 | ;; | |
44032 | *) | |
44033 | ;; | |
44034 | esac | |
1e9e8aba | 44035 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
44036 | outimpFile=${D}outFile |
44037 | fi | |
44038 | defFile="${D}{outFile}.def" | |
44039 | arcFile="${D}{outimpFile}.a" | |
44040 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
44041 | |
44042 | #create ${D}dllFile as something matching 8.3 restrictions, | |
44043 | if [ -z ${D}renameScript ] ; then | |
44044 | dllFile="${D}outFile" | |
44045 | else | |
44046 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
44047 | fi | |
473276a9 | 44048 | |
1e9e8aba DE |
44049 | if [ ${D}do_backup -ne 0 ] ; then |
44050 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
44051 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
44052 | fi | |
1e9e8aba | 44053 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
44054 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
44055 | fi | |
44056 | fi | |
44057 | ||
44058 | # Extract public symbols from all the object files. | |
44059 | tmpdefFile=${D}{defFile}_% | |
44060 | rm -f ${D}tmpdefFile | |
44061 | for file in ${D}inputFiles ; do | |
44062 | case ${D}file in | |
44063 | *!) | |
44064 | ;; | |
44065 | *) | |
44066 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
44067 | ;; | |
44068 | esac | |
44069 | done | |
44070 | ||
44071 | # Create the def file. | |
44072 | rm -f ${D}defFile | |
44073 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
44074 | dllFile="${D}{dllFile}.dll" |
44075 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 44076 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
44077 | fi |
44078 | echo "EXPORTS" >> ${D}defFile | |
44079 | ||
44080 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
44081 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
44082 | ||
44083 | # Checks if the export is ok or not. | |
44084 | for word in ${D}exclude_symbols; do | |
44085 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
44086 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
44087 | done | |
44088 | ||
44089 | ||
1e9e8aba DE |
44090 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
44091 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
44092 | sed ' |
44093 | N | |
44094 | : loop | |
1e9e8aba | 44095 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
44096 | t loop |
44097 | ' > ${D}{tmpdefFile}% | |
44098 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
44099 | else | |
44100 | rm -f ${D}{tmpdefFile}% | |
44101 | fi | |
44102 | cat ${D}tmpdefFile >> ${D}defFile | |
44103 | rm -f ${D}tmpdefFile | |
44104 | ||
44105 | # Do linking, create implib, and apply lxlite. | |
44106 | gccCmdl=""; | |
44107 | for file in ${D}inputFiles ; do | |
44108 | case ${D}file in | |
44109 | *!) | |
44110 | ;; | |
44111 | *) | |
44112 | gccCmdl="${D}gccCmdl ${D}file" | |
44113 | ;; | |
44114 | esac | |
44115 | done | |
44116 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
44117 | touch "${D}{outFile}.dll" | |
44118 | ||
44119 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 44120 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 44121 | add_flags=""; |
1e9e8aba | 44122 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
44123 | add_flags="-ynd" |
44124 | fi | |
44125 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
44126 | fi | |
44127 | doCommand "emxomf -s -l ${D}arcFile" | |
44128 | ||
44129 | # Successful exit. | |
44130 | CleanUp 1 | |
44131 | exit 0 | |
44132 | EOF | |
44133 | ||
44134 | chmod +x dllar.sh | |
a848cd7e SC |
44135 | ;; |
44136 | ||
1e9e8aba | 44137 | powerpc-apple-macos* | \ |
0ad5d837 | 44138 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
44139 | *-*-sunos4* | \ |
44140 | *-*-osf* | \ | |
44141 | *-*-dgux5* | \ | |
47a7e797 MW |
44142 | *-*-sysv5* | \ |
44143 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
44144 | ;; |
44145 | ||
44146 | *) | |
44147 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
44148 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
44149 | { (exit 1); exit 1; }; } | |
44150 | esac | |
44151 | ||
2057db16 VS |
44152 | if test "x$PIC_FLAG" != "x" ; then |
44153 | PIC_FLAG="$PIC_FLAG -DPIC" | |
44154 | fi | |
44155 | ||
a848cd7e SC |
44156 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
44157 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
44158 | fi | |
44159 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
44160 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
44161 | fi | |
44162 | ||
44163 | ||
44164 | ||
44165 | ||
44166 | ||
44167 | ||
44168 | ||
44169 | ||
810b94f0 | 44170 | |
a848cd7e SC |
44171 | USE_SOVERSION=0 |
44172 | USE_SOVERLINUX=0 | |
44173 | USE_SOVERSOLARIS=0 | |
810b94f0 | 44174 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
44175 | USE_SOSYMLINKS=0 |
44176 | USE_MACVERSION=0 | |
44177 | SONAME_FLAG= | |
44178 | ||
44179 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 44180 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
44181 | SONAME_FLAG="-Wl,-soname," |
44182 | USE_SOVERSION=1 | |
44183 | USE_SOVERLINUX=1 | |
44184 | USE_SOSYMLINKS=1 | |
44185 | ;; | |
44186 | ||
a848cd7e SC |
44187 | *-*-solaris2* ) |
44188 | SONAME_FLAG="-h " | |
44189 | USE_SOVERSION=1 | |
44190 | USE_SOVERSOLARIS=1 | |
44191 | USE_SOSYMLINKS=1 | |
44192 | ;; | |
44193 | ||
44194 | *-*-darwin* ) | |
44195 | USE_MACVERSION=1 | |
44196 | USE_SOVERSION=1 | |
44197 | USE_SOSYMLINKS=1 | |
44198 | ;; | |
810b94f0 MW |
44199 | |
44200 | *-*-cygwin* ) | |
44201 | USE_SOVERSION=1 | |
44202 | USE_SOVERCYGWIN=1 | |
44203 | ;; | |
a848cd7e SC |
44204 | esac |
44205 | ||
44206 | ||
44207 | ||
44208 | ||
44209 | ||
44210 | ||
44211 | ||
44212 | ||
44213 | ||
810b94f0 | 44214 | |
a848cd7e SC |
44215 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
44216 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 44217 | DEPS_TRACKING=1 |
a848cd7e SC |
44218 | |
44219 | if test "x$GCC" = "xyes"; then | |
44220 | DEPSMODE=gcc | |
a848cd7e | 44221 | case "${BAKEFILE_HOST}" in |
47bd5406 | 44222 | *-*-darwin* ) |
0ad5d837 | 44223 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
44224 | ;; |
44225 | * ) | |
0ad5d837 | 44226 | DEPSFLAG="-MMD" |
a848cd7e SC |
44227 | ;; |
44228 | esac | |
44229 | echo "$as_me:$LINENO: result: gcc" >&5 | |
44230 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 44231 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 44232 | DEPSMODE=mwcc |
0ad5d837 | 44233 | DEPSFLAG="-MM" |
b1d22ded DE |
44234 | echo "$as_me:$LINENO: result: mwcc" >&5 |
44235 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 44236 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
44237 | DEPSMODE=unixcc |
44238 | DEPSFLAG="-xM1" | |
44239 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
44240 | echo "${ECHO_T}Sun cc" >&6 | |
44241 | elif test "x$SGICC" = "xyes"; then | |
44242 | DEPSMODE=unixcc | |
44243 | DEPSFLAG="-M" | |
44244 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
44245 | echo "${ECHO_T}SGI cc" >&6 | |
a848cd7e | 44246 | else |
0ad5d837 | 44247 | DEPS_TRACKING=0 |
a848cd7e SC |
44248 | echo "$as_me:$LINENO: result: none" >&5 |
44249 | echo "${ECHO_T}none" >&6 | |
44250 | fi | |
44251 | ||
44252 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
44253 | |
44254 | D='$' | |
44255 | cat <<EOF >bk-deps | |
a848cd7e SC |
44256 | #!/bin/sh |
44257 | ||
44258 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
44259 | # script. It is used to track C/C++ files dependencies in portable way. | |
44260 | # | |
44261 | # Permission is given to use this file in any way. | |
44262 | ||
473276a9 | 44263 | DEPSMODE=${DEPSMODE} |
a848cd7e | 44264 | DEPSDIR=.deps |
0ad5d837 | 44265 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 44266 | |
473276a9 | 44267 | mkdir -p ${D}DEPSDIR |
a848cd7e | 44268 | |
473276a9 | 44269 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 44270 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
44271 | status=${D}? |
44272 | if test ${D}{status} != 0 ; then | |
44273 | exit ${D}{status} | |
a848cd7e SC |
44274 | fi |
44275 | # move created file to the location we want it in: | |
473276a9 VS |
44276 | while test ${D}# -gt 0; do |
44277 | case "${D}1" in | |
a848cd7e SC |
44278 | -o ) |
44279 | shift | |
473276a9 | 44280 | objfile=${D}1 |
a848cd7e SC |
44281 | ;; |
44282 | -* ) | |
44283 | ;; | |
44284 | * ) | |
473276a9 | 44285 | srcfile=${D}1 |
a848cd7e SC |
44286 | ;; |
44287 | esac | |
44288 | shift | |
44289 | done | |
1e9e8aba DE |
44290 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
44291 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
44292 | if test -f ${D}depfile ; then |
44293 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
44294 | rm -f ${D}depfile | |
a848cd7e | 44295 | else |
1e9e8aba | 44296 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
44297 | if test -f ${D}depfile ; then |
44298 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
44299 | rm -f ${D}depfile | |
a848cd7e SC |
44300 | fi |
44301 | fi | |
44302 | exit 0 | |
81f90336 | 44303 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 44304 | ${D}* || exit ${D}? |
81f90336 MW |
44305 | # Run mwcc again with -MM and redirect into the dep file we want |
44306 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
44307 | prevarg= | |
44308 | for arg in ${D}* ; do | |
44309 | if test "${D}prevarg" = "-o"; then | |
44310 | objfile=${D}arg | |
44311 | else | |
44312 | case "${D}arg" in | |
44313 | -* ) | |
44314 | ;; | |
44315 | * ) | |
44316 | srcfile=${D}arg | |
44317 | ;; | |
44318 | esac | |
44319 | fi | |
44320 | prevarg="${D}arg" | |
44321 | done | |
0ad5d837 | 44322 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 44323 | exit 0 |
0ad5d837 | 44324 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 44325 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
44326 | # Run compiler again with deps flag and redirect into the dep file. |
44327 | # It doesn't work if the '-o FILE' option is used, but without it the | |
44328 | # dependency file will contain the wrong name for the object. So it is | |
44329 | # removed from the command line, and the dep file is fixed with sed. | |
44330 | cmd="" | |
44331 | while test ${D}# -gt 0; do | |
44332 | case "${D}1" in | |
44333 | -o ) | |
44334 | shift | |
44335 | objfile=${D}1 | |
44336 | ;; | |
44337 | * ) | |
44338 | eval arg${D}#=\\${D}1 | |
44339 | cmd="${D}cmd \\${D}arg${D}#" | |
44340 | ;; | |
44341 | esac | |
44342 | shift | |
44343 | done | |
0ad5d837 | 44344 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 44345 | exit 0 |
a848cd7e | 44346 | else |
473276a9 VS |
44347 | ${D}* |
44348 | exit ${D}? | |
a848cd7e SC |
44349 | fi |
44350 | EOF | |
473276a9 | 44351 | |
a848cd7e SC |
44352 | chmod +x bk-deps |
44353 | fi | |
44354 | ||
44355 | ||
44356 | ||
44357 | ||
44358 | RESCOMP= | |
44359 | SETFILE= | |
44360 | ||
44361 | case ${BAKEFILE_HOST} in | |
44362 | *-*-cygwin* | *-*-mingw32* ) | |
44363 | if test "$build" != "$host" ; then | |
44364 | RESCOMP=$host_alias-windres | |
44365 | else | |
44366 | # Extract the first word of "windres", so it can be a program name with args. | |
44367 | set dummy windres; ac_word=$2 | |
44368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44370 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44372 | else | |
44373 | if test -n "$RESCOMP"; then | |
44374 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44375 | else | |
44376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44377 | for as_dir in $PATH | |
44378 | do | |
44379 | IFS=$as_save_IFS | |
44380 | test -z "$as_dir" && as_dir=. | |
44381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44383 | ac_cv_prog_RESCOMP="windres" | |
44384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44385 | break 2 | |
44386 | fi | |
44387 | done | |
44388 | done | |
44389 | ||
44390 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
44391 | fi | |
44392 | fi | |
44393 | RESCOMP=$ac_cv_prog_RESCOMP | |
44394 | if test -n "$RESCOMP"; then | |
44395 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44396 | echo "${ECHO_T}$RESCOMP" >&6 | |
44397 | else | |
44398 | echo "$as_me:$LINENO: result: no" >&5 | |
44399 | echo "${ECHO_T}no" >&6 | |
44400 | fi | |
44401 | ||
44402 | fi | |
44403 | ;; | |
44404 | ||
1e9e8aba | 44405 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
44406 | # Extract the first word of "Rez", so it can be a program name with args. |
44407 | set dummy Rez; ac_word=$2 | |
44408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44410 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
44411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44412 | else | |
44413 | if test -n "$RESCOMP"; then | |
44414 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
44415 | else | |
44416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44417 | for as_dir in $PATH | |
44418 | do | |
44419 | IFS=$as_save_IFS | |
44420 | test -z "$as_dir" && as_dir=. | |
44421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44423 | ac_cv_prog_RESCOMP="Rez" | |
44424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44425 | break 2 | |
44426 | fi | |
44427 | done | |
44428 | done | |
44429 | ||
44430 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
44431 | fi | |
44432 | fi | |
44433 | RESCOMP=$ac_cv_prog_RESCOMP | |
44434 | if test -n "$RESCOMP"; then | |
44435 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
44436 | echo "${ECHO_T}$RESCOMP" >&6 | |
44437 | else | |
44438 | echo "$as_me:$LINENO: result: no" >&5 | |
44439 | echo "${ECHO_T}no" >&6 | |
44440 | fi | |
44441 | ||
44442 | # Extract the first word of "SetFile", so it can be a program name with args. | |
44443 | set dummy SetFile; ac_word=$2 | |
44444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44446 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
44447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44448 | else | |
44449 | if test -n "$SETFILE"; then | |
44450 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
44451 | else | |
44452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44453 | for as_dir in $PATH | |
44454 | do | |
44455 | IFS=$as_save_IFS | |
44456 | test -z "$as_dir" && as_dir=. | |
44457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44459 | ac_cv_prog_SETFILE="SetFile" | |
44460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44461 | break 2 | |
44462 | fi | |
44463 | done | |
44464 | done | |
44465 | ||
44466 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
44467 | fi | |
44468 | fi | |
44469 | SETFILE=$ac_cv_prog_SETFILE | |
44470 | if test -n "$SETFILE"; then | |
44471 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
44472 | echo "${ECHO_T}$SETFILE" >&6 | |
44473 | else | |
44474 | echo "$as_me:$LINENO: result: no" >&5 | |
44475 | echo "${ECHO_T}no" >&6 | |
44476 | fi | |
44477 | ||
44478 | ;; | |
44479 | esac | |
44480 | ||
44481 | ||
44482 | ||
44483 | ||
44484 | ||
c9469659 | 44485 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 44486 | |
dcc1b6ad | 44487 | |
c9469659 | 44488 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 44489 | |
646b6ec1 | 44490 | |
74b84332 | 44491 | |
a848cd7e SC |
44492 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
44493 | if test "${enable_precomp_headers+set}" = set; then | |
44494 | enableval="$enable_precomp_headers" | |
44495 | bk_use_pch="$enableval" | |
44496 | fi; | |
44497 | ||
44498 | GCC_PCH=0 | |
44499 | ||
44500 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
44501 | if test "x$GCC" = "xyes"; then | |
44502 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
44503 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
44504 | cat >conftest.$ac_ext <<_ACEOF | |
44505 | /* confdefs.h. */ | |
44506 | _ACEOF | |
44507 | cat confdefs.h >>conftest.$ac_ext | |
44508 | cat >>conftest.$ac_ext <<_ACEOF | |
44509 | /* end confdefs.h. */ | |
44510 | ||
44511 | int | |
44512 | main () | |
44513 | { | |
44514 | ||
44515 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
44516 | #error "no pch support" | |
44517 | #endif | |
44518 | #if (__GNUC__ < 3) | |
44519 | #error "no pch support" | |
44520 | #endif | |
44521 | #if (__GNUC__ == 3) && \ | |
44522 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
44523 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
44524 | #error "no pch support" | |
44525 | #endif | |
44526 | ||
44527 | ; | |
44528 | return 0; | |
44529 | } | |
44530 | _ACEOF | |
44531 | rm -f conftest.$ac_objext | |
44532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44534 | ac_status=$? |
ac1cb8d3 VS |
44535 | grep -v '^ *+' conftest.er1 >conftest.err |
44536 | rm -f conftest.er1 | |
44537 | cat conftest.err >&5 | |
a848cd7e SC |
44538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44539 | (exit $ac_status); } && | |
6ebeb4c7 | 44540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44542 | (eval $ac_try) 2>&5 | |
44543 | ac_status=$? | |
44544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44545 | (exit $ac_status); }; } && | |
44546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44548 | (eval $ac_try) 2>&5 | |
44549 | ac_status=$? | |
44550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44551 | (exit $ac_status); }; }; then | |
44552 | ||
44553 | echo "$as_me:$LINENO: result: yes" >&5 | |
44554 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
44555 | GCC_PCH=1 |
44556 | ||
44557 | else | |
44558 | echo "$as_me: failed program was:" >&5 | |
44559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44560 | ||
44561 | ||
44562 | echo "$as_me:$LINENO: result: no" >&5 | |
44563 | echo "${ECHO_T}no" >&6 | |
44564 | ||
44565 | fi | |
ac1cb8d3 | 44566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 44567 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
44568 | |
44569 | D='$' | |
44570 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
44571 | #!/bin/sh |
44572 | ||
44573 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
44574 | # script. It is used to generated precompiled headers. | |
44575 | # | |
44576 | # Permission is given to use this file in any way. | |
44577 | ||
1e9e8aba DE |
44578 | outfile="${D}{1}" |
44579 | header="${D}{2}" | |
a848cd7e SC |
44580 | shift |
44581 | shift | |
44582 | ||
44583 | compiler= | |
44584 | headerfile= | |
1e9e8aba DE |
44585 | while test ${D}{#} -gt 0; do |
44586 | case "${D}{1}" in | |
a848cd7e | 44587 | -I* ) |
1e9e8aba DE |
44588 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
44589 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
44590 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
44591 | fi |
44592 | ;; | |
44593 | esac | |
1e9e8aba | 44594 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
44595 | shift |
44596 | done | |
44597 | ||
1e9e8aba DE |
44598 | if test "x${D}{headerfile}" = "x" ; then |
44599 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 44600 | else |
1e9e8aba DE |
44601 | if test -f ${D}{outfile} ; then |
44602 | rm -f ${D}{outfile} | |
a848cd7e | 44603 | else |
1e9e8aba | 44604 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 44605 | fi |
1e9e8aba | 44606 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
44607 | mkdir -p .deps |
44608 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
44609 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
44610 | exit ${D}{?} | |
a848cd7e SC |
44611 | fi |
44612 | EOF | |
1e9e8aba | 44613 | |
a848cd7e SC |
44614 | chmod +x bk-make-pch |
44615 | fi | |
44616 | fi | |
44617 | fi | |
44618 | ||
44619 | ||
44620 | ||
a848cd7e SC |
44621 | COND_BUILD_DEBUG="#" |
44622 | if test "x$BUILD" = "xdebug" ; then | |
44623 | COND_BUILD_DEBUG="" | |
44624 | fi | |
44625 | ||
44626 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
44627 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
44628 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
44629 | fi | |
44630 | ||
44631 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
44632 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
44633 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
44634 | fi | |
44635 | ||
44636 | COND_BUILD_DEBUG_UNICODE_0="#" | |
44637 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
44638 | COND_BUILD_DEBUG_UNICODE_0="" | |
44639 | fi | |
44640 | ||
44641 | COND_BUILD_DEBUG_UNICODE_1="#" | |
44642 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
44643 | COND_BUILD_DEBUG_UNICODE_1="" | |
44644 | fi | |
44645 | ||
44646 | COND_BUILD_RELEASE="#" | |
44647 | if test "x$BUILD" = "xrelease" ; then | |
44648 | COND_BUILD_RELEASE="" | |
44649 | fi | |
44650 | ||
44651 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
44652 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
44653 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
44654 | fi | |
44655 | ||
44656 | COND_BUILD_RELEASE_UNICODE_0="#" | |
44657 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
44658 | COND_BUILD_RELEASE_UNICODE_0="" | |
44659 | fi | |
44660 | ||
44661 | COND_BUILD_RELEASE_UNICODE_1="#" | |
44662 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
44663 | COND_BUILD_RELEASE_UNICODE_1="" | |
44664 | fi | |
44665 | ||
44666 | COND_DEBUG_FLAG_1="#" | |
44667 | if test "x$DEBUG_FLAG" = "x1" ; then | |
44668 | COND_DEBUG_FLAG_1="" | |
44669 | fi | |
44670 | ||
44671 | COND_DEBUG_INFO_0="#" | |
44672 | if test "x$DEBUG_INFO" = "x0" ; then | |
44673 | COND_DEBUG_INFO_0="" | |
44674 | fi | |
44675 | ||
44676 | COND_DEBUG_INFO_1="#" | |
44677 | if test "x$DEBUG_INFO" = "x1" ; then | |
44678 | COND_DEBUG_INFO_1="" | |
44679 | fi | |
44680 | ||
44681 | COND_DEPS_TRACKING_0="#" | |
44682 | if test "x$DEPS_TRACKING" = "x0" ; then | |
44683 | COND_DEPS_TRACKING_0="" | |
44684 | fi | |
44685 | ||
44686 | COND_DEPS_TRACKING_1="#" | |
44687 | if test "x$DEPS_TRACKING" = "x1" ; then | |
44688 | COND_DEPS_TRACKING_1="" | |
44689 | fi | |
44690 | ||
44691 | COND_GCC_PCH_1="#" | |
44692 | if test "x$GCC_PCH" = "x1" ; then | |
44693 | COND_GCC_PCH_1="" | |
44694 | fi | |
44695 | ||
44696 | COND_MONOLITHIC_0="#" | |
44697 | if test "x$MONOLITHIC" = "x0" ; then | |
44698 | COND_MONOLITHIC_0="" | |
44699 | fi | |
44700 | ||
44701 | COND_MONOLITHIC_0_SHARED_0="#" | |
44702 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
44703 | COND_MONOLITHIC_0_SHARED_0="" | |
44704 | fi | |
44705 | ||
44706 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
44707 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
44708 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
44709 | fi | |
44710 | ||
90970d69 DE |
44711 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
44712 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
44713 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
44714 | fi | |
44715 | ||
a848cd7e SC |
44716 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
44717 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
44718 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
44719 | fi | |
44720 | ||
6671c68b VZ |
44721 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
44722 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
44723 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
44724 | fi | |
44725 | ||
a848cd7e SC |
44726 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
44727 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
44728 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
44729 | fi | |
44730 | ||
ceec2216 RL |
44731 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
44732 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
44733 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
44734 | fi | |
44735 | ||
a848cd7e SC |
44736 | COND_MONOLITHIC_0_SHARED_1="#" |
44737 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
44738 | COND_MONOLITHIC_0_SHARED_1="" | |
44739 | fi | |
44740 | ||
44741 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
44742 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
44743 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
44744 | fi | |
44745 | ||
90970d69 DE |
44746 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
44747 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
44748 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
44749 | fi | |
44750 | ||
a848cd7e SC |
44751 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
44752 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
44753 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
44754 | fi | |
44755 | ||
6671c68b VZ |
44756 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
44757 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
44758 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
44759 | fi | |
44760 | ||
a848cd7e SC |
44761 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
44762 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
44763 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
44764 | fi | |
44765 | ||
ceec2216 RL |
44766 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
44767 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
44768 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
44769 | fi | |
44770 | ||
a848cd7e SC |
44771 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
44772 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
44773 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
44774 | fi | |
44775 | ||
44776 | COND_MONOLITHIC_1="#" | |
44777 | if test "x$MONOLITHIC" = "x1" ; then | |
44778 | COND_MONOLITHIC_1="" | |
44779 | fi | |
44780 | ||
44781 | COND_MONOLITHIC_1_SHARED_0="#" | |
44782 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
44783 | COND_MONOLITHIC_1_SHARED_0="" | |
44784 | fi | |
44785 | ||
44786 | COND_MONOLITHIC_1_SHARED_1="#" | |
44787 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
44788 | COND_MONOLITHIC_1_SHARED_1="" | |
44789 | fi | |
44790 | ||
44791 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
44792 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
44793 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
44794 | fi | |
44795 | ||
44796 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
44797 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
44798 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
44799 | fi | |
44800 | ||
eb730a0c JS |
44801 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
44802 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
44803 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
44804 | fi | |
44805 | ||
a848cd7e SC |
44806 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
44807 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
44808 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
44809 | fi | |
44810 | ||
44811 | COND_PLATFORM_MACOSX_1="#" | |
44812 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
44813 | COND_PLATFORM_MACOSX_1="" | |
44814 | fi | |
44815 | ||
a30f955f VS |
44816 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
44817 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
44818 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
44819 | fi | |
44820 | ||
a848cd7e SC |
44821 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
44822 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
44823 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
44824 | fi | |
44825 | ||
44826 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
44827 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
44828 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
44829 | fi | |
44830 | ||
44831 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
44832 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
44833 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
44834 | fi | |
44835 | ||
fc480dc1 DE |
44836 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
44837 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
44838 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
44839 | fi | |
44840 | ||
1e9e8aba DE |
44841 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
44842 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
44843 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
44844 | fi | |
44845 | ||
ebee3cd0 VS |
44846 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
44847 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
44848 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
44849 | fi | |
44850 | ||
44851 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
44852 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
44853 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
44854 | fi | |
44855 | ||
a848cd7e SC |
44856 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
44857 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
44858 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
44859 | fi | |
44860 | ||
44861 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
44862 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
44863 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
44864 | fi | |
44865 | ||
b48a2016 DE |
44866 | COND_PLATFORM_MACOS_1="#" |
44867 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
44868 | COND_PLATFORM_MACOS_1="" | |
44869 | fi | |
44870 | ||
083508af MW |
44871 | COND_PLATFORM_MAC_1="#" |
44872 | if test "x$PLATFORM_MAC" = "x1" ; then | |
44873 | COND_PLATFORM_MAC_1="" | |
44874 | fi | |
44875 | ||
83d8eb47 MW |
44876 | COND_PLATFORM_MSDOS_1="#" |
44877 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
44878 | COND_PLATFORM_MSDOS_1="" | |
44879 | fi | |
44880 | ||
a848cd7e SC |
44881 | COND_PLATFORM_OS2_1="#" |
44882 | if test "x$PLATFORM_OS2" = "x1" ; then | |
44883 | COND_PLATFORM_OS2_1="" | |
44884 | fi | |
44885 | ||
44886 | COND_PLATFORM_UNIX_0="#" | |
44887 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
44888 | COND_PLATFORM_UNIX_0="" | |
44889 | fi | |
44890 | ||
44891 | COND_PLATFORM_UNIX_1="#" | |
44892 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
44893 | COND_PLATFORM_UNIX_1="" | |
44894 | fi | |
44895 | ||
44896 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
44897 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
44898 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
44899 | fi | |
44900 | ||
44901 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
44902 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
44903 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
44904 | fi | |
44905 | ||
44906 | COND_PLATFORM_WIN32_0="#" | |
44907 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
44908 | COND_PLATFORM_WIN32_0="" | |
44909 | fi | |
44910 | ||
44911 | COND_PLATFORM_WIN32_1="#" | |
44912 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
44913 | COND_PLATFORM_WIN32_1="" | |
44914 | fi | |
44915 | ||
44916 | COND_SHARED_0="#" | |
44917 | if test "x$SHARED" = "x0" ; then | |
44918 | COND_SHARED_0="" | |
44919 | fi | |
44920 | ||
083508af MW |
44921 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
44922 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
44923 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
44924 | fi | |
44925 | ||
44926 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
44927 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
44928 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
44929 | fi | |
44930 | ||
44931 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
44932 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
44933 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
44934 | fi | |
44935 | ||
a848cd7e SC |
44936 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
44937 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
44938 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
44939 | fi | |
44940 | ||
44941 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
44942 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
44943 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
44944 | fi | |
44945 | ||
44946 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
44947 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
44948 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
44949 | fi | |
44950 | ||
44951 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
44952 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
44953 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
44954 | fi | |
44955 | ||
083508af MW |
44956 | COND_SHARED_0_USE_XRC_1="#" |
44957 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
44958 | COND_SHARED_0_USE_XRC_1="" | |
44959 | fi | |
44960 | ||
a848cd7e SC |
44961 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
44962 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
44963 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
44964 | fi | |
44965 | ||
44966 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
44967 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
44968 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
44969 | fi | |
44970 | ||
44971 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
44972 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
44973 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
44974 | fi | |
44975 | ||
44976 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
44977 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
44978 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
44979 | fi | |
44980 | ||
44981 | COND_SHARED_1="#" | |
44982 | if test "x$SHARED" = "x1" ; then | |
44983 | COND_SHARED_1="" | |
44984 | fi | |
44985 | ||
44986 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
44987 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
44988 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
44989 | fi | |
44990 | ||
083508af MW |
44991 | COND_SHARED_1_USE_XRC_1="#" |
44992 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
44993 | COND_SHARED_1_USE_XRC_1="" | |
44994 | fi | |
44995 | ||
a30f955f VS |
44996 | COND_TOOLKIT_="#" |
44997 | if test "x$TOOLKIT" = "x" ; then | |
44998 | COND_TOOLKIT_="" | |
44999 | fi | |
45000 | ||
a848cd7e SC |
45001 | COND_TOOLKIT_COCOA="#" |
45002 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
45003 | COND_TOOLKIT_COCOA="" | |
45004 | fi | |
45005 | ||
a49baeab DE |
45006 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
45007 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
45008 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
45009 | fi | |
45010 | ||
a848cd7e SC |
45011 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
45012 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45013 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
45014 | fi | |
45015 | ||
45016 | COND_TOOLKIT_GTK="#" | |
45017 | if test "x$TOOLKIT" = "xGTK" ; then | |
45018 | COND_TOOLKIT_GTK="" | |
45019 | fi | |
45020 | ||
45021 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
45022 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
45023 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
45024 | fi | |
45025 | ||
45026 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
45027 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45028 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
45029 | fi | |
45030 | ||
45031 | COND_TOOLKIT_MAC="#" | |
45032 | if test "x$TOOLKIT" = "xMAC" ; then | |
45033 | COND_TOOLKIT_MAC="" | |
45034 | fi | |
45035 | ||
45036 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
45037 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
45038 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
45039 | fi | |
45040 | ||
45041 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
45042 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45043 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
45044 | fi | |
45045 | ||
45046 | COND_TOOLKIT_MGL="#" | |
45047 | if test "x$TOOLKIT" = "xMGL" ; then | |
45048 | COND_TOOLKIT_MGL="" | |
45049 | fi | |
45050 | ||
45051 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
45052 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
45053 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
45054 | fi | |
45055 | ||
45056 | COND_TOOLKIT_MOTIF="#" | |
45057 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
45058 | COND_TOOLKIT_MOTIF="" | |
45059 | fi | |
45060 | ||
45061 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
45062 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
45063 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
45064 | fi | |
45065 | ||
45066 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
45067 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45068 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
45069 | fi | |
45070 | ||
45071 | COND_TOOLKIT_MSW="#" | |
45072 | if test "x$TOOLKIT" = "xMSW" ; then | |
45073 | COND_TOOLKIT_MSW="" | |
45074 | fi | |
45075 | ||
45076 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
45077 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
45078 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
45079 | fi | |
45080 | ||
45081 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
45082 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45083 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
45084 | fi | |
45085 | ||
45086 | COND_TOOLKIT_PM="#" | |
45087 | if test "x$TOOLKIT" = "xPM" ; then | |
45088 | COND_TOOLKIT_PM="" | |
45089 | fi | |
45090 | ||
45091 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
45092 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
45093 | COND_TOOLKIT_PM_USE_GUI_1="" | |
45094 | fi | |
45095 | ||
45096 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
45097 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45098 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
45099 | fi | |
45100 | ||
3fd9c298 DE |
45101 | COND_TOOLKIT_WINCE="#" |
45102 | if test "x$TOOLKIT" = "xWINCE" ; then | |
45103 | COND_TOOLKIT_WINCE="" | |
45104 | fi | |
45105 | ||
45106 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
45107 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
45108 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
45109 | fi | |
45110 | ||
45111 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
45112 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45113 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
45114 | fi | |
45115 | ||
a848cd7e SC |
45116 | COND_TOOLKIT_X11="#" |
45117 | if test "x$TOOLKIT" = "xX11" ; then | |
45118 | COND_TOOLKIT_X11="" | |
45119 | fi | |
45120 | ||
45121 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
45122 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
45123 | COND_TOOLKIT_X11_USE_GUI_1="" | |
45124 | fi | |
45125 | ||
45126 | COND_UNICODE_1="#" | |
45127 | if test "x$UNICODE" = "x1" ; then | |
45128 | COND_UNICODE_1="" | |
45129 | fi | |
45130 | ||
45131 | COND_USE_EXCEPTIONS_0="#" | |
45132 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
45133 | COND_USE_EXCEPTIONS_0="" | |
45134 | fi | |
45135 | ||
45136 | COND_USE_EXCEPTIONS_1="#" | |
45137 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
45138 | COND_USE_EXCEPTIONS_1="" | |
45139 | fi | |
45140 | ||
45141 | COND_USE_GUI_0="#" | |
45142 | if test "x$USE_GUI" = "x0" ; then | |
45143 | COND_USE_GUI_0="" | |
45144 | fi | |
45145 | ||
45146 | COND_USE_GUI_1="#" | |
45147 | if test "x$USE_GUI" = "x1" ; then | |
45148 | COND_USE_GUI_1="" | |
45149 | fi | |
45150 | ||
45151 | COND_USE_GUI_1_WXUNIV_0="#" | |
45152 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45153 | COND_USE_GUI_1_WXUNIV_0="" | |
45154 | fi | |
45155 | ||
45156 | COND_USE_GUI_1_WXUNIV_1="#" | |
45157 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
45158 | COND_USE_GUI_1_WXUNIV_1="" | |
45159 | fi | |
45160 | ||
45161 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
45162 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45163 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
45164 | fi | |
45165 | ||
45166 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
45167 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45168 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
45169 | fi | |
45170 | ||
45171 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
45172 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45173 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
45174 | fi | |
45175 | ||
083508af MW |
45176 | COND_USE_ODBC_1="#" |
45177 | if test "x$USE_ODBC" = "x1" ; then | |
45178 | COND_USE_ODBC_1="" | |
45179 | fi | |
45180 | ||
45181 | COND_USE_OPENGL_1="#" | |
45182 | if test "x$USE_OPENGL" = "x1" ; then | |
45183 | COND_USE_OPENGL_1="" | |
45184 | fi | |
45185 | ||
a848cd7e SC |
45186 | COND_USE_PLUGINS_0="#" |
45187 | if test "x$USE_PLUGINS" = "x0" ; then | |
45188 | COND_USE_PLUGINS_0="" | |
45189 | fi | |
45190 | ||
0b78747f MW |
45191 | COND_USE_RTTI_0="#" |
45192 | if test "x$USE_RTTI" = "x0" ; then | |
45193 | COND_USE_RTTI_0="" | |
45194 | fi | |
45195 | ||
45196 | COND_USE_RTTI_1="#" | |
45197 | if test "x$USE_RTTI" = "x1" ; then | |
45198 | COND_USE_RTTI_1="" | |
45199 | fi | |
45200 | ||
a848cd7e SC |
45201 | COND_USE_SOSYMLINKS_1="#" |
45202 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
45203 | COND_USE_SOSYMLINKS_1="" | |
45204 | fi | |
45205 | ||
eb730a0c JS |
45206 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
45207 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
45208 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
45209 | fi | |
45210 | ||
a848cd7e SC |
45211 | COND_USE_SOVERLINUX_1="#" |
45212 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
45213 | COND_USE_SOVERLINUX_1="" | |
45214 | fi | |
45215 | ||
45216 | COND_USE_SOVERSION_0="#" | |
45217 | if test "x$USE_SOVERSION" = "x0" ; then | |
45218 | COND_USE_SOVERSION_0="" | |
45219 | fi | |
45220 | ||
45221 | COND_USE_SOVERSOLARIS_1="#" | |
45222 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
45223 | COND_USE_SOVERSOLARIS_1="" | |
45224 | fi | |
45225 | ||
0b78747f MW |
45226 | COND_USE_THREADS_0="#" |
45227 | if test "x$USE_THREADS" = "x0" ; then | |
45228 | COND_USE_THREADS_0="" | |
45229 | fi | |
45230 | ||
45231 | COND_USE_THREADS_1="#" | |
45232 | if test "x$USE_THREADS" = "x1" ; then | |
45233 | COND_USE_THREADS_1="" | |
45234 | fi | |
45235 | ||
a13a7f89 RL |
45236 | COND_USE_XRC_1="#" |
45237 | if test "x$USE_XRC" = "x1" ; then | |
45238 | COND_USE_XRC_1="" | |
45239 | fi | |
45240 | ||
eb730a0c JS |
45241 | COND_WINDOWS_IMPLIB_1="#" |
45242 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
45243 | COND_WINDOWS_IMPLIB_1="" | |
45244 | fi | |
45245 | ||
a848cd7e SC |
45246 | COND_WITH_PLUGIN_SDL_1="#" |
45247 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
45248 | COND_WITH_PLUGIN_SDL_1="" | |
45249 | fi | |
45250 | ||
1e6eb025 VZ |
45251 | COND_WXUNIV_0="#" |
45252 | if test "x$WXUNIV" = "x0" ; then | |
45253 | COND_WXUNIV_0="" | |
45254 | fi | |
45255 | ||
a848cd7e SC |
45256 | COND_WXUNIV_1="#" |
45257 | if test "x$WXUNIV" = "x1" ; then | |
45258 | COND_WXUNIV_1="" | |
45259 | fi | |
45260 | ||
45261 | COND_WXUSE_EXPAT_BUILTIN="#" | |
45262 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
45263 | COND_WXUSE_EXPAT_BUILTIN="" | |
45264 | fi | |
45265 | ||
45266 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
45267 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45268 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
45269 | fi | |
45270 | ||
45271 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
45272 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45273 | COND_WXUSE_LIBPNG_BUILTIN="" | |
45274 | fi | |
45275 | ||
45276 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
45277 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45278 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
45279 | fi | |
45280 | ||
45281 | COND_WXUSE_ODBC_BUILTIN="#" | |
45282 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
45283 | COND_WXUSE_ODBC_BUILTIN="" | |
45284 | fi | |
45285 | ||
45286 | COND_WXUSE_REGEX_BUILTIN="#" | |
45287 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
45288 | COND_WXUSE_REGEX_BUILTIN="" | |
45289 | fi | |
45290 | ||
45291 | COND_WXUSE_ZLIB_BUILTIN="#" | |
45292 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
45293 | COND_WXUSE_ZLIB_BUILTIN="" | |
45294 | fi | |
45295 | ||
45296 | ||
45297 | ||
810b94f0 MW |
45298 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
45299 | { { 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 | |
45300 | 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;} | |
45301 | { (exit 1); exit 1; }; } | |
45302 | fi | |
45303 | ||
2057db16 VS |
45304 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
45305 | { { 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 | |
45306 | 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;} | |
45307 | { (exit 1); exit 1; }; } | |
45308 | fi | |
45309 | ||
a848cd7e | 45310 | |
ceec2216 RL |
45311 | if test "$wxUSE_SHARED" = "yes"; then |
45312 | ||
45313 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
45314 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
45315 | ||
5b674b9d DE |
45316 | case "${host}" in |
45317 | *-pc-os2_emx | *-pc-os2-emx ) | |
45318 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45319 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
45320 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
45321 | cp -p ${srcdir}/src/os2/dllar.sh . | |
45322 | ;; | |
45323 | esac | |
ceec2216 RL |
45324 | else |
45325 | ||
45326 | EXE_LINKER="$CXX -o" | |
45327 | ||
45328 | fi | |
69120ee4 VZ |
45329 | if test "$wxUSE_OMF" = "yes"; then |
45330 | case "${host}" in | |
45331 | *-pc-os2_emx | *-pc-os2-emx ) | |
45332 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
45333 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45334 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
45335 | ;; | |
45336 | esac | |
45337 | fi | |
a848cd7e | 45338 | |
c08ebc62 | 45339 | if test $GCC_PCH = 1 ; then |
254e8e29 | 45340 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 45341 | fi |
a848cd7e SC |
45342 | |
45343 | ||
45344 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
45345 | ||
45346 | ||
45347 | ||
45348 | ||
45349 | ||
45350 | ||
45351 | ||
45352 | ||
45353 | ||
45354 | ||
45355 | ||
45356 | ||
45357 | ||
45358 | ||
45359 | ||
45360 | ||
45361 | ||
45362 | ||
45363 | ||
45364 | ||
45365 | ||
45366 | ||
45367 | ||
45368 | ||
45369 | ||
45370 | ||
45371 | ||
45372 | ||
45373 | ||
45374 | ||
45375 | ||
45376 | ||
45377 | ||
45378 | ||
45379 | ||
45380 | ||
45381 | ||
45382 | ||
45383 | ||
45384 | ||
45385 | ||
45386 | ||
a848cd7e SC |
45387 | |
45388 | ||
45389 | ||
45390 | ||
45391 | ||
45392 | ||
45393 | ||
45394 | ||
45395 | ||
45396 | ||
45397 | ||
45398 | ||
45399 | ||
45400 | ||
45401 | ||
45402 | ||
45403 | ||
45404 | ||
ddd14b14 | 45405 | |
a848cd7e SC |
45406 | |
45407 | ||
45408 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45409 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45410 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45411 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45413 | else | |
45414 | cat >conftest.make <<\_ACEOF | |
45415 | all: | |
45416 | @echo 'ac_maketemp="$(MAKE)"' | |
45417 | _ACEOF | |
45418 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45419 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45420 | if test -n "$ac_maketemp"; then | |
45421 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45422 | else | |
45423 | eval ac_cv_prog_make_${ac_make}_set=no | |
45424 | fi | |
45425 | rm -f conftest.make | |
45426 | fi | |
45427 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45428 | echo "$as_me:$LINENO: result: yes" >&5 | |
45429 | echo "${ECHO_T}yes" >&6 | |
45430 | SET_MAKE= | |
45431 | else | |
45432 | echo "$as_me:$LINENO: result: no" >&5 | |
45433 | echo "${ECHO_T}no" >&6 | |
45434 | SET_MAKE="MAKE=${MAKE-make}" | |
45435 | fi | |
45436 | ||
45437 | ||
a848cd7e | 45438 | |
ceec2216 RL |
45439 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
45440 | ||
a848cd7e | 45441 | |
ceec2216 | 45442 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 45443 | |
a848cd7e | 45444 | |
ceec2216 | 45445 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 45446 | |
ceec2216 RL |
45447 | |
45448 | ac_config_files="$ac_config_files version-script Makefile" | |
45449 | ||
45450 | ||
45451 | ac_config_commands="$ac_config_commands wx-config | |
45452 | " | |
a848cd7e SC |
45453 | |
45454 | ||
9103d280 RL |
45455 | |
45456 | ||
a848cd7e SC |
45457 | if test "$wxUSE_GUI" = "yes"; then |
45458 | SUBDIRS="samples demos utils contrib" | |
45459 | else SUBDIRS="samples utils" | |
45460 | fi | |
45461 | ||
45462 | ||
45463 | ||
45464 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
45465 | if test "${with_cppunit_prefix+set}" = set; then | |
45466 | withval="$with_cppunit_prefix" | |
45467 | cppunit_config_prefix="$withval" | |
45468 | else | |
45469 | cppunit_config_prefix="" | |
45470 | fi; | |
45471 | ||
45472 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
45473 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
45474 | withval="$with_cppunit_exec_prefix" | |
45475 | cppunit_config_exec_prefix="$withval" | |
45476 | else | |
45477 | cppunit_config_exec_prefix="" | |
45478 | fi; | |
45479 | ||
45480 | if test x$cppunit_config_exec_prefix != x ; then | |
45481 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
45482 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45483 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
45484 | fi | |
45485 | fi | |
45486 | if test x$cppunit_config_prefix != x ; then | |
45487 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
45488 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
45489 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
45490 | fi | |
45491 | fi | |
45492 | ||
45493 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
45494 | set dummy cppunit-config; ac_word=$2 | |
45495 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45497 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
45498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45499 | else | |
45500 | case $CPPUNIT_CONFIG in | |
45501 | [\\/]* | ?:[\\/]*) | |
45502 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
45503 | ;; | |
45504 | *) | |
45505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45506 | for as_dir in $PATH | |
45507 | do | |
45508 | IFS=$as_save_IFS | |
45509 | test -z "$as_dir" && as_dir=. | |
45510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45512 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
45513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45514 | break 2 | |
45515 | fi | |
45516 | done | |
45517 | done | |
45518 | ||
45519 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
45520 | ;; | |
45521 | esac | |
45522 | fi | |
45523 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
45524 | ||
45525 | if test -n "$CPPUNIT_CONFIG"; then | |
45526 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
45527 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
45528 | else | |
45529 | echo "$as_me:$LINENO: result: no" >&5 | |
45530 | echo "${ECHO_T}no" >&6 | |
45531 | fi | |
45532 | ||
45533 | cppunit_version_min=1.8.0 | |
45534 | ||
45535 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
45536 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
45537 | no_cppunit="" | |
45538 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
45539 | no_cppunit=yes | |
45540 | else | |
45541 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
45542 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
45543 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
45544 | ||
45545 | cppunit_major_version=`echo $cppunit_version | \ | |
45546 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45547 | cppunit_minor_version=`echo $cppunit_version | \ | |
45548 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45549 | cppunit_micro_version=`echo $cppunit_version | \ | |
45550 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45551 | ||
45552 | cppunit_major_min=`echo $cppunit_version_min | \ | |
45553 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
45554 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
45555 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
45556 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
45557 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
45558 | ||
45559 | cppunit_version_proper=`expr \ | |
45560 | $cppunit_major_version \> $cppunit_major_min \| \ | |
45561 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45562 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
45563 | $cppunit_major_version \= $cppunit_major_min \& \ | |
45564 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
45565 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
45566 | ||
45567 | if test "$cppunit_version_proper" = "1" ; then | |
45568 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
45569 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
45570 | else | |
45571 | echo "$as_me:$LINENO: result: no" >&5 | |
45572 | echo "${ECHO_T}no" >&6 | |
45573 | no_cppunit=yes | |
45574 | fi | |
45575 | fi | |
45576 | ||
45577 | if test "x$no_cppunit" = x ; then | |
c2218763 | 45578 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
45579 | else |
45580 | CPPUNIT_CFLAGS="" | |
45581 | CPPUNIT_LIBS="" | |
c2218763 | 45582 | : |
a848cd7e SC |
45583 | fi |
45584 | ||
45585 | ||
45586 | ||
45587 | ||
45588 | ||
45589 | for subdir in `echo $SUBDIRS`; do | |
45590 | if test -d ${srcdir}/${subdir} ; then | |
45591 | if test "$wxUSE_GUI" = "yes"; then | |
45592 | if test ${subdir} = "samples"; then | |
45593 | makefiles="samples/Makefile.in $makefiles" | |
45594 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
45595 | if test -d $srcdir/samples/$sample; then | |
45596 | makefiles="samples/$sample/Makefile.in $makefiles" | |
45597 | fi | |
45598 | done | |
9c112555 MW |
45599 | else |
45600 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
45601 | eval "disabled=\$$disabled_var" | |
45602 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
45603 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
45604 | fi |
45605 | else if test ${subdir} = "samples"; then | |
45606 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
45607 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
45608 | makefiles="" |
45609 | for util in HelpGen tex2rtf ; do | |
45610 | if test -d $srcdir/utils/$util ; then | |
45611 | makefiles="utils/$util/Makefile.in \ | |
45612 | utils/$util/src/Makefile.in \ | |
45613 | $makefiles" | |
45614 | fi | |
45615 | done | |
a848cd7e SC |
45616 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
45617 | fi | |
45618 | fi | |
45619 | ||
45620 | for mkin in $makefiles ; do | |
45621 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
45622 | ac_config_files="$ac_config_files $mk" | |
45623 | ||
45624 | done | |
45625 | fi | |
45626 | done | |
45627 | ||
45628 | ||
45629 | cat >confcache <<\_ACEOF | |
45630 | # This file is a shell script that caches the results of configure | |
45631 | # tests run on this system so they can be shared between configure | |
45632 | # scripts and configure runs, see configure's option --config-cache. | |
45633 | # It is not useful on other systems. If it contains results you don't | |
45634 | # want to keep, you may remove or edit it. | |
45635 | # | |
45636 | # config.status only pays attention to the cache file if you give it | |
45637 | # the --recheck option to rerun configure. | |
45638 | # | |
45639 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
45640 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
45641 | # following values. | |
45642 | ||
45643 | _ACEOF | |
45644 | ||
45645 | # The following way of writing the cache mishandles newlines in values, | |
45646 | # but we know of no workaround that is simple, portable, and efficient. | |
45647 | # So, don't put newlines in cache variables' values. | |
45648 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
45649 | # and sets the high bit in the cache file unless we assign to the vars. | |
45650 | { | |
45651 | (set) 2>&1 | | |
45652 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
45653 | *ac_space=\ *) | |
45654 | # `set' does not quote correctly, so add quotes (double-quote | |
45655 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
45656 | sed -n \ | |
ac1cb8d3 VS |
45657 | "s/'/'\\\\''/g; |
45658 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
45659 | ;; |
45660 | *) | |
45661 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
45662 | sed -n \ | |
ac1cb8d3 | 45663 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
45664 | ;; |
45665 | esac; | |
45666 | } | | |
45667 | sed ' | |
45668 | t clear | |
45669 | : clear | |
45670 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
45671 | t end | |
45672 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
45673 | : end' >>confcache | |
45674 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
45675 | if test -w $cache_file; then | |
45676 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
45677 | cat confcache >$cache_file | |
45678 | else | |
45679 | echo "not updating unwritable cache $cache_file" | |
45680 | fi | |
45681 | fi | |
45682 | rm -f confcache | |
45683 | ||
45684 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
45685 | # Let make expand exec_prefix. | |
45686 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
45687 | ||
45688 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
45689 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
45690 | # trailing colons and then remove the whole line if VPATH becomes empty | |
45691 | # (actually we leave an empty line to preserve line numbers). | |
45692 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 45693 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
45694 | s/:*\$(srcdir):*/:/; |
45695 | s/:*\${srcdir}:*/:/; | |
45696 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 45697 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 45698 | s/:*$//; |
ac1cb8d3 | 45699 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
45700 | }' |
45701 | fi | |
45702 | ||
45703 | DEFS=-DHAVE_CONFIG_H | |
45704 | ||
45705 | ac_libobjs= | |
45706 | ac_ltlibobjs= | |
45707 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
45708 | # 1. Remove the extension, and $U if already installed. | |
45709 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 45710 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
45711 | # 2. Add them. |
45712 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
45713 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
45714 | done | |
45715 | LIBOBJS=$ac_libobjs | |
45716 | ||
45717 | LTLIBOBJS=$ac_ltlibobjs | |
45718 | ||
45719 | ||
45720 | ||
45721 | : ${CONFIG_STATUS=./config.status} | |
45722 | ac_clean_files_save=$ac_clean_files | |
45723 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
45724 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
45725 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
45726 | cat >$CONFIG_STATUS <<_ACEOF | |
45727 | #! $SHELL | |
45728 | # Generated by $as_me. | |
45729 | # Run this file to recreate the current configuration. | |
45730 | # Compiler output produced by configure, useful for debugging | |
45731 | # configure, is in config.log if it exists. | |
45732 | ||
45733 | debug=false | |
45734 | ac_cs_recheck=false | |
45735 | ac_cs_silent=false | |
45736 | SHELL=\${CONFIG_SHELL-$SHELL} | |
45737 | _ACEOF | |
45738 | ||
45739 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45740 | ## --------------------- ## | |
45741 | ## M4sh Initialization. ## | |
45742 | ## --------------------- ## | |
45743 | ||
45744 | # Be Bourne compatible | |
45745 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
45746 | emulate sh | |
45747 | NULLCMD=: | |
45748 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
45749 | # is contrary to our usage. Disable this feature. | |
45750 | alias -g '${1+"$@"}'='"$@"' | |
45751 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
45752 | set -o posix | |
45753 | fi | |
ac1cb8d3 | 45754 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
45755 | |
45756 | # Support unset when possible. | |
ac1cb8d3 | 45757 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
45758 | as_unset=unset |
45759 | else | |
45760 | as_unset=false | |
45761 | fi | |
45762 | ||
45763 | ||
45764 | # Work around bugs in pre-3.0 UWIN ksh. | |
45765 | $as_unset ENV MAIL MAILPATH | |
45766 | PS1='$ ' | |
45767 | PS2='> ' | |
45768 | PS4='+ ' | |
45769 | ||
45770 | # NLS nuisances. | |
45771 | for as_var in \ | |
45772 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
45773 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45774 | LC_TELEPHONE LC_TIME | |
45775 | do | |
ac1cb8d3 | 45776 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
45777 | eval $as_var=C; export $as_var |
45778 | else | |
45779 | $as_unset $as_var | |
45780 | fi | |
45781 | done | |
45782 | ||
45783 | # Required to use basename. | |
45784 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
45785 | as_expr=expr | |
45786 | else | |
45787 | as_expr=false | |
45788 | fi | |
45789 | ||
45790 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
45791 | as_basename=basename | |
45792 | else | |
45793 | as_basename=false | |
45794 | fi | |
45795 | ||
45796 | ||
45797 | # Name of the executable. | |
45798 | as_me=`$as_basename "$0" || | |
45799 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
45800 | X"$0" : 'X\(//\)$' \| \ | |
45801 | X"$0" : 'X\(/\)$' \| \ | |
45802 | . : '\(.\)' 2>/dev/null || | |
45803 | echo X/"$0" | | |
45804 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
45805 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
45806 | /^X\/\(\/\).*/{ s//\1/; q; } | |
45807 | s/.*/./; q'` | |
45808 | ||
45809 | ||
45810 | # PATH needs CR, and LINENO needs CR and PATH. | |
45811 | # Avoid depending upon Character Ranges. | |
45812 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
45813 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
45814 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
45815 | as_cr_digits='0123456789' | |
45816 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
45817 | ||
45818 | # The user is always right. | |
45819 | if test "${PATH_SEPARATOR+set}" != set; then | |
45820 | echo "#! /bin/sh" >conf$$.sh | |
45821 | echo "exit 0" >>conf$$.sh | |
45822 | chmod +x conf$$.sh | |
45823 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
45824 | PATH_SEPARATOR=';' | |
45825 | else | |
45826 | PATH_SEPARATOR=: | |
45827 | fi | |
45828 | rm -f conf$$.sh | |
45829 | fi | |
45830 | ||
45831 | ||
45832 | as_lineno_1=$LINENO | |
45833 | as_lineno_2=$LINENO | |
45834 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
45835 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
45836 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
45837 | # Find who we are. Look in the path if we contain no path at all | |
45838 | # relative or not. | |
45839 | case $0 in | |
45840 | *[\\/]* ) as_myself=$0 ;; | |
45841 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45842 | for as_dir in $PATH | |
45843 | do | |
45844 | IFS=$as_save_IFS | |
45845 | test -z "$as_dir" && as_dir=. | |
45846 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
45847 | done | |
45848 | ||
45849 | ;; | |
45850 | esac | |
45851 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
45852 | # in which case we are not to be found in the path. | |
45853 | if test "x$as_myself" = x; then | |
45854 | as_myself=$0 | |
45855 | fi | |
45856 | if test ! -f "$as_myself"; then | |
45857 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
45858 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
45859 | { (exit 1); exit 1; }; } | |
45860 | fi | |
45861 | case $CONFIG_SHELL in | |
45862 | '') | |
45863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45864 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
45865 | do | |
45866 | IFS=$as_save_IFS | |
45867 | test -z "$as_dir" && as_dir=. | |
45868 | for as_base in sh bash ksh sh5; do | |
45869 | case $as_dir in | |
45870 | /*) | |
45871 | if ("$as_dir/$as_base" -c ' | |
45872 | as_lineno_1=$LINENO | |
45873 | as_lineno_2=$LINENO | |
45874 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
45875 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
45876 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
45877 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
45878 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
45879 | CONFIG_SHELL=$as_dir/$as_base | |
45880 | export CONFIG_SHELL | |
45881 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
45882 | fi;; | |
45883 | esac | |
45884 | done | |
45885 | done | |
45886 | ;; | |
45887 | esac | |
45888 | ||
45889 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
45890 | # uniformly replaced by the line number. The first 'sed' inserts a | |
45891 | # line-number line before each line; the second 'sed' does the real | |
45892 | # work. The second script uses 'N' to pair each line-number line | |
45893 | # with the numbered line, and appends trailing '-' during | |
45894 | # substitution so that $LINENO is not a special case at line end. | |
45895 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
45896 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
45897 | sed '=' <$as_myself | | |
45898 | sed ' | |
45899 | N | |
45900 | s,$,-, | |
45901 | : loop | |
45902 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
45903 | t loop | |
45904 | s,-$,, | |
45905 | s,^['$as_cr_digits']*\n,, | |
45906 | ' >$as_me.lineno && | |
45907 | chmod +x $as_me.lineno || | |
45908 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
45909 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
45910 | { (exit 1); exit 1; }; } | |
45911 | ||
45912 | # Don't try to exec as it changes $[0], causing all sort of problems | |
45913 | # (the dirname of $[0] is not the place where we might find the | |
45914 | # original and so on. Autoconf is especially sensible to this). | |
45915 | . ./$as_me.lineno | |
45916 | # Exit status is that of the last command. | |
45917 | exit | |
45918 | } | |
45919 | ||
45920 | ||
45921 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
45922 | *c*,-n*) ECHO_N= ECHO_C=' | |
45923 | ' ECHO_T=' ' ;; | |
45924 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
45925 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
45926 | esac | |
45927 | ||
45928 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
45929 | as_expr=expr | |
45930 | else | |
45931 | as_expr=false | |
45932 | fi | |
45933 | ||
45934 | rm -f conf$$ conf$$.exe conf$$.file | |
45935 | echo >conf$$.file | |
45936 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
45937 | # We could just check for DJGPP; but this test a) works b) is more generic | |
45938 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
45939 | if test -f conf$$.exe; then | |
45940 | # Don't use ln at all; we don't have any links | |
45941 | as_ln_s='cp -p' | |
45942 | else | |
45943 | as_ln_s='ln -s' | |
45944 | fi | |
45945 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
45946 | as_ln_s=ln | |
45947 | else | |
45948 | as_ln_s='cp -p' | |
45949 | fi | |
45950 | rm -f conf$$ conf$$.exe conf$$.file | |
45951 | ||
45952 | if mkdir -p . 2>/dev/null; then | |
45953 | as_mkdir_p=: | |
45954 | else | |
ac1cb8d3 | 45955 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
45956 | as_mkdir_p=false |
45957 | fi | |
45958 | ||
45959 | as_executable_p="test -f" | |
45960 | ||
45961 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 45962 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
45963 | |
45964 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 45965 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
45966 | |
45967 | ||
45968 | # IFS | |
45969 | # We need space, tab and new line, in precisely that order. | |
45970 | as_nl=' | |
45971 | ' | |
45972 | IFS=" $as_nl" | |
45973 | ||
45974 | # CDPATH. | |
45975 | $as_unset CDPATH | |
45976 | ||
45977 | exec 6>&1 | |
45978 | ||
45979 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
45980 | # report actual input values of CONFIG_FILES etc. instead of their | |
45981 | # values after options handling. Logging --version etc. is OK. | |
45982 | exec 5>>config.log | |
45983 | { | |
45984 | echo | |
45985 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
45986 | ## Running $as_me. ## | |
45987 | _ASBOX | |
45988 | } >&5 | |
45989 | cat >&5 <<_CSEOF | |
45990 | ||
eb730a0c | 45991 | This file was extended by wxWidgets $as_me 2.6.2, which was |
ac1cb8d3 | 45992 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
45993 | |
45994 | CONFIG_FILES = $CONFIG_FILES | |
45995 | CONFIG_HEADERS = $CONFIG_HEADERS | |
45996 | CONFIG_LINKS = $CONFIG_LINKS | |
45997 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
45998 | $ $0 $@ | |
45999 | ||
46000 | _CSEOF | |
46001 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
46002 | echo >&5 | |
46003 | _ACEOF | |
46004 | ||
46005 | # Files that config.status was made for. | |
46006 | if test -n "$ac_config_files"; then | |
46007 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
46008 | fi | |
46009 | ||
46010 | if test -n "$ac_config_headers"; then | |
46011 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
46012 | fi | |
46013 | ||
46014 | if test -n "$ac_config_links"; then | |
46015 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
46016 | fi | |
46017 | ||
46018 | if test -n "$ac_config_commands"; then | |
46019 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
46020 | fi | |
46021 | ||
46022 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46023 | ||
46024 | ac_cs_usage="\ | |
46025 | \`$as_me' instantiates files from templates according to the | |
46026 | current configuration. | |
46027 | ||
46028 | Usage: $0 [OPTIONS] [FILE]... | |
46029 | ||
46030 | -h, --help print this help, then exit | |
46031 | -V, --version print version number, then exit | |
46032 | -q, --quiet do not print progress messages | |
46033 | -d, --debug don't remove temporary files | |
46034 | --recheck update $as_me by reconfiguring in the same conditions | |
46035 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 46036 | instantiate the configuration file FILE |
a848cd7e | 46037 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 46038 | instantiate the configuration header FILE |
a848cd7e SC |
46039 | |
46040 | Configuration files: | |
46041 | $config_files | |
46042 | ||
46043 | Configuration headers: | |
46044 | $config_headers | |
46045 | ||
46046 | Configuration commands: | |
46047 | $config_commands | |
46048 | ||
46049 | Report bugs to <bug-autoconf@gnu.org>." | |
46050 | _ACEOF | |
46051 | ||
46052 | cat >>$CONFIG_STATUS <<_ACEOF | |
46053 | ac_cs_version="\\ | |
eb730a0c | 46054 | wxWidgets config.status 2.6.2 |
ac1cb8d3 | 46055 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
46056 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
46057 | ||
ac1cb8d3 | 46058 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
46059 | This config.status script is free software; the Free Software Foundation |
46060 | gives unlimited permission to copy, distribute and modify it." | |
46061 | srcdir=$srcdir | |
46062 | INSTALL="$INSTALL" | |
46063 | _ACEOF | |
46064 | ||
46065 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46066 | # If no file are specified by the user, then we need to provide default | |
46067 | # value. By we need to know if files were specified by the user. | |
46068 | ac_need_defaults=: | |
46069 | while test $# != 0 | |
46070 | do | |
46071 | case $1 in | |
46072 | --*=*) | |
46073 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
46074 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
46075 | ac_shift=: | |
46076 | ;; | |
46077 | -*) | |
46078 | ac_option=$1 | |
46079 | ac_optarg=$2 | |
46080 | ac_shift=shift | |
46081 | ;; | |
46082 | *) # This is not an option, so the user has probably given explicit | |
46083 | # arguments. | |
46084 | ac_option=$1 | |
46085 | ac_need_defaults=false;; | |
46086 | esac | |
46087 | ||
46088 | case $ac_option in | |
46089 | # Handling of the options. | |
46090 | _ACEOF | |
46091 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46092 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
46093 | ac_cs_recheck=: ;; | |
46094 | --version | --vers* | -V ) | |
46095 | echo "$ac_cs_version"; exit 0 ;; | |
46096 | --he | --h) | |
46097 | # Conflict between --help and --header | |
46098 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
46099 | Try \`$0 --help' for more information." >&5 | |
46100 | echo "$as_me: error: ambiguous option: $1 | |
46101 | Try \`$0 --help' for more information." >&2;} | |
46102 | { (exit 1); exit 1; }; };; | |
46103 | --help | --hel | -h ) | |
46104 | echo "$ac_cs_usage"; exit 0 ;; | |
46105 | --debug | --d* | -d ) | |
46106 | debug=: ;; | |
46107 | --file | --fil | --fi | --f ) | |
46108 | $ac_shift | |
46109 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
46110 | ac_need_defaults=false;; | |
46111 | --header | --heade | --head | --hea ) | |
46112 | $ac_shift | |
46113 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
46114 | ac_need_defaults=false;; | |
46115 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
46116 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
46117 | ac_cs_silent=: ;; | |
46118 | ||
46119 | # This is an error. | |
46120 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
46121 | Try \`$0 --help' for more information." >&5 | |
46122 | echo "$as_me: error: unrecognized option: $1 | |
46123 | Try \`$0 --help' for more information." >&2;} | |
46124 | { (exit 1); exit 1; }; } ;; | |
46125 | ||
46126 | *) ac_config_targets="$ac_config_targets $1" ;; | |
46127 | ||
46128 | esac | |
46129 | shift | |
46130 | done | |
46131 | ||
46132 | ac_configure_extra_args= | |
46133 | ||
46134 | if $ac_cs_silent; then | |
46135 | exec 6>/dev/null | |
46136 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
46137 | fi | |
46138 | ||
46139 | _ACEOF | |
46140 | cat >>$CONFIG_STATUS <<_ACEOF | |
46141 | if \$ac_cs_recheck; then | |
46142 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
46143 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
46144 | fi | |
46145 | ||
46146 | _ACEOF | |
46147 | ||
46148 | cat >>$CONFIG_STATUS <<_ACEOF | |
46149 | # | |
46150 | # INIT-COMMANDS section. | |
46151 | # | |
46152 | ||
ceec2216 RL |
46153 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
46154 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46155 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
46156 | LN_S="${LN_S}" | |
a848cd7e SC |
46157 | |
46158 | ||
46159 | _ACEOF | |
46160 | ||
46161 | ||
46162 | ||
46163 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46164 | for ac_config_target in $ac_config_targets | |
46165 | do | |
46166 | case "$ac_config_target" in | |
46167 | # Handling of arguments. | |
ceec2216 RL |
46168 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
46169 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
46170 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
46171 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
46172 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
46173 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
46174 | "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 |
46175 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
46176 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
46177 | { (exit 1); exit 1; }; };; | |
46178 | esac | |
46179 | done | |
46180 | ||
46181 | # If the user did not use the arguments to specify the items to instantiate, | |
46182 | # then the envvar interface is used. Set only those that are not. | |
46183 | # We use the long form for the default assignment because of an extremely | |
46184 | # bizarre bug on SunOS 4.1.3. | |
46185 | if $ac_need_defaults; then | |
46186 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
46187 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
46188 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
46189 | fi | |
46190 | ||
46191 | # Have a temporary directory for convenience. Make it in the build tree | |
46192 | # simply because there is no reason to put it here, and in addition, | |
46193 | # creating and moving files from /tmp can sometimes cause problems. | |
46194 | # Create a temporary directory, and hook for its removal unless debugging. | |
46195 | $debug || | |
46196 | { | |
46197 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
46198 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
46199 | } | |
46200 | ||
46201 | # Create a (secure) tmp directory for tmp files. | |
46202 | ||
46203 | { | |
46204 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
46205 | test -n "$tmp" && test -d "$tmp" | |
46206 | } || | |
46207 | { | |
46208 | tmp=./confstat$$-$RANDOM | |
46209 | (umask 077 && mkdir $tmp) | |
46210 | } || | |
46211 | { | |
46212 | echo "$me: cannot create a temporary directory in ." >&2 | |
46213 | { (exit 1); exit 1; } | |
46214 | } | |
46215 | ||
46216 | _ACEOF | |
46217 | ||
46218 | cat >>$CONFIG_STATUS <<_ACEOF | |
46219 | ||
46220 | # | |
46221 | # CONFIG_FILES section. | |
46222 | # | |
46223 | ||
46224 | # No need to generate the scripts if there are no CONFIG_FILES. | |
46225 | # This happens for instance when ./config.status config.h | |
46226 | if test -n "\$CONFIG_FILES"; then | |
46227 | # Protect against being on the right side of a sed subst in config.status. | |
46228 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
46229 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
46230 | s,@SHELL@,$SHELL,;t t | |
46231 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
46232 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
46233 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
46234 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
46235 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
46236 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
46237 | s,@exec_prefix@,$exec_prefix,;t t | |
46238 | s,@prefix@,$prefix,;t t | |
46239 | s,@program_transform_name@,$program_transform_name,;t t | |
46240 | s,@bindir@,$bindir,;t t | |
46241 | s,@sbindir@,$sbindir,;t t | |
46242 | s,@libexecdir@,$libexecdir,;t t | |
46243 | s,@datadir@,$datadir,;t t | |
46244 | s,@sysconfdir@,$sysconfdir,;t t | |
46245 | s,@sharedstatedir@,$sharedstatedir,;t t | |
46246 | s,@localstatedir@,$localstatedir,;t t | |
46247 | s,@libdir@,$libdir,;t t | |
46248 | s,@includedir@,$includedir,;t t | |
46249 | s,@oldincludedir@,$oldincludedir,;t t | |
46250 | s,@infodir@,$infodir,;t t | |
46251 | s,@mandir@,$mandir,;t t | |
46252 | s,@build_alias@,$build_alias,;t t | |
46253 | s,@host_alias@,$host_alias,;t t | |
46254 | s,@target_alias@,$target_alias,;t t | |
46255 | s,@DEFS@,$DEFS,;t t | |
46256 | s,@ECHO_C@,$ECHO_C,;t t | |
46257 | s,@ECHO_N@,$ECHO_N,;t t | |
46258 | s,@ECHO_T@,$ECHO_T,;t t | |
46259 | s,@LIBS@,$LIBS,;t t | |
46260 | s,@build@,$build,;t t | |
46261 | s,@build_cpu@,$build_cpu,;t t | |
46262 | s,@build_vendor@,$build_vendor,;t t | |
46263 | s,@build_os@,$build_os,;t t | |
46264 | s,@host@,$host,;t t | |
46265 | s,@host_cpu@,$host_cpu,;t t | |
46266 | s,@host_vendor@,$host_vendor,;t t | |
46267 | s,@host_os@,$host_os,;t t | |
46268 | s,@target@,$target,;t t | |
46269 | s,@target_cpu@,$target_cpu,;t t | |
46270 | s,@target_vendor@,$target_vendor,;t t | |
46271 | s,@target_os@,$target_os,;t t | |
46272 | s,@CC@,$CC,;t t | |
46273 | s,@CFLAGS@,$CFLAGS,;t t | |
46274 | s,@LDFLAGS@,$LDFLAGS,;t t | |
46275 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
46276 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
46277 | s,@EXEEXT@,$EXEEXT,;t t | |
46278 | s,@OBJEXT@,$OBJEXT,;t t | |
46279 | s,@CPP@,$CPP,;t t | |
46280 | s,@EGREP@,$EGREP,;t t | |
46281 | s,@CXX@,$CXX,;t t | |
46282 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
46283 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
46284 | s,@RANLIB@,$RANLIB,;t t | |
46285 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
46286 | s,@AR@,$AR,;t t | |
8c80d384 | 46287 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
46288 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
46289 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
46290 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
46291 | s,@STRIP@,$STRIP,;t t | |
8c80d384 DE |
46292 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
46293 | s,@RESCOMP@,$RESCOMP,;t t | |
46294 | s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t | |
46295 | s,@DLLTOOL@,$DLLTOOL,;t t | |
46296 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
46297 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
46298 | s,@LN_S@,$LN_S,;t t | |
46299 | s,@CXXCPP@,$CXXCPP,;t t | |
46300 | s,@subdirs@,$subdirs,;t t | |
46301 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
46302 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
46303 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
46304 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
46305 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
46306 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
46307 | s,@X_LIBS@,$X_LIBS,;t t | |
46308 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
46309 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
46310 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
46311 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
46312 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
46313 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
46314 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
a848cd7e SC |
46315 | s,@DEREZ@,$DEREZ,;t t |
46316 | s,@SETFILE@,$SETFILE,;t t | |
46317 | s,@LIBICONV@,$LIBICONV,;t t | |
46318 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
46319 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
46320 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
46321 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
46322 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
46323 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
46324 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
46325 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
46326 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
46327 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
46328 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
46329 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
46330 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
46331 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
46332 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
46333 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
46334 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
46335 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
46336 | s,@VENDOR@,$VENDOR,;t t | |
46337 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
46338 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
46339 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
46340 | s,@WXUNIV@,$WXUNIV,;t t |
46341 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
46342 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
46343 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
46344 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
46345 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
46346 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
46347 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
46348 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
46349 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
46350 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 46351 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
46352 | s,@UNICODE@,$UNICODE,;t t |
46353 | s,@BUILD@,$BUILD,;t t | |
46354 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
46355 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
46356 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
46357 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
46358 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
46359 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
46360 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
46361 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
46362 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
46363 | s,@SET_MAKE@,$SET_MAKE,;t t | |
46364 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
46365 | s,@NM@,$NM,;t t |
46366 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
46367 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
46368 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
46369 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
46370 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
46371 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
46372 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 46373 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
46374 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
46375 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 46376 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
46377 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
46378 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
46379 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
46380 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
46381 | s,@LIBEXT@,$LIBEXT,;t t | |
46382 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
46383 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 46384 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
46385 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
46386 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
46387 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
46388 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
46389 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
46390 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 46391 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
46392 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
46393 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
46394 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 46395 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
46396 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
46397 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
46398 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
46399 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
46400 | s,@GCC_PCH@,$GCC_PCH,;t t | |
46401 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
46402 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
46403 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
46404 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
46405 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
46406 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
46407 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
46408 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
46409 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
46410 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
46411 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
46412 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
46413 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
46414 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
46415 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
46416 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
46417 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
46418 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 46419 | 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 | 46420 | 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 | 46421 | 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 | 46422 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 46423 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46424 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
46425 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 46426 | 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 | 46427 | 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 | 46428 | 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 | 46429 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 46430 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
46431 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
46432 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
46433 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
46434 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
46435 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
46436 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 46437 | 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 |
46438 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
46439 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 46440 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
46441 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
46442 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
46443 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 46444 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 46445 | 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 |
46446 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
46447 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
46448 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
46449 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 46450 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 46451 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 46452 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
46453 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
46454 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
46455 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
46456 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
46457 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
46458 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
46459 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
46460 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
46461 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
46462 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
46463 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
46464 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
46465 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46466 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46467 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 46468 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
46469 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
46470 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
46471 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
46472 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
46473 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
46474 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 46475 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 46476 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 46477 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 46478 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
46479 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
46480 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
46481 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
46482 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
46483 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
46484 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
46485 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
46486 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
46487 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
46488 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
46489 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
46490 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
46491 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
46492 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
46493 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
46494 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
46495 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
46496 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
46497 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
46498 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
46499 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
46500 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
46501 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
46502 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
46503 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
46504 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
46505 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
46506 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
46507 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
46508 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
46509 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
46510 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
46511 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
46512 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
46513 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 46514 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
46515 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
46516 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 46517 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 46518 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
46519 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
46520 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
46521 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
46522 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
46523 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 46524 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 46525 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 46526 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 46527 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
46528 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
46529 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
46530 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
46531 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
46532 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
46533 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
46534 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
46535 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 46536 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
46537 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
46538 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
46539 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
46540 | s,@USE_GUI@,$USE_GUI,;t t | |
46541 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
46542 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
46543 | s,@TOOLKIT@,$TOOLKIT,;t t | |
46544 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 46545 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 46546 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
46547 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
46548 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 46549 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
46550 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
46551 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
46552 | s,@WX_VERSION@,$WX_VERSION,;t t | |
46553 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
46554 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
46555 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 46556 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
46557 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
46558 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
46559 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
46560 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
ddd14b14 | 46561 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
46562 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
46563 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 46564 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 46565 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
46566 | s,@DISTDIR@,$DISTDIR,;t t |
46567 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
46568 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
46569 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
46570 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
46571 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
46572 | s,@RESFLAGS@,$RESFLAGS,;t t | |
46573 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
46574 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
46575 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
46576 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
46577 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
46578 | s,@MACSETFILE@,$MACSETFILE,;t t | |
46579 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
46580 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
46581 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
46582 | s,@LIBOBJS@,$LIBOBJS,;t t | |
46583 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
46584 | CEOF | |
46585 | ||
46586 | _ACEOF | |
46587 | ||
46588 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46589 | # Split the substitutions into bite-sized pieces for seds with | |
46590 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
46591 | ac_max_sed_lines=48 | |
46592 | ac_sed_frag=1 # Number of current file. | |
46593 | ac_beg=1 # First line for current file. | |
46594 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
46595 | ac_more_lines=: | |
46596 | ac_sed_cmds= | |
46597 | while $ac_more_lines; do | |
46598 | if test $ac_beg -gt 1; then | |
46599 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46600 | else | |
46601 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
46602 | fi | |
46603 | if test ! -s $tmp/subs.frag; then | |
46604 | ac_more_lines=false | |
46605 | else | |
46606 | # The purpose of the label and of the branching condition is to | |
46607 | # speed up the sed processing (if there are no `@' at all, there | |
46608 | # is no need to browse any of the substitutions). | |
46609 | # These are the two extra sed commands mentioned above. | |
46610 | (echo ':t | |
46611 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
46612 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 46613 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 46614 | else |
ac1cb8d3 | 46615 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
46616 | fi |
46617 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
46618 | ac_beg=$ac_end | |
46619 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
46620 | fi | |
46621 | done | |
46622 | if test -z "$ac_sed_cmds"; then | |
46623 | ac_sed_cmds=cat | |
46624 | fi | |
46625 | fi # test -n "$CONFIG_FILES" | |
46626 | ||
46627 | _ACEOF | |
46628 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46629 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
46630 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
46631 | case $ac_file in | |
46632 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
46633 | cat >$tmp/stdin |
46634 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
46635 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 46636 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 46637 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
46638 | * ) ac_file_in=$ac_file.in ;; |
46639 | esac | |
46640 | ||
46641 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
46642 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
46643 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46644 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
46645 | X"$ac_file" : 'X\(//\)$' \| \ | |
46646 | X"$ac_file" : 'X\(/\)' \| \ | |
46647 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46648 | echo X"$ac_file" | |
46649 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46650 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46651 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46652 | /^X\(\/\).*/{ s//\1/; q; } | |
46653 | s/.*/./; q'` | |
46654 | { if $as_mkdir_p; then | |
46655 | mkdir -p "$ac_dir" | |
46656 | else | |
46657 | as_dir="$ac_dir" | |
46658 | as_dirs= | |
46659 | while test ! -d "$as_dir"; do | |
46660 | as_dirs="$as_dir $as_dirs" | |
46661 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
46662 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
46663 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
46664 | X"$as_dir" : 'X\(//\)$' \| \ | |
46665 | X"$as_dir" : 'X\(/\)' \| \ | |
46666 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
46667 | echo X"$as_dir" | |
46668 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
46669 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
46670 | /^X\(\/\/\)$/{ s//\1/; q; } | |
46671 | /^X\(\/\).*/{ s//\1/; q; } | |
46672 | s/.*/./; q'` | |
46673 | done | |
46674 | test ! -n "$as_dirs" || mkdir $as_dirs | |
46675 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
46676 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
46677 | { (exit 1); exit 1; }; }; } | |
46678 | ||
46679 | ac_builddir=. | |
46680 | ||
46681 | if test "$ac_dir" != .; then | |
46682 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
46683 | # A "../" for each directory in $ac_dir_suffix. | |
46684 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
46685 | else | |
46686 | ac_dir_suffix= ac_top_builddir= | |
46687 | fi | |
46688 | ||
46689 | case $srcdir in | |
46690 | .) # No --srcdir option. We are building in place. | |
46691 | ac_srcdir=. | |
46692 | if test -z "$ac_top_builddir"; then | |
46693 | ac_top_srcdir=. | |
46694 | else | |
46695 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
46696 | fi ;; | |
46697 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
46698 | ac_srcdir=$srcdir$ac_dir_suffix; | |
46699 | ac_top_srcdir=$srcdir ;; | |
46700 | *) # Relative path. | |
46701 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
46702 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
46703 | esac | |
ac1cb8d3 VS |
46704 | |
46705 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
46706 | # the directories may not exist. | |
46707 | case `pwd` in | |
46708 | .) ac_abs_builddir="$ac_dir";; | |
46709 | *) | |
46710 | case "$ac_dir" in | |
46711 | .) ac_abs_builddir=`pwd`;; | |
46712 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
46713 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
46714 | esac;; | |
46715 | esac | |
46716 | case $ac_abs_builddir in | |
46717 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46718 | *) | |
46719 | case ${ac_top_builddir}. in | |
46720 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
46721 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
46722 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
46723 | esac;; | |
46724 | esac | |
46725 | case $ac_abs_builddir in | |
46726 | .) ac_abs_srcdir=$ac_srcdir;; | |
46727 | *) | |
46728 | case $ac_srcdir in | |
46729 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
46730 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
46731 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
46732 | esac;; | |
46733 | esac | |
46734 | case $ac_abs_builddir in | |
46735 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46736 | *) | |
46737 | case $ac_top_srcdir in | |
46738 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
46739 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
46740 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
46741 | esac;; | |
46742 | esac | |
a848cd7e SC |
46743 | |
46744 | ||
46745 | case $INSTALL in | |
46746 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
46747 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
46748 | esac | |
46749 | ||
a848cd7e SC |
46750 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
46751 | # use $as_me), people would be surprised to read: | |
46752 | # /* config.h. Generated by config.status. */ | |
46753 | if test x"$ac_file" = x-; then | |
46754 | configure_input= | |
46755 | else | |
46756 | configure_input="$ac_file. " | |
46757 | fi | |
46758 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 46759 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
46760 | |
46761 | # First look for the input files in the build tree, otherwise in the | |
46762 | # src tree. | |
46763 | ac_file_inputs=`IFS=: | |
46764 | for f in $ac_file_in; do | |
46765 | case $f in | |
46766 | -) echo $tmp/stdin ;; | |
46767 | [\\/$]*) | |
ac1cb8d3 VS |
46768 | # Absolute (can't be DOS-style, as IFS=:) |
46769 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46770 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46771 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 46772 | echo "$f";; |
a848cd7e | 46773 | *) # Relative |
ac1cb8d3 VS |
46774 | if test -f "$f"; then |
46775 | # Build tree | |
46776 | echo "$f" | |
46777 | elif test -f "$srcdir/$f"; then | |
46778 | # Source tree | |
46779 | echo "$srcdir/$f" | |
46780 | else | |
46781 | # /dev/null tree | |
46782 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46783 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46784 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 46785 | fi;; |
a848cd7e SC |
46786 | esac |
46787 | done` || { (exit 1); exit 1; } | |
6ebeb4c7 VZ |
46788 | |
46789 | if test x"$ac_file" != x-; then | |
46790 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
46791 | echo "$as_me: creating $ac_file" >&6;} | |
46792 | rm -f "$ac_file" | |
46793 | fi | |
a848cd7e SC |
46794 | _ACEOF |
46795 | cat >>$CONFIG_STATUS <<_ACEOF | |
46796 | sed "$ac_vpsub | |
46797 | $extrasub | |
46798 | _ACEOF | |
46799 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46800 | :t | |
46801 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
46802 | s,@configure_input@,$configure_input,;t t | |
46803 | s,@srcdir@,$ac_srcdir,;t t | |
46804 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
46805 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
46806 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
46807 | s,@builddir@,$ac_builddir,;t t | |
46808 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
46809 | s,@top_builddir@,$ac_top_builddir,;t t | |
46810 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
46811 | s,@INSTALL@,$ac_INSTALL,;t t | |
46812 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
46813 | rm -f $tmp/stdin | |
46814 | if test x"$ac_file" != x-; then | |
46815 | mv $tmp/out $ac_file | |
46816 | else | |
46817 | cat $tmp/out | |
46818 | rm -f $tmp/out | |
46819 | fi | |
46820 | ||
ceec2216 RL |
46821 | # Run the commands associated with the file. |
46822 | case $ac_file in | |
46823 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
46824 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
46825 | esac | |
a848cd7e SC |
46826 | done |
46827 | _ACEOF | |
46828 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46829 | ||
46830 | # | |
46831 | # CONFIG_HEADER section. | |
46832 | # | |
46833 | ||
46834 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
46835 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
46836 | # | |
46837 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
46838 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
46839 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
46840 | ac_dC=' ' |
46841 | ac_dD=',;t' | |
46842 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 46843 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
46844 | ac_uB='$,\1#\2define\3' |
46845 | ac_uC=' ' | |
46846 | ac_uD=',;t' | |
46847 | ||
46848 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
46849 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
46850 | case $ac_file in | |
46851 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
46852 | cat >$tmp/stdin |
46853 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
46854 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 46855 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 46856 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
46857 | * ) ac_file_in=$ac_file.in ;; |
46858 | esac | |
46859 | ||
46860 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
46861 | echo "$as_me: creating $ac_file" >&6;} | |
46862 | ||
46863 | # First look for the input files in the build tree, otherwise in the | |
46864 | # src tree. | |
46865 | ac_file_inputs=`IFS=: | |
46866 | for f in $ac_file_in; do | |
46867 | case $f in | |
46868 | -) echo $tmp/stdin ;; | |
46869 | [\\/$]*) | |
ac1cb8d3 VS |
46870 | # Absolute (can't be DOS-style, as IFS=:) |
46871 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46872 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46873 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
46874 | # Do quote $f, to prevent DOS paths from being IFS'd. |
46875 | echo "$f";; | |
a848cd7e | 46876 | *) # Relative |
ac1cb8d3 VS |
46877 | if test -f "$f"; then |
46878 | # Build tree | |
46879 | echo "$f" | |
46880 | elif test -f "$srcdir/$f"; then | |
46881 | # Source tree | |
46882 | echo "$srcdir/$f" | |
46883 | else | |
46884 | # /dev/null tree | |
46885 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
46886 | echo "$as_me: error: cannot find input file: $f" >&2;} |
46887 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 46888 | fi;; |
a848cd7e SC |
46889 | esac |
46890 | done` || { (exit 1); exit 1; } | |
46891 | # Remove the trailing spaces. | |
ac1cb8d3 | 46892 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
46893 | |
46894 | _ACEOF | |
46895 | ||
46896 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
46897 | # `conftest.undefs', that substitutes the proper values into | |
46898 | # config.h.in to produce config.h. The first handles `#define' | |
46899 | # templates, and the second `#undef' templates. | |
46900 | # And first: Protect against being on the right side of a sed subst in | |
46901 | # config.status. Protect against being in an unquoted here document | |
46902 | # in config.status. | |
46903 | rm -f conftest.defines conftest.undefs | |
46904 | # Using a here document instead of a string reduces the quoting nightmare. | |
46905 | # Putting comments in sed scripts is not portable. | |
46906 | # | |
46907 | # `end' is used to avoid that the second main sed command (meant for | |
46908 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
46909 | # See the Autoconf documentation for `clear'. | |
46910 | cat >confdef2sed.sed <<\_ACEOF | |
46911 | s/[\\&,]/\\&/g | |
46912 | s,[\\$`],\\&,g | |
46913 | t clear | |
46914 | : clear | |
ac1cb8d3 | 46915 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 46916 | t end |
ac1cb8d3 | 46917 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
46918 | : end |
46919 | _ACEOF | |
46920 | # If some macros were called several times there might be several times | |
46921 | # the same #defines, which is useless. Nevertheless, we may not want to | |
46922 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
46923 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
46924 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
46925 | rm -f confdef2sed.sed | |
46926 | ||
46927 | # This sed command replaces #undef with comments. This is necessary, for | |
46928 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
46929 | # on some systems where configure will not decide to define it. | |
46930 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 46931 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
46932 | _ACEOF |
46933 | ||
46934 | # Break up conftest.defines because some shells have a limit on the size | |
46935 | # of here documents, and old seds have small limits too (100 cmds). | |
46936 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 46937 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
46938 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
46939 | echo ' :' >>$CONFIG_STATUS | |
46940 | rm -f conftest.tail | |
46941 | while grep . conftest.defines >/dev/null | |
46942 | do | |
46943 | # Write a limited-size here document to $tmp/defines.sed. | |
46944 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
46945 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 46946 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
46947 | # Work around the forget-to-reset-the-flag bug. |
46948 | echo 't clr' >>$CONFIG_STATUS | |
46949 | echo ': clr' >>$CONFIG_STATUS | |
46950 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
46951 | echo 'CEOF | |
46952 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
46953 | rm -f $tmp/in | |
46954 | mv $tmp/out $tmp/in | |
46955 | ' >>$CONFIG_STATUS | |
46956 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
46957 | rm -f conftest.defines | |
46958 | mv conftest.tail conftest.defines | |
46959 | done | |
46960 | rm -f conftest.defines | |
46961 | echo ' fi # grep' >>$CONFIG_STATUS | |
46962 | echo >>$CONFIG_STATUS | |
46963 | ||
46964 | # Break up conftest.undefs because some shells have a limit on the size | |
46965 | # of here documents, and old seds have small limits too (100 cmds). | |
46966 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
46967 | rm -f conftest.tail | |
46968 | while grep . conftest.undefs >/dev/null | |
46969 | do | |
46970 | # Write a limited-size here document to $tmp/undefs.sed. | |
46971 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
46972 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 46973 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
46974 | # Work around the forget-to-reset-the-flag bug. |
46975 | echo 't clr' >>$CONFIG_STATUS | |
46976 | echo ': clr' >>$CONFIG_STATUS | |
46977 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
46978 | echo 'CEOF | |
46979 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
46980 | rm -f $tmp/in | |
46981 | mv $tmp/out $tmp/in | |
46982 | ' >>$CONFIG_STATUS | |
46983 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
46984 | rm -f conftest.undefs | |
46985 | mv conftest.tail conftest.undefs | |
46986 | done | |
46987 | rm -f conftest.undefs | |
46988 | ||
46989 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46990 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
46991 | # use $as_me), people would be surprised to read: | |
46992 | # /* config.h. Generated by config.status. */ | |
46993 | if test x"$ac_file" = x-; then | |
46994 | echo "/* Generated by configure. */" >$tmp/config.h | |
46995 | else | |
46996 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
46997 | fi | |
46998 | cat $tmp/in >>$tmp/config.h | |
46999 | rm -f $tmp/in | |
47000 | if test x"$ac_file" != x-; then | |
47001 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
47002 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
47003 | echo "$as_me: $ac_file is unchanged" >&6;} | |
47004 | else | |
47005 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
47006 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47007 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
47008 | X"$ac_file" : 'X\(//\)$' \| \ | |
47009 | X"$ac_file" : 'X\(/\)' \| \ | |
47010 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47011 | echo X"$ac_file" | |
47012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47013 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47014 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47015 | /^X\(\/\).*/{ s//\1/; q; } | |
47016 | s/.*/./; q'` | |
47017 | { if $as_mkdir_p; then | |
47018 | mkdir -p "$ac_dir" | |
47019 | else | |
47020 | as_dir="$ac_dir" | |
47021 | as_dirs= | |
47022 | while test ! -d "$as_dir"; do | |
47023 | as_dirs="$as_dir $as_dirs" | |
47024 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47025 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47026 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47027 | X"$as_dir" : 'X\(//\)$' \| \ | |
47028 | X"$as_dir" : 'X\(/\)' \| \ | |
47029 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47030 | echo X"$as_dir" | |
47031 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47032 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47033 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47034 | /^X\(\/\).*/{ s//\1/; q; } | |
47035 | s/.*/./; q'` | |
47036 | done | |
47037 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47038 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47039 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47040 | { (exit 1); exit 1; }; }; } | |
47041 | ||
47042 | rm -f $ac_file | |
47043 | mv $tmp/config.h $ac_file | |
47044 | fi | |
47045 | else | |
47046 | cat $tmp/config.h | |
47047 | rm -f $tmp/config.h | |
47048 | fi | |
47049 | done | |
47050 | _ACEOF | |
47051 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47052 | ||
47053 | # | |
47054 | # CONFIG_COMMANDS section. | |
47055 | # | |
47056 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
47057 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
47058 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47059 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
47060 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47061 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
47062 | X"$ac_dest" : 'X\(//\)$' \| \ | |
47063 | X"$ac_dest" : 'X\(/\)' \| \ | |
47064 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47065 | echo X"$ac_dest" | |
47066 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47067 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47068 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47069 | /^X\(\/\).*/{ s//\1/; q; } | |
47070 | s/.*/./; q'` | |
ac1cb8d3 VS |
47071 | { if $as_mkdir_p; then |
47072 | mkdir -p "$ac_dir" | |
47073 | else | |
47074 | as_dir="$ac_dir" | |
47075 | as_dirs= | |
47076 | while test ! -d "$as_dir"; do | |
47077 | as_dirs="$as_dir $as_dirs" | |
47078 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47079 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
47080 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
47081 | X"$as_dir" : 'X\(//\)$' \| \ | |
47082 | X"$as_dir" : 'X\(/\)' \| \ | |
47083 | . : '\(.\)' 2>/dev/null || | |
47084 | echo X"$as_dir" | | |
47085 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47086 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47087 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47088 | /^X\(\/\).*/{ s//\1/; q; } | |
47089 | s/.*/./; q'` | |
47090 | done | |
47091 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47092 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47093 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47094 | { (exit 1); exit 1; }; }; } | |
47095 | ||
a848cd7e SC |
47096 | ac_builddir=. |
47097 | ||
47098 | if test "$ac_dir" != .; then | |
47099 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47100 | # A "../" for each directory in $ac_dir_suffix. | |
47101 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47102 | else | |
47103 | ac_dir_suffix= ac_top_builddir= | |
47104 | fi | |
47105 | ||
47106 | case $srcdir in | |
47107 | .) # No --srcdir option. We are building in place. | |
47108 | ac_srcdir=. | |
47109 | if test -z "$ac_top_builddir"; then | |
47110 | ac_top_srcdir=. | |
47111 | else | |
47112 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47113 | fi ;; | |
47114 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47115 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47116 | ac_top_srcdir=$srcdir ;; | |
47117 | *) # Relative path. | |
47118 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47119 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47120 | esac | |
ac1cb8d3 VS |
47121 | |
47122 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47123 | # the directories may not exist. | |
47124 | case `pwd` in | |
47125 | .) ac_abs_builddir="$ac_dir";; | |
47126 | *) | |
47127 | case "$ac_dir" in | |
47128 | .) ac_abs_builddir=`pwd`;; | |
47129 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47130 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47131 | esac;; | |
47132 | esac | |
47133 | case $ac_abs_builddir in | |
47134 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47135 | *) | |
47136 | case ${ac_top_builddir}. in | |
47137 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47138 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47139 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47140 | esac;; | |
47141 | esac | |
47142 | case $ac_abs_builddir in | |
47143 | .) ac_abs_srcdir=$ac_srcdir;; | |
47144 | *) | |
47145 | case $ac_srcdir in | |
47146 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47147 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47148 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47149 | esac;; | |
47150 | esac | |
47151 | case $ac_abs_builddir in | |
47152 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47153 | *) | |
47154 | case $ac_top_srcdir in | |
47155 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47156 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47157 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47158 | esac;; | |
47159 | esac | |
a848cd7e SC |
47160 | |
47161 | ||
47162 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
47163 | echo "$as_me: executing $ac_dest commands" >&6;} | |
47164 | case $ac_dest in | |
ceec2216 RL |
47165 | wx-config ) rm -f wx-config |
47166 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
47167 | ;; | |
a848cd7e SC |
47168 | esac |
47169 | done | |
47170 | _ACEOF | |
47171 | ||
47172 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47173 | ||
47174 | { (exit 0); exit 0; } | |
47175 | _ACEOF | |
47176 | chmod +x $CONFIG_STATUS | |
47177 | ac_clean_files=$ac_clean_files_save | |
47178 | ||
47179 | ||
47180 | # configure is writing to config.log, and then calls config.status. | |
47181 | # config.status does its own redirection, appending to config.log. | |
47182 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
47183 | # by configure, so config.status won't be able to write to it; its | |
47184 | # output is simply discarded. So we exec the FD to /dev/null, | |
47185 | # effectively closing config.log, so it can be properly (re)opened and | |
47186 | # appended to by config.status. When coming back to configure, we | |
47187 | # need to make the FD available again. | |
47188 | if test "$no_create" != yes; then | |
47189 | ac_cs_success=: | |
47190 | ac_config_status_args= | |
47191 | test "$silent" = yes && | |
47192 | ac_config_status_args="$ac_config_status_args --quiet" | |
47193 | exec 5>/dev/null | |
47194 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
47195 | exec 5>>config.log | |
47196 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
47197 | # would make configure fail if this is the last instruction. | |
47198 | $ac_cs_success || { (exit 1); exit 1; } | |
47199 | fi | |
47200 | ||
47201 | # | |
47202 | # CONFIG_SUBDIRS section. | |
47203 | # | |
47204 | if test "$no_recursion" != yes; then | |
47205 | ||
47206 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
47207 | ac_sub_configure_args= | |
47208 | ac_prev= | |
47209 | for ac_arg in $ac_configure_args; do | |
47210 | if test -n "$ac_prev"; then | |
47211 | ac_prev= | |
47212 | continue | |
47213 | fi | |
47214 | case $ac_arg in | |
47215 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
47216 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
47217 | ac_prev=cache_file ;; | |
47218 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
47219 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
47220 | | --c=*) | |
47221 | ;; | |
47222 | --config-cache | -C) | |
47223 | ;; | |
47224 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
47225 | ac_prev=srcdir ;; | |
47226 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
47227 | ;; | |
47228 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
47229 | ac_prev=prefix ;; | |
47230 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
47231 | ;; | |
47232 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
47233 | esac | |
47234 | done | |
47235 | ||
47236 | # Always prepend --prefix to ensure using the same prefix | |
47237 | # in subdir configurations. | |
47238 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
47239 | ||
47240 | ac_popdir=`pwd` | |
47241 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
47242 | ||
47243 | # Do not complain, so a configure script can configure whichever | |
47244 | # parts of a large source tree are present. | |
47245 | test -d $srcdir/$ac_dir || continue | |
47246 | ||
47247 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
47248 | echo "$as_me: configuring in $ac_dir" >&6;} | |
47249 | { if $as_mkdir_p; then | |
47250 | mkdir -p "$ac_dir" | |
47251 | else | |
47252 | as_dir="$ac_dir" | |
47253 | as_dirs= | |
47254 | while test ! -d "$as_dir"; do | |
47255 | as_dirs="$as_dir $as_dirs" | |
47256 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47257 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47258 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47259 | X"$as_dir" : 'X\(//\)$' \| \ | |
47260 | X"$as_dir" : 'X\(/\)' \| \ | |
47261 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47262 | echo X"$as_dir" | |
47263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47264 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47265 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47266 | /^X\(\/\).*/{ s//\1/; q; } | |
47267 | s/.*/./; q'` | |
47268 | done | |
47269 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47270 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47271 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47272 | { (exit 1); exit 1; }; }; } | |
47273 | ||
47274 | ac_builddir=. | |
47275 | ||
47276 | if test "$ac_dir" != .; then | |
47277 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47278 | # A "../" for each directory in $ac_dir_suffix. | |
47279 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47280 | else | |
47281 | ac_dir_suffix= ac_top_builddir= | |
47282 | fi | |
47283 | ||
47284 | case $srcdir in | |
47285 | .) # No --srcdir option. We are building in place. | |
47286 | ac_srcdir=. | |
47287 | if test -z "$ac_top_builddir"; then | |
47288 | ac_top_srcdir=. | |
47289 | else | |
47290 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47291 | fi ;; | |
47292 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47293 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47294 | ac_top_srcdir=$srcdir ;; | |
47295 | *) # Relative path. | |
47296 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47297 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47298 | esac | |
ac1cb8d3 VS |
47299 | |
47300 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47301 | # the directories may not exist. | |
47302 | case `pwd` in | |
47303 | .) ac_abs_builddir="$ac_dir";; | |
47304 | *) | |
47305 | case "$ac_dir" in | |
47306 | .) ac_abs_builddir=`pwd`;; | |
47307 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47308 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47309 | esac;; | |
47310 | esac | |
47311 | case $ac_abs_builddir in | |
47312 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47313 | *) | |
47314 | case ${ac_top_builddir}. in | |
47315 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47316 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47317 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47318 | esac;; | |
47319 | esac | |
47320 | case $ac_abs_builddir in | |
47321 | .) ac_abs_srcdir=$ac_srcdir;; | |
47322 | *) | |
47323 | case $ac_srcdir in | |
47324 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47325 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47326 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47327 | esac;; | |
47328 | esac | |
47329 | case $ac_abs_builddir in | |
47330 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47331 | *) | |
47332 | case $ac_top_srcdir in | |
47333 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47334 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47335 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47336 | esac;; | |
47337 | esac | |
a848cd7e SC |
47338 | |
47339 | ||
47340 | cd $ac_dir | |
47341 | ||
47342 | # Check for guested configure; otherwise get Cygnus style configure. | |
47343 | if test -f $ac_srcdir/configure.gnu; then | |
47344 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
47345 | elif test -f $ac_srcdir/configure; then | |
47346 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
47347 | elif test -f $ac_srcdir/configure.in; then | |
47348 | ac_sub_configure=$ac_configure | |
47349 | else | |
47350 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
47351 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
47352 | ac_sub_configure= | |
47353 | fi | |
47354 | ||
47355 | # The recursion is here. | |
47356 | if test -n "$ac_sub_configure"; then | |
47357 | # Make the cache file name correct relative to the subdirectory. | |
47358 | case $cache_file in | |
47359 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
47360 | *) # Relative path. | |
ac1cb8d3 | 47361 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
47362 | esac |
47363 | ||
47364 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
47365 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
47366 | # The eval makes quoting arguments work. | |
47367 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
47368 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
47369 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
47370 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
47371 | { (exit 1); exit 1; }; } | |
47372 | fi | |
47373 | ||
6ebeb4c7 | 47374 | cd "$ac_popdir" |
a848cd7e SC |
47375 | done |
47376 | fi | |
47377 | ||
47378 | ||
47379 | echo | |
77ffb593 | 47380 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 47381 | echo "" |
4d4ff94c | 47382 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 47383 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 47384 | |
77ffb593 JS |
47385 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
47386 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
47387 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 47388 | |
77ffb593 JS |
47389 | echo " What level of wxWidgets compatibility should be enabled?" |
47390 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
47391 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 47392 | |
77ffb593 | 47393 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
47394 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
47395 | echo " png ${wxUSE_LIBPNG-none}" | |
47396 | echo " regex ${wxUSE_REGEX}" | |
47397 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
47398 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
47399 | echo " xpm ${wxUSE_LIBXPM-none}" | |
47400 | fi | |
47401 | echo " zlib ${wxUSE_ZLIB}" | |
47402 | echo " odbc ${wxUSE_ODBC}" | |
47403 | echo " expat ${wxUSE_EXPAT}" | |
47404 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
47405 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 47406 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
47407 | |
47408 | echo "" | |
47409 |