]>
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. | |
81f90336 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4. |
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' | |
81f90336 MW |
273 | PACKAGE_VERSION='2.5.4' |
274 | PACKAGE_STRING='wxWidgets 2.5.4' | |
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" | |
0b78747f | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_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_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_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_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
81f90336 | 797 | \`configure' configures wxWidgets 2.5.4 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 | |
81f90336 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.4:";; |
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 |
9f45f08e | 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 |
a848cd7e | 907 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
911 | --enable-dialupman use dialup network classes | |
912 | --enable-dynlib use wxLibrary class for DLL loading | |
913 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
914 | --enable-exceptions build exception-safe library | |
915 | --enable-ffile use wxFFile class | |
916 | --enable-file use wxFile class | |
917 | --enable-filesystem use virtual file systems classes | |
918 | --enable-fontmap use font encodings conversion classes | |
919 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
920 | --enable-fs_zip use virtual ZIP filesystems | |
921 | --enable-geometry use geometry class | |
922 | --enable-log use logging system | |
923 | --enable-longlong use wxLongLong class | |
924 | --enable-mimetype use wxMimeTypesManager | |
925 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
926 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 927 | --enable-std_iostreams use standard C++ stream classes |
07158944 | 928 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 929 | --enable-stopwatch use wxStopWatch class |
07158944 | 930 | --enable-streams use wxStream etc classes |
a848cd7e SC |
931 | --enable-sysoptions use wxSystemOptions |
932 | --enable-textbuf use wxTextBuffer class | |
933 | --enable-textfile use wxTextFile class | |
934 | --enable-timer use wxTimer class | |
935 | --enable-unicode compile wxString with Unicode support | |
936 | --enable-sound use wxSound class | |
3b57de8b | 937 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 938 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 939 | --enable-zipstream use wxZip streams |
a848cd7e SC |
940 | --enable-url use wxURL class |
941 | --enable-protocol use wxProtocol class | |
942 | --enable-protocol-http HTTP support in wxProtocol | |
943 | --enable-protocol-ftp FTP support in wxProtocol | |
944 | --enable-protocol-file FILE support in wxProtocol | |
945 | --enable-threads use threads | |
946 | --enable-docview use document view architecture | |
947 | --enable-help use help subsystem | |
948 | --enable-mshtmlhelp use MS HTML Help (win32) | |
949 | --enable-html use wxHTML sub-library | |
950 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 951 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
952 | --enable-constraints use layout-constraints system |
953 | --enable-printarch use printing architecture | |
954 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 955 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
956 | --enable-loggui use standard GUI logger |
957 | --enable-logwin use wxLogWindow | |
958 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 959 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
960 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
961 | --enable-prologio not available; see contrib | |
962 | --enable-resources not available; see contrib | |
963 | --enable-clipboard use wxClipboard class | |
964 | --enable-dnd use Drag'n'Drop classes | |
965 | --enable-metafile use win32 metafiles | |
966 | --enable-controls use all usual controls | |
967 | --enable-accel use accelerators | |
968 | --enable-button use wxButton class | |
969 | --enable-bmpbutton use wxBitmapButton class | |
970 | --enable-calendar use wxCalendarCtrl class | |
971 | --enable-caret use wxCaret class | |
972 | --enable-checkbox use wxCheckBox class | |
973 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
974 | --enable-choice use wxChoice class | |
92bbdbcd | 975 | --enable-choicebook use wxChoicebook class |
a848cd7e | 976 | --enable-combobox use wxComboBox class |
da98e9be | 977 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
978 | --enable-display use wxDisplay class |
979 | --enable-gauge use wxGauge class | |
980 | --enable-grid use wxGrid class | |
981 | --enable-imaglist use wxImageList class | |
982 | --enable-listbook use wxListbook class | |
983 | --enable-listbox use wxListBox class | |
984 | --enable-listctrl use wxListCtrl class | |
985 | --enable-notebook use wxNotebook class | |
986 | --enable-radiobox use wxRadioBox class | |
987 | --enable-radiobtn use wxRadioButton class | |
988 | --enable-sash use wxSashWindow class | |
989 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
990 | --enable-slider use wxSlider class | |
991 | --enable-spinbtn use wxSpinButton class | |
992 | --enable-spinctrl use wxSpinCtrl class | |
993 | --enable-splitter use wxSplitterWindow class | |
994 | --enable-statbmp use wxStaticBitmap class | |
995 | --enable-statbox use wxStaticBox class | |
996 | --enable-statline use wxStaticLine class | |
997 | --enable-stattext use wxStaticText class | |
998 | --enable-statusbar use wxStatusBar class | |
999 | --enable-tabdialog use wxTabControl class | |
1000 | --enable-textctrl use wxTextCtrl class | |
1001 | --enable-togglebtn use wxToggleButton class | |
1002 | --enable-toolbar use wxToolBar class | |
1003 | --enable-tbarnative use native wxToolBar class | |
1004 | --enable-tbarsmpl use wxToolBarSimple class | |
1005 | --enable-treectrl use wxTreeCtrl class | |
1006 | --enable-tipwindow use wxTipWindow class | |
1007 | --enable-popupwin use wxPopUpWindow class | |
1008 | --enable-commondlg use all common dialogs | |
1009 | --enable-choicedlg use wxChoiceDialog | |
1010 | --enable-coldlg use wxColourDialog | |
1011 | --enable-filedlg use wxFileDialog | |
1012 | --enable-finddlg use wxFindReplaceDialog | |
1013 | --enable-fontdlg use wxFontDialog | |
1014 | --enable-dirdlg use wxDirDialog | |
1015 | --enable-msgdlg use wxMessageDialog | |
1016 | --enable-numberdlg use wxNumberEntryDialog | |
1017 | --enable-splash use wxSplashScreen | |
1018 | --enable-textdlg use wxTextDialog | |
1019 | --enable-tipdlg use startup tips | |
1020 | --enable-progressdlg use wxProgressDialog | |
1021 | --enable-wizarddlg use wxWizard | |
1022 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1023 | --enable-miniframe use wxMiniFrame class | |
1024 | --enable-tooltips use wxToolTip class | |
1025 | --enable-splines use spline drawing code | |
1026 | --enable-validators use wxValidator and derived classes | |
1027 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1028 | --enable-joystick use wxJoystick |
a848cd7e SC |
1029 | --enable-metafiles use wxMetaFile (Windows only) |
1030 | --enable-dragimage use wxDragImage | |
1031 | --enable-accessibility enable accessibility support | |
1032 | --enable-palette use wxPalette class | |
1033 | --enable-image use wxImage class | |
1034 | --enable-gif use gif images (GIF file format) | |
1035 | --enable-pcx use pcx images (PCX file format) | |
1036 | --enable-iff use iff images (IFF file format) | |
1037 | --enable-pnm use pnm images (PNM file format) | |
1038 | --enable-xpm use xpm images (XPM file format) | |
1039 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1040 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1041 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1042 | --disable-largefile omit support for large files | |
1043 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1044 | --disable-gtktest Do not try to compile and run a test GTK program | |
1045 | --disable-sdltest Do not try to compile and run a test SDL program | |
1046 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1047 | --disable-precomp-headers |
1048 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1049 | |
1050 | Optional Packages: | |
1051 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1052 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1053 | --with-gtk use GTK+ | |
1054 | --with-motif use Motif/Lesstif | |
1055 | --with-mac use Mac OS X | |
1056 | --with-cocoa use Cocoa | |
1057 | --with-wine use Wine | |
1058 | --with-msw use MS-Windows | |
1059 | --with-pm use OS/2 Presentation Manager | |
1060 | --with-mgl use SciTech MGL | |
1061 | --with-microwin use MicroWindows | |
1062 | --with-x11 use X11 | |
1063 | --with-libpng use libpng (PNG image format) | |
1064 | --with-libjpeg use libjpeg (JPEG file format) | |
1065 | --with-libtiff use libtiff (TIFF file format) | |
1066 | --with-libxpm use libxpm (XPM file format) | |
1067 | --with-libmspack use libmspack (CHM help files loading) | |
1068 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1069 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1070 | --with-opengl use OpenGL (or Mesa) |
1071 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1072 | --with-regex enable support for wxRegEx class | |
1073 | --with-zlib use zlib for LZW compression | |
1074 | --with-odbc use the IODBC and wxODBC classes | |
1075 | --with-expat enable XML support using expat parser | |
ceec2216 | 1076 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1077 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1078 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1079 | --with-x use the X Window System | |
1080 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1081 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1082 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1083 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1084 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1085 | ||
1086 | Some influential environment variables: | |
dcc1b6ad VS |
1087 | CC C compiler command |
1088 | CFLAGS C compiler flags | |
1089 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1090 | nonstandard directory <lib dir> | |
1091 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1092 | headers in a nonstandard directory <include dir> | |
1093 | CPP C preprocessor | |
1094 | CXX C++ compiler command | |
1095 | CXXFLAGS C++ compiler flags | |
1096 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1097 | |
1098 | Use these variables to override the choices made by `configure' or to help | |
1099 | it to find libraries and programs with nonstandard names/locations. | |
1100 | ||
77ffb593 | 1101 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1102 | _ACEOF |
1103 | fi | |
1104 | ||
1105 | if test "$ac_init_help" = "recursive"; then | |
1106 | # If there are subdirs, report their specific --help. | |
1107 | ac_popdir=`pwd` | |
1108 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1109 | test -d $ac_dir || continue | |
1110 | ac_builddir=. | |
1111 | ||
1112 | if test "$ac_dir" != .; then | |
1113 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1114 | # A "../" for each directory in $ac_dir_suffix. | |
1115 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1116 | else | |
1117 | ac_dir_suffix= ac_top_builddir= | |
1118 | fi | |
1119 | ||
1120 | case $srcdir in | |
1121 | .) # No --srcdir option. We are building in place. | |
1122 | ac_srcdir=. | |
1123 | if test -z "$ac_top_builddir"; then | |
1124 | ac_top_srcdir=. | |
1125 | else | |
1126 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1127 | fi ;; | |
1128 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1129 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1130 | ac_top_srcdir=$srcdir ;; | |
1131 | *) # Relative path. | |
1132 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1133 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1134 | esac | |
ac1cb8d3 VS |
1135 | |
1136 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1137 | # the directories may not exist. | |
1138 | case `pwd` in | |
1139 | .) ac_abs_builddir="$ac_dir";; | |
1140 | *) | |
1141 | case "$ac_dir" in | |
1142 | .) ac_abs_builddir=`pwd`;; | |
1143 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1144 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1145 | esac;; | |
1146 | esac | |
1147 | case $ac_abs_builddir in | |
1148 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1149 | *) | |
1150 | case ${ac_top_builddir}. in | |
1151 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1152 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1153 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1154 | esac;; | |
1155 | esac | |
1156 | case $ac_abs_builddir in | |
1157 | .) ac_abs_srcdir=$ac_srcdir;; | |
1158 | *) | |
1159 | case $ac_srcdir in | |
1160 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1161 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1162 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1163 | esac;; | |
1164 | esac | |
1165 | case $ac_abs_builddir in | |
1166 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1167 | *) | |
1168 | case $ac_top_srcdir in | |
1169 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1170 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1171 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1172 | esac;; | |
1173 | esac | |
a848cd7e SC |
1174 | |
1175 | cd $ac_dir | |
1176 | # Check for guested configure; otherwise get Cygnus style configure. | |
1177 | if test -f $ac_srcdir/configure.gnu; then | |
1178 | echo | |
1179 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1180 | elif test -f $ac_srcdir/configure; then | |
1181 | echo | |
1182 | $SHELL $ac_srcdir/configure --help=recursive | |
1183 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1184 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1185 | echo |
1186 | $ac_configure --help | |
1187 | else | |
1188 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1189 | fi | |
07158944 | 1190 | cd "$ac_popdir" |
a848cd7e SC |
1191 | done |
1192 | fi | |
1193 | ||
1194 | test -n "$ac_init_help" && exit 0 | |
1195 | if $ac_init_version; then | |
1196 | cat <<\_ACEOF | |
81f90336 | 1197 | wxWidgets configure 2.5.4 |
ac1cb8d3 | 1198 | generated by GNU Autoconf 2.59 |
a848cd7e | 1199 | |
ac1cb8d3 | 1200 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1201 | This configure script is free software; the Free Software Foundation |
1202 | gives unlimited permission to copy, distribute and modify it. | |
1203 | _ACEOF | |
1204 | exit 0 | |
1205 | fi | |
1206 | exec 5>config.log | |
1207 | cat >&5 <<_ACEOF | |
1208 | This file contains any messages produced by compilers while | |
1209 | running configure, to aid debugging if configure makes a mistake. | |
1210 | ||
81f90336 | 1211 | It was created by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 1212 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1213 | |
1214 | $ $0 $@ | |
1215 | ||
1216 | _ACEOF | |
1217 | { | |
1218 | cat <<_ASUNAME | |
1219 | ## --------- ## | |
1220 | ## Platform. ## | |
1221 | ## --------- ## | |
1222 | ||
1223 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1224 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1225 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1226 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1227 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1228 | ||
1229 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1230 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1231 | ||
1232 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1233 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1234 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1235 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1236 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1237 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1238 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1239 | ||
1240 | _ASUNAME | |
1241 | ||
1242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1243 | for as_dir in $PATH | |
1244 | do | |
1245 | IFS=$as_save_IFS | |
1246 | test -z "$as_dir" && as_dir=. | |
1247 | echo "PATH: $as_dir" | |
1248 | done | |
1249 | ||
1250 | } >&5 | |
1251 | ||
1252 | cat >&5 <<_ACEOF | |
1253 | ||
1254 | ||
1255 | ## ----------- ## | |
1256 | ## Core tests. ## | |
1257 | ## ----------- ## | |
1258 | ||
1259 | _ACEOF | |
1260 | ||
1261 | ||
1262 | # Keep a trace of the command line. | |
1263 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1264 | # Strip out --silent because we don't want to record it for future runs. | |
1265 | # Also quote any args containing shell meta-characters. | |
1266 | # Make two passes to allow for proper duplicate-argument suppression. | |
1267 | ac_configure_args= | |
1268 | ac_configure_args0= | |
1269 | ac_configure_args1= | |
1270 | ac_sep= | |
1271 | ac_must_keep_next=false | |
1272 | for ac_pass in 1 2 | |
1273 | do | |
1274 | for ac_arg | |
1275 | do | |
1276 | case $ac_arg in | |
1277 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1278 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1279 | | -silent | --silent | --silen | --sile | --sil) | |
1280 | continue ;; | |
1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1282 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1283 | esac | |
1284 | case $ac_pass in | |
1285 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1286 | 2) | |
1287 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1288 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1289 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1290 | else |
ac1cb8d3 VS |
1291 | case $ac_arg in |
1292 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1293 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1294 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1295 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1296 | case "$ac_configure_args0 " in | |
1297 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1298 | esac | |
1299 | ;; | |
1300 | -* ) ac_must_keep_next=true ;; | |
1301 | esac | |
a848cd7e SC |
1302 | fi |
1303 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1304 | # Get rid of the leading space. | |
1305 | ac_sep=" " | |
1306 | ;; | |
1307 | esac | |
1308 | done | |
1309 | done | |
1310 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1311 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1312 | ||
1313 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1314 | # config.log. We remove comments because anyway the quotes in there | |
1315 | # would cause problems or look ugly. | |
1316 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1317 | # such as our DU 5.0 friend, will then `close' the trap. | |
1318 | trap 'exit_status=$? | |
1319 | # Save into config.log some information that might help in debugging. | |
1320 | { | |
1321 | echo | |
1322 | ||
1323 | cat <<\_ASBOX | |
1324 | ## ---------------- ## | |
1325 | ## Cache variables. ## | |
1326 | ## ---------------- ## | |
1327 | _ASBOX | |
1328 | echo | |
1329 | # The following way of writing the cache mishandles newlines in values, | |
1330 | { | |
1331 | (set) 2>&1 | | |
1332 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1333 | *ac_space=\ *) | |
1334 | sed -n \ | |
ac1cb8d3 VS |
1335 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1336 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1337 | ;; |
1338 | *) | |
1339 | sed -n \ | |
ac1cb8d3 | 1340 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1341 | ;; |
1342 | esac; | |
1343 | } | |
1344 | echo | |
1345 | ||
1346 | cat <<\_ASBOX | |
1347 | ## ----------------- ## | |
1348 | ## Output variables. ## | |
1349 | ## ----------------- ## | |
1350 | _ASBOX | |
1351 | echo | |
1352 | for ac_var in $ac_subst_vars | |
1353 | do | |
1354 | eval ac_val=$`echo $ac_var` | |
1355 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1356 | done | sort | |
1357 | echo | |
1358 | ||
1359 | if test -n "$ac_subst_files"; then | |
1360 | cat <<\_ASBOX | |
1361 | ## ------------- ## | |
1362 | ## Output files. ## | |
1363 | ## ------------- ## | |
1364 | _ASBOX | |
1365 | echo | |
1366 | for ac_var in $ac_subst_files | |
1367 | do | |
1368 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1369 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1370 | done | sort |
1371 | echo | |
1372 | fi | |
1373 | ||
1374 | if test -s confdefs.h; then | |
1375 | cat <<\_ASBOX | |
1376 | ## ----------- ## | |
1377 | ## confdefs.h. ## | |
1378 | ## ----------- ## | |
1379 | _ASBOX | |
1380 | echo | |
1381 | sed "/^$/d" confdefs.h | sort | |
1382 | echo | |
1383 | fi | |
1384 | test "$ac_signal" != 0 && | |
1385 | echo "$as_me: caught signal $ac_signal" | |
1386 | echo "$as_me: exit $exit_status" | |
1387 | } >&5 | |
ac1cb8d3 | 1388 | rm -f core *.core && |
a848cd7e SC |
1389 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1390 | exit $exit_status | |
1391 | ' 0 | |
1392 | for ac_signal in 1 2 13 15; do | |
1393 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1394 | done | |
1395 | ac_signal=0 | |
1396 | ||
1397 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1398 | rm -rf conftest* confdefs.h | |
1399 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1400 | echo >confdefs.h | |
1401 | ||
1402 | # Predefined preprocessor variables. | |
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | cat >>confdefs.h <<_ACEOF | |
1420 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1421 | _ACEOF | |
1422 | ||
1423 | ||
1424 | cat >>confdefs.h <<_ACEOF | |
1425 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1426 | _ACEOF | |
1427 | ||
1428 | ||
1429 | # Let the site file select an alternate cache file if it wants to. | |
1430 | # Prefer explicitly selected file to automatically selected ones. | |
1431 | if test -z "$CONFIG_SITE"; then | |
1432 | if test "x$prefix" != xNONE; then | |
1433 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1434 | else | |
1435 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1436 | fi | |
1437 | fi | |
1438 | for ac_site_file in $CONFIG_SITE; do | |
1439 | if test -r "$ac_site_file"; then | |
1440 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1441 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1442 | sed 's/^/| /' "$ac_site_file" >&5 | |
1443 | . "$ac_site_file" | |
1444 | fi | |
1445 | done | |
1446 | ||
1447 | if test -r "$cache_file"; then | |
1448 | # Some versions of bash will fail to source /dev/null (special | |
1449 | # files actually), so we avoid doing that. | |
1450 | if test -f "$cache_file"; then | |
1451 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1452 | echo "$as_me: loading cache $cache_file" >&6;} | |
1453 | case $cache_file in | |
1454 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1455 | *) . ./$cache_file;; | |
1456 | esac | |
1457 | fi | |
1458 | else | |
1459 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1460 | echo "$as_me: creating cache $cache_file" >&6;} | |
1461 | >$cache_file | |
1462 | fi | |
1463 | ||
1464 | # Check that the precious variables saved in the cache have kept the same | |
1465 | # value. | |
1466 | ac_cache_corrupted=false | |
1467 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1468 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1469 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1470 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1471 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1472 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1473 | case $ac_old_set,$ac_new_set in | |
1474 | set,) | |
1475 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1476 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1477 | ac_cache_corrupted=: ;; | |
1478 | ,set) | |
1479 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1480 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1481 | ac_cache_corrupted=: ;; | |
1482 | ,);; | |
1483 | *) | |
1484 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1485 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1486 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1487 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1488 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1489 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1490 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1491 | ac_cache_corrupted=: |
a848cd7e SC |
1492 | fi;; |
1493 | esac | |
1494 | # Pass precious variables to config.status. | |
1495 | if test "$ac_new_set" = set; then | |
1496 | case $ac_new_val in | |
1497 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1498 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1499 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1500 | esac | |
1501 | case " $ac_configure_args " in | |
1502 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1503 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1504 | esac | |
1505 | fi | |
1506 | done | |
1507 | if $ac_cache_corrupted; then | |
1508 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1509 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1510 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1511 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1512 | { (exit 1); exit 1; }; } | |
1513 | fi | |
1514 | ||
1515 | ac_ext=c | |
1516 | ac_cpp='$CPP $CPPFLAGS' | |
1517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ac_aux_dir= | |
1551 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1552 | if test -f $ac_dir/install-sh; then | |
1553 | ac_aux_dir=$ac_dir | |
1554 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1555 | break | |
1556 | elif 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/shtool; then | |
1561 | ac_aux_dir=$ac_dir | |
1562 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1563 | break | |
1564 | fi | |
1565 | done | |
1566 | if test -z "$ac_aux_dir"; then | |
1567 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1568 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1569 | { (exit 1); exit 1; }; } | |
1570 | fi | |
1571 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1572 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1573 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1574 | ||
1575 | # Make sure we can run config.sub. | |
1576 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1577 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1578 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1579 | { (exit 1); exit 1; }; } | |
1580 | ||
1581 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1582 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1583 | if test "${ac_cv_build+set}" = set; then | |
1584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1585 | else | |
1586 | ac_cv_build_alias=$build_alias | |
1587 | test -z "$ac_cv_build_alias" && | |
1588 | ac_cv_build_alias=`$ac_config_guess` | |
1589 | test -z "$ac_cv_build_alias" && | |
1590 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1591 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1592 | { (exit 1); exit 1; }; } | |
1593 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1594 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1595 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1596 | { (exit 1); exit 1; }; } | |
1597 | ||
1598 | fi | |
1599 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1600 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1601 | build=$ac_cv_build | |
1602 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1603 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1604 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1605 | ||
1606 | ||
1607 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1608 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1609 | if test "${ac_cv_host+set}" = set; then | |
1610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1611 | else | |
1612 | ac_cv_host_alias=$host_alias | |
1613 | test -z "$ac_cv_host_alias" && | |
1614 | ac_cv_host_alias=$ac_cv_build_alias | |
1615 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1616 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1617 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1618 | { (exit 1); exit 1; }; } | |
1619 | ||
1620 | fi | |
1621 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1622 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1623 | host=$ac_cv_host | |
1624 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1625 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1626 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1627 | ||
1628 | ||
1629 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1630 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1631 | if test "${ac_cv_target+set}" = set; then | |
1632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1633 | else | |
1634 | ac_cv_target_alias=$target_alias | |
1635 | test "x$ac_cv_target_alias" = "x" && | |
1636 | ac_cv_target_alias=$ac_cv_host_alias | |
1637 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1638 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1639 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1640 | { (exit 1); exit 1; }; } | |
1641 | ||
1642 | fi | |
1643 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1644 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1645 | target=$ac_cv_target | |
1646 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1647 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1648 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1649 | ||
1650 | ||
1651 | # The aliases save the names the user supplied, while $host etc. | |
1652 | # will get canonicalized. | |
1653 | test -n "$target_alias" && | |
1654 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1655 | NONENONEs,x,x, && | |
1656 | program_prefix=${target_alias}- | |
1657 | ||
1658 | ||
1659 | ||
ceec2216 RL |
1660 | wx_major_version_number=2 |
1661 | wx_minor_version_number=5 | |
e41c39d6 | 1662 | wx_release_number=4 |
2da0c077 | 1663 | wx_subrelease_number=1 |
a848cd7e | 1664 | |
ceec2216 RL |
1665 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1666 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1667 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1668 | |
ceec2216 | 1669 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1670 | |
e41c39d6 | 1671 | WX_CURRENT=4 |
a848cd7e | 1672 | WX_REVISION=0 |
e41c39d6 | 1673 | WX_AGE=4 |
a848cd7e SC |
1674 | |
1675 | ||
1676 | ||
1677 | USE_UNIX=1 | |
1678 | USE_OS2=0 | |
1679 | USE_WIN32=0 | |
1680 | USE_DOS=0 | |
1681 | USE_BEOS=0 | |
1682 | USE_MAC=0 | |
1683 | ||
1684 | USE_AIX= | |
1685 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1686 | USE_GNU= USE_HPUX= | |
1687 | USE_LINUX= | |
1688 | USE_NETBSD= | |
1689 | USE_OPENBSD= | |
1690 | USE_OSF= USE_SGI= | |
1691 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1692 | USE_ULTRIX= | |
1693 | USE_UNIXWARE= | |
1694 | ||
1695 | USE_ALPHA= | |
1696 | ||
1697 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1698 | ||
1699 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1700 | ||
1701 | DEFAULT_wxUSE_COCOA=0 | |
1702 | DEFAULT_wxUSE_GTK=0 | |
1703 | DEFAULT_wxUSE_MAC=0 | |
1704 | DEFAULT_wxUSE_MGL=0 | |
1705 | DEFAULT_wxUSE_MICROWIN=0 | |
1706 | DEFAULT_wxUSE_MOTIF=0 | |
1707 | DEFAULT_wxUSE_MSW=0 | |
1708 | DEFAULT_wxUSE_PM=0 | |
1709 | DEFAULT_wxUSE_X11=0 | |
1710 | ||
1711 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1720 | ||
1721 | PROGRAM_EXT= | |
1722 | SO_SUFFIX=so | |
1723 | SAMPLES_RPATH_FLAG= | |
1724 | SAMPLES_RPATH_POSTLINK= | |
1725 | ||
1726 | case "${host}" in | |
1727 | *-hp-hpux* ) | |
1728 | USE_HPUX=1 | |
1729 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1730 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1731 | SO_SUFFIX=sl | |
1732 | cat >>confdefs.h <<\_ACEOF | |
1733 | #define __HPUX__ 1 | |
1734 | _ACEOF | |
1735 | ||
1736 | ;; | |
1737 | *-*-linux* ) | |
1738 | USE_LINUX=1 | |
1739 | cat >>confdefs.h <<\_ACEOF | |
1740 | #define __LINUX__ 1 | |
1741 | _ACEOF | |
1742 | ||
1743 | TMP=`uname -m` | |
1744 | if test "x$TMP" = "xalpha"; then | |
1745 | USE_ALPHA=1 | |
1746 | cat >>confdefs.h <<\_ACEOF | |
1747 | #define __ALPHA__ 1 | |
1748 | _ACEOF | |
1749 | ||
1750 | fi | |
1751 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1752 | ;; | |
1753 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1754 | USE_GNU=1 | |
1755 | TMP=`uname -m` | |
1756 | if test "x$TMP" = "xalpha"; then | |
1757 | USE_ALPHA=1 | |
1758 | cat >>confdefs.h <<\_ACEOF | |
1759 | #define __ALPHA__ 1 | |
1760 | _ACEOF | |
1761 | ||
1762 | fi | |
1763 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1764 | ;; | |
1765 | *-*-irix5* | *-*-irix6* ) | |
1766 | USE_SGI=1 | |
1767 | USE_SVR4=1 | |
1768 | cat >>confdefs.h <<\_ACEOF | |
1769 | #define __SGI__ 1 | |
1770 | _ACEOF | |
1771 | ||
1772 | cat >>confdefs.h <<\_ACEOF | |
1773 | #define __SVR4__ 1 | |
1774 | _ACEOF | |
1775 | ||
1776 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1777 | ;; | |
1778 | *-*-solaris2* ) | |
1779 | USE_SUN=1 | |
1780 | USE_SOLARIS=1 | |
1781 | USE_SVR4=1 | |
1782 | cat >>confdefs.h <<\_ACEOF | |
1783 | #define __SUN__ 1 | |
1784 | _ACEOF | |
1785 | ||
1786 | cat >>confdefs.h <<\_ACEOF | |
1787 | #define __SOLARIS__ 1 | |
1788 | _ACEOF | |
1789 | ||
1790 | cat >>confdefs.h <<\_ACEOF | |
1791 | #define __SVR4__ 1 | |
1792 | _ACEOF | |
1793 | ||
1794 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1795 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1796 | ;; | |
1797 | *-*-sunos4* ) | |
1798 | USE_SUN=1 | |
1799 | USE_SUNOS=1 | |
1800 | USE_BSD=1 | |
1801 | cat >>confdefs.h <<\_ACEOF | |
1802 | #define __SUN__ 1 | |
1803 | _ACEOF | |
1804 | ||
1805 | cat >>confdefs.h <<\_ACEOF | |
1806 | #define __SUNOS__ 1 | |
1807 | _ACEOF | |
1808 | ||
1809 | cat >>confdefs.h <<\_ACEOF | |
1810 | #define __BSD__ 1 | |
1811 | _ACEOF | |
1812 | ||
1813 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1814 | ;; | |
1815 | *-*-freebsd*) | |
1816 | USE_BSD=1 | |
1817 | USE_FREEBSD=1 | |
1818 | cat >>confdefs.h <<\_ACEOF | |
1819 | #define __FREEBSD__ 1 | |
1820 | _ACEOF | |
1821 | ||
1822 | cat >>confdefs.h <<\_ACEOF | |
1823 | #define __BSD__ 1 | |
1824 | _ACEOF | |
1825 | ||
1826 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1827 | ;; | |
1828 | *-*-openbsd*) | |
1829 | USE_BSD=1 | |
1830 | USE_OPENBSD=1 | |
1831 | cat >>confdefs.h <<\_ACEOF | |
1832 | #define __OPENBSD__ 1 | |
1833 | _ACEOF | |
1834 | ||
1835 | cat >>confdefs.h <<\_ACEOF | |
1836 | #define __BSD__ 1 | |
1837 | _ACEOF | |
1838 | ||
1839 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1840 | ;; | |
1841 | *-*-netbsd*) | |
1842 | USE_BSD=1 | |
1843 | USE_NETBSD=1 | |
1844 | cat >>confdefs.h <<\_ACEOF | |
1845 | #define __NETBSD__ 1 | |
1846 | _ACEOF | |
1847 | ||
1848 | cat >>confdefs.h <<\_ACEOF | |
1849 | #define __BSD__ 1 | |
1850 | _ACEOF | |
1851 | ||
1852 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1853 | ;; | |
1854 | *-*-osf* ) | |
1855 | USE_ALPHA=1 | |
1856 | USE_OSF=1 | |
1857 | cat >>confdefs.h <<\_ACEOF | |
1858 | #define __ALPHA__ 1 | |
1859 | _ACEOF | |
1860 | ||
1861 | cat >>confdefs.h <<\_ACEOF | |
1862 | #define __OSF__ 1 | |
1863 | _ACEOF | |
1864 | ||
1865 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1866 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1867 | ;; | |
1868 | *-*-dgux5* ) | |
1869 | USE_ALPHA=1 | |
1870 | USE_SVR4=1 | |
1871 | cat >>confdefs.h <<\_ACEOF | |
1872 | #define __ALPHA__ 1 | |
1873 | _ACEOF | |
1874 | ||
1875 | cat >>confdefs.h <<\_ACEOF | |
1876 | #define __SVR4__ 1 | |
1877 | _ACEOF | |
1878 | ||
1879 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1880 | ;; | |
1881 | *-*-sysv5* ) | |
1882 | USE_SYSV=1 | |
1883 | USE_SVR4=1 | |
1884 | cat >>confdefs.h <<\_ACEOF | |
1885 | #define __SYSV__ 1 | |
1886 | _ACEOF | |
1887 | ||
1888 | cat >>confdefs.h <<\_ACEOF | |
1889 | #define __SVR4__ 1 | |
1890 | _ACEOF | |
1891 | ||
1892 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1893 | ;; | |
1894 | *-*-aix* ) | |
1895 | USE_AIX=1 | |
1896 | USE_SYSV=1 | |
1897 | USE_SVR4=1 | |
1898 | SO_SUFFIX=a | |
1899 | cat >>confdefs.h <<\_ACEOF | |
1900 | #define __AIX__ 1 | |
1901 | _ACEOF | |
1902 | ||
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __SYSV__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | cat >>confdefs.h <<\_ACEOF | |
1908 | #define __SVR4__ 1 | |
1909 | _ACEOF | |
1910 | ||
1911 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1912 | ;; | |
1913 | ||
1914 | *-*-*UnixWare*) | |
1915 | USE_SYSV=1 | |
1916 | USE_SVR4=1 | |
1917 | USE_UNIXWARE=1 | |
1918 | cat >>confdefs.h <<\_ACEOF | |
1919 | #define __UNIXWARE__ 1 | |
1920 | _ACEOF | |
1921 | ||
1922 | ;; | |
1923 | ||
1924 | *-*-cygwin* | *-*-mingw32* ) | |
1925 | SO_SUFFIX=dll | |
1926 | PROGRAM_EXT=".exe" | |
1927 | RESCOMP=windres | |
1928 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1929 | ;; | |
1930 | ||
1931 | *-pc-msdosdjgpp ) | |
1932 | USE_UNIX=0 | |
1933 | USE_DOS=1 | |
1934 | cat >>confdefs.h <<\_ACEOF | |
1935 | #define __DOS__ 1 | |
1936 | _ACEOF | |
1937 | ||
1938 | PROGRAM_EXT=".exe" | |
1939 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1940 | LIBS="$LIBS -lstdc++" | |
1941 | ;; | |
1942 | ||
1943 | *-pc-os2_emx | *-pc-os2-emx ) | |
1944 | cat >>confdefs.h <<\_ACEOF | |
1945 | #define __EMX__ 1 | |
1946 | _ACEOF | |
1947 | ||
1948 | USE_OS2=1 | |
1949 | cat >>confdefs.h <<\_ACEOF | |
1950 | #define __OS2__ 1 | |
1951 | _ACEOF | |
1952 | ||
1953 | PROGRAM_EXT=".exe" | |
1954 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1955 | CXX=gcc | |
1956 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1957 | ac_executable_extensions=".exe" | |
1958 | export ac_executable_extensions | |
1959 | ac_save_IFS="$IFS" | |
1960 | IFS='\\' | |
1961 | ac_TEMP_PATH= | |
1962 | for ac_dir in $PATH; do | |
1963 | IFS=$ac_save_IFS | |
1964 | if test -z "$ac_TEMP_PATH"; then | |
1965 | ac_TEMP_PATH="$ac_dir" | |
1966 | else | |
1967 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1968 | fi | |
1969 | done | |
1970 | export PATH="$ac_TEMP_PATH" | |
1971 | unset ac_TEMP_PATH | |
1972 | ;; | |
1973 | ||
1974 | powerpc-*-darwin* ) | |
1975 | USE_BSD=1 | |
1976 | USE_DARWIN=1 | |
1977 | SO_SUFFIX=dylib | |
1978 | cat >>confdefs.h <<\_ACEOF | |
1979 | #define __BSD__ 1 | |
1980 | _ACEOF | |
1981 | ||
1982 | cat >>confdefs.h <<\_ACEOF | |
1983 | #define __DARWIN__ 1 | |
a848cd7e SC |
1984 | _ACEOF |
1985 | ||
1986 | cat >>confdefs.h <<\_ACEOF | |
1987 | #define TARGET_CARBON 1 | |
1988 | _ACEOF | |
1989 | ||
1990 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1991 | ;; | |
1e9e8aba DE |
1992 | powerpc-apple-macos* ) |
1993 | USE_UNIX=0 | |
1994 | ac_cv_c_bigendian=yes | |
1995 | SO_SUFFIX=shlib | |
1996 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1997 | ;; | |
a848cd7e SC |
1998 | |
1999 | *-*-beos* ) | |
2000 | USE_BEOS=1 | |
2001 | cat >>confdefs.h <<\_ACEOF | |
2002 | #define __BEOS__ 1 | |
2003 | _ACEOF | |
2004 | ||
2005 | ;; | |
2006 | ||
2007 | *) | |
2008 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2009 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2010 | { (exit 1); exit 1; }; } | |
2011 | esac | |
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | wx_arg_cache_file="configarg.cache" | |
2017 | echo "loading argument cache $wx_arg_cache_file" | |
2018 | rm -f ${wx_arg_cache_file}.tmp | |
2019 | touch ${wx_arg_cache_file}.tmp | |
2020 | touch ${wx_arg_cache_file} | |
2021 | ||
2022 | ||
2023 | DEBUG_CONFIGURE=0 | |
2024 | if test $DEBUG_CONFIGURE = 1; then | |
2025 | DEFAULT_wxUSE_UNIVERSAL=no | |
2026 | DEFAULT_wxUSE_STL=no | |
2027 | ||
2028 | DEFAULT_wxUSE_NANOX=no | |
2029 | ||
2030 | DEFAULT_wxUSE_THREADS=yes | |
2031 | ||
2032 | DEFAULT_wxUSE_SHARED=yes | |
2033 | DEFAULT_wxUSE_OPTIMISE=no | |
2034 | DEFAULT_wxUSE_PROFILE=no | |
2035 | DEFAULT_wxUSE_NO_DEPS=no | |
2036 | DEFAULT_wxUSE_NO_RTTI=no | |
2037 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2038 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2039 | DEFAULT_wxUSE_PERMISSIVE=no |
2040 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2041 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2042 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2043 | DEFAULT_wxUSE_MEM_TRACING=no | |
2044 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2045 | DEFAULT_wxUSE_DMALLOC=no | |
2046 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2047 | ||
2048 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2049 | DEFAULT_wxUSE_LOG=yes | |
2050 | DEFAULT_wxUSE_LOGWINDOW=no | |
2051 | DEFAULT_wxUSE_LOGGUI=no | |
2052 | DEFAULT_wxUSE_LOGDIALOG=no | |
2053 | ||
2054 | DEFAULT_wxUSE_GUI=yes | |
2055 | DEFAULT_wxUSE_CONTROLS=no | |
2056 | ||
2057 | DEFAULT_wxUSE_REGEX=no | |
2058 | DEFAULT_wxUSE_XML=no | |
2059 | DEFAULT_wxUSE_EXPAT=no | |
2060 | DEFAULT_wxUSE_ZLIB=no | |
2061 | DEFAULT_wxUSE_LIBPNG=no | |
2062 | DEFAULT_wxUSE_LIBJPEG=no | |
2063 | DEFAULT_wxUSE_LIBTIFF=no | |
2064 | DEFAULT_wxUSE_LIBXPM=no | |
2065 | DEFAULT_wxUSE_LIBMSPACK=no | |
2066 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2067 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2068 | DEFAULT_wxUSE_ODBC=no |
2069 | DEFAULT_wxUSE_OPENGL=no | |
2070 | ||
2071 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2072 | DEFAULT_wxUSE_STACKWALKER=no |
a848cd7e SC |
2073 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2074 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2075 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2076 | DEFAULT_wxUSE_DATETIME=no | |
2077 | DEFAULT_wxUSE_TIMER=no | |
2078 | DEFAULT_wxUSE_STOPWATCH=no | |
2079 | DEFAULT_wxUSE_FILE=no | |
2080 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2081 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2082 | DEFAULT_wxUSE_TEXTBUFFER=no |
2083 | DEFAULT_wxUSE_TEXTFILE=no | |
2084 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2085 | DEFAULT_wxUSE_MEDIACTRL=no |
2086 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2087 | DEFAULT_wxUSE_INTL=no |
2088 | DEFAULT_wxUSE_CONFIG=no | |
2089 | DEFAULT_wxUSE_FONTMAP=no | |
2090 | DEFAULT_wxUSE_STREAMS=no | |
2091 | DEFAULT_wxUSE_SOCKETS=no | |
2092 | DEFAULT_wxUSE_OLE=no | |
2093 | DEFAULT_wxUSE_DATAOBJ=no | |
2094 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2095 | DEFAULT_wxUSE_JOYSTICK=no | |
2096 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2097 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2098 | DEFAULT_wxUSE_LONGLONG=no | |
2099 | DEFAULT_wxUSE_GEOMETRY=no | |
2100 | ||
2101 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2102 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2103 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2104 | ||
2105 | DEFAULT_wxUSE_CLIPBOARD=no | |
2106 | DEFAULT_wxUSE_TOOLTIPS=no | |
2107 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2108 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2109 | DEFAULT_wxUSE_SPLINES=no | |
2110 | ||
8a7b1113 | 2111 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2112 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2113 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2114 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2115 | ||
2116 | DEFAULT_wxUSE_RESOURCES=no | |
2117 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2118 | DEFAULT_wxUSE_IPC=no | |
2119 | DEFAULT_wxUSE_HELP=no | |
2120 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2121 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2122 | DEFAULT_wxUSE_TREELAYOUT=no | |
2123 | DEFAULT_wxUSE_METAFILE=no | |
2124 | DEFAULT_wxUSE_MIMETYPE=no | |
2125 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2126 | DEFAULT_wxUSE_PROTOCOL=no | |
2127 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2128 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2129 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2130 | DEFAULT_wxUSE_URL=no | |
2131 | ||
2132 | DEFAULT_wxUSE_COMMONDLGS=no | |
2133 | DEFAULT_wxUSE_CHOICEDLG=no | |
2134 | DEFAULT_wxUSE_COLOURDLG=no | |
2135 | DEFAULT_wxUSE_DIRDLG=no | |
2136 | DEFAULT_wxUSE_FILEDLG=no | |
2137 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2138 | DEFAULT_wxUSE_FONTDLG=no | |
2139 | DEFAULT_wxUSE_MSGDLG=no | |
2140 | DEFAULT_wxUSE_NUMBERDLG=no | |
2141 | DEFAULT_wxUSE_TEXTDLG=no | |
2142 | DEFAULT_wxUSE_SPLASH=no | |
2143 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2144 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2145 | DEFAULT_wxUSE_WIZARDDLG=no | |
2146 | ||
2147 | DEFAULT_wxUSE_MENUS=no | |
2148 | DEFAULT_wxUSE_MINIFRAME=no | |
2149 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2150 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2151 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2152 | DEFAULT_wxUSE_FILESYSTEM=no |
2153 | DEFAULT_wxUSE_FS_INET=no | |
2154 | DEFAULT_wxUSE_FS_ZIP=no | |
2155 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2156 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2157 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2158 | DEFAULT_wxUSE_VALIDATORS=no |
2159 | ||
2160 | DEFAULT_wxUSE_ACCEL=no | |
2161 | DEFAULT_wxUSE_BUTTON=no | |
2162 | DEFAULT_wxUSE_BMPBUTTON=no | |
2163 | DEFAULT_wxUSE_CALCTRL=no | |
2164 | DEFAULT_wxUSE_CARET=no | |
2165 | DEFAULT_wxUSE_CHECKBOX=no | |
2166 | DEFAULT_wxUSE_CHECKLST=no | |
2167 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2168 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2169 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2170 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2171 | DEFAULT_wxUSE_DISPLAY=no |
2172 | DEFAULT_wxUSE_GAUGE=no | |
2173 | DEFAULT_wxUSE_GRID=no | |
2174 | DEFAULT_wxUSE_IMAGLIST=no | |
2175 | DEFAULT_wxUSE_LISTBOOK=no | |
2176 | DEFAULT_wxUSE_LISTBOX=no | |
2177 | DEFAULT_wxUSE_LISTCTRL=no | |
2178 | DEFAULT_wxUSE_NOTEBOOK=no | |
2179 | DEFAULT_wxUSE_RADIOBOX=no | |
2180 | DEFAULT_wxUSE_RADIOBTN=no | |
2181 | DEFAULT_wxUSE_SASH=no | |
2182 | DEFAULT_wxUSE_SCROLLBAR=no | |
2183 | DEFAULT_wxUSE_SLIDER=no | |
2184 | DEFAULT_wxUSE_SPINBTN=no | |
2185 | DEFAULT_wxUSE_SPINCTRL=no | |
2186 | DEFAULT_wxUSE_SPLITTER=no | |
2187 | DEFAULT_wxUSE_STATBMP=no | |
2188 | DEFAULT_wxUSE_STATBOX=no | |
2189 | DEFAULT_wxUSE_STATLINE=no | |
2190 | DEFAULT_wxUSE_STATTEXT=no | |
2191 | DEFAULT_wxUSE_STATUSBAR=yes | |
2192 | DEFAULT_wxUSE_TABDIALOG=no | |
2193 | DEFAULT_wxUSE_TEXTCTRL=no | |
2194 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2195 | DEFAULT_wxUSE_TOOLBAR=no | |
2196 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2197 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2198 | DEFAULT_wxUSE_TREECTRL=no | |
2199 | DEFAULT_wxUSE_POPUPWIN=no | |
2200 | DEFAULT_wxUSE_TIPWINDOW=no | |
2201 | ||
2202 | DEFAULT_wxUSE_UNICODE=no | |
2203 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2204 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2205 | ||
2206 | DEFAULT_wxUSE_PALETTE=no | |
2207 | DEFAULT_wxUSE_IMAGE=no | |
2208 | DEFAULT_wxUSE_GIF=no | |
2209 | DEFAULT_wxUSE_PCX=no | |
2210 | DEFAULT_wxUSE_PNM=no | |
2211 | DEFAULT_wxUSE_IFF=no | |
2212 | DEFAULT_wxUSE_XPM=no | |
2213 | DEFAULT_wxUSE_ICO_CUR=no | |
2214 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2215 | ||
2216 | DEFAULT_wxUSE_MONOLITHIC=no | |
2217 | DEFAULT_wxUSE_PLUGINS=no | |
2218 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2219 | else | |
2220 | DEFAULT_wxUSE_UNIVERSAL=no | |
2221 | DEFAULT_wxUSE_STL=no | |
2222 | ||
2223 | DEFAULT_wxUSE_NANOX=no | |
2224 | ||
2225 | DEFAULT_wxUSE_THREADS=yes | |
2226 | ||
2227 | DEFAULT_wxUSE_SHARED=yes | |
2228 | DEFAULT_wxUSE_OPTIMISE=yes | |
2229 | DEFAULT_wxUSE_PROFILE=no | |
2230 | DEFAULT_wxUSE_NO_DEPS=no | |
2231 | DEFAULT_wxUSE_NO_RTTI=no | |
2232 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2233 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2234 | DEFAULT_wxUSE_PERMISSIVE=no |
2235 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2236 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2237 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2238 | DEFAULT_wxUSE_MEM_TRACING=no | |
2239 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2240 | DEFAULT_wxUSE_DMALLOC=no | |
2241 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2242 | ||
2243 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2244 | DEFAULT_wxUSE_LOG=yes | |
2245 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2246 | DEFAULT_wxUSE_LOGGUI=yes | |
2247 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2248 | ||
2249 | DEFAULT_wxUSE_GUI=yes | |
2250 | ||
2251 | DEFAULT_wxUSE_REGEX=yes | |
2252 | DEFAULT_wxUSE_XML=yes | |
2253 | DEFAULT_wxUSE_EXPAT=yes | |
2254 | DEFAULT_wxUSE_ZLIB=yes | |
2255 | DEFAULT_wxUSE_LIBPNG=yes | |
2256 | DEFAULT_wxUSE_LIBJPEG=yes | |
2257 | DEFAULT_wxUSE_LIBTIFF=yes | |
2258 | DEFAULT_wxUSE_LIBXPM=yes | |
2259 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2260 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2261 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2262 | DEFAULT_wxUSE_ODBC=no |
2263 | DEFAULT_wxUSE_OPENGL=no | |
2264 | ||
2265 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2266 | DEFAULT_wxUSE_STACKWALKER=yes |
a848cd7e SC |
2267 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
2268 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2269 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2270 | DEFAULT_wxUSE_DATETIME=yes | |
2271 | DEFAULT_wxUSE_TIMER=yes | |
2272 | DEFAULT_wxUSE_STOPWATCH=yes | |
2273 | DEFAULT_wxUSE_FILE=yes | |
2274 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2275 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2276 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2277 | DEFAULT_wxUSE_TEXTFILE=yes | |
2278 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2279 | DEFAULT_wxUSE_MEDIACTRL=no |
2280 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2281 | DEFAULT_wxUSE_INTL=yes |
2282 | DEFAULT_wxUSE_CONFIG=yes | |
2283 | DEFAULT_wxUSE_FONTMAP=yes | |
2284 | DEFAULT_wxUSE_STREAMS=yes | |
2285 | DEFAULT_wxUSE_SOCKETS=yes | |
2286 | DEFAULT_wxUSE_OLE=yes | |
2287 | DEFAULT_wxUSE_DATAOBJ=yes | |
2288 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2289 | DEFAULT_wxUSE_JOYSTICK=yes | |
2290 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2291 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2292 | DEFAULT_wxUSE_LONGLONG=yes | |
2293 | DEFAULT_wxUSE_GEOMETRY=yes | |
2294 | ||
2295 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2296 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2297 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2298 | ||
2299 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2300 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2301 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2302 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2303 | DEFAULT_wxUSE_SPLINES=yes | |
2304 | ||
8a7b1113 | 2305 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2306 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2307 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2308 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2309 | ||
2310 | DEFAULT_wxUSE_RESOURCES=no | |
2311 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2312 | DEFAULT_wxUSE_IPC=yes | |
2313 | DEFAULT_wxUSE_HELP=yes | |
2314 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2315 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2316 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2317 | DEFAULT_wxUSE_METAFILE=yes | |
2318 | DEFAULT_wxUSE_MIMETYPE=yes | |
2319 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2320 | DEFAULT_wxUSE_PROTOCOL=yes | |
2321 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2322 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2323 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2324 | DEFAULT_wxUSE_URL=yes | |
2325 | ||
2326 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2327 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2328 | DEFAULT_wxUSE_COLOURDLG=yes | |
2329 | DEFAULT_wxUSE_DIRDLG=yes | |
2330 | DEFAULT_wxUSE_FILEDLG=yes | |
2331 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2332 | DEFAULT_wxUSE_FONTDLG=yes | |
2333 | DEFAULT_wxUSE_MSGDLG=yes | |
2334 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2335 | DEFAULT_wxUSE_TEXTDLG=yes | |
2336 | DEFAULT_wxUSE_SPLASH=yes | |
2337 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2338 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2339 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2340 | ||
2341 | DEFAULT_wxUSE_MENUS=yes | |
2342 | DEFAULT_wxUSE_MINIFRAME=yes | |
2343 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2344 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2345 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2346 | DEFAULT_wxUSE_FILESYSTEM=yes |
2347 | DEFAULT_wxUSE_FS_INET=yes | |
2348 | DEFAULT_wxUSE_FS_ZIP=yes | |
2349 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2350 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2351 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2352 | DEFAULT_wxUSE_VALIDATORS=yes |
2353 | ||
2354 | DEFAULT_wxUSE_ACCEL=yes | |
2355 | DEFAULT_wxUSE_BUTTON=yes | |
2356 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2357 | DEFAULT_wxUSE_CALCTRL=yes | |
2358 | DEFAULT_wxUSE_CARET=yes | |
2359 | DEFAULT_wxUSE_CHECKBOX=yes | |
2360 | DEFAULT_wxUSE_CHECKLST=yes | |
2361 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2362 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2363 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2364 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2365 | DEFAULT_wxUSE_DISPLAY=yes |
2366 | DEFAULT_wxUSE_GAUGE=yes | |
2367 | DEFAULT_wxUSE_GRID=yes | |
2368 | DEFAULT_wxUSE_IMAGLIST=yes | |
2369 | DEFAULT_wxUSE_LISTBOOK=yes | |
2370 | DEFAULT_wxUSE_LISTBOX=yes | |
2371 | DEFAULT_wxUSE_LISTCTRL=yes | |
2372 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2373 | DEFAULT_wxUSE_RADIOBOX=yes | |
2374 | DEFAULT_wxUSE_RADIOBTN=yes | |
2375 | DEFAULT_wxUSE_SASH=yes | |
2376 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2377 | DEFAULT_wxUSE_SLIDER=yes | |
2378 | DEFAULT_wxUSE_SPINBTN=yes | |
2379 | DEFAULT_wxUSE_SPINCTRL=yes | |
2380 | DEFAULT_wxUSE_SPLITTER=yes | |
2381 | DEFAULT_wxUSE_STATBMP=yes | |
2382 | DEFAULT_wxUSE_STATBOX=yes | |
2383 | DEFAULT_wxUSE_STATLINE=yes | |
2384 | DEFAULT_wxUSE_STATTEXT=yes | |
2385 | DEFAULT_wxUSE_STATUSBAR=yes | |
2386 | DEFAULT_wxUSE_TABDIALOG=no | |
2387 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2388 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2389 | DEFAULT_wxUSE_TOOLBAR=yes | |
2390 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2391 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2392 | DEFAULT_wxUSE_TREECTRL=yes | |
2393 | DEFAULT_wxUSE_POPUPWIN=yes | |
2394 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2395 | ||
2396 | DEFAULT_wxUSE_UNICODE=no | |
2397 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2398 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2399 | ||
2400 | DEFAULT_wxUSE_PALETTE=yes | |
2401 | DEFAULT_wxUSE_IMAGE=yes | |
2402 | DEFAULT_wxUSE_GIF=yes | |
2403 | DEFAULT_wxUSE_PCX=yes | |
2404 | DEFAULT_wxUSE_IFF=no | |
2405 | DEFAULT_wxUSE_PNM=yes | |
2406 | DEFAULT_wxUSE_XPM=yes | |
2407 | DEFAULT_wxUSE_ICO_CUR=yes | |
2408 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2409 | ||
2410 | DEFAULT_wxUSE_MONOLITHIC=no | |
2411 | DEFAULT_wxUSE_PLUGINS=no | |
2412 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2413 | |
2414 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2415 | fi |
2416 | ||
2417 | ||
2418 | ||
2419 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2420 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2421 | if test "x$LINE" != "x" ; then | |
2422 | has_toolkit_in_cache=1 | |
2423 | eval "DEFAULT_$LINE" | |
2424 | eval "CACHE_$toolkit=1" | |
2425 | fi | |
2426 | done | |
2427 | ||
2428 | ||
2429 | ||
2430 | enablestring= | |
2431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2432 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2433 | no_cache=0 | |
2434 | # Check whether --enable-gui or --disable-gui was given. | |
2435 | if test "${enable_gui+set}" = set; then | |
2436 | enableval="$enable_gui" | |
2437 | ||
2438 | if test "$enableval" = yes; then | |
2439 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2440 | else | |
2441 | ac_cv_use_gui='wxUSE_GUI=no' | |
2442 | fi | |
2443 | ||
2444 | else | |
2445 | ||
2446 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2447 | if test "x$LINE" != x ; then | |
2448 | eval "DEFAULT_$LINE" | |
2449 | else | |
2450 | no_cache=1 | |
2451 | fi | |
2452 | ||
2453 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2454 | ||
2455 | fi; | |
2456 | ||
2457 | eval "$ac_cv_use_gui" | |
2458 | if test "$no_cache" != 1; then | |
2459 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2460 | fi | |
2461 | ||
2462 | if test "$wxUSE_GUI" = yes; then | |
2463 | echo "$as_me:$LINENO: result: yes" >&5 | |
2464 | echo "${ECHO_T}yes" >&6 | |
2465 | else | |
2466 | echo "$as_me:$LINENO: result: no" >&5 | |
2467 | echo "${ECHO_T}no" >&6 | |
2468 | fi | |
2469 | ||
2470 | ||
2471 | enablestring= | |
2472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2473 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2474 | no_cache=0 | |
2475 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2476 | if test "${enable_monolithic+set}" = set; then | |
2477 | enableval="$enable_monolithic" | |
2478 | ||
2479 | if test "$enableval" = yes; then | |
2480 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2481 | else | |
2482 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2483 | fi | |
2484 | ||
2485 | else | |
2486 | ||
2487 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2488 | if test "x$LINE" != x ; then | |
2489 | eval "DEFAULT_$LINE" | |
2490 | else | |
2491 | no_cache=1 | |
2492 | fi | |
2493 | ||
2494 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2495 | ||
2496 | fi; | |
2497 | ||
2498 | eval "$ac_cv_use_monolithic" | |
2499 | if test "$no_cache" != 1; then | |
2500 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2501 | fi | |
2502 | ||
2503 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2504 | echo "$as_me:$LINENO: result: yes" >&5 | |
2505 | echo "${ECHO_T}yes" >&6 | |
2506 | else | |
2507 | echo "$as_me:$LINENO: result: no" >&5 | |
2508 | echo "${ECHO_T}no" >&6 | |
2509 | fi | |
2510 | ||
2511 | ||
2512 | enablestring= | |
2513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2514 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2515 | no_cache=0 | |
2516 | # Check whether --enable-plugins or --disable-plugins was given. | |
2517 | if test "${enable_plugins+set}" = set; then | |
2518 | enableval="$enable_plugins" | |
2519 | ||
2520 | if test "$enableval" = yes; then | |
2521 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2522 | else | |
2523 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2524 | fi | |
2525 | ||
2526 | else | |
2527 | ||
2528 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2529 | if test "x$LINE" != x ; then | |
2530 | eval "DEFAULT_$LINE" | |
2531 | else | |
2532 | no_cache=1 | |
2533 | fi | |
2534 | ||
2535 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2536 | ||
2537 | fi; | |
2538 | ||
2539 | eval "$ac_cv_use_plugins" | |
2540 | if test "$no_cache" != 1; then | |
2541 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2542 | fi | |
2543 | ||
2544 | if test "$wxUSE_PLUGINS" = yes; then | |
2545 | echo "$as_me:$LINENO: result: yes" >&5 | |
2546 | echo "${ECHO_T}yes" >&6 | |
2547 | else | |
2548 | echo "$as_me:$LINENO: result: no" >&5 | |
2549 | echo "${ECHO_T}no" >&6 | |
2550 | fi | |
2551 | ||
2552 | ||
2553 | if test "$wxUSE_GUI" = "yes"; then | |
2554 | ||
2555 | ||
2556 | enablestring= | |
2557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2558 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2559 | no_cache=0 | |
2560 | # Check whether --enable-universal or --disable-universal was given. | |
2561 | if test "${enable_universal+set}" = set; then | |
2562 | enableval="$enable_universal" | |
2563 | ||
2564 | if test "$enableval" = yes; then | |
2565 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2566 | else | |
2567 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2568 | fi | |
2569 | ||
2570 | else | |
2571 | ||
2572 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2573 | if test "x$LINE" != x ; then | |
2574 | eval "DEFAULT_$LINE" | |
2575 | else | |
2576 | no_cache=1 | |
2577 | fi | |
2578 | ||
2579 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2580 | ||
2581 | fi; | |
2582 | ||
2583 | eval "$ac_cv_use_universal" | |
2584 | if test "$no_cache" != 1; then | |
2585 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2586 | fi | |
2587 | ||
2588 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2589 | echo "$as_me:$LINENO: result: yes" >&5 | |
2590 | echo "${ECHO_T}yes" >&6 | |
2591 | else | |
2592 | echo "$as_me:$LINENO: result: no" >&5 | |
2593 | echo "${ECHO_T}no" >&6 | |
2594 | fi | |
2595 | ||
2596 | ||
2597 | # Check whether --with-gtk or --without-gtk was given. | |
2598 | if test "${with_gtk+set}" = set; then | |
2599 | withval="$with_gtk" | |
2600 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2601 | fi; | |
2602 | ||
2603 | # Check whether --with-motif or --without-motif was given. | |
2604 | if test "${with_motif+set}" = set; then | |
2605 | withval="$with_motif" | |
2606 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2607 | fi; | |
2608 | ||
2609 | # Check whether --with-mac or --without-mac was given. | |
2610 | if test "${with_mac+set}" = set; then | |
2611 | withval="$with_mac" | |
c228d3a4 | 2612 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2613 | fi; |
2614 | ||
2615 | # Check whether --with-cocoa or --without-cocoa was given. | |
2616 | if test "${with_cocoa+set}" = set; then | |
2617 | withval="$with_cocoa" | |
c228d3a4 | 2618 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2619 | fi; |
2620 | ||
2621 | # Check whether --with-wine or --without-wine was given. | |
2622 | if test "${with_wine+set}" = set; then | |
2623 | withval="$with_wine" | |
2624 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2625 | fi; | |
2626 | ||
2627 | # Check whether --with-msw or --without-msw was given. | |
2628 | if test "${with_msw+set}" = set; then | |
2629 | withval="$with_msw" | |
2630 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2631 | fi; | |
2632 | ||
2633 | # Check whether --with-pm or --without-pm was given. | |
2634 | if test "${with_pm+set}" = set; then | |
2635 | withval="$with_pm" | |
2636 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2637 | fi; | |
2638 | ||
2639 | # Check whether --with-mgl or --without-mgl was given. | |
2640 | if test "${with_mgl+set}" = set; then | |
2641 | withval="$with_mgl" | |
2642 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2643 | fi; | |
2644 | ||
2645 | # Check whether --with-microwin or --without-microwin was given. | |
2646 | if test "${with_microwin+set}" = set; then | |
2647 | withval="$with_microwin" | |
2648 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2649 | fi; | |
2650 | ||
2651 | # Check whether --with-x11 or --without-x11 was given. | |
2652 | if test "${with_x11+set}" = set; then | |
2653 | withval="$with_x11" | |
2654 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2655 | fi; | |
2656 | ||
2657 | enablestring= | |
2658 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2659 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2660 | no_cache=0 | |
2661 | # Check whether --enable-nanox or --disable-nanox was given. | |
2662 | if test "${enable_nanox+set}" = set; then | |
2663 | enableval="$enable_nanox" | |
2664 | ||
2665 | if test "$enableval" = yes; then | |
2666 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2667 | else | |
2668 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2669 | fi | |
2670 | ||
2671 | else | |
2672 | ||
2673 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2674 | if test "x$LINE" != x ; then | |
2675 | eval "DEFAULT_$LINE" | |
2676 | else | |
2677 | no_cache=1 | |
2678 | fi | |
2679 | ||
2680 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2681 | ||
2682 | fi; | |
2683 | ||
2684 | eval "$ac_cv_use_nanox" | |
2685 | if test "$no_cache" != 1; then | |
2686 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2687 | fi | |
2688 | ||
2689 | if test "$wxUSE_NANOX" = yes; then | |
2690 | echo "$as_me:$LINENO: result: yes" >&5 | |
2691 | echo "${ECHO_T}yes" >&6 | |
2692 | else | |
2693 | echo "$as_me:$LINENO: result: no" >&5 | |
2694 | echo "${ECHO_T}no" >&6 | |
2695 | fi | |
2696 | ||
2697 | ||
2698 | ||
2699 | enablestring= | |
2700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2701 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2702 | no_cache=0 | |
2703 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2704 | if test "${enable_gtk2+set}" = set; then | |
2705 | enableval="$enable_gtk2" | |
2706 | ||
2707 | if test "$enableval" = yes; then | |
2708 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2709 | else | |
2710 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2711 | fi | |
2712 | ||
2713 | else | |
2714 | ||
2715 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2716 | if test "x$LINE" != x ; then | |
2717 | eval "DEFAULT_$LINE" | |
2718 | else | |
2719 | no_cache=1 | |
2720 | fi | |
2721 | ||
2722 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2723 | ||
2724 | fi; | |
2725 | ||
2726 | eval "$ac_cv_use_gtk2" | |
2727 | if test "$no_cache" != 1; then | |
2728 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2729 | fi | |
2730 | ||
2731 | if test "$wxUSE_GTK2" = yes; then | |
2732 | echo "$as_me:$LINENO: result: yes" >&5 | |
2733 | echo "${ECHO_T}yes" >&6 | |
2734 | else | |
2735 | echo "$as_me:$LINENO: result: no" >&5 | |
2736 | echo "${ECHO_T}no" >&6 | |
2737 | fi | |
2738 | ||
2739 | ||
2740 | enablestring= | |
2741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2742 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2743 | no_cache=0 | |
2744 | # Check whether --enable-gpe or --disable-gpe was given. | |
2745 | if test "${enable_gpe+set}" = set; then | |
2746 | enableval="$enable_gpe" | |
2747 | ||
2748 | if test "$enableval" = yes; then | |
2749 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2750 | else | |
2751 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2752 | fi | |
2753 | ||
2754 | else | |
2755 | ||
2756 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2757 | if test "x$LINE" != x ; then | |
2758 | eval "DEFAULT_$LINE" | |
2759 | else | |
2760 | no_cache=1 | |
2761 | fi | |
2762 | ||
2763 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2764 | ||
2765 | fi; | |
2766 | ||
2767 | eval "$ac_cv_use_gpe" | |
2768 | if test "$no_cache" != 1; then | |
2769 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2770 | fi | |
2771 | ||
2772 | if test "$wxUSE_GPE" = yes; then | |
2773 | echo "$as_me:$LINENO: result: yes" >&5 | |
2774 | echo "${ECHO_T}yes" >&6 | |
2775 | else | |
2776 | echo "$as_me:$LINENO: result: no" >&5 | |
2777 | echo "${ECHO_T}no" >&6 | |
2778 | fi | |
2779 | ||
2780 | ||
2781 | ||
2782 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2783 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2784 | no_cache=0 | |
2785 | ||
2786 | # Check whether --with-libpng or --without-libpng was given. | |
2787 | if test "${with_libpng+set}" = set; then | |
2788 | withval="$with_libpng" | |
2789 | ||
2790 | if test "$withval" = yes; then | |
2791 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2792 | elif test "$withval" = no; then | |
2793 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2794 | elif test "$withval" = sys; then | |
2795 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2796 | elif test "$withval" = builtin; then | |
2797 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2798 | else | |
2799 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2800 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2801 | { (exit 1); exit 1; }; } | |
2802 | fi | |
2803 | ||
2804 | else | |
2805 | ||
2806 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2807 | if test "x$LINE" != x ; then | |
2808 | eval "DEFAULT_$LINE" | |
2809 | else | |
2810 | no_cache=1 | |
2811 | fi | |
2812 | ||
2813 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2814 | ||
2815 | fi; | |
2816 | ||
2817 | eval "$ac_cv_use_libpng" | |
2818 | if test "$no_cache" != 1; then | |
2819 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2820 | fi | |
2821 | ||
2822 | if test "$wxUSE_LIBPNG" = yes; then | |
2823 | echo "$as_me:$LINENO: result: yes" >&5 | |
2824 | echo "${ECHO_T}yes" >&6 | |
2825 | elif test "$wxUSE_LIBPNG" = no; then | |
2826 | echo "$as_me:$LINENO: result: no" >&5 | |
2827 | echo "${ECHO_T}no" >&6 | |
2828 | elif test "$wxUSE_LIBPNG" = sys; then | |
2829 | echo "$as_me:$LINENO: result: system version" >&5 | |
2830 | echo "${ECHO_T}system version" >&6 | |
2831 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2832 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2833 | echo "${ECHO_T}builtin version" >&6 | |
2834 | else | |
2835 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2836 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2837 | { (exit 1); exit 1; }; } | |
2838 | fi | |
2839 | ||
2840 | ||
2841 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2842 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2843 | no_cache=0 | |
2844 | ||
2845 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2846 | if test "${with_libjpeg+set}" = set; then | |
2847 | withval="$with_libjpeg" | |
2848 | ||
2849 | if test "$withval" = yes; then | |
2850 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2851 | elif test "$withval" = no; then | |
2852 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2853 | elif test "$withval" = sys; then | |
2854 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2855 | elif test "$withval" = builtin; then | |
2856 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2857 | else | |
2858 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2859 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2860 | { (exit 1); exit 1; }; } | |
2861 | fi | |
2862 | ||
2863 | else | |
2864 | ||
2865 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2866 | if test "x$LINE" != x ; then | |
2867 | eval "DEFAULT_$LINE" | |
2868 | else | |
2869 | no_cache=1 | |
2870 | fi | |
2871 | ||
2872 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2873 | ||
2874 | fi; | |
2875 | ||
2876 | eval "$ac_cv_use_libjpeg" | |
2877 | if test "$no_cache" != 1; then | |
2878 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2879 | fi | |
2880 | ||
2881 | if test "$wxUSE_LIBJPEG" = yes; then | |
2882 | echo "$as_me:$LINENO: result: yes" >&5 | |
2883 | echo "${ECHO_T}yes" >&6 | |
2884 | elif test "$wxUSE_LIBJPEG" = no; then | |
2885 | echo "$as_me:$LINENO: result: no" >&5 | |
2886 | echo "${ECHO_T}no" >&6 | |
2887 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2888 | echo "$as_me:$LINENO: result: system version" >&5 | |
2889 | echo "${ECHO_T}system version" >&6 | |
2890 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2891 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2892 | echo "${ECHO_T}builtin version" >&6 | |
2893 | else | |
2894 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2895 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2896 | { (exit 1); exit 1; }; } | |
2897 | fi | |
2898 | ||
2899 | ||
2900 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2901 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2902 | no_cache=0 | |
2903 | ||
2904 | # Check whether --with-libtiff or --without-libtiff was given. | |
2905 | if test "${with_libtiff+set}" = set; then | |
2906 | withval="$with_libtiff" | |
2907 | ||
2908 | if test "$withval" = yes; then | |
2909 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2910 | elif test "$withval" = no; then | |
2911 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2912 | elif test "$withval" = sys; then | |
2913 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2914 | elif test "$withval" = builtin; then | |
2915 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2916 | else | |
2917 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2918 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2919 | { (exit 1); exit 1; }; } | |
2920 | fi | |
2921 | ||
2922 | else | |
2923 | ||
2924 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2925 | if test "x$LINE" != x ; then | |
2926 | eval "DEFAULT_$LINE" | |
2927 | else | |
2928 | no_cache=1 | |
2929 | fi | |
2930 | ||
2931 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2932 | ||
2933 | fi; | |
2934 | ||
2935 | eval "$ac_cv_use_libtiff" | |
2936 | if test "$no_cache" != 1; then | |
2937 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2938 | fi | |
2939 | ||
2940 | if test "$wxUSE_LIBTIFF" = yes; then | |
2941 | echo "$as_me:$LINENO: result: yes" >&5 | |
2942 | echo "${ECHO_T}yes" >&6 | |
2943 | elif test "$wxUSE_LIBTIFF" = no; then | |
2944 | echo "$as_me:$LINENO: result: no" >&5 | |
2945 | echo "${ECHO_T}no" >&6 | |
2946 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2947 | echo "$as_me:$LINENO: result: system version" >&5 | |
2948 | echo "${ECHO_T}system version" >&6 | |
2949 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2950 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2951 | echo "${ECHO_T}builtin version" >&6 | |
2952 | else | |
2953 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2954 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2955 | { (exit 1); exit 1; }; } | |
2956 | fi | |
2957 | ||
2958 | ||
2959 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2960 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2961 | no_cache=0 | |
2962 | ||
2963 | # Check whether --with-libxpm or --without-libxpm was given. | |
2964 | if test "${with_libxpm+set}" = set; then | |
2965 | withval="$with_libxpm" | |
2966 | ||
2967 | if test "$withval" = yes; then | |
2968 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2969 | elif test "$withval" = no; then | |
2970 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2971 | elif test "$withval" = sys; then | |
2972 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2973 | elif test "$withval" = builtin; then | |
2974 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2975 | else | |
2976 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2977 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2978 | { (exit 1); exit 1; }; } | |
2979 | fi | |
2980 | ||
2981 | else | |
2982 | ||
2983 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2984 | if test "x$LINE" != x ; then | |
2985 | eval "DEFAULT_$LINE" | |
2986 | else | |
2987 | no_cache=1 | |
2988 | fi | |
2989 | ||
2990 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2991 | ||
2992 | fi; | |
2993 | ||
2994 | eval "$ac_cv_use_libxpm" | |
2995 | if test "$no_cache" != 1; then | |
2996 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2997 | fi | |
2998 | ||
2999 | if test "$wxUSE_LIBXPM" = yes; then | |
3000 | echo "$as_me:$LINENO: result: yes" >&5 | |
3001 | echo "${ECHO_T}yes" >&6 | |
3002 | elif test "$wxUSE_LIBXPM" = no; then | |
3003 | echo "$as_me:$LINENO: result: no" >&5 | |
3004 | echo "${ECHO_T}no" >&6 | |
3005 | elif test "$wxUSE_LIBXPM" = sys; then | |
3006 | echo "$as_me:$LINENO: result: system version" >&5 | |
3007 | echo "${ECHO_T}system version" >&6 | |
3008 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3009 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3010 | echo "${ECHO_T}builtin version" >&6 | |
3011 | else | |
3012 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3013 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3014 | { (exit 1); exit 1; }; } | |
3015 | fi | |
3016 | ||
3017 | ||
3018 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3019 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3020 | no_cache=0 | |
3021 | ||
3022 | # Check whether --with-libmspack or --without-libmspack was given. | |
3023 | if test "${with_libmspack+set}" = set; then | |
3024 | withval="$with_libmspack" | |
3025 | ||
3026 | if test "$withval" = yes; then | |
3027 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3028 | else | |
3029 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3030 | fi | |
3031 | ||
3032 | else | |
3033 | ||
3034 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3035 | if test "x$LINE" != x ; then | |
3036 | eval "DEFAULT_$LINE" | |
3037 | else | |
3038 | no_cache=1 | |
3039 | fi | |
3040 | ||
3041 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3042 | ||
3043 | fi; | |
3044 | ||
3045 | eval "$ac_cv_use_libmspack" | |
3046 | if test "$no_cache" != 1; then | |
3047 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3048 | fi | |
3049 | ||
3050 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3051 | echo "$as_me:$LINENO: result: yes" >&5 | |
3052 | echo "${ECHO_T}yes" >&6 | |
3053 | else | |
3054 | echo "$as_me:$LINENO: result: no" >&5 | |
3055 | echo "${ECHO_T}no" >&6 | |
3056 | fi | |
3057 | ||
3058 | ||
3059 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3060 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3061 | no_cache=0 | |
3062 | ||
3063 | # Check whether --with-sdl or --without-sdl was given. | |
3064 | if test "${with_sdl+set}" = set; then | |
3065 | withval="$with_sdl" | |
3066 | ||
3067 | if test "$withval" = yes; then | |
3068 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3069 | else | |
3070 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3071 | fi | |
3072 | ||
3073 | else | |
3074 | ||
3075 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3076 | if test "x$LINE" != x ; then | |
3077 | eval "DEFAULT_$LINE" | |
3078 | else | |
3079 | no_cache=1 | |
3080 | fi | |
3081 | ||
3082 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3083 | ||
3084 | fi; | |
3085 | ||
3086 | eval "$ac_cv_use_sdl" | |
3087 | if test "$no_cache" != 1; then | |
3088 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3089 | fi | |
3090 | ||
3091 | if test "$wxUSE_LIBSDL" = yes; then | |
3092 | echo "$as_me:$LINENO: result: yes" >&5 | |
3093 | echo "${ECHO_T}yes" >&6 | |
3094 | else | |
3095 | echo "$as_me:$LINENO: result: no" >&5 | |
3096 | echo "${ECHO_T}no" >&6 | |
3097 | fi | |
3098 | ||
3099 | ||
d1c38808 VZ |
3100 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3101 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3102 | no_cache=0 | |
3103 | ||
3104 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3105 | if test "${with_gnomeprint+set}" = set; then | |
3106 | withval="$with_gnomeprint" | |
3107 | ||
3108 | if test "$withval" = yes; then | |
3109 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3110 | else | |
3111 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3112 | fi | |
3113 | ||
3114 | else | |
3115 | ||
3116 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3117 | if test "x$LINE" != x ; then | |
3118 | eval "DEFAULT_$LINE" | |
3119 | else | |
3120 | no_cache=1 | |
3121 | fi | |
3122 | ||
3123 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3124 | ||
3125 | fi; | |
3126 | ||
3127 | eval "$ac_cv_use_gnomeprint" | |
3128 | if test "$no_cache" != 1; then | |
3129 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3130 | fi | |
3131 | ||
3132 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3133 | echo "$as_me:$LINENO: result: yes" >&5 | |
3134 | echo "${ECHO_T}yes" >&6 | |
3135 | else | |
3136 | echo "$as_me:$LINENO: result: no" >&5 | |
3137 | echo "${ECHO_T}no" >&6 | |
3138 | fi | |
3139 | ||
3140 | ||
a848cd7e SC |
3141 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3142 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3143 | no_cache=0 | |
3144 | ||
3145 | # Check whether --with-opengl or --without-opengl was given. | |
3146 | if test "${with_opengl+set}" = set; then | |
3147 | withval="$with_opengl" | |
3148 | ||
3149 | if test "$withval" = yes; then | |
3150 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3151 | else | |
3152 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3153 | fi | |
3154 | ||
3155 | else | |
3156 | ||
3157 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3158 | if test "x$LINE" != x ; then | |
3159 | eval "DEFAULT_$LINE" | |
3160 | else | |
3161 | no_cache=1 | |
3162 | fi | |
3163 | ||
3164 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3165 | ||
3166 | fi; | |
3167 | ||
3168 | eval "$ac_cv_use_opengl" | |
3169 | if test "$no_cache" != 1; then | |
3170 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3171 | fi | |
3172 | ||
3173 | if test "$wxUSE_OPENGL" = yes; then | |
3174 | echo "$as_me:$LINENO: result: yes" >&5 | |
3175 | echo "${ECHO_T}yes" >&6 | |
3176 | else | |
3177 | echo "$as_me:$LINENO: result: no" >&5 | |
3178 | echo "${ECHO_T}no" >&6 | |
3179 | fi | |
3180 | ||
3181 | ||
3182 | fi | |
3183 | ||
3184 | ||
3185 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3186 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3187 | no_cache=0 | |
3188 | ||
3189 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3190 | if test "${with_dmalloc+set}" = set; then | |
3191 | withval="$with_dmalloc" | |
3192 | ||
3193 | if test "$withval" = yes; then | |
3194 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3195 | else | |
3196 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3197 | fi | |
3198 | ||
3199 | else | |
3200 | ||
3201 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3209 | ||
3210 | fi; | |
3211 | ||
3212 | eval "$ac_cv_use_dmalloc" | |
3213 | if test "$no_cache" != 1; then | |
3214 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3215 | fi | |
3216 | ||
3217 | if test "$wxUSE_DMALLOC" = yes; then | |
3218 | echo "$as_me:$LINENO: result: yes" >&5 | |
3219 | echo "${ECHO_T}yes" >&6 | |
3220 | else | |
3221 | echo "$as_me:$LINENO: result: no" >&5 | |
3222 | echo "${ECHO_T}no" >&6 | |
3223 | fi | |
3224 | ||
3225 | ||
3226 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3227 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3228 | no_cache=0 | |
3229 | ||
3230 | # Check whether --with-regex or --without-regex was given. | |
3231 | if test "${with_regex+set}" = set; then | |
3232 | withval="$with_regex" | |
3233 | ||
3234 | if test "$withval" = yes; then | |
3235 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3236 | elif test "$withval" = no; then | |
3237 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3238 | elif test "$withval" = sys; then | |
3239 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3240 | elif test "$withval" = builtin; then | |
3241 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3242 | else | |
3243 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3244 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3245 | { (exit 1); exit 1; }; } | |
3246 | fi | |
3247 | ||
3248 | else | |
3249 | ||
3250 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3251 | if test "x$LINE" != x ; then | |
3252 | eval "DEFAULT_$LINE" | |
3253 | else | |
3254 | no_cache=1 | |
3255 | fi | |
3256 | ||
3257 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3258 | ||
3259 | fi; | |
3260 | ||
3261 | eval "$ac_cv_use_regex" | |
3262 | if test "$no_cache" != 1; then | |
3263 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3264 | fi | |
3265 | ||
3266 | if test "$wxUSE_REGEX" = yes; then | |
3267 | echo "$as_me:$LINENO: result: yes" >&5 | |
3268 | echo "${ECHO_T}yes" >&6 | |
3269 | elif test "$wxUSE_REGEX" = no; then | |
3270 | echo "$as_me:$LINENO: result: no" >&5 | |
3271 | echo "${ECHO_T}no" >&6 | |
3272 | elif test "$wxUSE_REGEX" = sys; then | |
3273 | echo "$as_me:$LINENO: result: system version" >&5 | |
3274 | echo "${ECHO_T}system version" >&6 | |
3275 | elif test "$wxUSE_REGEX" = builtin; then | |
3276 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3277 | echo "${ECHO_T}builtin version" >&6 | |
3278 | else | |
3279 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3280 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3281 | { (exit 1); exit 1; }; } | |
3282 | fi | |
3283 | ||
3284 | ||
3285 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3286 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3287 | no_cache=0 | |
3288 | ||
3289 | # Check whether --with-zlib or --without-zlib was given. | |
3290 | if test "${with_zlib+set}" = set; then | |
3291 | withval="$with_zlib" | |
3292 | ||
3293 | if test "$withval" = yes; then | |
3294 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3295 | elif test "$withval" = no; then | |
3296 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3297 | elif test "$withval" = sys; then | |
3298 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3299 | elif test "$withval" = builtin; then | |
3300 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3301 | else | |
3302 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3303 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3304 | { (exit 1); exit 1; }; } | |
3305 | fi | |
3306 | ||
3307 | else | |
3308 | ||
3309 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3310 | if test "x$LINE" != x ; then | |
3311 | eval "DEFAULT_$LINE" | |
3312 | else | |
3313 | no_cache=1 | |
3314 | fi | |
3315 | ||
3316 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3317 | ||
3318 | fi; | |
3319 | ||
3320 | eval "$ac_cv_use_zlib" | |
3321 | if test "$no_cache" != 1; then | |
3322 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3323 | fi | |
3324 | ||
3325 | if test "$wxUSE_ZLIB" = yes; then | |
3326 | echo "$as_me:$LINENO: result: yes" >&5 | |
3327 | echo "${ECHO_T}yes" >&6 | |
3328 | elif test "$wxUSE_ZLIB" = no; then | |
3329 | echo "$as_me:$LINENO: result: no" >&5 | |
3330 | echo "${ECHO_T}no" >&6 | |
3331 | elif test "$wxUSE_ZLIB" = sys; then | |
3332 | echo "$as_me:$LINENO: result: system version" >&5 | |
3333 | echo "${ECHO_T}system version" >&6 | |
3334 | elif test "$wxUSE_ZLIB" = builtin; then | |
3335 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3336 | echo "${ECHO_T}builtin version" >&6 | |
3337 | else | |
3338 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3339 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3340 | { (exit 1); exit 1; }; } | |
3341 | fi | |
3342 | ||
3343 | ||
3344 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3345 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3346 | no_cache=0 | |
3347 | ||
3348 | # Check whether --with-odbc or --without-odbc was given. | |
3349 | if test "${with_odbc+set}" = set; then | |
3350 | withval="$with_odbc" | |
3351 | ||
3352 | if test "$withval" = yes; then | |
3353 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3354 | elif test "$withval" = no; then | |
3355 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3356 | elif test "$withval" = sys; then | |
3357 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3358 | elif test "$withval" = builtin; then | |
3359 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3360 | else | |
3361 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3362 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3363 | { (exit 1); exit 1; }; } | |
3364 | fi | |
3365 | ||
3366 | else | |
3367 | ||
3368 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3369 | if test "x$LINE" != x ; then | |
3370 | eval "DEFAULT_$LINE" | |
3371 | else | |
3372 | no_cache=1 | |
3373 | fi | |
3374 | ||
3375 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3376 | ||
3377 | fi; | |
3378 | ||
3379 | eval "$ac_cv_use_odbc" | |
3380 | if test "$no_cache" != 1; then | |
3381 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3382 | fi | |
3383 | ||
3384 | if test "$wxUSE_ODBC" = yes; then | |
3385 | echo "$as_me:$LINENO: result: yes" >&5 | |
3386 | echo "${ECHO_T}yes" >&6 | |
3387 | elif test "$wxUSE_ODBC" = no; then | |
3388 | echo "$as_me:$LINENO: result: no" >&5 | |
3389 | echo "${ECHO_T}no" >&6 | |
3390 | elif test "$wxUSE_ODBC" = sys; then | |
3391 | echo "$as_me:$LINENO: result: system version" >&5 | |
3392 | echo "${ECHO_T}system version" >&6 | |
3393 | elif test "$wxUSE_ODBC" = builtin; then | |
3394 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3395 | echo "${ECHO_T}builtin version" >&6 | |
3396 | else | |
3397 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3398 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3399 | { (exit 1); exit 1; }; } | |
3400 | fi | |
3401 | ||
3402 | ||
3403 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3404 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3405 | no_cache=0 | |
3406 | ||
3407 | # Check whether --with-expat or --without-expat was given. | |
3408 | if test "${with_expat+set}" = set; then | |
3409 | withval="$with_expat" | |
3410 | ||
3411 | if test "$withval" = yes; then | |
3412 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3413 | elif test "$withval" = no; then | |
3414 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3415 | elif test "$withval" = sys; then | |
3416 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3417 | elif test "$withval" = builtin; then | |
3418 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3419 | else | |
3420 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3421 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3422 | { (exit 1); exit 1; }; } | |
3423 | fi | |
3424 | ||
3425 | else | |
3426 | ||
3427 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3428 | if test "x$LINE" != x ; then | |
3429 | eval "DEFAULT_$LINE" | |
3430 | else | |
3431 | no_cache=1 | |
3432 | fi | |
3433 | ||
3434 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3435 | ||
3436 | fi; | |
3437 | ||
3438 | eval "$ac_cv_use_expat" | |
3439 | if test "$no_cache" != 1; then | |
3440 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3441 | fi | |
3442 | ||
3443 | if test "$wxUSE_EXPAT" = yes; then | |
3444 | echo "$as_me:$LINENO: result: yes" >&5 | |
3445 | echo "${ECHO_T}yes" >&6 | |
3446 | elif test "$wxUSE_EXPAT" = no; then | |
3447 | echo "$as_me:$LINENO: result: no" >&5 | |
3448 | echo "${ECHO_T}no" >&6 | |
3449 | elif test "$wxUSE_EXPAT" = sys; then | |
3450 | echo "$as_me:$LINENO: result: system version" >&5 | |
3451 | echo "${ECHO_T}system version" >&6 | |
3452 | elif test "$wxUSE_EXPAT" = builtin; then | |
3453 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3454 | echo "${ECHO_T}builtin version" >&6 | |
3455 | else | |
3456 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3457 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3458 | { (exit 1); exit 1; }; } | |
3459 | fi | |
3460 | ||
3461 | ||
3462 | ||
3463 | ||
3464 | enablestring= | |
3465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3466 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3467 | no_cache=0 | |
3468 | # Check whether --enable-shared or --disable-shared was given. | |
3469 | if test "${enable_shared+set}" = set; then | |
3470 | enableval="$enable_shared" | |
3471 | ||
3472 | if test "$enableval" = yes; then | |
3473 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3474 | else | |
3475 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3476 | fi | |
3477 | ||
3478 | else | |
3479 | ||
3480 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3481 | if test "x$LINE" != x ; then | |
3482 | eval "DEFAULT_$LINE" | |
3483 | else | |
3484 | no_cache=1 | |
3485 | fi | |
3486 | ||
3487 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3488 | ||
3489 | fi; | |
3490 | ||
3491 | eval "$ac_cv_use_shared" | |
3492 | if test "$no_cache" != 1; then | |
3493 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3494 | fi | |
3495 | ||
3496 | if test "$wxUSE_SHARED" = yes; then | |
3497 | echo "$as_me:$LINENO: result: yes" >&5 | |
3498 | echo "${ECHO_T}yes" >&6 | |
3499 | else | |
3500 | echo "$as_me:$LINENO: result: no" >&5 | |
3501 | echo "${ECHO_T}no" >&6 | |
3502 | fi | |
3503 | ||
3504 | ||
3505 | enablestring= | |
3506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3507 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3508 | no_cache=0 | |
3509 | # Check whether --enable-optimise or --disable-optimise was given. | |
3510 | if test "${enable_optimise+set}" = set; then | |
3511 | enableval="$enable_optimise" | |
3512 | ||
3513 | if test "$enableval" = yes; then | |
3514 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3515 | else | |
3516 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3517 | fi | |
3518 | ||
3519 | else | |
3520 | ||
3521 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3522 | if test "x$LINE" != x ; then | |
3523 | eval "DEFAULT_$LINE" | |
3524 | else | |
3525 | no_cache=1 | |
3526 | fi | |
3527 | ||
3528 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3529 | ||
3530 | fi; | |
3531 | ||
3532 | eval "$ac_cv_use_optimise" | |
3533 | if test "$no_cache" != 1; then | |
3534 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3535 | fi | |
3536 | ||
3537 | if test "$wxUSE_OPTIMISE" = yes; then | |
3538 | echo "$as_me:$LINENO: result: yes" >&5 | |
3539 | echo "${ECHO_T}yes" >&6 | |
3540 | else | |
3541 | echo "$as_me:$LINENO: result: no" >&5 | |
3542 | echo "${ECHO_T}no" >&6 | |
3543 | fi | |
3544 | ||
3545 | ||
3546 | enablestring= | |
3547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3548 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3549 | no_cache=0 | |
3550 | # Check whether --enable-debug or --disable-debug was given. | |
3551 | if test "${enable_debug+set}" = set; then | |
3552 | enableval="$enable_debug" | |
3553 | ||
3554 | if test "$enableval" = yes; then | |
3555 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3556 | else | |
3557 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3558 | fi | |
3559 | ||
3560 | else | |
3561 | ||
3562 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3563 | if test "x$LINE" != x ; then | |
3564 | eval "DEFAULT_$LINE" | |
3565 | else | |
3566 | no_cache=1 | |
3567 | fi | |
3568 | ||
3569 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3570 | ||
3571 | fi; | |
3572 | ||
3573 | eval "$ac_cv_use_debug" | |
3574 | if test "$no_cache" != 1; then | |
3575 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3576 | fi | |
3577 | ||
3578 | if test "$wxUSE_DEBUG" = yes; then | |
3579 | echo "$as_me:$LINENO: result: yes" >&5 | |
3580 | echo "${ECHO_T}yes" >&6 | |
3581 | else | |
3582 | echo "$as_me:$LINENO: result: no" >&5 | |
3583 | echo "${ECHO_T}no" >&6 | |
3584 | fi | |
3585 | ||
3586 | ||
3587 | enablestring= | |
3588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3589 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3590 | no_cache=0 | |
3591 | # Check whether --enable-stl or --disable-stl was given. | |
3592 | if test "${enable_stl+set}" = set; then | |
3593 | enableval="$enable_stl" | |
3594 | ||
3595 | if test "$enableval" = yes; then | |
3596 | ac_cv_use_stl='wxUSE_STL=yes' | |
3597 | else | |
3598 | ac_cv_use_stl='wxUSE_STL=no' | |
3599 | fi | |
3600 | ||
3601 | else | |
3602 | ||
3603 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3604 | if test "x$LINE" != x ; then | |
3605 | eval "DEFAULT_$LINE" | |
3606 | else | |
3607 | no_cache=1 | |
3608 | fi | |
3609 | ||
3610 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3611 | ||
3612 | fi; | |
3613 | ||
3614 | eval "$ac_cv_use_stl" | |
3615 | if test "$no_cache" != 1; then | |
3616 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3617 | fi | |
3618 | ||
3619 | if test "$wxUSE_STL" = yes; then | |
3620 | echo "$as_me:$LINENO: result: yes" >&5 | |
3621 | echo "${ECHO_T}yes" >&6 | |
3622 | else | |
3623 | echo "$as_me:$LINENO: result: no" >&5 | |
3624 | echo "${ECHO_T}no" >&6 | |
3625 | fi | |
3626 | ||
3627 | if test "$USE_OS2" = "1"; then | |
3628 | ||
3629 | enablestring= | |
3630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3631 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3632 | no_cache=0 | |
3633 | # Check whether --enable-omf or --disable-omf was given. | |
3634 | if test "${enable_omf+set}" = set; then | |
3635 | enableval="$enable_omf" | |
3636 | ||
3637 | if test "$enableval" = yes; then | |
3638 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3639 | else | |
3640 | ac_cv_use_omf='wxUSE_OMF=no' | |
3641 | fi | |
3642 | ||
3643 | else | |
3644 | ||
3645 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3646 | if test "x$LINE" != x ; then | |
3647 | eval "DEFAULT_$LINE" | |
3648 | else | |
3649 | no_cache=1 | |
3650 | fi | |
3651 | ||
3652 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3653 | ||
3654 | fi; | |
3655 | ||
3656 | eval "$ac_cv_use_omf" | |
3657 | if test "$no_cache" != 1; then | |
3658 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3659 | fi | |
3660 | ||
3661 | if test "$wxUSE_OMF" = yes; then | |
3662 | echo "$as_me:$LINENO: result: yes" >&5 | |
3663 | echo "${ECHO_T}yes" >&6 | |
3664 | else | |
3665 | echo "$as_me:$LINENO: result: no" >&5 | |
3666 | echo "${ECHO_T}no" >&6 | |
3667 | fi | |
3668 | ||
3669 | fi | |
3670 | ||
3671 | if test "$wxUSE_DEBUG" = "yes"; then | |
3672 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3673 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3674 | BUILD=debug | |
3675 | elif test "$wxUSE_DEBUG" = "no"; then | |
3676 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3677 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3678 | BUILD=release | |
3679 | fi | |
3680 | ||
3681 | ||
3682 | enablestring= | |
3683 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3684 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3685 | no_cache=0 | |
3686 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3687 | if test "${enable_debug_flag+set}" = set; then | |
3688 | enableval="$enable_debug_flag" | |
3689 | ||
3690 | if test "$enableval" = yes; then | |
3691 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3692 | else | |
3693 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3694 | fi | |
3695 | ||
3696 | else | |
3697 | ||
3698 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3699 | if test "x$LINE" != x ; then | |
3700 | eval "DEFAULT_$LINE" | |
3701 | else | |
3702 | no_cache=1 | |
3703 | fi | |
3704 | ||
3705 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3706 | ||
3707 | fi; | |
3708 | ||
3709 | eval "$ac_cv_use_debug_flag" | |
3710 | if test "$no_cache" != 1; then | |
3711 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3712 | fi | |
3713 | ||
3714 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3715 | echo "$as_me:$LINENO: result: yes" >&5 | |
3716 | echo "${ECHO_T}yes" >&6 | |
3717 | else | |
3718 | echo "$as_me:$LINENO: result: no" >&5 | |
3719 | echo "${ECHO_T}no" >&6 | |
3720 | fi | |
3721 | ||
3722 | ||
3723 | enablestring= | |
3724 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3725 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3726 | no_cache=0 | |
3727 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3728 | if test "${enable_debug_info+set}" = set; then | |
3729 | enableval="$enable_debug_info" | |
3730 | ||
3731 | if test "$enableval" = yes; then | |
3732 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3733 | else | |
3734 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3735 | fi | |
3736 | ||
3737 | else | |
3738 | ||
3739 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3740 | if test "x$LINE" != x ; then | |
3741 | eval "DEFAULT_$LINE" | |
3742 | else | |
3743 | no_cache=1 | |
3744 | fi | |
3745 | ||
3746 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3747 | ||
3748 | fi; | |
3749 | ||
3750 | eval "$ac_cv_use_debug_info" | |
3751 | if test "$no_cache" != 1; then | |
3752 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3753 | fi | |
3754 | ||
3755 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3756 | echo "$as_me:$LINENO: result: yes" >&5 | |
3757 | echo "${ECHO_T}yes" >&6 | |
3758 | else | |
3759 | echo "$as_me:$LINENO: result: no" >&5 | |
3760 | echo "${ECHO_T}no" >&6 | |
3761 | fi | |
3762 | ||
3763 | ||
3764 | enablestring= | |
3765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3766 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3767 | no_cache=0 | |
3768 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3769 | if test "${enable_debug_gdb+set}" = set; then | |
3770 | enableval="$enable_debug_gdb" | |
3771 | ||
3772 | if test "$enableval" = yes; then | |
3773 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3774 | else | |
3775 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3776 | fi | |
3777 | ||
3778 | else | |
3779 | ||
3780 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3781 | if test "x$LINE" != x ; then | |
3782 | eval "DEFAULT_$LINE" | |
3783 | else | |
3784 | no_cache=1 | |
3785 | fi | |
3786 | ||
3787 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3788 | ||
3789 | fi; | |
3790 | ||
3791 | eval "$ac_cv_use_debug_gdb" | |
3792 | if test "$no_cache" != 1; then | |
3793 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3794 | fi | |
3795 | ||
3796 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3797 | echo "$as_me:$LINENO: result: yes" >&5 | |
3798 | echo "${ECHO_T}yes" >&6 | |
3799 | else | |
3800 | echo "$as_me:$LINENO: result: no" >&5 | |
3801 | echo "${ECHO_T}no" >&6 | |
3802 | fi | |
3803 | ||
3804 | ||
3805 | enablestring= | |
3806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3807 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3808 | no_cache=0 | |
3809 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3810 | if test "${enable_debug_cntxt+set}" = set; then | |
3811 | enableval="$enable_debug_cntxt" | |
3812 | ||
3813 | if test "$enableval" = yes; then | |
3814 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3815 | else | |
3816 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3817 | fi | |
3818 | ||
3819 | else | |
3820 | ||
3821 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3822 | if test "x$LINE" != x ; then | |
3823 | eval "DEFAULT_$LINE" | |
3824 | else | |
3825 | no_cache=1 | |
3826 | fi | |
3827 | ||
3828 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3829 | ||
3830 | fi; | |
3831 | ||
3832 | eval "$ac_cv_use_debug_cntxt" | |
3833 | if test "$no_cache" != 1; then | |
3834 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3835 | fi | |
3836 | ||
3837 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3838 | echo "$as_me:$LINENO: result: yes" >&5 | |
3839 | echo "${ECHO_T}yes" >&6 | |
3840 | else | |
3841 | echo "$as_me:$LINENO: result: no" >&5 | |
3842 | echo "${ECHO_T}no" >&6 | |
3843 | fi | |
3844 | ||
3845 | ||
3846 | enablestring= | |
3847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3848 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3849 | no_cache=0 | |
3850 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3851 | if test "${enable_mem_tracing+set}" = set; then | |
3852 | enableval="$enable_mem_tracing" | |
3853 | ||
3854 | if test "$enableval" = yes; then | |
3855 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3856 | else | |
3857 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3858 | fi | |
3859 | ||
3860 | else | |
3861 | ||
3862 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3863 | if test "x$LINE" != x ; then | |
3864 | eval "DEFAULT_$LINE" | |
3865 | else | |
3866 | no_cache=1 | |
3867 | fi | |
3868 | ||
3869 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3870 | ||
3871 | fi; | |
3872 | ||
3873 | eval "$ac_cv_use_mem_tracing" | |
3874 | if test "$no_cache" != 1; then | |
3875 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3876 | fi | |
3877 | ||
3878 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3879 | echo "$as_me:$LINENO: result: yes" >&5 | |
3880 | echo "${ECHO_T}yes" >&6 | |
3881 | else | |
3882 | echo "$as_me:$LINENO: result: no" >&5 | |
3883 | echo "${ECHO_T}no" >&6 | |
3884 | fi | |
3885 | ||
3886 | ||
3887 | enablestring= | |
3888 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3889 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3890 | no_cache=0 | |
3891 | # Check whether --enable-profile or --disable-profile was given. | |
3892 | if test "${enable_profile+set}" = set; then | |
3893 | enableval="$enable_profile" | |
3894 | ||
3895 | if test "$enableval" = yes; then | |
3896 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3897 | else | |
3898 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3899 | fi | |
3900 | ||
3901 | else | |
3902 | ||
3903 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3904 | if test "x$LINE" != x ; then | |
3905 | eval "DEFAULT_$LINE" | |
3906 | else | |
3907 | no_cache=1 | |
3908 | fi | |
3909 | ||
3910 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3911 | ||
3912 | fi; | |
3913 | ||
3914 | eval "$ac_cv_use_profile" | |
3915 | if test "$no_cache" != 1; then | |
3916 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3917 | fi | |
3918 | ||
3919 | if test "$wxUSE_PROFILE" = yes; then | |
3920 | echo "$as_me:$LINENO: result: yes" >&5 | |
3921 | echo "${ECHO_T}yes" >&6 | |
3922 | else | |
3923 | echo "$as_me:$LINENO: result: no" >&5 | |
3924 | echo "${ECHO_T}no" >&6 | |
3925 | fi | |
3926 | ||
3927 | ||
3928 | enablestring= | |
3929 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3930 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3931 | no_cache=0 | |
3932 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3933 | if test "${enable_no_rtti+set}" = set; then | |
3934 | enableval="$enable_no_rtti" | |
3935 | ||
3936 | if test "$enableval" = yes; then | |
3937 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3938 | else | |
3939 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3940 | fi | |
3941 | ||
3942 | else | |
3943 | ||
3944 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3945 | if test "x$LINE" != x ; then | |
3946 | eval "DEFAULT_$LINE" | |
3947 | else | |
3948 | no_cache=1 | |
3949 | fi | |
3950 | ||
3951 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3952 | ||
3953 | fi; | |
3954 | ||
3955 | eval "$ac_cv_use_no_rtti" | |
3956 | if test "$no_cache" != 1; then | |
3957 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3958 | fi | |
3959 | ||
3960 | if test "$wxUSE_NO_RTTI" = yes; then | |
3961 | echo "$as_me:$LINENO: result: yes" >&5 | |
3962 | echo "${ECHO_T}yes" >&6 | |
3963 | else | |
3964 | echo "$as_me:$LINENO: result: no" >&5 | |
3965 | echo "${ECHO_T}no" >&6 | |
3966 | fi | |
3967 | ||
3968 | ||
3969 | enablestring= | |
3970 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3971 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3972 | no_cache=0 | |
3973 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3974 | if test "${enable_no_exceptions+set}" = set; then | |
3975 | enableval="$enable_no_exceptions" | |
3976 | ||
3977 | if test "$enableval" = yes; then | |
3978 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3979 | else | |
3980 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3981 | fi | |
3982 | ||
3983 | else | |
3984 | ||
3985 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3986 | if test "x$LINE" != x ; then | |
3987 | eval "DEFAULT_$LINE" | |
3988 | else | |
3989 | no_cache=1 | |
3990 | fi | |
3991 | ||
3992 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3993 | ||
3994 | fi; | |
3995 | ||
3996 | eval "$ac_cv_use_no_exceptions" | |
3997 | if test "$no_cache" != 1; then | |
3998 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3999 | fi | |
4000 | ||
4001 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4002 | echo "$as_me:$LINENO: result: yes" >&5 | |
4003 | echo "${ECHO_T}yes" >&6 | |
4004 | else | |
4005 | echo "$as_me:$LINENO: result: no" >&5 | |
4006 | echo "${ECHO_T}no" >&6 | |
4007 | fi | |
4008 | ||
4009 | ||
4010 | enablestring= | |
4011 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4012 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4013 | no_cache=0 | |
4014 | # Check whether --enable-permissive or --disable-permissive was given. | |
4015 | if test "${enable_permissive+set}" = set; then | |
4016 | enableval="$enable_permissive" | |
4017 | ||
4018 | if test "$enableval" = yes; then | |
4019 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4020 | else | |
4021 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4022 | fi | |
4023 | ||
4024 | else | |
4025 | ||
4026 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4027 | if test "x$LINE" != x ; then | |
4028 | eval "DEFAULT_$LINE" | |
4029 | else | |
4030 | no_cache=1 | |
4031 | fi | |
4032 | ||
4033 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4034 | ||
4035 | fi; | |
4036 | ||
4037 | eval "$ac_cv_use_permissive" | |
4038 | if test "$no_cache" != 1; then | |
4039 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4040 | fi | |
4041 | ||
4042 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4043 | echo "$as_me:$LINENO: result: yes" >&5 | |
4044 | echo "${ECHO_T}yes" >&6 | |
4045 | else | |
4046 | echo "$as_me:$LINENO: result: no" >&5 | |
4047 | echo "${ECHO_T}no" >&6 | |
4048 | fi | |
4049 | ||
4050 | ||
4051 | enablestring= | |
4052 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4053 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4054 | no_cache=0 | |
4055 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4056 | if test "${enable_no_deps+set}" = set; then | |
4057 | enableval="$enable_no_deps" | |
4058 | ||
4059 | if test "$enableval" = yes; then | |
4060 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4061 | else | |
4062 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4063 | fi | |
4064 | ||
4065 | else | |
4066 | ||
4067 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4068 | if test "x$LINE" != x ; then | |
4069 | eval "DEFAULT_$LINE" | |
4070 | else | |
4071 | no_cache=1 | |
4072 | fi | |
4073 | ||
4074 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4075 | ||
4076 | fi; | |
4077 | ||
4078 | eval "$ac_cv_use_no_deps" | |
4079 | if test "$no_cache" != 1; then | |
4080 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4081 | fi | |
4082 | ||
4083 | if test "$wxUSE_NO_DEPS" = yes; then | |
4084 | echo "$as_me:$LINENO: result: yes" >&5 | |
4085 | echo "${ECHO_T}yes" >&6 | |
4086 | else | |
4087 | echo "$as_me:$LINENO: result: no" >&5 | |
4088 | echo "${ECHO_T}no" >&6 | |
4089 | fi | |
4090 | ||
4091 | ||
4092 | ||
4093 | enablestring= | |
4094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4095 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4096 | no_cache=0 | |
4097 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4098 | if test "${enable_compat22+set}" = set; then | |
4099 | enableval="$enable_compat22" | |
4100 | ||
4101 | if test "$enableval" = yes; then | |
4102 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4103 | else | |
4104 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4105 | fi | |
4106 | ||
4107 | else | |
4108 | ||
4109 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4110 | if test "x$LINE" != x ; then | |
4111 | eval "DEFAULT_$LINE" | |
4112 | else | |
4113 | no_cache=1 | |
4114 | fi | |
4115 | ||
4116 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4117 | ||
4118 | fi; | |
4119 | ||
4120 | eval "$ac_cv_use_compat22" | |
4121 | if test "$no_cache" != 1; then | |
4122 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4123 | fi | |
4124 | ||
4125 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4126 | echo "$as_me:$LINENO: result: yes" >&5 | |
4127 | echo "${ECHO_T}yes" >&6 | |
4128 | else | |
4129 | echo "$as_me:$LINENO: result: no" >&5 | |
4130 | echo "${ECHO_T}no" >&6 | |
4131 | fi | |
4132 | ||
4133 | ||
4134 | enablestring=disable | |
4135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4136 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4137 | no_cache=0 | |
4138 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4139 | if test "${enable_compat24+set}" = set; then | |
4140 | enableval="$enable_compat24" | |
4141 | ||
4142 | if test "$enableval" = yes; then | |
4143 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4144 | else | |
4145 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4146 | fi | |
4147 | ||
4148 | else | |
4149 | ||
4150 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4151 | if test "x$LINE" != x ; then | |
4152 | eval "DEFAULT_$LINE" | |
4153 | else | |
4154 | no_cache=1 | |
4155 | fi | |
4156 | ||
4157 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4158 | ||
4159 | fi; | |
4160 | ||
4161 | eval "$ac_cv_use_compat24" | |
4162 | if test "$no_cache" != 1; then | |
4163 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4164 | fi | |
4165 | ||
4166 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4167 | echo "$as_me:$LINENO: result: yes" >&5 | |
4168 | echo "${ECHO_T}yes" >&6 | |
4169 | else | |
4170 | echo "$as_me:$LINENO: result: no" >&5 | |
4171 | echo "${ECHO_T}no" >&6 | |
4172 | fi | |
4173 | ||
4174 | ||
ffa0583f RL |
4175 | |
4176 | enablestring= | |
4177 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4178 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4179 | no_cache=0 | |
4180 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4181 | if test "${enable_rpath+set}" = set; then |
4182 | enableval="$enable_rpath" | |
ffa0583f RL |
4183 | |
4184 | if test "$enableval" = yes; then | |
4185 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4186 | else | |
4187 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4188 | fi | |
4189 | ||
4190 | else | |
4191 | ||
4192 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4193 | if test "x$LINE" != x ; then | |
4194 | eval "DEFAULT_$LINE" | |
4195 | else | |
4196 | no_cache=1 | |
4197 | fi | |
4198 | ||
4199 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4200 | ||
a848cd7e SC |
4201 | fi; |
4202 | ||
ffa0583f RL |
4203 | eval "$ac_cv_use_rpath" |
4204 | if test "$no_cache" != 1; then | |
4205 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4206 | fi | |
4207 | ||
4208 | if test "$wxUSE_RPATH" = yes; then | |
4209 | echo "$as_me:$LINENO: result: yes" >&5 | |
4210 | echo "${ECHO_T}yes" >&6 | |
4211 | else | |
4212 | echo "$as_me:$LINENO: result: no" >&5 | |
4213 | echo "${ECHO_T}no" >&6 | |
4214 | fi | |
4215 | ||
a848cd7e SC |
4216 | |
4217 | ||
4218 | ||
4219 | ||
4220 | enablestring= | |
4221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4222 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4223 | no_cache=0 | |
4224 | # Check whether --enable-intl or --disable-intl was given. | |
4225 | if test "${enable_intl+set}" = set; then | |
4226 | enableval="$enable_intl" | |
4227 | ||
4228 | if test "$enableval" = yes; then | |
4229 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4230 | else | |
4231 | ac_cv_use_intl='wxUSE_INTL=no' | |
4232 | fi | |
4233 | ||
4234 | else | |
4235 | ||
4236 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4237 | if test "x$LINE" != x ; then | |
4238 | eval "DEFAULT_$LINE" | |
4239 | else | |
4240 | no_cache=1 | |
4241 | fi | |
4242 | ||
4243 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4244 | ||
4245 | fi; | |
4246 | ||
4247 | eval "$ac_cv_use_intl" | |
4248 | if test "$no_cache" != 1; then | |
4249 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4250 | fi | |
4251 | ||
4252 | if test "$wxUSE_INTL" = yes; then | |
4253 | echo "$as_me:$LINENO: result: yes" >&5 | |
4254 | echo "${ECHO_T}yes" >&6 | |
4255 | else | |
4256 | echo "$as_me:$LINENO: result: no" >&5 | |
4257 | echo "${ECHO_T}no" >&6 | |
4258 | fi | |
4259 | ||
4260 | ||
4261 | enablestring= | |
4262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4263 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4264 | no_cache=0 | |
4265 | # Check whether --enable-config or --disable-config was given. | |
4266 | if test "${enable_config+set}" = set; then | |
4267 | enableval="$enable_config" | |
4268 | ||
4269 | if test "$enableval" = yes; then | |
4270 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4271 | else | |
4272 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4273 | fi | |
4274 | ||
4275 | else | |
4276 | ||
4277 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4278 | if test "x$LINE" != x ; then | |
4279 | eval "DEFAULT_$LINE" | |
4280 | else | |
4281 | no_cache=1 | |
4282 | fi | |
4283 | ||
4284 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4285 | ||
4286 | fi; | |
4287 | ||
4288 | eval "$ac_cv_use_config" | |
4289 | if test "$no_cache" != 1; then | |
4290 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4291 | fi | |
4292 | ||
4293 | if test "$wxUSE_CONFIG" = yes; then | |
4294 | echo "$as_me:$LINENO: result: yes" >&5 | |
4295 | echo "${ECHO_T}yes" >&6 | |
4296 | else | |
4297 | echo "$as_me:$LINENO: result: no" >&5 | |
4298 | echo "${ECHO_T}no" >&6 | |
4299 | fi | |
4300 | ||
4301 | ||
4302 | ||
4303 | enablestring= | |
4304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4305 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4306 | no_cache=0 | |
4307 | # Check whether --enable-protocols or --disable-protocols was given. | |
4308 | if test "${enable_protocols+set}" = set; then | |
4309 | enableval="$enable_protocols" | |
4310 | ||
4311 | if test "$enableval" = yes; then | |
4312 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4313 | else | |
4314 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4315 | fi | |
4316 | ||
4317 | else | |
4318 | ||
4319 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4320 | if test "x$LINE" != x ; then | |
4321 | eval "DEFAULT_$LINE" | |
4322 | else | |
4323 | no_cache=1 | |
4324 | fi | |
4325 | ||
4326 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4327 | ||
4328 | fi; | |
4329 | ||
4330 | eval "$ac_cv_use_protocols" | |
4331 | if test "$no_cache" != 1; then | |
4332 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4333 | fi | |
4334 | ||
4335 | if test "$wxUSE_PROTOCOL" = yes; then | |
4336 | echo "$as_me:$LINENO: result: yes" >&5 | |
4337 | echo "${ECHO_T}yes" >&6 | |
4338 | else | |
4339 | echo "$as_me:$LINENO: result: no" >&5 | |
4340 | echo "${ECHO_T}no" >&6 | |
4341 | fi | |
4342 | ||
4343 | ||
4344 | enablestring= | |
4345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4346 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4347 | no_cache=0 | |
4348 | # Check whether --enable-ftp or --disable-ftp was given. | |
4349 | if test "${enable_ftp+set}" = set; then | |
4350 | enableval="$enable_ftp" | |
4351 | ||
4352 | if test "$enableval" = yes; then | |
4353 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4354 | else | |
4355 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4356 | fi | |
4357 | ||
4358 | else | |
4359 | ||
4360 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4361 | if test "x$LINE" != x ; then | |
4362 | eval "DEFAULT_$LINE" | |
4363 | else | |
4364 | no_cache=1 | |
4365 | fi | |
4366 | ||
4367 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4368 | ||
4369 | fi; | |
4370 | ||
4371 | eval "$ac_cv_use_ftp" | |
4372 | if test "$no_cache" != 1; then | |
4373 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4374 | fi | |
4375 | ||
4376 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4377 | echo "$as_me:$LINENO: result: yes" >&5 | |
4378 | echo "${ECHO_T}yes" >&6 | |
4379 | else | |
4380 | echo "$as_me:$LINENO: result: no" >&5 | |
4381 | echo "${ECHO_T}no" >&6 | |
4382 | fi | |
4383 | ||
4384 | ||
4385 | enablestring= | |
4386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4387 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4388 | no_cache=0 | |
4389 | # Check whether --enable-http or --disable-http was given. | |
4390 | if test "${enable_http+set}" = set; then | |
4391 | enableval="$enable_http" | |
4392 | ||
4393 | if test "$enableval" = yes; then | |
4394 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4395 | else | |
4396 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4397 | fi | |
4398 | ||
4399 | else | |
4400 | ||
4401 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4402 | if test "x$LINE" != x ; then | |
4403 | eval "DEFAULT_$LINE" | |
4404 | else | |
4405 | no_cache=1 | |
4406 | fi | |
4407 | ||
4408 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4409 | ||
4410 | fi; | |
4411 | ||
4412 | eval "$ac_cv_use_http" | |
4413 | if test "$no_cache" != 1; then | |
4414 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4415 | fi | |
4416 | ||
4417 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4418 | echo "$as_me:$LINENO: result: yes" >&5 | |
4419 | echo "${ECHO_T}yes" >&6 | |
4420 | else | |
4421 | echo "$as_me:$LINENO: result: no" >&5 | |
4422 | echo "${ECHO_T}no" >&6 | |
4423 | fi | |
4424 | ||
4425 | ||
4426 | enablestring= | |
4427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4428 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4429 | no_cache=0 | |
4430 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4431 | if test "${enable_fileproto+set}" = set; then | |
4432 | enableval="$enable_fileproto" | |
4433 | ||
4434 | if test "$enableval" = yes; then | |
4435 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4436 | else | |
4437 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4438 | fi | |
4439 | ||
4440 | else | |
4441 | ||
4442 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4443 | if test "x$LINE" != x ; then | |
4444 | eval "DEFAULT_$LINE" | |
4445 | else | |
4446 | no_cache=1 | |
4447 | fi | |
4448 | ||
4449 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4450 | ||
4451 | fi; | |
4452 | ||
4453 | eval "$ac_cv_use_fileproto" | |
4454 | if test "$no_cache" != 1; then | |
4455 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4456 | fi | |
4457 | ||
4458 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4459 | echo "$as_me:$LINENO: result: yes" >&5 | |
4460 | echo "${ECHO_T}yes" >&6 | |
4461 | else | |
4462 | echo "$as_me:$LINENO: result: no" >&5 | |
4463 | echo "${ECHO_T}no" >&6 | |
4464 | fi | |
4465 | ||
4466 | ||
4467 | enablestring= | |
4468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4469 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4470 | no_cache=0 | |
4471 | # Check whether --enable-sockets or --disable-sockets was given. | |
4472 | if test "${enable_sockets+set}" = set; then | |
4473 | enableval="$enable_sockets" | |
4474 | ||
4475 | if test "$enableval" = yes; then | |
4476 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4477 | else | |
4478 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4479 | fi | |
4480 | ||
4481 | else | |
4482 | ||
4483 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4484 | if test "x$LINE" != x ; then | |
4485 | eval "DEFAULT_$LINE" | |
4486 | else | |
4487 | no_cache=1 | |
4488 | fi | |
4489 | ||
4490 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4491 | ||
4492 | fi; | |
4493 | ||
4494 | eval "$ac_cv_use_sockets" | |
4495 | if test "$no_cache" != 1; then | |
4496 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4497 | fi | |
4498 | ||
4499 | if test "$wxUSE_SOCKETS" = yes; then | |
4500 | echo "$as_me:$LINENO: result: yes" >&5 | |
4501 | echo "${ECHO_T}yes" >&6 | |
4502 | else | |
4503 | echo "$as_me:$LINENO: result: no" >&5 | |
4504 | echo "${ECHO_T}no" >&6 | |
4505 | fi | |
4506 | ||
4507 | ||
4508 | enablestring= | |
4509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4510 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4511 | no_cache=0 | |
4512 | # Check whether --enable-ole or --disable-ole was given. | |
4513 | if test "${enable_ole+set}" = set; then | |
4514 | enableval="$enable_ole" | |
4515 | ||
4516 | if test "$enableval" = yes; then | |
4517 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4518 | else | |
4519 | ac_cv_use_ole='wxUSE_OLE=no' | |
4520 | fi | |
4521 | ||
4522 | else | |
4523 | ||
4524 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4525 | if test "x$LINE" != x ; then | |
4526 | eval "DEFAULT_$LINE" | |
4527 | else | |
4528 | no_cache=1 | |
4529 | fi | |
4530 | ||
4531 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4532 | ||
4533 | fi; | |
4534 | ||
4535 | eval "$ac_cv_use_ole" | |
4536 | if test "$no_cache" != 1; then | |
4537 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4538 | fi | |
4539 | ||
4540 | if test "$wxUSE_OLE" = yes; then | |
4541 | echo "$as_me:$LINENO: result: yes" >&5 | |
4542 | echo "${ECHO_T}yes" >&6 | |
4543 | else | |
4544 | echo "$as_me:$LINENO: result: no" >&5 | |
4545 | echo "${ECHO_T}no" >&6 | |
4546 | fi | |
4547 | ||
4548 | ||
4549 | enablestring= | |
4550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4551 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4552 | no_cache=0 | |
4553 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4554 | if test "${enable_dataobj+set}" = set; then | |
4555 | enableval="$enable_dataobj" | |
4556 | ||
4557 | if test "$enableval" = yes; then | |
4558 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4559 | else | |
4560 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4561 | fi | |
4562 | ||
4563 | else | |
4564 | ||
4565 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4566 | if test "x$LINE" != x ; then | |
4567 | eval "DEFAULT_$LINE" | |
4568 | else | |
4569 | no_cache=1 | |
4570 | fi | |
4571 | ||
4572 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4573 | ||
4574 | fi; | |
4575 | ||
4576 | eval "$ac_cv_use_dataobj" | |
4577 | if test "$no_cache" != 1; then | |
4578 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4579 | fi | |
4580 | ||
4581 | if test "$wxUSE_DATAOBJ" = yes; then | |
4582 | echo "$as_me:$LINENO: result: yes" >&5 | |
4583 | echo "${ECHO_T}yes" >&6 | |
4584 | else | |
4585 | echo "$as_me:$LINENO: result: no" >&5 | |
4586 | echo "${ECHO_T}no" >&6 | |
4587 | fi | |
4588 | ||
4589 | ||
4590 | ||
4591 | enablestring= | |
4592 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4593 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4594 | no_cache=0 | |
4595 | # Check whether --enable-ipc or --disable-ipc was given. | |
4596 | if test "${enable_ipc+set}" = set; then | |
4597 | enableval="$enable_ipc" | |
4598 | ||
4599 | if test "$enableval" = yes; then | |
4600 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4601 | else | |
4602 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4603 | fi | |
4604 | ||
4605 | else | |
4606 | ||
4607 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4608 | if test "x$LINE" != x ; then | |
4609 | eval "DEFAULT_$LINE" | |
4610 | else | |
4611 | no_cache=1 | |
4612 | fi | |
4613 | ||
4614 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4615 | ||
4616 | fi; | |
4617 | ||
4618 | eval "$ac_cv_use_ipc" | |
4619 | if test "$no_cache" != 1; then | |
4620 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4621 | fi | |
4622 | ||
4623 | if test "$wxUSE_IPC" = yes; then | |
4624 | echo "$as_me:$LINENO: result: yes" >&5 | |
4625 | echo "${ECHO_T}yes" >&6 | |
4626 | else | |
4627 | echo "$as_me:$LINENO: result: no" >&5 | |
4628 | echo "${ECHO_T}no" >&6 | |
4629 | fi | |
4630 | ||
4631 | ||
4632 | ||
4633 | enablestring= | |
4634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4635 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4636 | no_cache=0 | |
4637 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4638 | if test "${enable_apple_ieee+set}" = set; then | |
4639 | enableval="$enable_apple_ieee" | |
4640 | ||
4641 | if test "$enableval" = yes; then | |
4642 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4643 | else | |
4644 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4645 | fi | |
4646 | ||
4647 | else | |
4648 | ||
4649 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4650 | if test "x$LINE" != x ; then | |
4651 | eval "DEFAULT_$LINE" | |
4652 | else | |
4653 | no_cache=1 | |
4654 | fi | |
4655 | ||
4656 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4657 | ||
4658 | fi; | |
4659 | ||
4660 | eval "$ac_cv_use_apple_ieee" | |
4661 | if test "$no_cache" != 1; then | |
4662 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4663 | fi | |
4664 | ||
4665 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4666 | echo "$as_me:$LINENO: result: yes" >&5 | |
4667 | echo "${ECHO_T}yes" >&6 | |
4668 | else | |
4669 | echo "$as_me:$LINENO: result: no" >&5 | |
4670 | echo "${ECHO_T}no" >&6 | |
4671 | fi | |
4672 | ||
4673 | ||
81f90336 MW |
4674 | enablestring= |
4675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4676 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4677 | no_cache=0 | |
4678 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4679 | if test "${enable_arcstream+set}" = set; then | |
4680 | enableval="$enable_arcstream" | |
4681 | ||
4682 | if test "$enableval" = yes; then | |
9e8e867f | 4683 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4684 | else |
9e8e867f | 4685 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4686 | fi |
4687 | ||
4688 | else | |
4689 | ||
9e8e867f | 4690 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4691 | if test "x$LINE" != x ; then |
4692 | eval "DEFAULT_$LINE" | |
4693 | else | |
4694 | no_cache=1 | |
4695 | fi | |
4696 | ||
9e8e867f | 4697 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4698 | |
4699 | fi; | |
4700 | ||
4701 | eval "$ac_cv_use_arcstream" | |
4702 | if test "$no_cache" != 1; then | |
4703 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4704 | fi | |
4705 | ||
9e8e867f | 4706 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4707 | echo "$as_me:$LINENO: result: yes" >&5 |
4708 | echo "${ECHO_T}yes" >&6 | |
4709 | else | |
4710 | echo "$as_me:$LINENO: result: no" >&5 | |
4711 | echo "${ECHO_T}no" >&6 | |
4712 | fi | |
4713 | ||
4714 | ||
a848cd7e SC |
4715 | enablestring= |
4716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4717 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4718 | no_cache=0 | |
4719 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4720 | if test "${enable_catch_segvs+set}" = set; then | |
4721 | enableval="$enable_catch_segvs" | |
4722 | ||
4723 | if test "$enableval" = yes; then | |
4724 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4725 | else | |
4726 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4727 | fi | |
4728 | ||
4729 | else | |
4730 | ||
4731 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4732 | if test "x$LINE" != x ; then | |
4733 | eval "DEFAULT_$LINE" | |
4734 | else | |
4735 | no_cache=1 | |
4736 | fi | |
4737 | ||
4738 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4739 | ||
4740 | fi; | |
4741 | ||
4742 | eval "$ac_cv_use_catch_segvs" | |
4743 | if test "$no_cache" != 1; then | |
4744 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4745 | fi | |
4746 | ||
4747 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4748 | echo "$as_me:$LINENO: result: yes" >&5 | |
4749 | echo "${ECHO_T}yes" >&6 | |
4750 | else | |
4751 | echo "$as_me:$LINENO: result: no" >&5 | |
4752 | echo "${ECHO_T}no" >&6 | |
4753 | fi | |
4754 | ||
4755 | ||
eaff0f0d VZ |
4756 | enablestring= |
4757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 | |
4758 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
4759 | no_cache=0 | |
4760 | # Check whether --enable-backtrace or --disable-backtrace was given. | |
4761 | if test "${enable_backtrace+set}" = set; then | |
4762 | enableval="$enable_backtrace" | |
4763 | ||
4764 | if test "$enableval" = yes; then | |
4765 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' | |
4766 | else | |
4767 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' | |
4768 | fi | |
4769 | ||
4770 | else | |
4771 | ||
4772 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` | |
4773 | if test "x$LINE" != x ; then | |
4774 | eval "DEFAULT_$LINE" | |
4775 | else | |
4776 | no_cache=1 | |
4777 | fi | |
4778 | ||
4779 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER | |
4780 | ||
4781 | fi; | |
4782 | ||
4783 | eval "$ac_cv_use_backtrace" | |
4784 | if test "$no_cache" != 1; then | |
4785 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp | |
4786 | fi | |
4787 | ||
4788 | if test "$wxUSE_STACKWALKER" = yes; then | |
4789 | echo "$as_me:$LINENO: result: yes" >&5 | |
4790 | echo "${ECHO_T}yes" >&6 | |
4791 | else | |
4792 | echo "$as_me:$LINENO: result: no" >&5 | |
4793 | echo "${ECHO_T}no" >&6 | |
4794 | fi | |
4795 | ||
4796 | ||
a848cd7e SC |
4797 | enablestring= |
4798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4799 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4800 | no_cache=0 | |
4801 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4802 | if test "${enable_cmdline+set}" = set; then | |
4803 | enableval="$enable_cmdline" | |
4804 | ||
4805 | if test "$enableval" = yes; then | |
4806 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4807 | else | |
4808 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4809 | fi | |
4810 | ||
4811 | else | |
4812 | ||
4813 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4814 | if test "x$LINE" != x ; then | |
4815 | eval "DEFAULT_$LINE" | |
4816 | else | |
4817 | no_cache=1 | |
4818 | fi | |
4819 | ||
4820 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4821 | ||
4822 | fi; | |
4823 | ||
4824 | eval "$ac_cv_use_cmdline" | |
4825 | if test "$no_cache" != 1; then | |
4826 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4827 | fi | |
4828 | ||
4829 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4830 | echo "$as_me:$LINENO: result: yes" >&5 | |
4831 | echo "${ECHO_T}yes" >&6 | |
4832 | else | |
4833 | echo "$as_me:$LINENO: result: no" >&5 | |
4834 | echo "${ECHO_T}no" >&6 | |
4835 | fi | |
4836 | ||
4837 | ||
4838 | enablestring= | |
4839 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4840 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4841 | no_cache=0 | |
4842 | # Check whether --enable-datetime or --disable-datetime was given. | |
4843 | if test "${enable_datetime+set}" = set; then | |
4844 | enableval="$enable_datetime" | |
4845 | ||
4846 | if test "$enableval" = yes; then | |
4847 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4848 | else | |
4849 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4850 | fi | |
4851 | ||
4852 | else | |
4853 | ||
4854 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4855 | if test "x$LINE" != x ; then | |
4856 | eval "DEFAULT_$LINE" | |
4857 | else | |
4858 | no_cache=1 | |
4859 | fi | |
4860 | ||
4861 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4862 | ||
4863 | fi; | |
4864 | ||
4865 | eval "$ac_cv_use_datetime" | |
4866 | if test "$no_cache" != 1; then | |
4867 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4868 | fi | |
4869 | ||
4870 | if test "$wxUSE_DATETIME" = yes; then | |
4871 | echo "$as_me:$LINENO: result: yes" >&5 | |
4872 | echo "${ECHO_T}yes" >&6 | |
4873 | else | |
4874 | echo "$as_me:$LINENO: result: no" >&5 | |
4875 | echo "${ECHO_T}no" >&6 | |
4876 | fi | |
4877 | ||
4878 | ||
4879 | enablestring= | |
4880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4881 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4882 | no_cache=0 | |
4883 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4884 | if test "${enable_dialupman+set}" = set; then | |
4885 | enableval="$enable_dialupman" | |
4886 | ||
4887 | if test "$enableval" = yes; then | |
4888 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4889 | else | |
4890 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4891 | fi | |
4892 | ||
4893 | else | |
4894 | ||
4895 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4896 | if test "x$LINE" != x ; then | |
4897 | eval "DEFAULT_$LINE" | |
4898 | else | |
4899 | no_cache=1 | |
4900 | fi | |
4901 | ||
4902 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4903 | ||
4904 | fi; | |
4905 | ||
4906 | eval "$ac_cv_use_dialupman" | |
4907 | if test "$no_cache" != 1; then | |
4908 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4909 | fi | |
4910 | ||
4911 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4912 | echo "$as_me:$LINENO: result: yes" >&5 | |
4913 | echo "${ECHO_T}yes" >&6 | |
4914 | else | |
4915 | echo "$as_me:$LINENO: result: no" >&5 | |
4916 | echo "${ECHO_T}no" >&6 | |
4917 | fi | |
4918 | ||
4919 | ||
4920 | enablestring= | |
4921 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4922 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4923 | no_cache=0 | |
4924 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4925 | if test "${enable_dynlib+set}" = set; then | |
4926 | enableval="$enable_dynlib" | |
4927 | ||
4928 | if test "$enableval" = yes; then | |
4929 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4930 | else | |
4931 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4932 | fi | |
4933 | ||
4934 | else | |
4935 | ||
4936 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4937 | if test "x$LINE" != x ; then | |
4938 | eval "DEFAULT_$LINE" | |
4939 | else | |
4940 | no_cache=1 | |
4941 | fi | |
4942 | ||
4943 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4944 | ||
4945 | fi; | |
4946 | ||
4947 | eval "$ac_cv_use_dynlib" | |
4948 | if test "$no_cache" != 1; then | |
4949 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4950 | fi | |
4951 | ||
4952 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4953 | echo "$as_me:$LINENO: result: yes" >&5 | |
4954 | echo "${ECHO_T}yes" >&6 | |
4955 | else | |
4956 | echo "$as_me:$LINENO: result: no" >&5 | |
4957 | echo "${ECHO_T}no" >&6 | |
4958 | fi | |
4959 | ||
4960 | ||
4961 | enablestring= | |
4962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4963 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4964 | no_cache=0 | |
4965 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4966 | if test "${enable_dynamicloader+set}" = set; then | |
4967 | enableval="$enable_dynamicloader" | |
4968 | ||
4969 | if test "$enableval" = yes; then | |
4970 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4971 | else | |
4972 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4973 | fi | |
4974 | ||
4975 | else | |
4976 | ||
4977 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4978 | if test "x$LINE" != x ; then | |
4979 | eval "DEFAULT_$LINE" | |
4980 | else | |
4981 | no_cache=1 | |
4982 | fi | |
4983 | ||
4984 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4985 | ||
4986 | fi; | |
4987 | ||
4988 | eval "$ac_cv_use_dynamicloader" | |
4989 | if test "$no_cache" != 1; then | |
4990 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4991 | fi | |
4992 | ||
4993 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4994 | echo "$as_me:$LINENO: result: yes" >&5 | |
4995 | echo "${ECHO_T}yes" >&6 | |
4996 | else | |
4997 | echo "$as_me:$LINENO: result: no" >&5 | |
4998 | echo "${ECHO_T}no" >&6 | |
4999 | fi | |
5000 | ||
5001 | ||
5002 | enablestring= | |
5003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5004 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5005 | no_cache=0 | |
5006 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5007 | if test "${enable_exceptions+set}" = set; then | |
5008 | enableval="$enable_exceptions" | |
5009 | ||
5010 | if test "$enableval" = yes; then | |
5011 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5012 | else | |
5013 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5014 | fi | |
5015 | ||
5016 | else | |
5017 | ||
5018 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5019 | if test "x$LINE" != x ; then | |
5020 | eval "DEFAULT_$LINE" | |
5021 | else | |
5022 | no_cache=1 | |
5023 | fi | |
5024 | ||
5025 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5026 | ||
5027 | fi; | |
5028 | ||
5029 | eval "$ac_cv_use_exceptions" | |
5030 | if test "$no_cache" != 1; then | |
5031 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5032 | fi | |
5033 | ||
5034 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5035 | echo "$as_me:$LINENO: result: yes" >&5 | |
5036 | echo "${ECHO_T}yes" >&6 | |
5037 | else | |
5038 | echo "$as_me:$LINENO: result: no" >&5 | |
5039 | echo "${ECHO_T}no" >&6 | |
5040 | fi | |
5041 | ||
5042 | ||
5043 | enablestring= | |
5044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5045 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5046 | no_cache=0 | |
5047 | # Check whether --enable-ffile or --disable-ffile was given. | |
5048 | if test "${enable_ffile+set}" = set; then | |
5049 | enableval="$enable_ffile" | |
5050 | ||
5051 | if test "$enableval" = yes; then | |
5052 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5053 | else | |
5054 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5055 | fi | |
5056 | ||
5057 | else | |
5058 | ||
5059 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5060 | if test "x$LINE" != x ; then | |
5061 | eval "DEFAULT_$LINE" | |
5062 | else | |
5063 | no_cache=1 | |
5064 | fi | |
5065 | ||
5066 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5067 | ||
5068 | fi; | |
5069 | ||
5070 | eval "$ac_cv_use_ffile" | |
5071 | if test "$no_cache" != 1; then | |
5072 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5073 | fi | |
5074 | ||
5075 | if test "$wxUSE_FFILE" = yes; then | |
5076 | echo "$as_me:$LINENO: result: yes" >&5 | |
5077 | echo "${ECHO_T}yes" >&6 | |
5078 | else | |
5079 | echo "$as_me:$LINENO: result: no" >&5 | |
5080 | echo "${ECHO_T}no" >&6 | |
5081 | fi | |
5082 | ||
5083 | ||
5084 | enablestring= | |
5085 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5086 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5087 | no_cache=0 | |
5088 | # Check whether --enable-file or --disable-file was given. | |
5089 | if test "${enable_file+set}" = set; then | |
5090 | enableval="$enable_file" | |
5091 | ||
5092 | if test "$enableval" = yes; then | |
5093 | ac_cv_use_file='wxUSE_FILE=yes' | |
5094 | else | |
5095 | ac_cv_use_file='wxUSE_FILE=no' | |
5096 | fi | |
5097 | ||
5098 | else | |
5099 | ||
5100 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5101 | if test "x$LINE" != x ; then | |
5102 | eval "DEFAULT_$LINE" | |
5103 | else | |
5104 | no_cache=1 | |
5105 | fi | |
5106 | ||
5107 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5108 | ||
5109 | fi; | |
5110 | ||
5111 | eval "$ac_cv_use_file" | |
5112 | if test "$no_cache" != 1; then | |
5113 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5114 | fi | |
5115 | ||
5116 | if test "$wxUSE_FILE" = yes; then | |
5117 | echo "$as_me:$LINENO: result: yes" >&5 | |
5118 | echo "${ECHO_T}yes" >&6 | |
5119 | else | |
5120 | echo "$as_me:$LINENO: result: no" >&5 | |
5121 | echo "${ECHO_T}no" >&6 | |
5122 | fi | |
5123 | ||
5124 | ||
5125 | enablestring= | |
5126 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5127 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5128 | no_cache=0 | |
5129 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5130 | if test "${enable_filesystem+set}" = set; then | |
5131 | enableval="$enable_filesystem" | |
5132 | ||
5133 | if test "$enableval" = yes; then | |
5134 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5135 | else | |
5136 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5137 | fi | |
5138 | ||
5139 | else | |
5140 | ||
5141 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5142 | if test "x$LINE" != x ; then | |
5143 | eval "DEFAULT_$LINE" | |
5144 | else | |
5145 | no_cache=1 | |
5146 | fi | |
5147 | ||
5148 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5149 | ||
5150 | fi; | |
5151 | ||
5152 | eval "$ac_cv_use_filesystem" | |
5153 | if test "$no_cache" != 1; then | |
5154 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5155 | fi | |
5156 | ||
5157 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5158 | echo "$as_me:$LINENO: result: yes" >&5 | |
5159 | echo "${ECHO_T}yes" >&6 | |
5160 | else | |
5161 | echo "$as_me:$LINENO: result: no" >&5 | |
5162 | echo "${ECHO_T}no" >&6 | |
5163 | fi | |
5164 | ||
5165 | ||
5166 | enablestring= | |
5167 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5168 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5169 | no_cache=0 | |
5170 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5171 | if test "${enable_fontmap+set}" = set; then | |
5172 | enableval="$enable_fontmap" | |
5173 | ||
5174 | if test "$enableval" = yes; then | |
5175 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5176 | else | |
5177 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5178 | fi | |
5179 | ||
5180 | else | |
5181 | ||
5182 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5183 | if test "x$LINE" != x ; then | |
5184 | eval "DEFAULT_$LINE" | |
5185 | else | |
5186 | no_cache=1 | |
5187 | fi | |
5188 | ||
5189 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5190 | ||
5191 | fi; | |
5192 | ||
5193 | eval "$ac_cv_use_fontmap" | |
5194 | if test "$no_cache" != 1; then | |
5195 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5196 | fi | |
5197 | ||
5198 | if test "$wxUSE_FONTMAP" = yes; then | |
5199 | echo "$as_me:$LINENO: result: yes" >&5 | |
5200 | echo "${ECHO_T}yes" >&6 | |
5201 | else | |
5202 | echo "$as_me:$LINENO: result: no" >&5 | |
5203 | echo "${ECHO_T}no" >&6 | |
5204 | fi | |
5205 | ||
5206 | ||
5207 | enablestring= | |
5208 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5209 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5210 | no_cache=0 | |
5211 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5212 | if test "${enable_fs_inet+set}" = set; then | |
5213 | enableval="$enable_fs_inet" | |
5214 | ||
5215 | if test "$enableval" = yes; then | |
5216 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5217 | else | |
5218 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5219 | fi | |
5220 | ||
5221 | else | |
5222 | ||
5223 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5224 | if test "x$LINE" != x ; then | |
5225 | eval "DEFAULT_$LINE" | |
5226 | else | |
5227 | no_cache=1 | |
5228 | fi | |
5229 | ||
5230 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5231 | ||
5232 | fi; | |
5233 | ||
5234 | eval "$ac_cv_use_fs_inet" | |
5235 | if test "$no_cache" != 1; then | |
5236 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5237 | fi | |
5238 | ||
5239 | if test "$wxUSE_FS_INET" = yes; then | |
5240 | echo "$as_me:$LINENO: result: yes" >&5 | |
5241 | echo "${ECHO_T}yes" >&6 | |
5242 | else | |
5243 | echo "$as_me:$LINENO: result: no" >&5 | |
5244 | echo "${ECHO_T}no" >&6 | |
5245 | fi | |
5246 | ||
5247 | ||
5248 | enablestring= | |
5249 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5250 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5251 | no_cache=0 | |
5252 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5253 | if test "${enable_fs_zip+set}" = set; then | |
5254 | enableval="$enable_fs_zip" | |
5255 | ||
5256 | if test "$enableval" = yes; then | |
5257 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5258 | else | |
5259 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5260 | fi | |
5261 | ||
5262 | else | |
5263 | ||
5264 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | else | |
5268 | no_cache=1 | |
5269 | fi | |
5270 | ||
5271 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5272 | ||
5273 | fi; | |
5274 | ||
5275 | eval "$ac_cv_use_fs_zip" | |
5276 | if test "$no_cache" != 1; then | |
5277 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5278 | fi | |
5279 | ||
5280 | if test "$wxUSE_FS_ZIP" = yes; then | |
5281 | echo "$as_me:$LINENO: result: yes" >&5 | |
5282 | echo "${ECHO_T}yes" >&6 | |
5283 | else | |
5284 | echo "$as_me:$LINENO: result: no" >&5 | |
5285 | echo "${ECHO_T}no" >&6 | |
5286 | fi | |
5287 | ||
5288 | ||
5289 | enablestring= | |
5290 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5291 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5292 | no_cache=0 | |
5293 | # Check whether --enable-geometry or --disable-geometry was given. | |
5294 | if test "${enable_geometry+set}" = set; then | |
5295 | enableval="$enable_geometry" | |
5296 | ||
5297 | if test "$enableval" = yes; then | |
5298 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5299 | else | |
5300 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5301 | fi | |
5302 | ||
5303 | else | |
5304 | ||
5305 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5306 | if test "x$LINE" != x ; then | |
5307 | eval "DEFAULT_$LINE" | |
5308 | else | |
5309 | no_cache=1 | |
5310 | fi | |
5311 | ||
5312 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5313 | ||
5314 | fi; | |
5315 | ||
5316 | eval "$ac_cv_use_geometry" | |
5317 | if test "$no_cache" != 1; then | |
5318 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5319 | fi | |
5320 | ||
5321 | if test "$wxUSE_GEOMETRY" = yes; then | |
5322 | echo "$as_me:$LINENO: result: yes" >&5 | |
5323 | echo "${ECHO_T}yes" >&6 | |
5324 | else | |
5325 | echo "$as_me:$LINENO: result: no" >&5 | |
5326 | echo "${ECHO_T}no" >&6 | |
5327 | fi | |
5328 | ||
5329 | ||
5330 | enablestring= | |
5331 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5332 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5333 | no_cache=0 | |
5334 | # Check whether --enable-log or --disable-log was given. | |
5335 | if test "${enable_log+set}" = set; then | |
5336 | enableval="$enable_log" | |
5337 | ||
5338 | if test "$enableval" = yes; then | |
5339 | ac_cv_use_log='wxUSE_LOG=yes' | |
5340 | else | |
5341 | ac_cv_use_log='wxUSE_LOG=no' | |
5342 | fi | |
5343 | ||
5344 | else | |
5345 | ||
5346 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5347 | if test "x$LINE" != x ; then | |
5348 | eval "DEFAULT_$LINE" | |
5349 | else | |
5350 | no_cache=1 | |
5351 | fi | |
5352 | ||
5353 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5354 | ||
5355 | fi; | |
5356 | ||
5357 | eval "$ac_cv_use_log" | |
5358 | if test "$no_cache" != 1; then | |
5359 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5360 | fi | |
5361 | ||
5362 | if test "$wxUSE_LOG" = yes; then | |
5363 | echo "$as_me:$LINENO: result: yes" >&5 | |
5364 | echo "${ECHO_T}yes" >&6 | |
5365 | else | |
5366 | echo "$as_me:$LINENO: result: no" >&5 | |
5367 | echo "${ECHO_T}no" >&6 | |
5368 | fi | |
5369 | ||
5370 | ||
5371 | enablestring= | |
5372 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5373 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5374 | no_cache=0 | |
5375 | # Check whether --enable-longlong or --disable-longlong was given. | |
5376 | if test "${enable_longlong+set}" = set; then | |
5377 | enableval="$enable_longlong" | |
5378 | ||
5379 | if test "$enableval" = yes; then | |
5380 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5381 | else | |
5382 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5383 | fi | |
5384 | ||
5385 | else | |
5386 | ||
5387 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5388 | if test "x$LINE" != x ; then | |
5389 | eval "DEFAULT_$LINE" | |
5390 | else | |
5391 | no_cache=1 | |
5392 | fi | |
5393 | ||
5394 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5395 | ||
5396 | fi; | |
5397 | ||
5398 | eval "$ac_cv_use_longlong" | |
5399 | if test "$no_cache" != 1; then | |
5400 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5401 | fi | |
5402 | ||
5403 | if test "$wxUSE_LONGLONG" = yes; then | |
5404 | echo "$as_me:$LINENO: result: yes" >&5 | |
5405 | echo "${ECHO_T}yes" >&6 | |
5406 | else | |
5407 | echo "$as_me:$LINENO: result: no" >&5 | |
5408 | echo "${ECHO_T}no" >&6 | |
5409 | fi | |
5410 | ||
5411 | ||
5412 | enablestring= | |
5413 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5414 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5415 | no_cache=0 | |
5416 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5417 | if test "${enable_mimetype+set}" = set; then | |
5418 | enableval="$enable_mimetype" | |
5419 | ||
5420 | if test "$enableval" = yes; then | |
5421 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5422 | else | |
5423 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5424 | fi | |
5425 | ||
5426 | else | |
5427 | ||
5428 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5429 | if test "x$LINE" != x ; then | |
5430 | eval "DEFAULT_$LINE" | |
5431 | else | |
5432 | no_cache=1 | |
5433 | fi | |
5434 | ||
5435 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5436 | ||
5437 | fi; | |
5438 | ||
5439 | eval "$ac_cv_use_mimetype" | |
5440 | if test "$no_cache" != 1; then | |
5441 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5442 | fi | |
5443 | ||
5444 | if test "$wxUSE_MIMETYPE" = yes; then | |
5445 | echo "$as_me:$LINENO: result: yes" >&5 | |
5446 | echo "${ECHO_T}yes" >&6 | |
5447 | else | |
5448 | echo "$as_me:$LINENO: result: no" >&5 | |
5449 | echo "${ECHO_T}no" >&6 | |
5450 | fi | |
5451 | ||
5452 | ||
5453 | enablestring= | |
5454 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5455 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5456 | no_cache=0 | |
5457 | # Check whether --enable-mslu or --disable-mslu was given. | |
5458 | if test "${enable_mslu+set}" = set; then | |
5459 | enableval="$enable_mslu" | |
5460 | ||
5461 | if test "$enableval" = yes; then | |
5462 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5463 | else | |
5464 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5465 | fi | |
5466 | ||
5467 | else | |
5468 | ||
5469 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5470 | if test "x$LINE" != x ; then | |
5471 | eval "DEFAULT_$LINE" | |
5472 | else | |
5473 | no_cache=1 | |
5474 | fi | |
5475 | ||
5476 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5477 | ||
5478 | fi; | |
5479 | ||
5480 | eval "$ac_cv_use_mslu" | |
5481 | if test "$no_cache" != 1; then | |
5482 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5483 | fi | |
5484 | ||
5485 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5486 | echo "$as_me:$LINENO: result: yes" >&5 | |
5487 | echo "${ECHO_T}yes" >&6 | |
5488 | else | |
5489 | echo "$as_me:$LINENO: result: no" >&5 | |
5490 | echo "${ECHO_T}no" >&6 | |
5491 | fi | |
5492 | ||
5493 | ||
5494 | enablestring= | |
5495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5496 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5497 | no_cache=0 | |
5498 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5499 | if test "${enable_snglinst+set}" = set; then | |
5500 | enableval="$enable_snglinst" | |
5501 | ||
5502 | if test "$enableval" = yes; then | |
5503 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5504 | else | |
5505 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5506 | fi | |
5507 | ||
5508 | else | |
5509 | ||
5510 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5511 | if test "x$LINE" != x ; then | |
5512 | eval "DEFAULT_$LINE" | |
5513 | else | |
5514 | no_cache=1 | |
5515 | fi | |
5516 | ||
5517 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5518 | ||
5519 | fi; | |
5520 | ||
5521 | eval "$ac_cv_use_snglinst" | |
5522 | if test "$no_cache" != 1; then | |
5523 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5524 | fi | |
5525 | ||
5526 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5527 | echo "$as_me:$LINENO: result: yes" >&5 | |
5528 | echo "${ECHO_T}yes" >&6 | |
5529 | else | |
5530 | echo "$as_me:$LINENO: result: no" >&5 | |
5531 | echo "${ECHO_T}no" >&6 | |
5532 | fi | |
5533 | ||
5534 | ||
5535 | enablestring= | |
07158944 VZ |
5536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5537 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5538 | no_cache=0 |
07158944 VZ |
5539 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5540 | if test "${enable_std_iostreams+set}" = set; then | |
5541 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5542 | |
5543 | if test "$enableval" = yes; then | |
07158944 | 5544 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5545 | else |
07158944 | 5546 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5547 | fi |
5548 | ||
5549 | else | |
5550 | ||
07158944 | 5551 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5552 | if test "x$LINE" != x ; then |
5553 | eval "DEFAULT_$LINE" | |
5554 | else | |
5555 | no_cache=1 | |
5556 | fi | |
5557 | ||
07158944 | 5558 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5559 | |
5560 | fi; | |
5561 | ||
07158944 | 5562 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5563 | if test "$no_cache" != 1; then |
07158944 | 5564 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5565 | fi |
5566 | ||
07158944 | 5567 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5568 | echo "$as_me:$LINENO: result: yes" >&5 |
5569 | echo "${ECHO_T}yes" >&6 | |
5570 | else | |
5571 | echo "$as_me:$LINENO: result: no" >&5 | |
5572 | echo "${ECHO_T}no" >&6 | |
5573 | fi | |
5574 | ||
5575 | ||
5576 | enablestring= | |
07158944 VZ |
5577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5578 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5579 | no_cache=0 |
07158944 VZ |
5580 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5581 | if test "${enable_stdpaths+set}" = set; then | |
5582 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5583 | |
5584 | if test "$enableval" = yes; then | |
07158944 | 5585 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5586 | else |
07158944 | 5587 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5588 | fi |
5589 | ||
5590 | else | |
5591 | ||
07158944 | 5592 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5593 | if test "x$LINE" != x ; then |
5594 | eval "DEFAULT_$LINE" | |
5595 | else | |
5596 | no_cache=1 | |
5597 | fi | |
5598 | ||
07158944 | 5599 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5600 | |
5601 | fi; | |
5602 | ||
07158944 | 5603 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5604 | if test "$no_cache" != 1; then |
07158944 | 5605 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5606 | fi |
5607 | ||
07158944 | 5608 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5609 | echo "$as_me:$LINENO: result: yes" >&5 |
5610 | echo "${ECHO_T}yes" >&6 | |
5611 | else | |
5612 | echo "$as_me:$LINENO: result: no" >&5 | |
5613 | echo "${ECHO_T}no" >&6 | |
5614 | fi | |
5615 | ||
5616 | ||
5617 | enablestring= | |
5618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5619 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5620 | no_cache=0 | |
5621 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5622 | if test "${enable_stopwatch+set}" = set; then | |
5623 | enableval="$enable_stopwatch" | |
5624 | ||
5625 | if test "$enableval" = yes; then | |
5626 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5627 | else | |
5628 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5629 | fi | |
5630 | ||
5631 | else | |
5632 | ||
5633 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5634 | if test "x$LINE" != x ; then | |
5635 | eval "DEFAULT_$LINE" | |
5636 | else | |
5637 | no_cache=1 | |
5638 | fi | |
5639 | ||
5640 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5641 | ||
5642 | fi; | |
5643 | ||
5644 | eval "$ac_cv_use_stopwatch" | |
5645 | if test "$no_cache" != 1; then | |
5646 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5647 | fi | |
5648 | ||
5649 | if test "$wxUSE_STOPWATCH" = yes; then | |
5650 | echo "$as_me:$LINENO: result: yes" >&5 | |
5651 | echo "${ECHO_T}yes" >&6 | |
5652 | else | |
5653 | echo "$as_me:$LINENO: result: no" >&5 | |
5654 | echo "${ECHO_T}no" >&6 | |
5655 | fi | |
5656 | ||
5657 | ||
07158944 VZ |
5658 | enablestring= |
5659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5660 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5661 | no_cache=0 | |
5662 | # Check whether --enable-streams or --disable-streams was given. | |
5663 | if test "${enable_streams+set}" = set; then | |
5664 | enableval="$enable_streams" | |
5665 | ||
5666 | if test "$enableval" = yes; then | |
5667 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5668 | else | |
5669 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5670 | fi | |
5671 | ||
5672 | else | |
5673 | ||
5674 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5675 | if test "x$LINE" != x ; then | |
5676 | eval "DEFAULT_$LINE" | |
5677 | else | |
5678 | no_cache=1 | |
5679 | fi | |
5680 | ||
5681 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5682 | ||
5683 | fi; | |
5684 | ||
5685 | eval "$ac_cv_use_streams" | |
5686 | if test "$no_cache" != 1; then | |
5687 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5688 | fi | |
5689 | ||
5690 | if test "$wxUSE_STREAMS" = yes; then | |
5691 | echo "$as_me:$LINENO: result: yes" >&5 | |
5692 | echo "${ECHO_T}yes" >&6 | |
5693 | else | |
5694 | echo "$as_me:$LINENO: result: no" >&5 | |
5695 | echo "${ECHO_T}no" >&6 | |
5696 | fi | |
5697 | ||
5698 | ||
a848cd7e SC |
5699 | enablestring= |
5700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5701 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5702 | no_cache=0 | |
5703 | # Check whether --enable-system_options or --disable-system_options was given. | |
5704 | if test "${enable_system_options+set}" = set; then | |
5705 | enableval="$enable_system_options" | |
5706 | ||
5707 | if test "$enableval" = yes; then | |
5708 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5709 | else | |
5710 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5711 | fi | |
5712 | ||
5713 | else | |
5714 | ||
5715 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5716 | if test "x$LINE" != x ; then | |
5717 | eval "DEFAULT_$LINE" | |
5718 | else | |
5719 | no_cache=1 | |
5720 | fi | |
5721 | ||
5722 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5723 | ||
5724 | fi; | |
5725 | ||
5726 | eval "$ac_cv_use_system_options" | |
5727 | if test "$no_cache" != 1; then | |
5728 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5729 | fi | |
5730 | ||
5731 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5732 | echo "$as_me:$LINENO: result: yes" >&5 | |
5733 | echo "${ECHO_T}yes" >&6 | |
5734 | else | |
5735 | echo "$as_me:$LINENO: result: no" >&5 | |
5736 | echo "${ECHO_T}no" >&6 | |
5737 | fi | |
5738 | ||
5739 | ||
5740 | enablestring= | |
5741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5742 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5743 | no_cache=0 | |
5744 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5745 | if test "${enable_textbuf+set}" = set; then | |
5746 | enableval="$enable_textbuf" | |
5747 | ||
5748 | if test "$enableval" = yes; then | |
5749 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5750 | else | |
5751 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5752 | fi | |
5753 | ||
5754 | else | |
5755 | ||
5756 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5757 | if test "x$LINE" != x ; then | |
5758 | eval "DEFAULT_$LINE" | |
5759 | else | |
5760 | no_cache=1 | |
5761 | fi | |
5762 | ||
5763 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5764 | ||
5765 | fi; | |
5766 | ||
5767 | eval "$ac_cv_use_textbuf" | |
5768 | if test "$no_cache" != 1; then | |
5769 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5770 | fi | |
5771 | ||
5772 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5773 | echo "$as_me:$LINENO: result: yes" >&5 | |
5774 | echo "${ECHO_T}yes" >&6 | |
5775 | else | |
5776 | echo "$as_me:$LINENO: result: no" >&5 | |
5777 | echo "${ECHO_T}no" >&6 | |
5778 | fi | |
5779 | ||
5780 | ||
5781 | enablestring= | |
5782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5783 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5784 | no_cache=0 | |
5785 | # Check whether --enable-textfile or --disable-textfile was given. | |
5786 | if test "${enable_textfile+set}" = set; then | |
5787 | enableval="$enable_textfile" | |
5788 | ||
5789 | if test "$enableval" = yes; then | |
5790 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5791 | else | |
5792 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5793 | fi | |
5794 | ||
5795 | else | |
5796 | ||
5797 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5798 | if test "x$LINE" != x ; then | |
5799 | eval "DEFAULT_$LINE" | |
5800 | else | |
5801 | no_cache=1 | |
5802 | fi | |
5803 | ||
5804 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5805 | ||
5806 | fi; | |
5807 | ||
5808 | eval "$ac_cv_use_textfile" | |
5809 | if test "$no_cache" != 1; then | |
5810 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5811 | fi | |
5812 | ||
5813 | if test "$wxUSE_TEXTFILE" = yes; then | |
5814 | echo "$as_me:$LINENO: result: yes" >&5 | |
5815 | echo "${ECHO_T}yes" >&6 | |
5816 | else | |
5817 | echo "$as_me:$LINENO: result: no" >&5 | |
5818 | echo "${ECHO_T}no" >&6 | |
5819 | fi | |
5820 | ||
5821 | ||
5822 | enablestring= | |
5823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5824 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5825 | no_cache=0 | |
5826 | # Check whether --enable-timer or --disable-timer was given. | |
5827 | if test "${enable_timer+set}" = set; then | |
5828 | enableval="$enable_timer" | |
5829 | ||
5830 | if test "$enableval" = yes; then | |
5831 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5832 | else | |
5833 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5834 | fi | |
5835 | ||
5836 | else | |
5837 | ||
5838 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5839 | if test "x$LINE" != x ; then | |
5840 | eval "DEFAULT_$LINE" | |
5841 | else | |
5842 | no_cache=1 | |
5843 | fi | |
5844 | ||
5845 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5846 | ||
5847 | fi; | |
5848 | ||
5849 | eval "$ac_cv_use_timer" | |
5850 | if test "$no_cache" != 1; then | |
5851 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5852 | fi | |
5853 | ||
5854 | if test "$wxUSE_TIMER" = yes; then | |
5855 | echo "$as_me:$LINENO: result: yes" >&5 | |
5856 | echo "${ECHO_T}yes" >&6 | |
5857 | else | |
5858 | echo "$as_me:$LINENO: result: no" >&5 | |
5859 | echo "${ECHO_T}no" >&6 | |
5860 | fi | |
5861 | ||
5862 | ||
5863 | enablestring= | |
5864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5865 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5866 | no_cache=0 | |
5867 | # Check whether --enable-unicode or --disable-unicode was given. | |
5868 | if test "${enable_unicode+set}" = set; then | |
5869 | enableval="$enable_unicode" | |
5870 | ||
5871 | if test "$enableval" = yes; then | |
5872 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5873 | else | |
5874 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5875 | fi | |
5876 | ||
5877 | else | |
5878 | ||
5879 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5880 | if test "x$LINE" != x ; then | |
5881 | eval "DEFAULT_$LINE" | |
5882 | else | |
5883 | no_cache=1 | |
5884 | fi | |
5885 | ||
5886 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5887 | ||
5888 | fi; | |
5889 | ||
5890 | eval "$ac_cv_use_unicode" | |
5891 | if test "$no_cache" != 1; then | |
5892 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5893 | fi | |
5894 | ||
5895 | if test "$wxUSE_UNICODE" = yes; then | |
5896 | echo "$as_me:$LINENO: result: yes" >&5 | |
5897 | echo "${ECHO_T}yes" >&6 | |
5898 | else | |
5899 | echo "$as_me:$LINENO: result: no" >&5 | |
5900 | echo "${ECHO_T}no" >&6 | |
5901 | fi | |
5902 | ||
5903 | ||
5904 | enablestring= | |
5905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5906 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5907 | no_cache=0 | |
5908 | # Check whether --enable-sound or --disable-sound was given. | |
5909 | if test "${enable_sound+set}" = set; then | |
5910 | enableval="$enable_sound" | |
5911 | ||
5912 | if test "$enableval" = yes; then | |
5913 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5914 | else | |
5915 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5916 | fi | |
5917 | ||
5918 | else | |
5919 | ||
5920 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5921 | if test "x$LINE" != x ; then | |
5922 | eval "DEFAULT_$LINE" | |
5923 | else | |
5924 | no_cache=1 | |
5925 | fi | |
5926 | ||
5927 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5928 | ||
5929 | fi; | |
5930 | ||
5931 | eval "$ac_cv_use_sound" | |
5932 | if test "$no_cache" != 1; then | |
5933 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5934 | fi | |
5935 | ||
5936 | if test "$wxUSE_SOUND" = yes; then | |
5937 | echo "$as_me:$LINENO: result: yes" >&5 | |
5938 | echo "${ECHO_T}yes" >&6 | |
5939 | else | |
5940 | echo "$as_me:$LINENO: result: no" >&5 | |
5941 | echo "${ECHO_T}no" >&6 | |
5942 | fi | |
5943 | ||
5944 | ||
3b57de8b RL |
5945 | enablestring= |
5946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5947 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5948 | no_cache=0 | |
5949 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5950 | if test "${enable_mediactrl+set}" = set; then | |
5951 | enableval="$enable_mediactrl" | |
5952 | ||
5953 | if test "$enableval" = yes; then | |
5954 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5955 | else | |
5956 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5957 | fi | |
5958 | ||
5959 | else | |
5960 | ||
5961 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5962 | if test "x$LINE" != x ; then | |
5963 | eval "DEFAULT_$LINE" | |
5964 | else | |
5965 | no_cache=1 | |
5966 | fi | |
5967 | ||
5968 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5969 | ||
5970 | fi; | |
5971 | ||
5972 | eval "$ac_cv_use_mediactrl" | |
5973 | if test "$no_cache" != 1; then | |
5974 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5975 | fi | |
5976 | ||
5977 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5978 | echo "$as_me:$LINENO: result: yes" >&5 | |
5979 | echo "${ECHO_T}yes" >&6 | |
5980 | else | |
5981 | echo "$as_me:$LINENO: result: no" >&5 | |
5982 | echo "${ECHO_T}no" >&6 | |
5983 | fi | |
5984 | ||
5985 | ||
a848cd7e SC |
5986 | enablestring= |
5987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5988 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5989 | no_cache=0 | |
5990 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5991 | if test "${enable_wxprintfv+set}" = set; then | |
5992 | enableval="$enable_wxprintfv" | |
5993 | ||
5994 | if test "$enableval" = yes; then | |
5995 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5996 | else | |
5997 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5998 | fi | |
5999 | ||
6000 | else | |
6001 | ||
6002 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6003 | if test "x$LINE" != x ; then | |
6004 | eval "DEFAULT_$LINE" | |
6005 | else | |
6006 | no_cache=1 | |
6007 | fi | |
6008 | ||
6009 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6010 | ||
6011 | fi; | |
6012 | ||
6013 | eval "$ac_cv_use_wxprintfv" | |
6014 | if test "$no_cache" != 1; then | |
6015 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6016 | fi | |
6017 | ||
6018 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6019 | echo "$as_me:$LINENO: result: yes" >&5 | |
6020 | echo "${ECHO_T}yes" >&6 | |
6021 | else | |
6022 | echo "$as_me:$LINENO: result: no" >&5 | |
6023 | echo "${ECHO_T}no" >&6 | |
6024 | fi | |
6025 | ||
6026 | ||
6027 | enablestring= | |
6028 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6029 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6030 | no_cache=0 | |
6031 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6032 | if test "${enable_zipstream+set}" = set; then | |
6033 | enableval="$enable_zipstream" | |
6034 | ||
6035 | if test "$enableval" = yes; then | |
6036 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6037 | else | |
6038 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6039 | fi | |
6040 | ||
6041 | else | |
6042 | ||
6043 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6044 | if test "x$LINE" != x ; then | |
6045 | eval "DEFAULT_$LINE" | |
6046 | else | |
6047 | no_cache=1 | |
6048 | fi | |
6049 | ||
6050 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6051 | ||
6052 | fi; | |
6053 | ||
6054 | eval "$ac_cv_use_zipstream" | |
6055 | if test "$no_cache" != 1; then | |
6056 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6057 | fi | |
6058 | ||
6059 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6060 | echo "$as_me:$LINENO: result: yes" >&5 | |
6061 | echo "${ECHO_T}yes" >&6 | |
6062 | else | |
6063 | echo "$as_me:$LINENO: result: no" >&5 | |
6064 | echo "${ECHO_T}no" >&6 | |
6065 | fi | |
6066 | ||
6067 | ||
a848cd7e SC |
6068 | |
6069 | enablestring= | |
6070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6071 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6072 | no_cache=0 | |
6073 | # Check whether --enable-url or --disable-url was given. | |
6074 | if test "${enable_url+set}" = set; then | |
6075 | enableval="$enable_url" | |
6076 | ||
6077 | if test "$enableval" = yes; then | |
6078 | ac_cv_use_url='wxUSE_URL=yes' | |
6079 | else | |
6080 | ac_cv_use_url='wxUSE_URL=no' | |
6081 | fi | |
6082 | ||
6083 | else | |
6084 | ||
6085 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6086 | if test "x$LINE" != x ; then | |
6087 | eval "DEFAULT_$LINE" | |
6088 | else | |
6089 | no_cache=1 | |
6090 | fi | |
6091 | ||
6092 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6093 | ||
6094 | fi; | |
6095 | ||
6096 | eval "$ac_cv_use_url" | |
6097 | if test "$no_cache" != 1; then | |
6098 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6099 | fi | |
6100 | ||
6101 | if test "$wxUSE_URL" = yes; then | |
6102 | echo "$as_me:$LINENO: result: yes" >&5 | |
6103 | echo "${ECHO_T}yes" >&6 | |
6104 | else | |
6105 | echo "$as_me:$LINENO: result: no" >&5 | |
6106 | echo "${ECHO_T}no" >&6 | |
6107 | fi | |
6108 | ||
6109 | ||
6110 | enablestring= | |
6111 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6112 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6113 | no_cache=0 | |
6114 | # Check whether --enable-protocol or --disable-protocol was given. | |
6115 | if test "${enable_protocol+set}" = set; then | |
6116 | enableval="$enable_protocol" | |
6117 | ||
6118 | if test "$enableval" = yes; then | |
6119 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6120 | else | |
6121 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6122 | fi | |
6123 | ||
6124 | else | |
6125 | ||
6126 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6127 | if test "x$LINE" != x ; then | |
6128 | eval "DEFAULT_$LINE" | |
6129 | else | |
6130 | no_cache=1 | |
6131 | fi | |
6132 | ||
6133 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6134 | ||
6135 | fi; | |
6136 | ||
6137 | eval "$ac_cv_use_protocol" | |
6138 | if test "$no_cache" != 1; then | |
6139 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6140 | fi | |
6141 | ||
6142 | if test "$wxUSE_PROTOCOL" = yes; then | |
6143 | echo "$as_me:$LINENO: result: yes" >&5 | |
6144 | echo "${ECHO_T}yes" >&6 | |
6145 | else | |
6146 | echo "$as_me:$LINENO: result: no" >&5 | |
6147 | echo "${ECHO_T}no" >&6 | |
6148 | fi | |
6149 | ||
6150 | ||
6151 | enablestring= | |
6152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6153 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6154 | no_cache=0 | |
6155 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6156 | if test "${enable_protocol_http+set}" = set; then | |
6157 | enableval="$enable_protocol_http" | |
6158 | ||
6159 | if test "$enableval" = yes; then | |
6160 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6161 | else | |
6162 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6163 | fi | |
6164 | ||
6165 | else | |
6166 | ||
6167 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6168 | if test "x$LINE" != x ; then | |
6169 | eval "DEFAULT_$LINE" | |
6170 | else | |
6171 | no_cache=1 | |
6172 | fi | |
6173 | ||
6174 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6175 | ||
6176 | fi; | |
6177 | ||
6178 | eval "$ac_cv_use_protocol_http" | |
6179 | if test "$no_cache" != 1; then | |
6180 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6181 | fi | |
6182 | ||
6183 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6184 | echo "$as_me:$LINENO: result: yes" >&5 | |
6185 | echo "${ECHO_T}yes" >&6 | |
6186 | else | |
6187 | echo "$as_me:$LINENO: result: no" >&5 | |
6188 | echo "${ECHO_T}no" >&6 | |
6189 | fi | |
6190 | ||
6191 | ||
6192 | enablestring= | |
6193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6194 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6195 | no_cache=0 | |
6196 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6197 | if test "${enable_protocol_ftp+set}" = set; then | |
6198 | enableval="$enable_protocol_ftp" | |
6199 | ||
6200 | if test "$enableval" = yes; then | |
6201 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6202 | else | |
6203 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6204 | fi | |
6205 | ||
6206 | else | |
6207 | ||
6208 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6209 | if test "x$LINE" != x ; then | |
6210 | eval "DEFAULT_$LINE" | |
6211 | else | |
6212 | no_cache=1 | |
6213 | fi | |
6214 | ||
6215 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6216 | ||
6217 | fi; | |
6218 | ||
6219 | eval "$ac_cv_use_protocol_ftp" | |
6220 | if test "$no_cache" != 1; then | |
6221 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6222 | fi | |
6223 | ||
6224 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6225 | echo "$as_me:$LINENO: result: yes" >&5 | |
6226 | echo "${ECHO_T}yes" >&6 | |
6227 | else | |
6228 | echo "$as_me:$LINENO: result: no" >&5 | |
6229 | echo "${ECHO_T}no" >&6 | |
6230 | fi | |
6231 | ||
6232 | ||
6233 | enablestring= | |
6234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6235 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6236 | no_cache=0 | |
6237 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6238 | if test "${enable_protocol_file+set}" = set; then | |
6239 | enableval="$enable_protocol_file" | |
6240 | ||
6241 | if test "$enableval" = yes; then | |
6242 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6243 | else | |
6244 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6245 | fi | |
6246 | ||
6247 | else | |
6248 | ||
6249 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6250 | if test "x$LINE" != x ; then | |
6251 | eval "DEFAULT_$LINE" | |
6252 | else | |
6253 | no_cache=1 | |
6254 | fi | |
6255 | ||
6256 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6257 | ||
6258 | fi; | |
6259 | ||
6260 | eval "$ac_cv_use_protocol_file" | |
6261 | if test "$no_cache" != 1; then | |
6262 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6263 | fi | |
6264 | ||
6265 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6266 | echo "$as_me:$LINENO: result: yes" >&5 | |
6267 | echo "${ECHO_T}yes" >&6 | |
6268 | else | |
6269 | echo "$as_me:$LINENO: result: no" >&5 | |
6270 | echo "${ECHO_T}no" >&6 | |
6271 | fi | |
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | enablestring= | |
6278 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6279 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6280 | no_cache=0 | |
6281 | # Check whether --enable-threads or --disable-threads was given. | |
6282 | if test "${enable_threads+set}" = set; then | |
6283 | enableval="$enable_threads" | |
6284 | ||
6285 | if test "$enableval" = yes; then | |
6286 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6287 | else | |
6288 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6289 | fi | |
6290 | ||
6291 | else | |
6292 | ||
6293 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6294 | if test "x$LINE" != x ; then | |
6295 | eval "DEFAULT_$LINE" | |
6296 | else | |
6297 | no_cache=1 | |
6298 | fi | |
6299 | ||
6300 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6301 | ||
6302 | fi; | |
6303 | ||
6304 | eval "$ac_cv_use_threads" | |
6305 | if test "$no_cache" != 1; then | |
6306 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6307 | fi | |
6308 | ||
6309 | if test "$wxUSE_THREADS" = yes; then | |
6310 | echo "$as_me:$LINENO: result: yes" >&5 | |
6311 | echo "${ECHO_T}yes" >&6 | |
6312 | else | |
6313 | echo "$as_me:$LINENO: result: no" >&5 | |
6314 | echo "${ECHO_T}no" >&6 | |
6315 | fi | |
6316 | ||
6317 | ||
6318 | if test "$wxUSE_GUI" = "yes"; then | |
6319 | ||
6320 | ||
6321 | ||
6322 | enablestring= | |
6323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6324 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6325 | no_cache=0 | |
6326 | # Check whether --enable-docview or --disable-docview was given. | |
6327 | if test "${enable_docview+set}" = set; then | |
6328 | enableval="$enable_docview" | |
6329 | ||
6330 | if test "$enableval" = yes; then | |
6331 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6332 | else | |
6333 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6334 | fi | |
6335 | ||
6336 | else | |
6337 | ||
6338 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6339 | if test "x$LINE" != x ; then | |
6340 | eval "DEFAULT_$LINE" | |
6341 | else | |
6342 | no_cache=1 | |
6343 | fi | |
6344 | ||
6345 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6346 | ||
6347 | fi; | |
6348 | ||
6349 | eval "$ac_cv_use_docview" | |
6350 | if test "$no_cache" != 1; then | |
6351 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6352 | fi | |
6353 | ||
6354 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6355 | echo "$as_me:$LINENO: result: yes" >&5 | |
6356 | echo "${ECHO_T}yes" >&6 | |
6357 | else | |
6358 | echo "$as_me:$LINENO: result: no" >&5 | |
6359 | echo "${ECHO_T}no" >&6 | |
6360 | fi | |
6361 | ||
6362 | ||
6363 | enablestring= | |
6364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6365 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6366 | no_cache=0 | |
6367 | # Check whether --enable-help or --disable-help was given. | |
6368 | if test "${enable_help+set}" = set; then | |
6369 | enableval="$enable_help" | |
6370 | ||
6371 | if test "$enableval" = yes; then | |
6372 | ac_cv_use_help='wxUSE_HELP=yes' | |
6373 | else | |
6374 | ac_cv_use_help='wxUSE_HELP=no' | |
6375 | fi | |
6376 | ||
6377 | else | |
6378 | ||
6379 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6380 | if test "x$LINE" != x ; then | |
6381 | eval "DEFAULT_$LINE" | |
6382 | else | |
6383 | no_cache=1 | |
6384 | fi | |
6385 | ||
6386 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6387 | ||
6388 | fi; | |
6389 | ||
6390 | eval "$ac_cv_use_help" | |
6391 | if test "$no_cache" != 1; then | |
6392 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6393 | fi | |
6394 | ||
6395 | if test "$wxUSE_HELP" = yes; then | |
6396 | echo "$as_me:$LINENO: result: yes" >&5 | |
6397 | echo "${ECHO_T}yes" >&6 | |
6398 | else | |
6399 | echo "$as_me:$LINENO: result: no" >&5 | |
6400 | echo "${ECHO_T}no" >&6 | |
6401 | fi | |
6402 | ||
6403 | ||
6404 | enablestring= | |
6405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6406 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6407 | no_cache=0 | |
6408 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6409 | if test "${enable_mshtmlhelp+set}" = set; then | |
6410 | enableval="$enable_mshtmlhelp" | |
6411 | ||
6412 | if test "$enableval" = yes; then | |
6413 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6414 | else | |
6415 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6416 | fi | |
6417 | ||
6418 | else | |
6419 | ||
6420 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6421 | if test "x$LINE" != x ; then | |
6422 | eval "DEFAULT_$LINE" | |
6423 | else | |
6424 | no_cache=1 | |
6425 | fi | |
6426 | ||
6427 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6428 | ||
6429 | fi; | |
6430 | ||
6431 | eval "$ac_cv_use_mshtmlhelp" | |
6432 | if test "$no_cache" != 1; then | |
6433 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6434 | fi | |
6435 | ||
6436 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6437 | echo "$as_me:$LINENO: result: yes" >&5 | |
6438 | echo "${ECHO_T}yes" >&6 | |
6439 | else | |
6440 | echo "$as_me:$LINENO: result: no" >&5 | |
6441 | echo "${ECHO_T}no" >&6 | |
6442 | fi | |
6443 | ||
6444 | ||
6445 | enablestring= | |
6446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6447 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6448 | no_cache=0 | |
6449 | # Check whether --enable-html or --disable-html was given. | |
6450 | if test "${enable_html+set}" = set; then | |
6451 | enableval="$enable_html" | |
6452 | ||
6453 | if test "$enableval" = yes; then | |
6454 | ac_cv_use_html='wxUSE_HTML=yes' | |
6455 | else | |
6456 | ac_cv_use_html='wxUSE_HTML=no' | |
6457 | fi | |
6458 | ||
6459 | else | |
6460 | ||
6461 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6462 | if test "x$LINE" != x ; then | |
6463 | eval "DEFAULT_$LINE" | |
6464 | else | |
6465 | no_cache=1 | |
6466 | fi | |
6467 | ||
6468 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6469 | ||
6470 | fi; | |
6471 | ||
6472 | eval "$ac_cv_use_html" | |
6473 | if test "$no_cache" != 1; then | |
6474 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6475 | fi | |
6476 | ||
6477 | if test "$wxUSE_HTML" = yes; then | |
6478 | echo "$as_me:$LINENO: result: yes" >&5 | |
6479 | echo "${ECHO_T}yes" >&6 | |
6480 | else | |
6481 | echo "$as_me:$LINENO: result: no" >&5 | |
6482 | echo "${ECHO_T}no" >&6 | |
6483 | fi | |
6484 | ||
6485 | ||
6486 | enablestring= | |
6487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6488 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6489 | no_cache=0 | |
6490 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6491 | if test "${enable_htmlhelp+set}" = set; then | |
6492 | enableval="$enable_htmlhelp" | |
6493 | ||
6494 | if test "$enableval" = yes; then | |
6495 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6496 | else | |
6497 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6498 | fi | |
6499 | ||
6500 | else | |
6501 | ||
6502 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6503 | if test "x$LINE" != x ; then | |
6504 | eval "DEFAULT_$LINE" | |
6505 | else | |
6506 | no_cache=1 | |
6507 | fi | |
6508 | ||
6509 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6510 | ||
6511 | fi; | |
6512 | ||
6513 | eval "$ac_cv_use_htmlhelp" | |
6514 | if test "$no_cache" != 1; then | |
6515 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6516 | fi | |
6517 | ||
6518 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6519 | echo "$as_me:$LINENO: result: yes" >&5 | |
6520 | echo "${ECHO_T}yes" >&6 | |
6521 | else | |
6522 | echo "$as_me:$LINENO: result: no" >&5 | |
6523 | echo "${ECHO_T}no" >&6 | |
6524 | fi | |
6525 | ||
6526 | ||
9a8f0513 VS |
6527 | enablestring= |
6528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6529 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6530 | no_cache=0 | |
6531 | # Check whether --enable-xrc or --disable-xrc was given. | |
6532 | if test "${enable_xrc+set}" = set; then | |
6533 | enableval="$enable_xrc" | |
6534 | ||
6535 | if test "$enableval" = yes; then | |
6536 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6537 | else | |
6538 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6539 | fi | |
6540 | ||
6541 | else | |
6542 | ||
6543 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6544 | if test "x$LINE" != x ; then | |
6545 | eval "DEFAULT_$LINE" | |
6546 | else | |
6547 | no_cache=1 | |
6548 | fi | |
6549 | ||
6550 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6551 | ||
6552 | fi; | |
6553 | ||
6554 | eval "$ac_cv_use_xrc" | |
6555 | if test "$no_cache" != 1; then | |
6556 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6557 | fi | |
6558 | ||
6559 | if test "$wxUSE_XRC" = yes; then | |
6560 | echo "$as_me:$LINENO: result: yes" >&5 | |
6561 | echo "${ECHO_T}yes" >&6 | |
6562 | else | |
6563 | echo "$as_me:$LINENO: result: no" >&5 | |
6564 | echo "${ECHO_T}no" >&6 | |
6565 | fi | |
6566 | ||
6567 | ||
a848cd7e SC |
6568 | enablestring= |
6569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6570 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6571 | no_cache=0 | |
6572 | # Check whether --enable-constraints or --disable-constraints was given. | |
6573 | if test "${enable_constraints+set}" = set; then | |
6574 | enableval="$enable_constraints" | |
6575 | ||
6576 | if test "$enableval" = yes; then | |
6577 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6578 | else | |
6579 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6580 | fi | |
6581 | ||
6582 | else | |
6583 | ||
6584 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6585 | if test "x$LINE" != x ; then | |
6586 | eval "DEFAULT_$LINE" | |
6587 | else | |
6588 | no_cache=1 | |
6589 | fi | |
6590 | ||
6591 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6592 | ||
6593 | fi; | |
6594 | ||
6595 | eval "$ac_cv_use_constraints" | |
6596 | if test "$no_cache" != 1; then | |
6597 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6598 | fi | |
6599 | ||
6600 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6601 | echo "$as_me:$LINENO: result: yes" >&5 | |
6602 | echo "${ECHO_T}yes" >&6 | |
6603 | else | |
6604 | echo "$as_me:$LINENO: result: no" >&5 | |
6605 | echo "${ECHO_T}no" >&6 | |
6606 | fi | |
6607 | ||
6608 | ||
6609 | enablestring= | |
6610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6611 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6612 | no_cache=0 | |
6613 | # Check whether --enable-printarch or --disable-printarch was given. | |
6614 | if test "${enable_printarch+set}" = set; then | |
6615 | enableval="$enable_printarch" | |
6616 | ||
6617 | if test "$enableval" = yes; then | |
6618 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6619 | else | |
6620 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6621 | fi | |
6622 | ||
6623 | else | |
6624 | ||
6625 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6626 | if test "x$LINE" != x ; then | |
6627 | eval "DEFAULT_$LINE" | |
6628 | else | |
6629 | no_cache=1 | |
6630 | fi | |
6631 | ||
6632 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6633 | ||
6634 | fi; | |
6635 | ||
6636 | eval "$ac_cv_use_printarch" | |
6637 | if test "$no_cache" != 1; then | |
6638 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6639 | fi | |
6640 | ||
6641 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6642 | echo "$as_me:$LINENO: result: yes" >&5 | |
6643 | echo "${ECHO_T}yes" >&6 | |
6644 | else | |
6645 | echo "$as_me:$LINENO: result: no" >&5 | |
6646 | echo "${ECHO_T}no" >&6 | |
6647 | fi | |
6648 | ||
6649 | ||
6650 | enablestring= | |
6651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6652 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6653 | no_cache=0 | |
6654 | # Check whether --enable-mdi or --disable-mdi was given. | |
6655 | if test "${enable_mdi+set}" = set; then | |
6656 | enableval="$enable_mdi" | |
6657 | ||
6658 | if test "$enableval" = yes; then | |
8a7b1113 | 6659 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6660 | else |
8a7b1113 | 6661 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6662 | fi |
6663 | ||
6664 | else | |
6665 | ||
8a7b1113 | 6666 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6667 | if test "x$LINE" != x ; then |
6668 | eval "DEFAULT_$LINE" | |
6669 | else | |
6670 | no_cache=1 | |
6671 | fi | |
6672 | ||
8a7b1113 | 6673 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6674 | |
6675 | fi; | |
6676 | ||
6677 | eval "$ac_cv_use_mdi" | |
6678 | if test "$no_cache" != 1; then | |
6679 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6680 | fi | |
6681 | ||
8a7b1113 VZ |
6682 | if test "$wxUSE_MDI" = yes; then |
6683 | echo "$as_me:$LINENO: result: yes" >&5 | |
6684 | echo "${ECHO_T}yes" >&6 | |
6685 | else | |
6686 | echo "$as_me:$LINENO: result: no" >&5 | |
6687 | echo "${ECHO_T}no" >&6 | |
6688 | fi | |
6689 | ||
6690 | ||
6691 | enablestring= | |
6692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6693 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6694 | no_cache=0 | |
6695 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6696 | if test "${enable_mdidoc+set}" = set; then | |
6697 | enableval="$enable_mdidoc" | |
6698 | ||
6699 | if test "$enableval" = yes; then | |
6700 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6701 | else | |
6702 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6703 | fi | |
6704 | ||
6705 | else | |
6706 | ||
6707 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6708 | if test "x$LINE" != x ; then | |
6709 | eval "DEFAULT_$LINE" | |
6710 | else | |
6711 | no_cache=1 | |
6712 | fi | |
6713 | ||
6714 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6715 | ||
6716 | fi; | |
6717 | ||
6718 | eval "$ac_cv_use_mdidoc" | |
6719 | if test "$no_cache" != 1; then | |
6720 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6721 | fi | |
6722 | ||
a848cd7e SC |
6723 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6724 | echo "$as_me:$LINENO: result: yes" >&5 | |
6725 | echo "${ECHO_T}yes" >&6 | |
6726 | else | |
6727 | echo "$as_me:$LINENO: result: no" >&5 | |
6728 | echo "${ECHO_T}no" >&6 | |
6729 | fi | |
6730 | ||
6731 | ||
6732 | enablestring= | |
6733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6734 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6735 | no_cache=0 | |
6736 | # Check whether --enable-loggui or --disable-loggui was given. | |
6737 | if test "${enable_loggui+set}" = set; then | |
6738 | enableval="$enable_loggui" | |
6739 | ||
6740 | if test "$enableval" = yes; then | |
6741 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6742 | else | |
6743 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6744 | fi | |
6745 | ||
6746 | else | |
6747 | ||
6748 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6749 | if test "x$LINE" != x ; then | |
6750 | eval "DEFAULT_$LINE" | |
6751 | else | |
6752 | no_cache=1 | |
6753 | fi | |
6754 | ||
6755 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6756 | ||
6757 | fi; | |
6758 | ||
6759 | eval "$ac_cv_use_loggui" | |
6760 | if test "$no_cache" != 1; then | |
6761 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6762 | fi | |
6763 | ||
6764 | if test "$wxUSE_LOGGUI" = yes; then | |
6765 | echo "$as_me:$LINENO: result: yes" >&5 | |
6766 | echo "${ECHO_T}yes" >&6 | |
6767 | else | |
6768 | echo "$as_me:$LINENO: result: no" >&5 | |
6769 | echo "${ECHO_T}no" >&6 | |
6770 | fi | |
6771 | ||
6772 | ||
6773 | enablestring= | |
6774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6775 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6776 | no_cache=0 | |
6777 | # Check whether --enable-logwin or --disable-logwin was given. | |
6778 | if test "${enable_logwin+set}" = set; then | |
6779 | enableval="$enable_logwin" | |
6780 | ||
6781 | if test "$enableval" = yes; then | |
6782 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6783 | else | |
6784 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6785 | fi | |
6786 | ||
6787 | else | |
6788 | ||
6789 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6790 | if test "x$LINE" != x ; then | |
6791 | eval "DEFAULT_$LINE" | |
6792 | else | |
6793 | no_cache=1 | |
6794 | fi | |
6795 | ||
6796 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6797 | ||
6798 | fi; | |
6799 | ||
6800 | eval "$ac_cv_use_logwin" | |
6801 | if test "$no_cache" != 1; then | |
6802 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6803 | fi | |
6804 | ||
6805 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6806 | echo "$as_me:$LINENO: result: yes" >&5 | |
6807 | echo "${ECHO_T}yes" >&6 | |
6808 | else | |
6809 | echo "$as_me:$LINENO: result: no" >&5 | |
6810 | echo "${ECHO_T}no" >&6 | |
6811 | fi | |
6812 | ||
6813 | ||
6814 | enablestring= | |
6815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6816 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6817 | no_cache=0 | |
6818 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6819 | if test "${enable_logdialog+set}" = set; then | |
6820 | enableval="$enable_logdialog" | |
6821 | ||
6822 | if test "$enableval" = yes; then | |
6823 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6824 | else | |
6825 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6826 | fi | |
6827 | ||
6828 | else | |
6829 | ||
6830 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6831 | if test "x$LINE" != x ; then | |
6832 | eval "DEFAULT_$LINE" | |
6833 | else | |
6834 | no_cache=1 | |
6835 | fi | |
6836 | ||
6837 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6838 | ||
6839 | fi; | |
6840 | ||
6841 | eval "$ac_cv_use_logdialog" | |
6842 | if test "$no_cache" != 1; then | |
6843 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6844 | fi | |
6845 | ||
6846 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6847 | echo "$as_me:$LINENO: result: yes" >&5 | |
6848 | echo "${ECHO_T}yes" >&6 | |
6849 | else | |
6850 | echo "$as_me:$LINENO: result: no" >&5 | |
6851 | echo "${ECHO_T}no" >&6 | |
6852 | fi | |
6853 | ||
6854 | ||
646b6ec1 VS |
6855 | enablestring= |
6856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6857 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6858 | no_cache=0 | |
6859 | # Check whether --enable-webkit or --disable-webkit was given. | |
6860 | if test "${enable_webkit+set}" = set; then | |
6861 | enableval="$enable_webkit" | |
6862 | ||
6863 | if test "$enableval" = yes; then | |
6864 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6865 | else | |
6866 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6867 | fi | |
6868 | ||
6869 | else | |
6870 | ||
6871 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6872 | if test "x$LINE" != x ; then | |
6873 | eval "DEFAULT_$LINE" | |
6874 | else | |
6875 | no_cache=1 | |
6876 | fi | |
6877 | ||
6878 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6879 | ||
6880 | fi; | |
6881 | ||
6882 | eval "$ac_cv_use_webkit" | |
6883 | if test "$no_cache" != 1; then | |
6884 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6885 | fi | |
6886 | ||
6887 | if test "$wxUSE_WEBKIT" = yes; then | |
6888 | echo "$as_me:$LINENO: result: yes" >&5 | |
6889 | echo "${ECHO_T}yes" >&6 | |
6890 | else | |
6891 | echo "$as_me:$LINENO: result: no" >&5 | |
6892 | echo "${ECHO_T}no" >&6 | |
6893 | fi | |
6894 | ||
6895 | ||
a848cd7e SC |
6896 | |
6897 | enablestring= | |
6898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6899 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6900 | no_cache=0 | |
6901 | # Check whether --enable-postscript or --disable-postscript was given. | |
6902 | if test "${enable_postscript+set}" = set; then | |
6903 | enableval="$enable_postscript" | |
6904 | ||
6905 | if test "$enableval" = yes; then | |
6906 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6907 | else | |
6908 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6909 | fi | |
6910 | ||
6911 | else | |
6912 | ||
6913 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6914 | if test "x$LINE" != x ; then | |
6915 | eval "DEFAULT_$LINE" | |
6916 | else | |
6917 | no_cache=1 | |
6918 | fi | |
6919 | ||
6920 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6921 | ||
6922 | fi; | |
6923 | ||
6924 | eval "$ac_cv_use_postscript" | |
6925 | if test "$no_cache" != 1; then | |
6926 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6927 | fi | |
6928 | ||
6929 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6930 | echo "$as_me:$LINENO: result: yes" >&5 | |
6931 | echo "${ECHO_T}yes" >&6 | |
6932 | else | |
6933 | echo "$as_me:$LINENO: result: no" >&5 | |
6934 | echo "${ECHO_T}no" >&6 | |
6935 | fi | |
6936 | ||
6937 | ||
6938 | ||
6939 | ||
6940 | ||
6941 | enablestring= | |
6942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6943 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6944 | no_cache=0 | |
6945 | # Check whether --enable-prologio or --disable-prologio was given. | |
6946 | if test "${enable_prologio+set}" = set; then | |
6947 | enableval="$enable_prologio" | |
6948 | ||
6949 | if test "$enableval" = yes; then | |
6950 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6951 | else | |
6952 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6953 | fi | |
6954 | ||
6955 | else | |
6956 | ||
6957 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6958 | if test "x$LINE" != x ; then | |
6959 | eval "DEFAULT_$LINE" | |
6960 | else | |
6961 | no_cache=1 | |
6962 | fi | |
6963 | ||
6964 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6965 | ||
6966 | fi; | |
6967 | ||
6968 | eval "$ac_cv_use_prologio" | |
6969 | if test "$no_cache" != 1; then | |
6970 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6971 | fi | |
6972 | ||
6973 | if test "$wxUSE_PROLOGIO" = yes; then | |
6974 | echo "$as_me:$LINENO: result: yes" >&5 | |
6975 | echo "${ECHO_T}yes" >&6 | |
6976 | else | |
6977 | echo "$as_me:$LINENO: result: no" >&5 | |
6978 | echo "${ECHO_T}no" >&6 | |
6979 | fi | |
6980 | ||
6981 | ||
6982 | enablestring= | |
6983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6984 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6985 | no_cache=0 | |
6986 | # Check whether --enable-resources or --disable-resources was given. | |
6987 | if test "${enable_resources+set}" = set; then | |
6988 | enableval="$enable_resources" | |
6989 | ||
6990 | if test "$enableval" = yes; then | |
6991 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6992 | else | |
6993 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6994 | fi | |
6995 | ||
6996 | else | |
6997 | ||
6998 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6999 | if test "x$LINE" != x ; then | |
7000 | eval "DEFAULT_$LINE" | |
7001 | else | |
7002 | no_cache=1 | |
7003 | fi | |
7004 | ||
7005 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7006 | ||
7007 | fi; | |
7008 | ||
7009 | eval "$ac_cv_use_resources" | |
7010 | if test "$no_cache" != 1; then | |
7011 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7012 | fi | |
7013 | ||
7014 | if test "$wxUSE_RESOURCES" = yes; then | |
7015 | echo "$as_me:$LINENO: result: yes" >&5 | |
7016 | echo "${ECHO_T}yes" >&6 | |
7017 | else | |
7018 | echo "$as_me:$LINENO: result: no" >&5 | |
7019 | echo "${ECHO_T}no" >&6 | |
7020 | fi | |
7021 | ||
7022 | ||
7023 | ||
7024 | ||
7025 | enablestring= | |
7026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7027 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7028 | no_cache=0 | |
7029 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7030 | if test "${enable_clipboard+set}" = set; then | |
7031 | enableval="$enable_clipboard" | |
7032 | ||
7033 | if test "$enableval" = yes; then | |
7034 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7035 | else | |
7036 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7037 | fi | |
7038 | ||
7039 | else | |
7040 | ||
7041 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7042 | if test "x$LINE" != x ; then | |
7043 | eval "DEFAULT_$LINE" | |
7044 | else | |
7045 | no_cache=1 | |
7046 | fi | |
7047 | ||
7048 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7049 | ||
7050 | fi; | |
7051 | ||
7052 | eval "$ac_cv_use_clipboard" | |
7053 | if test "$no_cache" != 1; then | |
7054 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7055 | fi | |
7056 | ||
7057 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7058 | echo "$as_me:$LINENO: result: yes" >&5 | |
7059 | echo "${ECHO_T}yes" >&6 | |
7060 | else | |
7061 | echo "$as_me:$LINENO: result: no" >&5 | |
7062 | echo "${ECHO_T}no" >&6 | |
7063 | fi | |
7064 | ||
7065 | ||
7066 | enablestring= | |
7067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7068 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7069 | no_cache=0 | |
7070 | # Check whether --enable-dnd or --disable-dnd was given. | |
7071 | if test "${enable_dnd+set}" = set; then | |
7072 | enableval="$enable_dnd" | |
7073 | ||
7074 | if test "$enableval" = yes; then | |
7075 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7076 | else | |
7077 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7078 | fi | |
7079 | ||
7080 | else | |
7081 | ||
7082 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7083 | if test "x$LINE" != x ; then | |
7084 | eval "DEFAULT_$LINE" | |
7085 | else | |
7086 | no_cache=1 | |
7087 | fi | |
7088 | ||
7089 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7090 | ||
7091 | fi; | |
7092 | ||
7093 | eval "$ac_cv_use_dnd" | |
7094 | if test "$no_cache" != 1; then | |
7095 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7096 | fi | |
7097 | ||
7098 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7099 | echo "$as_me:$LINENO: result: yes" >&5 | |
7100 | echo "${ECHO_T}yes" >&6 | |
7101 | else | |
7102 | echo "$as_me:$LINENO: result: no" >&5 | |
7103 | echo "${ECHO_T}no" >&6 | |
7104 | fi | |
7105 | ||
7106 | ||
7107 | enablestring= | |
7108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7109 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7110 | no_cache=0 | |
7111 | # Check whether --enable-metafile or --disable-metafile was given. | |
7112 | if test "${enable_metafile+set}" = set; then | |
7113 | enableval="$enable_metafile" | |
7114 | ||
7115 | if test "$enableval" = yes; then | |
7116 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7117 | else | |
7118 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7119 | fi | |
7120 | ||
7121 | else | |
7122 | ||
7123 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7124 | if test "x$LINE" != x ; then | |
7125 | eval "DEFAULT_$LINE" | |
7126 | else | |
7127 | no_cache=1 | |
7128 | fi | |
7129 | ||
7130 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7131 | ||
7132 | fi; | |
7133 | ||
7134 | eval "$ac_cv_use_metafile" | |
7135 | if test "$no_cache" != 1; then | |
7136 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7137 | fi | |
7138 | ||
7139 | if test "$wxUSE_METAFILE" = yes; then | |
7140 | echo "$as_me:$LINENO: result: yes" >&5 | |
7141 | echo "${ECHO_T}yes" >&6 | |
7142 | else | |
7143 | echo "$as_me:$LINENO: result: no" >&5 | |
7144 | echo "${ECHO_T}no" >&6 | |
7145 | fi | |
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | enablestring= | |
7152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7153 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7154 | no_cache=0 | |
7155 | # Check whether --enable-controls or --disable-controls was given. | |
7156 | if test "${enable_controls+set}" = set; then | |
7157 | enableval="$enable_controls" | |
7158 | ||
7159 | if test "$enableval" = yes; then | |
7160 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7161 | else | |
7162 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7163 | fi | |
7164 | ||
7165 | else | |
7166 | ||
7167 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7168 | if test "x$LINE" != x ; then | |
7169 | eval "DEFAULT_$LINE" | |
7170 | else | |
7171 | no_cache=1 | |
7172 | fi | |
7173 | ||
7174 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7175 | ||
7176 | fi; | |
7177 | ||
7178 | eval "$ac_cv_use_controls" | |
7179 | if test "$no_cache" != 1; then | |
7180 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7181 | fi | |
7182 | ||
7183 | if test "$wxUSE_CONTROLS" = yes; then | |
7184 | echo "$as_me:$LINENO: result: yes" >&5 | |
7185 | echo "${ECHO_T}yes" >&6 | |
7186 | else | |
7187 | echo "$as_me:$LINENO: result: no" >&5 | |
7188 | echo "${ECHO_T}no" >&6 | |
7189 | fi | |
7190 | ||
7191 | ||
7192 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7193 | DEFAULT_wxUSE_ACCEL=yes | |
7194 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7195 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7196 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7197 | DEFAULT_wxUSE_CARET=yes |
7198 | DEFAULT_wxUSE_COMBOBOX=yes | |
7199 | DEFAULT_wxUSE_CHECKBOX=yes | |
7200 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7201 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7202 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7203 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7204 | DEFAULT_wxUSE_GAUGE=yes |
7205 | DEFAULT_wxUSE_GRID=yes | |
7206 | DEFAULT_wxUSE_IMAGLIST=yes | |
7207 | DEFAULT_wxUSE_LISTBOOK=yes | |
7208 | DEFAULT_wxUSE_LISTBOX=yes | |
7209 | DEFAULT_wxUSE_LISTCTRL=yes | |
7210 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7211 | DEFAULT_wxUSE_RADIOBOX=yes | |
7212 | DEFAULT_wxUSE_RADIOBTN=yes | |
7213 | DEFAULT_wxUSE_SASH=yes | |
7214 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7215 | DEFAULT_wxUSE_SLIDER=yes | |
7216 | DEFAULT_wxUSE_SPINBTN=yes | |
7217 | DEFAULT_wxUSE_SPINCTRL=yes | |
7218 | DEFAULT_wxUSE_SPLITTER=yes | |
7219 | DEFAULT_wxUSE_STATBMP=yes | |
7220 | DEFAULT_wxUSE_STATBOX=yes | |
7221 | DEFAULT_wxUSE_STATLINE=yes | |
7222 | DEFAULT_wxUSE_STATUSBAR=yes | |
7223 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7224 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7225 | DEFAULT_wxUSE_TOOLBAR=yes | |
7226 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7227 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7228 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7229 | DEFAULT_wxUSE_TREECTRL=yes | |
7230 | DEFAULT_wxUSE_POPUPWIN=yes | |
7231 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7232 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7233 | DEFAULT_wxUSE_ACCEL=no | |
7234 | DEFAULT_wxUSE_BMPBUTTON=no | |
7235 | DEFAULT_wxUSE_BUTTON=no | |
7236 | DEFAULT_wxUSE_CALCTRL=no | |
7237 | DEFAULT_wxUSE_CARET=no | |
7238 | DEFAULT_wxUSE_COMBOBOX=no | |
7239 | DEFAULT_wxUSE_CHECKBOX=no | |
7240 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7241 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7242 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7243 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7244 | DEFAULT_wxUSE_GAUGE=no |
7245 | DEFAULT_wxUSE_GRID=no | |
7246 | DEFAULT_wxUSE_IMAGLIST=no | |
7247 | DEFAULT_wxUSE_LISTBOOK=no | |
7248 | DEFAULT_wxUSE_LISTBOX=no | |
7249 | DEFAULT_wxUSE_LISTCTRL=no | |
7250 | DEFAULT_wxUSE_NOTEBOOK=no | |
7251 | DEFAULT_wxUSE_RADIOBOX=no | |
7252 | DEFAULT_wxUSE_RADIOBTN=no | |
7253 | DEFAULT_wxUSE_SASH=no | |
7254 | DEFAULT_wxUSE_SCROLLBAR=no | |
7255 | DEFAULT_wxUSE_SLIDER=no | |
7256 | DEFAULT_wxUSE_SPINBTN=no | |
7257 | DEFAULT_wxUSE_SPINCTRL=no | |
7258 | DEFAULT_wxUSE_SPLITTER=no | |
7259 | DEFAULT_wxUSE_STATBMP=no | |
7260 | DEFAULT_wxUSE_STATBOX=no | |
7261 | DEFAULT_wxUSE_STATLINE=no | |
7262 | DEFAULT_wxUSE_STATUSBAR=no | |
7263 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7264 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7265 | DEFAULT_wxUSE_TOOLBAR=no | |
7266 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7267 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7268 | DEFAULT_wxUSE_TOOLTIPS=no | |
7269 | DEFAULT_wxUSE_TREECTRL=no | |
7270 | DEFAULT_wxUSE_POPUPWIN=no | |
7271 | DEFAULT_wxUSE_TIPWINDOW=no | |
7272 | fi | |
7273 | ||
a848cd7e SC |
7274 | |
7275 | enablestring= | |
7276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7277 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7278 | no_cache=0 | |
7279 | # Check whether --enable-accel or --disable-accel was given. | |
7280 | if test "${enable_accel+set}" = set; then | |
7281 | enableval="$enable_accel" | |
7282 | ||
7283 | if test "$enableval" = yes; then | |
7284 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7285 | else | |
7286 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7287 | fi | |
7288 | ||
7289 | else | |
7290 | ||
7291 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7292 | if test "x$LINE" != x ; then | |
7293 | eval "DEFAULT_$LINE" | |
7294 | else | |
7295 | no_cache=1 | |
7296 | fi | |
7297 | ||
7298 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7299 | ||
7300 | fi; | |
7301 | ||
7302 | eval "$ac_cv_use_accel" | |
7303 | if test "$no_cache" != 1; then | |
7304 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7305 | fi | |
7306 | ||
7307 | if test "$wxUSE_ACCEL" = yes; then | |
7308 | echo "$as_me:$LINENO: result: yes" >&5 | |
7309 | echo "${ECHO_T}yes" >&6 | |
7310 | else | |
7311 | echo "$as_me:$LINENO: result: no" >&5 | |
7312 | echo "${ECHO_T}no" >&6 | |
7313 | fi | |
7314 | ||
7315 | ||
7316 | enablestring= | |
7317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7318 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7319 | no_cache=0 | |
7320 | # Check whether --enable-button or --disable-button was given. | |
7321 | if test "${enable_button+set}" = set; then | |
7322 | enableval="$enable_button" | |
7323 | ||
7324 | if test "$enableval" = yes; then | |
7325 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7326 | else | |
7327 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7328 | fi | |
7329 | ||
7330 | else | |
7331 | ||
7332 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7333 | if test "x$LINE" != x ; then | |
7334 | eval "DEFAULT_$LINE" | |
7335 | else | |
7336 | no_cache=1 | |
7337 | fi | |
7338 | ||
7339 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7340 | ||
7341 | fi; | |
7342 | ||
7343 | eval "$ac_cv_use_button" | |
7344 | if test "$no_cache" != 1; then | |
7345 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7346 | fi | |
7347 | ||
7348 | if test "$wxUSE_BUTTON" = yes; then | |
7349 | echo "$as_me:$LINENO: result: yes" >&5 | |
7350 | echo "${ECHO_T}yes" >&6 | |
7351 | else | |
7352 | echo "$as_me:$LINENO: result: no" >&5 | |
7353 | echo "${ECHO_T}no" >&6 | |
7354 | fi | |
7355 | ||
7356 | ||
7357 | enablestring= | |
7358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7359 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7360 | no_cache=0 | |
7361 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7362 | if test "${enable_bmpbutton+set}" = set; then | |
7363 | enableval="$enable_bmpbutton" | |
7364 | ||
7365 | if test "$enableval" = yes; then | |
7366 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7367 | else | |
7368 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7369 | fi | |
7370 | ||
7371 | else | |
7372 | ||
7373 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7374 | if test "x$LINE" != x ; then | |
7375 | eval "DEFAULT_$LINE" | |
7376 | else | |
7377 | no_cache=1 | |
7378 | fi | |
7379 | ||
7380 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7381 | ||
7382 | fi; | |
7383 | ||
7384 | eval "$ac_cv_use_bmpbutton" | |
7385 | if test "$no_cache" != 1; then | |
7386 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7387 | fi | |
7388 | ||
7389 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7390 | echo "$as_me:$LINENO: result: yes" >&5 | |
7391 | echo "${ECHO_T}yes" >&6 | |
7392 | else | |
7393 | echo "$as_me:$LINENO: result: no" >&5 | |
7394 | echo "${ECHO_T}no" >&6 | |
7395 | fi | |
7396 | ||
7397 | ||
7398 | enablestring= | |
7399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7400 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7401 | no_cache=0 | |
7402 | # Check whether --enable-calendar or --disable-calendar was given. | |
7403 | if test "${enable_calendar+set}" = set; then | |
7404 | enableval="$enable_calendar" | |
7405 | ||
7406 | if test "$enableval" = yes; then | |
7407 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7408 | else | |
7409 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7410 | fi | |
7411 | ||
7412 | else | |
7413 | ||
7414 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7415 | if test "x$LINE" != x ; then | |
7416 | eval "DEFAULT_$LINE" | |
7417 | else | |
7418 | no_cache=1 | |
7419 | fi | |
7420 | ||
7421 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7422 | ||
7423 | fi; | |
7424 | ||
7425 | eval "$ac_cv_use_calendar" | |
7426 | if test "$no_cache" != 1; then | |
7427 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7428 | fi | |
7429 | ||
7430 | if test "$wxUSE_CALCTRL" = yes; then | |
7431 | echo "$as_me:$LINENO: result: yes" >&5 | |
7432 | echo "${ECHO_T}yes" >&6 | |
7433 | else | |
7434 | echo "$as_me:$LINENO: result: no" >&5 | |
7435 | echo "${ECHO_T}no" >&6 | |
7436 | fi | |
7437 | ||
7438 | ||
7439 | enablestring= | |
7440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7441 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7442 | no_cache=0 | |
7443 | # Check whether --enable-caret or --disable-caret was given. | |
7444 | if test "${enable_caret+set}" = set; then | |
7445 | enableval="$enable_caret" | |
7446 | ||
7447 | if test "$enableval" = yes; then | |
7448 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7449 | else | |
7450 | ac_cv_use_caret='wxUSE_CARET=no' | |
7451 | fi | |
7452 | ||
7453 | else | |
7454 | ||
7455 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7456 | if test "x$LINE" != x ; then | |
7457 | eval "DEFAULT_$LINE" | |
7458 | else | |
7459 | no_cache=1 | |
7460 | fi | |
7461 | ||
7462 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7463 | ||
7464 | fi; | |
7465 | ||
7466 | eval "$ac_cv_use_caret" | |
7467 | if test "$no_cache" != 1; then | |
7468 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7469 | fi | |
7470 | ||
7471 | if test "$wxUSE_CARET" = yes; then | |
7472 | echo "$as_me:$LINENO: result: yes" >&5 | |
7473 | echo "${ECHO_T}yes" >&6 | |
7474 | else | |
7475 | echo "$as_me:$LINENO: result: no" >&5 | |
7476 | echo "${ECHO_T}no" >&6 | |
7477 | fi | |
7478 | ||
7479 | ||
7480 | enablestring= | |
7481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7482 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7483 | no_cache=0 | |
7484 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7485 | if test "${enable_checkbox+set}" = set; then | |
7486 | enableval="$enable_checkbox" | |
7487 | ||
7488 | if test "$enableval" = yes; then | |
7489 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7490 | else | |
7491 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7492 | fi | |
7493 | ||
7494 | else | |
7495 | ||
7496 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7497 | if test "x$LINE" != x ; then | |
7498 | eval "DEFAULT_$LINE" | |
7499 | else | |
7500 | no_cache=1 | |
7501 | fi | |
7502 | ||
7503 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7504 | ||
7505 | fi; | |
7506 | ||
7507 | eval "$ac_cv_use_checkbox" | |
7508 | if test "$no_cache" != 1; then | |
7509 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7510 | fi | |
7511 | ||
7512 | if test "$wxUSE_CHECKBOX" = yes; then | |
7513 | echo "$as_me:$LINENO: result: yes" >&5 | |
7514 | echo "${ECHO_T}yes" >&6 | |
7515 | else | |
7516 | echo "$as_me:$LINENO: result: no" >&5 | |
7517 | echo "${ECHO_T}no" >&6 | |
7518 | fi | |
7519 | ||
7520 | ||
7521 | enablestring= | |
7522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7523 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7524 | no_cache=0 | |
7525 | # Check whether --enable-checklst or --disable-checklst was given. | |
7526 | if test "${enable_checklst+set}" = set; then | |
7527 | enableval="$enable_checklst" | |
7528 | ||
7529 | if test "$enableval" = yes; then | |
7530 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7531 | else | |
7532 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7533 | fi | |
7534 | ||
7535 | else | |
7536 | ||
7537 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7538 | if test "x$LINE" != x ; then | |
7539 | eval "DEFAULT_$LINE" | |
7540 | else | |
7541 | no_cache=1 | |
7542 | fi | |
7543 | ||
7544 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7545 | ||
7546 | fi; | |
7547 | ||
7548 | eval "$ac_cv_use_checklst" | |
7549 | if test "$no_cache" != 1; then | |
7550 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7551 | fi | |
7552 | ||
7553 | if test "$wxUSE_CHECKLST" = yes; then | |
7554 | echo "$as_me:$LINENO: result: yes" >&5 | |
7555 | echo "${ECHO_T}yes" >&6 | |
7556 | else | |
7557 | echo "$as_me:$LINENO: result: no" >&5 | |
7558 | echo "${ECHO_T}no" >&6 | |
7559 | fi | |
7560 | ||
7561 | ||
7562 | enablestring= | |
7563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7564 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7565 | no_cache=0 | |
7566 | # Check whether --enable-choice or --disable-choice was given. | |
7567 | if test "${enable_choice+set}" = set; then | |
7568 | enableval="$enable_choice" | |
7569 | ||
7570 | if test "$enableval" = yes; then | |
7571 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7572 | else | |
7573 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7574 | fi | |
7575 | ||
7576 | else | |
7577 | ||
7578 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7579 | if test "x$LINE" != x ; then | |
7580 | eval "DEFAULT_$LINE" | |
7581 | else | |
7582 | no_cache=1 | |
7583 | fi | |
7584 | ||
7585 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7586 | ||
7587 | fi; | |
7588 | ||
7589 | eval "$ac_cv_use_choice" | |
7590 | if test "$no_cache" != 1; then | |
7591 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7592 | fi | |
7593 | ||
7594 | if test "$wxUSE_CHOICE" = yes; then | |
7595 | echo "$as_me:$LINENO: result: yes" >&5 | |
7596 | echo "${ECHO_T}yes" >&6 | |
7597 | else | |
7598 | echo "$as_me:$LINENO: result: no" >&5 | |
7599 | echo "${ECHO_T}no" >&6 | |
7600 | fi | |
7601 | ||
7602 | ||
92bbdbcd WS |
7603 | enablestring= |
7604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7605 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7606 | no_cache=0 | |
7607 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7608 | if test "${enable_choicebook+set}" = set; then | |
7609 | enableval="$enable_choicebook" | |
7610 | ||
7611 | if test "$enableval" = yes; then | |
7612 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7613 | else | |
7614 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7615 | fi | |
7616 | ||
7617 | else | |
7618 | ||
7619 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7620 | if test "x$LINE" != x ; then | |
7621 | eval "DEFAULT_$LINE" | |
7622 | else | |
7623 | no_cache=1 | |
7624 | fi | |
7625 | ||
7626 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7627 | ||
7628 | fi; | |
7629 | ||
7630 | eval "$ac_cv_use_choicebook" | |
7631 | if test "$no_cache" != 1; then | |
7632 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7633 | fi | |
7634 | ||
7635 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7636 | echo "$as_me:$LINENO: result: yes" >&5 | |
7637 | echo "${ECHO_T}yes" >&6 | |
7638 | else | |
7639 | echo "$as_me:$LINENO: result: no" >&5 | |
7640 | echo "${ECHO_T}no" >&6 | |
7641 | fi | |
7642 | ||
7643 | ||
a848cd7e SC |
7644 | enablestring= |
7645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7646 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7647 | no_cache=0 | |
7648 | # Check whether --enable-combobox or --disable-combobox was given. | |
7649 | if test "${enable_combobox+set}" = set; then | |
7650 | enableval="$enable_combobox" | |
7651 | ||
7652 | if test "$enableval" = yes; then | |
7653 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7654 | else | |
7655 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7656 | fi | |
7657 | ||
7658 | else | |
7659 | ||
7660 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7661 | if test "x$LINE" != x ; then | |
7662 | eval "DEFAULT_$LINE" | |
7663 | else | |
7664 | no_cache=1 | |
7665 | fi | |
7666 | ||
7667 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7668 | ||
7669 | fi; | |
7670 | ||
7671 | eval "$ac_cv_use_combobox" | |
7672 | if test "$no_cache" != 1; then | |
7673 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7674 | fi | |
7675 | ||
7676 | if test "$wxUSE_COMBOBOX" = yes; then | |
7677 | echo "$as_me:$LINENO: result: yes" >&5 | |
7678 | echo "${ECHO_T}yes" >&6 | |
7679 | else | |
7680 | echo "$as_me:$LINENO: result: no" >&5 | |
7681 | echo "${ECHO_T}no" >&6 | |
7682 | fi | |
7683 | ||
7684 | ||
da98e9be VZ |
7685 | enablestring= |
7686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7687 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7688 | no_cache=0 | |
7689 | # Check whether --enable-datepick or --disable-datepick was given. | |
7690 | if test "${enable_datepick+set}" = set; then | |
7691 | enableval="$enable_datepick" | |
7692 | ||
7693 | if test "$enableval" = yes; then | |
7694 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7695 | else | |
7696 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7697 | fi | |
7698 | ||
7699 | else | |
7700 | ||
7701 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7702 | if test "x$LINE" != x ; then | |
7703 | eval "DEFAULT_$LINE" | |
7704 | else | |
7705 | no_cache=1 | |
7706 | fi | |
7707 | ||
7708 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7709 | ||
7710 | fi; | |
7711 | ||
7712 | eval "$ac_cv_use_datepick" | |
7713 | if test "$no_cache" != 1; then | |
7714 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7715 | fi | |
7716 | ||
7717 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7718 | echo "$as_me:$LINENO: result: yes" >&5 | |
7719 | echo "${ECHO_T}yes" >&6 | |
7720 | else | |
7721 | echo "$as_me:$LINENO: result: no" >&5 | |
7722 | echo "${ECHO_T}no" >&6 | |
7723 | fi | |
7724 | ||
7725 | ||
a848cd7e SC |
7726 | enablestring= |
7727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7728 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7729 | no_cache=0 | |
7730 | # Check whether --enable-display or --disable-display was given. | |
7731 | if test "${enable_display+set}" = set; then | |
7732 | enableval="$enable_display" | |
7733 | ||
7734 | if test "$enableval" = yes; then | |
7735 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7736 | else | |
7737 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7738 | fi | |
7739 | ||
7740 | else | |
7741 | ||
7742 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7743 | if test "x$LINE" != x ; then | |
7744 | eval "DEFAULT_$LINE" | |
7745 | else | |
7746 | no_cache=1 | |
7747 | fi | |
7748 | ||
7749 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7750 | ||
7751 | fi; | |
7752 | ||
7753 | eval "$ac_cv_use_display" | |
7754 | if test "$no_cache" != 1; then | |
7755 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7756 | fi | |
7757 | ||
7758 | if test "$wxUSE_DISPLAY" = yes; then | |
7759 | echo "$as_me:$LINENO: result: yes" >&5 | |
7760 | echo "${ECHO_T}yes" >&6 | |
7761 | else | |
7762 | echo "$as_me:$LINENO: result: no" >&5 | |
7763 | echo "${ECHO_T}no" >&6 | |
7764 | fi | |
7765 | ||
7766 | ||
7767 | enablestring= | |
7768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7769 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7770 | no_cache=0 | |
7771 | # Check whether --enable-gauge or --disable-gauge was given. | |
7772 | if test "${enable_gauge+set}" = set; then | |
7773 | enableval="$enable_gauge" | |
7774 | ||
7775 | if test "$enableval" = yes; then | |
7776 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7777 | else | |
7778 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7779 | fi | |
7780 | ||
7781 | else | |
7782 | ||
7783 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7784 | if test "x$LINE" != x ; then | |
7785 | eval "DEFAULT_$LINE" | |
7786 | else | |
7787 | no_cache=1 | |
7788 | fi | |
7789 | ||
7790 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7791 | ||
7792 | fi; | |
7793 | ||
7794 | eval "$ac_cv_use_gauge" | |
7795 | if test "$no_cache" != 1; then | |
7796 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7797 | fi | |
7798 | ||
7799 | if test "$wxUSE_GAUGE" = yes; then | |
7800 | echo "$as_me:$LINENO: result: yes" >&5 | |
7801 | echo "${ECHO_T}yes" >&6 | |
7802 | else | |
7803 | echo "$as_me:$LINENO: result: no" >&5 | |
7804 | echo "${ECHO_T}no" >&6 | |
7805 | fi | |
7806 | ||
7807 | ||
7808 | enablestring= | |
7809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7810 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7811 | no_cache=0 | |
7812 | # Check whether --enable-grid or --disable-grid was given. | |
7813 | if test "${enable_grid+set}" = set; then | |
7814 | enableval="$enable_grid" | |
7815 | ||
7816 | if test "$enableval" = yes; then | |
7817 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7818 | else | |
7819 | ac_cv_use_grid='wxUSE_GRID=no' | |
7820 | fi | |
7821 | ||
7822 | else | |
7823 | ||
7824 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7825 | if test "x$LINE" != x ; then | |
7826 | eval "DEFAULT_$LINE" | |
7827 | else | |
7828 | no_cache=1 | |
7829 | fi | |
7830 | ||
7831 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7832 | ||
7833 | fi; | |
7834 | ||
7835 | eval "$ac_cv_use_grid" | |
7836 | if test "$no_cache" != 1; then | |
7837 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7838 | fi | |
7839 | ||
7840 | if test "$wxUSE_GRID" = yes; then | |
7841 | echo "$as_me:$LINENO: result: yes" >&5 | |
7842 | echo "${ECHO_T}yes" >&6 | |
7843 | else | |
7844 | echo "$as_me:$LINENO: result: no" >&5 | |
7845 | echo "${ECHO_T}no" >&6 | |
7846 | fi | |
7847 | ||
7848 | ||
7849 | enablestring= | |
7850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7851 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7852 | no_cache=0 | |
7853 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7854 | if test "${enable_imaglist+set}" = set; then | |
7855 | enableval="$enable_imaglist" | |
7856 | ||
7857 | if test "$enableval" = yes; then | |
7858 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7859 | else | |
7860 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7861 | fi | |
7862 | ||
7863 | else | |
7864 | ||
7865 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7866 | if test "x$LINE" != x ; then | |
7867 | eval "DEFAULT_$LINE" | |
7868 | else | |
7869 | no_cache=1 | |
7870 | fi | |
7871 | ||
7872 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7873 | ||
7874 | fi; | |
7875 | ||
7876 | eval "$ac_cv_use_imaglist" | |
7877 | if test "$no_cache" != 1; then | |
7878 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7879 | fi | |
7880 | ||
7881 | if test "$wxUSE_IMAGLIST" = yes; then | |
7882 | echo "$as_me:$LINENO: result: yes" >&5 | |
7883 | echo "${ECHO_T}yes" >&6 | |
7884 | else | |
7885 | echo "$as_me:$LINENO: result: no" >&5 | |
7886 | echo "${ECHO_T}no" >&6 | |
7887 | fi | |
7888 | ||
7889 | ||
7890 | enablestring= | |
7891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7892 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7893 | no_cache=0 | |
7894 | # Check whether --enable-listbook or --disable-listbook was given. | |
7895 | if test "${enable_listbook+set}" = set; then | |
7896 | enableval="$enable_listbook" | |
7897 | ||
7898 | if test "$enableval" = yes; then | |
7899 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7900 | else | |
7901 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7902 | fi | |
7903 | ||
7904 | else | |
7905 | ||
7906 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7907 | if test "x$LINE" != x ; then | |
7908 | eval "DEFAULT_$LINE" | |
7909 | else | |
7910 | no_cache=1 | |
7911 | fi | |
7912 | ||
7913 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7914 | ||
7915 | fi; | |
7916 | ||
7917 | eval "$ac_cv_use_listbook" | |
7918 | if test "$no_cache" != 1; then | |
7919 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7920 | fi | |
7921 | ||
7922 | if test "$wxUSE_LISTBOOK" = yes; then | |
7923 | echo "$as_me:$LINENO: result: yes" >&5 | |
7924 | echo "${ECHO_T}yes" >&6 | |
7925 | else | |
7926 | echo "$as_me:$LINENO: result: no" >&5 | |
7927 | echo "${ECHO_T}no" >&6 | |
7928 | fi | |
7929 | ||
7930 | ||
7931 | enablestring= | |
7932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7933 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7934 | no_cache=0 | |
7935 | # Check whether --enable-listbox or --disable-listbox was given. | |
7936 | if test "${enable_listbox+set}" = set; then | |
7937 | enableval="$enable_listbox" | |
7938 | ||
7939 | if test "$enableval" = yes; then | |
7940 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7941 | else | |
7942 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7943 | fi | |
7944 | ||
7945 | else | |
7946 | ||
7947 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7948 | if test "x$LINE" != x ; then | |
7949 | eval "DEFAULT_$LINE" | |
7950 | else | |
7951 | no_cache=1 | |
7952 | fi | |
7953 | ||
7954 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7955 | ||
7956 | fi; | |
7957 | ||
7958 | eval "$ac_cv_use_listbox" | |
7959 | if test "$no_cache" != 1; then | |
7960 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7961 | fi | |
7962 | ||
7963 | if test "$wxUSE_LISTBOX" = yes; then | |
7964 | echo "$as_me:$LINENO: result: yes" >&5 | |
7965 | echo "${ECHO_T}yes" >&6 | |
7966 | else | |
7967 | echo "$as_me:$LINENO: result: no" >&5 | |
7968 | echo "${ECHO_T}no" >&6 | |
7969 | fi | |
7970 | ||
7971 | ||
7972 | enablestring= | |
7973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7974 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7975 | no_cache=0 | |
7976 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7977 | if test "${enable_listctrl+set}" = set; then | |
7978 | enableval="$enable_listctrl" | |
7979 | ||
7980 | if test "$enableval" = yes; then | |
7981 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7982 | else | |
7983 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7984 | fi | |
7985 | ||
7986 | else | |
7987 | ||
7988 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7989 | if test "x$LINE" != x ; then | |
7990 | eval "DEFAULT_$LINE" | |
7991 | else | |
7992 | no_cache=1 | |
7993 | fi | |
7994 | ||
7995 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7996 | ||
7997 | fi; | |
7998 | ||
7999 | eval "$ac_cv_use_listctrl" | |
8000 | if test "$no_cache" != 1; then | |
8001 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8002 | fi | |
8003 | ||
8004 | if test "$wxUSE_LISTCTRL" = yes; then | |
8005 | echo "$as_me:$LINENO: result: yes" >&5 | |
8006 | echo "${ECHO_T}yes" >&6 | |
8007 | else | |
8008 | echo "$as_me:$LINENO: result: no" >&5 | |
8009 | echo "${ECHO_T}no" >&6 | |
8010 | fi | |
8011 | ||
8012 | ||
8013 | enablestring= | |
8014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8015 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8016 | no_cache=0 | |
8017 | # Check whether --enable-notebook or --disable-notebook was given. | |
8018 | if test "${enable_notebook+set}" = set; then | |
8019 | enableval="$enable_notebook" | |
8020 | ||
8021 | if test "$enableval" = yes; then | |
8022 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8023 | else | |
8024 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8025 | fi | |
8026 | ||
8027 | else | |
8028 | ||
8029 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8030 | if test "x$LINE" != x ; then | |
8031 | eval "DEFAULT_$LINE" | |
8032 | else | |
8033 | no_cache=1 | |
8034 | fi | |
8035 | ||
8036 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8037 | ||
8038 | fi; | |
8039 | ||
8040 | eval "$ac_cv_use_notebook" | |
8041 | if test "$no_cache" != 1; then | |
8042 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8043 | fi | |
8044 | ||
8045 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8046 | echo "$as_me:$LINENO: result: yes" >&5 | |
8047 | echo "${ECHO_T}yes" >&6 | |
8048 | else | |
8049 | echo "$as_me:$LINENO: result: no" >&5 | |
8050 | echo "${ECHO_T}no" >&6 | |
8051 | fi | |
8052 | ||
8053 | ||
8054 | enablestring= | |
8055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8056 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8057 | no_cache=0 | |
8058 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8059 | if test "${enable_radiobox+set}" = set; then | |
8060 | enableval="$enable_radiobox" | |
8061 | ||
8062 | if test "$enableval" = yes; then | |
8063 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8064 | else | |
8065 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8066 | fi | |
8067 | ||
8068 | else | |
8069 | ||
8070 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8071 | if test "x$LINE" != x ; then | |
8072 | eval "DEFAULT_$LINE" | |
8073 | else | |
8074 | no_cache=1 | |
8075 | fi | |
8076 | ||
8077 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8078 | ||
8079 | fi; | |
8080 | ||
8081 | eval "$ac_cv_use_radiobox" | |
8082 | if test "$no_cache" != 1; then | |
8083 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8084 | fi | |
8085 | ||
8086 | if test "$wxUSE_RADIOBOX" = yes; then | |
8087 | echo "$as_me:$LINENO: result: yes" >&5 | |
8088 | echo "${ECHO_T}yes" >&6 | |
8089 | else | |
8090 | echo "$as_me:$LINENO: result: no" >&5 | |
8091 | echo "${ECHO_T}no" >&6 | |
8092 | fi | |
8093 | ||
8094 | ||
8095 | enablestring= | |
8096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8097 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8098 | no_cache=0 | |
8099 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8100 | if test "${enable_radiobtn+set}" = set; then | |
8101 | enableval="$enable_radiobtn" | |
8102 | ||
8103 | if test "$enableval" = yes; then | |
8104 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8105 | else | |
8106 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8107 | fi | |
8108 | ||
8109 | else | |
8110 | ||
8111 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8112 | if test "x$LINE" != x ; then | |
8113 | eval "DEFAULT_$LINE" | |
8114 | else | |
8115 | no_cache=1 | |
8116 | fi | |
8117 | ||
8118 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8119 | ||
8120 | fi; | |
8121 | ||
8122 | eval "$ac_cv_use_radiobtn" | |
8123 | if test "$no_cache" != 1; then | |
8124 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8125 | fi | |
8126 | ||
8127 | if test "$wxUSE_RADIOBTN" = yes; then | |
8128 | echo "$as_me:$LINENO: result: yes" >&5 | |
8129 | echo "${ECHO_T}yes" >&6 | |
8130 | else | |
8131 | echo "$as_me:$LINENO: result: no" >&5 | |
8132 | echo "${ECHO_T}no" >&6 | |
8133 | fi | |
8134 | ||
8135 | ||
8136 | enablestring= | |
8137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8138 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8139 | no_cache=0 | |
8140 | # Check whether --enable-sash or --disable-sash was given. | |
8141 | if test "${enable_sash+set}" = set; then | |
8142 | enableval="$enable_sash" | |
8143 | ||
8144 | if test "$enableval" = yes; then | |
8145 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8146 | else | |
8147 | ac_cv_use_sash='wxUSE_SASH=no' | |
8148 | fi | |
8149 | ||
8150 | else | |
8151 | ||
8152 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8153 | if test "x$LINE" != x ; then | |
8154 | eval "DEFAULT_$LINE" | |
8155 | else | |
8156 | no_cache=1 | |
8157 | fi | |
8158 | ||
8159 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8160 | ||
8161 | fi; | |
8162 | ||
8163 | eval "$ac_cv_use_sash" | |
8164 | if test "$no_cache" != 1; then | |
8165 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8166 | fi | |
8167 | ||
8168 | if test "$wxUSE_SASH" = yes; then | |
8169 | echo "$as_me:$LINENO: result: yes" >&5 | |
8170 | echo "${ECHO_T}yes" >&6 | |
8171 | else | |
8172 | echo "$as_me:$LINENO: result: no" >&5 | |
8173 | echo "${ECHO_T}no" >&6 | |
8174 | fi | |
8175 | ||
8176 | ||
8177 | enablestring= | |
8178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8179 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8180 | no_cache=0 | |
8181 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8182 | if test "${enable_scrollbar+set}" = set; then | |
8183 | enableval="$enable_scrollbar" | |
8184 | ||
8185 | if test "$enableval" = yes; then | |
8186 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8187 | else | |
8188 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8189 | fi | |
8190 | ||
8191 | else | |
8192 | ||
8193 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8194 | if test "x$LINE" != x ; then | |
8195 | eval "DEFAULT_$LINE" | |
8196 | else | |
8197 | no_cache=1 | |
8198 | fi | |
8199 | ||
8200 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8201 | ||
8202 | fi; | |
8203 | ||
8204 | eval "$ac_cv_use_scrollbar" | |
8205 | if test "$no_cache" != 1; then | |
8206 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8207 | fi | |
8208 | ||
8209 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8210 | echo "$as_me:$LINENO: result: yes" >&5 | |
8211 | echo "${ECHO_T}yes" >&6 | |
8212 | else | |
8213 | echo "$as_me:$LINENO: result: no" >&5 | |
8214 | echo "${ECHO_T}no" >&6 | |
8215 | fi | |
8216 | ||
8217 | ||
8218 | enablestring= | |
8219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8220 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8221 | no_cache=0 | |
8222 | # Check whether --enable-slider or --disable-slider was given. | |
8223 | if test "${enable_slider+set}" = set; then | |
8224 | enableval="$enable_slider" | |
8225 | ||
8226 | if test "$enableval" = yes; then | |
8227 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8228 | else | |
8229 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8230 | fi | |
8231 | ||
8232 | else | |
8233 | ||
8234 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8235 | if test "x$LINE" != x ; then | |
8236 | eval "DEFAULT_$LINE" | |
8237 | else | |
8238 | no_cache=1 | |
8239 | fi | |
8240 | ||
8241 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8242 | ||
8243 | fi; | |
8244 | ||
8245 | eval "$ac_cv_use_slider" | |
8246 | if test "$no_cache" != 1; then | |
8247 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8248 | fi | |
8249 | ||
8250 | if test "$wxUSE_SLIDER" = yes; then | |
8251 | echo "$as_me:$LINENO: result: yes" >&5 | |
8252 | echo "${ECHO_T}yes" >&6 | |
8253 | else | |
8254 | echo "$as_me:$LINENO: result: no" >&5 | |
8255 | echo "${ECHO_T}no" >&6 | |
8256 | fi | |
8257 | ||
8258 | ||
8259 | enablestring= | |
8260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8261 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8262 | no_cache=0 | |
8263 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8264 | if test "${enable_spinbtn+set}" = set; then | |
8265 | enableval="$enable_spinbtn" | |
8266 | ||
8267 | if test "$enableval" = yes; then | |
8268 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8269 | else | |
8270 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8271 | fi | |
8272 | ||
8273 | else | |
8274 | ||
8275 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8276 | if test "x$LINE" != x ; then | |
8277 | eval "DEFAULT_$LINE" | |
8278 | else | |
8279 | no_cache=1 | |
8280 | fi | |
8281 | ||
8282 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8283 | ||
8284 | fi; | |
8285 | ||
8286 | eval "$ac_cv_use_spinbtn" | |
8287 | if test "$no_cache" != 1; then | |
8288 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8289 | fi | |
8290 | ||
8291 | if test "$wxUSE_SPINBTN" = yes; then | |
8292 | echo "$as_me:$LINENO: result: yes" >&5 | |
8293 | echo "${ECHO_T}yes" >&6 | |
8294 | else | |
8295 | echo "$as_me:$LINENO: result: no" >&5 | |
8296 | echo "${ECHO_T}no" >&6 | |
8297 | fi | |
8298 | ||
8299 | ||
8300 | enablestring= | |
8301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8302 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8303 | no_cache=0 | |
8304 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8305 | if test "${enable_spinctrl+set}" = set; then | |
8306 | enableval="$enable_spinctrl" | |
8307 | ||
8308 | if test "$enableval" = yes; then | |
8309 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8310 | else | |
8311 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8312 | fi | |
8313 | ||
8314 | else | |
8315 | ||
8316 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8317 | if test "x$LINE" != x ; then | |
8318 | eval "DEFAULT_$LINE" | |
8319 | else | |
8320 | no_cache=1 | |
8321 | fi | |
8322 | ||
8323 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8324 | ||
8325 | fi; | |
8326 | ||
8327 | eval "$ac_cv_use_spinctrl" | |
8328 | if test "$no_cache" != 1; then | |
8329 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8330 | fi | |
8331 | ||
8332 | if test "$wxUSE_SPINCTRL" = yes; then | |
8333 | echo "$as_me:$LINENO: result: yes" >&5 | |
8334 | echo "${ECHO_T}yes" >&6 | |
8335 | else | |
8336 | echo "$as_me:$LINENO: result: no" >&5 | |
8337 | echo "${ECHO_T}no" >&6 | |
8338 | fi | |
8339 | ||
8340 | ||
8341 | enablestring= | |
8342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8343 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8344 | no_cache=0 | |
8345 | # Check whether --enable-splitter or --disable-splitter was given. | |
8346 | if test "${enable_splitter+set}" = set; then | |
8347 | enableval="$enable_splitter" | |
8348 | ||
8349 | if test "$enableval" = yes; then | |
8350 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8351 | else | |
8352 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8353 | fi | |
8354 | ||
8355 | else | |
8356 | ||
8357 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8358 | if test "x$LINE" != x ; then | |
8359 | eval "DEFAULT_$LINE" | |
8360 | else | |
8361 | no_cache=1 | |
8362 | fi | |
8363 | ||
8364 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8365 | ||
8366 | fi; | |
8367 | ||
8368 | eval "$ac_cv_use_splitter" | |
8369 | if test "$no_cache" != 1; then | |
8370 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8371 | fi | |
8372 | ||
8373 | if test "$wxUSE_SPLITTER" = yes; then | |
8374 | echo "$as_me:$LINENO: result: yes" >&5 | |
8375 | echo "${ECHO_T}yes" >&6 | |
8376 | else | |
8377 | echo "$as_me:$LINENO: result: no" >&5 | |
8378 | echo "${ECHO_T}no" >&6 | |
8379 | fi | |
8380 | ||
8381 | ||
8382 | enablestring= | |
8383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8384 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8385 | no_cache=0 | |
8386 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8387 | if test "${enable_statbmp+set}" = set; then | |
8388 | enableval="$enable_statbmp" | |
8389 | ||
8390 | if test "$enableval" = yes; then | |
8391 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8392 | else | |
8393 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8394 | fi | |
8395 | ||
8396 | else | |
8397 | ||
8398 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8399 | if test "x$LINE" != x ; then | |
8400 | eval "DEFAULT_$LINE" | |
8401 | else | |
8402 | no_cache=1 | |
8403 | fi | |
8404 | ||
8405 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8406 | ||
8407 | fi; | |
8408 | ||
8409 | eval "$ac_cv_use_statbmp" | |
8410 | if test "$no_cache" != 1; then | |
8411 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8412 | fi | |
8413 | ||
8414 | if test "$wxUSE_STATBMP" = yes; then | |
8415 | echo "$as_me:$LINENO: result: yes" >&5 | |
8416 | echo "${ECHO_T}yes" >&6 | |
8417 | else | |
8418 | echo "$as_me:$LINENO: result: no" >&5 | |
8419 | echo "${ECHO_T}no" >&6 | |
8420 | fi | |
8421 | ||
8422 | ||
8423 | enablestring= | |
8424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8425 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8426 | no_cache=0 | |
8427 | # Check whether --enable-statbox or --disable-statbox was given. | |
8428 | if test "${enable_statbox+set}" = set; then | |
8429 | enableval="$enable_statbox" | |
8430 | ||
8431 | if test "$enableval" = yes; then | |
8432 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8433 | else | |
8434 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8435 | fi | |
8436 | ||
8437 | else | |
8438 | ||
8439 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8440 | if test "x$LINE" != x ; then | |
8441 | eval "DEFAULT_$LINE" | |
8442 | else | |
8443 | no_cache=1 | |
8444 | fi | |
8445 | ||
8446 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8447 | ||
8448 | fi; | |
8449 | ||
8450 | eval "$ac_cv_use_statbox" | |
8451 | if test "$no_cache" != 1; then | |
8452 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8453 | fi | |
8454 | ||
8455 | if test "$wxUSE_STATBOX" = yes; then | |
8456 | echo "$as_me:$LINENO: result: yes" >&5 | |
8457 | echo "${ECHO_T}yes" >&6 | |
8458 | else | |
8459 | echo "$as_me:$LINENO: result: no" >&5 | |
8460 | echo "${ECHO_T}no" >&6 | |
8461 | fi | |
8462 | ||
8463 | ||
8464 | enablestring= | |
8465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8466 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8467 | no_cache=0 | |
8468 | # Check whether --enable-statline or --disable-statline was given. | |
8469 | if test "${enable_statline+set}" = set; then | |
8470 | enableval="$enable_statline" | |
8471 | ||
8472 | if test "$enableval" = yes; then | |
8473 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8474 | else | |
8475 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8476 | fi | |
8477 | ||
8478 | else | |
8479 | ||
8480 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8481 | if test "x$LINE" != x ; then | |
8482 | eval "DEFAULT_$LINE" | |
8483 | else | |
8484 | no_cache=1 | |
8485 | fi | |
8486 | ||
8487 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8488 | ||
8489 | fi; | |
8490 | ||
8491 | eval "$ac_cv_use_statline" | |
8492 | if test "$no_cache" != 1; then | |
8493 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8494 | fi | |
8495 | ||
8496 | if test "$wxUSE_STATLINE" = yes; then | |
8497 | echo "$as_me:$LINENO: result: yes" >&5 | |
8498 | echo "${ECHO_T}yes" >&6 | |
8499 | else | |
8500 | echo "$as_me:$LINENO: result: no" >&5 | |
8501 | echo "${ECHO_T}no" >&6 | |
8502 | fi | |
8503 | ||
8504 | ||
8505 | enablestring= | |
8506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8507 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8508 | no_cache=0 | |
8509 | # Check whether --enable-stattext or --disable-stattext was given. | |
8510 | if test "${enable_stattext+set}" = set; then | |
8511 | enableval="$enable_stattext" | |
8512 | ||
8513 | if test "$enableval" = yes; then | |
8514 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8515 | else | |
8516 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8517 | fi | |
8518 | ||
8519 | else | |
8520 | ||
8521 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8522 | if test "x$LINE" != x ; then | |
8523 | eval "DEFAULT_$LINE" | |
8524 | else | |
8525 | no_cache=1 | |
8526 | fi | |
8527 | ||
8528 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8529 | ||
8530 | fi; | |
8531 | ||
8532 | eval "$ac_cv_use_stattext" | |
8533 | if test "$no_cache" != 1; then | |
8534 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8535 | fi | |
8536 | ||
8537 | if test "$wxUSE_STATTEXT" = yes; then | |
8538 | echo "$as_me:$LINENO: result: yes" >&5 | |
8539 | echo "${ECHO_T}yes" >&6 | |
8540 | else | |
8541 | echo "$as_me:$LINENO: result: no" >&5 | |
8542 | echo "${ECHO_T}no" >&6 | |
8543 | fi | |
8544 | ||
8545 | ||
8546 | enablestring= | |
8547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8548 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8549 | no_cache=0 | |
8550 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8551 | if test "${enable_statusbar+set}" = set; then | |
8552 | enableval="$enable_statusbar" | |
8553 | ||
8554 | if test "$enableval" = yes; then | |
8555 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8556 | else | |
8557 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8558 | fi | |
8559 | ||
8560 | else | |
8561 | ||
8562 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8563 | if test "x$LINE" != x ; then | |
8564 | eval "DEFAULT_$LINE" | |
8565 | else | |
8566 | no_cache=1 | |
8567 | fi | |
8568 | ||
8569 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8570 | ||
8571 | fi; | |
8572 | ||
8573 | eval "$ac_cv_use_statusbar" | |
8574 | if test "$no_cache" != 1; then | |
8575 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8576 | fi | |
8577 | ||
8578 | if test "$wxUSE_STATUSBAR" = yes; then | |
8579 | echo "$as_me:$LINENO: result: yes" >&5 | |
8580 | echo "${ECHO_T}yes" >&6 | |
8581 | else | |
8582 | echo "$as_me:$LINENO: result: no" >&5 | |
8583 | echo "${ECHO_T}no" >&6 | |
8584 | fi | |
8585 | ||
8586 | ||
8587 | enablestring= | |
8588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8589 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8590 | no_cache=0 | |
8591 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8592 | if test "${enable_tabdialog+set}" = set; then | |
8593 | enableval="$enable_tabdialog" | |
8594 | ||
8595 | if test "$enableval" = yes; then | |
8596 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8597 | else | |
8598 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8599 | fi | |
8600 | ||
8601 | else | |
8602 | ||
8603 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8604 | if test "x$LINE" != x ; then | |
8605 | eval "DEFAULT_$LINE" | |
8606 | else | |
8607 | no_cache=1 | |
8608 | fi | |
8609 | ||
8610 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8611 | ||
8612 | fi; | |
8613 | ||
8614 | eval "$ac_cv_use_tabdialog" | |
8615 | if test "$no_cache" != 1; then | |
8616 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8617 | fi | |
8618 | ||
8619 | if test "$wxUSE_TABDIALOG" = yes; then | |
8620 | echo "$as_me:$LINENO: result: yes" >&5 | |
8621 | echo "${ECHO_T}yes" >&6 | |
8622 | else | |
8623 | echo "$as_me:$LINENO: result: no" >&5 | |
8624 | echo "${ECHO_T}no" >&6 | |
8625 | fi | |
8626 | ||
8627 | ||
8628 | enablestring= | |
8629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8630 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8631 | no_cache=0 | |
8632 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8633 | if test "${enable_textctrl+set}" = set; then | |
8634 | enableval="$enable_textctrl" | |
8635 | ||
8636 | if test "$enableval" = yes; then | |
8637 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8638 | else | |
8639 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8640 | fi | |
8641 | ||
8642 | else | |
8643 | ||
8644 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8645 | if test "x$LINE" != x ; then | |
8646 | eval "DEFAULT_$LINE" | |
8647 | else | |
8648 | no_cache=1 | |
8649 | fi | |
8650 | ||
8651 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8652 | ||
8653 | fi; | |
8654 | ||
8655 | eval "$ac_cv_use_textctrl" | |
8656 | if test "$no_cache" != 1; then | |
8657 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8658 | fi | |
8659 | ||
8660 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8661 | echo "$as_me:$LINENO: result: yes" >&5 | |
8662 | echo "${ECHO_T}yes" >&6 | |
8663 | else | |
8664 | echo "$as_me:$LINENO: result: no" >&5 | |
8665 | echo "${ECHO_T}no" >&6 | |
8666 | fi | |
8667 | ||
8668 | ||
8669 | enablestring= | |
8670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8671 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8672 | no_cache=0 | |
8673 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8674 | if test "${enable_togglebtn+set}" = set; then | |
8675 | enableval="$enable_togglebtn" | |
8676 | ||
8677 | if test "$enableval" = yes; then | |
8678 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8679 | else | |
8680 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8681 | fi | |
8682 | ||
8683 | else | |
8684 | ||
8685 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8686 | if test "x$LINE" != x ; then | |
8687 | eval "DEFAULT_$LINE" | |
8688 | else | |
8689 | no_cache=1 | |
8690 | fi | |
8691 | ||
8692 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8693 | ||
8694 | fi; | |
8695 | ||
8696 | eval "$ac_cv_use_togglebtn" | |
8697 | if test "$no_cache" != 1; then | |
8698 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8699 | fi | |
8700 | ||
8701 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8702 | echo "$as_me:$LINENO: result: yes" >&5 | |
8703 | echo "${ECHO_T}yes" >&6 | |
8704 | else | |
8705 | echo "$as_me:$LINENO: result: no" >&5 | |
8706 | echo "${ECHO_T}no" >&6 | |
8707 | fi | |
8708 | ||
8709 | ||
8710 | enablestring= | |
8711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8712 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8713 | no_cache=0 | |
8714 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8715 | if test "${enable_toolbar+set}" = set; then | |
8716 | enableval="$enable_toolbar" | |
8717 | ||
8718 | if test "$enableval" = yes; then | |
8719 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8720 | else | |
8721 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8722 | fi | |
8723 | ||
8724 | else | |
8725 | ||
8726 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8727 | if test "x$LINE" != x ; then | |
8728 | eval "DEFAULT_$LINE" | |
8729 | else | |
8730 | no_cache=1 | |
8731 | fi | |
8732 | ||
8733 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8734 | ||
8735 | fi; | |
8736 | ||
8737 | eval "$ac_cv_use_toolbar" | |
8738 | if test "$no_cache" != 1; then | |
8739 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8740 | fi | |
8741 | ||
8742 | if test "$wxUSE_TOOLBAR" = yes; then | |
8743 | echo "$as_me:$LINENO: result: yes" >&5 | |
8744 | echo "${ECHO_T}yes" >&6 | |
8745 | else | |
8746 | echo "$as_me:$LINENO: result: no" >&5 | |
8747 | echo "${ECHO_T}no" >&6 | |
8748 | fi | |
8749 | ||
8750 | ||
8751 | enablestring= | |
8752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8753 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8754 | no_cache=0 | |
8755 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8756 | if test "${enable_tbarnative+set}" = set; then | |
8757 | enableval="$enable_tbarnative" | |
8758 | ||
8759 | if test "$enableval" = yes; then | |
8760 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8761 | else | |
8762 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8763 | fi | |
8764 | ||
8765 | else | |
8766 | ||
8767 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8768 | if test "x$LINE" != x ; then | |
8769 | eval "DEFAULT_$LINE" | |
8770 | else | |
8771 | no_cache=1 | |
8772 | fi | |
8773 | ||
8774 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8775 | ||
8776 | fi; | |
8777 | ||
8778 | eval "$ac_cv_use_tbarnative" | |
8779 | if test "$no_cache" != 1; then | |
8780 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8781 | fi | |
8782 | ||
8783 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8784 | echo "$as_me:$LINENO: result: yes" >&5 | |
8785 | echo "${ECHO_T}yes" >&6 | |
8786 | else | |
8787 | echo "$as_me:$LINENO: result: no" >&5 | |
8788 | echo "${ECHO_T}no" >&6 | |
8789 | fi | |
8790 | ||
8791 | ||
8792 | enablestring= | |
8793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8794 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8795 | no_cache=0 | |
8796 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8797 | if test "${enable_tbarsmpl+set}" = set; then | |
8798 | enableval="$enable_tbarsmpl" | |
8799 | ||
8800 | if test "$enableval" = yes; then | |
8801 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8802 | else | |
8803 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8804 | fi | |
8805 | ||
8806 | else | |
8807 | ||
8808 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8809 | if test "x$LINE" != x ; then | |
8810 | eval "DEFAULT_$LINE" | |
8811 | else | |
8812 | no_cache=1 | |
8813 | fi | |
8814 | ||
8815 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8816 | ||
8817 | fi; | |
8818 | ||
8819 | eval "$ac_cv_use_tbarsmpl" | |
8820 | if test "$no_cache" != 1; then | |
8821 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8822 | fi | |
8823 | ||
8824 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8825 | echo "$as_me:$LINENO: result: yes" >&5 | |
8826 | echo "${ECHO_T}yes" >&6 | |
8827 | else | |
8828 | echo "$as_me:$LINENO: result: no" >&5 | |
8829 | echo "${ECHO_T}no" >&6 | |
8830 | fi | |
8831 | ||
8832 | ||
8833 | enablestring= | |
8834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8835 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8836 | no_cache=0 | |
8837 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8838 | if test "${enable_treectrl+set}" = set; then | |
8839 | enableval="$enable_treectrl" | |
8840 | ||
8841 | if test "$enableval" = yes; then | |
8842 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8843 | else | |
8844 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8845 | fi | |
8846 | ||
8847 | else | |
8848 | ||
8849 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8850 | if test "x$LINE" != x ; then | |
8851 | eval "DEFAULT_$LINE" | |
8852 | else | |
8853 | no_cache=1 | |
8854 | fi | |
8855 | ||
8856 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8857 | ||
8858 | fi; | |
8859 | ||
8860 | eval "$ac_cv_use_treectrl" | |
8861 | if test "$no_cache" != 1; then | |
8862 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8863 | fi | |
8864 | ||
8865 | if test "$wxUSE_TREECTRL" = yes; then | |
8866 | echo "$as_me:$LINENO: result: yes" >&5 | |
8867 | echo "${ECHO_T}yes" >&6 | |
8868 | else | |
8869 | echo "$as_me:$LINENO: result: no" >&5 | |
8870 | echo "${ECHO_T}no" >&6 | |
8871 | fi | |
8872 | ||
8873 | ||
8874 | enablestring= | |
8875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8876 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8877 | no_cache=0 | |
8878 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8879 | if test "${enable_tipwindow+set}" = set; then | |
8880 | enableval="$enable_tipwindow" | |
8881 | ||
8882 | if test "$enableval" = yes; then | |
8883 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8884 | else | |
8885 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8886 | fi | |
8887 | ||
8888 | else | |
8889 | ||
8890 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8891 | if test "x$LINE" != x ; then | |
8892 | eval "DEFAULT_$LINE" | |
8893 | else | |
8894 | no_cache=1 | |
8895 | fi | |
8896 | ||
8897 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8898 | ||
8899 | fi; | |
8900 | ||
8901 | eval "$ac_cv_use_tipwindow" | |
8902 | if test "$no_cache" != 1; then | |
8903 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8904 | fi | |
8905 | ||
8906 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8907 | echo "$as_me:$LINENO: result: yes" >&5 | |
8908 | echo "${ECHO_T}yes" >&6 | |
8909 | else | |
8910 | echo "$as_me:$LINENO: result: no" >&5 | |
8911 | echo "${ECHO_T}no" >&6 | |
8912 | fi | |
8913 | ||
8914 | ||
8915 | enablestring= | |
8916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8917 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8918 | no_cache=0 | |
8919 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8920 | if test "${enable_popupwin+set}" = set; then | |
8921 | enableval="$enable_popupwin" | |
8922 | ||
8923 | if test "$enableval" = yes; then | |
8924 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8925 | else | |
8926 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8927 | fi | |
8928 | ||
8929 | else | |
8930 | ||
8931 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8932 | if test "x$LINE" != x ; then | |
8933 | eval "DEFAULT_$LINE" | |
8934 | else | |
8935 | no_cache=1 | |
8936 | fi | |
8937 | ||
8938 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8939 | ||
8940 | fi; | |
8941 | ||
8942 | eval "$ac_cv_use_popupwin" | |
8943 | if test "$no_cache" != 1; then | |
8944 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8945 | fi | |
8946 | ||
8947 | if test "$wxUSE_POPUPWIN" = yes; then | |
8948 | echo "$as_me:$LINENO: result: yes" >&5 | |
8949 | echo "${ECHO_T}yes" >&6 | |
8950 | else | |
8951 | echo "$as_me:$LINENO: result: no" >&5 | |
8952 | echo "${ECHO_T}no" >&6 | |
8953 | fi | |
8954 | ||
8955 | ||
8956 | ||
8957 | ||
8958 | enablestring= | |
8959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8960 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8961 | no_cache=0 | |
8962 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8963 | if test "${enable_commondlg+set}" = set; then | |
8964 | enableval="$enable_commondlg" | |
8965 | ||
8966 | if test "$enableval" = yes; then | |
8967 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8968 | else | |
8969 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8970 | fi | |
8971 | ||
8972 | else | |
8973 | ||
8974 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8975 | if test "x$LINE" != x ; then | |
8976 | eval "DEFAULT_$LINE" | |
8977 | else | |
8978 | no_cache=1 | |
8979 | fi | |
8980 | ||
8981 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8982 | ||
8983 | fi; | |
8984 | ||
8985 | eval "$ac_cv_use_commondlg" | |
8986 | if test "$no_cache" != 1; then | |
8987 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8988 | fi | |
8989 | ||
8990 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8991 | echo "$as_me:$LINENO: result: yes" >&5 | |
8992 | echo "${ECHO_T}yes" >&6 | |
8993 | else | |
8994 | echo "$as_me:$LINENO: result: no" >&5 | |
8995 | echo "${ECHO_T}no" >&6 | |
8996 | fi | |
8997 | ||
8998 | ||
8999 | enablestring= | |
9000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9001 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9002 | no_cache=0 | |
9003 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9004 | if test "${enable_choicedlg+set}" = set; then | |
9005 | enableval="$enable_choicedlg" | |
9006 | ||
9007 | if test "$enableval" = yes; then | |
9008 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9009 | else | |
9010 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9011 | fi | |
9012 | ||
9013 | else | |
9014 | ||
9015 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9016 | if test "x$LINE" != x ; then | |
9017 | eval "DEFAULT_$LINE" | |
9018 | else | |
9019 | no_cache=1 | |
9020 | fi | |
9021 | ||
9022 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9023 | ||
9024 | fi; | |
9025 | ||
9026 | eval "$ac_cv_use_choicedlg" | |
9027 | if test "$no_cache" != 1; then | |
9028 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9029 | fi | |
9030 | ||
9031 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9032 | echo "$as_me:$LINENO: result: yes" >&5 | |
9033 | echo "${ECHO_T}yes" >&6 | |
9034 | else | |
9035 | echo "$as_me:$LINENO: result: no" >&5 | |
9036 | echo "${ECHO_T}no" >&6 | |
9037 | fi | |
9038 | ||
9039 | ||
9040 | enablestring= | |
9041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9042 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9043 | no_cache=0 | |
9044 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9045 | if test "${enable_coldlg+set}" = set; then | |
9046 | enableval="$enable_coldlg" | |
9047 | ||
9048 | if test "$enableval" = yes; then | |
9049 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9050 | else | |
9051 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9052 | fi | |
9053 | ||
9054 | else | |
9055 | ||
9056 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9057 | if test "x$LINE" != x ; then | |
9058 | eval "DEFAULT_$LINE" | |
9059 | else | |
9060 | no_cache=1 | |
9061 | fi | |
9062 | ||
9063 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9064 | ||
9065 | fi; | |
9066 | ||
9067 | eval "$ac_cv_use_coldlg" | |
9068 | if test "$no_cache" != 1; then | |
9069 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9070 | fi | |
9071 | ||
9072 | if test "$wxUSE_COLOURDLG" = yes; then | |
9073 | echo "$as_me:$LINENO: result: yes" >&5 | |
9074 | echo "${ECHO_T}yes" >&6 | |
9075 | else | |
9076 | echo "$as_me:$LINENO: result: no" >&5 | |
9077 | echo "${ECHO_T}no" >&6 | |
9078 | fi | |
9079 | ||
9080 | ||
9081 | enablestring= | |
9082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9083 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9084 | no_cache=0 | |
9085 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9086 | if test "${enable_filedlg+set}" = set; then | |
9087 | enableval="$enable_filedlg" | |
9088 | ||
9089 | if test "$enableval" = yes; then | |
9090 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9091 | else | |
9092 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9093 | fi | |
9094 | ||
9095 | else | |
9096 | ||
9097 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9098 | if test "x$LINE" != x ; then | |
9099 | eval "DEFAULT_$LINE" | |
9100 | else | |
9101 | no_cache=1 | |
9102 | fi | |
9103 | ||
9104 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9105 | ||
9106 | fi; | |
9107 | ||
9108 | eval "$ac_cv_use_filedlg" | |
9109 | if test "$no_cache" != 1; then | |
9110 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9111 | fi | |
9112 | ||
9113 | if test "$wxUSE_FILEDLG" = yes; then | |
9114 | echo "$as_me:$LINENO: result: yes" >&5 | |
9115 | echo "${ECHO_T}yes" >&6 | |
9116 | else | |
9117 | echo "$as_me:$LINENO: result: no" >&5 | |
9118 | echo "${ECHO_T}no" >&6 | |
9119 | fi | |
9120 | ||
9121 | ||
9122 | enablestring= | |
9123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9124 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9125 | no_cache=0 | |
9126 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9127 | if test "${enable_finddlg+set}" = set; then | |
9128 | enableval="$enable_finddlg" | |
9129 | ||
9130 | if test "$enableval" = yes; then | |
9131 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9132 | else | |
9133 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9134 | fi | |
9135 | ||
9136 | else | |
9137 | ||
9138 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9139 | if test "x$LINE" != x ; then | |
9140 | eval "DEFAULT_$LINE" | |
9141 | else | |
9142 | no_cache=1 | |
9143 | fi | |
9144 | ||
9145 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9146 | ||
9147 | fi; | |
9148 | ||
9149 | eval "$ac_cv_use_finddlg" | |
9150 | if test "$no_cache" != 1; then | |
9151 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9152 | fi | |
9153 | ||
9154 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9155 | echo "$as_me:$LINENO: result: yes" >&5 | |
9156 | echo "${ECHO_T}yes" >&6 | |
9157 | else | |
9158 | echo "$as_me:$LINENO: result: no" >&5 | |
9159 | echo "${ECHO_T}no" >&6 | |
9160 | fi | |
9161 | ||
9162 | ||
9163 | enablestring= | |
9164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9165 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9166 | no_cache=0 | |
9167 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9168 | if test "${enable_fontdlg+set}" = set; then | |
9169 | enableval="$enable_fontdlg" | |
9170 | ||
9171 | if test "$enableval" = yes; then | |
9172 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9173 | else | |
9174 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9175 | fi | |
9176 | ||
9177 | else | |
9178 | ||
9179 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9180 | if test "x$LINE" != x ; then | |
9181 | eval "DEFAULT_$LINE" | |
9182 | else | |
9183 | no_cache=1 | |
9184 | fi | |
9185 | ||
9186 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9187 | ||
9188 | fi; | |
9189 | ||
9190 | eval "$ac_cv_use_fontdlg" | |
9191 | if test "$no_cache" != 1; then | |
9192 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9193 | fi | |
9194 | ||
9195 | if test "$wxUSE_FONTDLG" = yes; then | |
9196 | echo "$as_me:$LINENO: result: yes" >&5 | |
9197 | echo "${ECHO_T}yes" >&6 | |
9198 | else | |
9199 | echo "$as_me:$LINENO: result: no" >&5 | |
9200 | echo "${ECHO_T}no" >&6 | |
9201 | fi | |
9202 | ||
9203 | ||
9204 | enablestring= | |
9205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9206 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9207 | no_cache=0 | |
9208 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9209 | if test "${enable_dirdlg+set}" = set; then | |
9210 | enableval="$enable_dirdlg" | |
9211 | ||
9212 | if test "$enableval" = yes; then | |
9213 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9214 | else | |
9215 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9216 | fi | |
9217 | ||
9218 | else | |
9219 | ||
9220 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9221 | if test "x$LINE" != x ; then | |
9222 | eval "DEFAULT_$LINE" | |
9223 | else | |
9224 | no_cache=1 | |
9225 | fi | |
9226 | ||
9227 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9228 | ||
9229 | fi; | |
9230 | ||
9231 | eval "$ac_cv_use_dirdlg" | |
9232 | if test "$no_cache" != 1; then | |
9233 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9234 | fi | |
9235 | ||
9236 | if test "$wxUSE_DIRDLG" = yes; then | |
9237 | echo "$as_me:$LINENO: result: yes" >&5 | |
9238 | echo "${ECHO_T}yes" >&6 | |
9239 | else | |
9240 | echo "$as_me:$LINENO: result: no" >&5 | |
9241 | echo "${ECHO_T}no" >&6 | |
9242 | fi | |
9243 | ||
9244 | ||
9245 | enablestring= | |
9246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9247 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9248 | no_cache=0 | |
9249 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9250 | if test "${enable_msgdlg+set}" = set; then | |
9251 | enableval="$enable_msgdlg" | |
9252 | ||
9253 | if test "$enableval" = yes; then | |
9254 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9255 | else | |
9256 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9257 | fi | |
9258 | ||
9259 | else | |
9260 | ||
9261 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9262 | if test "x$LINE" != x ; then | |
9263 | eval "DEFAULT_$LINE" | |
9264 | else | |
9265 | no_cache=1 | |
9266 | fi | |
9267 | ||
9268 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9269 | ||
9270 | fi; | |
9271 | ||
9272 | eval "$ac_cv_use_msgdlg" | |
9273 | if test "$no_cache" != 1; then | |
9274 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9275 | fi | |
9276 | ||
9277 | if test "$wxUSE_MSGDLG" = yes; then | |
9278 | echo "$as_me:$LINENO: result: yes" >&5 | |
9279 | echo "${ECHO_T}yes" >&6 | |
9280 | else | |
9281 | echo "$as_me:$LINENO: result: no" >&5 | |
9282 | echo "${ECHO_T}no" >&6 | |
9283 | fi | |
9284 | ||
9285 | ||
9286 | enablestring= | |
9287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9288 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9289 | no_cache=0 | |
9290 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9291 | if test "${enable_numberdlg+set}" = set; then | |
9292 | enableval="$enable_numberdlg" | |
9293 | ||
9294 | if test "$enableval" = yes; then | |
9295 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9296 | else | |
9297 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9298 | fi | |
9299 | ||
9300 | else | |
9301 | ||
9302 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9303 | if test "x$LINE" != x ; then | |
9304 | eval "DEFAULT_$LINE" | |
9305 | else | |
9306 | no_cache=1 | |
9307 | fi | |
9308 | ||
9309 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9310 | ||
9311 | fi; | |
9312 | ||
9313 | eval "$ac_cv_use_numberdlg" | |
9314 | if test "$no_cache" != 1; then | |
9315 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9316 | fi | |
9317 | ||
9318 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9319 | echo "$as_me:$LINENO: result: yes" >&5 | |
9320 | echo "${ECHO_T}yes" >&6 | |
9321 | else | |
9322 | echo "$as_me:$LINENO: result: no" >&5 | |
9323 | echo "${ECHO_T}no" >&6 | |
9324 | fi | |
9325 | ||
9326 | ||
9327 | enablestring= | |
9328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9329 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9330 | no_cache=0 | |
9331 | # Check whether --enable-splash or --disable-splash was given. | |
9332 | if test "${enable_splash+set}" = set; then | |
9333 | enableval="$enable_splash" | |
9334 | ||
9335 | if test "$enableval" = yes; then | |
9336 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9337 | else | |
9338 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9339 | fi | |
9340 | ||
9341 | else | |
9342 | ||
9343 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9344 | if test "x$LINE" != x ; then | |
9345 | eval "DEFAULT_$LINE" | |
9346 | else | |
9347 | no_cache=1 | |
9348 | fi | |
9349 | ||
9350 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9351 | ||
9352 | fi; | |
9353 | ||
9354 | eval "$ac_cv_use_splash" | |
9355 | if test "$no_cache" != 1; then | |
9356 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9357 | fi | |
9358 | ||
9359 | if test "$wxUSE_SPLASH" = yes; then | |
9360 | echo "$as_me:$LINENO: result: yes" >&5 | |
9361 | echo "${ECHO_T}yes" >&6 | |
9362 | else | |
9363 | echo "$as_me:$LINENO: result: no" >&5 | |
9364 | echo "${ECHO_T}no" >&6 | |
9365 | fi | |
9366 | ||
9367 | ||
9368 | enablestring= | |
9369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9370 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9371 | no_cache=0 | |
9372 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9373 | if test "${enable_textdlg+set}" = set; then | |
9374 | enableval="$enable_textdlg" | |
9375 | ||
9376 | if test "$enableval" = yes; then | |
9377 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9378 | else | |
9379 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9380 | fi | |
9381 | ||
9382 | else | |
9383 | ||
9384 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9385 | if test "x$LINE" != x ; then | |
9386 | eval "DEFAULT_$LINE" | |
9387 | else | |
9388 | no_cache=1 | |
9389 | fi | |
9390 | ||
9391 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9392 | ||
9393 | fi; | |
9394 | ||
9395 | eval "$ac_cv_use_textdlg" | |
9396 | if test "$no_cache" != 1; then | |
9397 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9398 | fi | |
9399 | ||
9400 | if test "$wxUSE_TEXTDLG" = yes; then | |
9401 | echo "$as_me:$LINENO: result: yes" >&5 | |
9402 | echo "${ECHO_T}yes" >&6 | |
9403 | else | |
9404 | echo "$as_me:$LINENO: result: no" >&5 | |
9405 | echo "${ECHO_T}no" >&6 | |
9406 | fi | |
9407 | ||
9408 | ||
9409 | enablestring= | |
9410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9411 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9412 | no_cache=0 | |
9413 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9414 | if test "${enable_tipdlg+set}" = set; then | |
9415 | enableval="$enable_tipdlg" | |
9416 | ||
9417 | if test "$enableval" = yes; then | |
9418 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9419 | else | |
9420 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9421 | fi | |
9422 | ||
9423 | else | |
9424 | ||
9425 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9426 | if test "x$LINE" != x ; then | |
9427 | eval "DEFAULT_$LINE" | |
9428 | else | |
9429 | no_cache=1 | |
9430 | fi | |
9431 | ||
9432 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9433 | ||
9434 | fi; | |
9435 | ||
9436 | eval "$ac_cv_use_tipdlg" | |
9437 | if test "$no_cache" != 1; then | |
9438 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9439 | fi | |
9440 | ||
9441 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9442 | echo "$as_me:$LINENO: result: yes" >&5 | |
9443 | echo "${ECHO_T}yes" >&6 | |
9444 | else | |
9445 | echo "$as_me:$LINENO: result: no" >&5 | |
9446 | echo "${ECHO_T}no" >&6 | |
9447 | fi | |
9448 | ||
9449 | ||
9450 | enablestring= | |
9451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9452 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9453 | no_cache=0 | |
9454 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9455 | if test "${enable_progressdlg+set}" = set; then | |
9456 | enableval="$enable_progressdlg" | |
9457 | ||
9458 | if test "$enableval" = yes; then | |
9459 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9460 | else | |
9461 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9462 | fi | |
9463 | ||
9464 | else | |
9465 | ||
9466 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9467 | if test "x$LINE" != x ; then | |
9468 | eval "DEFAULT_$LINE" | |
9469 | else | |
9470 | no_cache=1 | |
9471 | fi | |
9472 | ||
9473 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9474 | ||
9475 | fi; | |
9476 | ||
9477 | eval "$ac_cv_use_progressdlg" | |
9478 | if test "$no_cache" != 1; then | |
9479 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9480 | fi | |
9481 | ||
9482 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9483 | echo "$as_me:$LINENO: result: yes" >&5 | |
9484 | echo "${ECHO_T}yes" >&6 | |
9485 | else | |
9486 | echo "$as_me:$LINENO: result: no" >&5 | |
9487 | echo "${ECHO_T}no" >&6 | |
9488 | fi | |
9489 | ||
9490 | ||
9491 | enablestring= | |
9492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9493 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9494 | no_cache=0 | |
9495 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9496 | if test "${enable_wizarddlg+set}" = set; then | |
9497 | enableval="$enable_wizarddlg" | |
9498 | ||
9499 | if test "$enableval" = yes; then | |
9500 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9501 | else | |
9502 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9503 | fi | |
9504 | ||
9505 | else | |
9506 | ||
9507 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9508 | if test "x$LINE" != x ; then | |
9509 | eval "DEFAULT_$LINE" | |
9510 | else | |
9511 | no_cache=1 | |
9512 | fi | |
9513 | ||
9514 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9515 | ||
9516 | fi; | |
9517 | ||
9518 | eval "$ac_cv_use_wizarddlg" | |
9519 | if test "$no_cache" != 1; then | |
9520 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9521 | fi | |
9522 | ||
9523 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9524 | echo "$as_me:$LINENO: result: yes" >&5 | |
9525 | echo "${ECHO_T}yes" >&6 | |
9526 | else | |
9527 | echo "$as_me:$LINENO: result: no" >&5 | |
9528 | echo "${ECHO_T}no" >&6 | |
9529 | fi | |
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | enablestring= | |
9535 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9536 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9537 | no_cache=0 | |
9538 | # Check whether --enable-menus or --disable-menus was given. | |
9539 | if test "${enable_menus+set}" = set; then | |
9540 | enableval="$enable_menus" | |
9541 | ||
9542 | if test "$enableval" = yes; then | |
9543 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9544 | else | |
9545 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9546 | fi | |
9547 | ||
9548 | else | |
9549 | ||
9550 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9551 | if test "x$LINE" != x ; then | |
9552 | eval "DEFAULT_$LINE" | |
9553 | else | |
9554 | no_cache=1 | |
9555 | fi | |
9556 | ||
9557 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9558 | ||
9559 | fi; | |
9560 | ||
9561 | eval "$ac_cv_use_menus" | |
9562 | if test "$no_cache" != 1; then | |
9563 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9564 | fi | |
9565 | ||
9566 | if test "$wxUSE_MENUS" = yes; then | |
9567 | echo "$as_me:$LINENO: result: yes" >&5 | |
9568 | echo "${ECHO_T}yes" >&6 | |
9569 | else | |
9570 | echo "$as_me:$LINENO: result: no" >&5 | |
9571 | echo "${ECHO_T}no" >&6 | |
9572 | fi | |
9573 | ||
9574 | ||
9575 | enablestring= | |
9576 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9577 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9578 | no_cache=0 | |
9579 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9580 | if test "${enable_miniframe+set}" = set; then | |
9581 | enableval="$enable_miniframe" | |
9582 | ||
9583 | if test "$enableval" = yes; then | |
9584 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9585 | else | |
9586 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9587 | fi | |
9588 | ||
9589 | else | |
9590 | ||
9591 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9592 | if test "x$LINE" != x ; then | |
9593 | eval "DEFAULT_$LINE" | |
9594 | else | |
9595 | no_cache=1 | |
9596 | fi | |
9597 | ||
9598 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9599 | ||
9600 | fi; | |
9601 | ||
9602 | eval "$ac_cv_use_miniframe" | |
9603 | if test "$no_cache" != 1; then | |
9604 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9605 | fi | |
9606 | ||
9607 | if test "$wxUSE_MINIFRAME" = yes; then | |
9608 | echo "$as_me:$LINENO: result: yes" >&5 | |
9609 | echo "${ECHO_T}yes" >&6 | |
9610 | else | |
9611 | echo "$as_me:$LINENO: result: no" >&5 | |
9612 | echo "${ECHO_T}no" >&6 | |
9613 | fi | |
9614 | ||
9615 | ||
9616 | enablestring= | |
9617 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9618 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9619 | no_cache=0 | |
9620 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9621 | if test "${enable_tooltips+set}" = set; then | |
9622 | enableval="$enable_tooltips" | |
9623 | ||
9624 | if test "$enableval" = yes; then | |
9625 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9626 | else | |
9627 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9628 | fi | |
9629 | ||
9630 | else | |
9631 | ||
9632 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9633 | if test "x$LINE" != x ; then | |
9634 | eval "DEFAULT_$LINE" | |
9635 | else | |
9636 | no_cache=1 | |
9637 | fi | |
9638 | ||
9639 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9640 | ||
9641 | fi; | |
9642 | ||
9643 | eval "$ac_cv_use_tooltips" | |
9644 | if test "$no_cache" != 1; then | |
9645 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9646 | fi | |
9647 | ||
9648 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9649 | echo "$as_me:$LINENO: result: yes" >&5 | |
9650 | echo "${ECHO_T}yes" >&6 | |
9651 | else | |
9652 | echo "$as_me:$LINENO: result: no" >&5 | |
9653 | echo "${ECHO_T}no" >&6 | |
9654 | fi | |
9655 | ||
9656 | ||
9657 | enablestring= | |
9658 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9659 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9660 | no_cache=0 | |
9661 | # Check whether --enable-splines or --disable-splines was given. | |
9662 | if test "${enable_splines+set}" = set; then | |
9663 | enableval="$enable_splines" | |
9664 | ||
9665 | if test "$enableval" = yes; then | |
9666 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9667 | else | |
9668 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9669 | fi | |
9670 | ||
9671 | else | |
9672 | ||
9673 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9674 | if test "x$LINE" != x ; then | |
9675 | eval "DEFAULT_$LINE" | |
9676 | else | |
9677 | no_cache=1 | |
9678 | fi | |
9679 | ||
9680 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9681 | ||
9682 | fi; | |
9683 | ||
9684 | eval "$ac_cv_use_splines" | |
9685 | if test "$no_cache" != 1; then | |
9686 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9687 | fi | |
9688 | ||
9689 | if test "$wxUSE_SPLINES" = yes; then | |
9690 | echo "$as_me:$LINENO: result: yes" >&5 | |
9691 | echo "${ECHO_T}yes" >&6 | |
9692 | else | |
9693 | echo "$as_me:$LINENO: result: no" >&5 | |
9694 | echo "${ECHO_T}no" >&6 | |
9695 | fi | |
9696 | ||
9697 | ||
9698 | enablestring= | |
9699 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9700 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9701 | no_cache=0 | |
9702 | # Check whether --enable-validators or --disable-validators was given. | |
9703 | if test "${enable_validators+set}" = set; then | |
9704 | enableval="$enable_validators" | |
9705 | ||
9706 | if test "$enableval" = yes; then | |
9707 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9708 | else | |
9709 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9710 | fi | |
9711 | ||
9712 | else | |
9713 | ||
9714 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9715 | if test "x$LINE" != x ; then | |
9716 | eval "DEFAULT_$LINE" | |
9717 | else | |
9718 | no_cache=1 | |
9719 | fi | |
9720 | ||
9721 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9722 | ||
9723 | fi; | |
9724 | ||
9725 | eval "$ac_cv_use_validators" | |
9726 | if test "$no_cache" != 1; then | |
9727 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9728 | fi | |
9729 | ||
9730 | if test "$wxUSE_VALIDATORS" = yes; then | |
9731 | echo "$as_me:$LINENO: result: yes" >&5 | |
9732 | echo "${ECHO_T}yes" >&6 | |
9733 | else | |
9734 | echo "$as_me:$LINENO: result: no" >&5 | |
9735 | echo "${ECHO_T}no" >&6 | |
9736 | fi | |
9737 | ||
9738 | ||
9739 | enablestring= | |
9740 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9741 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9742 | no_cache=0 | |
9743 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9744 | if test "${enable_busyinfo+set}" = set; then | |
9745 | enableval="$enable_busyinfo" | |
9746 | ||
9747 | if test "$enableval" = yes; then | |
9748 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9749 | else | |
9750 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9751 | fi | |
9752 | ||
9753 | else | |
9754 | ||
9755 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9756 | if test "x$LINE" != x ; then | |
9757 | eval "DEFAULT_$LINE" | |
9758 | else | |
9759 | no_cache=1 | |
9760 | fi | |
9761 | ||
9762 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9763 | ||
9764 | fi; | |
9765 | ||
9766 | eval "$ac_cv_use_busyinfo" | |
9767 | if test "$no_cache" != 1; then | |
9768 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9769 | fi | |
9770 | ||
9771 | if test "$wxUSE_BUSYINFO" = yes; then | |
9772 | echo "$as_me:$LINENO: result: yes" >&5 | |
9773 | echo "${ECHO_T}yes" >&6 | |
9774 | else | |
9775 | echo "$as_me:$LINENO: result: no" >&5 | |
9776 | echo "${ECHO_T}no" >&6 | |
9777 | fi | |
9778 | ||
9779 | ||
9780 | enablestring= | |
9781 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9782 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9783 | no_cache=0 | |
9784 | # Check whether --enable-joystick or --disable-joystick was given. | |
9785 | if test "${enable_joystick+set}" = set; then | |
9786 | enableval="$enable_joystick" | |
9787 | ||
9788 | if test "$enableval" = yes; then | |
9789 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9790 | else | |
9791 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9792 | fi | |
9793 | ||
9794 | else | |
9795 | ||
9796 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9797 | if test "x$LINE" != x ; then | |
9798 | eval "DEFAULT_$LINE" | |
9799 | else | |
9800 | no_cache=1 | |
9801 | fi | |
9802 | ||
9803 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9804 | ||
9805 | fi; | |
9806 | ||
9807 | eval "$ac_cv_use_joystick" | |
9808 | if test "$no_cache" != 1; then | |
9809 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9810 | fi | |
9811 | ||
9812 | if test "$wxUSE_JOYSTICK" = yes; then | |
9813 | echo "$as_me:$LINENO: result: yes" >&5 | |
9814 | echo "${ECHO_T}yes" >&6 | |
9815 | else | |
9816 | echo "$as_me:$LINENO: result: no" >&5 | |
9817 | echo "${ECHO_T}no" >&6 | |
9818 | fi | |
9819 | ||
9820 | ||
9821 | enablestring= | |
9822 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9823 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9824 | no_cache=0 | |
9825 | # Check whether --enable-metafile or --disable-metafile was given. | |
9826 | if test "${enable_metafile+set}" = set; then | |
9827 | enableval="$enable_metafile" | |
9828 | ||
9829 | if test "$enableval" = yes; then | |
9830 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9831 | else | |
9832 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9833 | fi | |
9834 | ||
9835 | else | |
9836 | ||
9837 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9838 | if test "x$LINE" != x ; then | |
9839 | eval "DEFAULT_$LINE" | |
9840 | else | |
9841 | no_cache=1 | |
9842 | fi | |
9843 | ||
9844 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9845 | ||
9846 | fi; | |
9847 | ||
9848 | eval "$ac_cv_use_metafile" | |
9849 | if test "$no_cache" != 1; then | |
9850 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9851 | fi | |
9852 | ||
9853 | if test "$wxUSE_METAFILE" = yes; then | |
9854 | echo "$as_me:$LINENO: result: yes" >&5 | |
9855 | echo "${ECHO_T}yes" >&6 | |
9856 | else | |
9857 | echo "$as_me:$LINENO: result: no" >&5 | |
9858 | echo "${ECHO_T}no" >&6 | |
9859 | fi | |
9860 | ||
9861 | ||
9862 | enablestring= | |
9863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9864 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9865 | no_cache=0 | |
9866 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9867 | if test "${enable_dragimage+set}" = set; then | |
9868 | enableval="$enable_dragimage" | |
9869 | ||
9870 | if test "$enableval" = yes; then | |
9871 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9872 | else | |
9873 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9874 | fi | |
9875 | ||
9876 | else | |
9877 | ||
9878 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9879 | if test "x$LINE" != x ; then | |
9880 | eval "DEFAULT_$LINE" | |
9881 | else | |
9882 | no_cache=1 | |
9883 | fi | |
9884 | ||
9885 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9886 | ||
9887 | fi; | |
9888 | ||
9889 | eval "$ac_cv_use_dragimage" | |
9890 | if test "$no_cache" != 1; then | |
9891 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9892 | fi | |
9893 | ||
9894 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9895 | echo "$as_me:$LINENO: result: yes" >&5 | |
9896 | echo "${ECHO_T}yes" >&6 | |
9897 | else | |
9898 | echo "$as_me:$LINENO: result: no" >&5 | |
9899 | echo "${ECHO_T}no" >&6 | |
9900 | fi | |
9901 | ||
9902 | ||
9903 | enablestring= | |
9904 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9905 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9906 | no_cache=0 | |
9907 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9908 | if test "${enable_accessibility+set}" = set; then | |
9909 | enableval="$enable_accessibility" | |
9910 | ||
9911 | if test "$enableval" = yes; then | |
9912 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9913 | else | |
9914 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9915 | fi | |
9916 | ||
9917 | else | |
9918 | ||
9919 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9920 | if test "x$LINE" != x ; then | |
9921 | eval "DEFAULT_$LINE" | |
9922 | else | |
9923 | no_cache=1 | |
9924 | fi | |
9925 | ||
9926 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9927 | ||
9928 | fi; | |
9929 | ||
9930 | eval "$ac_cv_use_accessibility" | |
9931 | if test "$no_cache" != 1; then | |
9932 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9933 | fi | |
9934 | ||
9935 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9936 | echo "$as_me:$LINENO: result: yes" >&5 | |
9937 | echo "${ECHO_T}yes" >&6 | |
9938 | else | |
9939 | echo "$as_me:$LINENO: result: no" >&5 | |
9940 | echo "${ECHO_T}no" >&6 | |
9941 | fi | |
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | enablestring= | |
9947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9948 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9949 | no_cache=0 | |
9950 | # Check whether --enable-palette or --disable-palette was given. | |
9951 | if test "${enable_palette+set}" = set; then | |
9952 | enableval="$enable_palette" | |
9953 | ||
9954 | if test "$enableval" = yes; then | |
9955 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9956 | else | |
9957 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9958 | fi | |
9959 | ||
9960 | else | |
9961 | ||
9962 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9963 | if test "x$LINE" != x ; then | |
9964 | eval "DEFAULT_$LINE" | |
9965 | else | |
9966 | no_cache=1 | |
9967 | fi | |
9968 | ||
9969 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9970 | ||
9971 | fi; | |
9972 | ||
9973 | eval "$ac_cv_use_palette" | |
9974 | if test "$no_cache" != 1; then | |
9975 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9976 | fi | |
9977 | ||
9978 | if test "$wxUSE_PALETTE" = yes; then | |
9979 | echo "$as_me:$LINENO: result: yes" >&5 | |
9980 | echo "${ECHO_T}yes" >&6 | |
9981 | else | |
9982 | echo "$as_me:$LINENO: result: no" >&5 | |
9983 | echo "${ECHO_T}no" >&6 | |
9984 | fi | |
9985 | ||
9986 | ||
9987 | enablestring= | |
9988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9989 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9990 | no_cache=0 | |
9991 | # Check whether --enable-image or --disable-image was given. | |
9992 | if test "${enable_image+set}" = set; then | |
9993 | enableval="$enable_image" | |
9994 | ||
9995 | if test "$enableval" = yes; then | |
9996 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9997 | else | |
9998 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9999 | fi | |
10000 | ||
10001 | else | |
10002 | ||
10003 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10004 | if test "x$LINE" != x ; then | |
10005 | eval "DEFAULT_$LINE" | |
10006 | else | |
10007 | no_cache=1 | |
10008 | fi | |
10009 | ||
10010 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10011 | ||
10012 | fi; | |
10013 | ||
10014 | eval "$ac_cv_use_image" | |
10015 | if test "$no_cache" != 1; then | |
10016 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10017 | fi | |
10018 | ||
10019 | if test "$wxUSE_IMAGE" = yes; then | |
10020 | echo "$as_me:$LINENO: result: yes" >&5 | |
10021 | echo "${ECHO_T}yes" >&6 | |
10022 | else | |
10023 | echo "$as_me:$LINENO: result: no" >&5 | |
10024 | echo "${ECHO_T}no" >&6 | |
10025 | fi | |
10026 | ||
10027 | ||
10028 | enablestring= | |
10029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10030 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10031 | no_cache=0 | |
10032 | # Check whether --enable-gif or --disable-gif was given. | |
10033 | if test "${enable_gif+set}" = set; then | |
10034 | enableval="$enable_gif" | |
10035 | ||
10036 | if test "$enableval" = yes; then | |
10037 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10038 | else | |
10039 | ac_cv_use_gif='wxUSE_GIF=no' | |
10040 | fi | |
10041 | ||
10042 | else | |
10043 | ||
10044 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10045 | if test "x$LINE" != x ; then | |
10046 | eval "DEFAULT_$LINE" | |
10047 | else | |
10048 | no_cache=1 | |
10049 | fi | |
10050 | ||
10051 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10052 | ||
10053 | fi; | |
10054 | ||
10055 | eval "$ac_cv_use_gif" | |
10056 | if test "$no_cache" != 1; then | |
10057 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10058 | fi | |
10059 | ||
10060 | if test "$wxUSE_GIF" = yes; then | |
10061 | echo "$as_me:$LINENO: result: yes" >&5 | |
10062 | echo "${ECHO_T}yes" >&6 | |
10063 | else | |
10064 | echo "$as_me:$LINENO: result: no" >&5 | |
10065 | echo "${ECHO_T}no" >&6 | |
10066 | fi | |
10067 | ||
10068 | ||
10069 | enablestring= | |
10070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10071 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10072 | no_cache=0 | |
10073 | # Check whether --enable-pcx or --disable-pcx was given. | |
10074 | if test "${enable_pcx+set}" = set; then | |
10075 | enableval="$enable_pcx" | |
10076 | ||
10077 | if test "$enableval" = yes; then | |
10078 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10079 | else | |
10080 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10081 | fi | |
10082 | ||
10083 | else | |
10084 | ||
10085 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10086 | if test "x$LINE" != x ; then | |
10087 | eval "DEFAULT_$LINE" | |
10088 | else | |
10089 | no_cache=1 | |
10090 | fi | |
10091 | ||
10092 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10093 | ||
10094 | fi; | |
10095 | ||
10096 | eval "$ac_cv_use_pcx" | |
10097 | if test "$no_cache" != 1; then | |
10098 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10099 | fi | |
10100 | ||
10101 | if test "$wxUSE_PCX" = yes; then | |
10102 | echo "$as_me:$LINENO: result: yes" >&5 | |
10103 | echo "${ECHO_T}yes" >&6 | |
10104 | else | |
10105 | echo "$as_me:$LINENO: result: no" >&5 | |
10106 | echo "${ECHO_T}no" >&6 | |
10107 | fi | |
10108 | ||
10109 | ||
10110 | enablestring= | |
10111 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10112 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10113 | no_cache=0 | |
10114 | # Check whether --enable-iff or --disable-iff was given. | |
10115 | if test "${enable_iff+set}" = set; then | |
10116 | enableval="$enable_iff" | |
10117 | ||
10118 | if test "$enableval" = yes; then | |
10119 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10120 | else | |
10121 | ac_cv_use_iff='wxUSE_IFF=no' | |
10122 | fi | |
10123 | ||
10124 | else | |
10125 | ||
10126 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10127 | if test "x$LINE" != x ; then | |
10128 | eval "DEFAULT_$LINE" | |
10129 | else | |
10130 | no_cache=1 | |
10131 | fi | |
10132 | ||
10133 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10134 | ||
10135 | fi; | |
10136 | ||
10137 | eval "$ac_cv_use_iff" | |
10138 | if test "$no_cache" != 1; then | |
10139 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10140 | fi | |
10141 | ||
10142 | if test "$wxUSE_IFF" = yes; then | |
10143 | echo "$as_me:$LINENO: result: yes" >&5 | |
10144 | echo "${ECHO_T}yes" >&6 | |
10145 | else | |
10146 | echo "$as_me:$LINENO: result: no" >&5 | |
10147 | echo "${ECHO_T}no" >&6 | |
10148 | fi | |
10149 | ||
10150 | ||
10151 | enablestring= | |
10152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10153 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10154 | no_cache=0 | |
10155 | # Check whether --enable-pnm or --disable-pnm was given. | |
10156 | if test "${enable_pnm+set}" = set; then | |
10157 | enableval="$enable_pnm" | |
10158 | ||
10159 | if test "$enableval" = yes; then | |
10160 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10161 | else | |
10162 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10163 | fi | |
10164 | ||
10165 | else | |
10166 | ||
10167 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10168 | if test "x$LINE" != x ; then | |
10169 | eval "DEFAULT_$LINE" | |
10170 | else | |
10171 | no_cache=1 | |
10172 | fi | |
10173 | ||
10174 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10175 | ||
10176 | fi; | |
10177 | ||
10178 | eval "$ac_cv_use_pnm" | |
10179 | if test "$no_cache" != 1; then | |
10180 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10181 | fi | |
10182 | ||
10183 | if test "$wxUSE_PNM" = yes; then | |
10184 | echo "$as_me:$LINENO: result: yes" >&5 | |
10185 | echo "${ECHO_T}yes" >&6 | |
10186 | else | |
10187 | echo "$as_me:$LINENO: result: no" >&5 | |
10188 | echo "${ECHO_T}no" >&6 | |
10189 | fi | |
10190 | ||
10191 | ||
10192 | enablestring= | |
10193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10194 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10195 | no_cache=0 | |
10196 | # Check whether --enable-xpm or --disable-xpm was given. | |
10197 | if test "${enable_xpm+set}" = set; then | |
10198 | enableval="$enable_xpm" | |
10199 | ||
10200 | if test "$enableval" = yes; then | |
10201 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10202 | else | |
10203 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10204 | fi | |
10205 | ||
10206 | else | |
10207 | ||
10208 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10209 | if test "x$LINE" != x ; then | |
10210 | eval "DEFAULT_$LINE" | |
10211 | else | |
10212 | no_cache=1 | |
10213 | fi | |
10214 | ||
10215 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10216 | ||
10217 | fi; | |
10218 | ||
10219 | eval "$ac_cv_use_xpm" | |
10220 | if test "$no_cache" != 1; then | |
10221 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10222 | fi | |
10223 | ||
10224 | if test "$wxUSE_XPM" = yes; then | |
10225 | echo "$as_me:$LINENO: result: yes" >&5 | |
10226 | echo "${ECHO_T}yes" >&6 | |
10227 | else | |
10228 | echo "$as_me:$LINENO: result: no" >&5 | |
10229 | echo "${ECHO_T}no" >&6 | |
10230 | fi | |
10231 | ||
10232 | ||
10233 | enablestring= | |
10234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10235 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10236 | no_cache=0 | |
10237 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10238 | if test "${enable_ico_cur+set}" = set; then | |
10239 | enableval="$enable_ico_cur" | |
10240 | ||
10241 | if test "$enableval" = yes; then | |
10242 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10243 | else | |
10244 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10245 | fi | |
10246 | ||
10247 | else | |
10248 | ||
10249 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10250 | if test "x$LINE" != x ; then | |
10251 | eval "DEFAULT_$LINE" | |
10252 | else | |
10253 | no_cache=1 | |
10254 | fi | |
10255 | ||
10256 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10257 | ||
10258 | fi; | |
10259 | ||
10260 | eval "$ac_cv_use_ico_cur" | |
10261 | if test "$no_cache" != 1; then | |
10262 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10263 | fi | |
10264 | ||
10265 | if test "$wxUSE_ICO_CUR" = yes; then | |
10266 | echo "$as_me:$LINENO: result: yes" >&5 | |
10267 | echo "${ECHO_T}yes" >&6 | |
10268 | else | |
10269 | echo "$as_me:$LINENO: result: no" >&5 | |
10270 | echo "${ECHO_T}no" >&6 | |
10271 | fi | |
10272 | ||
10273 | ||
10274 | fi | |
10275 | ||
10276 | ||
10277 | ||
ceec2216 RL |
10278 | # Check whether --with-flavour or --without-flavour was given. |
10279 | if test "${with_flavour+set}" = set; then | |
10280 | withval="$with_flavour" | |
10281 | WX_FLAVOUR="$withval" | |
10282 | fi; | |
10283 | ||
10284 | ||
10285 | ||
a848cd7e SC |
10286 | enablestring= |
10287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10288 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10289 | no_cache=0 | |
10290 | # Check whether --enable-official_build or --disable-official_build was given. | |
10291 | if test "${enable_official_build+set}" = set; then | |
10292 | enableval="$enable_official_build" | |
10293 | ||
10294 | if test "$enableval" = yes; then | |
10295 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10296 | else | |
10297 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10298 | fi | |
10299 | ||
10300 | else | |
10301 | ||
10302 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10303 | if test "x$LINE" != x ; then | |
10304 | eval "DEFAULT_$LINE" | |
10305 | else | |
10306 | no_cache=1 | |
10307 | fi | |
10308 | ||
10309 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10310 | ||
10311 | fi; | |
10312 | ||
10313 | eval "$ac_cv_use_official_build" | |
10314 | if test "$no_cache" != 1; then | |
10315 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10316 | fi | |
10317 | ||
10318 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10319 | echo "$as_me:$LINENO: result: yes" >&5 | |
10320 | echo "${ECHO_T}yes" >&6 | |
10321 | else | |
10322 | echo "$as_me:$LINENO: result: no" >&5 | |
10323 | echo "${ECHO_T}no" >&6 | |
10324 | fi | |
10325 | ||
10326 | # Check whether --enable-vendor or --disable-vendor was given. | |
10327 | if test "${enable_vendor+set}" = set; then | |
10328 | enableval="$enable_vendor" | |
10329 | VENDOR="$enableval" | |
10330 | fi; | |
10331 | if test "x$VENDOR" = "x"; then | |
10332 | VENDOR="custom" | |
10333 | fi | |
10334 | ||
a848cd7e SC |
10335 | |
10336 | ||
10337 | ||
10338 | echo "saving argument cache $wx_arg_cache_file" | |
10339 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10340 | ||
10341 | ||
10342 | ||
10343 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10344 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10345 | ||
10346 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10347 | if test "$wxUSE_WINE" = "yes"; then | |
10348 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10349 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10350 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10351 | wxUSE_SHARED=no | |
10352 | fi | |
10353 | ||
10354 | if test "$wxUSE_GUI" = "yes"; then | |
10355 | ||
10356 | if test "$USE_BEOS" = 1; then | |
10357 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10358 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10359 | { (exit 1); exit 1; }; } | |
10360 | fi | |
10361 | ||
10362 | if test "$TOOLKIT_GIVEN" = 1; then | |
10363 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10364 | var=wxUSE_$toolkit | |
10365 | eval "value=\$${var}" | |
10366 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10367 | done | |
10368 | else | |
10369 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10370 | if test "$has_toolkit_in_cache" != 1; then | |
10371 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10372 | else | |
10373 | var=DEFAULT_wxUSE_$toolkit | |
10374 | fi | |
10375 | eval "wxUSE_$toolkit=\$${var}" | |
10376 | done | |
10377 | fi | |
10378 | ||
10379 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10380 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10381 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10382 | ||
10383 | case "${host}" in | |
10384 | *-pc-os2_emx | *-pc-os2-emx ) | |
10385 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10386 | esac | |
10387 | ||
10388 | case "$NUM_TOOLKITS" in | |
10389 | 1) | |
10390 | ;; | |
10391 | 0) | |
10392 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10393 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10394 | { (exit 1); exit 1; }; } | |
10395 | ;; | |
10396 | *) | |
10397 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10398 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10399 | { (exit 1); exit 1; }; } | |
10400 | esac | |
10401 | ||
10402 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10403 | var=wxUSE_$toolkit | |
10404 | eval "value=\$${var}" | |
10405 | if test "x$value" != x; then | |
10406 | cache_var=CACHE_$toolkit | |
10407 | eval "cache=\$${cache_var}" | |
10408 | if test "$cache" = 1; then | |
10409 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10410 | fi | |
10411 | if test "$value" = 1; then | |
10412 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10413 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10414 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10415 | fi | |
10416 | fi | |
10417 | done | |
10418 | else | |
10419 | if test "x$host_alias" != "x"; then | |
10420 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10421 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10422 | else | |
10423 | echo "$as_me:$LINENO: result: base only" >&5 | |
10424 | echo "${ECHO_T}base only" >&6 | |
10425 | fi | |
10426 | fi | |
10427 | ||
10428 | wants_win32=0 | |
10429 | doesnt_want_win32=0 | |
10430 | case "${host}" in | |
10431 | *-*-cygwin*) | |
10432 | if test "$wxUSE_MSW" = 1 ; then | |
10433 | wants_win32=1 | |
10434 | else | |
10435 | doesnt_want_win32=1 | |
10436 | fi | |
10437 | ;; | |
10438 | *-*-mingw*) | |
10439 | wants_win32=1 | |
10440 | ;; | |
10441 | esac | |
10442 | ||
10443 | if test "$wxUSE_WINE" = "yes"; then | |
10444 | wants_win32=1 | |
10445 | CC=winegcc | |
10446 | CXX=wineg++ | |
10447 | RESCOMP=wrc | |
10448 | LDFLAGS_GUI="-mwindows" | |
10449 | fi | |
10450 | ||
10451 | if test "$wants_win32" = 1 ; then | |
10452 | USE_UNIX=0 | |
10453 | USE_WIN32=1 | |
10454 | cat >>confdefs.h <<\_ACEOF | |
10455 | #define __WIN32__ 1 | |
10456 | _ACEOF | |
10457 | ||
10458 | cat >>confdefs.h <<\_ACEOF | |
10459 | #define __WIN95__ 1 | |
10460 | _ACEOF | |
10461 | ||
10462 | cat >>confdefs.h <<\_ACEOF | |
10463 | #define __WINDOWS__ 1 | |
10464 | _ACEOF | |
10465 | ||
10466 | cat >>confdefs.h <<\_ACEOF | |
10467 | #define __GNUWIN32__ 1 | |
10468 | _ACEOF | |
10469 | ||
10470 | cat >>confdefs.h <<\_ACEOF | |
10471 | #define STRICT 1 | |
10472 | _ACEOF | |
10473 | ||
10474 | cat >>confdefs.h <<\_ACEOF | |
10475 | #define WINVER 0x0400 | |
10476 | _ACEOF | |
10477 | ||
10478 | fi | |
10479 | if test "$doesnt_want_win32" = 1 ; then | |
10480 | USE_UNIX=1 | |
10481 | USE_WIN32=0 | |
10482 | fi | |
10483 | ||
10484 | if test "$USE_UNIX" = 1 ; then | |
10485 | wxUSE_UNIX=yes | |
10486 | cat >>confdefs.h <<\_ACEOF | |
10487 | #define __UNIX__ 1 | |
10488 | _ACEOF | |
10489 | ||
10490 | fi | |
10491 | ||
10492 | ||
10493 | cat >confcache <<\_ACEOF | |
10494 | # This file is a shell script that caches the results of configure | |
10495 | # tests run on this system so they can be shared between configure | |
10496 | # scripts and configure runs, see configure's option --config-cache. | |
10497 | # It is not useful on other systems. If it contains results you don't | |
10498 | # want to keep, you may remove or edit it. | |
10499 | # | |
10500 | # config.status only pays attention to the cache file if you give it | |
10501 | # the --recheck option to rerun configure. | |
10502 | # | |
10503 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10504 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10505 | # following values. | |
10506 | ||
10507 | _ACEOF | |
10508 | ||
10509 | # The following way of writing the cache mishandles newlines in values, | |
10510 | # but we know of no workaround that is simple, portable, and efficient. | |
10511 | # So, don't put newlines in cache variables' values. | |
10512 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10513 | # and sets the high bit in the cache file unless we assign to the vars. | |
10514 | { | |
10515 | (set) 2>&1 | | |
10516 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10517 | *ac_space=\ *) | |
10518 | # `set' does not quote correctly, so add quotes (double-quote | |
10519 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10520 | sed -n \ | |
ac1cb8d3 VS |
10521 | "s/'/'\\\\''/g; |
10522 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10523 | ;; |
10524 | *) | |
10525 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10526 | sed -n \ | |
ac1cb8d3 | 10527 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10528 | ;; |
10529 | esac; | |
10530 | } | | |
10531 | sed ' | |
10532 | t clear | |
10533 | : clear | |
10534 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10535 | t end | |
10536 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10537 | : end' >>confcache | |
10538 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10539 | if test -w $cache_file; then | |
10540 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10541 | cat confcache >$cache_file | |
10542 | else | |
10543 | echo "not updating unwritable cache $cache_file" | |
10544 | fi | |
10545 | fi | |
10546 | rm -f confcache | |
10547 | ||
10548 | if test "$build" != "$host" ; then | |
1e9e8aba | 10549 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10550 | CC=$host_alias-gcc |
10551 | CXX=$host_alias-c++ | |
10552 | AR=$host_alias-ar | |
10553 | RANLIB=$host_alias-ranlib | |
10554 | DLLTOOL=$host_alias-dlltool | |
10555 | RESCOMP=$host_alias-windres | |
a848cd7e | 10556 | STRIP=$host_alias-strip |
1e9e8aba DE |
10557 | elif test "x$CC" '!=' "x"; then |
10558 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10559 | else |
10560 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10561 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10562 | { (exit 1); exit 1; }; } | |
10563 | fi | |
10564 | fi | |
10565 | ||
10566 | CFLAGS=${CFLAGS:=} | |
10567 | ac_ext=c | |
10568 | ac_cpp='$CPP $CPPFLAGS' | |
10569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10572 | if test -n "$ac_tool_prefix"; then | |
10573 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10574 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10577 | if test "${ac_cv_prog_CC+set}" = set; then | |
10578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10579 | else | |
10580 | if test -n "$CC"; then | |
10581 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10582 | else | |
10583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10584 | for as_dir in $PATH | |
10585 | do | |
10586 | IFS=$as_save_IFS | |
10587 | test -z "$as_dir" && as_dir=. | |
10588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10589 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10590 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10592 | break 2 | |
10593 | fi | |
10594 | done | |
10595 | done | |
10596 | ||
10597 | fi | |
10598 | fi | |
10599 | CC=$ac_cv_prog_CC | |
10600 | if test -n "$CC"; then | |
10601 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10602 | echo "${ECHO_T}$CC" >&6 | |
10603 | else | |
10604 | echo "$as_me:$LINENO: result: no" >&5 | |
10605 | echo "${ECHO_T}no" >&6 | |
10606 | fi | |
10607 | ||
10608 | fi | |
10609 | if test -z "$ac_cv_prog_CC"; then | |
10610 | ac_ct_CC=$CC | |
10611 | # Extract the first word of "gcc", so it can be a program name with args. | |
10612 | set dummy gcc; ac_word=$2 | |
10613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10615 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10617 | else | |
10618 | if test -n "$ac_ct_CC"; then | |
10619 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10620 | else | |
10621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10622 | for as_dir in $PATH | |
10623 | do | |
10624 | IFS=$as_save_IFS | |
10625 | test -z "$as_dir" && as_dir=. | |
10626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10628 | ac_cv_prog_ac_ct_CC="gcc" | |
10629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10630 | break 2 | |
10631 | fi | |
10632 | done | |
10633 | done | |
10634 | ||
10635 | fi | |
10636 | fi | |
10637 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10638 | if test -n "$ac_ct_CC"; then | |
10639 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10640 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10641 | else | |
10642 | echo "$as_me:$LINENO: result: no" >&5 | |
10643 | echo "${ECHO_T}no" >&6 | |
10644 | fi | |
10645 | ||
10646 | CC=$ac_ct_CC | |
10647 | else | |
10648 | CC="$ac_cv_prog_CC" | |
10649 | fi | |
10650 | ||
10651 | if test -z "$CC"; then | |
10652 | if test -n "$ac_tool_prefix"; then | |
10653 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10654 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10657 | if test "${ac_cv_prog_CC+set}" = set; then | |
10658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10659 | else | |
10660 | if test -n "$CC"; then | |
10661 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10662 | else | |
10663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10664 | for as_dir in $PATH | |
10665 | do | |
10666 | IFS=$as_save_IFS | |
10667 | test -z "$as_dir" && as_dir=. | |
10668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10669 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10670 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10672 | break 2 | |
10673 | fi | |
10674 | done | |
10675 | done | |
10676 | ||
10677 | fi | |
10678 | fi | |
10679 | CC=$ac_cv_prog_CC | |
10680 | if test -n "$CC"; then | |
10681 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10682 | echo "${ECHO_T}$CC" >&6 | |
10683 | else | |
10684 | echo "$as_me:$LINENO: result: no" >&5 | |
10685 | echo "${ECHO_T}no" >&6 | |
10686 | fi | |
10687 | ||
10688 | fi | |
10689 | if test -z "$ac_cv_prog_CC"; then | |
10690 | ac_ct_CC=$CC | |
10691 | # Extract the first word of "cc", so it can be a program name with args. | |
10692 | set dummy cc; ac_word=$2 | |
10693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10695 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10697 | else | |
10698 | if test -n "$ac_ct_CC"; then | |
10699 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10700 | else | |
10701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10702 | for as_dir in $PATH | |
10703 | do | |
10704 | IFS=$as_save_IFS | |
10705 | test -z "$as_dir" && as_dir=. | |
10706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10708 | ac_cv_prog_ac_ct_CC="cc" | |
10709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10710 | break 2 | |
10711 | fi | |
10712 | done | |
10713 | done | |
10714 | ||
10715 | fi | |
10716 | fi | |
10717 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10718 | if test -n "$ac_ct_CC"; then | |
10719 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10720 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10721 | else | |
10722 | echo "$as_me:$LINENO: result: no" >&5 | |
10723 | echo "${ECHO_T}no" >&6 | |
10724 | fi | |
10725 | ||
10726 | CC=$ac_ct_CC | |
10727 | else | |
10728 | CC="$ac_cv_prog_CC" | |
10729 | fi | |
10730 | ||
10731 | fi | |
10732 | if test -z "$CC"; then | |
10733 | # Extract the first word of "cc", so it can be a program name with args. | |
10734 | set dummy cc; ac_word=$2 | |
10735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10737 | if test "${ac_cv_prog_CC+set}" = set; then | |
10738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10739 | else | |
10740 | if test -n "$CC"; then | |
10741 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10742 | else | |
10743 | ac_prog_rejected=no | |
10744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10745 | for as_dir in $PATH | |
10746 | do | |
10747 | IFS=$as_save_IFS | |
10748 | test -z "$as_dir" && as_dir=. | |
10749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10751 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10752 | ac_prog_rejected=yes | |
10753 | continue | |
10754 | fi | |
10755 | ac_cv_prog_CC="cc" | |
10756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10757 | break 2 | |
10758 | fi | |
10759 | done | |
10760 | done | |
10761 | ||
10762 | if test $ac_prog_rejected = yes; then | |
10763 | # We found a bogon in the path, so make sure we never use it. | |
10764 | set dummy $ac_cv_prog_CC | |
10765 | shift | |
10766 | if test $# != 0; then | |
10767 | # We chose a different compiler from the bogus one. | |
10768 | # However, it has the same basename, so the bogon will be chosen | |
10769 | # first if we set CC to just the basename; use the full file name. | |
10770 | shift | |
10771 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10772 | fi | |
10773 | fi | |
10774 | fi | |
10775 | fi | |
10776 | CC=$ac_cv_prog_CC | |
10777 | if test -n "$CC"; then | |
10778 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10779 | echo "${ECHO_T}$CC" >&6 | |
10780 | else | |
10781 | echo "$as_me:$LINENO: result: no" >&5 | |
10782 | echo "${ECHO_T}no" >&6 | |
10783 | fi | |
10784 | ||
10785 | fi | |
10786 | if test -z "$CC"; then | |
10787 | if test -n "$ac_tool_prefix"; then | |
10788 | for ac_prog in cl | |
10789 | do | |
10790 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10791 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10794 | if test "${ac_cv_prog_CC+set}" = set; then | |
10795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10796 | else | |
10797 | if test -n "$CC"; then | |
10798 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10799 | else | |
10800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10801 | for as_dir in $PATH | |
10802 | do | |
10803 | IFS=$as_save_IFS | |
10804 | test -z "$as_dir" && as_dir=. | |
10805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10807 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10809 | break 2 | |
10810 | fi | |
10811 | done | |
10812 | done | |
10813 | ||
10814 | fi | |
10815 | fi | |
10816 | CC=$ac_cv_prog_CC | |
10817 | if test -n "$CC"; then | |
10818 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10819 | echo "${ECHO_T}$CC" >&6 | |
10820 | else | |
10821 | echo "$as_me:$LINENO: result: no" >&5 | |
10822 | echo "${ECHO_T}no" >&6 | |
10823 | fi | |
10824 | ||
10825 | test -n "$CC" && break | |
10826 | done | |
10827 | fi | |
10828 | if test -z "$CC"; then | |
10829 | ac_ct_CC=$CC | |
10830 | for ac_prog in cl | |
10831 | do | |
10832 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10833 | set dummy $ac_prog; ac_word=$2 | |
10834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10836 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10838 | else | |
10839 | if test -n "$ac_ct_CC"; then | |
10840 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10841 | else | |
10842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10843 | for as_dir in $PATH | |
10844 | do | |
10845 | IFS=$as_save_IFS | |
10846 | test -z "$as_dir" && as_dir=. | |
10847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10849 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10851 | break 2 | |
10852 | fi | |
10853 | done | |
10854 | done | |
10855 | ||
10856 | fi | |
10857 | fi | |
10858 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10859 | if test -n "$ac_ct_CC"; then | |
10860 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10861 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10862 | else | |
10863 | echo "$as_me:$LINENO: result: no" >&5 | |
10864 | echo "${ECHO_T}no" >&6 | |
10865 | fi | |
10866 | ||
10867 | test -n "$ac_ct_CC" && break | |
10868 | done | |
10869 | ||
10870 | CC=$ac_ct_CC | |
10871 | fi | |
10872 | ||
10873 | fi | |
10874 | ||
10875 | ||
10876 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10877 | See \`config.log' for more details." >&5 | |
10878 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10879 | See \`config.log' for more details." >&2;} | |
10880 | { (exit 1); exit 1; }; } | |
10881 | ||
10882 | # Provide some information about the compiler. | |
10883 | echo "$as_me:$LINENO:" \ | |
10884 | "checking for C compiler version" >&5 | |
10885 | ac_compiler=`set X $ac_compile; echo $2` | |
10886 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10887 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10888 | ac_status=$? | |
10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10890 | (exit $ac_status); } | |
10891 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10892 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10893 | ac_status=$? | |
10894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10895 | (exit $ac_status); } | |
10896 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10897 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10898 | ac_status=$? | |
10899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10900 | (exit $ac_status); } | |
10901 | ||
10902 | cat >conftest.$ac_ext <<_ACEOF | |
10903 | /* confdefs.h. */ | |
10904 | _ACEOF | |
10905 | cat confdefs.h >>conftest.$ac_ext | |
10906 | cat >>conftest.$ac_ext <<_ACEOF | |
10907 | /* end confdefs.h. */ | |
10908 | ||
10909 | int | |
10910 | main () | |
10911 | { | |
10912 | ||
10913 | ; | |
10914 | return 0; | |
10915 | } | |
10916 | _ACEOF | |
10917 | ac_clean_files_save=$ac_clean_files | |
10918 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10919 | # Try to create an executable without -o first, disregard a.out. | |
10920 | # It will help us diagnose broken compilers, and finding out an intuition | |
10921 | # of exeext. | |
ac1cb8d3 VS |
10922 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10923 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10924 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10925 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10926 | (eval $ac_link_default) 2>&5 | |
10927 | ac_status=$? | |
10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10929 | (exit $ac_status); }; then | |
10930 | # Find the output, starting from the most likely. This scheme is | |
10931 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10932 | # resort. | |
10933 | ||
10934 | # Be careful to initialize this variable, since it used to be cached. | |
10935 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10936 | ac_cv_exeext= | |
10937 | # b.out is created by i960 compilers. | |
10938 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10939 | do | |
10940 | test -f "$ac_file" || continue | |
10941 | case $ac_file in | |
10942 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10943 | ;; |
a848cd7e | 10944 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10945 | # This is the source file. |
10946 | ;; | |
a848cd7e | 10947 | [ab].out ) |
ac1cb8d3 VS |
10948 | # We found the default executable, but exeext='' is most |
10949 | # certainly right. | |
10950 | break;; | |
a848cd7e | 10951 | *.* ) |
ac1cb8d3 VS |
10952 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10953 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10954 | # but it would be cool to find out if it's true. Does anybody | |
10955 | # maintain Libtool? --akim. | |
10956 | export ac_cv_exeext | |
10957 | break;; | |
a848cd7e | 10958 | * ) |
ac1cb8d3 | 10959 | break;; |
a848cd7e SC |
10960 | esac |
10961 | done | |
10962 | else | |
10963 | echo "$as_me: failed program was:" >&5 | |
10964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10965 | ||
10966 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10967 | See \`config.log' for more details." >&5 | |
10968 | echo "$as_me: error: C compiler cannot create executables | |
10969 | See \`config.log' for more details." >&2;} | |
10970 | { (exit 77); exit 77; }; } | |
10971 | fi | |
10972 | ||
10973 | ac_exeext=$ac_cv_exeext | |
10974 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10975 | echo "${ECHO_T}$ac_file" >&6 | |
10976 | ||
10977 | # Check the compiler produces executables we can run. If not, either | |
10978 | # the compiler is broken, or we cross compile. | |
10979 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10980 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10981 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10982 | # If not cross compiling, check that we can run a simple program. | |
10983 | if test "$cross_compiling" != yes; then | |
10984 | if { ac_try='./$ac_file' | |
10985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10986 | (eval $ac_try) 2>&5 | |
10987 | ac_status=$? | |
10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10989 | (exit $ac_status); }; }; then | |
10990 | cross_compiling=no | |
10991 | else | |
10992 | if test "$cross_compiling" = maybe; then | |
10993 | cross_compiling=yes | |
10994 | else | |
10995 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10996 | If you meant to cross compile, use \`--host'. | |
10997 | See \`config.log' for more details." >&5 | |
10998 | echo "$as_me: error: cannot run C compiled programs. | |
10999 | If you meant to cross compile, use \`--host'. | |
11000 | See \`config.log' for more details." >&2;} | |
11001 | { (exit 1); exit 1; }; } | |
11002 | fi | |
11003 | fi | |
11004 | fi | |
11005 | echo "$as_me:$LINENO: result: yes" >&5 | |
11006 | echo "${ECHO_T}yes" >&6 | |
11007 | ||
11008 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11009 | ac_clean_files=$ac_clean_files_save | |
11010 | # Check the compiler produces executables we can run. If not, either | |
11011 | # the compiler is broken, or we cross compile. | |
11012 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11013 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11014 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11015 | echo "${ECHO_T}$cross_compiling" >&6 | |
11016 | ||
11017 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11018 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11020 | (eval $ac_link) 2>&5 | |
11021 | ac_status=$? | |
11022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11023 | (exit $ac_status); }; then | |
11024 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11025 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11026 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11027 | # `rm'. | |
11028 | for ac_file in conftest.exe conftest conftest.*; do | |
11029 | test -f "$ac_file" || continue | |
11030 | case $ac_file in | |
11031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11032 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11033 | export ac_cv_exeext |
11034 | break;; | |
a848cd7e SC |
11035 | * ) break;; |
11036 | esac | |
11037 | done | |
11038 | else | |
11039 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11040 | See \`config.log' for more details." >&5 | |
11041 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11042 | See \`config.log' for more details." >&2;} | |
11043 | { (exit 1); exit 1; }; } | |
11044 | fi | |
11045 | ||
11046 | rm -f conftest$ac_cv_exeext | |
11047 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11048 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11049 | ||
11050 | rm -f conftest.$ac_ext | |
11051 | EXEEXT=$ac_cv_exeext | |
11052 | ac_exeext=$EXEEXT | |
11053 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11054 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11055 | if test "${ac_cv_objext+set}" = set; then | |
11056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11057 | else | |
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 | rm -f conftest.o conftest.obj | |
11074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11075 | (eval $ac_compile) 2>&5 | |
11076 | ac_status=$? | |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11078 | (exit $ac_status); }; then | |
11079 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11080 | case $ac_file in | |
11081 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11082 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11083 | break;; | |
11084 | esac | |
11085 | done | |
11086 | else | |
11087 | echo "$as_me: failed program was:" >&5 | |
11088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11089 | ||
11090 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11091 | See \`config.log' for more details." >&5 | |
11092 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11093 | See \`config.log' for more details." >&2;} | |
11094 | { (exit 1); exit 1; }; } | |
11095 | fi | |
11096 | ||
11097 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11098 | fi | |
11099 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11100 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11101 | OBJEXT=$ac_cv_objext | |
11102 | ac_objext=$OBJEXT | |
11103 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11104 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11105 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11107 | else | |
11108 | cat >conftest.$ac_ext <<_ACEOF | |
11109 | /* confdefs.h. */ | |
11110 | _ACEOF | |
11111 | cat confdefs.h >>conftest.$ac_ext | |
11112 | cat >>conftest.$ac_ext <<_ACEOF | |
11113 | /* end confdefs.h. */ | |
11114 | ||
11115 | int | |
11116 | main () | |
11117 | { | |
11118 | #ifndef __GNUC__ | |
11119 | choke me | |
11120 | #endif | |
11121 | ||
11122 | ; | |
11123 | return 0; | |
11124 | } | |
11125 | _ACEOF | |
11126 | rm -f conftest.$ac_objext | |
11127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11129 | ac_status=$? |
ac1cb8d3 VS |
11130 | grep -v '^ *+' conftest.er1 >conftest.err |
11131 | rm -f conftest.er1 | |
11132 | cat conftest.err >&5 | |
a848cd7e SC |
11133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11134 | (exit $ac_status); } && | |
07158944 | 11135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11137 | (eval $ac_try) 2>&5 | |
11138 | ac_status=$? | |
11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11140 | (exit $ac_status); }; } && | |
11141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11143 | (eval $ac_try) 2>&5 | |
11144 | ac_status=$? | |
11145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11146 | (exit $ac_status); }; }; then | |
11147 | ac_compiler_gnu=yes | |
11148 | else | |
11149 | echo "$as_me: failed program was:" >&5 | |
11150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11151 | ||
11152 | ac_compiler_gnu=no | |
11153 | fi | |
ac1cb8d3 | 11154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11155 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11156 | ||
11157 | fi | |
11158 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11159 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11160 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11161 | ac_test_CFLAGS=${CFLAGS+set} | |
11162 | ac_save_CFLAGS=$CFLAGS | |
11163 | CFLAGS="-g" | |
11164 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11165 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11166 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11168 | else | |
11169 | cat >conftest.$ac_ext <<_ACEOF | |
11170 | /* confdefs.h. */ | |
11171 | _ACEOF | |
11172 | cat confdefs.h >>conftest.$ac_ext | |
11173 | cat >>conftest.$ac_ext <<_ACEOF | |
11174 | /* end confdefs.h. */ | |
11175 | ||
11176 | int | |
11177 | main () | |
11178 | { | |
11179 | ||
11180 | ; | |
11181 | return 0; | |
11182 | } | |
11183 | _ACEOF | |
11184 | rm -f conftest.$ac_objext | |
11185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11186 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11187 | ac_status=$? |
ac1cb8d3 VS |
11188 | grep -v '^ *+' conftest.er1 >conftest.err |
11189 | rm -f conftest.er1 | |
11190 | cat conftest.err >&5 | |
a848cd7e SC |
11191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11192 | (exit $ac_status); } && | |
07158944 | 11193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11195 | (eval $ac_try) 2>&5 | |
11196 | ac_status=$? | |
11197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11198 | (exit $ac_status); }; } && | |
11199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11201 | (eval $ac_try) 2>&5 | |
11202 | ac_status=$? | |
11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11204 | (exit $ac_status); }; }; then | |
11205 | ac_cv_prog_cc_g=yes | |
11206 | else | |
11207 | echo "$as_me: failed program was:" >&5 | |
11208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11209 | ||
11210 | ac_cv_prog_cc_g=no | |
11211 | fi | |
ac1cb8d3 | 11212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11213 | fi |
11214 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11215 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11216 | if test "$ac_test_CFLAGS" = set; then | |
11217 | CFLAGS=$ac_save_CFLAGS | |
11218 | elif test $ac_cv_prog_cc_g = yes; then | |
11219 | if test "$GCC" = yes; then | |
11220 | CFLAGS="-g -O2" | |
11221 | else | |
11222 | CFLAGS="-g" | |
11223 | fi | |
11224 | else | |
11225 | if test "$GCC" = yes; then | |
11226 | CFLAGS="-O2" | |
11227 | else | |
11228 | CFLAGS= | |
11229 | fi | |
11230 | fi | |
11231 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11232 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11233 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11235 | else | |
11236 | ac_cv_prog_cc_stdc=no | |
11237 | ac_save_CC=$CC | |
11238 | cat >conftest.$ac_ext <<_ACEOF | |
11239 | /* confdefs.h. */ | |
11240 | _ACEOF | |
11241 | cat confdefs.h >>conftest.$ac_ext | |
11242 | cat >>conftest.$ac_ext <<_ACEOF | |
11243 | /* end confdefs.h. */ | |
11244 | #include <stdarg.h> | |
11245 | #include <stdio.h> | |
11246 | #include <sys/types.h> | |
11247 | #include <sys/stat.h> | |
11248 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11249 | struct buf { int x; }; | |
11250 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11251 | static char *e (p, i) | |
11252 | char **p; | |
11253 | int i; | |
11254 | { | |
11255 | return p[i]; | |
11256 | } | |
11257 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11258 | { | |
11259 | char *s; | |
11260 | va_list v; | |
11261 | va_start (v,p); | |
11262 | s = g (p, va_arg (v,int)); | |
11263 | va_end (v); | |
11264 | return s; | |
11265 | } | |
ac1cb8d3 VS |
11266 | |
11267 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11268 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11269 | These don't provoke an error unfortunately, instead are silently treated | |
11270 | as 'x'. The following induces an error, until -std1 is added to get | |
11271 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11272 | array size at least. It's necessary to write '\x00'==0 to get something | |
11273 | that's true only with -std1. */ | |
11274 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11275 | ||
a848cd7e SC |
11276 | int test (int i, double x); |
11277 | struct s1 {int (*f) (int a);}; | |
11278 | struct s2 {int (*f) (double a);}; | |
11279 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11280 | int argc; | |
11281 | char **argv; | |
11282 | int | |
11283 | main () | |
11284 | { | |
11285 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11286 | ; | |
11287 | return 0; | |
11288 | } | |
11289 | _ACEOF | |
11290 | # Don't try gcc -ansi; that turns off useful extensions and | |
11291 | # breaks some systems' header files. | |
11292 | # AIX -qlanglvl=ansi | |
11293 | # Ultrix and OSF/1 -std1 | |
11294 | # HP-UX 10.20 and later -Ae | |
11295 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11296 | # SVR4 -Xc -D__EXTENSIONS__ | |
11297 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11298 | do | |
11299 | CC="$ac_save_CC $ac_arg" | |
11300 | rm -f conftest.$ac_objext | |
11301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11302 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11303 | ac_status=$? |
ac1cb8d3 VS |
11304 | grep -v '^ *+' conftest.er1 >conftest.err |
11305 | rm -f conftest.er1 | |
11306 | cat conftest.err >&5 | |
a848cd7e SC |
11307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11308 | (exit $ac_status); } && | |
07158944 | 11309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11311 | (eval $ac_try) 2>&5 | |
11312 | ac_status=$? | |
11313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11314 | (exit $ac_status); }; } && | |
11315 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11317 | (eval $ac_try) 2>&5 | |
11318 | ac_status=$? | |
11319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11320 | (exit $ac_status); }; }; then | |
11321 | ac_cv_prog_cc_stdc=$ac_arg | |
11322 | break | |
11323 | else | |
11324 | echo "$as_me: failed program was:" >&5 | |
11325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11326 | ||
11327 | fi | |
ac1cb8d3 | 11328 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11329 | done |
11330 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11331 | CC=$ac_save_CC | |
11332 | ||
11333 | fi | |
11334 | ||
11335 | case "x$ac_cv_prog_cc_stdc" in | |
11336 | x|xno) | |
11337 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11338 | echo "${ECHO_T}none needed" >&6 ;; | |
11339 | *) | |
11340 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11341 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11342 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11343 | esac | |
11344 | ||
11345 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11346 | # in C++ we need to declare it. In case someone uses the same compiler | |
11347 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11348 | # the declaration of exit, since it's the most demanding environment. | |
11349 | cat >conftest.$ac_ext <<_ACEOF | |
11350 | #ifndef __cplusplus | |
11351 | choke me | |
11352 | #endif | |
11353 | _ACEOF | |
11354 | rm -f conftest.$ac_objext | |
11355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11356 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11357 | ac_status=$? |
ac1cb8d3 VS |
11358 | grep -v '^ *+' conftest.er1 >conftest.err |
11359 | rm -f conftest.er1 | |
11360 | cat conftest.err >&5 | |
a848cd7e SC |
11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11362 | (exit $ac_status); } && | |
07158944 | 11363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11365 | (eval $ac_try) 2>&5 | |
11366 | ac_status=$? | |
11367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11368 | (exit $ac_status); }; } && | |
11369 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11371 | (eval $ac_try) 2>&5 | |
11372 | ac_status=$? | |
11373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11374 | (exit $ac_status); }; }; then | |
11375 | for ac_declaration in \ | |
ac1cb8d3 | 11376 | '' \ |
a848cd7e SC |
11377 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11378 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11379 | 'extern "C" void exit (int) throw ();' \ | |
11380 | 'extern "C" void exit (int);' \ | |
11381 | 'void exit (int);' | |
11382 | do | |
11383 | cat >conftest.$ac_ext <<_ACEOF | |
11384 | /* confdefs.h. */ | |
11385 | _ACEOF | |
11386 | cat confdefs.h >>conftest.$ac_ext | |
11387 | cat >>conftest.$ac_ext <<_ACEOF | |
11388 | /* end confdefs.h. */ | |
de59c161 | 11389 | $ac_declaration |
ac1cb8d3 | 11390 | #include <stdlib.h> |
a848cd7e SC |
11391 | int |
11392 | main () | |
11393 | { | |
11394 | exit (42); | |
11395 | ; | |
11396 | return 0; | |
11397 | } | |
11398 | _ACEOF | |
11399 | rm -f conftest.$ac_objext | |
11400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11401 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11402 | ac_status=$? |
ac1cb8d3 VS |
11403 | grep -v '^ *+' conftest.er1 >conftest.err |
11404 | rm -f conftest.er1 | |
11405 | cat conftest.err >&5 | |
a848cd7e SC |
11406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11407 | (exit $ac_status); } && | |
07158944 | 11408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11410 | (eval $ac_try) 2>&5 | |
11411 | ac_status=$? | |
11412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11413 | (exit $ac_status); }; } && | |
11414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11416 | (eval $ac_try) 2>&5 | |
11417 | ac_status=$? | |
11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11419 | (exit $ac_status); }; }; then | |
11420 | : | |
11421 | else | |
11422 | echo "$as_me: failed program was:" >&5 | |
11423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11424 | ||
11425 | continue | |
11426 | fi | |
ac1cb8d3 | 11427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11428 | cat >conftest.$ac_ext <<_ACEOF |
11429 | /* confdefs.h. */ | |
11430 | _ACEOF | |
11431 | cat confdefs.h >>conftest.$ac_ext | |
11432 | cat >>conftest.$ac_ext <<_ACEOF | |
11433 | /* end confdefs.h. */ | |
11434 | $ac_declaration | |
11435 | int | |
11436 | main () | |
11437 | { | |
11438 | exit (42); | |
11439 | ; | |
11440 | return 0; | |
11441 | } | |
11442 | _ACEOF | |
11443 | rm -f conftest.$ac_objext | |
11444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11445 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11446 | ac_status=$? |
ac1cb8d3 VS |
11447 | grep -v '^ *+' conftest.er1 >conftest.err |
11448 | rm -f conftest.er1 | |
11449 | cat conftest.err >&5 | |
a848cd7e SC |
11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11451 | (exit $ac_status); } && | |
07158944 | 11452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11454 | (eval $ac_try) 2>&5 | |
11455 | ac_status=$? | |
11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11457 | (exit $ac_status); }; } && | |
11458 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11460 | (eval $ac_try) 2>&5 | |
11461 | ac_status=$? | |
11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11463 | (exit $ac_status); }; }; then | |
11464 | break | |
11465 | else | |
11466 | echo "$as_me: failed program was:" >&5 | |
11467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11468 | ||
11469 | fi | |
ac1cb8d3 | 11470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11471 | done |
11472 | rm -f conftest* | |
11473 | if test -n "$ac_declaration"; then | |
11474 | echo '#ifdef __cplusplus' >>confdefs.h | |
11475 | echo $ac_declaration >>confdefs.h | |
11476 | echo '#endif' >>confdefs.h | |
11477 | fi | |
11478 | ||
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 conftest.$ac_ext |
a848cd7e SC |
11485 | ac_ext=c |
11486 | ac_cpp='$CPP $CPPFLAGS' | |
11487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11490 | ||
480ccd21 DE |
11491 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
11492 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 | |
11493 | if test "${wx_cv_c_exto+set}" = set; then | |
11494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11495 | else | |
11496 | cat >conftest.$ac_ext <<_ACEOF | |
11497 | /* confdefs.h. */ | |
11498 | _ACEOF | |
11499 | cat confdefs.h >>conftest.$ac_ext | |
11500 | cat >>conftest.$ac_ext <<_ACEOF | |
11501 | /* end confdefs.h. */ | |
11502 | ||
11503 | int | |
11504 | main () | |
11505 | { | |
11506 | ||
11507 | ; | |
11508 | return 0; | |
11509 | } | |
11510 | _ACEOF | |
11511 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11513 | (eval $ac_compile) 2>&5 | |
11514 | ac_status=$? | |
11515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11516 | (exit $ac_status); }; then | |
11517 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11518 | case $ac_file in | |
11519 | conftest.$ac_ext.o) | |
11520 | wx_cv_c_exto="-ext o" | |
11521 | ;; | |
11522 | *) | |
11523 | ;; | |
11524 | esac | |
11525 | done | |
11526 | else | |
11527 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11528 | See \`config.log' for more details." >&5 | |
11529 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11530 | See \`config.log' for more details." >&2;} | |
11531 | { (exit 1); exit 1; }; } | |
11532 | ||
11533 | fi | |
11534 | ||
11535 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11536 | ||
11537 | fi | |
11538 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11539 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11540 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11541 | if test "c" = "c"; then | |
11542 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11543 | fi | |
11544 | if test "c" = "cxx"; then | |
11545 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11546 | fi | |
11547 | fi | |
11548 | ||
11549 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11550 | unset ac_cv_prog_cc_g | |
11551 | ac_test_CFLAGS=${CFLAGS+set} | |
11552 | ac_save_CFLAGS=$CFLAGS | |
11553 | CFLAGS="-g" | |
11554 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11555 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11556 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11558 | else | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | /* confdefs.h. */ | |
11561 | _ACEOF | |
11562 | cat confdefs.h >>conftest.$ac_ext | |
11563 | cat >>conftest.$ac_ext <<_ACEOF | |
11564 | /* end confdefs.h. */ | |
11565 | ||
11566 | int | |
11567 | main () | |
11568 | { | |
11569 | ||
11570 | ; | |
11571 | return 0; | |
11572 | } | |
11573 | _ACEOF | |
11574 | rm -f conftest.$ac_objext | |
11575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11576 | (eval $ac_compile) 2>conftest.er1 | |
11577 | ac_status=$? | |
11578 | grep -v '^ *+' conftest.er1 >conftest.err | |
11579 | rm -f conftest.er1 | |
11580 | cat conftest.err >&5 | |
11581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11582 | (exit $ac_status); } && | |
07158944 | 11583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11585 | (eval $ac_try) 2>&5 | |
11586 | ac_status=$? | |
11587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11588 | (exit $ac_status); }; } && | |
11589 | { ac_try='test -s conftest.$ac_objext' | |
11590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11591 | (eval $ac_try) 2>&5 | |
11592 | ac_status=$? | |
11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11594 | (exit $ac_status); }; }; then | |
11595 | ac_cv_prog_cc_g=yes | |
11596 | else | |
11597 | echo "$as_me: failed program was:" >&5 | |
11598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11599 | ||
11600 | ac_cv_prog_cc_g=no | |
11601 | fi | |
11602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11603 | fi | |
11604 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11605 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11606 | if test "$ac_test_CFLAGS" = set; then | |
11607 | CFLAGS=$ac_save_CFLAGS | |
11608 | elif test $ac_cv_prog_cc_g = yes; then | |
11609 | if test "$GCC" = yes; then | |
11610 | CFLAGS="-g -O2" | |
11611 | else | |
11612 | CFLAGS="-g" | |
11613 | fi | |
11614 | else | |
11615 | if test "$GCC" = yes; then | |
11616 | CFLAGS="-O2" | |
11617 | else | |
11618 | CFLAGS= | |
11619 | fi | |
11620 | fi | |
11621 | fi | |
a848cd7e | 11622 | |
95986553 DE |
11623 | ac_ext=c |
11624 | ac_cpp='$CPP $CPPFLAGS' | |
11625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11628 | ||
11629 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11630 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11631 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11633 | else | |
11634 | cat >conftest.$ac_ext <<_ACEOF | |
11635 | /* confdefs.h. */ | |
11636 | _ACEOF | |
11637 | cat confdefs.h >>conftest.$ac_ext | |
11638 | cat >>conftest.$ac_ext <<_ACEOF | |
11639 | /* end confdefs.h. */ | |
11640 | ||
11641 | int | |
11642 | main () | |
11643 | { | |
11644 | #ifndef __MWERKS__ | |
11645 | choke me | |
11646 | #endif | |
11647 | ||
11648 | ; | |
11649 | return 0; | |
11650 | } | |
11651 | _ACEOF | |
11652 | rm -f conftest.$ac_objext | |
11653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11654 | (eval $ac_compile) 2>conftest.er1 | |
11655 | ac_status=$? | |
11656 | grep -v '^ *+' conftest.er1 >conftest.err | |
11657 | rm -f conftest.er1 | |
11658 | cat conftest.err >&5 | |
11659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11660 | (exit $ac_status); } && | |
07158944 | 11661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
11662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11663 | (eval $ac_try) 2>&5 | |
11664 | ac_status=$? | |
11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11666 | (exit $ac_status); }; } && | |
11667 | { ac_try='test -s conftest.$ac_objext' | |
11668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11669 | (eval $ac_try) 2>&5 | |
11670 | ac_status=$? | |
11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11672 | (exit $ac_status); }; }; then | |
11673 | bakefile_compiler_mwerks=yes | |
11674 | else | |
11675 | echo "$as_me: failed program was:" >&5 | |
11676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11677 | ||
11678 | bakefile_compiler_mwerks=no | |
11679 | fi | |
11680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11681 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11682 | ||
11683 | fi | |
11684 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11685 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11686 | ||
11687 | MWCC=`test $bakefile_compiler_mwerks = yes && echo yes` | |
11688 | ac_ext=c | |
11689 | ac_cpp='$CPP $CPPFLAGS' | |
11690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11693 | ||
11694 | ||
9273ffba DE |
11695 | ac_ext=c |
11696 | ac_cpp='$CPP $CPPFLAGS' | |
11697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11700 | ||
11701 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11702 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
11703 | if test "${wx_cv_c_compiler_xlc+set}" = set; then | |
11704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11705 | else | |
11706 | cat >conftest.$ac_ext <<_ACEOF | |
11707 | /* confdefs.h. */ | |
11708 | _ACEOF | |
11709 | cat confdefs.h >>conftest.$ac_ext | |
11710 | cat >>conftest.$ac_ext <<_ACEOF | |
11711 | /* end confdefs.h. */ | |
11712 | ||
11713 | int | |
11714 | main () | |
11715 | { | |
11716 | #ifndef __xlC__ | |
11717 | choke me | |
11718 | #endif | |
11719 | ||
11720 | ; | |
11721 | return 0; | |
11722 | } | |
11723 | _ACEOF | |
11724 | rm -f conftest.$ac_objext | |
11725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11726 | (eval $ac_compile) 2>conftest.er1 | |
11727 | ac_status=$? | |
11728 | grep -v '^ *+' conftest.er1 >conftest.err | |
11729 | rm -f conftest.er1 | |
11730 | cat conftest.err >&5 | |
11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11732 | (exit $ac_status); } && | |
07158944 | 11733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
11734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11735 | (eval $ac_try) 2>&5 | |
11736 | ac_status=$? | |
11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11738 | (exit $ac_status); }; } && | |
11739 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
11745 | wx_compiler_xlc=yes | |
11746 | else | |
11747 | echo "$as_me: failed program was:" >&5 | |
11748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11749 | ||
11750 | wx_compiler_xlc=no | |
11751 | fi | |
11752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11753 | wx_cv_c_compiler_xlc=$wx_compiler_xlc | |
11754 | ||
11755 | fi | |
11756 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 | |
11757 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
11758 | ||
11759 | XLCC=`test $wx_compiler_xlc = yes && echo yes` | |
11760 | ac_ext=c | |
11761 | ac_cpp='$CPP $CPPFLAGS' | |
11762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11765 | ||
11766 | ||
a848cd7e SC |
11767 | |
11768 | ac_ext=c | |
11769 | ac_cpp='$CPP $CPPFLAGS' | |
11770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11773 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11774 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11775 | # On Suns, sometimes $CPP names a directory. | |
11776 | if test -n "$CPP" && test -d "$CPP"; then | |
11777 | CPP= | |
11778 | fi | |
11779 | if test -z "$CPP"; then | |
11780 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11782 | else | |
11783 | # Double quotes because CPP needs to be expanded | |
11784 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11785 | do | |
11786 | ac_preproc_ok=false | |
11787 | for ac_c_preproc_warn_flag in '' yes | |
11788 | do | |
11789 | # Use a header file that comes with gcc, so configuring glibc | |
11790 | # with a fresh cross-compiler works. | |
11791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11792 | # <limits.h> exists even on freestanding compilers. | |
11793 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11794 | # not just through cpp. "Syntax error" is here to catch this case. | |
11795 | cat >conftest.$ac_ext <<_ACEOF | |
11796 | /* confdefs.h. */ | |
11797 | _ACEOF | |
11798 | cat confdefs.h >>conftest.$ac_ext | |
11799 | cat >>conftest.$ac_ext <<_ACEOF | |
11800 | /* end confdefs.h. */ | |
11801 | #ifdef __STDC__ | |
11802 | # include <limits.h> | |
11803 | #else | |
11804 | # include <assert.h> | |
11805 | #endif | |
ac1cb8d3 | 11806 | Syntax error |
a848cd7e SC |
11807 | _ACEOF |
11808 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11809 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | |
11816 | if test -s conftest.err; then | |
11817 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11818 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11819 | else |
11820 | ac_cpp_err= | |
11821 | fi | |
11822 | else | |
11823 | ac_cpp_err=yes | |
11824 | fi | |
11825 | if test -z "$ac_cpp_err"; then | |
11826 | : | |
11827 | else | |
11828 | echo "$as_me: failed program was:" >&5 | |
11829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11830 | ||
11831 | # Broken: fails on valid input. | |
11832 | continue | |
11833 | fi | |
11834 | rm -f conftest.err conftest.$ac_ext | |
11835 | ||
11836 | # OK, works on sane cases. Now check whether non-existent headers | |
11837 | # can be detected and how. | |
11838 | cat >conftest.$ac_ext <<_ACEOF | |
11839 | /* confdefs.h. */ | |
11840 | _ACEOF | |
11841 | cat confdefs.h >>conftest.$ac_ext | |
11842 | cat >>conftest.$ac_ext <<_ACEOF | |
11843 | /* end confdefs.h. */ | |
11844 | #include <ac_nonexistent.h> | |
11845 | _ACEOF | |
11846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11848 | ac_status=$? | |
11849 | grep -v '^ *+' conftest.er1 >conftest.err | |
11850 | rm -f conftest.er1 | |
11851 | cat conftest.err >&5 | |
11852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11853 | (exit $ac_status); } >/dev/null; then | |
11854 | if test -s conftest.err; then | |
11855 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11857 | else |
11858 | ac_cpp_err= | |
11859 | fi | |
11860 | else | |
11861 | ac_cpp_err=yes | |
11862 | fi | |
11863 | if test -z "$ac_cpp_err"; then | |
11864 | # Broken: success on invalid input. | |
11865 | continue | |
11866 | else | |
11867 | echo "$as_me: failed program was:" >&5 | |
11868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11869 | ||
11870 | # Passes both tests. | |
11871 | ac_preproc_ok=: | |
11872 | break | |
11873 | fi | |
11874 | rm -f conftest.err conftest.$ac_ext | |
11875 | ||
11876 | done | |
11877 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11878 | rm -f conftest.err conftest.$ac_ext | |
11879 | if $ac_preproc_ok; then | |
11880 | break | |
11881 | fi | |
11882 | ||
11883 | done | |
11884 | ac_cv_prog_CPP=$CPP | |
11885 | ||
11886 | fi | |
11887 | CPP=$ac_cv_prog_CPP | |
11888 | else | |
11889 | ac_cv_prog_CPP=$CPP | |
11890 | fi | |
11891 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11892 | echo "${ECHO_T}$CPP" >&6 | |
11893 | ac_preproc_ok=false | |
11894 | for ac_c_preproc_warn_flag in '' yes | |
11895 | do | |
11896 | # Use a header file that comes with gcc, so configuring glibc | |
11897 | # with a fresh cross-compiler works. | |
11898 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11899 | # <limits.h> exists even on freestanding compilers. | |
11900 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11901 | # not just through cpp. "Syntax error" is here to catch this case. | |
11902 | cat >conftest.$ac_ext <<_ACEOF | |
11903 | /* confdefs.h. */ | |
11904 | _ACEOF | |
11905 | cat confdefs.h >>conftest.$ac_ext | |
11906 | cat >>conftest.$ac_ext <<_ACEOF | |
11907 | /* end confdefs.h. */ | |
11908 | #ifdef __STDC__ | |
11909 | # include <limits.h> | |
11910 | #else | |
11911 | # include <assert.h> | |
11912 | #endif | |
ac1cb8d3 | 11913 | Syntax error |
a848cd7e SC |
11914 | _ACEOF |
11915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11917 | ac_status=$? | |
11918 | grep -v '^ *+' conftest.er1 >conftest.err | |
11919 | rm -f conftest.er1 | |
11920 | cat conftest.err >&5 | |
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11922 | (exit $ac_status); } >/dev/null; then | |
11923 | if test -s conftest.err; then | |
11924 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11925 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11926 | else |
11927 | ac_cpp_err= | |
11928 | fi | |
11929 | else | |
11930 | ac_cpp_err=yes | |
11931 | fi | |
11932 | if test -z "$ac_cpp_err"; then | |
11933 | : | |
11934 | else | |
11935 | echo "$as_me: failed program was:" >&5 | |
11936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11937 | ||
11938 | # Broken: fails on valid input. | |
11939 | continue | |
11940 | fi | |
11941 | rm -f conftest.err conftest.$ac_ext | |
11942 | ||
11943 | # OK, works on sane cases. Now check whether non-existent headers | |
11944 | # can be detected and how. | |
11945 | cat >conftest.$ac_ext <<_ACEOF | |
11946 | /* confdefs.h. */ | |
11947 | _ACEOF | |
11948 | cat confdefs.h >>conftest.$ac_ext | |
11949 | cat >>conftest.$ac_ext <<_ACEOF | |
11950 | /* end confdefs.h. */ | |
11951 | #include <ac_nonexistent.h> | |
11952 | _ACEOF | |
11953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11955 | ac_status=$? | |
11956 | grep -v '^ *+' conftest.er1 >conftest.err | |
11957 | rm -f conftest.er1 | |
11958 | cat conftest.err >&5 | |
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11960 | (exit $ac_status); } >/dev/null; then | |
11961 | if test -s conftest.err; then | |
11962 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11964 | else |
11965 | ac_cpp_err= | |
11966 | fi | |
11967 | else | |
11968 | ac_cpp_err=yes | |
11969 | fi | |
11970 | if test -z "$ac_cpp_err"; then | |
11971 | # Broken: success on invalid input. | |
11972 | continue | |
11973 | else | |
11974 | echo "$as_me: failed program was:" >&5 | |
11975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11976 | ||
11977 | # Passes both tests. | |
11978 | ac_preproc_ok=: | |
11979 | break | |
11980 | fi | |
11981 | rm -f conftest.err conftest.$ac_ext | |
11982 | ||
11983 | done | |
11984 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11985 | rm -f conftest.err conftest.$ac_ext | |
11986 | if $ac_preproc_ok; then | |
11987 | : | |
11988 | else | |
11989 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11990 | See \`config.log' for more details." >&5 | |
11991 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11992 | See \`config.log' for more details." >&2;} | |
11993 | { (exit 1); exit 1; }; } | |
11994 | fi | |
11995 | ||
11996 | ac_ext=c | |
11997 | ac_cpp='$CPP $CPPFLAGS' | |
11998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12001 | ||
12002 | ||
12003 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12004 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12005 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12007 | else | |
12008 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12009 | then ac_cv_prog_egrep='grep -E' | |
12010 | else ac_cv_prog_egrep='egrep' | |
12011 | fi | |
12012 | fi | |
12013 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12014 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12015 | EGREP=$ac_cv_prog_egrep | |
12016 | ||
12017 | ||
12018 | if test $ac_cv_c_compiler_gnu = yes; then | |
12019 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12020 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12021 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12023 | else | |
12024 | ac_pattern="Autoconf.*'x'" | |
12025 | cat >conftest.$ac_ext <<_ACEOF | |
12026 | /* confdefs.h. */ | |
12027 | _ACEOF | |
12028 | cat confdefs.h >>conftest.$ac_ext | |
12029 | cat >>conftest.$ac_ext <<_ACEOF | |
12030 | /* end confdefs.h. */ | |
12031 | #include <sgtty.h> | |
12032 | Autoconf TIOCGETP | |
12033 | _ACEOF | |
12034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12035 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12036 | ac_cv_prog_gcc_traditional=yes | |
12037 | else | |
12038 | ac_cv_prog_gcc_traditional=no | |
12039 | fi | |
12040 | rm -f conftest* | |
12041 | ||
12042 | ||
12043 | if test $ac_cv_prog_gcc_traditional = no; then | |
12044 | cat >conftest.$ac_ext <<_ACEOF | |
12045 | /* confdefs.h. */ | |
12046 | _ACEOF | |
12047 | cat confdefs.h >>conftest.$ac_ext | |
12048 | cat >>conftest.$ac_ext <<_ACEOF | |
12049 | /* end confdefs.h. */ | |
12050 | #include <termio.h> | |
12051 | Autoconf TCGETA | |
12052 | _ACEOF | |
12053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12054 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12055 | ac_cv_prog_gcc_traditional=yes | |
12056 | fi | |
12057 | rm -f conftest* | |
12058 | ||
12059 | fi | |
12060 | fi | |
12061 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12062 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12063 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12064 | CC="$CC -traditional" | |
12065 | fi | |
12066 | fi | |
12067 | ||
12068 | ||
12069 | ||
12070 | ||
12071 | ac_ext=cc | |
12072 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12073 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12074 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12075 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12076 | ||
12077 | ||
12078 | CXXFLAGS=${CXXFLAGS:=} | |
12079 | ac_ext=cc | |
12080 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12081 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12082 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12083 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12084 | if test -n "$ac_tool_prefix"; then | |
12085 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12086 | do | |
12087 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12088 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12091 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12093 | else | |
12094 | if test -n "$CXX"; then | |
12095 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12096 | else | |
12097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12098 | for as_dir in $PATH | |
12099 | do | |
12100 | IFS=$as_save_IFS | |
12101 | test -z "$as_dir" && as_dir=. | |
12102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12103 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12104 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12106 | break 2 | |
12107 | fi | |
12108 | done | |
12109 | done | |
12110 | ||
12111 | fi | |
12112 | fi | |
12113 | CXX=$ac_cv_prog_CXX | |
12114 | if test -n "$CXX"; then | |
12115 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12116 | echo "${ECHO_T}$CXX" >&6 | |
12117 | else | |
12118 | echo "$as_me:$LINENO: result: no" >&5 | |
12119 | echo "${ECHO_T}no" >&6 | |
12120 | fi | |
12121 | ||
12122 | test -n "$CXX" && break | |
12123 | done | |
12124 | fi | |
12125 | if test -z "$CXX"; then | |
12126 | ac_ct_CXX=$CXX | |
12127 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12128 | do | |
12129 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12130 | set dummy $ac_prog; ac_word=$2 | |
12131 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12133 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12135 | else | |
12136 | if test -n "$ac_ct_CXX"; then | |
12137 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12138 | else | |
12139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12140 | for as_dir in $PATH | |
12141 | do | |
12142 | IFS=$as_save_IFS | |
12143 | test -z "$as_dir" && as_dir=. | |
12144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12145 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12146 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12148 | break 2 | |
12149 | fi | |
12150 | done | |
12151 | done | |
12152 | ||
12153 | fi | |
12154 | fi | |
12155 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12156 | if test -n "$ac_ct_CXX"; then | |
12157 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12158 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12159 | else | |
12160 | echo "$as_me:$LINENO: result: no" >&5 | |
12161 | echo "${ECHO_T}no" >&6 | |
12162 | fi | |
12163 | ||
12164 | test -n "$ac_ct_CXX" && break | |
12165 | done | |
12166 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12167 | ||
12168 | CXX=$ac_ct_CXX | |
12169 | fi | |
12170 | ||
12171 | ||
12172 | # Provide some information about the compiler. | |
12173 | echo "$as_me:$LINENO:" \ | |
12174 | "checking for C++ compiler version" >&5 | |
12175 | ac_compiler=`set X $ac_compile; echo $2` | |
12176 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12177 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12178 | ac_status=$? | |
12179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12180 | (exit $ac_status); } | |
12181 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12182 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12183 | ac_status=$? | |
12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12185 | (exit $ac_status); } | |
12186 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12187 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12188 | ac_status=$? | |
12189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12190 | (exit $ac_status); } | |
12191 | ||
12192 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12193 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12194 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12196 | else | |
12197 | cat >conftest.$ac_ext <<_ACEOF | |
12198 | /* confdefs.h. */ | |
12199 | _ACEOF | |
12200 | cat confdefs.h >>conftest.$ac_ext | |
12201 | cat >>conftest.$ac_ext <<_ACEOF | |
12202 | /* end confdefs.h. */ | |
12203 | ||
12204 | int | |
12205 | main () | |
12206 | { | |
12207 | #ifndef __GNUC__ | |
12208 | choke me | |
12209 | #endif | |
12210 | ||
12211 | ; | |
12212 | return 0; | |
12213 | } | |
12214 | _ACEOF | |
12215 | rm -f conftest.$ac_objext | |
12216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12217 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12218 | ac_status=$? |
ac1cb8d3 VS |
12219 | grep -v '^ *+' conftest.er1 >conftest.err |
12220 | rm -f conftest.er1 | |
12221 | cat conftest.err >&5 | |
a848cd7e SC |
12222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12223 | (exit $ac_status); } && | |
07158944 | 12224 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12226 | (eval $ac_try) 2>&5 | |
12227 | ac_status=$? | |
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12229 | (exit $ac_status); }; } && | |
12230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12232 | (eval $ac_try) 2>&5 | |
12233 | ac_status=$? | |
12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12235 | (exit $ac_status); }; }; then | |
12236 | ac_compiler_gnu=yes | |
12237 | else | |
12238 | echo "$as_me: failed program was:" >&5 | |
12239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12240 | ||
12241 | ac_compiler_gnu=no | |
12242 | fi | |
ac1cb8d3 | 12243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12244 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12245 | ||
12246 | fi | |
12247 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12248 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12249 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12250 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12251 | ac_save_CXXFLAGS=$CXXFLAGS | |
12252 | CXXFLAGS="-g" | |
12253 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12254 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12255 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12257 | else | |
12258 | cat >conftest.$ac_ext <<_ACEOF | |
12259 | /* confdefs.h. */ | |
12260 | _ACEOF | |
12261 | cat confdefs.h >>conftest.$ac_ext | |
12262 | cat >>conftest.$ac_ext <<_ACEOF | |
12263 | /* end confdefs.h. */ | |
12264 | ||
12265 | int | |
12266 | main () | |
12267 | { | |
12268 | ||
12269 | ; | |
12270 | return 0; | |
12271 | } | |
12272 | _ACEOF | |
12273 | rm -f conftest.$ac_objext | |
12274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12276 | ac_status=$? |
ac1cb8d3 VS |
12277 | grep -v '^ *+' conftest.er1 >conftest.err |
12278 | rm -f conftest.er1 | |
12279 | cat conftest.err >&5 | |
a848cd7e SC |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12281 | (exit $ac_status); } && | |
07158944 | 12282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12284 | (eval $ac_try) 2>&5 | |
12285 | ac_status=$? | |
12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 | (exit $ac_status); }; } && | |
12288 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12290 | (eval $ac_try) 2>&5 | |
12291 | ac_status=$? | |
12292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12293 | (exit $ac_status); }; }; then | |
12294 | ac_cv_prog_cxx_g=yes | |
12295 | else | |
12296 | echo "$as_me: failed program was:" >&5 | |
12297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12298 | ||
12299 | ac_cv_prog_cxx_g=no | |
12300 | fi | |
ac1cb8d3 | 12301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12302 | fi |
12303 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12304 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12305 | if test "$ac_test_CXXFLAGS" = set; then | |
12306 | CXXFLAGS=$ac_save_CXXFLAGS | |
12307 | elif test $ac_cv_prog_cxx_g = yes; then | |
12308 | if test "$GXX" = yes; then | |
12309 | CXXFLAGS="-g -O2" | |
12310 | else | |
12311 | CXXFLAGS="-g" | |
12312 | fi | |
12313 | else | |
12314 | if test "$GXX" = yes; then | |
12315 | CXXFLAGS="-O2" | |
12316 | else | |
12317 | CXXFLAGS= | |
12318 | fi | |
12319 | fi | |
12320 | for ac_declaration in \ | |
ac1cb8d3 | 12321 | '' \ |
a848cd7e SC |
12322 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12323 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12324 | 'extern "C" void exit (int) throw ();' \ | |
12325 | 'extern "C" void exit (int);' \ | |
12326 | 'void exit (int);' | |
12327 | do | |
12328 | cat >conftest.$ac_ext <<_ACEOF | |
12329 | /* confdefs.h. */ | |
12330 | _ACEOF | |
12331 | cat confdefs.h >>conftest.$ac_ext | |
12332 | cat >>conftest.$ac_ext <<_ACEOF | |
12333 | /* end confdefs.h. */ | |
de59c161 | 12334 | $ac_declaration |
ac1cb8d3 | 12335 | #include <stdlib.h> |
a848cd7e SC |
12336 | int |
12337 | main () | |
12338 | { | |
12339 | exit (42); | |
12340 | ; | |
12341 | return 0; | |
12342 | } | |
12343 | _ACEOF | |
12344 | rm -f conftest.$ac_objext | |
12345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12347 | ac_status=$? |
ac1cb8d3 VS |
12348 | grep -v '^ *+' conftest.er1 >conftest.err |
12349 | rm -f conftest.er1 | |
12350 | cat conftest.err >&5 | |
a848cd7e SC |
12351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12352 | (exit $ac_status); } && | |
07158944 | 12353 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12355 | (eval $ac_try) 2>&5 | |
12356 | ac_status=$? | |
12357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12358 | (exit $ac_status); }; } && | |
12359 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12361 | (eval $ac_try) 2>&5 | |
12362 | ac_status=$? | |
12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12364 | (exit $ac_status); }; }; then | |
12365 | : | |
12366 | else | |
12367 | echo "$as_me: failed program was:" >&5 | |
12368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12369 | ||
12370 | continue | |
12371 | fi | |
ac1cb8d3 | 12372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12373 | cat >conftest.$ac_ext <<_ACEOF |
12374 | /* confdefs.h. */ | |
12375 | _ACEOF | |
12376 | cat confdefs.h >>conftest.$ac_ext | |
12377 | cat >>conftest.$ac_ext <<_ACEOF | |
12378 | /* end confdefs.h. */ | |
12379 | $ac_declaration | |
12380 | int | |
12381 | main () | |
12382 | { | |
12383 | exit (42); | |
12384 | ; | |
12385 | return 0; | |
12386 | } | |
12387 | _ACEOF | |
12388 | rm -f conftest.$ac_objext | |
12389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12390 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12391 | ac_status=$? |
ac1cb8d3 VS |
12392 | grep -v '^ *+' conftest.er1 >conftest.err |
12393 | rm -f conftest.er1 | |
12394 | cat conftest.err >&5 | |
a848cd7e SC |
12395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12396 | (exit $ac_status); } && | |
07158944 | 12397 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12399 | (eval $ac_try) 2>&5 | |
12400 | ac_status=$? | |
12401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12402 | (exit $ac_status); }; } && | |
12403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12405 | (eval $ac_try) 2>&5 | |
12406 | ac_status=$? | |
12407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12408 | (exit $ac_status); }; }; then | |
12409 | break | |
12410 | else | |
12411 | echo "$as_me: failed program was:" >&5 | |
12412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12413 | ||
12414 | fi | |
ac1cb8d3 | 12415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12416 | done |
12417 | rm -f conftest* | |
12418 | if test -n "$ac_declaration"; then | |
12419 | echo '#ifdef __cplusplus' >>confdefs.h | |
12420 | echo $ac_declaration >>confdefs.h | |
12421 | echo '#endif' >>confdefs.h | |
12422 | fi | |
12423 | ||
12424 | ac_ext=cc | |
12425 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12426 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12427 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12428 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12429 | ||
480ccd21 DE |
12430 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
12431 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 | |
12432 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12434 | else | |
12435 | cat >conftest.$ac_ext <<_ACEOF | |
12436 | /* confdefs.h. */ | |
12437 | _ACEOF | |
12438 | cat confdefs.h >>conftest.$ac_ext | |
12439 | cat >>conftest.$ac_ext <<_ACEOF | |
12440 | /* end confdefs.h. */ | |
12441 | ||
12442 | int | |
12443 | main () | |
12444 | { | |
12445 | ||
12446 | ; | |
12447 | return 0; | |
12448 | } | |
12449 | _ACEOF | |
12450 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12452 | (eval $ac_compile) 2>&5 | |
12453 | ac_status=$? | |
12454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12455 | (exit $ac_status); }; then | |
12456 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12457 | case $ac_file in | |
12458 | conftest.$ac_ext.o) | |
12459 | wx_cv_cxx_exto="-ext o" | |
12460 | ;; | |
12461 | *) | |
12462 | ;; | |
12463 | esac | |
12464 | done | |
12465 | else | |
12466 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12467 | See \`config.log' for more details." >&5 | |
12468 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12469 | See \`config.log' for more details." >&2;} | |
12470 | { (exit 1); exit 1; }; } | |
12471 | ||
12472 | fi | |
12473 | ||
12474 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12475 | ||
12476 | fi | |
12477 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12478 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12479 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12480 | if test "cxx" = "c"; then | |
12481 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12482 | fi | |
12483 | if test "cxx" = "cxx"; then | |
12484 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12485 | fi | |
12486 | fi | |
12487 | ||
12488 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12489 | unset ac_cv_prog_cxx_g | |
12490 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12491 | ac_save_CXXFLAGS=$CXXFLAGS | |
12492 | CXXFLAGS="-g" | |
12493 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12494 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12495 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12497 | else | |
12498 | cat >conftest.$ac_ext <<_ACEOF | |
12499 | /* confdefs.h. */ | |
12500 | _ACEOF | |
12501 | cat confdefs.h >>conftest.$ac_ext | |
12502 | cat >>conftest.$ac_ext <<_ACEOF | |
12503 | /* end confdefs.h. */ | |
12504 | ||
12505 | int | |
12506 | main () | |
12507 | { | |
12508 | ||
12509 | ; | |
12510 | return 0; | |
12511 | } | |
12512 | _ACEOF | |
12513 | rm -f conftest.$ac_objext | |
12514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12515 | (eval $ac_compile) 2>conftest.er1 | |
12516 | ac_status=$? | |
12517 | grep -v '^ *+' conftest.er1 >conftest.err | |
12518 | rm -f conftest.er1 | |
12519 | cat conftest.err >&5 | |
12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12521 | (exit $ac_status); } && | |
07158944 | 12522 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12524 | (eval $ac_try) 2>&5 | |
12525 | ac_status=$? | |
12526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12527 | (exit $ac_status); }; } && | |
12528 | { ac_try='test -s conftest.$ac_objext' | |
12529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12530 | (eval $ac_try) 2>&5 | |
12531 | ac_status=$? | |
12532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12533 | (exit $ac_status); }; }; then | |
12534 | ac_cv_prog_cxx_g=yes | |
12535 | else | |
12536 | echo "$as_me: failed program was:" >&5 | |
12537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12538 | ||
12539 | ac_cv_prog_cxx_g=no | |
12540 | fi | |
12541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12542 | fi | |
12543 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12544 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12545 | if test "$ac_test_CXXFLAGS" = set; then | |
12546 | CXXFLAGS=$ac_save_CXXFLAGS | |
12547 | elif test $ac_cv_prog_cxx_g = yes; then | |
12548 | if test "$GXX" = yes; then | |
12549 | CXXFLAGS="-g -O2" | |
12550 | else | |
12551 | CXXFLAGS="-g" | |
12552 | fi | |
12553 | else | |
12554 | if test "$GXX" = yes; then | |
12555 | CXXFLAGS="-O2" | |
12556 | else | |
12557 | CXXFLAGS= | |
12558 | fi | |
12559 | fi | |
12560 | fi | |
a848cd7e | 12561 | |
95986553 DE |
12562 | ac_ext=cc |
12563 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12567 | ||
12568 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12569 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12570 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12572 | else | |
12573 | cat >conftest.$ac_ext <<_ACEOF | |
12574 | /* confdefs.h. */ | |
12575 | _ACEOF | |
12576 | cat confdefs.h >>conftest.$ac_ext | |
12577 | cat >>conftest.$ac_ext <<_ACEOF | |
12578 | /* end confdefs.h. */ | |
12579 | ||
12580 | int | |
12581 | main () | |
12582 | { | |
12583 | #ifndef __MWERKS__ | |
12584 | choke me | |
12585 | #endif | |
12586 | ||
12587 | ; | |
12588 | return 0; | |
12589 | } | |
12590 | _ACEOF | |
12591 | rm -f conftest.$ac_objext | |
12592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12593 | (eval $ac_compile) 2>conftest.er1 | |
12594 | ac_status=$? | |
12595 | grep -v '^ *+' conftest.er1 >conftest.err | |
12596 | rm -f conftest.er1 | |
12597 | cat conftest.err >&5 | |
12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12599 | (exit $ac_status); } && | |
07158944 | 12600 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
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' | |
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 | bakefile_compiler_mwerks=yes | |
12613 | else | |
12614 | echo "$as_me: failed program was:" >&5 | |
12615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12616 | ||
12617 | bakefile_compiler_mwerks=no | |
12618 | fi | |
12619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12620 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12621 | ||
12622 | fi | |
12623 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12624 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12625 | ||
12626 | MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes` | |
12627 | ac_ext=cc | |
12628 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12632 | ||
12633 | ||
9273ffba DE |
12634 | ac_ext=cc |
12635 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12636 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12637 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12638 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12639 | ||
12640 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
12641 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
12642 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then | |
12643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12644 | else | |
12645 | cat >conftest.$ac_ext <<_ACEOF | |
12646 | /* confdefs.h. */ | |
12647 | _ACEOF | |
12648 | cat confdefs.h >>conftest.$ac_ext | |
12649 | cat >>conftest.$ac_ext <<_ACEOF | |
12650 | /* end confdefs.h. */ | |
12651 | ||
12652 | int | |
12653 | main () | |
12654 | { | |
12655 | #ifndef __xlC__ | |
12656 | choke me | |
12657 | #endif | |
12658 | ||
12659 | ; | |
12660 | return 0; | |
12661 | } | |
12662 | _ACEOF | |
12663 | rm -f conftest.$ac_objext | |
12664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12665 | (eval $ac_compile) 2>conftest.er1 | |
12666 | ac_status=$? | |
12667 | grep -v '^ *+' conftest.er1 >conftest.err | |
12668 | rm -f conftest.er1 | |
12669 | cat conftest.err >&5 | |
12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12671 | (exit $ac_status); } && | |
07158944 | 12672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12674 | (eval $ac_try) 2>&5 | |
12675 | ac_status=$? | |
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12677 | (exit $ac_status); }; } && | |
12678 | { ac_try='test -s conftest.$ac_objext' | |
12679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12680 | (eval $ac_try) 2>&5 | |
12681 | ac_status=$? | |
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12683 | (exit $ac_status); }; }; then | |
12684 | wx_compiler_xlc=yes | |
12685 | else | |
12686 | echo "$as_me: failed program was:" >&5 | |
12687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12688 | ||
12689 | wx_compiler_xlc=no | |
12690 | fi | |
12691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12692 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc | |
12693 | ||
12694 | fi | |
12695 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 | |
12696 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
12697 | ||
12698 | XLCXX=`test $wx_compiler_xlc = yes && echo yes` | |
12699 | ac_ext=cc | |
12700 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12701 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12702 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12703 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12704 | ||
12705 | ||
95986553 | 12706 | |
a848cd7e SC |
12707 | ac_ext=c |
12708 | ac_cpp='$CPP $CPPFLAGS' | |
12709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12712 | ||
12713 | ||
a848cd7e SC |
12714 | if test -n "$ac_tool_prefix"; then |
12715 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12716 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12719 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12721 | else | |
12722 | if test -n "$RANLIB"; then | |
12723 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12724 | else | |
12725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12726 | for as_dir in $PATH | |
12727 | do | |
12728 | IFS=$as_save_IFS | |
12729 | test -z "$as_dir" && as_dir=. | |
12730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12732 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12734 | break 2 | |
12735 | fi | |
12736 | done | |
12737 | done | |
12738 | ||
12739 | fi | |
12740 | fi | |
12741 | RANLIB=$ac_cv_prog_RANLIB | |
12742 | if test -n "$RANLIB"; then | |
12743 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12744 | echo "${ECHO_T}$RANLIB" >&6 | |
12745 | else | |
12746 | echo "$as_me:$LINENO: result: no" >&5 | |
12747 | echo "${ECHO_T}no" >&6 | |
12748 | fi | |
12749 | ||
12750 | fi | |
12751 | if test -z "$ac_cv_prog_RANLIB"; then | |
12752 | ac_ct_RANLIB=$RANLIB | |
12753 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12754 | set dummy ranlib; ac_word=$2 | |
12755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12757 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12759 | else | |
12760 | if test -n "$ac_ct_RANLIB"; then | |
12761 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12762 | else | |
12763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12764 | for as_dir in $PATH | |
12765 | do | |
12766 | IFS=$as_save_IFS | |
12767 | test -z "$as_dir" && as_dir=. | |
12768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12770 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12772 | break 2 | |
12773 | fi | |
12774 | done | |
12775 | done | |
12776 | ||
12777 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12778 | fi | |
12779 | fi | |
12780 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12781 | if test -n "$ac_ct_RANLIB"; then | |
12782 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12783 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12784 | else | |
12785 | echo "$as_me:$LINENO: result: no" >&5 | |
12786 | echo "${ECHO_T}no" >&6 | |
12787 | fi | |
12788 | ||
12789 | RANLIB=$ac_ct_RANLIB | |
12790 | else | |
12791 | RANLIB="$ac_cv_prog_RANLIB" | |
12792 | fi | |
12793 | ||
12794 | ||
12795 | # Extract the first word of "ar", so it can be a program name with args. | |
12796 | set dummy ar; ac_word=$2 | |
12797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12799 | if test "${ac_cv_prog_AR+set}" = set; then | |
12800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12801 | else | |
12802 | if test -n "$AR"; then | |
12803 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12804 | else | |
12805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12806 | for as_dir in $PATH | |
12807 | do | |
12808 | IFS=$as_save_IFS | |
12809 | test -z "$as_dir" && as_dir=. | |
12810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12812 | ac_cv_prog_AR="ar" | |
12813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12814 | break 2 | |
12815 | fi | |
12816 | done | |
12817 | done | |
12818 | ||
12819 | fi | |
12820 | fi | |
12821 | AR=$ac_cv_prog_AR | |
12822 | if test -n "$AR"; then | |
12823 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12824 | echo "${ECHO_T}$AR" >&6 | |
12825 | else | |
12826 | echo "$as_me:$LINENO: result: no" >&5 | |
12827 | echo "${ECHO_T}no" >&6 | |
12828 | fi | |
12829 | ||
12830 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12831 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12832 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12833 | { (exit 1); exit 1; }; } |
12834 | fi | |
12835 | ||
12836 | # Find a good install program. We prefer a C program (faster), | |
12837 | # so one script is as good as another. But avoid the broken or | |
12838 | # incompatible versions: | |
12839 | # SysV /etc/install, /usr/sbin/install | |
12840 | # SunOS /usr/etc/install | |
12841 | # IRIX /sbin/install | |
12842 | # AIX /bin/install | |
12843 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12844 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12845 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12846 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12847 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12848 | # ./install, which can be erroneously created by make from ./install.sh. |
12849 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12850 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12851 | if test -z "$INSTALL"; then | |
12852 | if test "${ac_cv_path_install+set}" = set; then | |
12853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12854 | else | |
12855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12856 | for as_dir in $PATH | |
12857 | do | |
12858 | IFS=$as_save_IFS | |
12859 | test -z "$as_dir" && as_dir=. | |
12860 | # Account for people who put trailing slashes in PATH elements. | |
12861 | case $as_dir/ in | |
12862 | ./ | .// | /cC/* | \ | |
12863 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12864 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12865 | /usr/ucb/* ) ;; |
12866 | *) | |
12867 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12868 | # Don't use installbsd from OSF since it installs stuff as root | |
12869 | # by default. | |
12870 | for ac_prog in ginstall scoinst install; do | |
12871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12872 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12873 | if test $ac_prog = install && | |
12874 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12875 | # AIX install. It has an incompatible calling convention. | |
12876 | : | |
12877 | elif test $ac_prog = install && | |
12878 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12879 | # program-specific install script used by HP pwplus--don't use. | |
12880 | : | |
12881 | else | |
12882 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12883 | break 3 | |
12884 | fi | |
12885 | fi | |
a848cd7e SC |
12886 | done |
12887 | done | |
12888 | ;; | |
12889 | esac | |
12890 | done | |
12891 | ||
12892 | ||
12893 | fi | |
12894 | if test "${ac_cv_path_install+set}" = set; then | |
12895 | INSTALL=$ac_cv_path_install | |
12896 | else | |
12897 | # As a last resort, use the slow shell script. We don't cache a | |
12898 | # path for INSTALL within a source directory, because that will | |
12899 | # break other packages using the cache if that directory is | |
12900 | # removed, or if the path is relative. | |
12901 | INSTALL=$ac_install_sh | |
12902 | fi | |
12903 | fi | |
12904 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12905 | echo "${ECHO_T}$INSTALL" >&6 | |
12906 | ||
12907 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12908 | # It thinks the first close brace ends the variable substitution. | |
12909 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12910 | ||
12911 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12912 | ||
12913 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12914 | ||
12915 | ||
12916 | case ${INSTALL} in | |
12917 | /* ) # Absolute | |
12918 | ;; | |
12919 | ?:* ) # Drive letter, considered as absolute. | |
12920 | ;; | |
12921 | *) | |
12922 | INSTALL=`pwd`/${INSTALL} ;; | |
12923 | esac | |
12924 | ||
a848cd7e SC |
12925 | |
12926 | case "${host}" in | |
12927 | ||
12928 | powerpc-*-darwin* ) | |
12929 | INSTALL_PROGRAM="cp -fp" | |
12930 | INSTALL_DATA="cp -fp" | |
12931 | ;; | |
12932 | *) | |
12933 | ;; | |
12934 | esac | |
12935 | ||
12936 | # Extract the first word of "strip", so it can be a program name with args. | |
12937 | set dummy strip; ac_word=$2 | |
12938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12940 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12942 | else | |
12943 | if test -n "$STRIP"; then | |
12944 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12945 | else | |
12946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12947 | for as_dir in $PATH | |
12948 | do | |
12949 | IFS=$as_save_IFS | |
12950 | test -z "$as_dir" && as_dir=. | |
12951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12953 | ac_cv_prog_STRIP="strip" | |
12954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12955 | break 2 | |
12956 | fi | |
12957 | done | |
12958 | done | |
12959 | ||
12960 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12961 | fi | |
12962 | fi | |
12963 | STRIP=$ac_cv_prog_STRIP | |
12964 | if test -n "$STRIP"; then | |
12965 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12966 | echo "${ECHO_T}$STRIP" >&6 | |
12967 | else | |
12968 | echo "$as_me:$LINENO: result: no" >&5 | |
12969 | echo "${ECHO_T}no" >&6 | |
12970 | fi | |
12971 | ||
12972 | ||
12973 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12974 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12975 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12977 | else | |
12978 | ||
12979 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12980 | egrep -s GNU > /dev/null); then | |
12981 | wx_cv_prog_makeisgnu="yes" | |
12982 | else | |
12983 | wx_cv_prog_makeisgnu="no" | |
12984 | fi | |
12985 | ||
12986 | fi | |
12987 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12988 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12989 | ||
12990 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12991 | IF_GNU_MAKE="" | |
12992 | else | |
12993 | IF_GNU_MAKE="#" | |
12994 | fi | |
12995 | ||
12996 | ||
12997 | ||
12998 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12999 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
13000 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
13001 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
13002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13003 | else | |
13004 | ||
13005 | cat - << EOF > confMake | |
13006 | check : file | |
13007 | cp \$? \$@ | |
13008 | cp \$? final_file | |
13009 | EOF | |
13010 | ||
13011 | if test ! -d sub ; then | |
13012 | mkdir sub | |
13013 | fi | |
13014 | echo dummy > sub/file | |
13015 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
13016 | RESULT=$? | |
13017 | rm -f sub/file check final_file confMake | |
13018 | rmdir sub | |
13019 | if test "$RESULT" = 0; then | |
13020 | wx_cv_prog_makevpath="yes" | |
13021 | else | |
13022 | wx_cv_prog_makevpath="no" | |
13023 | fi | |
13024 | ||
13025 | fi | |
13026 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
13027 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
13028 | ||
13029 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
13030 | { { echo "$as_me:$LINENO: error: | |
13031 | You need a make-utility that is able to use the variable | |
13032 | VPATH correctly. | |
13033 | If your version of make does not support VPATH correctly, | |
13034 | please install GNU-make (possibly as gmake), and start | |
13035 | configure with the following command: | |
13036 | export MAKE=gmake; ./configure for sh-type shells | |
13037 | setenv MAKE gmake; ./configure for csh-type shells | |
13038 | Also please do remember to use gmake in this case every time | |
13039 | you are trying to compile. | |
13040 | " >&5 | |
13041 | echo "$as_me: error: | |
13042 | You need a make-utility that is able to use the variable | |
13043 | VPATH correctly. | |
13044 | If your version of make does not support VPATH correctly, | |
13045 | please install GNU-make (possibly as gmake), and start | |
13046 | configure with the following command: | |
13047 | export MAKE=gmake; ./configure for sh-type shells | |
13048 | setenv MAKE gmake; ./configure for csh-type shells | |
13049 | Also please do remember to use gmake in this case every time | |
13050 | you are trying to compile. | |
13051 | " >&2;} | |
13052 | { (exit 1); exit 1; }; } | |
13053 | fi fi | |
13054 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
13055 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
13056 | LN_S=$as_ln_s | |
13057 | if test "$LN_S" = "ln -s"; then | |
13058 | echo "$as_me:$LINENO: result: yes" >&5 | |
13059 | echo "${ECHO_T}yes" >&6 | |
13060 | else | |
13061 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
13062 | echo "${ECHO_T}no, using $LN_S" >&6 | |
13063 | fi | |
13064 | ||
13065 | ||
13066 | ||
9273ffba DE |
13067 | if test "x$XLCXX" = "xyes"; then |
13068 | CXXFLAGS="$CXXFLAGS -qunique" | |
13069 | fi | |
13070 | ||
13071 | ||
4d7ec9f1 DE |
13072 | case "${host}" in |
13073 | powerpc-*-darwin* ) | |
13074 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
13075 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
13076 | cat >conftest.$ac_ext <<_ACEOF | |
13077 | /* confdefs.h. */ | |
13078 | _ACEOF | |
13079 | cat confdefs.h >>conftest.$ac_ext | |
13080 | cat >>conftest.$ac_ext <<_ACEOF | |
13081 | /* end confdefs.h. */ | |
13082 | ||
13083 | int | |
13084 | main () | |
13085 | { | |
13086 | #ifndef __POWERPC__ | |
13087 | choke me for lack of PowerPC | |
13088 | #endif | |
13089 | ||
13090 | ; | |
13091 | return 0; | |
13092 | } | |
13093 | _ACEOF | |
13094 | rm -f conftest.$ac_objext | |
13095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13096 | (eval $ac_compile) 2>conftest.er1 | |
13097 | ac_status=$? | |
13098 | grep -v '^ *+' conftest.er1 >conftest.err | |
13099 | rm -f conftest.er1 | |
13100 | cat conftest.err >&5 | |
13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13102 | (exit $ac_status); } && | |
07158944 | 13103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13105 | (eval $ac_try) 2>&5 | |
13106 | ac_status=$? | |
13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13108 | (exit $ac_status); }; } && | |
13109 | { ac_try='test -s conftest.$ac_objext' | |
13110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13111 | (eval $ac_try) 2>&5 | |
13112 | ac_status=$? | |
13113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13114 | (exit $ac_status); }; }; then | |
13115 | echo "$as_me:$LINENO: result: yes" >&5 | |
13116 | echo "${ECHO_T}yes" >&6 | |
13117 | else | |
13118 | echo "$as_me: failed program was:" >&5 | |
13119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13120 | ||
13121 | echo "$as_me:$LINENO: result: no" >&5 | |
13122 | echo "${ECHO_T}no" >&6 | |
13123 | cat >>confdefs.h <<\_ACEOF | |
13124 | #define __POWERPC__ 1 | |
13125 | _ACEOF | |
13126 | ||
13127 | ||
13128 | fi | |
13129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13130 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 | |
13131 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
13132 | cat >conftest.$ac_ext <<_ACEOF | |
13133 | /* confdefs.h. */ | |
13134 | _ACEOF | |
13135 | cat confdefs.h >>conftest.$ac_ext | |
13136 | cat >>conftest.$ac_ext <<_ACEOF | |
13137 | /* end confdefs.h. */ | |
13138 | #include <CoreFoundation/CFBase.h> | |
13139 | ||
13140 | int | |
13141 | main () | |
13142 | { | |
13143 | ||
13144 | ; | |
13145 | return 0; | |
13146 | } | |
13147 | _ACEOF | |
13148 | rm -f conftest.$ac_objext | |
13149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13150 | (eval $ac_compile) 2>conftest.er1 | |
13151 | ac_status=$? | |
13152 | grep -v '^ *+' conftest.er1 >conftest.err | |
13153 | rm -f conftest.er1 | |
13154 | cat conftest.err >&5 | |
13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13156 | (exit $ac_status); } && | |
07158944 | 13157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13159 | (eval $ac_try) 2>&5 | |
13160 | ac_status=$? | |
13161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13162 | (exit $ac_status); }; } && | |
13163 | { ac_try='test -s conftest.$ac_objext' | |
13164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13165 | (eval $ac_try) 2>&5 | |
13166 | ac_status=$? | |
13167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13168 | (exit $ac_status); }; }; then | |
13169 | echo "$as_me:$LINENO: result: yes" >&5 | |
13170 | echo "${ECHO_T}yes" >&6 | |
13171 | else | |
13172 | echo "$as_me: failed program was:" >&5 | |
13173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13174 | ||
13175 | echo "$as_me:$LINENO: result: no" >&5 | |
13176 | echo "${ECHO_T}no" >&6 | |
13177 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13178 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13179 | cat >conftest.$ac_ext <<_ACEOF | |
13180 | /* confdefs.h. */ | |
13181 | _ACEOF | |
13182 | cat confdefs.h >>conftest.$ac_ext | |
13183 | cat >>conftest.$ac_ext <<_ACEOF | |
13184 | /* end confdefs.h. */ | |
13185 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13186 | #include <CoreFoundation/CFBase.h> | |
13187 | ||
13188 | int | |
13189 | main () | |
13190 | { | |
13191 | ||
13192 | ; | |
13193 | return 0; | |
13194 | } | |
13195 | _ACEOF | |
13196 | rm -f conftest.$ac_objext | |
13197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13198 | (eval $ac_compile) 2>conftest.er1 | |
13199 | ac_status=$? | |
13200 | grep -v '^ *+' conftest.er1 >conftest.err | |
13201 | rm -f conftest.er1 | |
13202 | cat conftest.err >&5 | |
13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13204 | (exit $ac_status); } && | |
07158944 | 13205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
13206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13207 | (eval $ac_try) 2>&5 | |
13208 | ac_status=$? | |
13209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13210 | (exit $ac_status); }; } && | |
13211 | { ac_try='test -s conftest.$ac_objext' | |
13212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13213 | (eval $ac_try) 2>&5 | |
13214 | ac_status=$? | |
13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13216 | (exit $ac_status); }; }; then | |
13217 | echo "$as_me:$LINENO: result: yes" >&5 | |
13218 | echo "${ECHO_T}yes" >&6 | |
13219 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13220 | else | |
13221 | echo "$as_me: failed program was:" >&5 | |
13222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13223 | ||
13224 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13225 | See \`config.log' for more details." >&5 | |
13226 | echo "$as_me: error: no. CoreFoundation not available. | |
13227 | See \`config.log' for more details." >&2;} | |
13228 | { (exit 1); exit 1; }; } | |
13229 | ||
13230 | fi | |
13231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13232 | ||
13233 | ||
13234 | fi | |
13235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13236 | ;; | |
13237 | esac | |
13238 | ||
a848cd7e SC |
13239 | case "${host}" in |
13240 | *-pc-os2_emx | *-pc-os2-emx ) | |
13241 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13242 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13243 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13244 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13246 | else | |
13247 | ac_check_lib_save_LIBS=$LIBS | |
13248 | LIBS="-lcExt $LIBS" | |
13249 | cat >conftest.$ac_ext <<_ACEOF | |
13250 | /* confdefs.h. */ | |
13251 | _ACEOF | |
13252 | cat confdefs.h >>conftest.$ac_ext | |
13253 | cat >>conftest.$ac_ext <<_ACEOF | |
13254 | /* end confdefs.h. */ | |
13255 | ||
13256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13257 | #ifdef __cplusplus | |
13258 | extern "C" | |
13259 | #endif | |
13260 | /* We use char because int might match the return type of a gcc2 | |
13261 | builtin and then its argument prototype would still apply. */ | |
13262 | char drand48 (); | |
13263 | int | |
13264 | main () | |
13265 | { | |
13266 | drand48 (); | |
13267 | ; | |
13268 | return 0; | |
13269 | } | |
13270 | _ACEOF | |
13271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13273 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13274 | ac_status=$? |
ac1cb8d3 VS |
13275 | grep -v '^ *+' conftest.er1 >conftest.err |
13276 | rm -f conftest.er1 | |
13277 | cat conftest.err >&5 | |
a848cd7e SC |
13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13279 | (exit $ac_status); } && | |
07158944 | 13280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13282 | (eval $ac_try) 2>&5 | |
13283 | ac_status=$? | |
13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13285 | (exit $ac_status); }; } && | |
13286 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13288 | (eval $ac_try) 2>&5 | |
13289 | ac_status=$? | |
13290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13291 | (exit $ac_status); }; }; then | |
13292 | ac_cv_lib_cExt_drand48=yes | |
13293 | else | |
13294 | echo "$as_me: failed program was:" >&5 | |
13295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13296 | ||
13297 | ac_cv_lib_cExt_drand48=no | |
13298 | fi | |
ac1cb8d3 VS |
13299 | rm -f conftest.err conftest.$ac_objext \ |
13300 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13301 | LIBS=$ac_check_lib_save_LIBS |
13302 | fi | |
13303 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13304 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13305 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13306 | LIBS="$LIBS -lcExt" | |
13307 | fi | |
13308 | ||
13309 | else | |
13310 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13311 | fi | |
391a765e | 13312 | echo "$as_me:$LINENO: checking for gcc version" >&5 |
a848cd7e SC |
13313 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 |
13314 | if test "${wx_cv_gccversion+set}" = set; then | |
13315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13316 | else | |
13317 | ||
391a765e VS |
13318 | if test "$cross_compiling" = yes; then |
13319 | wx_cv_gccversion="EMX2" | |
13320 | ||
13321 | else | |
13322 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13323 | /* confdefs.h. */ |
13324 | _ACEOF | |
13325 | cat confdefs.h >>conftest.$ac_ext | |
13326 | cat >>conftest.$ac_ext <<_ACEOF | |
13327 | /* end confdefs.h. */ | |
13328 | ||
391a765e | 13329 | #include <stdio.h> |
a848cd7e | 13330 | |
391a765e VS |
13331 | int main() |
13332 | { | |
13333 | FILE *f=fopen("conftestval", "w"); | |
13334 | if (!f) exit(1); | |
13335 | fprintf(f, | |
a848cd7e | 13336 | #if (__GNUC__ < 3) |
391a765e VS |
13337 | "EMX2" |
13338 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13339 | "EMX3" | |
13340 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13341 | "Innotek5" | |
13342 | #else | |
13343 | "Innotek6" | |
a848cd7e | 13344 | #endif |
391a765e VS |
13345 | ); |
13346 | exit(0); | |
13347 | } | |
a848cd7e | 13348 | |
a848cd7e | 13349 | _ACEOF |
391a765e VS |
13350 | rm -f conftest$ac_exeext |
13351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13352 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
13353 | ac_status=$? |
13354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 13355 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
13356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13357 | (eval $ac_try) 2>&5 | |
13358 | ac_status=$? | |
13359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13360 | (exit $ac_status); }; }; then | |
391a765e | 13361 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 13362 | else |
391a765e VS |
13363 | echo "$as_me: program exited with status $ac_status" >&5 |
13364 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
13365 | sed 's/^/| /' conftest.$ac_ext >&5 |
13366 | ||
391a765e VS |
13367 | ( exit $ac_status ) |
13368 | wx_cv_gccversion="EMX2" | |
a848cd7e | 13369 | fi |
391a765e | 13370 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 13371 | fi |
a848cd7e SC |
13372 | |
13373 | fi | |
13374 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
13375 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 13376 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
13377 | LIBS="$LIBS -lstdcpp" |
13378 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13379 | else | |
391a765e | 13380 | if test "$wx_cv_gccversion" = "EMX3"; then |
a848cd7e SC |
13381 | LIBS="$LIBS -lstdcxx" |
13382 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13383 | else | |
13384 | LIBS="$LIBS -lstdc++" | |
13385 | fi | |
13386 | fi | |
94acd38e DE |
13387 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
13388 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
13389 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
13390 | wxUSE_OMF=yes | |
2da0c077 | 13391 | enable_omf=yes |
94acd38e | 13392 | fi |
a848cd7e | 13393 | if test "$wxUSE_OMF" = "yes"; then |
2da0c077 | 13394 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK -Zlinker /PMTYPE:PM" |
a848cd7e SC |
13395 | fi |
13396 | ;; | |
13397 | *) | |
13398 | ||
13399 | ||
13400 | ||
13401 | ac_ext=cc | |
13402 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13403 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13404 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13405 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13406 | ||
13407 | ||
95986553 | 13408 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
13409 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
13410 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
13411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13412 | else | |
13413 | ||
13414 | cat >conftest.$ac_ext <<_ACEOF | |
13415 | /* confdefs.h. */ | |
13416 | _ACEOF | |
13417 | cat confdefs.h >>conftest.$ac_ext | |
13418 | cat >>conftest.$ac_ext <<_ACEOF | |
13419 | /* end confdefs.h. */ | |
13420 | ||
13421 | #include <string.h> | |
13422 | ||
13423 | int | |
13424 | main () | |
13425 | { | |
13426 | ||
13427 | strcasecmp("foo", "bar"); | |
13428 | ||
13429 | ; | |
13430 | return 0; | |
13431 | } | |
13432 | _ACEOF | |
13433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13435 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13436 | ac_status=$? |
ac1cb8d3 VS |
13437 | grep -v '^ *+' conftest.er1 >conftest.err |
13438 | rm -f conftest.er1 | |
13439 | cat conftest.err >&5 | |
a848cd7e SC |
13440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13441 | (exit $ac_status); } && | |
07158944 | 13442 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13444 | (eval $ac_try) 2>&5 | |
13445 | ac_status=$? | |
13446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13447 | (exit $ac_status); }; } && | |
13448 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13450 | (eval $ac_try) 2>&5 | |
13451 | ac_status=$? | |
13452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13453 | (exit $ac_status); }; }; then | |
13454 | ac_cv_string_strcasecmp=yes | |
13455 | else | |
13456 | echo "$as_me: failed program was:" >&5 | |
13457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13458 | ||
13459 | ac_cv_string_strcasecmp=no | |
13460 | ||
13461 | fi | |
ac1cb8d3 VS |
13462 | rm -f conftest.err conftest.$ac_objext \ |
13463 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13464 | |
13465 | fi | |
13466 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
13467 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
13468 | ||
13469 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
13470 | cat >>confdefs.h <<\_ACEOF | |
13471 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
13472 | _ACEOF | |
13473 | ||
13474 | else | |
13475 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
13476 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
13477 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
13478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13479 | else | |
13480 | ||
13481 | cat >conftest.$ac_ext <<_ACEOF | |
13482 | /* confdefs.h. */ | |
13483 | _ACEOF | |
13484 | cat confdefs.h >>conftest.$ac_ext | |
13485 | cat >>conftest.$ac_ext <<_ACEOF | |
13486 | /* end confdefs.h. */ | |
13487 | ||
13488 | #include <strings.h> | |
13489 | ||
13490 | int | |
13491 | main () | |
13492 | { | |
13493 | ||
13494 | strcasecmp("foo", "bar"); | |
13495 | ||
13496 | ; | |
13497 | return 0; | |
13498 | } | |
13499 | _ACEOF | |
13500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13502 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13503 | ac_status=$? |
ac1cb8d3 VS |
13504 | grep -v '^ *+' conftest.er1 >conftest.err |
13505 | rm -f conftest.er1 | |
13506 | cat conftest.err >&5 | |
a848cd7e SC |
13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13508 | (exit $ac_status); } && | |
07158944 | 13509 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13511 | (eval $ac_try) 2>&5 | |
13512 | ac_status=$? | |
13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13514 | (exit $ac_status); }; } && | |
13515 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13517 | (eval $ac_try) 2>&5 | |
13518 | ac_status=$? | |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13520 | (exit $ac_status); }; }; then | |
13521 | ac_cv_strings_strcasecmp=yes | |
13522 | else | |
13523 | echo "$as_me: failed program was:" >&5 | |
13524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13525 | ||
13526 | ac_cv_strings_strcasecmp=no | |
13527 | ||
13528 | fi | |
ac1cb8d3 VS |
13529 | rm -f conftest.err conftest.$ac_objext \ |
13530 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13531 | |
13532 | fi | |
13533 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
13534 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
13535 | ||
0c3c69fc | 13536 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
13537 | cat >>confdefs.h <<\_ACEOF |
13538 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
13539 | _ACEOF | |
13540 | ||
13541 | else | |
13542 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
13543 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
13544 | { (exit 1); exit 1; }; } | |
13545 | fi | |
13546 | fi | |
13547 | ||
13548 | ac_ext=c | |
13549 | ac_cpp='$CPP $CPPFLAGS' | |
13550 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13553 | ||
13554 | ;; | |
13555 | esac | |
13556 | ||
13557 | ||
13558 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13559 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13560 | if test "${ac_cv_header_stdc+set}" = set; then | |
13561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13562 | else | |
13563 | cat >conftest.$ac_ext <<_ACEOF | |
13564 | /* confdefs.h. */ | |
13565 | _ACEOF | |
13566 | cat confdefs.h >>conftest.$ac_ext | |
13567 | cat >>conftest.$ac_ext <<_ACEOF | |
13568 | /* end confdefs.h. */ | |
13569 | #include <stdlib.h> | |
13570 | #include <stdarg.h> | |
13571 | #include <string.h> | |
13572 | #include <float.h> | |
13573 | ||
13574 | int | |
13575 | main () | |
13576 | { | |
13577 | ||
13578 | ; | |
13579 | return 0; | |
13580 | } | |
13581 | _ACEOF | |
13582 | rm -f conftest.$ac_objext | |
13583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13584 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13585 | ac_status=$? |
ac1cb8d3 VS |
13586 | grep -v '^ *+' conftest.er1 >conftest.err |
13587 | rm -f conftest.er1 | |
13588 | cat conftest.err >&5 | |
a848cd7e SC |
13589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13590 | (exit $ac_status); } && | |
07158944 | 13591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13593 | (eval $ac_try) 2>&5 | |
13594 | ac_status=$? | |
13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13596 | (exit $ac_status); }; } && | |
13597 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13599 | (eval $ac_try) 2>&5 | |
13600 | ac_status=$? | |
13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13602 | (exit $ac_status); }; }; then | |
13603 | ac_cv_header_stdc=yes | |
13604 | else | |
13605 | echo "$as_me: failed program was:" >&5 | |
13606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13607 | ||
13608 | ac_cv_header_stdc=no | |
13609 | fi | |
ac1cb8d3 | 13610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13611 | |
13612 | if test $ac_cv_header_stdc = yes; then | |
13613 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13614 | cat >conftest.$ac_ext <<_ACEOF | |
13615 | /* confdefs.h. */ | |
13616 | _ACEOF | |
13617 | cat confdefs.h >>conftest.$ac_ext | |
13618 | cat >>conftest.$ac_ext <<_ACEOF | |
13619 | /* end confdefs.h. */ | |
13620 | #include <string.h> | |
13621 | ||
13622 | _ACEOF | |
13623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13624 | $EGREP "memchr" >/dev/null 2>&1; then | |
13625 | : | |
13626 | else | |
13627 | ac_cv_header_stdc=no | |
13628 | fi | |
13629 | rm -f conftest* | |
13630 | ||
13631 | fi | |
13632 | ||
13633 | if test $ac_cv_header_stdc = yes; then | |
13634 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13635 | cat >conftest.$ac_ext <<_ACEOF | |
13636 | /* confdefs.h. */ | |
13637 | _ACEOF | |
13638 | cat confdefs.h >>conftest.$ac_ext | |
13639 | cat >>conftest.$ac_ext <<_ACEOF | |
13640 | /* end confdefs.h. */ | |
13641 | #include <stdlib.h> | |
13642 | ||
13643 | _ACEOF | |
13644 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13645 | $EGREP "free" >/dev/null 2>&1; then | |
13646 | : | |
13647 | else | |
13648 | ac_cv_header_stdc=no | |
13649 | fi | |
13650 | rm -f conftest* | |
13651 | ||
13652 | fi | |
13653 | ||
13654 | if test $ac_cv_header_stdc = yes; then | |
13655 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13656 | if test "$cross_compiling" = yes; then | |
13657 | : | |
13658 | else | |
13659 | cat >conftest.$ac_ext <<_ACEOF | |
13660 | /* confdefs.h. */ | |
13661 | _ACEOF | |
13662 | cat confdefs.h >>conftest.$ac_ext | |
13663 | cat >>conftest.$ac_ext <<_ACEOF | |
13664 | /* end confdefs.h. */ | |
13665 | #include <ctype.h> | |
13666 | #if ((' ' & 0x0FF) == 0x020) | |
13667 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13668 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13669 | #else | |
13670 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13671 | (('a' <= (c) && (c) <= 'i') \ |
13672 | || ('j' <= (c) && (c) <= 'r') \ | |
13673 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13674 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13675 | #endif | |
13676 | ||
13677 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13678 | int | |
13679 | main () | |
13680 | { | |
13681 | int i; | |
13682 | for (i = 0; i < 256; i++) | |
13683 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13684 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13685 | exit(2); |
13686 | exit (0); | |
13687 | } | |
13688 | _ACEOF | |
13689 | rm -f conftest$ac_exeext | |
13690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13691 | (eval $ac_link) 2>&5 | |
13692 | ac_status=$? | |
13693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13696 | (eval $ac_try) 2>&5 | |
13697 | ac_status=$? | |
13698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13699 | (exit $ac_status); }; }; then | |
13700 | : | |
13701 | else | |
13702 | echo "$as_me: program exited with status $ac_status" >&5 | |
13703 | echo "$as_me: failed program was:" >&5 | |
13704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13705 | ||
13706 | ( exit $ac_status ) | |
13707 | ac_cv_header_stdc=no | |
13708 | fi | |
ac1cb8d3 | 13709 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13710 | fi |
13711 | fi | |
13712 | fi | |
13713 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13714 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13715 | if test $ac_cv_header_stdc = yes; then | |
13716 | ||
13717 | cat >>confdefs.h <<\_ACEOF | |
13718 | #define STDC_HEADERS 1 | |
13719 | _ACEOF | |
13720 | ||
13721 | fi | |
13722 | ||
13723 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13724 | ||
13725 | ||
13726 | ||
13727 | ||
13728 | ||
13729 | ||
13730 | ||
13731 | ||
13732 | ||
13733 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13734 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13735 | do |
13736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13741 | else | |
13742 | cat >conftest.$ac_ext <<_ACEOF | |
13743 | /* confdefs.h. */ | |
13744 | _ACEOF | |
13745 | cat confdefs.h >>conftest.$ac_ext | |
13746 | cat >>conftest.$ac_ext <<_ACEOF | |
13747 | /* end confdefs.h. */ | |
13748 | $ac_includes_default | |
13749 | ||
13750 | #include <$ac_header> | |
13751 | _ACEOF | |
13752 | rm -f conftest.$ac_objext | |
13753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13754 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13755 | ac_status=$? |
ac1cb8d3 VS |
13756 | grep -v '^ *+' conftest.er1 >conftest.err |
13757 | rm -f conftest.er1 | |
13758 | cat conftest.err >&5 | |
a848cd7e SC |
13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13760 | (exit $ac_status); } && | |
07158944 | 13761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13763 | (eval $ac_try) 2>&5 | |
13764 | ac_status=$? | |
13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13766 | (exit $ac_status); }; } && | |
13767 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13769 | (eval $ac_try) 2>&5 | |
13770 | ac_status=$? | |
13771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13772 | (exit $ac_status); }; }; then | |
13773 | eval "$as_ac_Header=yes" | |
13774 | else | |
13775 | echo "$as_me: failed program was:" >&5 | |
13776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13777 | ||
13778 | eval "$as_ac_Header=no" | |
13779 | fi | |
ac1cb8d3 | 13780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13781 | fi |
13782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13784 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13785 | cat >>confdefs.h <<_ACEOF | |
13786 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13787 | _ACEOF | |
13788 | ||
13789 | fi | |
13790 | ||
13791 | done | |
13792 | ||
13793 | ||
13794 | ||
13795 | for ac_header in stdlib.h | |
13796 | do | |
13797 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13803 | fi | |
13804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13805 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13806 | else | |
13807 | # Is the header compilable? | |
13808 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13809 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13810 | cat >conftest.$ac_ext <<_ACEOF | |
13811 | /* confdefs.h. */ | |
13812 | _ACEOF | |
13813 | cat confdefs.h >>conftest.$ac_ext | |
13814 | cat >>conftest.$ac_ext <<_ACEOF | |
13815 | /* end confdefs.h. */ | |
13816 | $ac_includes_default | |
13817 | #include <$ac_header> | |
13818 | _ACEOF | |
13819 | rm -f conftest.$ac_objext | |
13820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13821 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13822 | ac_status=$? |
ac1cb8d3 VS |
13823 | grep -v '^ *+' conftest.er1 >conftest.err |
13824 | rm -f conftest.er1 | |
13825 | cat conftest.err >&5 | |
a848cd7e SC |
13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13827 | (exit $ac_status); } && | |
07158944 | 13828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13830 | (eval $ac_try) 2>&5 | |
13831 | ac_status=$? | |
13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13833 | (exit $ac_status); }; } && | |
13834 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13836 | (eval $ac_try) 2>&5 | |
13837 | ac_status=$? | |
13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13839 | (exit $ac_status); }; }; then | |
13840 | ac_header_compiler=yes | |
13841 | else | |
13842 | echo "$as_me: failed program was:" >&5 | |
13843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13844 | ||
13845 | ac_header_compiler=no | |
13846 | fi | |
ac1cb8d3 | 13847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13848 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13849 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13850 | ||
13851 | # Is the header present? | |
13852 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13853 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13854 | cat >conftest.$ac_ext <<_ACEOF | |
13855 | /* confdefs.h. */ | |
13856 | _ACEOF | |
13857 | cat confdefs.h >>conftest.$ac_ext | |
13858 | cat >>conftest.$ac_ext <<_ACEOF | |
13859 | /* end confdefs.h. */ | |
13860 | #include <$ac_header> | |
13861 | _ACEOF | |
13862 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13863 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13864 | ac_status=$? | |
13865 | grep -v '^ *+' conftest.er1 >conftest.err | |
13866 | rm -f conftest.er1 | |
13867 | cat conftest.err >&5 | |
13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13869 | (exit $ac_status); } >/dev/null; then | |
13870 | if test -s conftest.err; then | |
13871 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13872 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13873 | else |
13874 | ac_cpp_err= | |
13875 | fi | |
13876 | else | |
13877 | ac_cpp_err=yes | |
13878 | fi | |
13879 | if test -z "$ac_cpp_err"; then | |
13880 | ac_header_preproc=yes | |
13881 | else | |
13882 | echo "$as_me: failed program was:" >&5 | |
13883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13884 | ||
13885 | ac_header_preproc=no | |
13886 | fi | |
13887 | rm -f conftest.err conftest.$ac_ext | |
13888 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13889 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13890 | ||
13891 | # So? What about this header? | |
ac1cb8d3 VS |
13892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13893 | yes:no: ) | |
a848cd7e SC |
13894 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13895 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13897 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13898 | ac_header_preproc=yes | |
a848cd7e | 13899 | ;; |
ac1cb8d3 | 13900 | no:yes:* ) |
a848cd7e SC |
13901 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13902 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13903 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13904 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13905 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13906 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13907 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13908 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13909 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13910 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13911 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13912 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13913 | ( |
13914 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13915 | ## ----------------------------------------- ## |
13916 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13917 | ## ----------------------------------------- ## | |
a848cd7e SC |
13918 | _ASBOX |
13919 | ) | | |
13920 | sed "s/^/$as_me: WARNING: /" >&2 | |
13921 | ;; | |
13922 | esac | |
13923 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13925 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13927 | else | |
ac1cb8d3 | 13928 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13929 | fi |
13930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13932 | ||
13933 | fi | |
13934 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13935 | cat >>confdefs.h <<_ACEOF | |
13936 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13937 | _ACEOF | |
13938 | ||
13939 | fi | |
13940 | ||
13941 | done | |
13942 | ||
13943 | ||
13944 | for ac_header in malloc.h | |
13945 | do | |
13946 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13948 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13949 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13950 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13952 | fi | |
13953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13954 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13955 | else | |
13956 | # Is the header compilable? | |
13957 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13958 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13959 | cat >conftest.$ac_ext <<_ACEOF | |
13960 | /* confdefs.h. */ | |
13961 | _ACEOF | |
13962 | cat confdefs.h >>conftest.$ac_ext | |
13963 | cat >>conftest.$ac_ext <<_ACEOF | |
13964 | /* end confdefs.h. */ | |
13965 | $ac_includes_default | |
13966 | #include <$ac_header> | |
13967 | _ACEOF | |
13968 | rm -f conftest.$ac_objext | |
13969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13971 | ac_status=$? |
ac1cb8d3 VS |
13972 | grep -v '^ *+' conftest.er1 >conftest.err |
13973 | rm -f conftest.er1 | |
13974 | cat conftest.err >&5 | |
a848cd7e SC |
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13976 | (exit $ac_status); } && | |
07158944 | 13977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13979 | (eval $ac_try) 2>&5 | |
13980 | ac_status=$? | |
13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13982 | (exit $ac_status); }; } && | |
13983 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13985 | (eval $ac_try) 2>&5 | |
13986 | ac_status=$? | |
13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13988 | (exit $ac_status); }; }; then | |
13989 | ac_header_compiler=yes | |
13990 | else | |
13991 | echo "$as_me: failed program was:" >&5 | |
13992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13993 | ||
13994 | ac_header_compiler=no | |
13995 | fi | |
ac1cb8d3 | 13996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13998 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13999 | ||
14000 | # Is the header present? | |
14001 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14002 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14003 | cat >conftest.$ac_ext <<_ACEOF | |
14004 | /* confdefs.h. */ | |
14005 | _ACEOF | |
14006 | cat confdefs.h >>conftest.$ac_ext | |
14007 | cat >>conftest.$ac_ext <<_ACEOF | |
14008 | /* end confdefs.h. */ | |
14009 | #include <$ac_header> | |
14010 | _ACEOF | |
14011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14013 | ac_status=$? | |
14014 | grep -v '^ *+' conftest.er1 >conftest.err | |
14015 | rm -f conftest.er1 | |
14016 | cat conftest.err >&5 | |
14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14018 | (exit $ac_status); } >/dev/null; then | |
14019 | if test -s conftest.err; then | |
14020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14022 | else |
14023 | ac_cpp_err= | |
14024 | fi | |
14025 | else | |
14026 | ac_cpp_err=yes | |
14027 | fi | |
14028 | if test -z "$ac_cpp_err"; then | |
14029 | ac_header_preproc=yes | |
14030 | else | |
14031 | echo "$as_me: failed program was:" >&5 | |
14032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14033 | ||
14034 | ac_header_preproc=no | |
14035 | fi | |
14036 | rm -f conftest.err conftest.$ac_ext | |
14037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14038 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14039 | ||
14040 | # So? What about this header? | |
ac1cb8d3 VS |
14041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14042 | yes:no: ) | |
a848cd7e SC |
14043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14046 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14047 | ac_header_preproc=yes | |
a848cd7e | 14048 | ;; |
ac1cb8d3 | 14049 | no:yes:* ) |
a848cd7e SC |
14050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14054 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14055 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14056 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14057 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14060 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14061 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14062 | ( |
14063 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14064 | ## ----------------------------------------- ## |
14065 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14066 | ## ----------------------------------------- ## | |
a848cd7e SC |
14067 | _ASBOX |
14068 | ) | | |
14069 | sed "s/^/$as_me: WARNING: /" >&2 | |
14070 | ;; | |
14071 | esac | |
14072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14076 | else | |
ac1cb8d3 | 14077 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14078 | fi |
14079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14081 | ||
14082 | fi | |
14083 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14084 | cat >>confdefs.h <<_ACEOF | |
14085 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14086 | _ACEOF | |
14087 | ||
14088 | fi | |
14089 | ||
14090 | done | |
14091 | ||
14092 | ||
14093 | for ac_header in unistd.h | |
14094 | do | |
14095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14097 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14101 | fi | |
14102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14104 | else | |
14105 | # Is the header compilable? | |
14106 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14108 | cat >conftest.$ac_ext <<_ACEOF | |
14109 | /* confdefs.h. */ | |
14110 | _ACEOF | |
14111 | cat confdefs.h >>conftest.$ac_ext | |
14112 | cat >>conftest.$ac_ext <<_ACEOF | |
14113 | /* end confdefs.h. */ | |
14114 | $ac_includes_default | |
14115 | #include <$ac_header> | |
14116 | _ACEOF | |
14117 | rm -f conftest.$ac_objext | |
14118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14120 | ac_status=$? |
ac1cb8d3 VS |
14121 | grep -v '^ *+' conftest.er1 >conftest.err |
14122 | rm -f conftest.er1 | |
14123 | cat conftest.err >&5 | |
a848cd7e SC |
14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14125 | (exit $ac_status); } && | |
07158944 | 14126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14128 | (eval $ac_try) 2>&5 | |
14129 | ac_status=$? | |
14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14131 | (exit $ac_status); }; } && | |
14132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14134 | (eval $ac_try) 2>&5 | |
14135 | ac_status=$? | |
14136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14137 | (exit $ac_status); }; }; then | |
14138 | ac_header_compiler=yes | |
14139 | else | |
14140 | echo "$as_me: failed program was:" >&5 | |
14141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14142 | ||
14143 | ac_header_compiler=no | |
14144 | fi | |
ac1cb8d3 | 14145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14146 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14147 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14148 | ||
14149 | # Is the header present? | |
14150 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14151 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14152 | cat >conftest.$ac_ext <<_ACEOF | |
14153 | /* confdefs.h. */ | |
14154 | _ACEOF | |
14155 | cat confdefs.h >>conftest.$ac_ext | |
14156 | cat >>conftest.$ac_ext <<_ACEOF | |
14157 | /* end confdefs.h. */ | |
14158 | #include <$ac_header> | |
14159 | _ACEOF | |
14160 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14161 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14162 | ac_status=$? | |
14163 | grep -v '^ *+' conftest.er1 >conftest.err | |
14164 | rm -f conftest.er1 | |
14165 | cat conftest.err >&5 | |
14166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14167 | (exit $ac_status); } >/dev/null; then | |
14168 | if test -s conftest.err; then | |
14169 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14170 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14171 | else |
14172 | ac_cpp_err= | |
14173 | fi | |
14174 | else | |
14175 | ac_cpp_err=yes | |
14176 | fi | |
14177 | if test -z "$ac_cpp_err"; then | |
14178 | ac_header_preproc=yes | |
14179 | else | |
14180 | echo "$as_me: failed program was:" >&5 | |
14181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14182 | ||
14183 | ac_header_preproc=no | |
14184 | fi | |
14185 | rm -f conftest.err conftest.$ac_ext | |
14186 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14187 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14188 | ||
14189 | # So? What about this header? | |
ac1cb8d3 VS |
14190 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14191 | yes:no: ) | |
a848cd7e SC |
14192 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14193 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14194 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14195 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14196 | ac_header_preproc=yes | |
a848cd7e | 14197 | ;; |
ac1cb8d3 | 14198 | no:yes:* ) |
a848cd7e SC |
14199 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14200 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14201 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14202 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14203 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14204 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14205 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14206 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14208 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14209 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14210 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14211 | ( |
14212 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14213 | ## ----------------------------------------- ## |
14214 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14215 | ## ----------------------------------------- ## | |
a848cd7e SC |
14216 | _ASBOX |
14217 | ) | | |
14218 | sed "s/^/$as_me: WARNING: /" >&2 | |
14219 | ;; | |
14220 | esac | |
14221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14225 | else | |
ac1cb8d3 | 14226 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14227 | fi |
14228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14229 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14230 | ||
14231 | fi | |
14232 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14233 | cat >>confdefs.h <<_ACEOF | |
14234 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14235 | _ACEOF | |
14236 | ||
14237 | fi | |
14238 | ||
14239 | done | |
14240 | ||
14241 | ||
14242 | for ac_header in wchar.h | |
14243 | do | |
14244 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14246 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14248 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14250 | fi | |
14251 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14252 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14253 | else | |
14254 | # Is the header compilable? | |
14255 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14256 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14257 | cat >conftest.$ac_ext <<_ACEOF | |
14258 | /* confdefs.h. */ | |
14259 | _ACEOF | |
14260 | cat confdefs.h >>conftest.$ac_ext | |
14261 | cat >>conftest.$ac_ext <<_ACEOF | |
14262 | /* end confdefs.h. */ | |
14263 | $ac_includes_default | |
14264 | #include <$ac_header> | |
14265 | _ACEOF | |
14266 | rm -f conftest.$ac_objext | |
14267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14269 | ac_status=$? |
ac1cb8d3 VS |
14270 | grep -v '^ *+' conftest.er1 >conftest.err |
14271 | rm -f conftest.er1 | |
14272 | cat conftest.err >&5 | |
a848cd7e SC |
14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14274 | (exit $ac_status); } && | |
07158944 | 14275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14277 | (eval $ac_try) 2>&5 | |
14278 | ac_status=$? | |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14280 | (exit $ac_status); }; } && | |
14281 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14283 | (eval $ac_try) 2>&5 | |
14284 | ac_status=$? | |
14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14286 | (exit $ac_status); }; }; then | |
14287 | ac_header_compiler=yes | |
14288 | else | |
14289 | echo "$as_me: failed program was:" >&5 | |
14290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14291 | ||
14292 | ac_header_compiler=no | |
14293 | fi | |
ac1cb8d3 | 14294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14297 | ||
14298 | # Is the header present? | |
14299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14301 | cat >conftest.$ac_ext <<_ACEOF | |
14302 | /* confdefs.h. */ | |
14303 | _ACEOF | |
14304 | cat confdefs.h >>conftest.$ac_ext | |
14305 | cat >>conftest.$ac_ext <<_ACEOF | |
14306 | /* end confdefs.h. */ | |
14307 | #include <$ac_header> | |
14308 | _ACEOF | |
14309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14311 | ac_status=$? | |
14312 | grep -v '^ *+' conftest.er1 >conftest.err | |
14313 | rm -f conftest.er1 | |
14314 | cat conftest.err >&5 | |
14315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14316 | (exit $ac_status); } >/dev/null; then | |
14317 | if test -s conftest.err; then | |
14318 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14320 | else |
14321 | ac_cpp_err= | |
14322 | fi | |
14323 | else | |
14324 | ac_cpp_err=yes | |
14325 | fi | |
14326 | if test -z "$ac_cpp_err"; then | |
14327 | ac_header_preproc=yes | |
14328 | else | |
14329 | echo "$as_me: failed program was:" >&5 | |
14330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14331 | ||
14332 | ac_header_preproc=no | |
14333 | fi | |
14334 | rm -f conftest.err conftest.$ac_ext | |
14335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14337 | ||
14338 | # So? What about this header? | |
ac1cb8d3 VS |
14339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14340 | yes:no: ) | |
a848cd7e SC |
14341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14345 | ac_header_preproc=yes | |
a848cd7e | 14346 | ;; |
ac1cb8d3 | 14347 | no:yes:* ) |
a848cd7e SC |
14348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14360 | ( |
14361 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14362 | ## ----------------------------------------- ## |
14363 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14364 | ## ----------------------------------------- ## | |
a848cd7e SC |
14365 | _ASBOX |
14366 | ) | | |
14367 | sed "s/^/$as_me: WARNING: /" >&2 | |
14368 | ;; | |
14369 | esac | |
14370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14374 | else | |
ac1cb8d3 | 14375 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14376 | fi |
14377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14379 | ||
14380 | fi | |
14381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14382 | cat >>confdefs.h <<_ACEOF | |
14383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14384 | _ACEOF | |
14385 | ||
14386 | fi | |
14387 | ||
14388 | done | |
14389 | ||
14390 | ||
14391 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
14392 | ||
14393 | for ac_header in wcstr.h | |
14394 | do | |
14395 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14397 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14398 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14401 | fi | |
14402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14403 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14404 | else | |
14405 | # Is the header compilable? | |
14406 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14408 | cat >conftest.$ac_ext <<_ACEOF | |
14409 | /* confdefs.h. */ | |
14410 | _ACEOF | |
14411 | cat confdefs.h >>conftest.$ac_ext | |
14412 | cat >>conftest.$ac_ext <<_ACEOF | |
14413 | /* end confdefs.h. */ | |
14414 | $ac_includes_default | |
14415 | #include <$ac_header> | |
14416 | _ACEOF | |
14417 | rm -f conftest.$ac_objext | |
14418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14419 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14420 | ac_status=$? |
ac1cb8d3 VS |
14421 | grep -v '^ *+' conftest.er1 >conftest.err |
14422 | rm -f conftest.er1 | |
14423 | cat conftest.err >&5 | |
a848cd7e SC |
14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14425 | (exit $ac_status); } && | |
07158944 | 14426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14428 | (eval $ac_try) 2>&5 | |
14429 | ac_status=$? | |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14431 | (exit $ac_status); }; } && | |
14432 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14434 | (eval $ac_try) 2>&5 | |
14435 | ac_status=$? | |
14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14437 | (exit $ac_status); }; }; then | |
14438 | ac_header_compiler=yes | |
14439 | else | |
14440 | echo "$as_me: failed program was:" >&5 | |
14441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14442 | ||
14443 | ac_header_compiler=no | |
14444 | fi | |
ac1cb8d3 | 14445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14446 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14447 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14448 | ||
14449 | # Is the header present? | |
14450 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14451 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14452 | cat >conftest.$ac_ext <<_ACEOF | |
14453 | /* confdefs.h. */ | |
14454 | _ACEOF | |
14455 | cat confdefs.h >>conftest.$ac_ext | |
14456 | cat >>conftest.$ac_ext <<_ACEOF | |
14457 | /* end confdefs.h. */ | |
14458 | #include <$ac_header> | |
14459 | _ACEOF | |
14460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14462 | ac_status=$? | |
14463 | grep -v '^ *+' conftest.er1 >conftest.err | |
14464 | rm -f conftest.er1 | |
14465 | cat conftest.err >&5 | |
14466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14467 | (exit $ac_status); } >/dev/null; then | |
14468 | if test -s conftest.err; then | |
14469 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14471 | else |
14472 | ac_cpp_err= | |
14473 | fi | |
14474 | else | |
14475 | ac_cpp_err=yes | |
14476 | fi | |
14477 | if test -z "$ac_cpp_err"; then | |
14478 | ac_header_preproc=yes | |
14479 | else | |
14480 | echo "$as_me: failed program was:" >&5 | |
14481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14482 | ||
14483 | ac_header_preproc=no | |
14484 | fi | |
14485 | rm -f conftest.err conftest.$ac_ext | |
14486 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14487 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14488 | ||
14489 | # So? What about this header? | |
ac1cb8d3 VS |
14490 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14491 | yes:no: ) | |
a848cd7e SC |
14492 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14493 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14495 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14496 | ac_header_preproc=yes | |
a848cd7e | 14497 | ;; |
ac1cb8d3 | 14498 | no:yes:* ) |
a848cd7e SC |
14499 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14500 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14501 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14502 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14503 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14504 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14505 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14506 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14508 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14509 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14510 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14511 | ( |
14512 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14513 | ## ----------------------------------------- ## |
14514 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14515 | ## ----------------------------------------- ## | |
a848cd7e SC |
14516 | _ASBOX |
14517 | ) | | |
14518 | sed "s/^/$as_me: WARNING: /" >&2 | |
14519 | ;; | |
14520 | esac | |
14521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14525 | else | |
ac1cb8d3 | 14526 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14527 | fi |
14528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14530 | ||
14531 | fi | |
14532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14533 | cat >>confdefs.h <<_ACEOF | |
14534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14535 | _ACEOF | |
14536 | ||
14537 | fi | |
14538 | ||
14539 | done | |
14540 | ||
14541 | fi | |
14542 | ||
14543 | ||
14544 | for ac_header in fnmatch.h | |
14545 | do | |
14546 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14548 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14549 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14552 | fi | |
14553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14554 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14555 | else | |
14556 | # Is the header compilable? | |
14557 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14558 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14559 | cat >conftest.$ac_ext <<_ACEOF | |
14560 | /* confdefs.h. */ | |
14561 | _ACEOF | |
14562 | cat confdefs.h >>conftest.$ac_ext | |
14563 | cat >>conftest.$ac_ext <<_ACEOF | |
14564 | /* end confdefs.h. */ | |
14565 | $ac_includes_default | |
14566 | #include <$ac_header> | |
14567 | _ACEOF | |
14568 | rm -f conftest.$ac_objext | |
14569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14570 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14571 | ac_status=$? |
ac1cb8d3 VS |
14572 | grep -v '^ *+' conftest.er1 >conftest.err |
14573 | rm -f conftest.er1 | |
14574 | cat conftest.err >&5 | |
a848cd7e SC |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14576 | (exit $ac_status); } && | |
07158944 | 14577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14579 | (eval $ac_try) 2>&5 | |
14580 | ac_status=$? | |
14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14582 | (exit $ac_status); }; } && | |
14583 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14585 | (eval $ac_try) 2>&5 | |
14586 | ac_status=$? | |
14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14588 | (exit $ac_status); }; }; then | |
14589 | ac_header_compiler=yes | |
14590 | else | |
14591 | echo "$as_me: failed program was:" >&5 | |
14592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14593 | ||
14594 | ac_header_compiler=no | |
14595 | fi | |
ac1cb8d3 | 14596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14597 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14598 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14599 | ||
14600 | # Is the header present? | |
14601 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14602 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14603 | cat >conftest.$ac_ext <<_ACEOF | |
14604 | /* confdefs.h. */ | |
14605 | _ACEOF | |
14606 | cat confdefs.h >>conftest.$ac_ext | |
14607 | cat >>conftest.$ac_ext <<_ACEOF | |
14608 | /* end confdefs.h. */ | |
14609 | #include <$ac_header> | |
14610 | _ACEOF | |
14611 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14612 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14613 | ac_status=$? | |
14614 | grep -v '^ *+' conftest.er1 >conftest.err | |
14615 | rm -f conftest.er1 | |
14616 | cat conftest.err >&5 | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14618 | (exit $ac_status); } >/dev/null; then | |
14619 | if test -s conftest.err; then | |
14620 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14621 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14622 | else |
14623 | ac_cpp_err= | |
14624 | fi | |
14625 | else | |
14626 | ac_cpp_err=yes | |
14627 | fi | |
14628 | if test -z "$ac_cpp_err"; then | |
14629 | ac_header_preproc=yes | |
14630 | else | |
14631 | echo "$as_me: failed program was:" >&5 | |
14632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14633 | ||
14634 | ac_header_preproc=no | |
14635 | fi | |
14636 | rm -f conftest.err conftest.$ac_ext | |
14637 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14638 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14639 | ||
14640 | # So? What about this header? | |
ac1cb8d3 VS |
14641 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14642 | yes:no: ) | |
a848cd7e SC |
14643 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14644 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14645 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14646 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14647 | ac_header_preproc=yes | |
a848cd7e | 14648 | ;; |
ac1cb8d3 | 14649 | no:yes:* ) |
a848cd7e SC |
14650 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14651 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14652 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14653 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14654 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14655 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14656 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14657 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14658 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14659 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14660 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14661 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14662 | ( |
14663 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14664 | ## ----------------------------------------- ## |
14665 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14666 | ## ----------------------------------------- ## | |
a848cd7e SC |
14667 | _ASBOX |
14668 | ) | | |
14669 | sed "s/^/$as_me: WARNING: /" >&2 | |
14670 | ;; | |
14671 | esac | |
14672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14676 | else | |
ac1cb8d3 | 14677 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14678 | fi |
14679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14681 | ||
14682 | fi | |
14683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14684 | cat >>confdefs.h <<_ACEOF | |
14685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14686 | _ACEOF | |
14687 | ||
14688 | fi | |
14689 | ||
14690 | done | |
14691 | ||
14692 | ||
14693 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14694 | ||
14695 | for ac_func in fnmatch | |
14696 | do | |
14697 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14698 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14699 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14700 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14702 | else | |
14703 | cat >conftest.$ac_ext <<_ACEOF | |
14704 | /* confdefs.h. */ | |
14705 | _ACEOF | |
14706 | cat confdefs.h >>conftest.$ac_ext | |
14707 | cat >>conftest.$ac_ext <<_ACEOF | |
14708 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14709 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14711 | #define $ac_func innocuous_$ac_func | |
14712 | ||
a848cd7e SC |
14713 | /* System header to define __stub macros and hopefully few prototypes, |
14714 | which can conflict with char $ac_func (); below. | |
14715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14716 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14717 | |
a848cd7e SC |
14718 | #ifdef __STDC__ |
14719 | # include <limits.h> | |
14720 | #else | |
14721 | # include <assert.h> | |
14722 | #endif | |
ac1cb8d3 VS |
14723 | |
14724 | #undef $ac_func | |
14725 | ||
a848cd7e SC |
14726 | /* Override any gcc2 internal prototype to avoid an error. */ |
14727 | #ifdef __cplusplus | |
14728 | extern "C" | |
14729 | { | |
14730 | #endif | |
14731 | /* We use char because int might match the return type of a gcc2 | |
14732 | builtin and then its argument prototype would still apply. */ | |
14733 | char $ac_func (); | |
14734 | /* The GNU C library defines this for functions which it implements | |
14735 | to always fail with ENOSYS. Some functions are actually named | |
14736 | something starting with __ and the normal name is an alias. */ | |
14737 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14738 | choke me | |
14739 | #else | |
14740 | char (*f) () = $ac_func; | |
14741 | #endif | |
14742 | #ifdef __cplusplus | |
14743 | } | |
14744 | #endif | |
14745 | ||
14746 | int | |
14747 | main () | |
14748 | { | |
14749 | return f != $ac_func; | |
14750 | ; | |
14751 | return 0; | |
14752 | } | |
14753 | _ACEOF | |
14754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14756 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14757 | ac_status=$? |
ac1cb8d3 VS |
14758 | grep -v '^ *+' conftest.er1 >conftest.err |
14759 | rm -f conftest.er1 | |
14760 | cat conftest.err >&5 | |
a848cd7e SC |
14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14762 | (exit $ac_status); } && | |
07158944 | 14763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14765 | (eval $ac_try) 2>&5 | |
14766 | ac_status=$? | |
14767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14768 | (exit $ac_status); }; } && | |
14769 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14771 | (eval $ac_try) 2>&5 | |
14772 | ac_status=$? | |
14773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14774 | (exit $ac_status); }; }; then | |
14775 | eval "$as_ac_var=yes" | |
14776 | else | |
14777 | echo "$as_me: failed program was:" >&5 | |
14778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14779 | ||
14780 | eval "$as_ac_var=no" | |
14781 | fi | |
ac1cb8d3 VS |
14782 | rm -f conftest.err conftest.$ac_objext \ |
14783 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14784 | fi |
14785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14786 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14787 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14788 | cat >>confdefs.h <<_ACEOF | |
14789 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14790 | _ACEOF | |
14791 | ||
14792 | fi | |
14793 | done | |
14794 | ||
14795 | fi | |
14796 | ||
14797 | ||
14798 | for ac_header in langinfo.h | |
14799 | do | |
14800 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14806 | fi | |
14807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14808 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14809 | else | |
14810 | # Is the header compilable? | |
14811 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14812 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14813 | cat >conftest.$ac_ext <<_ACEOF | |
14814 | /* confdefs.h. */ | |
14815 | _ACEOF | |
14816 | cat confdefs.h >>conftest.$ac_ext | |
14817 | cat >>conftest.$ac_ext <<_ACEOF | |
14818 | /* end confdefs.h. */ | |
14819 | $ac_includes_default | |
14820 | #include <$ac_header> | |
14821 | _ACEOF | |
14822 | rm -f conftest.$ac_objext | |
14823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14824 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14825 | ac_status=$? |
ac1cb8d3 VS |
14826 | grep -v '^ *+' conftest.er1 >conftest.err |
14827 | rm -f conftest.er1 | |
14828 | cat conftest.err >&5 | |
a848cd7e SC |
14829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14830 | (exit $ac_status); } && | |
07158944 | 14831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14833 | (eval $ac_try) 2>&5 | |
14834 | ac_status=$? | |
14835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14836 | (exit $ac_status); }; } && | |
14837 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14839 | (eval $ac_try) 2>&5 | |
14840 | ac_status=$? | |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14842 | (exit $ac_status); }; }; then | |
14843 | ac_header_compiler=yes | |
14844 | else | |
14845 | echo "$as_me: failed program was:" >&5 | |
14846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14847 | ||
14848 | ac_header_compiler=no | |
14849 | fi | |
ac1cb8d3 | 14850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14851 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14852 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14853 | ||
14854 | # Is the header present? | |
14855 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14857 | cat >conftest.$ac_ext <<_ACEOF | |
14858 | /* confdefs.h. */ | |
14859 | _ACEOF | |
14860 | cat confdefs.h >>conftest.$ac_ext | |
14861 | cat >>conftest.$ac_ext <<_ACEOF | |
14862 | /* end confdefs.h. */ | |
14863 | #include <$ac_header> | |
14864 | _ACEOF | |
14865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14867 | ac_status=$? | |
14868 | grep -v '^ *+' conftest.er1 >conftest.err | |
14869 | rm -f conftest.er1 | |
14870 | cat conftest.err >&5 | |
14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14872 | (exit $ac_status); } >/dev/null; then | |
14873 | if test -s conftest.err; then | |
14874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14875 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14876 | else |
14877 | ac_cpp_err= | |
14878 | fi | |
14879 | else | |
14880 | ac_cpp_err=yes | |
14881 | fi | |
14882 | if test -z "$ac_cpp_err"; then | |
14883 | ac_header_preproc=yes | |
14884 | else | |
14885 | echo "$as_me: failed program was:" >&5 | |
14886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14887 | ||
14888 | ac_header_preproc=no | |
14889 | fi | |
14890 | rm -f conftest.err conftest.$ac_ext | |
14891 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14892 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14893 | ||
14894 | # So? What about this header? | |
ac1cb8d3 VS |
14895 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14896 | yes:no: ) | |
a848cd7e SC |
14897 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14898 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14900 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14901 | ac_header_preproc=yes | |
a848cd7e | 14902 | ;; |
ac1cb8d3 | 14903 | no:yes:* ) |
a848cd7e SC |
14904 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14905 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14906 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14907 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14908 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14909 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14910 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14911 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14913 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14914 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14915 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14916 | ( |
14917 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14918 | ## ----------------------------------------- ## |
14919 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14920 | ## ----------------------------------------- ## | |
a848cd7e SC |
14921 | _ASBOX |
14922 | ) | | |
14923 | sed "s/^/$as_me: WARNING: /" >&2 | |
14924 | ;; | |
14925 | esac | |
14926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14930 | else | |
ac1cb8d3 | 14931 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14932 | fi |
14933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14935 | ||
14936 | fi | |
14937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14938 | cat >>confdefs.h <<_ACEOF | |
14939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14940 | _ACEOF | |
14941 | ||
14942 | fi | |
14943 | ||
14944 | done | |
14945 | ||
14946 | ||
14947 | case "${host}" in | |
14948 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
14949 | if test $ac_cv_header_langinfo_h = "yes" \ |
14950 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
14951 | -o "$wx_cv_gccversion" = "EMX3" \ | |
14952 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
14953 | LIBS="$LIBS -lintl" |
14954 | fi | |
14955 | ;; | |
14956 | esac | |
14957 | ||
14958 | if test "$wxUSE_GUI" = "yes"; then | |
14959 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14960 | ||
14961 | for ac_header in X11/Xlib.h | |
14962 | do | |
14963 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14965 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14966 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14967 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14969 | fi | |
14970 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14971 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14972 | else | |
14973 | # Is the header compilable? | |
14974 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14975 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14976 | cat >conftest.$ac_ext <<_ACEOF | |
14977 | /* confdefs.h. */ | |
14978 | _ACEOF | |
14979 | cat confdefs.h >>conftest.$ac_ext | |
14980 | cat >>conftest.$ac_ext <<_ACEOF | |
14981 | /* end confdefs.h. */ | |
14982 | $ac_includes_default | |
14983 | #include <$ac_header> | |
14984 | _ACEOF | |
14985 | rm -f conftest.$ac_objext | |
14986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14987 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14988 | ac_status=$? |
ac1cb8d3 VS |
14989 | grep -v '^ *+' conftest.er1 >conftest.err |
14990 | rm -f conftest.er1 | |
14991 | cat conftest.err >&5 | |
a848cd7e SC |
14992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14993 | (exit $ac_status); } && | |
07158944 | 14994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14996 | (eval $ac_try) 2>&5 | |
14997 | ac_status=$? | |
14998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14999 | (exit $ac_status); }; } && | |
15000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15002 | (eval $ac_try) 2>&5 | |
15003 | ac_status=$? | |
15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15005 | (exit $ac_status); }; }; then | |
15006 | ac_header_compiler=yes | |
15007 | else | |
15008 | echo "$as_me: failed program was:" >&5 | |
15009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15010 | ||
15011 | ac_header_compiler=no | |
15012 | fi | |
ac1cb8d3 | 15013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15014 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15015 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15016 | ||
15017 | # Is the header present? | |
15018 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15019 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15020 | cat >conftest.$ac_ext <<_ACEOF | |
15021 | /* confdefs.h. */ | |
15022 | _ACEOF | |
15023 | cat confdefs.h >>conftest.$ac_ext | |
15024 | cat >>conftest.$ac_ext <<_ACEOF | |
15025 | /* end confdefs.h. */ | |
15026 | #include <$ac_header> | |
15027 | _ACEOF | |
15028 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15029 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15030 | ac_status=$? | |
15031 | grep -v '^ *+' conftest.er1 >conftest.err | |
15032 | rm -f conftest.er1 | |
15033 | cat conftest.err >&5 | |
15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15035 | (exit $ac_status); } >/dev/null; then | |
15036 | if test -s conftest.err; then | |
15037 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15038 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15039 | else |
15040 | ac_cpp_err= | |
15041 | fi | |
15042 | else | |
15043 | ac_cpp_err=yes | |
15044 | fi | |
15045 | if test -z "$ac_cpp_err"; then | |
15046 | ac_header_preproc=yes | |
15047 | else | |
15048 | echo "$as_me: failed program was:" >&5 | |
15049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15050 | ||
15051 | ac_header_preproc=no | |
15052 | fi | |
15053 | rm -f conftest.err conftest.$ac_ext | |
15054 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15055 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15056 | ||
15057 | # So? What about this header? | |
ac1cb8d3 VS |
15058 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15059 | yes:no: ) | |
a848cd7e SC |
15060 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15061 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15062 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15063 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15064 | ac_header_preproc=yes | |
a848cd7e | 15065 | ;; |
ac1cb8d3 | 15066 | no:yes:* ) |
a848cd7e SC |
15067 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15068 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15069 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15070 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15071 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15072 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15073 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15074 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15076 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15077 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15078 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15079 | ( |
15080 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15081 | ## ----------------------------------------- ## |
15082 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15083 | ## ----------------------------------------- ## | |
a848cd7e SC |
15084 | _ASBOX |
15085 | ) | | |
15086 | sed "s/^/$as_me: WARNING: /" >&2 | |
15087 | ;; | |
15088 | esac | |
15089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15093 | else | |
ac1cb8d3 | 15094 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15095 | fi |
15096 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15097 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15098 | ||
15099 | fi | |
15100 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15101 | cat >>confdefs.h <<_ACEOF | |
15102 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15103 | _ACEOF | |
15104 | ||
15105 | fi | |
15106 | ||
15107 | done | |
15108 | ||
15109 | ||
15110 | for ac_header in X11/XKBlib.h | |
15111 | do | |
15112 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15113 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15114 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15115 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15117 | else | |
15118 | cat >conftest.$ac_ext <<_ACEOF | |
15119 | /* confdefs.h. */ | |
15120 | _ACEOF | |
15121 | cat confdefs.h >>conftest.$ac_ext | |
15122 | cat >>conftest.$ac_ext <<_ACEOF | |
15123 | /* end confdefs.h. */ | |
15124 | ||
15125 | #if HAVE_X11_XLIB_H | |
15126 | #include <X11/Xlib.h> | |
15127 | #endif | |
15128 | ||
15129 | ||
15130 | #include <$ac_header> | |
15131 | _ACEOF | |
15132 | rm -f conftest.$ac_objext | |
15133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15134 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15135 | ac_status=$? |
ac1cb8d3 VS |
15136 | grep -v '^ *+' conftest.er1 >conftest.err |
15137 | rm -f conftest.er1 | |
15138 | cat conftest.err >&5 | |
a848cd7e SC |
15139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15140 | (exit $ac_status); } && | |
07158944 | 15141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15143 | (eval $ac_try) 2>&5 | |
15144 | ac_status=$? | |
15145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15146 | (exit $ac_status); }; } && | |
15147 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15149 | (eval $ac_try) 2>&5 | |
15150 | ac_status=$? | |
15151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15152 | (exit $ac_status); }; }; then | |
15153 | eval "$as_ac_Header=yes" | |
15154 | else | |
15155 | echo "$as_me: failed program was:" >&5 | |
15156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15157 | ||
15158 | eval "$as_ac_Header=no" | |
15159 | fi | |
ac1cb8d3 | 15160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15161 | fi |
15162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15163 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15164 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15165 | cat >>confdefs.h <<_ACEOF | |
15166 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15167 | _ACEOF | |
15168 | ||
15169 | fi | |
15170 | ||
15171 | done | |
15172 | ||
15173 | fi | |
15174 | fi | |
15175 | ||
15176 | ||
15177 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15178 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15179 | if test "${ac_cv_c_const+set}" = set; then | |
15180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15181 | else | |
15182 | cat >conftest.$ac_ext <<_ACEOF | |
15183 | /* confdefs.h. */ | |
15184 | _ACEOF | |
15185 | cat confdefs.h >>conftest.$ac_ext | |
15186 | cat >>conftest.$ac_ext <<_ACEOF | |
15187 | /* end confdefs.h. */ | |
15188 | ||
15189 | int | |
15190 | main () | |
15191 | { | |
15192 | /* FIXME: Include the comments suggested by Paul. */ | |
15193 | #ifndef __cplusplus | |
15194 | /* Ultrix mips cc rejects this. */ | |
15195 | typedef int charset[2]; | |
15196 | const charset x; | |
15197 | /* SunOS 4.1.1 cc rejects this. */ | |
15198 | char const *const *ccp; | |
15199 | char **p; | |
15200 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15201 | struct point {int x, y;}; | |
15202 | static struct point const zero = {0,0}; | |
15203 | /* AIX XL C 1.02.0.0 rejects this. | |
15204 | It does not let you subtract one const X* pointer from another in | |
15205 | an arm of an if-expression whose if-part is not a constant | |
15206 | expression */ | |
15207 | const char *g = "string"; | |
15208 | ccp = &g + (g ? g-g : 0); | |
15209 | /* HPUX 7.0 cc rejects these. */ | |
15210 | ++ccp; | |
15211 | p = (char**) ccp; | |
15212 | ccp = (char const *const *) p; | |
15213 | { /* SCO 3.2v4 cc rejects this. */ | |
15214 | char *t; | |
15215 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15216 | ||
15217 | *t++ = 0; | |
15218 | } | |
15219 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15220 | int x[] = {25, 17}; | |
15221 | const int *foo = &x[0]; | |
15222 | ++foo; | |
15223 | } | |
15224 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15225 | typedef const int *iptr; | |
15226 | iptr p = 0; | |
15227 | ++p; | |
15228 | } | |
15229 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15230 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15231 | struct s { int j; const int *ap[3]; }; | |
15232 | struct s *b; b->j = 5; | |
15233 | } | |
15234 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15235 | const int foo = 10; | |
15236 | } | |
15237 | #endif | |
15238 | ||
15239 | ; | |
15240 | return 0; | |
15241 | } | |
15242 | _ACEOF | |
15243 | rm -f conftest.$ac_objext | |
15244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15245 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15246 | ac_status=$? |
ac1cb8d3 VS |
15247 | grep -v '^ *+' conftest.er1 >conftest.err |
15248 | rm -f conftest.er1 | |
15249 | cat conftest.err >&5 | |
a848cd7e SC |
15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15251 | (exit $ac_status); } && | |
07158944 | 15252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15254 | (eval $ac_try) 2>&5 | |
15255 | ac_status=$? | |
15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15257 | (exit $ac_status); }; } && | |
15258 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15260 | (eval $ac_try) 2>&5 | |
15261 | ac_status=$? | |
15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15263 | (exit $ac_status); }; }; then | |
15264 | ac_cv_c_const=yes | |
15265 | else | |
15266 | echo "$as_me: failed program was:" >&5 | |
15267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15268 | ||
15269 | ac_cv_c_const=no | |
15270 | fi | |
ac1cb8d3 | 15271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15272 | fi |
15273 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15274 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15275 | if test $ac_cv_c_const = no; then | |
15276 | ||
15277 | cat >>confdefs.h <<\_ACEOF | |
15278 | #define const | |
15279 | _ACEOF | |
15280 | ||
15281 | fi | |
15282 | ||
15283 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15284 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15285 | if test "${ac_cv_c_inline+set}" = set; then | |
15286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15287 | else | |
15288 | ac_cv_c_inline=no | |
15289 | for ac_kw in inline __inline__ __inline; do | |
15290 | cat >conftest.$ac_ext <<_ACEOF | |
15291 | /* confdefs.h. */ | |
15292 | _ACEOF | |
15293 | cat confdefs.h >>conftest.$ac_ext | |
15294 | cat >>conftest.$ac_ext <<_ACEOF | |
15295 | /* end confdefs.h. */ | |
15296 | #ifndef __cplusplus | |
15297 | typedef int foo_t; | |
15298 | static $ac_kw foo_t static_foo () {return 0; } | |
15299 | $ac_kw foo_t foo () {return 0; } | |
15300 | #endif | |
15301 | ||
15302 | _ACEOF | |
15303 | rm -f conftest.$ac_objext | |
15304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15305 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15306 | ac_status=$? |
ac1cb8d3 VS |
15307 | grep -v '^ *+' conftest.er1 >conftest.err |
15308 | rm -f conftest.er1 | |
15309 | cat conftest.err >&5 | |
a848cd7e SC |
15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15311 | (exit $ac_status); } && | |
07158944 | 15312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15314 | (eval $ac_try) 2>&5 | |
15315 | ac_status=$? | |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15317 | (exit $ac_status); }; } && | |
15318 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15320 | (eval $ac_try) 2>&5 | |
15321 | ac_status=$? | |
15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15323 | (exit $ac_status); }; }; then | |
15324 | ac_cv_c_inline=$ac_kw; break | |
15325 | else | |
15326 | echo "$as_me: failed program was:" >&5 | |
15327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15328 | ||
15329 | fi | |
ac1cb8d3 | 15330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15331 | done |
15332 | ||
15333 | fi | |
15334 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15335 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15336 | |
15337 | ||
a848cd7e SC |
15338 | case $ac_cv_c_inline in |
15339 | inline | yes) ;; | |
ac1cb8d3 VS |
15340 | *) |
15341 | case $ac_cv_c_inline in | |
15342 | no) ac_val=;; | |
15343 | *) ac_val=$ac_cv_c_inline;; | |
15344 | esac | |
15345 | cat >>confdefs.h <<_ACEOF | |
15346 | #ifndef __cplusplus | |
15347 | #define inline $ac_val | |
15348 | #endif | |
de59c161 | 15349 | _ACEOF |
ac1cb8d3 | 15350 | ;; |
a848cd7e SC |
15351 | esac |
15352 | ||
15353 | ||
15354 | echo "$as_me:$LINENO: checking for char" >&5 | |
15355 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15356 | if test "${ac_cv_type_char+set}" = set; then | |
15357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15358 | else | |
15359 | cat >conftest.$ac_ext <<_ACEOF | |
15360 | /* confdefs.h. */ | |
15361 | _ACEOF | |
15362 | cat confdefs.h >>conftest.$ac_ext | |
15363 | cat >>conftest.$ac_ext <<_ACEOF | |
15364 | /* end confdefs.h. */ | |
15365 | $ac_includes_default | |
15366 | int | |
15367 | main () | |
15368 | { | |
15369 | if ((char *) 0) | |
15370 | return 0; | |
15371 | if (sizeof (char)) | |
15372 | return 0; | |
15373 | ; | |
15374 | return 0; | |
15375 | } | |
15376 | _ACEOF | |
15377 | rm -f conftest.$ac_objext | |
15378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15380 | ac_status=$? |
ac1cb8d3 VS |
15381 | grep -v '^ *+' conftest.er1 >conftest.err |
15382 | rm -f conftest.er1 | |
15383 | cat conftest.err >&5 | |
a848cd7e SC |
15384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15385 | (exit $ac_status); } && | |
07158944 | 15386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15388 | (eval $ac_try) 2>&5 | |
15389 | ac_status=$? | |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15391 | (exit $ac_status); }; } && | |
15392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15394 | (eval $ac_try) 2>&5 | |
15395 | ac_status=$? | |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15397 | (exit $ac_status); }; }; then | |
15398 | ac_cv_type_char=yes | |
15399 | else | |
15400 | echo "$as_me: failed program was:" >&5 | |
15401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15402 | ||
15403 | ac_cv_type_char=no | |
15404 | fi | |
ac1cb8d3 | 15405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15406 | fi |
15407 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15408 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15409 | ||
15410 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15411 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15412 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15414 | else | |
15415 | if test "$ac_cv_type_char" = yes; then | |
15416 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15417 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15418 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15419 | # This bug is HP SR number 8606223364. | |
15420 | if test "$cross_compiling" = yes; then | |
15421 | # Depending upon the size, compute the lo and hi bounds. | |
15422 | cat >conftest.$ac_ext <<_ACEOF | |
15423 | /* confdefs.h. */ | |
15424 | _ACEOF | |
15425 | cat confdefs.h >>conftest.$ac_ext | |
15426 | cat >>conftest.$ac_ext <<_ACEOF | |
15427 | /* end confdefs.h. */ | |
15428 | $ac_includes_default | |
15429 | int | |
15430 | main () | |
15431 | { | |
15432 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15433 | test_array [0] = 0 | |
15434 | ||
15435 | ; | |
15436 | return 0; | |
15437 | } | |
15438 | _ACEOF | |
15439 | rm -f conftest.$ac_objext | |
15440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15442 | ac_status=$? |
ac1cb8d3 VS |
15443 | grep -v '^ *+' conftest.er1 >conftest.err |
15444 | rm -f conftest.er1 | |
15445 | cat conftest.err >&5 | |
a848cd7e SC |
15446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15447 | (exit $ac_status); } && | |
07158944 | 15448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15450 | (eval $ac_try) 2>&5 | |
15451 | ac_status=$? | |
15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15453 | (exit $ac_status); }; } && | |
15454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15456 | (eval $ac_try) 2>&5 | |
15457 | ac_status=$? | |
15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15459 | (exit $ac_status); }; }; then | |
15460 | ac_lo=0 ac_mid=0 | |
15461 | while :; do | |
15462 | cat >conftest.$ac_ext <<_ACEOF | |
15463 | /* confdefs.h. */ | |
15464 | _ACEOF | |
15465 | cat confdefs.h >>conftest.$ac_ext | |
15466 | cat >>conftest.$ac_ext <<_ACEOF | |
15467 | /* end confdefs.h. */ | |
15468 | $ac_includes_default | |
15469 | int | |
15470 | main () | |
15471 | { | |
15472 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15473 | test_array [0] = 0 | |
15474 | ||
15475 | ; | |
15476 | return 0; | |
15477 | } | |
15478 | _ACEOF | |
15479 | rm -f conftest.$ac_objext | |
15480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15481 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15482 | ac_status=$? |
ac1cb8d3 VS |
15483 | grep -v '^ *+' conftest.er1 >conftest.err |
15484 | rm -f conftest.er1 | |
15485 | cat conftest.err >&5 | |
a848cd7e SC |
15486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15487 | (exit $ac_status); } && | |
07158944 | 15488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15490 | (eval $ac_try) 2>&5 | |
15491 | ac_status=$? | |
15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15493 | (exit $ac_status); }; } && | |
15494 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15496 | (eval $ac_try) 2>&5 | |
15497 | ac_status=$? | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); }; }; then | |
15500 | ac_hi=$ac_mid; break | |
15501 | else | |
15502 | echo "$as_me: failed program was:" >&5 | |
15503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15504 | ||
15505 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15506 | if test $ac_lo -le $ac_mid; then |
15507 | ac_lo= ac_hi= | |
15508 | break | |
15509 | fi | |
15510 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15511 | fi |
ac1cb8d3 | 15512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15513 | done |
15514 | else | |
15515 | echo "$as_me: failed program was:" >&5 | |
15516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15517 | ||
15518 | cat >conftest.$ac_ext <<_ACEOF | |
15519 | /* confdefs.h. */ | |
15520 | _ACEOF | |
15521 | cat confdefs.h >>conftest.$ac_ext | |
15522 | cat >>conftest.$ac_ext <<_ACEOF | |
15523 | /* end confdefs.h. */ | |
15524 | $ac_includes_default | |
15525 | int | |
15526 | main () | |
15527 | { | |
15528 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15529 | test_array [0] = 0 | |
15530 | ||
15531 | ; | |
15532 | return 0; | |
15533 | } | |
15534 | _ACEOF | |
15535 | rm -f conftest.$ac_objext | |
15536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15538 | ac_status=$? |
ac1cb8d3 VS |
15539 | grep -v '^ *+' conftest.er1 >conftest.err |
15540 | rm -f conftest.er1 | |
15541 | cat conftest.err >&5 | |
a848cd7e SC |
15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15543 | (exit $ac_status); } && | |
07158944 | 15544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15546 | (eval $ac_try) 2>&5 | |
15547 | ac_status=$? | |
15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15549 | (exit $ac_status); }; } && | |
15550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15552 | (eval $ac_try) 2>&5 | |
15553 | ac_status=$? | |
15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15555 | (exit $ac_status); }; }; then | |
15556 | ac_hi=-1 ac_mid=-1 | |
15557 | while :; do | |
15558 | cat >conftest.$ac_ext <<_ACEOF | |
15559 | /* confdefs.h. */ | |
15560 | _ACEOF | |
15561 | cat confdefs.h >>conftest.$ac_ext | |
15562 | cat >>conftest.$ac_ext <<_ACEOF | |
15563 | /* end confdefs.h. */ | |
15564 | $ac_includes_default | |
15565 | int | |
15566 | main () | |
15567 | { | |
15568 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15569 | test_array [0] = 0 | |
15570 | ||
15571 | ; | |
15572 | return 0; | |
15573 | } | |
15574 | _ACEOF | |
15575 | rm -f conftest.$ac_objext | |
15576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15577 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15578 | ac_status=$? |
ac1cb8d3 VS |
15579 | grep -v '^ *+' conftest.er1 >conftest.err |
15580 | rm -f conftest.er1 | |
15581 | cat conftest.err >&5 | |
a848cd7e SC |
15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15583 | (exit $ac_status); } && | |
07158944 | 15584 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15586 | (eval $ac_try) 2>&5 | |
15587 | ac_status=$? | |
15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15589 | (exit $ac_status); }; } && | |
15590 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15592 | (eval $ac_try) 2>&5 | |
15593 | ac_status=$? | |
15594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15595 | (exit $ac_status); }; }; then | |
15596 | ac_lo=$ac_mid; break | |
15597 | else | |
15598 | echo "$as_me: failed program was:" >&5 | |
15599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15600 | ||
15601 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15602 | if test $ac_mid -le $ac_hi; then |
15603 | ac_lo= ac_hi= | |
15604 | break | |
15605 | fi | |
15606 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15607 | fi |
ac1cb8d3 | 15608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15609 | done |
15610 | else | |
15611 | echo "$as_me: failed program was:" >&5 | |
15612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15613 | ||
15614 | ac_lo= ac_hi= | |
15615 | fi | |
ac1cb8d3 | 15616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15617 | fi |
ac1cb8d3 | 15618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15619 | # Binary search between lo and hi bounds. |
15620 | while test "x$ac_lo" != "x$ac_hi"; do | |
15621 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15622 | cat >conftest.$ac_ext <<_ACEOF | |
15623 | /* confdefs.h. */ | |
15624 | _ACEOF | |
15625 | cat confdefs.h >>conftest.$ac_ext | |
15626 | cat >>conftest.$ac_ext <<_ACEOF | |
15627 | /* end confdefs.h. */ | |
15628 | $ac_includes_default | |
15629 | int | |
15630 | main () | |
15631 | { | |
15632 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15633 | test_array [0] = 0 | |
15634 | ||
15635 | ; | |
15636 | return 0; | |
15637 | } | |
15638 | _ACEOF | |
15639 | rm -f conftest.$ac_objext | |
15640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15641 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15642 | ac_status=$? |
ac1cb8d3 VS |
15643 | grep -v '^ *+' conftest.er1 >conftest.err |
15644 | rm -f conftest.er1 | |
15645 | cat conftest.err >&5 | |
a848cd7e SC |
15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15647 | (exit $ac_status); } && | |
07158944 | 15648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15650 | (eval $ac_try) 2>&5 | |
15651 | ac_status=$? | |
15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15653 | (exit $ac_status); }; } && | |
15654 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15656 | (eval $ac_try) 2>&5 | |
15657 | ac_status=$? | |
15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15659 | (exit $ac_status); }; }; then | |
15660 | ac_hi=$ac_mid | |
15661 | else | |
15662 | echo "$as_me: failed program was:" >&5 | |
15663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15664 | ||
15665 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15666 | fi | |
ac1cb8d3 | 15667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15668 | done |
15669 | case $ac_lo in | |
15670 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15671 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15672 | See \`config.log' for more details." >&5 | |
15673 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15674 | See \`config.log' for more details." >&2;} | |
15675 | { (exit 1); exit 1; }; } ;; | |
15676 | esac | |
15677 | else | |
15678 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
15679 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15680 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15681 | { (exit 1); exit 1; }; } |
15682 | else | |
15683 | cat >conftest.$ac_ext <<_ACEOF | |
15684 | /* confdefs.h. */ | |
15685 | _ACEOF | |
15686 | cat confdefs.h >>conftest.$ac_ext | |
15687 | cat >>conftest.$ac_ext <<_ACEOF | |
15688 | /* end confdefs.h. */ | |
15689 | $ac_includes_default | |
15690 | long longval () { return (long) (sizeof (char)); } | |
15691 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15692 | #include <stdio.h> | |
15693 | #include <stdlib.h> | |
15694 | int | |
15695 | main () | |
15696 | { | |
15697 | ||
15698 | FILE *f = fopen ("conftest.val", "w"); | |
15699 | if (! f) | |
15700 | exit (1); | |
15701 | if (((long) (sizeof (char))) < 0) | |
15702 | { | |
15703 | long i = longval (); | |
15704 | if (i != ((long) (sizeof (char)))) | |
15705 | exit (1); | |
15706 | fprintf (f, "%ld\n", i); | |
15707 | } | |
15708 | else | |
15709 | { | |
15710 | unsigned long i = ulongval (); | |
15711 | if (i != ((long) (sizeof (char)))) | |
15712 | exit (1); | |
15713 | fprintf (f, "%lu\n", i); | |
15714 | } | |
15715 | exit (ferror (f) || fclose (f) != 0); | |
15716 | ||
15717 | ; | |
15718 | return 0; | |
15719 | } | |
15720 | _ACEOF | |
15721 | rm -f conftest$ac_exeext | |
15722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15723 | (eval $ac_link) 2>&5 | |
15724 | ac_status=$? | |
15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15728 | (eval $ac_try) 2>&5 | |
15729 | ac_status=$? | |
15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15731 | (exit $ac_status); }; }; then | |
15732 | ac_cv_sizeof_char=`cat conftest.val` | |
15733 | else | |
15734 | echo "$as_me: program exited with status $ac_status" >&5 | |
15735 | echo "$as_me: failed program was:" >&5 | |
15736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15737 | ||
15738 | ( exit $ac_status ) | |
15739 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15740 | See \`config.log' for more details." >&5 | |
15741 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15742 | See \`config.log' for more details." >&2;} | |
15743 | { (exit 1); exit 1; }; } | |
15744 | fi | |
ac1cb8d3 | 15745 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15746 | fi |
15747 | fi | |
15748 | rm -f conftest.val | |
15749 | else | |
15750 | ac_cv_sizeof_char=0 | |
15751 | fi | |
15752 | fi | |
15753 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15754 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15755 | cat >>confdefs.h <<_ACEOF | |
15756 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15757 | _ACEOF | |
15758 | ||
15759 | ||
15760 | echo "$as_me:$LINENO: checking for short" >&5 | |
15761 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15762 | if test "${ac_cv_type_short+set}" = set; then | |
15763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15764 | else | |
15765 | cat >conftest.$ac_ext <<_ACEOF | |
15766 | /* confdefs.h. */ | |
15767 | _ACEOF | |
15768 | cat confdefs.h >>conftest.$ac_ext | |
15769 | cat >>conftest.$ac_ext <<_ACEOF | |
15770 | /* end confdefs.h. */ | |
15771 | $ac_includes_default | |
15772 | int | |
15773 | main () | |
15774 | { | |
15775 | if ((short *) 0) | |
15776 | return 0; | |
15777 | if (sizeof (short)) | |
15778 | return 0; | |
15779 | ; | |
15780 | return 0; | |
15781 | } | |
15782 | _ACEOF | |
15783 | rm -f conftest.$ac_objext | |
15784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15785 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15786 | ac_status=$? |
ac1cb8d3 VS |
15787 | grep -v '^ *+' conftest.er1 >conftest.err |
15788 | rm -f conftest.er1 | |
15789 | cat conftest.err >&5 | |
a848cd7e SC |
15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15791 | (exit $ac_status); } && | |
07158944 | 15792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15794 | (eval $ac_try) 2>&5 | |
15795 | ac_status=$? | |
15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15797 | (exit $ac_status); }; } && | |
15798 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15800 | (eval $ac_try) 2>&5 | |
15801 | ac_status=$? | |
15802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15803 | (exit $ac_status); }; }; then | |
15804 | ac_cv_type_short=yes | |
15805 | else | |
15806 | echo "$as_me: failed program was:" >&5 | |
15807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15808 | ||
15809 | ac_cv_type_short=no | |
15810 | fi | |
ac1cb8d3 | 15811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15812 | fi |
15813 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15814 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15815 | ||
15816 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15817 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15818 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15820 | else | |
15821 | if test "$ac_cv_type_short" = yes; then | |
15822 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15823 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15824 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15825 | # This bug is HP SR number 8606223364. | |
15826 | if test "$cross_compiling" = yes; then | |
15827 | # Depending upon the size, compute the lo and hi bounds. | |
15828 | cat >conftest.$ac_ext <<_ACEOF | |
15829 | /* confdefs.h. */ | |
15830 | _ACEOF | |
15831 | cat confdefs.h >>conftest.$ac_ext | |
15832 | cat >>conftest.$ac_ext <<_ACEOF | |
15833 | /* end confdefs.h. */ | |
15834 | $ac_includes_default | |
15835 | int | |
15836 | main () | |
15837 | { | |
15838 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15839 | test_array [0] = 0 | |
15840 | ||
15841 | ; | |
15842 | return 0; | |
15843 | } | |
15844 | _ACEOF | |
15845 | rm -f conftest.$ac_objext | |
15846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15848 | ac_status=$? |
ac1cb8d3 VS |
15849 | grep -v '^ *+' conftest.er1 >conftest.err |
15850 | rm -f conftest.er1 | |
15851 | cat conftest.err >&5 | |
a848cd7e SC |
15852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15853 | (exit $ac_status); } && | |
07158944 | 15854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15856 | (eval $ac_try) 2>&5 | |
15857 | ac_status=$? | |
15858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15859 | (exit $ac_status); }; } && | |
15860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15862 | (eval $ac_try) 2>&5 | |
15863 | ac_status=$? | |
15864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15865 | (exit $ac_status); }; }; then | |
15866 | ac_lo=0 ac_mid=0 | |
15867 | while :; do | |
15868 | cat >conftest.$ac_ext <<_ACEOF | |
15869 | /* confdefs.h. */ | |
15870 | _ACEOF | |
15871 | cat confdefs.h >>conftest.$ac_ext | |
15872 | cat >>conftest.$ac_ext <<_ACEOF | |
15873 | /* end confdefs.h. */ | |
15874 | $ac_includes_default | |
15875 | int | |
15876 | main () | |
15877 | { | |
15878 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15879 | test_array [0] = 0 | |
15880 | ||
15881 | ; | |
15882 | return 0; | |
15883 | } | |
15884 | _ACEOF | |
15885 | rm -f conftest.$ac_objext | |
15886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15887 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15888 | ac_status=$? |
ac1cb8d3 VS |
15889 | grep -v '^ *+' conftest.er1 >conftest.err |
15890 | rm -f conftest.er1 | |
15891 | cat conftest.err >&5 | |
a848cd7e SC |
15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15893 | (exit $ac_status); } && | |
07158944 | 15894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15896 | (eval $ac_try) 2>&5 | |
15897 | ac_status=$? | |
15898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15899 | (exit $ac_status); }; } && | |
15900 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15902 | (eval $ac_try) 2>&5 | |
15903 | ac_status=$? | |
15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15905 | (exit $ac_status); }; }; then | |
15906 | ac_hi=$ac_mid; break | |
15907 | else | |
15908 | echo "$as_me: failed program was:" >&5 | |
15909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15910 | ||
15911 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15912 | if test $ac_lo -le $ac_mid; then |
15913 | ac_lo= ac_hi= | |
15914 | break | |
15915 | fi | |
15916 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15917 | fi |
ac1cb8d3 | 15918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15919 | done |
15920 | else | |
15921 | echo "$as_me: failed program was:" >&5 | |
15922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15923 | ||
15924 | cat >conftest.$ac_ext <<_ACEOF | |
15925 | /* confdefs.h. */ | |
15926 | _ACEOF | |
15927 | cat confdefs.h >>conftest.$ac_ext | |
15928 | cat >>conftest.$ac_ext <<_ACEOF | |
15929 | /* end confdefs.h. */ | |
15930 | $ac_includes_default | |
15931 | int | |
15932 | main () | |
15933 | { | |
15934 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15935 | test_array [0] = 0 | |
15936 | ||
15937 | ; | |
15938 | return 0; | |
15939 | } | |
15940 | _ACEOF | |
15941 | rm -f conftest.$ac_objext | |
15942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15943 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15944 | ac_status=$? |
ac1cb8d3 VS |
15945 | grep -v '^ *+' conftest.er1 >conftest.err |
15946 | rm -f conftest.er1 | |
15947 | cat conftest.err >&5 | |
a848cd7e SC |
15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15949 | (exit $ac_status); } && | |
07158944 | 15950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15952 | (eval $ac_try) 2>&5 | |
15953 | ac_status=$? | |
15954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15955 | (exit $ac_status); }; } && | |
15956 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15958 | (eval $ac_try) 2>&5 | |
15959 | ac_status=$? | |
15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15961 | (exit $ac_status); }; }; then | |
15962 | ac_hi=-1 ac_mid=-1 | |
15963 | while :; do | |
15964 | cat >conftest.$ac_ext <<_ACEOF | |
15965 | /* confdefs.h. */ | |
15966 | _ACEOF | |
15967 | cat confdefs.h >>conftest.$ac_ext | |
15968 | cat >>conftest.$ac_ext <<_ACEOF | |
15969 | /* end confdefs.h. */ | |
15970 | $ac_includes_default | |
15971 | int | |
15972 | main () | |
15973 | { | |
15974 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15975 | test_array [0] = 0 | |
15976 | ||
15977 | ; | |
15978 | return 0; | |
15979 | } | |
15980 | _ACEOF | |
15981 | rm -f conftest.$ac_objext | |
15982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15983 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15984 | ac_status=$? |
ac1cb8d3 VS |
15985 | grep -v '^ *+' conftest.er1 >conftest.err |
15986 | rm -f conftest.er1 | |
15987 | cat conftest.err >&5 | |
a848cd7e SC |
15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15989 | (exit $ac_status); } && | |
07158944 | 15990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15992 | (eval $ac_try) 2>&5 | |
15993 | ac_status=$? | |
15994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15995 | (exit $ac_status); }; } && | |
15996 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15998 | (eval $ac_try) 2>&5 | |
15999 | ac_status=$? | |
16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16001 | (exit $ac_status); }; }; then | |
16002 | ac_lo=$ac_mid; break | |
16003 | else | |
16004 | echo "$as_me: failed program was:" >&5 | |
16005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16006 | ||
16007 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16008 | if test $ac_mid -le $ac_hi; then |
16009 | ac_lo= ac_hi= | |
16010 | break | |
16011 | fi | |
16012 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16013 | fi |
ac1cb8d3 | 16014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16015 | done |
16016 | else | |
16017 | echo "$as_me: failed program was:" >&5 | |
16018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16019 | ||
16020 | ac_lo= ac_hi= | |
16021 | fi | |
ac1cb8d3 | 16022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16023 | fi |
ac1cb8d3 | 16024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16025 | # Binary search between lo and hi bounds. |
16026 | while test "x$ac_lo" != "x$ac_hi"; do | |
16027 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16028 | cat >conftest.$ac_ext <<_ACEOF | |
16029 | /* confdefs.h. */ | |
16030 | _ACEOF | |
16031 | cat confdefs.h >>conftest.$ac_ext | |
16032 | cat >>conftest.$ac_ext <<_ACEOF | |
16033 | /* end confdefs.h. */ | |
16034 | $ac_includes_default | |
16035 | int | |
16036 | main () | |
16037 | { | |
16038 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16039 | test_array [0] = 0 | |
16040 | ||
16041 | ; | |
16042 | return 0; | |
16043 | } | |
16044 | _ACEOF | |
16045 | rm -f conftest.$ac_objext | |
16046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16048 | ac_status=$? |
ac1cb8d3 VS |
16049 | grep -v '^ *+' conftest.er1 >conftest.err |
16050 | rm -f conftest.er1 | |
16051 | cat conftest.err >&5 | |
a848cd7e SC |
16052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16053 | (exit $ac_status); } && | |
07158944 | 16054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16056 | (eval $ac_try) 2>&5 | |
16057 | ac_status=$? | |
16058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16059 | (exit $ac_status); }; } && | |
16060 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16062 | (eval $ac_try) 2>&5 | |
16063 | ac_status=$? | |
16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16065 | (exit $ac_status); }; }; then | |
16066 | ac_hi=$ac_mid | |
16067 | else | |
16068 | echo "$as_me: failed program was:" >&5 | |
16069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16070 | ||
16071 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16072 | fi | |
ac1cb8d3 | 16073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16074 | done |
16075 | case $ac_lo in | |
16076 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
16077 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16078 | See \`config.log' for more details." >&5 | |
16079 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16080 | See \`config.log' for more details." >&2;} | |
16081 | { (exit 1); exit 1; }; } ;; | |
16082 | esac | |
16083 | else | |
16084 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
16085 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16086 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16087 | { (exit 1); exit 1; }; } |
16088 | else | |
16089 | cat >conftest.$ac_ext <<_ACEOF | |
16090 | /* confdefs.h. */ | |
16091 | _ACEOF | |
16092 | cat confdefs.h >>conftest.$ac_ext | |
16093 | cat >>conftest.$ac_ext <<_ACEOF | |
16094 | /* end confdefs.h. */ | |
16095 | $ac_includes_default | |
16096 | long longval () { return (long) (sizeof (short)); } | |
16097 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16098 | #include <stdio.h> | |
16099 | #include <stdlib.h> | |
16100 | int | |
16101 | main () | |
16102 | { | |
16103 | ||
16104 | FILE *f = fopen ("conftest.val", "w"); | |
16105 | if (! f) | |
16106 | exit (1); | |
16107 | if (((long) (sizeof (short))) < 0) | |
16108 | { | |
16109 | long i = longval (); | |
16110 | if (i != ((long) (sizeof (short)))) | |
16111 | exit (1); | |
16112 | fprintf (f, "%ld\n", i); | |
16113 | } | |
16114 | else | |
16115 | { | |
16116 | unsigned long i = ulongval (); | |
16117 | if (i != ((long) (sizeof (short)))) | |
16118 | exit (1); | |
16119 | fprintf (f, "%lu\n", i); | |
16120 | } | |
16121 | exit (ferror (f) || fclose (f) != 0); | |
16122 | ||
16123 | ; | |
16124 | return 0; | |
16125 | } | |
16126 | _ACEOF | |
16127 | rm -f conftest$ac_exeext | |
16128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16129 | (eval $ac_link) 2>&5 | |
16130 | ac_status=$? | |
16131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16134 | (eval $ac_try) 2>&5 | |
16135 | ac_status=$? | |
16136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16137 | (exit $ac_status); }; }; then | |
16138 | ac_cv_sizeof_short=`cat conftest.val` | |
16139 | else | |
16140 | echo "$as_me: program exited with status $ac_status" >&5 | |
16141 | echo "$as_me: failed program was:" >&5 | |
16142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16143 | ||
16144 | ( exit $ac_status ) | |
16145 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16146 | See \`config.log' for more details." >&5 | |
16147 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16148 | See \`config.log' for more details." >&2;} | |
16149 | { (exit 1); exit 1; }; } | |
16150 | fi | |
ac1cb8d3 | 16151 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16152 | fi |
16153 | fi | |
16154 | rm -f conftest.val | |
16155 | else | |
16156 | ac_cv_sizeof_short=0 | |
16157 | fi | |
16158 | fi | |
16159 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16160 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16161 | cat >>confdefs.h <<_ACEOF | |
16162 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16163 | _ACEOF | |
16164 | ||
16165 | ||
16166 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16167 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16168 | if test "${ac_cv_type_void_p+set}" = set; then | |
16169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16170 | else | |
16171 | cat >conftest.$ac_ext <<_ACEOF | |
16172 | /* confdefs.h. */ | |
16173 | _ACEOF | |
16174 | cat confdefs.h >>conftest.$ac_ext | |
16175 | cat >>conftest.$ac_ext <<_ACEOF | |
16176 | /* end confdefs.h. */ | |
16177 | $ac_includes_default | |
16178 | int | |
16179 | main () | |
16180 | { | |
16181 | if ((void * *) 0) | |
16182 | return 0; | |
16183 | if (sizeof (void *)) | |
16184 | return 0; | |
16185 | ; | |
16186 | return 0; | |
16187 | } | |
16188 | _ACEOF | |
16189 | rm -f conftest.$ac_objext | |
16190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16191 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16192 | ac_status=$? |
ac1cb8d3 VS |
16193 | grep -v '^ *+' conftest.er1 >conftest.err |
16194 | rm -f conftest.er1 | |
16195 | cat conftest.err >&5 | |
a848cd7e SC |
16196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16197 | (exit $ac_status); } && | |
07158944 | 16198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16200 | (eval $ac_try) 2>&5 | |
16201 | ac_status=$? | |
16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16203 | (exit $ac_status); }; } && | |
16204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16206 | (eval $ac_try) 2>&5 | |
16207 | ac_status=$? | |
16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16209 | (exit $ac_status); }; }; then | |
16210 | ac_cv_type_void_p=yes | |
16211 | else | |
16212 | echo "$as_me: failed program was:" >&5 | |
16213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16214 | ||
16215 | ac_cv_type_void_p=no | |
16216 | fi | |
ac1cb8d3 | 16217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16218 | fi |
16219 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16220 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16221 | ||
16222 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16223 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16224 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16226 | else | |
16227 | if test "$ac_cv_type_void_p" = yes; then | |
16228 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16229 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16230 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16231 | # This bug is HP SR number 8606223364. | |
16232 | if test "$cross_compiling" = yes; then | |
16233 | # Depending upon the size, compute the lo and hi bounds. | |
16234 | cat >conftest.$ac_ext <<_ACEOF | |
16235 | /* confdefs.h. */ | |
16236 | _ACEOF | |
16237 | cat confdefs.h >>conftest.$ac_ext | |
16238 | cat >>conftest.$ac_ext <<_ACEOF | |
16239 | /* end confdefs.h. */ | |
16240 | $ac_includes_default | |
16241 | int | |
16242 | main () | |
16243 | { | |
16244 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16245 | test_array [0] = 0 | |
16246 | ||
16247 | ; | |
16248 | return 0; | |
16249 | } | |
16250 | _ACEOF | |
16251 | rm -f conftest.$ac_objext | |
16252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16253 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16254 | ac_status=$? |
ac1cb8d3 VS |
16255 | grep -v '^ *+' conftest.er1 >conftest.err |
16256 | rm -f conftest.er1 | |
16257 | cat conftest.err >&5 | |
a848cd7e SC |
16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16259 | (exit $ac_status); } && | |
07158944 | 16260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16262 | (eval $ac_try) 2>&5 | |
16263 | ac_status=$? | |
16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16265 | (exit $ac_status); }; } && | |
16266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16268 | (eval $ac_try) 2>&5 | |
16269 | ac_status=$? | |
16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16271 | (exit $ac_status); }; }; then | |
16272 | ac_lo=0 ac_mid=0 | |
16273 | while :; do | |
16274 | cat >conftest.$ac_ext <<_ACEOF | |
16275 | /* confdefs.h. */ | |
16276 | _ACEOF | |
16277 | cat confdefs.h >>conftest.$ac_ext | |
16278 | cat >>conftest.$ac_ext <<_ACEOF | |
16279 | /* end confdefs.h. */ | |
16280 | $ac_includes_default | |
16281 | int | |
16282 | main () | |
16283 | { | |
16284 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16285 | test_array [0] = 0 | |
16286 | ||
16287 | ; | |
16288 | return 0; | |
16289 | } | |
16290 | _ACEOF | |
16291 | rm -f conftest.$ac_objext | |
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16294 | ac_status=$? |
ac1cb8d3 VS |
16295 | grep -v '^ *+' conftest.er1 >conftest.err |
16296 | rm -f conftest.er1 | |
16297 | cat conftest.err >&5 | |
a848cd7e SC |
16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16299 | (exit $ac_status); } && | |
07158944 | 16300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16302 | (eval $ac_try) 2>&5 | |
16303 | ac_status=$? | |
16304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16305 | (exit $ac_status); }; } && | |
16306 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16308 | (eval $ac_try) 2>&5 | |
16309 | ac_status=$? | |
16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16311 | (exit $ac_status); }; }; then | |
16312 | ac_hi=$ac_mid; break | |
16313 | else | |
16314 | echo "$as_me: failed program was:" >&5 | |
16315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16316 | ||
16317 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16318 | if test $ac_lo -le $ac_mid; then |
16319 | ac_lo= ac_hi= | |
16320 | break | |
16321 | fi | |
16322 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16323 | fi |
ac1cb8d3 | 16324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16325 | done |
16326 | else | |
16327 | echo "$as_me: failed program was:" >&5 | |
16328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16329 | ||
16330 | cat >conftest.$ac_ext <<_ACEOF | |
16331 | /* confdefs.h. */ | |
16332 | _ACEOF | |
16333 | cat confdefs.h >>conftest.$ac_ext | |
16334 | cat >>conftest.$ac_ext <<_ACEOF | |
16335 | /* end confdefs.h. */ | |
16336 | $ac_includes_default | |
16337 | int | |
16338 | main () | |
16339 | { | |
16340 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16341 | test_array [0] = 0 | |
16342 | ||
16343 | ; | |
16344 | return 0; | |
16345 | } | |
16346 | _ACEOF | |
16347 | rm -f conftest.$ac_objext | |
16348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16350 | ac_status=$? |
ac1cb8d3 VS |
16351 | grep -v '^ *+' conftest.er1 >conftest.err |
16352 | rm -f conftest.er1 | |
16353 | cat conftest.err >&5 | |
a848cd7e SC |
16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16355 | (exit $ac_status); } && | |
07158944 | 16356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16358 | (eval $ac_try) 2>&5 | |
16359 | ac_status=$? | |
16360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16361 | (exit $ac_status); }; } && | |
16362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16364 | (eval $ac_try) 2>&5 | |
16365 | ac_status=$? | |
16366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16367 | (exit $ac_status); }; }; then | |
16368 | ac_hi=-1 ac_mid=-1 | |
16369 | while :; do | |
16370 | cat >conftest.$ac_ext <<_ACEOF | |
16371 | /* confdefs.h. */ | |
16372 | _ACEOF | |
16373 | cat confdefs.h >>conftest.$ac_ext | |
16374 | cat >>conftest.$ac_ext <<_ACEOF | |
16375 | /* end confdefs.h. */ | |
16376 | $ac_includes_default | |
16377 | int | |
16378 | main () | |
16379 | { | |
16380 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16381 | test_array [0] = 0 | |
16382 | ||
16383 | ; | |
16384 | return 0; | |
16385 | } | |
16386 | _ACEOF | |
16387 | rm -f conftest.$ac_objext | |
16388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16389 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16390 | ac_status=$? |
ac1cb8d3 VS |
16391 | grep -v '^ *+' conftest.er1 >conftest.err |
16392 | rm -f conftest.er1 | |
16393 | cat conftest.err >&5 | |
a848cd7e SC |
16394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16395 | (exit $ac_status); } && | |
07158944 | 16396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16398 | (eval $ac_try) 2>&5 | |
16399 | ac_status=$? | |
16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16401 | (exit $ac_status); }; } && | |
16402 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16404 | (eval $ac_try) 2>&5 | |
16405 | ac_status=$? | |
16406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16407 | (exit $ac_status); }; }; then | |
16408 | ac_lo=$ac_mid; break | |
16409 | else | |
16410 | echo "$as_me: failed program was:" >&5 | |
16411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16412 | ||
16413 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16414 | if test $ac_mid -le $ac_hi; then |
16415 | ac_lo= ac_hi= | |
16416 | break | |
16417 | fi | |
16418 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16419 | fi |
ac1cb8d3 | 16420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16421 | done |
16422 | else | |
16423 | echo "$as_me: failed program was:" >&5 | |
16424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16425 | ||
16426 | ac_lo= ac_hi= | |
16427 | fi | |
ac1cb8d3 | 16428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16429 | fi |
ac1cb8d3 | 16430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16431 | # Binary search between lo and hi bounds. |
16432 | while test "x$ac_lo" != "x$ac_hi"; do | |
16433 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16434 | cat >conftest.$ac_ext <<_ACEOF | |
16435 | /* confdefs.h. */ | |
16436 | _ACEOF | |
16437 | cat confdefs.h >>conftest.$ac_ext | |
16438 | cat >>conftest.$ac_ext <<_ACEOF | |
16439 | /* end confdefs.h. */ | |
16440 | $ac_includes_default | |
16441 | int | |
16442 | main () | |
16443 | { | |
16444 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16445 | test_array [0] = 0 | |
16446 | ||
16447 | ; | |
16448 | return 0; | |
16449 | } | |
16450 | _ACEOF | |
16451 | rm -f conftest.$ac_objext | |
16452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16453 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16454 | ac_status=$? |
ac1cb8d3 VS |
16455 | grep -v '^ *+' conftest.er1 >conftest.err |
16456 | rm -f conftest.er1 | |
16457 | cat conftest.err >&5 | |
a848cd7e SC |
16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16459 | (exit $ac_status); } && | |
07158944 | 16460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16462 | (eval $ac_try) 2>&5 | |
16463 | ac_status=$? | |
16464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16465 | (exit $ac_status); }; } && | |
16466 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16468 | (eval $ac_try) 2>&5 | |
16469 | ac_status=$? | |
16470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16471 | (exit $ac_status); }; }; then | |
16472 | ac_hi=$ac_mid | |
16473 | else | |
16474 | echo "$as_me: failed program was:" >&5 | |
16475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16476 | ||
16477 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16478 | fi | |
ac1cb8d3 | 16479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16480 | done |
16481 | case $ac_lo in | |
16482 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16483 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16484 | See \`config.log' for more details." >&5 | |
16485 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16486 | See \`config.log' for more details." >&2;} | |
16487 | { (exit 1); exit 1; }; } ;; | |
16488 | esac | |
16489 | else | |
16490 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
16491 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16492 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16493 | { (exit 1); exit 1; }; } |
16494 | else | |
16495 | cat >conftest.$ac_ext <<_ACEOF | |
16496 | /* confdefs.h. */ | |
16497 | _ACEOF | |
16498 | cat confdefs.h >>conftest.$ac_ext | |
16499 | cat >>conftest.$ac_ext <<_ACEOF | |
16500 | /* end confdefs.h. */ | |
16501 | $ac_includes_default | |
16502 | long longval () { return (long) (sizeof (void *)); } | |
16503 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16504 | #include <stdio.h> | |
16505 | #include <stdlib.h> | |
16506 | int | |
16507 | main () | |
16508 | { | |
16509 | ||
16510 | FILE *f = fopen ("conftest.val", "w"); | |
16511 | if (! f) | |
16512 | exit (1); | |
16513 | if (((long) (sizeof (void *))) < 0) | |
16514 | { | |
16515 | long i = longval (); | |
16516 | if (i != ((long) (sizeof (void *)))) | |
16517 | exit (1); | |
16518 | fprintf (f, "%ld\n", i); | |
16519 | } | |
16520 | else | |
16521 | { | |
16522 | unsigned long i = ulongval (); | |
16523 | if (i != ((long) (sizeof (void *)))) | |
16524 | exit (1); | |
16525 | fprintf (f, "%lu\n", i); | |
16526 | } | |
16527 | exit (ferror (f) || fclose (f) != 0); | |
16528 | ||
16529 | ; | |
16530 | return 0; | |
16531 | } | |
16532 | _ACEOF | |
16533 | rm -f conftest$ac_exeext | |
16534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16535 | (eval $ac_link) 2>&5 | |
16536 | ac_status=$? | |
16537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16538 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16540 | (eval $ac_try) 2>&5 | |
16541 | ac_status=$? | |
16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16543 | (exit $ac_status); }; }; then | |
16544 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16545 | else | |
16546 | echo "$as_me: program exited with status $ac_status" >&5 | |
16547 | echo "$as_me: failed program was:" >&5 | |
16548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16549 | ||
16550 | ( exit $ac_status ) | |
16551 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16552 | See \`config.log' for more details." >&5 | |
16553 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16554 | See \`config.log' for more details." >&2;} | |
16555 | { (exit 1); exit 1; }; } | |
16556 | fi | |
ac1cb8d3 | 16557 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16558 | fi |
16559 | fi | |
16560 | rm -f conftest.val | |
16561 | else | |
16562 | ac_cv_sizeof_void_p=0 | |
16563 | fi | |
16564 | fi | |
16565 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16566 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16567 | cat >>confdefs.h <<_ACEOF | |
16568 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16569 | _ACEOF | |
16570 | ||
16571 | ||
16572 | echo "$as_me:$LINENO: checking for int" >&5 | |
16573 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16574 | if test "${ac_cv_type_int+set}" = set; then | |
16575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16576 | else | |
16577 | cat >conftest.$ac_ext <<_ACEOF | |
16578 | /* confdefs.h. */ | |
16579 | _ACEOF | |
16580 | cat confdefs.h >>conftest.$ac_ext | |
16581 | cat >>conftest.$ac_ext <<_ACEOF | |
16582 | /* end confdefs.h. */ | |
16583 | $ac_includes_default | |
16584 | int | |
16585 | main () | |
16586 | { | |
16587 | if ((int *) 0) | |
16588 | return 0; | |
16589 | if (sizeof (int)) | |
16590 | return 0; | |
16591 | ; | |
16592 | return 0; | |
16593 | } | |
16594 | _ACEOF | |
16595 | rm -f conftest.$ac_objext | |
16596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16597 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16598 | ac_status=$? |
ac1cb8d3 VS |
16599 | grep -v '^ *+' conftest.er1 >conftest.err |
16600 | rm -f conftest.er1 | |
16601 | cat conftest.err >&5 | |
a848cd7e SC |
16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16603 | (exit $ac_status); } && | |
07158944 | 16604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16606 | (eval $ac_try) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); }; } && | |
16610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16612 | (eval $ac_try) 2>&5 | |
16613 | ac_status=$? | |
16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16615 | (exit $ac_status); }; }; then | |
16616 | ac_cv_type_int=yes | |
16617 | else | |
16618 | echo "$as_me: failed program was:" >&5 | |
16619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16620 | ||
16621 | ac_cv_type_int=no | |
16622 | fi | |
ac1cb8d3 | 16623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16624 | fi |
16625 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16626 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16627 | ||
16628 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16629 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16630 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16632 | else | |
16633 | if test "$ac_cv_type_int" = yes; then | |
16634 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16635 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16636 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16637 | # This bug is HP SR number 8606223364. | |
16638 | if test "$cross_compiling" = yes; then | |
16639 | # Depending upon the size, compute the lo and hi bounds. | |
16640 | cat >conftest.$ac_ext <<_ACEOF | |
16641 | /* confdefs.h. */ | |
16642 | _ACEOF | |
16643 | cat confdefs.h >>conftest.$ac_ext | |
16644 | cat >>conftest.$ac_ext <<_ACEOF | |
16645 | /* end confdefs.h. */ | |
16646 | $ac_includes_default | |
16647 | int | |
16648 | main () | |
16649 | { | |
16650 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16651 | test_array [0] = 0 | |
16652 | ||
16653 | ; | |
16654 | return 0; | |
16655 | } | |
16656 | _ACEOF | |
16657 | rm -f conftest.$ac_objext | |
16658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16660 | ac_status=$? |
ac1cb8d3 VS |
16661 | grep -v '^ *+' conftest.er1 >conftest.err |
16662 | rm -f conftest.er1 | |
16663 | cat conftest.err >&5 | |
a848cd7e SC |
16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16665 | (exit $ac_status); } && | |
07158944 | 16666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16668 | (eval $ac_try) 2>&5 | |
16669 | ac_status=$? | |
16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16671 | (exit $ac_status); }; } && | |
16672 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16674 | (eval $ac_try) 2>&5 | |
16675 | ac_status=$? | |
16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16677 | (exit $ac_status); }; }; then | |
16678 | ac_lo=0 ac_mid=0 | |
16679 | while :; do | |
16680 | cat >conftest.$ac_ext <<_ACEOF | |
16681 | /* confdefs.h. */ | |
16682 | _ACEOF | |
16683 | cat confdefs.h >>conftest.$ac_ext | |
16684 | cat >>conftest.$ac_ext <<_ACEOF | |
16685 | /* end confdefs.h. */ | |
16686 | $ac_includes_default | |
16687 | int | |
16688 | main () | |
16689 | { | |
16690 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16691 | test_array [0] = 0 | |
16692 | ||
16693 | ; | |
16694 | return 0; | |
16695 | } | |
16696 | _ACEOF | |
16697 | rm -f conftest.$ac_objext | |
16698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16699 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16700 | ac_status=$? |
ac1cb8d3 VS |
16701 | grep -v '^ *+' conftest.er1 >conftest.err |
16702 | rm -f conftest.er1 | |
16703 | cat conftest.err >&5 | |
a848cd7e SC |
16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16705 | (exit $ac_status); } && | |
07158944 | 16706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16708 | (eval $ac_try) 2>&5 | |
16709 | ac_status=$? | |
16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16711 | (exit $ac_status); }; } && | |
16712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16714 | (eval $ac_try) 2>&5 | |
16715 | ac_status=$? | |
16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16717 | (exit $ac_status); }; }; then | |
16718 | ac_hi=$ac_mid; break | |
16719 | else | |
16720 | echo "$as_me: failed program was:" >&5 | |
16721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16722 | ||
16723 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16724 | if test $ac_lo -le $ac_mid; then |
16725 | ac_lo= ac_hi= | |
16726 | break | |
16727 | fi | |
16728 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16729 | fi |
ac1cb8d3 | 16730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16731 | done |
16732 | else | |
16733 | echo "$as_me: failed program was:" >&5 | |
16734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16735 | ||
16736 | cat >conftest.$ac_ext <<_ACEOF | |
16737 | /* confdefs.h. */ | |
16738 | _ACEOF | |
16739 | cat confdefs.h >>conftest.$ac_ext | |
16740 | cat >>conftest.$ac_ext <<_ACEOF | |
16741 | /* end confdefs.h. */ | |
16742 | $ac_includes_default | |
16743 | int | |
16744 | main () | |
16745 | { | |
16746 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16747 | test_array [0] = 0 | |
16748 | ||
16749 | ; | |
16750 | return 0; | |
16751 | } | |
16752 | _ACEOF | |
16753 | rm -f conftest.$ac_objext | |
16754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16755 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16756 | ac_status=$? |
ac1cb8d3 VS |
16757 | grep -v '^ *+' conftest.er1 >conftest.err |
16758 | rm -f conftest.er1 | |
16759 | cat conftest.err >&5 | |
a848cd7e SC |
16760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16761 | (exit $ac_status); } && | |
07158944 | 16762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16764 | (eval $ac_try) 2>&5 | |
16765 | ac_status=$? | |
16766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16767 | (exit $ac_status); }; } && | |
16768 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16770 | (eval $ac_try) 2>&5 | |
16771 | ac_status=$? | |
16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16773 | (exit $ac_status); }; }; then | |
16774 | ac_hi=-1 ac_mid=-1 | |
16775 | while :; do | |
16776 | cat >conftest.$ac_ext <<_ACEOF | |
16777 | /* confdefs.h. */ | |
16778 | _ACEOF | |
16779 | cat confdefs.h >>conftest.$ac_ext | |
16780 | cat >>conftest.$ac_ext <<_ACEOF | |
16781 | /* end confdefs.h. */ | |
16782 | $ac_includes_default | |
16783 | int | |
16784 | main () | |
16785 | { | |
16786 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16787 | test_array [0] = 0 | |
16788 | ||
16789 | ; | |
16790 | return 0; | |
16791 | } | |
16792 | _ACEOF | |
16793 | rm -f conftest.$ac_objext | |
16794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16796 | ac_status=$? |
ac1cb8d3 VS |
16797 | grep -v '^ *+' conftest.er1 >conftest.err |
16798 | rm -f conftest.er1 | |
16799 | cat conftest.err >&5 | |
a848cd7e SC |
16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16801 | (exit $ac_status); } && | |
07158944 | 16802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16804 | (eval $ac_try) 2>&5 | |
16805 | ac_status=$? | |
16806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16807 | (exit $ac_status); }; } && | |
16808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16810 | (eval $ac_try) 2>&5 | |
16811 | ac_status=$? | |
16812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16813 | (exit $ac_status); }; }; then | |
16814 | ac_lo=$ac_mid; break | |
16815 | else | |
16816 | echo "$as_me: failed program was:" >&5 | |
16817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16818 | ||
16819 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16820 | if test $ac_mid -le $ac_hi; then |
16821 | ac_lo= ac_hi= | |
16822 | break | |
16823 | fi | |
16824 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16825 | fi |
ac1cb8d3 | 16826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16827 | done |
16828 | else | |
16829 | echo "$as_me: failed program was:" >&5 | |
16830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16831 | ||
16832 | ac_lo= ac_hi= | |
16833 | fi | |
ac1cb8d3 | 16834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16835 | fi |
ac1cb8d3 | 16836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16837 | # Binary search between lo and hi bounds. |
16838 | while test "x$ac_lo" != "x$ac_hi"; do | |
16839 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16840 | cat >conftest.$ac_ext <<_ACEOF | |
16841 | /* confdefs.h. */ | |
16842 | _ACEOF | |
16843 | cat confdefs.h >>conftest.$ac_ext | |
16844 | cat >>conftest.$ac_ext <<_ACEOF | |
16845 | /* end confdefs.h. */ | |
16846 | $ac_includes_default | |
16847 | int | |
16848 | main () | |
16849 | { | |
16850 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16851 | test_array [0] = 0 | |
16852 | ||
16853 | ; | |
16854 | return 0; | |
16855 | } | |
16856 | _ACEOF | |
16857 | rm -f conftest.$ac_objext | |
16858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16859 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16860 | ac_status=$? |
ac1cb8d3 VS |
16861 | grep -v '^ *+' conftest.er1 >conftest.err |
16862 | rm -f conftest.er1 | |
16863 | cat conftest.err >&5 | |
a848cd7e SC |
16864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16865 | (exit $ac_status); } && | |
07158944 | 16866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16868 | (eval $ac_try) 2>&5 | |
16869 | ac_status=$? | |
16870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16871 | (exit $ac_status); }; } && | |
16872 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16874 | (eval $ac_try) 2>&5 | |
16875 | ac_status=$? | |
16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16877 | (exit $ac_status); }; }; then | |
16878 | ac_hi=$ac_mid | |
16879 | else | |
16880 | echo "$as_me: failed program was:" >&5 | |
16881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16882 | ||
16883 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16884 | fi | |
ac1cb8d3 | 16885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16886 | done |
16887 | case $ac_lo in | |
16888 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16889 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16890 | See \`config.log' for more details." >&5 | |
16891 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16892 | See \`config.log' for more details." >&2;} | |
16893 | { (exit 1); exit 1; }; } ;; | |
16894 | esac | |
16895 | else | |
16896 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
16897 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16898 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16899 | { (exit 1); exit 1; }; } |
16900 | else | |
16901 | cat >conftest.$ac_ext <<_ACEOF | |
16902 | /* confdefs.h. */ | |
16903 | _ACEOF | |
16904 | cat confdefs.h >>conftest.$ac_ext | |
16905 | cat >>conftest.$ac_ext <<_ACEOF | |
16906 | /* end confdefs.h. */ | |
16907 | $ac_includes_default | |
16908 | long longval () { return (long) (sizeof (int)); } | |
16909 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16910 | #include <stdio.h> | |
16911 | #include <stdlib.h> | |
16912 | int | |
16913 | main () | |
16914 | { | |
16915 | ||
16916 | FILE *f = fopen ("conftest.val", "w"); | |
16917 | if (! f) | |
16918 | exit (1); | |
16919 | if (((long) (sizeof (int))) < 0) | |
16920 | { | |
16921 | long i = longval (); | |
16922 | if (i != ((long) (sizeof (int)))) | |
16923 | exit (1); | |
16924 | fprintf (f, "%ld\n", i); | |
16925 | } | |
16926 | else | |
16927 | { | |
16928 | unsigned long i = ulongval (); | |
16929 | if (i != ((long) (sizeof (int)))) | |
16930 | exit (1); | |
16931 | fprintf (f, "%lu\n", i); | |
16932 | } | |
16933 | exit (ferror (f) || fclose (f) != 0); | |
16934 | ||
16935 | ; | |
16936 | return 0; | |
16937 | } | |
16938 | _ACEOF | |
16939 | rm -f conftest$ac_exeext | |
16940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16941 | (eval $ac_link) 2>&5 | |
16942 | ac_status=$? | |
16943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16944 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16946 | (eval $ac_try) 2>&5 | |
16947 | ac_status=$? | |
16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16949 | (exit $ac_status); }; }; then | |
16950 | ac_cv_sizeof_int=`cat conftest.val` | |
16951 | else | |
16952 | echo "$as_me: program exited with status $ac_status" >&5 | |
16953 | echo "$as_me: failed program was:" >&5 | |
16954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16955 | ||
16956 | ( exit $ac_status ) | |
16957 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16958 | See \`config.log' for more details." >&5 | |
16959 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16960 | See \`config.log' for more details." >&2;} | |
16961 | { (exit 1); exit 1; }; } | |
16962 | fi | |
ac1cb8d3 | 16963 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16964 | fi |
16965 | fi | |
16966 | rm -f conftest.val | |
16967 | else | |
16968 | ac_cv_sizeof_int=0 | |
16969 | fi | |
16970 | fi | |
16971 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16972 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16973 | cat >>confdefs.h <<_ACEOF | |
16974 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16975 | _ACEOF | |
16976 | ||
16977 | ||
16978 | echo "$as_me:$LINENO: checking for long" >&5 | |
16979 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16980 | if test "${ac_cv_type_long+set}" = set; then | |
16981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16982 | else | |
16983 | cat >conftest.$ac_ext <<_ACEOF | |
16984 | /* confdefs.h. */ | |
16985 | _ACEOF | |
16986 | cat confdefs.h >>conftest.$ac_ext | |
16987 | cat >>conftest.$ac_ext <<_ACEOF | |
16988 | /* end confdefs.h. */ | |
16989 | $ac_includes_default | |
16990 | int | |
16991 | main () | |
16992 | { | |
16993 | if ((long *) 0) | |
16994 | return 0; | |
16995 | if (sizeof (long)) | |
16996 | return 0; | |
16997 | ; | |
16998 | return 0; | |
16999 | } | |
17000 | _ACEOF | |
17001 | rm -f conftest.$ac_objext | |
17002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17004 | ac_status=$? |
ac1cb8d3 VS |
17005 | grep -v '^ *+' conftest.er1 >conftest.err |
17006 | rm -f conftest.er1 | |
17007 | cat conftest.err >&5 | |
a848cd7e SC |
17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17009 | (exit $ac_status); } && | |
07158944 | 17010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17012 | (eval $ac_try) 2>&5 | |
17013 | ac_status=$? | |
17014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17015 | (exit $ac_status); }; } && | |
17016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17018 | (eval $ac_try) 2>&5 | |
17019 | ac_status=$? | |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17021 | (exit $ac_status); }; }; then | |
17022 | ac_cv_type_long=yes | |
17023 | else | |
17024 | echo "$as_me: failed program was:" >&5 | |
17025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17026 | ||
17027 | ac_cv_type_long=no | |
17028 | fi | |
ac1cb8d3 | 17029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17030 | fi |
17031 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
17032 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
17033 | ||
17034 | echo "$as_me:$LINENO: checking size of long" >&5 | |
17035 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
17036 | if test "${ac_cv_sizeof_long+set}" = set; then | |
17037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17038 | else | |
17039 | if test "$ac_cv_type_long" = yes; then | |
17040 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17041 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17042 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17043 | # This bug is HP SR number 8606223364. | |
17044 | if test "$cross_compiling" = yes; then | |
17045 | # Depending upon the size, compute the lo and hi bounds. | |
17046 | cat >conftest.$ac_ext <<_ACEOF | |
17047 | /* confdefs.h. */ | |
17048 | _ACEOF | |
17049 | cat confdefs.h >>conftest.$ac_ext | |
17050 | cat >>conftest.$ac_ext <<_ACEOF | |
17051 | /* end confdefs.h. */ | |
17052 | $ac_includes_default | |
17053 | int | |
17054 | main () | |
17055 | { | |
17056 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
17057 | test_array [0] = 0 | |
17058 | ||
17059 | ; | |
17060 | return 0; | |
17061 | } | |
17062 | _ACEOF | |
17063 | rm -f conftest.$ac_objext | |
17064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17065 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17066 | ac_status=$? |
ac1cb8d3 VS |
17067 | grep -v '^ *+' conftest.er1 >conftest.err |
17068 | rm -f conftest.er1 | |
17069 | cat conftest.err >&5 | |
a848cd7e SC |
17070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17071 | (exit $ac_status); } && | |
07158944 | 17072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17074 | (eval $ac_try) 2>&5 | |
17075 | ac_status=$? | |
17076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17077 | (exit $ac_status); }; } && | |
17078 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17080 | (eval $ac_try) 2>&5 | |
17081 | ac_status=$? | |
17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17083 | (exit $ac_status); }; }; then | |
17084 | ac_lo=0 ac_mid=0 | |
17085 | while :; do | |
17086 | cat >conftest.$ac_ext <<_ACEOF | |
17087 | /* confdefs.h. */ | |
17088 | _ACEOF | |
17089 | cat confdefs.h >>conftest.$ac_ext | |
17090 | cat >>conftest.$ac_ext <<_ACEOF | |
17091 | /* end confdefs.h. */ | |
17092 | $ac_includes_default | |
17093 | int | |
17094 | main () | |
17095 | { | |
17096 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17097 | test_array [0] = 0 | |
17098 | ||
17099 | ; | |
17100 | return 0; | |
17101 | } | |
17102 | _ACEOF | |
17103 | rm -f conftest.$ac_objext | |
17104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17106 | ac_status=$? |
ac1cb8d3 VS |
17107 | grep -v '^ *+' conftest.er1 >conftest.err |
17108 | rm -f conftest.er1 | |
17109 | cat conftest.err >&5 | |
a848cd7e SC |
17110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17111 | (exit $ac_status); } && | |
07158944 | 17112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17114 | (eval $ac_try) 2>&5 | |
17115 | ac_status=$? | |
17116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17117 | (exit $ac_status); }; } && | |
17118 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17120 | (eval $ac_try) 2>&5 | |
17121 | ac_status=$? | |
17122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17123 | (exit $ac_status); }; }; then | |
17124 | ac_hi=$ac_mid; break | |
17125 | else | |
17126 | echo "$as_me: failed program was:" >&5 | |
17127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17128 | ||
17129 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17130 | if test $ac_lo -le $ac_mid; then |
17131 | ac_lo= ac_hi= | |
17132 | break | |
17133 | fi | |
17134 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17135 | fi |
ac1cb8d3 | 17136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17137 | done |
17138 | else | |
17139 | echo "$as_me: failed program was:" >&5 | |
17140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17141 | ||
17142 | cat >conftest.$ac_ext <<_ACEOF | |
17143 | /* confdefs.h. */ | |
17144 | _ACEOF | |
17145 | cat confdefs.h >>conftest.$ac_ext | |
17146 | cat >>conftest.$ac_ext <<_ACEOF | |
17147 | /* end confdefs.h. */ | |
17148 | $ac_includes_default | |
17149 | int | |
17150 | main () | |
17151 | { | |
17152 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17153 | test_array [0] = 0 | |
17154 | ||
17155 | ; | |
17156 | return 0; | |
17157 | } | |
17158 | _ACEOF | |
17159 | rm -f conftest.$ac_objext | |
17160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17161 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17162 | ac_status=$? |
ac1cb8d3 VS |
17163 | grep -v '^ *+' conftest.er1 >conftest.err |
17164 | rm -f conftest.er1 | |
17165 | cat conftest.err >&5 | |
a848cd7e SC |
17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17167 | (exit $ac_status); } && | |
07158944 | 17168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17170 | (eval $ac_try) 2>&5 | |
17171 | ac_status=$? | |
17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17173 | (exit $ac_status); }; } && | |
17174 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17176 | (eval $ac_try) 2>&5 | |
17177 | ac_status=$? | |
17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17179 | (exit $ac_status); }; }; then | |
17180 | ac_hi=-1 ac_mid=-1 | |
17181 | while :; do | |
17182 | cat >conftest.$ac_ext <<_ACEOF | |
17183 | /* confdefs.h. */ | |
17184 | _ACEOF | |
17185 | cat confdefs.h >>conftest.$ac_ext | |
17186 | cat >>conftest.$ac_ext <<_ACEOF | |
17187 | /* end confdefs.h. */ | |
17188 | $ac_includes_default | |
17189 | int | |
17190 | main () | |
17191 | { | |
17192 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17193 | test_array [0] = 0 | |
17194 | ||
17195 | ; | |
17196 | return 0; | |
17197 | } | |
17198 | _ACEOF | |
17199 | rm -f conftest.$ac_objext | |
17200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17201 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17202 | ac_status=$? |
ac1cb8d3 VS |
17203 | grep -v '^ *+' conftest.er1 >conftest.err |
17204 | rm -f conftest.er1 | |
17205 | cat conftest.err >&5 | |
a848cd7e SC |
17206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17207 | (exit $ac_status); } && | |
07158944 | 17208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17210 | (eval $ac_try) 2>&5 | |
17211 | ac_status=$? | |
17212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17213 | (exit $ac_status); }; } && | |
17214 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17216 | (eval $ac_try) 2>&5 | |
17217 | ac_status=$? | |
17218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17219 | (exit $ac_status); }; }; then | |
17220 | ac_lo=$ac_mid; break | |
17221 | else | |
17222 | echo "$as_me: failed program was:" >&5 | |
17223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17224 | ||
17225 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17226 | if test $ac_mid -le $ac_hi; then |
17227 | ac_lo= ac_hi= | |
17228 | break | |
17229 | fi | |
17230 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17231 | fi |
ac1cb8d3 | 17232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17233 | done |
17234 | else | |
17235 | echo "$as_me: failed program was:" >&5 | |
17236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17237 | ||
17238 | ac_lo= ac_hi= | |
17239 | fi | |
ac1cb8d3 | 17240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17241 | fi |
ac1cb8d3 | 17242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17243 | # Binary search between lo and hi bounds. |
17244 | while test "x$ac_lo" != "x$ac_hi"; do | |
17245 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17246 | cat >conftest.$ac_ext <<_ACEOF | |
17247 | /* confdefs.h. */ | |
17248 | _ACEOF | |
17249 | cat confdefs.h >>conftest.$ac_ext | |
17250 | cat >>conftest.$ac_ext <<_ACEOF | |
17251 | /* end confdefs.h. */ | |
17252 | $ac_includes_default | |
17253 | int | |
17254 | main () | |
17255 | { | |
17256 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17257 | test_array [0] = 0 | |
17258 | ||
17259 | ; | |
17260 | return 0; | |
17261 | } | |
17262 | _ACEOF | |
17263 | rm -f conftest.$ac_objext | |
17264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17265 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17266 | ac_status=$? |
ac1cb8d3 VS |
17267 | grep -v '^ *+' conftest.er1 >conftest.err |
17268 | rm -f conftest.er1 | |
17269 | cat conftest.err >&5 | |
a848cd7e SC |
17270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17271 | (exit $ac_status); } && | |
07158944 | 17272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17274 | (eval $ac_try) 2>&5 | |
17275 | ac_status=$? | |
17276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17277 | (exit $ac_status); }; } && | |
17278 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17280 | (eval $ac_try) 2>&5 | |
17281 | ac_status=$? | |
17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17283 | (exit $ac_status); }; }; then | |
17284 | ac_hi=$ac_mid | |
17285 | else | |
17286 | echo "$as_me: failed program was:" >&5 | |
17287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17288 | ||
17289 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17290 | fi | |
ac1cb8d3 | 17291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17292 | done |
17293 | case $ac_lo in | |
17294 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17295 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17296 | See \`config.log' for more details." >&5 | |
17297 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17298 | See \`config.log' for more details." >&2;} | |
17299 | { (exit 1); exit 1; }; } ;; | |
17300 | esac | |
17301 | else | |
17302 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
17303 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17304 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17305 | { (exit 1); exit 1; }; } |
17306 | else | |
17307 | cat >conftest.$ac_ext <<_ACEOF | |
17308 | /* confdefs.h. */ | |
17309 | _ACEOF | |
17310 | cat confdefs.h >>conftest.$ac_ext | |
17311 | cat >>conftest.$ac_ext <<_ACEOF | |
17312 | /* end confdefs.h. */ | |
17313 | $ac_includes_default | |
17314 | long longval () { return (long) (sizeof (long)); } | |
17315 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17316 | #include <stdio.h> | |
17317 | #include <stdlib.h> | |
17318 | int | |
17319 | main () | |
17320 | { | |
17321 | ||
17322 | FILE *f = fopen ("conftest.val", "w"); | |
17323 | if (! f) | |
17324 | exit (1); | |
17325 | if (((long) (sizeof (long))) < 0) | |
17326 | { | |
17327 | long i = longval (); | |
17328 | if (i != ((long) (sizeof (long)))) | |
17329 | exit (1); | |
17330 | fprintf (f, "%ld\n", i); | |
17331 | } | |
17332 | else | |
17333 | { | |
17334 | unsigned long i = ulongval (); | |
17335 | if (i != ((long) (sizeof (long)))) | |
17336 | exit (1); | |
17337 | fprintf (f, "%lu\n", i); | |
17338 | } | |
17339 | exit (ferror (f) || fclose (f) != 0); | |
17340 | ||
17341 | ; | |
17342 | return 0; | |
17343 | } | |
17344 | _ACEOF | |
17345 | rm -f conftest$ac_exeext | |
17346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17347 | (eval $ac_link) 2>&5 | |
17348 | ac_status=$? | |
17349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17350 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17352 | (eval $ac_try) 2>&5 | |
17353 | ac_status=$? | |
17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17355 | (exit $ac_status); }; }; then | |
17356 | ac_cv_sizeof_long=`cat conftest.val` | |
17357 | else | |
17358 | echo "$as_me: program exited with status $ac_status" >&5 | |
17359 | echo "$as_me: failed program was:" >&5 | |
17360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17361 | ||
17362 | ( exit $ac_status ) | |
17363 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17364 | See \`config.log' for more details." >&5 | |
17365 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17366 | See \`config.log' for more details." >&2;} | |
17367 | { (exit 1); exit 1; }; } | |
17368 | fi | |
ac1cb8d3 | 17369 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17370 | fi |
17371 | fi | |
17372 | rm -f conftest.val | |
17373 | else | |
17374 | ac_cv_sizeof_long=0 | |
17375 | fi | |
17376 | fi | |
17377 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17378 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17379 | cat >>confdefs.h <<_ACEOF | |
17380 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17381 | _ACEOF | |
17382 | ||
17383 | ||
17384 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17385 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17386 | if test "${ac_cv_type_size_t+set}" = set; then | |
17387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17388 | else | |
17389 | cat >conftest.$ac_ext <<_ACEOF | |
17390 | /* confdefs.h. */ | |
17391 | _ACEOF | |
17392 | cat confdefs.h >>conftest.$ac_ext | |
17393 | cat >>conftest.$ac_ext <<_ACEOF | |
17394 | /* end confdefs.h. */ | |
17395 | $ac_includes_default | |
17396 | int | |
17397 | main () | |
17398 | { | |
17399 | if ((size_t *) 0) | |
17400 | return 0; | |
17401 | if (sizeof (size_t)) | |
17402 | return 0; | |
17403 | ; | |
17404 | return 0; | |
17405 | } | |
17406 | _ACEOF | |
17407 | rm -f conftest.$ac_objext | |
17408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17410 | ac_status=$? |
ac1cb8d3 VS |
17411 | grep -v '^ *+' conftest.er1 >conftest.err |
17412 | rm -f conftest.er1 | |
17413 | cat conftest.err >&5 | |
a848cd7e SC |
17414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17415 | (exit $ac_status); } && | |
07158944 | 17416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17418 | (eval $ac_try) 2>&5 | |
17419 | ac_status=$? | |
17420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17421 | (exit $ac_status); }; } && | |
17422 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17424 | (eval $ac_try) 2>&5 | |
17425 | ac_status=$? | |
17426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17427 | (exit $ac_status); }; }; then | |
17428 | ac_cv_type_size_t=yes | |
17429 | else | |
17430 | echo "$as_me: failed program was:" >&5 | |
17431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17432 | ||
17433 | ac_cv_type_size_t=no | |
17434 | fi | |
ac1cb8d3 | 17435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17436 | fi |
17437 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17438 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17439 | ||
17440 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17441 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17442 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17444 | else | |
17445 | if test "$ac_cv_type_size_t" = yes; then | |
17446 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17447 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17448 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17449 | # This bug is HP SR number 8606223364. | |
17450 | if test "$cross_compiling" = yes; then | |
17451 | # Depending upon the size, compute the lo and hi bounds. | |
17452 | cat >conftest.$ac_ext <<_ACEOF | |
17453 | /* confdefs.h. */ | |
17454 | _ACEOF | |
17455 | cat confdefs.h >>conftest.$ac_ext | |
17456 | cat >>conftest.$ac_ext <<_ACEOF | |
17457 | /* end confdefs.h. */ | |
17458 | $ac_includes_default | |
17459 | int | |
17460 | main () | |
17461 | { | |
17462 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17463 | test_array [0] = 0 | |
17464 | ||
17465 | ; | |
17466 | return 0; | |
17467 | } | |
17468 | _ACEOF | |
17469 | rm -f conftest.$ac_objext | |
17470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17471 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17472 | ac_status=$? |
ac1cb8d3 VS |
17473 | grep -v '^ *+' conftest.er1 >conftest.err |
17474 | rm -f conftest.er1 | |
17475 | cat conftest.err >&5 | |
a848cd7e SC |
17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17477 | (exit $ac_status); } && | |
07158944 | 17478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17480 | (eval $ac_try) 2>&5 | |
17481 | ac_status=$? | |
17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17483 | (exit $ac_status); }; } && | |
17484 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17486 | (eval $ac_try) 2>&5 | |
17487 | ac_status=$? | |
17488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17489 | (exit $ac_status); }; }; then | |
17490 | ac_lo=0 ac_mid=0 | |
17491 | while :; do | |
17492 | cat >conftest.$ac_ext <<_ACEOF | |
17493 | /* confdefs.h. */ | |
17494 | _ACEOF | |
17495 | cat confdefs.h >>conftest.$ac_ext | |
17496 | cat >>conftest.$ac_ext <<_ACEOF | |
17497 | /* end confdefs.h. */ | |
17498 | $ac_includes_default | |
17499 | int | |
17500 | main () | |
17501 | { | |
17502 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17503 | test_array [0] = 0 | |
17504 | ||
17505 | ; | |
17506 | return 0; | |
17507 | } | |
17508 | _ACEOF | |
17509 | rm -f conftest.$ac_objext | |
17510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17511 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17512 | ac_status=$? |
ac1cb8d3 VS |
17513 | grep -v '^ *+' conftest.er1 >conftest.err |
17514 | rm -f conftest.er1 | |
17515 | cat conftest.err >&5 | |
a848cd7e SC |
17516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17517 | (exit $ac_status); } && | |
07158944 | 17518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17520 | (eval $ac_try) 2>&5 | |
17521 | ac_status=$? | |
17522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17523 | (exit $ac_status); }; } && | |
17524 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17526 | (eval $ac_try) 2>&5 | |
17527 | ac_status=$? | |
17528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17529 | (exit $ac_status); }; }; then | |
17530 | ac_hi=$ac_mid; break | |
17531 | else | |
17532 | echo "$as_me: failed program was:" >&5 | |
17533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17534 | ||
17535 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17536 | if test $ac_lo -le $ac_mid; then |
17537 | ac_lo= ac_hi= | |
17538 | break | |
17539 | fi | |
17540 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17541 | fi |
ac1cb8d3 | 17542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17543 | done |
17544 | else | |
17545 | echo "$as_me: failed program was:" >&5 | |
17546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17547 | ||
17548 | cat >conftest.$ac_ext <<_ACEOF | |
17549 | /* confdefs.h. */ | |
17550 | _ACEOF | |
17551 | cat confdefs.h >>conftest.$ac_ext | |
17552 | cat >>conftest.$ac_ext <<_ACEOF | |
17553 | /* end confdefs.h. */ | |
17554 | $ac_includes_default | |
17555 | int | |
17556 | main () | |
17557 | { | |
17558 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17559 | test_array [0] = 0 | |
17560 | ||
17561 | ; | |
17562 | return 0; | |
17563 | } | |
17564 | _ACEOF | |
17565 | rm -f conftest.$ac_objext | |
17566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17567 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17568 | ac_status=$? |
ac1cb8d3 VS |
17569 | grep -v '^ *+' conftest.er1 >conftest.err |
17570 | rm -f conftest.er1 | |
17571 | cat conftest.err >&5 | |
a848cd7e SC |
17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17573 | (exit $ac_status); } && | |
07158944 | 17574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17576 | (eval $ac_try) 2>&5 | |
17577 | ac_status=$? | |
17578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17579 | (exit $ac_status); }; } && | |
17580 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17582 | (eval $ac_try) 2>&5 | |
17583 | ac_status=$? | |
17584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17585 | (exit $ac_status); }; }; then | |
17586 | ac_hi=-1 ac_mid=-1 | |
17587 | while :; do | |
17588 | cat >conftest.$ac_ext <<_ACEOF | |
17589 | /* confdefs.h. */ | |
17590 | _ACEOF | |
17591 | cat confdefs.h >>conftest.$ac_ext | |
17592 | cat >>conftest.$ac_ext <<_ACEOF | |
17593 | /* end confdefs.h. */ | |
17594 | $ac_includes_default | |
17595 | int | |
17596 | main () | |
17597 | { | |
17598 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17599 | test_array [0] = 0 | |
17600 | ||
17601 | ; | |
17602 | return 0; | |
17603 | } | |
17604 | _ACEOF | |
17605 | rm -f conftest.$ac_objext | |
17606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17607 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17608 | ac_status=$? |
ac1cb8d3 VS |
17609 | grep -v '^ *+' conftest.er1 >conftest.err |
17610 | rm -f conftest.er1 | |
17611 | cat conftest.err >&5 | |
a848cd7e SC |
17612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17613 | (exit $ac_status); } && | |
07158944 | 17614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17616 | (eval $ac_try) 2>&5 | |
17617 | ac_status=$? | |
17618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17619 | (exit $ac_status); }; } && | |
17620 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17622 | (eval $ac_try) 2>&5 | |
17623 | ac_status=$? | |
17624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17625 | (exit $ac_status); }; }; then | |
17626 | ac_lo=$ac_mid; break | |
17627 | else | |
17628 | echo "$as_me: failed program was:" >&5 | |
17629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17630 | ||
17631 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17632 | if test $ac_mid -le $ac_hi; then |
17633 | ac_lo= ac_hi= | |
17634 | break | |
17635 | fi | |
17636 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17637 | fi |
ac1cb8d3 | 17638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17639 | done |
17640 | else | |
17641 | echo "$as_me: failed program was:" >&5 | |
17642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17643 | ||
17644 | ac_lo= ac_hi= | |
17645 | fi | |
ac1cb8d3 | 17646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17647 | fi |
ac1cb8d3 | 17648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17649 | # Binary search between lo and hi bounds. |
17650 | while test "x$ac_lo" != "x$ac_hi"; do | |
17651 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17652 | cat >conftest.$ac_ext <<_ACEOF | |
17653 | /* confdefs.h. */ | |
17654 | _ACEOF | |
17655 | cat confdefs.h >>conftest.$ac_ext | |
17656 | cat >>conftest.$ac_ext <<_ACEOF | |
17657 | /* end confdefs.h. */ | |
17658 | $ac_includes_default | |
17659 | int | |
17660 | main () | |
17661 | { | |
17662 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17663 | test_array [0] = 0 | |
17664 | ||
17665 | ; | |
17666 | return 0; | |
17667 | } | |
17668 | _ACEOF | |
17669 | rm -f conftest.$ac_objext | |
17670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17671 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17672 | ac_status=$? |
ac1cb8d3 VS |
17673 | grep -v '^ *+' conftest.er1 >conftest.err |
17674 | rm -f conftest.er1 | |
17675 | cat conftest.err >&5 | |
a848cd7e SC |
17676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17677 | (exit $ac_status); } && | |
07158944 | 17678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17680 | (eval $ac_try) 2>&5 | |
17681 | ac_status=$? | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); }; } && | |
17684 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17686 | (eval $ac_try) 2>&5 | |
17687 | ac_status=$? | |
17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17689 | (exit $ac_status); }; }; then | |
17690 | ac_hi=$ac_mid | |
17691 | else | |
17692 | echo "$as_me: failed program was:" >&5 | |
17693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17694 | ||
17695 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17696 | fi | |
ac1cb8d3 | 17697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17698 | done |
17699 | case $ac_lo in | |
17700 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17701 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17702 | See \`config.log' for more details." >&5 | |
17703 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17704 | See \`config.log' for more details." >&2;} | |
17705 | { (exit 1); exit 1; }; } ;; | |
17706 | esac | |
17707 | else | |
17708 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
17709 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17710 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17711 | { (exit 1); exit 1; }; } |
17712 | else | |
17713 | cat >conftest.$ac_ext <<_ACEOF | |
17714 | /* confdefs.h. */ | |
17715 | _ACEOF | |
17716 | cat confdefs.h >>conftest.$ac_ext | |
17717 | cat >>conftest.$ac_ext <<_ACEOF | |
17718 | /* end confdefs.h. */ | |
17719 | $ac_includes_default | |
17720 | long longval () { return (long) (sizeof (size_t)); } | |
17721 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17722 | #include <stdio.h> | |
17723 | #include <stdlib.h> | |
17724 | int | |
17725 | main () | |
17726 | { | |
17727 | ||
17728 | FILE *f = fopen ("conftest.val", "w"); | |
17729 | if (! f) | |
17730 | exit (1); | |
17731 | if (((long) (sizeof (size_t))) < 0) | |
17732 | { | |
17733 | long i = longval (); | |
17734 | if (i != ((long) (sizeof (size_t)))) | |
17735 | exit (1); | |
17736 | fprintf (f, "%ld\n", i); | |
17737 | } | |
17738 | else | |
17739 | { | |
17740 | unsigned long i = ulongval (); | |
17741 | if (i != ((long) (sizeof (size_t)))) | |
17742 | exit (1); | |
17743 | fprintf (f, "%lu\n", i); | |
17744 | } | |
17745 | exit (ferror (f) || fclose (f) != 0); | |
17746 | ||
17747 | ; | |
17748 | return 0; | |
17749 | } | |
17750 | _ACEOF | |
17751 | rm -f conftest$ac_exeext | |
17752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17753 | (eval $ac_link) 2>&5 | |
17754 | ac_status=$? | |
17755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17756 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17758 | (eval $ac_try) 2>&5 | |
17759 | ac_status=$? | |
17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | (exit $ac_status); }; }; then | |
17762 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17763 | else | |
17764 | echo "$as_me: program exited with status $ac_status" >&5 | |
17765 | echo "$as_me: failed program was:" >&5 | |
17766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17767 | ||
17768 | ( exit $ac_status ) | |
17769 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17770 | See \`config.log' for more details." >&5 | |
17771 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17772 | See \`config.log' for more details." >&2;} | |
17773 | { (exit 1); exit 1; }; } | |
17774 | fi | |
ac1cb8d3 | 17775 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17776 | fi |
17777 | fi | |
17778 | rm -f conftest.val | |
17779 | else | |
17780 | ac_cv_sizeof_size_t=0 | |
17781 | fi | |
17782 | fi | |
17783 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17784 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17785 | cat >>confdefs.h <<_ACEOF | |
17786 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17787 | _ACEOF | |
17788 | ||
17789 | ||
17790 | ||
17791 | case "${host}" in | |
17792 | arm-*-linux* ) | |
17793 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17794 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17795 | if test "${ac_cv_type_long_long+set}" = set; then | |
17796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
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 | int | |
17806 | main () | |
17807 | { | |
17808 | if ((long long *) 0) | |
17809 | return 0; | |
17810 | if (sizeof (long long)) | |
17811 | return 0; | |
17812 | ; | |
17813 | return 0; | |
17814 | } | |
17815 | _ACEOF | |
17816 | rm -f conftest.$ac_objext | |
17817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17818 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17819 | ac_status=$? |
ac1cb8d3 VS |
17820 | grep -v '^ *+' conftest.er1 >conftest.err |
17821 | rm -f conftest.er1 | |
17822 | cat conftest.err >&5 | |
a848cd7e SC |
17823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17824 | (exit $ac_status); } && | |
07158944 | 17825 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17827 | (eval $ac_try) 2>&5 | |
17828 | ac_status=$? | |
17829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17830 | (exit $ac_status); }; } && | |
17831 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17833 | (eval $ac_try) 2>&5 | |
17834 | ac_status=$? | |
17835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17836 | (exit $ac_status); }; }; then | |
17837 | ac_cv_type_long_long=yes | |
17838 | else | |
17839 | echo "$as_me: failed program was:" >&5 | |
17840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17841 | ||
17842 | ac_cv_type_long_long=no | |
17843 | fi | |
ac1cb8d3 | 17844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17845 | fi |
17846 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17847 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17848 | ||
17849 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17850 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17851 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17853 | else | |
17854 | if test "$ac_cv_type_long_long" = yes; then | |
17855 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17856 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17857 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17858 | # This bug is HP SR number 8606223364. | |
17859 | if test "$cross_compiling" = yes; then | |
17860 | # Depending upon the size, compute the lo and hi bounds. | |
17861 | cat >conftest.$ac_ext <<_ACEOF | |
17862 | /* confdefs.h. */ | |
17863 | _ACEOF | |
17864 | cat confdefs.h >>conftest.$ac_ext | |
17865 | cat >>conftest.$ac_ext <<_ACEOF | |
17866 | /* end confdefs.h. */ | |
17867 | $ac_includes_default | |
17868 | int | |
17869 | main () | |
17870 | { | |
17871 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17872 | test_array [0] = 0 | |
17873 | ||
17874 | ; | |
17875 | return 0; | |
17876 | } | |
17877 | _ACEOF | |
17878 | rm -f conftest.$ac_objext | |
17879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17880 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17881 | ac_status=$? |
ac1cb8d3 VS |
17882 | grep -v '^ *+' conftest.er1 >conftest.err |
17883 | rm -f conftest.er1 | |
17884 | cat conftest.err >&5 | |
a848cd7e SC |
17885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17886 | (exit $ac_status); } && | |
07158944 | 17887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17889 | (eval $ac_try) 2>&5 | |
17890 | ac_status=$? | |
17891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17892 | (exit $ac_status); }; } && | |
17893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17895 | (eval $ac_try) 2>&5 | |
17896 | ac_status=$? | |
17897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17898 | (exit $ac_status); }; }; then | |
17899 | ac_lo=0 ac_mid=0 | |
17900 | while :; do | |
17901 | cat >conftest.$ac_ext <<_ACEOF | |
17902 | /* confdefs.h. */ | |
17903 | _ACEOF | |
17904 | cat confdefs.h >>conftest.$ac_ext | |
17905 | cat >>conftest.$ac_ext <<_ACEOF | |
17906 | /* end confdefs.h. */ | |
17907 | $ac_includes_default | |
17908 | int | |
17909 | main () | |
17910 | { | |
17911 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17912 | test_array [0] = 0 | |
17913 | ||
17914 | ; | |
17915 | return 0; | |
17916 | } | |
17917 | _ACEOF | |
17918 | rm -f conftest.$ac_objext | |
17919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17921 | ac_status=$? |
ac1cb8d3 VS |
17922 | grep -v '^ *+' conftest.er1 >conftest.err |
17923 | rm -f conftest.er1 | |
17924 | cat conftest.err >&5 | |
a848cd7e SC |
17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17926 | (exit $ac_status); } && | |
07158944 | 17927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17929 | (eval $ac_try) 2>&5 | |
17930 | ac_status=$? | |
17931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17932 | (exit $ac_status); }; } && | |
17933 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17935 | (eval $ac_try) 2>&5 | |
17936 | ac_status=$? | |
17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17938 | (exit $ac_status); }; }; then | |
17939 | ac_hi=$ac_mid; break | |
17940 | else | |
17941 | echo "$as_me: failed program was:" >&5 | |
17942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17943 | ||
17944 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17945 | if test $ac_lo -le $ac_mid; then |
17946 | ac_lo= ac_hi= | |
17947 | break | |
17948 | fi | |
17949 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17950 | fi |
ac1cb8d3 | 17951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17952 | done |
17953 | else | |
17954 | echo "$as_me: failed program was:" >&5 | |
17955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17956 | ||
17957 | cat >conftest.$ac_ext <<_ACEOF | |
17958 | /* confdefs.h. */ | |
17959 | _ACEOF | |
17960 | cat confdefs.h >>conftest.$ac_ext | |
17961 | cat >>conftest.$ac_ext <<_ACEOF | |
17962 | /* end confdefs.h. */ | |
17963 | $ac_includes_default | |
17964 | int | |
17965 | main () | |
17966 | { | |
17967 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17968 | test_array [0] = 0 | |
17969 | ||
17970 | ; | |
17971 | return 0; | |
17972 | } | |
17973 | _ACEOF | |
17974 | rm -f conftest.$ac_objext | |
17975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17976 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17977 | ac_status=$? |
ac1cb8d3 VS |
17978 | grep -v '^ *+' conftest.er1 >conftest.err |
17979 | rm -f conftest.er1 | |
17980 | cat conftest.err >&5 | |
a848cd7e SC |
17981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17982 | (exit $ac_status); } && | |
07158944 | 17983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17985 | (eval $ac_try) 2>&5 | |
17986 | ac_status=$? | |
17987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17988 | (exit $ac_status); }; } && | |
17989 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17991 | (eval $ac_try) 2>&5 | |
17992 | ac_status=$? | |
17993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17994 | (exit $ac_status); }; }; then | |
17995 | ac_hi=-1 ac_mid=-1 | |
17996 | while :; do | |
17997 | cat >conftest.$ac_ext <<_ACEOF | |
17998 | /* confdefs.h. */ | |
17999 | _ACEOF | |
18000 | cat confdefs.h >>conftest.$ac_ext | |
18001 | cat >>conftest.$ac_ext <<_ACEOF | |
18002 | /* end confdefs.h. */ | |
18003 | $ac_includes_default | |
18004 | int | |
18005 | main () | |
18006 | { | |
18007 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18008 | test_array [0] = 0 | |
18009 | ||
18010 | ; | |
18011 | return 0; | |
18012 | } | |
18013 | _ACEOF | |
18014 | rm -f conftest.$ac_objext | |
18015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18017 | ac_status=$? |
ac1cb8d3 VS |
18018 | grep -v '^ *+' conftest.er1 >conftest.err |
18019 | rm -f conftest.er1 | |
18020 | cat conftest.err >&5 | |
a848cd7e SC |
18021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18022 | (exit $ac_status); } && | |
07158944 | 18023 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18025 | (eval $ac_try) 2>&5 | |
18026 | ac_status=$? | |
18027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18028 | (exit $ac_status); }; } && | |
18029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18031 | (eval $ac_try) 2>&5 | |
18032 | ac_status=$? | |
18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18034 | (exit $ac_status); }; }; then | |
18035 | ac_lo=$ac_mid; break | |
18036 | else | |
18037 | echo "$as_me: failed program was:" >&5 | |
18038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18039 | ||
18040 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18041 | if test $ac_mid -le $ac_hi; then |
18042 | ac_lo= ac_hi= | |
18043 | break | |
18044 | fi | |
18045 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18046 | fi |
ac1cb8d3 | 18047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18048 | done |
18049 | else | |
18050 | echo "$as_me: failed program was:" >&5 | |
18051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18052 | ||
18053 | ac_lo= ac_hi= | |
18054 | fi | |
ac1cb8d3 | 18055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18056 | fi |
ac1cb8d3 | 18057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18058 | # Binary search between lo and hi bounds. |
18059 | while test "x$ac_lo" != "x$ac_hi"; do | |
18060 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18061 | cat >conftest.$ac_ext <<_ACEOF | |
18062 | /* confdefs.h. */ | |
18063 | _ACEOF | |
18064 | cat confdefs.h >>conftest.$ac_ext | |
18065 | cat >>conftest.$ac_ext <<_ACEOF | |
18066 | /* end confdefs.h. */ | |
18067 | $ac_includes_default | |
18068 | int | |
18069 | main () | |
18070 | { | |
18071 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18072 | test_array [0] = 0 | |
18073 | ||
18074 | ; | |
18075 | return 0; | |
18076 | } | |
18077 | _ACEOF | |
18078 | rm -f conftest.$ac_objext | |
18079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18080 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18081 | ac_status=$? |
ac1cb8d3 VS |
18082 | grep -v '^ *+' conftest.er1 >conftest.err |
18083 | rm -f conftest.er1 | |
18084 | cat conftest.err >&5 | |
a848cd7e SC |
18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18086 | (exit $ac_status); } && | |
07158944 | 18087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18089 | (eval $ac_try) 2>&5 | |
18090 | ac_status=$? | |
18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18092 | (exit $ac_status); }; } && | |
18093 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18095 | (eval $ac_try) 2>&5 | |
18096 | ac_status=$? | |
18097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18098 | (exit $ac_status); }; }; then | |
18099 | ac_hi=$ac_mid | |
18100 | else | |
18101 | echo "$as_me: failed program was:" >&5 | |
18102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18103 | ||
18104 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18105 | fi | |
ac1cb8d3 | 18106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18107 | done |
18108 | case $ac_lo in | |
18109 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18110 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18111 | See \`config.log' for more details." >&5 | |
18112 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18113 | See \`config.log' for more details." >&2;} | |
18114 | { (exit 1); exit 1; }; } ;; | |
18115 | esac | |
18116 | else | |
18117 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
18118 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18119 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18120 | { (exit 1); exit 1; }; } |
18121 | else | |
18122 | cat >conftest.$ac_ext <<_ACEOF | |
18123 | /* confdefs.h. */ | |
18124 | _ACEOF | |
18125 | cat confdefs.h >>conftest.$ac_ext | |
18126 | cat >>conftest.$ac_ext <<_ACEOF | |
18127 | /* end confdefs.h. */ | |
18128 | $ac_includes_default | |
18129 | long longval () { return (long) (sizeof (long long)); } | |
18130 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18131 | #include <stdio.h> | |
18132 | #include <stdlib.h> | |
18133 | int | |
18134 | main () | |
18135 | { | |
18136 | ||
18137 | FILE *f = fopen ("conftest.val", "w"); | |
18138 | if (! f) | |
18139 | exit (1); | |
18140 | if (((long) (sizeof (long long))) < 0) | |
18141 | { | |
18142 | long i = longval (); | |
18143 | if (i != ((long) (sizeof (long long)))) | |
18144 | exit (1); | |
18145 | fprintf (f, "%ld\n", i); | |
18146 | } | |
18147 | else | |
18148 | { | |
18149 | unsigned long i = ulongval (); | |
18150 | if (i != ((long) (sizeof (long long)))) | |
18151 | exit (1); | |
18152 | fprintf (f, "%lu\n", i); | |
18153 | } | |
18154 | exit (ferror (f) || fclose (f) != 0); | |
18155 | ||
18156 | ; | |
18157 | return 0; | |
18158 | } | |
18159 | _ACEOF | |
18160 | rm -f conftest$ac_exeext | |
18161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18162 | (eval $ac_link) 2>&5 | |
18163 | ac_status=$? | |
18164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18165 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18167 | (eval $ac_try) 2>&5 | |
18168 | ac_status=$? | |
18169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18170 | (exit $ac_status); }; }; then | |
18171 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18172 | else | |
18173 | echo "$as_me: program exited with status $ac_status" >&5 | |
18174 | echo "$as_me: failed program was:" >&5 | |
18175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18176 | ||
18177 | ( exit $ac_status ) | |
18178 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18179 | See \`config.log' for more details." >&5 | |
18180 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18181 | See \`config.log' for more details." >&2;} | |
18182 | { (exit 1); exit 1; }; } | |
18183 | fi | |
ac1cb8d3 | 18184 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18185 | fi |
18186 | fi | |
18187 | rm -f conftest.val | |
18188 | else | |
18189 | ac_cv_sizeof_long_long=0 | |
18190 | fi | |
18191 | fi | |
18192 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18193 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18194 | cat >>confdefs.h <<_ACEOF | |
18195 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18196 | _ACEOF | |
18197 | ||
18198 | ||
18199 | ;; | |
18200 | *-hp-hpux* ) | |
18201 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18202 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18203 | if test "${ac_cv_type_long_long+set}" = set; then | |
18204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18205 | else | |
18206 | cat >conftest.$ac_ext <<_ACEOF | |
18207 | /* confdefs.h. */ | |
18208 | _ACEOF | |
18209 | cat confdefs.h >>conftest.$ac_ext | |
18210 | cat >>conftest.$ac_ext <<_ACEOF | |
18211 | /* end confdefs.h. */ | |
18212 | $ac_includes_default | |
18213 | int | |
18214 | main () | |
18215 | { | |
18216 | if ((long long *) 0) | |
18217 | return 0; | |
18218 | if (sizeof (long long)) | |
18219 | return 0; | |
18220 | ; | |
18221 | return 0; | |
18222 | } | |
18223 | _ACEOF | |
18224 | rm -f conftest.$ac_objext | |
18225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18227 | ac_status=$? |
ac1cb8d3 VS |
18228 | grep -v '^ *+' conftest.er1 >conftest.err |
18229 | rm -f conftest.er1 | |
18230 | cat conftest.err >&5 | |
a848cd7e SC |
18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18232 | (exit $ac_status); } && | |
07158944 | 18233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18235 | (eval $ac_try) 2>&5 | |
18236 | ac_status=$? | |
18237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18238 | (exit $ac_status); }; } && | |
18239 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18241 | (eval $ac_try) 2>&5 | |
18242 | ac_status=$? | |
18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18244 | (exit $ac_status); }; }; then | |
18245 | ac_cv_type_long_long=yes | |
18246 | else | |
18247 | echo "$as_me: failed program was:" >&5 | |
18248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18249 | ||
18250 | ac_cv_type_long_long=no | |
18251 | fi | |
ac1cb8d3 | 18252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18253 | fi |
18254 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18255 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18256 | ||
18257 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18258 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18259 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18261 | else | |
18262 | if test "$ac_cv_type_long_long" = yes; then | |
18263 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18264 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18265 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18266 | # This bug is HP SR number 8606223364. | |
18267 | if test "$cross_compiling" = yes; then | |
18268 | # Depending upon the size, compute the lo and hi bounds. | |
18269 | cat >conftest.$ac_ext <<_ACEOF | |
18270 | /* confdefs.h. */ | |
18271 | _ACEOF | |
18272 | cat confdefs.h >>conftest.$ac_ext | |
18273 | cat >>conftest.$ac_ext <<_ACEOF | |
18274 | /* end confdefs.h. */ | |
18275 | $ac_includes_default | |
18276 | int | |
18277 | main () | |
18278 | { | |
18279 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18280 | test_array [0] = 0 | |
18281 | ||
18282 | ; | |
18283 | return 0; | |
18284 | } | |
18285 | _ACEOF | |
18286 | rm -f conftest.$ac_objext | |
18287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18288 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18289 | ac_status=$? |
ac1cb8d3 VS |
18290 | grep -v '^ *+' conftest.er1 >conftest.err |
18291 | rm -f conftest.er1 | |
18292 | cat conftest.err >&5 | |
a848cd7e SC |
18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18294 | (exit $ac_status); } && | |
07158944 | 18295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18297 | (eval $ac_try) 2>&5 | |
18298 | ac_status=$? | |
18299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18300 | (exit $ac_status); }; } && | |
18301 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18303 | (eval $ac_try) 2>&5 | |
18304 | ac_status=$? | |
18305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18306 | (exit $ac_status); }; }; then | |
18307 | ac_lo=0 ac_mid=0 | |
18308 | while :; do | |
18309 | cat >conftest.$ac_ext <<_ACEOF | |
18310 | /* confdefs.h. */ | |
18311 | _ACEOF | |
18312 | cat confdefs.h >>conftest.$ac_ext | |
18313 | cat >>conftest.$ac_ext <<_ACEOF | |
18314 | /* end confdefs.h. */ | |
18315 | $ac_includes_default | |
18316 | int | |
18317 | main () | |
18318 | { | |
18319 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18320 | test_array [0] = 0 | |
18321 | ||
18322 | ; | |
18323 | return 0; | |
18324 | } | |
18325 | _ACEOF | |
18326 | rm -f conftest.$ac_objext | |
18327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18328 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18329 | ac_status=$? |
ac1cb8d3 VS |
18330 | grep -v '^ *+' conftest.er1 >conftest.err |
18331 | rm -f conftest.er1 | |
18332 | cat conftest.err >&5 | |
a848cd7e SC |
18333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18334 | (exit $ac_status); } && | |
07158944 | 18335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18337 | (eval $ac_try) 2>&5 | |
18338 | ac_status=$? | |
18339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18340 | (exit $ac_status); }; } && | |
18341 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18343 | (eval $ac_try) 2>&5 | |
18344 | ac_status=$? | |
18345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18346 | (exit $ac_status); }; }; then | |
18347 | ac_hi=$ac_mid; break | |
18348 | else | |
18349 | echo "$as_me: failed program was:" >&5 | |
18350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18351 | ||
18352 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18353 | if test $ac_lo -le $ac_mid; then |
18354 | ac_lo= ac_hi= | |
18355 | break | |
18356 | fi | |
18357 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18358 | fi |
ac1cb8d3 | 18359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18360 | done |
18361 | else | |
18362 | echo "$as_me: failed program was:" >&5 | |
18363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18364 | ||
18365 | cat >conftest.$ac_ext <<_ACEOF | |
18366 | /* confdefs.h. */ | |
18367 | _ACEOF | |
18368 | cat confdefs.h >>conftest.$ac_ext | |
18369 | cat >>conftest.$ac_ext <<_ACEOF | |
18370 | /* end confdefs.h. */ | |
18371 | $ac_includes_default | |
18372 | int | |
18373 | main () | |
18374 | { | |
18375 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18376 | test_array [0] = 0 | |
18377 | ||
18378 | ; | |
18379 | return 0; | |
18380 | } | |
18381 | _ACEOF | |
18382 | rm -f conftest.$ac_objext | |
18383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18384 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18385 | ac_status=$? |
ac1cb8d3 VS |
18386 | grep -v '^ *+' conftest.er1 >conftest.err |
18387 | rm -f conftest.er1 | |
18388 | cat conftest.err >&5 | |
a848cd7e SC |
18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18390 | (exit $ac_status); } && | |
07158944 | 18391 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18393 | (eval $ac_try) 2>&5 | |
18394 | ac_status=$? | |
18395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18396 | (exit $ac_status); }; } && | |
18397 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18399 | (eval $ac_try) 2>&5 | |
18400 | ac_status=$? | |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18402 | (exit $ac_status); }; }; then | |
18403 | ac_hi=-1 ac_mid=-1 | |
18404 | while :; do | |
18405 | cat >conftest.$ac_ext <<_ACEOF | |
18406 | /* confdefs.h. */ | |
18407 | _ACEOF | |
18408 | cat confdefs.h >>conftest.$ac_ext | |
18409 | cat >>conftest.$ac_ext <<_ACEOF | |
18410 | /* end confdefs.h. */ | |
18411 | $ac_includes_default | |
18412 | int | |
18413 | main () | |
18414 | { | |
18415 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18416 | test_array [0] = 0 | |
18417 | ||
18418 | ; | |
18419 | return 0; | |
18420 | } | |
18421 | _ACEOF | |
18422 | rm -f conftest.$ac_objext | |
18423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18425 | ac_status=$? |
ac1cb8d3 VS |
18426 | grep -v '^ *+' conftest.er1 >conftest.err |
18427 | rm -f conftest.er1 | |
18428 | cat conftest.err >&5 | |
a848cd7e SC |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18430 | (exit $ac_status); } && | |
07158944 | 18431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18433 | (eval $ac_try) 2>&5 | |
18434 | ac_status=$? | |
18435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18436 | (exit $ac_status); }; } && | |
18437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18439 | (eval $ac_try) 2>&5 | |
18440 | ac_status=$? | |
18441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18442 | (exit $ac_status); }; }; then | |
18443 | ac_lo=$ac_mid; break | |
18444 | else | |
18445 | echo "$as_me: failed program was:" >&5 | |
18446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18447 | ||
18448 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18449 | if test $ac_mid -le $ac_hi; then |
18450 | ac_lo= ac_hi= | |
18451 | break | |
18452 | fi | |
18453 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18454 | fi |
ac1cb8d3 | 18455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18456 | done |
18457 | else | |
18458 | echo "$as_me: failed program was:" >&5 | |
18459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18460 | ||
18461 | ac_lo= ac_hi= | |
18462 | fi | |
ac1cb8d3 | 18463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18464 | fi |
ac1cb8d3 | 18465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18466 | # Binary search between lo and hi bounds. |
18467 | while test "x$ac_lo" != "x$ac_hi"; do | |
18468 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18469 | cat >conftest.$ac_ext <<_ACEOF | |
18470 | /* confdefs.h. */ | |
18471 | _ACEOF | |
18472 | cat confdefs.h >>conftest.$ac_ext | |
18473 | cat >>conftest.$ac_ext <<_ACEOF | |
18474 | /* end confdefs.h. */ | |
18475 | $ac_includes_default | |
18476 | int | |
18477 | main () | |
18478 | { | |
18479 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18480 | test_array [0] = 0 | |
18481 | ||
18482 | ; | |
18483 | return 0; | |
18484 | } | |
18485 | _ACEOF | |
18486 | rm -f conftest.$ac_objext | |
18487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18488 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18489 | ac_status=$? |
ac1cb8d3 VS |
18490 | grep -v '^ *+' conftest.er1 >conftest.err |
18491 | rm -f conftest.er1 | |
18492 | cat conftest.err >&5 | |
a848cd7e SC |
18493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18494 | (exit $ac_status); } && | |
07158944 | 18495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18497 | (eval $ac_try) 2>&5 | |
18498 | ac_status=$? | |
18499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18500 | (exit $ac_status); }; } && | |
18501 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18503 | (eval $ac_try) 2>&5 | |
18504 | ac_status=$? | |
18505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18506 | (exit $ac_status); }; }; then | |
18507 | ac_hi=$ac_mid | |
18508 | else | |
18509 | echo "$as_me: failed program was:" >&5 | |
18510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18511 | ||
18512 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18513 | fi | |
ac1cb8d3 | 18514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18515 | done |
18516 | case $ac_lo in | |
18517 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18518 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18519 | See \`config.log' for more details." >&5 | |
18520 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18521 | See \`config.log' for more details." >&2;} | |
18522 | { (exit 1); exit 1; }; } ;; | |
18523 | esac | |
18524 | else | |
18525 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
18526 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18527 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18528 | { (exit 1); exit 1; }; } |
18529 | else | |
18530 | cat >conftest.$ac_ext <<_ACEOF | |
18531 | /* confdefs.h. */ | |
18532 | _ACEOF | |
18533 | cat confdefs.h >>conftest.$ac_ext | |
18534 | cat >>conftest.$ac_ext <<_ACEOF | |
18535 | /* end confdefs.h. */ | |
18536 | $ac_includes_default | |
18537 | long longval () { return (long) (sizeof (long long)); } | |
18538 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18539 | #include <stdio.h> | |
18540 | #include <stdlib.h> | |
18541 | int | |
18542 | main () | |
18543 | { | |
18544 | ||
18545 | FILE *f = fopen ("conftest.val", "w"); | |
18546 | if (! f) | |
18547 | exit (1); | |
18548 | if (((long) (sizeof (long long))) < 0) | |
18549 | { | |
18550 | long i = longval (); | |
18551 | if (i != ((long) (sizeof (long long)))) | |
18552 | exit (1); | |
18553 | fprintf (f, "%ld\n", i); | |
18554 | } | |
18555 | else | |
18556 | { | |
18557 | unsigned long i = ulongval (); | |
18558 | if (i != ((long) (sizeof (long long)))) | |
18559 | exit (1); | |
18560 | fprintf (f, "%lu\n", i); | |
18561 | } | |
18562 | exit (ferror (f) || fclose (f) != 0); | |
18563 | ||
18564 | ; | |
18565 | return 0; | |
18566 | } | |
18567 | _ACEOF | |
18568 | rm -f conftest$ac_exeext | |
18569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18570 | (eval $ac_link) 2>&5 | |
18571 | ac_status=$? | |
18572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18573 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18575 | (eval $ac_try) 2>&5 | |
18576 | ac_status=$? | |
18577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18578 | (exit $ac_status); }; }; then | |
18579 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18580 | else | |
18581 | echo "$as_me: program exited with status $ac_status" >&5 | |
18582 | echo "$as_me: failed program was:" >&5 | |
18583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18584 | ||
18585 | ( exit $ac_status ) | |
18586 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18587 | See \`config.log' for more details." >&5 | |
18588 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18589 | See \`config.log' for more details." >&2;} | |
18590 | { (exit 1); exit 1; }; } | |
18591 | fi | |
ac1cb8d3 | 18592 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18593 | fi |
18594 | fi | |
18595 | rm -f conftest.val | |
18596 | else | |
18597 | ac_cv_sizeof_long_long=0 | |
18598 | fi | |
18599 | fi | |
18600 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18601 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18602 | cat >>confdefs.h <<_ACEOF | |
18603 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18604 | _ACEOF | |
18605 | ||
18606 | ||
18607 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18608 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18609 | fi | |
18610 | ;; | |
18611 | * ) | |
18612 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18613 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18614 | if test "${ac_cv_type_long_long+set}" = set; then | |
18615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18616 | else | |
18617 | cat >conftest.$ac_ext <<_ACEOF | |
18618 | /* confdefs.h. */ | |
18619 | _ACEOF | |
18620 | cat confdefs.h >>conftest.$ac_ext | |
18621 | cat >>conftest.$ac_ext <<_ACEOF | |
18622 | /* end confdefs.h. */ | |
18623 | $ac_includes_default | |
18624 | int | |
18625 | main () | |
18626 | { | |
18627 | if ((long long *) 0) | |
18628 | return 0; | |
18629 | if (sizeof (long long)) | |
18630 | return 0; | |
18631 | ; | |
18632 | return 0; | |
18633 | } | |
18634 | _ACEOF | |
18635 | rm -f conftest.$ac_objext | |
18636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18637 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18638 | ac_status=$? |
ac1cb8d3 VS |
18639 | grep -v '^ *+' conftest.er1 >conftest.err |
18640 | rm -f conftest.er1 | |
18641 | cat conftest.err >&5 | |
a848cd7e SC |
18642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18643 | (exit $ac_status); } && | |
07158944 | 18644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18646 | (eval $ac_try) 2>&5 | |
18647 | ac_status=$? | |
18648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18649 | (exit $ac_status); }; } && | |
18650 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18652 | (eval $ac_try) 2>&5 | |
18653 | ac_status=$? | |
18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18655 | (exit $ac_status); }; }; then | |
18656 | ac_cv_type_long_long=yes | |
18657 | else | |
18658 | echo "$as_me: failed program was:" >&5 | |
18659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18660 | ||
18661 | ac_cv_type_long_long=no | |
18662 | fi | |
ac1cb8d3 | 18663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18664 | fi |
18665 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18666 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18667 | ||
18668 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18669 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18670 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18672 | else | |
18673 | if test "$ac_cv_type_long_long" = yes; then | |
18674 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18675 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18676 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18677 | # This bug is HP SR number 8606223364. | |
18678 | if test "$cross_compiling" = yes; then | |
18679 | # Depending upon the size, compute the lo and hi bounds. | |
18680 | cat >conftest.$ac_ext <<_ACEOF | |
18681 | /* confdefs.h. */ | |
18682 | _ACEOF | |
18683 | cat confdefs.h >>conftest.$ac_ext | |
18684 | cat >>conftest.$ac_ext <<_ACEOF | |
18685 | /* end confdefs.h. */ | |
18686 | $ac_includes_default | |
18687 | int | |
18688 | main () | |
18689 | { | |
18690 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18691 | test_array [0] = 0 | |
18692 | ||
18693 | ; | |
18694 | return 0; | |
18695 | } | |
18696 | _ACEOF | |
18697 | rm -f conftest.$ac_objext | |
18698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18699 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18700 | ac_status=$? |
ac1cb8d3 VS |
18701 | grep -v '^ *+' conftest.er1 >conftest.err |
18702 | rm -f conftest.er1 | |
18703 | cat conftest.err >&5 | |
a848cd7e SC |
18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18705 | (exit $ac_status); } && | |
07158944 | 18706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18708 | (eval $ac_try) 2>&5 | |
18709 | ac_status=$? | |
18710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18711 | (exit $ac_status); }; } && | |
18712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18714 | (eval $ac_try) 2>&5 | |
18715 | ac_status=$? | |
18716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18717 | (exit $ac_status); }; }; then | |
18718 | ac_lo=0 ac_mid=0 | |
18719 | while :; do | |
18720 | cat >conftest.$ac_ext <<_ACEOF | |
18721 | /* confdefs.h. */ | |
18722 | _ACEOF | |
18723 | cat confdefs.h >>conftest.$ac_ext | |
18724 | cat >>conftest.$ac_ext <<_ACEOF | |
18725 | /* end confdefs.h. */ | |
18726 | $ac_includes_default | |
18727 | int | |
18728 | main () | |
18729 | { | |
18730 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18731 | test_array [0] = 0 | |
18732 | ||
18733 | ; | |
18734 | return 0; | |
18735 | } | |
18736 | _ACEOF | |
18737 | rm -f conftest.$ac_objext | |
18738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18740 | ac_status=$? |
ac1cb8d3 VS |
18741 | grep -v '^ *+' conftest.er1 >conftest.err |
18742 | rm -f conftest.er1 | |
18743 | cat conftest.err >&5 | |
a848cd7e SC |
18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18745 | (exit $ac_status); } && | |
07158944 | 18746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18748 | (eval $ac_try) 2>&5 | |
18749 | ac_status=$? | |
18750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18751 | (exit $ac_status); }; } && | |
18752 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18754 | (eval $ac_try) 2>&5 | |
18755 | ac_status=$? | |
18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18757 | (exit $ac_status); }; }; then | |
18758 | ac_hi=$ac_mid; break | |
18759 | else | |
18760 | echo "$as_me: failed program was:" >&5 | |
18761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18762 | ||
18763 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18764 | if test $ac_lo -le $ac_mid; then |
18765 | ac_lo= ac_hi= | |
18766 | break | |
18767 | fi | |
18768 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18769 | fi |
ac1cb8d3 | 18770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18771 | done |
18772 | else | |
18773 | echo "$as_me: failed program was:" >&5 | |
18774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18775 | ||
18776 | cat >conftest.$ac_ext <<_ACEOF | |
18777 | /* confdefs.h. */ | |
18778 | _ACEOF | |
18779 | cat confdefs.h >>conftest.$ac_ext | |
18780 | cat >>conftest.$ac_ext <<_ACEOF | |
18781 | /* end confdefs.h. */ | |
18782 | $ac_includes_default | |
18783 | int | |
18784 | main () | |
18785 | { | |
18786 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18787 | test_array [0] = 0 | |
18788 | ||
18789 | ; | |
18790 | return 0; | |
18791 | } | |
18792 | _ACEOF | |
18793 | rm -f conftest.$ac_objext | |
18794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18796 | ac_status=$? |
ac1cb8d3 VS |
18797 | grep -v '^ *+' conftest.er1 >conftest.err |
18798 | rm -f conftest.er1 | |
18799 | cat conftest.err >&5 | |
a848cd7e SC |
18800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18801 | (exit $ac_status); } && | |
07158944 | 18802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18804 | (eval $ac_try) 2>&5 | |
18805 | ac_status=$? | |
18806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18807 | (exit $ac_status); }; } && | |
18808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18810 | (eval $ac_try) 2>&5 | |
18811 | ac_status=$? | |
18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18813 | (exit $ac_status); }; }; then | |
18814 | ac_hi=-1 ac_mid=-1 | |
18815 | while :; do | |
18816 | cat >conftest.$ac_ext <<_ACEOF | |
18817 | /* confdefs.h. */ | |
18818 | _ACEOF | |
18819 | cat confdefs.h >>conftest.$ac_ext | |
18820 | cat >>conftest.$ac_ext <<_ACEOF | |
18821 | /* end confdefs.h. */ | |
18822 | $ac_includes_default | |
18823 | int | |
18824 | main () | |
18825 | { | |
18826 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18827 | test_array [0] = 0 | |
18828 | ||
18829 | ; | |
18830 | return 0; | |
18831 | } | |
18832 | _ACEOF | |
18833 | rm -f conftest.$ac_objext | |
18834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18835 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18836 | ac_status=$? |
ac1cb8d3 VS |
18837 | grep -v '^ *+' conftest.er1 >conftest.err |
18838 | rm -f conftest.er1 | |
18839 | cat conftest.err >&5 | |
a848cd7e SC |
18840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18841 | (exit $ac_status); } && | |
07158944 | 18842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18844 | (eval $ac_try) 2>&5 | |
18845 | ac_status=$? | |
18846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18847 | (exit $ac_status); }; } && | |
18848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18850 | (eval $ac_try) 2>&5 | |
18851 | ac_status=$? | |
18852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18853 | (exit $ac_status); }; }; then | |
18854 | ac_lo=$ac_mid; break | |
18855 | else | |
18856 | echo "$as_me: failed program was:" >&5 | |
18857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18858 | ||
18859 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18860 | if test $ac_mid -le $ac_hi; then |
18861 | ac_lo= ac_hi= | |
18862 | break | |
18863 | fi | |
18864 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18865 | fi |
ac1cb8d3 | 18866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18867 | done |
18868 | else | |
18869 | echo "$as_me: failed program was:" >&5 | |
18870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18871 | ||
18872 | ac_lo= ac_hi= | |
18873 | fi | |
ac1cb8d3 | 18874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18875 | fi |
ac1cb8d3 | 18876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18877 | # Binary search between lo and hi bounds. |
18878 | while test "x$ac_lo" != "x$ac_hi"; do | |
18879 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18880 | cat >conftest.$ac_ext <<_ACEOF | |
18881 | /* confdefs.h. */ | |
18882 | _ACEOF | |
18883 | cat confdefs.h >>conftest.$ac_ext | |
18884 | cat >>conftest.$ac_ext <<_ACEOF | |
18885 | /* end confdefs.h. */ | |
18886 | $ac_includes_default | |
18887 | int | |
18888 | main () | |
18889 | { | |
18890 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18891 | test_array [0] = 0 | |
18892 | ||
18893 | ; | |
18894 | return 0; | |
18895 | } | |
18896 | _ACEOF | |
18897 | rm -f conftest.$ac_objext | |
18898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18899 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18900 | ac_status=$? |
ac1cb8d3 VS |
18901 | grep -v '^ *+' conftest.er1 >conftest.err |
18902 | rm -f conftest.er1 | |
18903 | cat conftest.err >&5 | |
a848cd7e SC |
18904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18905 | (exit $ac_status); } && | |
07158944 | 18906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18908 | (eval $ac_try) 2>&5 | |
18909 | ac_status=$? | |
18910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18911 | (exit $ac_status); }; } && | |
18912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18914 | (eval $ac_try) 2>&5 | |
18915 | ac_status=$? | |
18916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18917 | (exit $ac_status); }; }; then | |
18918 | ac_hi=$ac_mid | |
18919 | else | |
18920 | echo "$as_me: failed program was:" >&5 | |
18921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18922 | ||
18923 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18924 | fi | |
ac1cb8d3 | 18925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18926 | done |
18927 | case $ac_lo in | |
18928 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18929 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18930 | See \`config.log' for more details." >&5 | |
18931 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18932 | See \`config.log' for more details." >&2;} | |
18933 | { (exit 1); exit 1; }; } ;; | |
18934 | esac | |
18935 | else | |
18936 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
18937 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18938 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18939 | { (exit 1); exit 1; }; } |
18940 | else | |
18941 | cat >conftest.$ac_ext <<_ACEOF | |
18942 | /* confdefs.h. */ | |
18943 | _ACEOF | |
18944 | cat confdefs.h >>conftest.$ac_ext | |
18945 | cat >>conftest.$ac_ext <<_ACEOF | |
18946 | /* end confdefs.h. */ | |
18947 | $ac_includes_default | |
18948 | long longval () { return (long) (sizeof (long long)); } | |
18949 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18950 | #include <stdio.h> | |
18951 | #include <stdlib.h> | |
18952 | int | |
18953 | main () | |
18954 | { | |
18955 | ||
18956 | FILE *f = fopen ("conftest.val", "w"); | |
18957 | if (! f) | |
18958 | exit (1); | |
18959 | if (((long) (sizeof (long long))) < 0) | |
18960 | { | |
18961 | long i = longval (); | |
18962 | if (i != ((long) (sizeof (long long)))) | |
18963 | exit (1); | |
18964 | fprintf (f, "%ld\n", i); | |
18965 | } | |
18966 | else | |
18967 | { | |
18968 | unsigned long i = ulongval (); | |
18969 | if (i != ((long) (sizeof (long long)))) | |
18970 | exit (1); | |
18971 | fprintf (f, "%lu\n", i); | |
18972 | } | |
18973 | exit (ferror (f) || fclose (f) != 0); | |
18974 | ||
18975 | ; | |
18976 | return 0; | |
18977 | } | |
18978 | _ACEOF | |
18979 | rm -f conftest$ac_exeext | |
18980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18981 | (eval $ac_link) 2>&5 | |
18982 | ac_status=$? | |
18983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18984 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18986 | (eval $ac_try) 2>&5 | |
18987 | ac_status=$? | |
18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18989 | (exit $ac_status); }; }; then | |
18990 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18991 | else | |
18992 | echo "$as_me: program exited with status $ac_status" >&5 | |
18993 | echo "$as_me: failed program was:" >&5 | |
18994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18995 | ||
18996 | ( exit $ac_status ) | |
18997 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18998 | See \`config.log' for more details." >&5 | |
18999 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19000 | See \`config.log' for more details." >&2;} | |
19001 | { (exit 1); exit 1; }; } | |
19002 | fi | |
ac1cb8d3 | 19003 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19004 | fi |
19005 | fi | |
19006 | rm -f conftest.val | |
19007 | else | |
19008 | ac_cv_sizeof_long_long=0 | |
19009 | fi | |
19010 | fi | |
19011 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19012 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19013 | cat >>confdefs.h <<_ACEOF | |
19014 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19015 | _ACEOF | |
19016 | ||
19017 | ||
19018 | esac | |
19019 | ||
238ecede MW |
19020 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
19021 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
19022 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
19023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19024 | else | |
19025 | cat >conftest.$ac_ext <<_ACEOF | |
19026 | /* confdefs.h. */ | |
19027 | _ACEOF | |
19028 | cat confdefs.h >>conftest.$ac_ext | |
19029 | cat >>conftest.$ac_ext <<_ACEOF | |
19030 | /* end confdefs.h. */ | |
19031 | ||
19032 | /* DJGPP only has fake wchar_t: */ | |
19033 | #ifdef __DJGPP__ | |
19034 | # error "fake wchar_t" | |
19035 | #endif | |
19036 | #ifdef HAVE_WCHAR_H | |
19037 | # ifdef __CYGWIN__ | |
19038 | # include <stddef.h> | |
19039 | # endif | |
19040 | # include <wchar.h> | |
19041 | #endif | |
19042 | #ifdef HAVE_STDLIB_H | |
19043 | # include <stdlib.h> | |
19044 | #endif | |
19045 | #include <stdio.h> | |
19046 | ||
19047 | ||
19048 | ||
19049 | int | |
19050 | main () | |
19051 | { | |
19052 | if ((wchar_t *) 0) | |
19053 | return 0; | |
19054 | if (sizeof (wchar_t)) | |
19055 | return 0; | |
19056 | ; | |
19057 | return 0; | |
19058 | } | |
19059 | _ACEOF | |
19060 | rm -f conftest.$ac_objext | |
19061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19062 | (eval $ac_compile) 2>conftest.er1 | |
19063 | ac_status=$? | |
19064 | grep -v '^ *+' conftest.er1 >conftest.err | |
19065 | rm -f conftest.er1 | |
19066 | cat conftest.err >&5 | |
19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19068 | (exit $ac_status); } && | |
07158944 | 19069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19071 | (eval $ac_try) 2>&5 | |
19072 | ac_status=$? | |
19073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19074 | (exit $ac_status); }; } && | |
19075 | { ac_try='test -s conftest.$ac_objext' | |
19076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19077 | (eval $ac_try) 2>&5 | |
19078 | ac_status=$? | |
19079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19080 | (exit $ac_status); }; }; then | |
19081 | ac_cv_type_wchar_t=yes | |
19082 | else | |
19083 | echo "$as_me: failed program was:" >&5 | |
19084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19085 | ||
19086 | ac_cv_type_wchar_t=no | |
19087 | fi | |
19088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19089 | fi | |
19090 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
19091 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
19092 | ||
a848cd7e SC |
19093 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
19094 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 19095 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
19096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19097 | else | |
238ecede MW |
19098 | if test "$ac_cv_type_wchar_t" = yes; then |
19099 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19100 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19101 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19102 | # This bug is HP SR number 8606223364. | |
19103 | if test "$cross_compiling" = yes; then | |
19104 | # Depending upon the size, compute the lo and hi bounds. | |
19105 | cat >conftest.$ac_ext <<_ACEOF | |
19106 | /* confdefs.h. */ | |
19107 | _ACEOF | |
19108 | cat confdefs.h >>conftest.$ac_ext | |
19109 | cat >>conftest.$ac_ext <<_ACEOF | |
19110 | /* end confdefs.h. */ | |
19111 | ||
19112 | /* DJGPP only has fake wchar_t: */ | |
19113 | #ifdef __DJGPP__ | |
19114 | # error "fake wchar_t" | |
19115 | #endif | |
19116 | #ifdef HAVE_WCHAR_H | |
19117 | # ifdef __CYGWIN__ | |
19118 | # include <stddef.h> | |
19119 | # endif | |
19120 | # include <wchar.h> | |
19121 | #endif | |
19122 | #ifdef HAVE_STDLIB_H | |
19123 | # include <stdlib.h> | |
19124 | #endif | |
19125 | #include <stdio.h> | |
19126 | ||
19127 | ||
19128 | ||
19129 | int | |
19130 | main () | |
19131 | { | |
19132 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
19133 | test_array [0] = 0 | |
19134 | ||
19135 | ; | |
19136 | return 0; | |
19137 | } | |
19138 | _ACEOF | |
19139 | rm -f conftest.$ac_objext | |
19140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19141 | (eval $ac_compile) 2>conftest.er1 | |
19142 | ac_status=$? | |
19143 | grep -v '^ *+' conftest.er1 >conftest.err | |
19144 | rm -f conftest.er1 | |
19145 | cat conftest.err >&5 | |
19146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19147 | (exit $ac_status); } && | |
07158944 | 19148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19150 | (eval $ac_try) 2>&5 | |
19151 | ac_status=$? | |
19152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19153 | (exit $ac_status); }; } && | |
19154 | { ac_try='test -s conftest.$ac_objext' | |
19155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19156 | (eval $ac_try) 2>&5 | |
19157 | ac_status=$? | |
19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19159 | (exit $ac_status); }; }; then | |
19160 | ac_lo=0 ac_mid=0 | |
19161 | while :; do | |
19162 | cat >conftest.$ac_ext <<_ACEOF | |
19163 | /* confdefs.h. */ | |
19164 | _ACEOF | |
19165 | cat confdefs.h >>conftest.$ac_ext | |
19166 | cat >>conftest.$ac_ext <<_ACEOF | |
19167 | /* end confdefs.h. */ | |
19168 | ||
19169 | /* DJGPP only has fake wchar_t: */ | |
19170 | #ifdef __DJGPP__ | |
19171 | # error "fake wchar_t" | |
19172 | #endif | |
19173 | #ifdef HAVE_WCHAR_H | |
19174 | # ifdef __CYGWIN__ | |
19175 | # include <stddef.h> | |
19176 | # endif | |
19177 | # include <wchar.h> | |
19178 | #endif | |
19179 | #ifdef HAVE_STDLIB_H | |
19180 | # include <stdlib.h> | |
19181 | #endif | |
19182 | #include <stdio.h> | |
19183 | ||
19184 | ||
19185 | ||
19186 | int | |
19187 | main () | |
19188 | { | |
19189 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19190 | test_array [0] = 0 | |
19191 | ||
19192 | ; | |
19193 | return 0; | |
19194 | } | |
19195 | _ACEOF | |
19196 | rm -f conftest.$ac_objext | |
19197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19198 | (eval $ac_compile) 2>conftest.er1 | |
19199 | ac_status=$? | |
19200 | grep -v '^ *+' conftest.er1 >conftest.err | |
19201 | rm -f conftest.er1 | |
19202 | cat conftest.err >&5 | |
19203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19204 | (exit $ac_status); } && | |
07158944 | 19205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19207 | (eval $ac_try) 2>&5 | |
19208 | ac_status=$? | |
19209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19210 | (exit $ac_status); }; } && | |
19211 | { ac_try='test -s conftest.$ac_objext' | |
19212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19213 | (eval $ac_try) 2>&5 | |
19214 | ac_status=$? | |
19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19216 | (exit $ac_status); }; }; then | |
19217 | ac_hi=$ac_mid; break | |
19218 | else | |
19219 | echo "$as_me: failed program was:" >&5 | |
19220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19221 | ||
19222 | ac_lo=`expr $ac_mid + 1` | |
19223 | if test $ac_lo -le $ac_mid; then | |
19224 | ac_lo= ac_hi= | |
19225 | break | |
19226 | fi | |
19227 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19228 | fi | |
19229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19230 | done | |
19231 | else | |
19232 | echo "$as_me: failed program was:" >&5 | |
19233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19234 | ||
19235 | cat >conftest.$ac_ext <<_ACEOF | |
19236 | /* confdefs.h. */ | |
19237 | _ACEOF | |
19238 | cat confdefs.h >>conftest.$ac_ext | |
19239 | cat >>conftest.$ac_ext <<_ACEOF | |
19240 | /* end confdefs.h. */ | |
19241 | ||
19242 | /* DJGPP only has fake wchar_t: */ | |
19243 | #ifdef __DJGPP__ | |
19244 | # error "fake wchar_t" | |
19245 | #endif | |
19246 | #ifdef HAVE_WCHAR_H | |
19247 | # ifdef __CYGWIN__ | |
19248 | # include <stddef.h> | |
19249 | # endif | |
19250 | # include <wchar.h> | |
19251 | #endif | |
19252 | #ifdef HAVE_STDLIB_H | |
19253 | # include <stdlib.h> | |
19254 | #endif | |
19255 | #include <stdio.h> | |
19256 | ||
19257 | ||
19258 | ||
19259 | int | |
19260 | main () | |
19261 | { | |
19262 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
19263 | test_array [0] = 0 | |
19264 | ||
19265 | ; | |
19266 | return 0; | |
19267 | } | |
19268 | _ACEOF | |
19269 | rm -f conftest.$ac_objext | |
19270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19271 | (eval $ac_compile) 2>conftest.er1 | |
19272 | ac_status=$? | |
19273 | grep -v '^ *+' conftest.er1 >conftest.err | |
19274 | rm -f conftest.er1 | |
19275 | cat conftest.err >&5 | |
19276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19277 | (exit $ac_status); } && | |
07158944 | 19278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19280 | (eval $ac_try) 2>&5 | |
19281 | ac_status=$? | |
19282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19283 | (exit $ac_status); }; } && | |
19284 | { ac_try='test -s conftest.$ac_objext' | |
19285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19286 | (eval $ac_try) 2>&5 | |
19287 | ac_status=$? | |
19288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19289 | (exit $ac_status); }; }; then | |
19290 | ac_hi=-1 ac_mid=-1 | |
19291 | while :; do | |
19292 | cat >conftest.$ac_ext <<_ACEOF | |
19293 | /* confdefs.h. */ | |
19294 | _ACEOF | |
19295 | cat confdefs.h >>conftest.$ac_ext | |
19296 | cat >>conftest.$ac_ext <<_ACEOF | |
19297 | /* end confdefs.h. */ | |
19298 | ||
19299 | /* DJGPP only has fake wchar_t: */ | |
19300 | #ifdef __DJGPP__ | |
19301 | # error "fake wchar_t" | |
19302 | #endif | |
19303 | #ifdef HAVE_WCHAR_H | |
19304 | # ifdef __CYGWIN__ | |
19305 | # include <stddef.h> | |
19306 | # endif | |
19307 | # include <wchar.h> | |
19308 | #endif | |
19309 | #ifdef HAVE_STDLIB_H | |
19310 | # include <stdlib.h> | |
19311 | #endif | |
19312 | #include <stdio.h> | |
19313 | ||
19314 | ||
19315 | ||
19316 | int | |
19317 | main () | |
19318 | { | |
19319 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
19320 | test_array [0] = 0 | |
19321 | ||
19322 | ; | |
19323 | return 0; | |
19324 | } | |
19325 | _ACEOF | |
19326 | rm -f conftest.$ac_objext | |
19327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19328 | (eval $ac_compile) 2>conftest.er1 | |
19329 | ac_status=$? | |
19330 | grep -v '^ *+' conftest.er1 >conftest.err | |
19331 | rm -f conftest.er1 | |
19332 | cat conftest.err >&5 | |
19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19334 | (exit $ac_status); } && | |
07158944 | 19335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19337 | (eval $ac_try) 2>&5 | |
19338 | ac_status=$? | |
19339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19340 | (exit $ac_status); }; } && | |
19341 | { ac_try='test -s conftest.$ac_objext' | |
19342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19343 | (eval $ac_try) 2>&5 | |
19344 | ac_status=$? | |
19345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19346 | (exit $ac_status); }; }; then | |
19347 | ac_lo=$ac_mid; break | |
19348 | else | |
19349 | echo "$as_me: failed program was:" >&5 | |
19350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19351 | ||
19352 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
19353 | if test $ac_mid -le $ac_hi; then | |
19354 | ac_lo= ac_hi= | |
19355 | break | |
19356 | fi | |
19357 | ac_mid=`expr 2 '*' $ac_mid` | |
19358 | fi | |
19359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19360 | done | |
19361 | else | |
19362 | echo "$as_me: failed program was:" >&5 | |
19363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19364 | ||
19365 | ac_lo= ac_hi= | |
19366 | fi | |
19367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19368 | fi | |
19369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19370 | # Binary search between lo and hi bounds. | |
19371 | while test "x$ac_lo" != "x$ac_hi"; do | |
19372 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19373 | cat >conftest.$ac_ext <<_ACEOF | |
19374 | /* confdefs.h. */ | |
19375 | _ACEOF | |
19376 | cat confdefs.h >>conftest.$ac_ext | |
19377 | cat >>conftest.$ac_ext <<_ACEOF | |
19378 | /* end confdefs.h. */ | |
19379 | ||
19380 | /* DJGPP only has fake wchar_t: */ | |
19381 | #ifdef __DJGPP__ | |
19382 | # error "fake wchar_t" | |
19383 | #endif | |
19384 | #ifdef HAVE_WCHAR_H | |
19385 | # ifdef __CYGWIN__ | |
19386 | # include <stddef.h> | |
19387 | # endif | |
19388 | # include <wchar.h> | |
19389 | #endif | |
19390 | #ifdef HAVE_STDLIB_H | |
19391 | # include <stdlib.h> | |
19392 | #endif | |
19393 | #include <stdio.h> | |
a848cd7e | 19394 | |
a848cd7e | 19395 | |
a848cd7e | 19396 | |
238ecede MW |
19397 | int |
19398 | main () | |
19399 | { | |
19400 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
19401 | test_array [0] = 0 | |
a848cd7e | 19402 | |
238ecede MW |
19403 | ; |
19404 | return 0; | |
19405 | } | |
19406 | _ACEOF | |
19407 | rm -f conftest.$ac_objext | |
19408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19409 | (eval $ac_compile) 2>conftest.er1 | |
19410 | ac_status=$? | |
19411 | grep -v '^ *+' conftest.er1 >conftest.err | |
19412 | rm -f conftest.er1 | |
19413 | cat conftest.err >&5 | |
19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19415 | (exit $ac_status); } && | |
07158944 | 19416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
19417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19418 | (eval $ac_try) 2>&5 | |
19419 | ac_status=$? | |
19420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19421 | (exit $ac_status); }; } && | |
19422 | { ac_try='test -s conftest.$ac_objext' | |
19423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19424 | (eval $ac_try) 2>&5 | |
19425 | ac_status=$? | |
19426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19427 | (exit $ac_status); }; }; then | |
19428 | ac_hi=$ac_mid | |
19429 | else | |
19430 | echo "$as_me: failed program was:" >&5 | |
19431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19432 | ||
19433 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19434 | fi | |
19435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19436 | done | |
19437 | case $ac_lo in | |
19438 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
19439 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
19440 | See \`config.log' for more details." >&5 | |
19441 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19442 | See \`config.log' for more details." >&2;} | |
19443 | { (exit 1); exit 1; }; } ;; | |
19444 | esac | |
19445 | else | |
19446 | if test "$cross_compiling" = yes; then | |
07158944 VZ |
19447 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19448 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 19449 | { (exit 1); exit 1; }; } |
a848cd7e SC |
19450 | else |
19451 | cat >conftest.$ac_ext <<_ACEOF | |
19452 | /* confdefs.h. */ | |
19453 | _ACEOF | |
19454 | cat confdefs.h >>conftest.$ac_ext | |
19455 | cat >>conftest.$ac_ext <<_ACEOF | |
19456 | /* end confdefs.h. */ | |
19457 | ||
238ecede MW |
19458 | /* DJGPP only has fake wchar_t: */ |
19459 | #ifdef __DJGPP__ | |
19460 | # error "fake wchar_t" | |
19461 | #endif | |
19462 | #ifdef HAVE_WCHAR_H | |
19463 | # ifdef __CYGWIN__ | |
19464 | # include <stddef.h> | |
19465 | # endif | |
19466 | # include <wchar.h> | |
19467 | #endif | |
19468 | #ifdef HAVE_STDLIB_H | |
19469 | # include <stdlib.h> | |
19470 | #endif | |
19471 | #include <stdio.h> | |
19472 | ||
19473 | ||
19474 | ||
19475 | long longval () { return (long) (sizeof (wchar_t)); } | |
19476 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
19477 | #include <stdio.h> | |
19478 | #include <stdlib.h> | |
19479 | int | |
19480 | main () | |
19481 | { | |
a848cd7e | 19482 | |
238ecede MW |
19483 | FILE *f = fopen ("conftest.val", "w"); |
19484 | if (! f) | |
19485 | exit (1); | |
19486 | if (((long) (sizeof (wchar_t))) < 0) | |
19487 | { | |
19488 | long i = longval (); | |
19489 | if (i != ((long) (sizeof (wchar_t)))) | |
19490 | exit (1); | |
19491 | fprintf (f, "%ld\n", i); | |
19492 | } | |
19493 | else | |
19494 | { | |
19495 | unsigned long i = ulongval (); | |
19496 | if (i != ((long) (sizeof (wchar_t)))) | |
19497 | exit (1); | |
19498 | fprintf (f, "%lu\n", i); | |
19499 | } | |
19500 | exit (ferror (f) || fclose (f) != 0); | |
19501 | ||
19502 | ; | |
19503 | return 0; | |
19504 | } | |
a848cd7e SC |
19505 | _ACEOF |
19506 | rm -f conftest$ac_exeext | |
19507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19508 | (eval $ac_link) 2>&5 | |
19509 | ac_status=$? | |
19510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19513 | (eval $ac_try) 2>&5 | |
19514 | ac_status=$? | |
19515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19516 | (exit $ac_status); }; }; then | |
238ecede | 19517 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
19518 | else |
19519 | echo "$as_me: program exited with status $ac_status" >&5 | |
19520 | echo "$as_me: failed program was:" >&5 | |
19521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19522 | ||
19523 | ( exit $ac_status ) | |
238ecede MW |
19524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
19525 | See \`config.log' for more details." >&5 | |
19526 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
19527 | See \`config.log' for more details." >&2;} | |
19528 | { (exit 1); exit 1; }; } | |
a848cd7e | 19529 | fi |
ac1cb8d3 | 19530 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19531 | fi |
a848cd7e | 19532 | fi |
238ecede MW |
19533 | rm -f conftest.val |
19534 | else | |
19535 | ac_cv_sizeof_wchar_t=0 | |
19536 | fi | |
19537 | fi | |
19538 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
19539 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 19540 | cat >>confdefs.h <<_ACEOF |
238ecede | 19541 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
19542 | _ACEOF |
19543 | ||
19544 | ||
238ecede | 19545 | |
ba3d13e1 VZ |
19546 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19547 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19548 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19550 | else | |
19551 | ||
19552 | cat >conftest.$ac_ext <<_ACEOF | |
19553 | ||
19554 | #include <stdarg.h> | |
19555 | void foo(char *f, ...) | |
19556 | { | |
19557 | va_list ap1, ap2; | |
19558 | va_start(ap1, f); | |
19559 | va_copy(ap2, ap1); | |
19560 | va_end(ap2); | |
19561 | va_end(ap1); | |
19562 | } | |
5886b072 VZ |
19563 | int main() |
19564 | { | |
b902e639 VZ |
19565 | foo("hi", 17); |
19566 | return 0; | |
5886b072 | 19567 | } |
ba3d13e1 VZ |
19568 | _ACEOF |
19569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19571 | (eval $ac_link) 2>conftest.er1 | |
19572 | ac_status=$? | |
19573 | grep -v '^ *+' conftest.er1 >conftest.err | |
19574 | rm -f conftest.er1 | |
19575 | cat conftest.err >&5 | |
19576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19577 | (exit $ac_status); } && | |
07158944 | 19578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
19579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19580 | (eval $ac_try) 2>&5 | |
19581 | ac_status=$? | |
19582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19583 | (exit $ac_status); }; } && | |
19584 | { ac_try='test -s conftest$ac_exeext' | |
19585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19586 | (eval $ac_try) 2>&5 | |
19587 | ac_status=$? | |
19588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19589 | (exit $ac_status); }; }; then | |
19590 | wx_cv_func_va_copy=yes | |
19591 | else | |
19592 | echo "$as_me: failed program was:" >&5 | |
19593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19594 | ||
19595 | wx_cv_func_va_copy=no | |
19596 | ||
19597 | fi | |
19598 | rm -f conftest.err conftest.$ac_objext \ | |
19599 | conftest$ac_exeext conftest.$ac_ext | |
19600 | ||
19601 | ||
19602 | fi | |
19603 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
19604 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
19605 | ||
19606 | if test $wx_cv_func_va_copy = "yes"; then | |
19607 | cat >>confdefs.h <<\_ACEOF | |
19608 | #define HAVE_VA_COPY 1 | |
19609 | _ACEOF | |
19610 | ||
19611 | else | |
19612 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
19613 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
19614 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
19615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19616 | else | |
19617 | ||
19618 | if test "$cross_compiling" = yes; then | |
19619 | wx_cv_type_va_list_lvalue=yes | |
19620 | ||
19621 | else | |
19622 | cat >conftest.$ac_ext <<_ACEOF | |
19623 | ||
19624 | #include <stdarg.h> | |
19625 | int foo(char *f, ...) | |
19626 | { | |
19627 | va_list ap1, ap2; | |
19628 | va_start(ap1, f); | |
19629 | ap2 = ap1; | |
19630 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
19631 | return 1; | |
19632 | va_end(ap2); | |
19633 | va_end(ap1); | |
19634 | return 0; | |
19635 | } | |
19636 | int main() | |
19637 | { | |
19638 | return foo("hi", 17); | |
19639 | } | |
19640 | _ACEOF | |
19641 | rm -f conftest$ac_exeext | |
19642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19643 | (eval $ac_link) 2>&5 | |
19644 | ac_status=$? | |
19645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19648 | (eval $ac_try) 2>&5 | |
19649 | ac_status=$? | |
19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19651 | (exit $ac_status); }; }; then | |
19652 | wx_cv_type_va_list_lvalue=yes | |
19653 | else | |
19654 | echo "$as_me: program exited with status $ac_status" >&5 | |
19655 | echo "$as_me: failed program was:" >&5 | |
19656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19657 | ||
19658 | ( exit $ac_status ) | |
19659 | wx_cv_type_va_list_lvalue=no | |
19660 | fi | |
19661 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19662 | fi | |
19663 | ||
19664 | ||
19665 | fi | |
19666 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
19667 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
19668 | ||
19669 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
19670 | cat >>confdefs.h <<\_ACEOF | |
19671 | #define VA_LIST_IS_ARRAY 1 | |
19672 | _ACEOF | |
19673 | ||
19674 | fi | |
19675 | fi | |
19676 | ||
a848cd7e SC |
19677 | # Check whether --enable-largefile or --disable-largefile was given. |
19678 | if test "${enable_largefile+set}" = set; then | |
19679 | enableval="$enable_largefile" | |
19680 | ||
19681 | fi; | |
19682 | if test "$enable_largefile" != no; then | |
19683 | wx_largefile=no | |
19684 | ||
19685 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
19686 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
19687 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
19688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19689 | else | |
19690 | ||
19691 | cat >conftest.$ac_ext <<_ACEOF | |
19692 | /* confdefs.h. */ | |
19693 | _ACEOF | |
19694 | cat confdefs.h >>conftest.$ac_ext | |
19695 | cat >>conftest.$ac_ext <<_ACEOF | |
19696 | /* end confdefs.h. */ | |
19697 | #define _FILE_OFFSET_BITS 64 | |
19698 | #include <sys/types.h> | |
19699 | int | |
19700 | main () | |
19701 | { | |
19702 | typedef struct { | |
19703 | unsigned int field: sizeof(off_t) == 8; | |
19704 | } wxlf; | |
19705 | ||
19706 | ; | |
19707 | return 0; | |
19708 | } | |
19709 | _ACEOF | |
19710 | rm -f conftest.$ac_objext | |
19711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19713 | ac_status=$? |
ac1cb8d3 VS |
19714 | grep -v '^ *+' conftest.er1 >conftest.err |
19715 | rm -f conftest.er1 | |
19716 | cat conftest.err >&5 | |
a848cd7e SC |
19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19718 | (exit $ac_status); } && | |
07158944 | 19719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19721 | (eval $ac_try) 2>&5 | |
19722 | ac_status=$? | |
19723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19724 | (exit $ac_status); }; } && | |
19725 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19727 | (eval $ac_try) 2>&5 | |
19728 | ac_status=$? | |
19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19730 | (exit $ac_status); }; }; then | |
19731 | ac_cv_sys_file_offset_bits=64 | |
19732 | else | |
19733 | echo "$as_me: failed program was:" >&5 | |
19734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19735 | ||
19736 | ac_cv_sys_file_offset_bits=no | |
19737 | fi | |
ac1cb8d3 | 19738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19739 | |
19740 | ||
19741 | fi | |
19742 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
19743 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
19744 | ||
19745 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
19746 | wx_largefile=yes | |
19747 | cat >>confdefs.h <<_ACEOF | |
19748 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
19749 | _ACEOF | |
19750 | ||
19751 | fi | |
19752 | ||
19753 | if test "x$wx_largefile" != "xyes"; then | |
19754 | ||
19755 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
19756 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
19757 | if test "${ac_cv_sys_large_files+set}" = set; then | |
19758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19759 | else | |
19760 | ||
19761 | cat >conftest.$ac_ext <<_ACEOF | |
19762 | /* confdefs.h. */ | |
19763 | _ACEOF | |
19764 | cat confdefs.h >>conftest.$ac_ext | |
19765 | cat >>conftest.$ac_ext <<_ACEOF | |
19766 | /* end confdefs.h. */ | |
19767 | #define _LARGE_FILES 1 | |
19768 | #include <sys/types.h> | |
19769 | int | |
19770 | main () | |
19771 | { | |
19772 | typedef struct { | |
19773 | unsigned int field: sizeof(off_t) == 8; | |
19774 | } wxlf; | |
19775 | ||
19776 | ; | |
19777 | return 0; | |
19778 | } | |
19779 | _ACEOF | |
19780 | rm -f conftest.$ac_objext | |
19781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19782 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19783 | ac_status=$? |
ac1cb8d3 VS |
19784 | grep -v '^ *+' conftest.er1 >conftest.err |
19785 | rm -f conftest.er1 | |
19786 | cat conftest.err >&5 | |
a848cd7e SC |
19787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19788 | (exit $ac_status); } && | |
07158944 | 19789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19791 | (eval $ac_try) 2>&5 | |
19792 | ac_status=$? | |
19793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19794 | (exit $ac_status); }; } && | |
19795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19797 | (eval $ac_try) 2>&5 | |
19798 | ac_status=$? | |
19799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19800 | (exit $ac_status); }; }; then | |
19801 | ac_cv_sys_large_files=1 | |
19802 | else | |
19803 | echo "$as_me: failed program was:" >&5 | |
19804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19805 | ||
19806 | ac_cv_sys_large_files=no | |
19807 | fi | |
ac1cb8d3 | 19808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19809 | |
19810 | ||
19811 | fi | |
19812 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
19813 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
19814 | ||
19815 | if test "$ac_cv_sys_large_files" != no; then | |
19816 | wx_largefile=yes | |
19817 | cat >>confdefs.h <<_ACEOF | |
19818 | #define _LARGE_FILES $ac_cv_sys_large_files | |
19819 | _ACEOF | |
19820 | ||
19821 | fi | |
19822 | ||
19823 | fi | |
19824 | ||
19825 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
19826 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
19827 | if test "x$wx_largefile" = "xyes"; then | |
19828 | cat >>confdefs.h <<\_ACEOF | |
19829 | #define HAVE_LARGEFILE_SUPPORT 1 | |
19830 | _ACEOF | |
19831 | ||
19832 | fi | |
19833 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
19834 | echo "${ECHO_T}$wx_largefile" >&6 | |
19835 | fi | |
19836 | ||
5b674b9d DE |
19837 | |
19838 | if test "x$wx_largefile" = "xyes"; then | |
19839 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
19840 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
19841 | else | |
19842 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
19843 | fi | |
19844 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
19845 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
19846 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
19847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19848 | else | |
19849 | while :; do | |
19850 | ac_cv_sys_largefile_source=no | |
19851 | cat >conftest.$ac_ext <<_ACEOF | |
19852 | /* confdefs.h. */ | |
19853 | _ACEOF | |
19854 | cat confdefs.h >>conftest.$ac_ext | |
19855 | cat >>conftest.$ac_ext <<_ACEOF | |
19856 | /* end confdefs.h. */ | |
19857 | #include <stdio.h> | |
19858 | int | |
19859 | main () | |
19860 | { | |
19861 | return !fseeko; | |
19862 | ; | |
19863 | return 0; | |
19864 | } | |
19865 | _ACEOF | |
19866 | rm -f conftest.$ac_objext | |
19867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19868 | (eval $ac_compile) 2>conftest.er1 | |
19869 | ac_status=$? | |
19870 | grep -v '^ *+' conftest.er1 >conftest.err | |
19871 | rm -f conftest.er1 | |
19872 | cat conftest.err >&5 | |
19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19874 | (exit $ac_status); } && | |
07158944 | 19875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
19876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19877 | (eval $ac_try) 2>&5 | |
19878 | ac_status=$? | |
19879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19880 | (exit $ac_status); }; } && | |
19881 | { ac_try='test -s conftest.$ac_objext' | |
19882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19883 | (eval $ac_try) 2>&5 | |
19884 | ac_status=$? | |
19885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19886 | (exit $ac_status); }; }; then | |
19887 | break | |
19888 | else | |
19889 | echo "$as_me: failed program was:" >&5 | |
19890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19891 | ||
19892 | fi | |
19893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19894 | cat >conftest.$ac_ext <<_ACEOF | |
19895 | /* confdefs.h. */ | |
19896 | _ACEOF | |
19897 | cat confdefs.h >>conftest.$ac_ext | |
19898 | cat >>conftest.$ac_ext <<_ACEOF | |
19899 | /* end confdefs.h. */ | |
19900 | #define _LARGEFILE_SOURCE 1 | |
19901 | #include <stdio.h> | |
19902 | int | |
19903 | main () | |
19904 | { | |
19905 | return !fseeko; | |
19906 | ; | |
19907 | return 0; | |
19908 | } | |
19909 | _ACEOF | |
19910 | rm -f conftest.$ac_objext | |
19911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19912 | (eval $ac_compile) 2>conftest.er1 | |
19913 | ac_status=$? | |
19914 | grep -v '^ *+' conftest.er1 >conftest.err | |
19915 | rm -f conftest.er1 | |
19916 | cat conftest.err >&5 | |
19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19918 | (exit $ac_status); } && | |
07158944 | 19919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
19920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19921 | (eval $ac_try) 2>&5 | |
19922 | ac_status=$? | |
19923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19924 | (exit $ac_status); }; } && | |
19925 | { ac_try='test -s conftest.$ac_objext' | |
19926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19927 | (eval $ac_try) 2>&5 | |
19928 | ac_status=$? | |
19929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19930 | (exit $ac_status); }; }; then | |
19931 | ac_cv_sys_largefile_source=1; break | |
19932 | else | |
19933 | echo "$as_me: failed program was:" >&5 | |
19934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19935 | ||
19936 | fi | |
19937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19938 | break | |
19939 | done | |
19940 | fi | |
19941 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
19942 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
19943 | if test "$ac_cv_sys_largefile_source" != no; then | |
19944 | ||
19945 | cat >>confdefs.h <<_ACEOF | |
19946 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
19947 | _ACEOF | |
19948 | ||
19949 | fi | |
19950 | rm -f conftest* | |
19951 | ||
19952 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
19953 | # in glibc 2.1.3, but that breaks too many other things. | |
19954 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
19955 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
19956 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
19957 | if test "${ac_cv_func_fseeko+set}" = set; then | |
19958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19959 | else | |
19960 | cat >conftest.$ac_ext <<_ACEOF | |
19961 | /* confdefs.h. */ | |
19962 | _ACEOF | |
19963 | cat confdefs.h >>conftest.$ac_ext | |
19964 | cat >>conftest.$ac_ext <<_ACEOF | |
19965 | /* end confdefs.h. */ | |
19966 | #include <stdio.h> | |
19967 | int | |
19968 | main () | |
19969 | { | |
19970 | return fseeko && fseeko (stdin, 0, 0); | |
19971 | ; | |
19972 | return 0; | |
19973 | } | |
19974 | _ACEOF | |
19975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19977 | (eval $ac_link) 2>conftest.er1 | |
19978 | ac_status=$? | |
19979 | grep -v '^ *+' conftest.er1 >conftest.err | |
19980 | rm -f conftest.er1 | |
19981 | cat conftest.err >&5 | |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); } && | |
07158944 | 19984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
19985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19986 | (eval $ac_try) 2>&5 | |
19987 | ac_status=$? | |
19988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19989 | (exit $ac_status); }; } && | |
19990 | { ac_try='test -s conftest$ac_exeext' | |
19991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19992 | (eval $ac_try) 2>&5 | |
19993 | ac_status=$? | |
19994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19995 | (exit $ac_status); }; }; then | |
19996 | ac_cv_func_fseeko=yes | |
19997 | else | |
19998 | echo "$as_me: failed program was:" >&5 | |
19999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20000 | ||
20001 | ac_cv_func_fseeko=no | |
20002 | fi | |
20003 | rm -f conftest.err conftest.$ac_objext \ | |
20004 | conftest$ac_exeext conftest.$ac_ext | |
20005 | fi | |
20006 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
20007 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
20008 | if test $ac_cv_func_fseeko = yes; then | |
20009 | ||
20010 | cat >>confdefs.h <<\_ACEOF | |
20011 | #define HAVE_FSEEKO 1 | |
20012 | _ACEOF | |
20013 | ||
20014 | fi | |
20015 | ||
5b674b9d DE |
20016 | if test "$ac_cv_sys_largefile_source" != no; then |
20017 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20018 | fi |
20019 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
20020 | fi | |
20021 | ||
20022 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
20023 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
20024 | if test "${ac_cv_c_bigendian+set}" = set; then | |
20025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20026 | else | |
20027 | ac_cv_c_bigendian=unknown | |
20028 | # See if sys/param.h defines the BYTE_ORDER macro. | |
20029 | cat >conftest.$ac_ext <<_ACEOF | |
20030 | /* confdefs.h. */ | |
20031 | _ACEOF | |
20032 | cat confdefs.h >>conftest.$ac_ext | |
20033 | cat >>conftest.$ac_ext <<_ACEOF | |
20034 | /* end confdefs.h. */ | |
20035 | #include <sys/types.h> | |
20036 | #include <sys/param.h> | |
20037 | int | |
20038 | main () | |
20039 | { | |
20040 | ||
20041 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20042 | bogus endian macros | |
20043 | #endif | |
20044 | ; | |
20045 | return 0; | |
20046 | } | |
20047 | _ACEOF | |
20048 | rm -f conftest.$ac_objext | |
20049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20050 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20051 | ac_status=$? |
ac1cb8d3 VS |
20052 | grep -v '^ *+' conftest.er1 >conftest.err |
20053 | rm -f conftest.er1 | |
20054 | cat conftest.err >&5 | |
a848cd7e SC |
20055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20056 | (exit $ac_status); } && | |
07158944 | 20057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20059 | (eval $ac_try) 2>&5 | |
20060 | ac_status=$? | |
20061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20062 | (exit $ac_status); }; } && | |
20063 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20065 | (eval $ac_try) 2>&5 | |
20066 | ac_status=$? | |
20067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20068 | (exit $ac_status); }; }; then | |
20069 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
20070 | cat >conftest.$ac_ext <<_ACEOF | |
20071 | /* confdefs.h. */ | |
20072 | _ACEOF | |
20073 | cat confdefs.h >>conftest.$ac_ext | |
20074 | cat >>conftest.$ac_ext <<_ACEOF | |
20075 | /* end confdefs.h. */ | |
20076 | #include <sys/types.h> | |
20077 | #include <sys/param.h> | |
20078 | int | |
20079 | main () | |
20080 | { | |
20081 | ||
20082 | #if BYTE_ORDER != BIG_ENDIAN | |
20083 | not big endian | |
20084 | #endif | |
20085 | ; | |
20086 | return 0; | |
20087 | } | |
20088 | _ACEOF | |
20089 | rm -f conftest.$ac_objext | |
20090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20091 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20092 | ac_status=$? |
ac1cb8d3 VS |
20093 | grep -v '^ *+' conftest.er1 >conftest.err |
20094 | rm -f conftest.er1 | |
20095 | cat conftest.err >&5 | |
a848cd7e SC |
20096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20097 | (exit $ac_status); } && | |
07158944 | 20098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20100 | (eval $ac_try) 2>&5 | |
20101 | ac_status=$? | |
20102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20103 | (exit $ac_status); }; } && | |
20104 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20106 | (eval $ac_try) 2>&5 | |
20107 | ac_status=$? | |
20108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20109 | (exit $ac_status); }; }; then | |
20110 | ac_cv_c_bigendian=yes | |
20111 | else | |
20112 | echo "$as_me: failed program was:" >&5 | |
20113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20114 | ||
20115 | ac_cv_c_bigendian=no | |
20116 | fi | |
ac1cb8d3 | 20117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20118 | else |
20119 | echo "$as_me: failed program was:" >&5 | |
20120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20121 | ||
20122 | fi | |
ac1cb8d3 | 20123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20124 | if test $ac_cv_c_bigendian = unknown; then |
20125 | if test "$cross_compiling" = yes; then | |
20126 | ac_cv_c_bigendian=unknown | |
20127 | else | |
20128 | cat >conftest.$ac_ext <<_ACEOF | |
20129 | /* confdefs.h. */ | |
20130 | _ACEOF | |
20131 | cat confdefs.h >>conftest.$ac_ext | |
20132 | cat >>conftest.$ac_ext <<_ACEOF | |
20133 | /* end confdefs.h. */ | |
20134 | main () { | |
20135 | /* Are we little or big endian? From Harbison&Steele. */ | |
20136 | union | |
20137 | { | |
20138 | long l; | |
20139 | char c[sizeof (long)]; | |
20140 | } u; | |
20141 | u.l = 1; | |
20142 | exit (u.c[sizeof (long) - 1] == 1); | |
20143 | } | |
20144 | _ACEOF | |
20145 | rm -f conftest$ac_exeext | |
20146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20147 | (eval $ac_link) 2>&5 | |
20148 | ac_status=$? | |
20149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20152 | (eval $ac_try) 2>&5 | |
20153 | ac_status=$? | |
20154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20155 | (exit $ac_status); }; }; then | |
20156 | ac_cv_c_bigendian=no | |
20157 | else | |
20158 | echo "$as_me: program exited with status $ac_status" >&5 | |
20159 | echo "$as_me: failed program was:" >&5 | |
20160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20161 | ||
20162 | ( exit $ac_status ) | |
20163 | ac_cv_c_bigendian=yes | |
20164 | fi | |
ac1cb8d3 | 20165 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20166 | fi |
20167 | fi | |
20168 | fi | |
20169 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
20170 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
20171 | if test $ac_cv_c_bigendian = unknown; then | |
20172 | { 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 | |
20173 | 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;} | |
20174 | fi | |
20175 | if test $ac_cv_c_bigendian = yes; then | |
20176 | cat >>confdefs.h <<\_ACEOF | |
20177 | #define WORDS_BIGENDIAN 1 | |
20178 | _ACEOF | |
20179 | ||
20180 | fi | |
20181 | ||
20182 | ||
20183 | ac_ext=cc | |
20184 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20185 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20186 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20187 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20188 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
20189 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
20190 | if test -z "$CXXCPP"; then | |
20191 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
20192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20193 | else | |
20194 | # Double quotes because CXXCPP needs to be expanded | |
20195 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
20196 | do | |
20197 | ac_preproc_ok=false | |
20198 | for ac_cxx_preproc_warn_flag in '' yes | |
20199 | do | |
20200 | # Use a header file that comes with gcc, so configuring glibc | |
20201 | # with a fresh cross-compiler works. | |
20202 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20203 | # <limits.h> exists even on freestanding compilers. | |
20204 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20205 | # not just through cpp. "Syntax error" is here to catch this case. | |
20206 | cat >conftest.$ac_ext <<_ACEOF | |
20207 | /* confdefs.h. */ | |
20208 | _ACEOF | |
20209 | cat confdefs.h >>conftest.$ac_ext | |
20210 | cat >>conftest.$ac_ext <<_ACEOF | |
20211 | /* end confdefs.h. */ | |
20212 | #ifdef __STDC__ | |
20213 | # include <limits.h> | |
20214 | #else | |
20215 | # include <assert.h> | |
20216 | #endif | |
ac1cb8d3 | 20217 | Syntax error |
a848cd7e SC |
20218 | _ACEOF |
20219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20221 | ac_status=$? | |
20222 | grep -v '^ *+' conftest.er1 >conftest.err | |
20223 | rm -f conftest.er1 | |
20224 | cat conftest.err >&5 | |
20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20226 | (exit $ac_status); } >/dev/null; then | |
20227 | if test -s conftest.err; then | |
20228 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20229 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20230 | else |
20231 | ac_cpp_err= | |
20232 | fi | |
20233 | else | |
20234 | ac_cpp_err=yes | |
20235 | fi | |
20236 | if test -z "$ac_cpp_err"; then | |
20237 | : | |
20238 | else | |
20239 | echo "$as_me: failed program was:" >&5 | |
20240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20241 | ||
20242 | # Broken: fails on valid input. | |
20243 | continue | |
20244 | fi | |
20245 | rm -f conftest.err conftest.$ac_ext | |
20246 | ||
20247 | # OK, works on sane cases. Now check whether non-existent headers | |
20248 | # can be detected and how. | |
20249 | cat >conftest.$ac_ext <<_ACEOF | |
20250 | /* confdefs.h. */ | |
20251 | _ACEOF | |
20252 | cat confdefs.h >>conftest.$ac_ext | |
20253 | cat >>conftest.$ac_ext <<_ACEOF | |
20254 | /* end confdefs.h. */ | |
20255 | #include <ac_nonexistent.h> | |
20256 | _ACEOF | |
20257 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20258 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20259 | ac_status=$? | |
20260 | grep -v '^ *+' conftest.er1 >conftest.err | |
20261 | rm -f conftest.er1 | |
20262 | cat conftest.err >&5 | |
20263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20264 | (exit $ac_status); } >/dev/null; then | |
20265 | if test -s conftest.err; then | |
20266 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20267 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20268 | else |
20269 | ac_cpp_err= | |
20270 | fi | |
20271 | else | |
20272 | ac_cpp_err=yes | |
20273 | fi | |
20274 | if test -z "$ac_cpp_err"; then | |
20275 | # Broken: success on invalid input. | |
20276 | continue | |
20277 | else | |
20278 | echo "$as_me: failed program was:" >&5 | |
20279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20280 | ||
20281 | # Passes both tests. | |
20282 | ac_preproc_ok=: | |
20283 | break | |
20284 | fi | |
20285 | rm -f conftest.err conftest.$ac_ext | |
20286 | ||
20287 | done | |
20288 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20289 | rm -f conftest.err conftest.$ac_ext | |
20290 | if $ac_preproc_ok; then | |
20291 | break | |
20292 | fi | |
20293 | ||
20294 | done | |
20295 | ac_cv_prog_CXXCPP=$CXXCPP | |
20296 | ||
20297 | fi | |
20298 | CXXCPP=$ac_cv_prog_CXXCPP | |
20299 | else | |
20300 | ac_cv_prog_CXXCPP=$CXXCPP | |
20301 | fi | |
20302 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
20303 | echo "${ECHO_T}$CXXCPP" >&6 | |
20304 | ac_preproc_ok=false | |
20305 | for ac_cxx_preproc_warn_flag in '' yes | |
20306 | do | |
20307 | # Use a header file that comes with gcc, so configuring glibc | |
20308 | # with a fresh cross-compiler works. | |
20309 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20310 | # <limits.h> exists even on freestanding compilers. | |
20311 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
20312 | # not just through cpp. "Syntax error" is here to catch this case. | |
20313 | cat >conftest.$ac_ext <<_ACEOF | |
20314 | /* confdefs.h. */ | |
20315 | _ACEOF | |
20316 | cat confdefs.h >>conftest.$ac_ext | |
20317 | cat >>conftest.$ac_ext <<_ACEOF | |
20318 | /* end confdefs.h. */ | |
20319 | #ifdef __STDC__ | |
20320 | # include <limits.h> | |
20321 | #else | |
20322 | # include <assert.h> | |
20323 | #endif | |
ac1cb8d3 | 20324 | Syntax error |
a848cd7e SC |
20325 | _ACEOF |
20326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20328 | ac_status=$? | |
20329 | grep -v '^ *+' conftest.er1 >conftest.err | |
20330 | rm -f conftest.er1 | |
20331 | cat conftest.err >&5 | |
20332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20333 | (exit $ac_status); } >/dev/null; then | |
20334 | if test -s conftest.err; then | |
20335 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20336 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20337 | else |
20338 | ac_cpp_err= | |
20339 | fi | |
20340 | else | |
20341 | ac_cpp_err=yes | |
20342 | fi | |
20343 | if test -z "$ac_cpp_err"; then | |
20344 | : | |
20345 | else | |
20346 | echo "$as_me: failed program was:" >&5 | |
20347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20348 | ||
20349 | # Broken: fails on valid input. | |
20350 | continue | |
20351 | fi | |
20352 | rm -f conftest.err conftest.$ac_ext | |
20353 | ||
20354 | # OK, works on sane cases. Now check whether non-existent headers | |
20355 | # can be detected and how. | |
20356 | cat >conftest.$ac_ext <<_ACEOF | |
20357 | /* confdefs.h. */ | |
20358 | _ACEOF | |
20359 | cat confdefs.h >>conftest.$ac_ext | |
20360 | cat >>conftest.$ac_ext <<_ACEOF | |
20361 | /* end confdefs.h. */ | |
20362 | #include <ac_nonexistent.h> | |
20363 | _ACEOF | |
20364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20366 | ac_status=$? | |
20367 | grep -v '^ *+' conftest.er1 >conftest.err | |
20368 | rm -f conftest.er1 | |
20369 | cat conftest.err >&5 | |
20370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20371 | (exit $ac_status); } >/dev/null; then | |
20372 | if test -s conftest.err; then | |
20373 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20374 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20375 | else |
20376 | ac_cpp_err= | |
20377 | fi | |
20378 | else | |
20379 | ac_cpp_err=yes | |
20380 | fi | |
20381 | if test -z "$ac_cpp_err"; then | |
20382 | # Broken: success on invalid input. | |
20383 | continue | |
20384 | else | |
20385 | echo "$as_me: failed program was:" >&5 | |
20386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20387 | ||
20388 | # Passes both tests. | |
20389 | ac_preproc_ok=: | |
20390 | break | |
20391 | fi | |
20392 | rm -f conftest.err conftest.$ac_ext | |
20393 | ||
20394 | done | |
20395 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
20396 | rm -f conftest.err conftest.$ac_ext | |
20397 | if $ac_preproc_ok; then | |
20398 | : | |
20399 | else | |
20400 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20401 | See \`config.log' for more details." >&5 | |
20402 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
20403 | See \`config.log' for more details." >&2;} | |
20404 | { (exit 1); exit 1; }; } | |
20405 | fi | |
20406 | ||
20407 | ac_ext=cc | |
20408 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20409 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20410 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20411 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20412 | ||
20413 | ||
20414 | ||
20415 | ||
20416 | ||
20417 | ac_ext=cc | |
20418 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20419 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20420 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20421 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20422 | ||
20423 | ||
20424 | ||
20425 | for ac_header in iostream | |
20426 | do | |
20427 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20428 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20433 | fi | |
20434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20435 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20436 | else | |
20437 | # Is the header compilable? | |
20438 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20439 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20440 | cat >conftest.$ac_ext <<_ACEOF | |
20441 | /* confdefs.h. */ | |
20442 | _ACEOF | |
20443 | cat confdefs.h >>conftest.$ac_ext | |
20444 | cat >>conftest.$ac_ext <<_ACEOF | |
20445 | /* end confdefs.h. */ | |
20446 | $ac_includes_default | |
20447 | #include <$ac_header> | |
20448 | _ACEOF | |
20449 | rm -f conftest.$ac_objext | |
20450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20451 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20452 | ac_status=$? |
ac1cb8d3 VS |
20453 | grep -v '^ *+' conftest.er1 >conftest.err |
20454 | rm -f conftest.er1 | |
20455 | cat conftest.err >&5 | |
a848cd7e SC |
20456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20457 | (exit $ac_status); } && | |
07158944 | 20458 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20460 | (eval $ac_try) 2>&5 | |
20461 | ac_status=$? | |
20462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20463 | (exit $ac_status); }; } && | |
20464 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20466 | (eval $ac_try) 2>&5 | |
20467 | ac_status=$? | |
20468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20469 | (exit $ac_status); }; }; then | |
20470 | ac_header_compiler=yes | |
20471 | else | |
20472 | echo "$as_me: failed program was:" >&5 | |
20473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20474 | ||
20475 | ac_header_compiler=no | |
20476 | fi | |
ac1cb8d3 | 20477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20478 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20479 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20480 | ||
20481 | # Is the header present? | |
20482 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20483 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20484 | cat >conftest.$ac_ext <<_ACEOF | |
20485 | /* confdefs.h. */ | |
20486 | _ACEOF | |
20487 | cat confdefs.h >>conftest.$ac_ext | |
20488 | cat >>conftest.$ac_ext <<_ACEOF | |
20489 | /* end confdefs.h. */ | |
20490 | #include <$ac_header> | |
20491 | _ACEOF | |
20492 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20493 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20494 | ac_status=$? | |
20495 | grep -v '^ *+' conftest.er1 >conftest.err | |
20496 | rm -f conftest.er1 | |
20497 | cat conftest.err >&5 | |
20498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20499 | (exit $ac_status); } >/dev/null; then | |
20500 | if test -s conftest.err; then | |
20501 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20502 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
20503 | else |
20504 | ac_cpp_err= | |
20505 | fi | |
20506 | else | |
20507 | ac_cpp_err=yes | |
20508 | fi | |
20509 | if test -z "$ac_cpp_err"; then | |
20510 | ac_header_preproc=yes | |
20511 | else | |
20512 | echo "$as_me: failed program was:" >&5 | |
20513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20514 | ||
20515 | ac_header_preproc=no | |
20516 | fi | |
20517 | rm -f conftest.err conftest.$ac_ext | |
20518 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20519 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20520 | ||
20521 | # So? What about this header? | |
ac1cb8d3 VS |
20522 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20523 | yes:no: ) | |
a848cd7e SC |
20524 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20525 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20527 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20528 | ac_header_preproc=yes | |
a848cd7e | 20529 | ;; |
ac1cb8d3 | 20530 | no:yes:* ) |
a848cd7e SC |
20531 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20532 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20533 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20534 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20535 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20536 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20537 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20538 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20541 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20542 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20543 | ( |
20544 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20545 | ## ----------------------------------------- ## |
20546 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20547 | ## ----------------------------------------- ## | |
a848cd7e SC |
20548 | _ASBOX |
20549 | ) | | |
20550 | sed "s/^/$as_me: WARNING: /" >&2 | |
20551 | ;; | |
20552 | esac | |
20553 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20554 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20555 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20557 | else | |
ac1cb8d3 | 20558 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20559 | fi |
20560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20561 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20562 | ||
20563 | fi | |
20564 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20565 | cat >>confdefs.h <<_ACEOF | |
20566 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20567 | _ACEOF | |
20568 | ||
20569 | fi | |
20570 | ||
20571 | done | |
20572 | ||
20573 | ||
20574 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20575 | : | |
20576 | else | |
20577 | cat >>confdefs.h <<\_ACEOF | |
20578 | #define wxUSE_IOSTREAMH 1 | |
20579 | _ACEOF | |
20580 | ||
20581 | fi | |
20582 | ||
20583 | ac_ext=c | |
20584 | ac_cpp='$CPP $CPPFLAGS' | |
20585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20588 | ||
20589 | ||
20590 | ||
20591 | ||
20592 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
20593 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
20594 | if test "${wx_cv_cpp_bool+set}" = set; then | |
20595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20596 | else | |
20597 | ||
20598 | ||
20599 | ||
20600 | ac_ext=cc | |
20601 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20602 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20603 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20604 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20605 | ||
20606 | ||
20607 | cat >conftest.$ac_ext <<_ACEOF | |
20608 | /* confdefs.h. */ | |
20609 | _ACEOF | |
20610 | cat confdefs.h >>conftest.$ac_ext | |
20611 | cat >>conftest.$ac_ext <<_ACEOF | |
20612 | /* end confdefs.h. */ | |
20613 | ||
20614 | ||
20615 | int | |
20616 | main () | |
20617 | { | |
20618 | ||
20619 | bool b = true; | |
20620 | ||
20621 | return 0; | |
20622 | ||
20623 | ; | |
20624 | return 0; | |
20625 | } | |
20626 | _ACEOF | |
20627 | rm -f conftest.$ac_objext | |
20628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20629 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20630 | ac_status=$? |
ac1cb8d3 VS |
20631 | grep -v '^ *+' conftest.er1 >conftest.err |
20632 | rm -f conftest.er1 | |
20633 | cat conftest.err >&5 | |
a848cd7e SC |
20634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20635 | (exit $ac_status); } && | |
07158944 | 20636 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20638 | (eval $ac_try) 2>&5 | |
20639 | ac_status=$? | |
20640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20641 | (exit $ac_status); }; } && | |
20642 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20644 | (eval $ac_try) 2>&5 | |
20645 | ac_status=$? | |
20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20647 | (exit $ac_status); }; }; then | |
20648 | ||
20649 | wx_cv_cpp_bool=yes | |
20650 | ||
20651 | else | |
20652 | echo "$as_me: failed program was:" >&5 | |
20653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20654 | ||
20655 | ||
20656 | wx_cv_cpp_bool=no | |
20657 | ||
20658 | ||
20659 | fi | |
ac1cb8d3 | 20660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20661 | |
20662 | ac_ext=c | |
20663 | ac_cpp='$CPP $CPPFLAGS' | |
20664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20667 | ||
20668 | ||
20669 | fi | |
20670 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
20671 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
20672 | ||
20673 | if test "$wx_cv_cpp_bool" = "yes"; then | |
20674 | cat >>confdefs.h <<\_ACEOF | |
20675 | #define HAVE_BOOL 1 | |
20676 | _ACEOF | |
20677 | ||
20678 | fi | |
20679 | ||
20680 | ||
20681 | ||
20682 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
20683 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
20684 | if test "${wx_cv_explicit+set}" = set; then | |
20685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20686 | else | |
20687 | ||
20688 | ||
20689 | ||
20690 | ac_ext=cc | |
20691 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20692 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20693 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20694 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20695 | ||
20696 | ||
20697 | cat >conftest.$ac_ext <<_ACEOF | |
20698 | /* confdefs.h. */ | |
20699 | _ACEOF | |
20700 | cat confdefs.h >>conftest.$ac_ext | |
20701 | cat >>conftest.$ac_ext <<_ACEOF | |
20702 | /* end confdefs.h. */ | |
20703 | ||
20704 | class Foo { public: explicit Foo(int) {} }; | |
20705 | ||
20706 | int | |
20707 | main () | |
20708 | { | |
20709 | ||
20710 | return 0; | |
20711 | ||
20712 | ; | |
20713 | return 0; | |
20714 | } | |
20715 | _ACEOF | |
20716 | rm -f conftest.$ac_objext | |
20717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20719 | ac_status=$? |
ac1cb8d3 VS |
20720 | grep -v '^ *+' conftest.er1 >conftest.err |
20721 | rm -f conftest.er1 | |
20722 | cat conftest.err >&5 | |
a848cd7e SC |
20723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20724 | (exit $ac_status); } && | |
07158944 | 20725 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20727 | (eval $ac_try) 2>&5 | |
20728 | ac_status=$? | |
20729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20730 | (exit $ac_status); }; } && | |
20731 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20733 | (eval $ac_try) 2>&5 | |
20734 | ac_status=$? | |
20735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20736 | (exit $ac_status); }; }; then | |
20737 | ||
20738 | cat >conftest.$ac_ext <<_ACEOF | |
20739 | /* confdefs.h. */ | |
20740 | _ACEOF | |
20741 | cat confdefs.h >>conftest.$ac_ext | |
20742 | cat >>conftest.$ac_ext <<_ACEOF | |
20743 | /* end confdefs.h. */ | |
20744 | ||
20745 | class Foo { public: explicit Foo(int) {} }; | |
20746 | static void TakeFoo(const Foo& foo) { } | |
20747 | ||
20748 | int | |
20749 | main () | |
20750 | { | |
20751 | ||
20752 | TakeFoo(17); | |
20753 | return 0; | |
20754 | ||
20755 | ; | |
20756 | return 0; | |
20757 | } | |
20758 | _ACEOF | |
20759 | rm -f conftest.$ac_objext | |
20760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20761 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20762 | ac_status=$? |
ac1cb8d3 VS |
20763 | grep -v '^ *+' conftest.er1 >conftest.err |
20764 | rm -f conftest.er1 | |
20765 | cat conftest.err >&5 | |
a848cd7e SC |
20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20767 | (exit $ac_status); } && | |
07158944 | 20768 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20770 | (eval $ac_try) 2>&5 | |
20771 | ac_status=$? | |
20772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20773 | (exit $ac_status); }; } && | |
20774 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20776 | (eval $ac_try) 2>&5 | |
20777 | ac_status=$? | |
20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20779 | (exit $ac_status); }; }; then | |
20780 | wx_cv_explicit=no | |
20781 | else | |
20782 | echo "$as_me: failed program was:" >&5 | |
20783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20784 | ||
20785 | wx_cv_explicit=yes | |
20786 | ||
20787 | fi | |
ac1cb8d3 | 20788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20789 | |
20790 | else | |
20791 | echo "$as_me: failed program was:" >&5 | |
20792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20793 | ||
20794 | wx_cv_explicit=no | |
20795 | ||
20796 | fi | |
ac1cb8d3 | 20797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20798 | |
20799 | ac_ext=c | |
20800 | ac_cpp='$CPP $CPPFLAGS' | |
20801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20804 | ||
20805 | ||
20806 | fi | |
20807 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
20808 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
20809 | ||
20810 | if test "$wx_cv_explicit" = "yes"; then | |
20811 | cat >>confdefs.h <<\_ACEOF | |
20812 | #define HAVE_EXPLICIT 1 | |
20813 | _ACEOF | |
20814 | ||
20815 | fi | |
20816 | ||
20817 | ||
20818 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
20819 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
20820 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
20821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20822 | else | |
20823 | ||
20824 | ||
20825 | ac_ext=cc | |
20826 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20830 | ||
20831 | cat >conftest.$ac_ext <<_ACEOF | |
20832 | /* confdefs.h. */ | |
20833 | _ACEOF | |
20834 | cat confdefs.h >>conftest.$ac_ext | |
20835 | cat >>conftest.$ac_ext <<_ACEOF | |
20836 | /* end confdefs.h. */ | |
20837 | ||
20838 | int | |
20839 | main () | |
20840 | { | |
20841 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
20842 | ; | |
20843 | return 0; | |
20844 | } | |
20845 | _ACEOF | |
20846 | rm -f conftest.$ac_objext | |
20847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20848 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20849 | ac_status=$? |
ac1cb8d3 VS |
20850 | grep -v '^ *+' conftest.er1 >conftest.err |
20851 | rm -f conftest.er1 | |
20852 | cat conftest.err >&5 | |
a848cd7e SC |
20853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20854 | (exit $ac_status); } && | |
07158944 | 20855 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20857 | (eval $ac_try) 2>&5 | |
20858 | ac_status=$? | |
20859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20860 | (exit $ac_status); }; } && | |
20861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20863 | (eval $ac_try) 2>&5 | |
20864 | ac_status=$? | |
20865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20866 | (exit $ac_status); }; }; then | |
20867 | ac_cv_cxx_const_cast=yes | |
20868 | else | |
20869 | echo "$as_me: failed program was:" >&5 | |
20870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20871 | ||
20872 | ac_cv_cxx_const_cast=no | |
20873 | fi | |
ac1cb8d3 | 20874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20875 | ac_ext=c |
20876 | ac_cpp='$CPP $CPPFLAGS' | |
20877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20880 | ||
20881 | ||
20882 | fi | |
20883 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
20884 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
20885 | if test "$ac_cv_cxx_const_cast" = yes; then | |
20886 | ||
20887 | cat >>confdefs.h <<\_ACEOF | |
20888 | #define HAVE_CONST_CAST | |
20889 | _ACEOF | |
20890 | ||
20891 | fi | |
20892 | ||
7714864e RL |
20893 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
20894 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
20895 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
20896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20897 | else | |
20898 | ||
20899 | ||
20900 | ac_ext=cc | |
20901 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20905 | ||
20906 | cat >conftest.$ac_ext <<_ACEOF | |
20907 | /* confdefs.h. */ | |
20908 | _ACEOF | |
20909 | cat confdefs.h >>conftest.$ac_ext | |
20910 | cat >>conftest.$ac_ext <<_ACEOF | |
20911 | /* end confdefs.h. */ | |
20912 | #include <typeinfo> | |
20913 | class Base { public : Base () {} virtual void f () = 0;}; | |
20914 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20915 | class Unrelated { public : Unrelated () {} }; | |
20916 | int g (Unrelated&) { return 0; } | |
20917 | int | |
20918 | main () | |
20919 | { | |
20920 | ||
20921 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
20922 | ; | |
20923 | return 0; | |
20924 | } | |
20925 | _ACEOF | |
20926 | rm -f conftest.$ac_objext | |
20927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20928 | (eval $ac_compile) 2>conftest.er1 | |
20929 | ac_status=$? | |
20930 | grep -v '^ *+' conftest.er1 >conftest.err | |
20931 | rm -f conftest.er1 | |
20932 | cat conftest.err >&5 | |
20933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20934 | (exit $ac_status); } && | |
07158944 | 20935 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
20936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20937 | (eval $ac_try) 2>&5 | |
20938 | ac_status=$? | |
20939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20940 | (exit $ac_status); }; } && | |
20941 | { ac_try='test -s conftest.$ac_objext' | |
20942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20943 | (eval $ac_try) 2>&5 | |
20944 | ac_status=$? | |
20945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20946 | (exit $ac_status); }; }; then | |
20947 | ac_cv_cxx_reinterpret_cast=yes | |
20948 | else | |
20949 | echo "$as_me: failed program was:" >&5 | |
20950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20951 | ||
20952 | ac_cv_cxx_reinterpret_cast=no | |
20953 | fi | |
20954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20955 | ac_ext=c | |
20956 | ac_cpp='$CPP $CPPFLAGS' | |
20957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20960 | ||
20961 | ||
20962 | fi | |
20963 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
20964 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
20965 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
20966 | ||
20967 | cat >>confdefs.h <<\_ACEOF | |
20968 | #define HAVE_REINTERPRET_CAST | |
20969 | _ACEOF | |
20970 | ||
20971 | fi | |
20972 | ||
a848cd7e SC |
20973 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
20974 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
20975 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
20976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20977 | else | |
20978 | ||
20979 | ||
20980 | ac_ext=cc | |
20981 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20982 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20983 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20984 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20985 | ||
20986 | cat >conftest.$ac_ext <<_ACEOF | |
20987 | /* confdefs.h. */ | |
20988 | _ACEOF | |
20989 | cat confdefs.h >>conftest.$ac_ext | |
20990 | cat >>conftest.$ac_ext <<_ACEOF | |
20991 | /* end confdefs.h. */ | |
20992 | #include <typeinfo> | |
20993 | class Base { public : Base () {} virtual void f () = 0; }; | |
20994 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20995 | int g (Derived&) { return 0; } | |
20996 | int | |
20997 | main () | |
20998 | { | |
20999 | ||
21000 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
21001 | ; | |
21002 | return 0; | |
21003 | } | |
21004 | _ACEOF | |
21005 | rm -f conftest.$ac_objext | |
21006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21008 | ac_status=$? |
ac1cb8d3 VS |
21009 | grep -v '^ *+' conftest.er1 >conftest.err |
21010 | rm -f conftest.er1 | |
21011 | cat conftest.err >&5 | |
a848cd7e SC |
21012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21013 | (exit $ac_status); } && | |
07158944 | 21014 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21016 | (eval $ac_try) 2>&5 | |
21017 | ac_status=$? | |
21018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21019 | (exit $ac_status); }; } && | |
21020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21022 | (eval $ac_try) 2>&5 | |
21023 | ac_status=$? | |
21024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21025 | (exit $ac_status); }; }; then | |
21026 | ac_cv_cxx_static_cast=yes | |
21027 | else | |
21028 | echo "$as_me: failed program was:" >&5 | |
21029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21030 | ||
21031 | ac_cv_cxx_static_cast=no | |
21032 | fi | |
ac1cb8d3 | 21033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21034 | ac_ext=c |
21035 | ac_cpp='$CPP $CPPFLAGS' | |
21036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21039 | ||
21040 | ||
21041 | fi | |
21042 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
21043 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
21044 | if test "$ac_cv_cxx_static_cast" = yes; then | |
21045 | ||
21046 | cat >>confdefs.h <<\_ACEOF | |
21047 | #define HAVE_STATIC_CAST | |
21048 | _ACEOF | |
21049 | ||
21050 | fi | |
21051 | ||
07158944 | 21052 | AC_CXX_DYNAMIC_CAST |
a848cd7e SC |
21053 | |
21054 | if test "$wxUSE_STL" = "yes"; then | |
21055 | ac_ext=cc | |
21056 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21057 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21058 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21059 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21060 | ||
21061 | ||
21062 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
21063 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
21064 | cat >conftest.$ac_ext <<_ACEOF | |
21065 | /* confdefs.h. */ | |
21066 | _ACEOF | |
21067 | cat confdefs.h >>conftest.$ac_ext | |
21068 | cat >>conftest.$ac_ext <<_ACEOF | |
21069 | /* end confdefs.h. */ | |
21070 | #include <string> | |
21071 | #include <functional> | |
21072 | #include <algorithm> | |
21073 | #include <vector> | |
21074 | #include <list> | |
21075 | int | |
21076 | main () | |
21077 | { | |
21078 | std::vector<int> moo; | |
21079 | std::list<int> foo; | |
21080 | std::vector<int>::iterator it = | |
21081 | std::find_if(moo.begin(), moo.end(), | |
21082 | std::bind2nd(std::less<int>(), 3)); | |
21083 | ; | |
21084 | return 0; | |
21085 | } | |
21086 | _ACEOF | |
21087 | rm -f conftest.$ac_objext | |
21088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21089 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21090 | ac_status=$? |
ac1cb8d3 VS |
21091 | grep -v '^ *+' conftest.er1 >conftest.err |
21092 | rm -f conftest.er1 | |
21093 | cat conftest.err >&5 | |
a848cd7e SC |
21094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21095 | (exit $ac_status); } && | |
07158944 | 21096 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21098 | (eval $ac_try) 2>&5 | |
21099 | ac_status=$? | |
21100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21101 | (exit $ac_status); }; } && | |
21102 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21104 | (eval $ac_try) 2>&5 | |
21105 | ac_status=$? | |
21106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21107 | (exit $ac_status); }; }; then | |
21108 | echo "$as_me:$LINENO: result: yes" >&5 | |
21109 | echo "${ECHO_T}yes" >&6 | |
21110 | else | |
21111 | echo "$as_me: failed program was:" >&5 | |
21112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21113 | ||
21114 | echo "$as_me:$LINENO: result: no" >&5 | |
21115 | echo "${ECHO_T}no" >&6 | |
21116 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
21117 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
21118 | { (exit 1); exit 1; }; } | |
21119 | fi | |
ac1cb8d3 | 21120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21121 | |
21122 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
21123 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
21124 | cat >conftest.$ac_ext <<_ACEOF | |
21125 | /* confdefs.h. */ | |
21126 | _ACEOF | |
21127 | cat confdefs.h >>conftest.$ac_ext | |
21128 | cat >>conftest.$ac_ext <<_ACEOF | |
21129 | /* end confdefs.h. */ | |
21130 | #include <string> | |
21131 | int | |
21132 | main () | |
21133 | { | |
21134 | std::wstring foo; | |
21135 | ; | |
21136 | return 0; | |
21137 | } | |
21138 | _ACEOF | |
21139 | rm -f conftest.$ac_objext | |
21140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21141 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21142 | ac_status=$? |
ac1cb8d3 VS |
21143 | grep -v '^ *+' conftest.er1 >conftest.err |
21144 | rm -f conftest.er1 | |
21145 | cat conftest.err >&5 | |
a848cd7e SC |
21146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21147 | (exit $ac_status); } && | |
07158944 | 21148 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21150 | (eval $ac_try) 2>&5 | |
21151 | ac_status=$? | |
21152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21153 | (exit $ac_status); }; } && | |
21154 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21156 | (eval $ac_try) 2>&5 | |
21157 | ac_status=$? | |
21158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21159 | (exit $ac_status); }; }; then | |
21160 | echo "$as_me:$LINENO: result: yes" >&5 | |
21161 | echo "${ECHO_T}yes" >&6 | |
21162 | cat >>confdefs.h <<\_ACEOF | |
21163 | #define HAVE_STD_WSTRING 1 | |
21164 | _ACEOF | |
21165 | ||
21166 | else | |
21167 | echo "$as_me: failed program was:" >&5 | |
21168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21169 | ||
21170 | echo "$as_me:$LINENO: result: no" >&5 | |
21171 | echo "${ECHO_T}no" >&6 | |
21172 | fi | |
ac1cb8d3 | 21173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21174 | |
21175 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
21176 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
21177 | cat >conftest.$ac_ext <<_ACEOF | |
21178 | /* confdefs.h. */ | |
21179 | _ACEOF | |
21180 | cat confdefs.h >>conftest.$ac_ext | |
21181 | cat >>conftest.$ac_ext <<_ACEOF | |
21182 | /* end confdefs.h. */ | |
21183 | #include <string> | |
21184 | int | |
21185 | main () | |
21186 | { | |
21187 | std::string foo, bar; | |
21188 | foo.compare(bar); | |
21189 | foo.compare(1, 1, bar); | |
21190 | foo.compare(1, 1, bar, 1, 1); | |
21191 | foo.compare(""); | |
21192 | foo.compare(1, 1, ""); | |
21193 | foo.compare(1, 1, "", 2); | |
21194 | ; | |
21195 | return 0; | |
21196 | } | |
21197 | _ACEOF | |
21198 | rm -f conftest.$ac_objext | |
21199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21200 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21201 | ac_status=$? |
ac1cb8d3 VS |
21202 | grep -v '^ *+' conftest.er1 >conftest.err |
21203 | rm -f conftest.er1 | |
21204 | cat conftest.err >&5 | |
a848cd7e SC |
21205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21206 | (exit $ac_status); } && | |
07158944 | 21207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21209 | (eval $ac_try) 2>&5 | |
21210 | ac_status=$? | |
21211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21212 | (exit $ac_status); }; } && | |
21213 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21215 | (eval $ac_try) 2>&5 | |
21216 | ac_status=$? | |
21217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21218 | (exit $ac_status); }; }; then | |
21219 | echo "$as_me:$LINENO: result: yes" >&5 | |
21220 | echo "${ECHO_T}yes" >&6 | |
21221 | cat >>confdefs.h <<\_ACEOF | |
21222 | #define HAVE_STD_STRING_COMPARE 1 | |
21223 | _ACEOF | |
21224 | ||
21225 | else | |
21226 | echo "$as_me: failed program was:" >&5 | |
21227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21228 | ||
21229 | echo "$as_me:$LINENO: result: no" >&5 | |
21230 | echo "${ECHO_T}no" >&6 | |
21231 | fi | |
ac1cb8d3 | 21232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21233 | |
21234 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21235 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21236 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21237 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21239 | fi | |
21240 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21241 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21242 | else | |
21243 | # Is the header compilable? | |
21244 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
21245 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
21246 | cat >conftest.$ac_ext <<_ACEOF | |
21247 | /* confdefs.h. */ | |
21248 | _ACEOF | |
21249 | cat confdefs.h >>conftest.$ac_ext | |
21250 | cat >>conftest.$ac_ext <<_ACEOF | |
21251 | /* end confdefs.h. */ | |
21252 | $ac_includes_default | |
21253 | #include <hash_map> | |
21254 | _ACEOF | |
21255 | rm -f conftest.$ac_objext | |
21256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21257 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21258 | ac_status=$? |
ac1cb8d3 VS |
21259 | grep -v '^ *+' conftest.er1 >conftest.err |
21260 | rm -f conftest.er1 | |
21261 | cat conftest.err >&5 | |
bdcade0a MB |
21262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21263 | (exit $ac_status); } && | |
07158944 | 21264 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21266 | (eval $ac_try) 2>&5 | |
21267 | ac_status=$? | |
21268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21269 | (exit $ac_status); }; } && | |
21270 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21272 | (eval $ac_try) 2>&5 | |
21273 | ac_status=$? | |
21274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21275 | (exit $ac_status); }; }; then | |
21276 | ac_header_compiler=yes | |
21277 | else | |
21278 | echo "$as_me: failed program was:" >&5 | |
21279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21280 | ||
21281 | ac_header_compiler=no | |
21282 | fi | |
ac1cb8d3 | 21283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21284 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21285 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21286 | ||
21287 | # Is the header present? | |
21288 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
21289 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
21290 | cat >conftest.$ac_ext <<_ACEOF | |
21291 | /* confdefs.h. */ | |
21292 | _ACEOF | |
21293 | cat confdefs.h >>conftest.$ac_ext | |
21294 | cat >>conftest.$ac_ext <<_ACEOF | |
21295 | /* end confdefs.h. */ | |
21296 | #include <hash_map> | |
21297 | _ACEOF | |
21298 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21299 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21300 | ac_status=$? | |
21301 | grep -v '^ *+' conftest.er1 >conftest.err | |
21302 | rm -f conftest.er1 | |
21303 | cat conftest.err >&5 | |
21304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21305 | (exit $ac_status); } >/dev/null; then | |
21306 | if test -s conftest.err; then | |
21307 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21308 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21309 | else |
21310 | ac_cpp_err= | |
21311 | fi | |
21312 | else | |
21313 | ac_cpp_err=yes | |
21314 | fi | |
21315 | if test -z "$ac_cpp_err"; then | |
21316 | ac_header_preproc=yes | |
21317 | else | |
21318 | echo "$as_me: failed program was:" >&5 | |
21319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21320 | ||
21321 | ac_header_preproc=no | |
21322 | fi | |
21323 | rm -f conftest.err conftest.$ac_ext | |
21324 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21325 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21326 | ||
21327 | # So? What about this header? | |
ac1cb8d3 VS |
21328 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21329 | yes:no: ) | |
bdcade0a MB |
21330 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21331 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21332 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
21333 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
21334 | ac_header_preproc=yes | |
bdcade0a | 21335 | ;; |
ac1cb8d3 | 21336 | no:yes:* ) |
bdcade0a MB |
21337 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
21338 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21339 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
21340 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
21341 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
21342 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
21343 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21344 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21345 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
21346 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21347 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
21348 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21349 | ( |
21350 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21351 | ## ----------------------------------------- ## |
21352 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21353 | ## ----------------------------------------- ## | |
bdcade0a MB |
21354 | _ASBOX |
21355 | ) | | |
21356 | sed "s/^/$as_me: WARNING: /" >&2 | |
21357 | ;; | |
21358 | esac | |
21359 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
21360 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
21361 | if test "${ac_cv_header_hash_map+set}" = set; then | |
21362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21363 | else | |
21364 | ac_cv_header_hash_map=$ac_header_preproc | |
21365 | fi | |
21366 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
21367 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
21368 | ||
21369 | fi | |
21370 | if test $ac_cv_header_hash_map = yes; then | |
21371 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21372 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21373 | cat >conftest.$ac_ext <<_ACEOF | |
21374 | /* confdefs.h. */ | |
21375 | _ACEOF | |
21376 | cat confdefs.h >>conftest.$ac_ext | |
21377 | cat >>conftest.$ac_ext <<_ACEOF | |
21378 | /* end confdefs.h. */ | |
21379 | #include <hash_map> | |
21380 | #include <hash_set> | |
21381 | int | |
21382 | main () | |
21383 | { | |
21384 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
21385 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
21386 | ; | |
21387 | return 0; | |
21388 | } | |
21389 | _ACEOF | |
21390 | rm -f conftest.$ac_objext | |
21391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21392 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21393 | ac_status=$? |
ac1cb8d3 VS |
21394 | grep -v '^ *+' conftest.er1 >conftest.err |
21395 | rm -f conftest.er1 | |
21396 | cat conftest.err >&5 | |
bdcade0a MB |
21397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21398 | (exit $ac_status); } && | |
07158944 | 21399 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21401 | (eval $ac_try) 2>&5 | |
21402 | ac_status=$? | |
21403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21404 | (exit $ac_status); }; } && | |
21405 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21407 | (eval $ac_try) 2>&5 | |
21408 | ac_status=$? | |
21409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21410 | (exit $ac_status); }; }; then | |
21411 | echo "$as_me:$LINENO: result: yes" >&5 | |
21412 | echo "${ECHO_T}yes" >&6 | |
21413 | cat >>confdefs.h <<\_ACEOF | |
21414 | #define HAVE_HASH_MAP 1 | |
21415 | _ACEOF | |
21416 | ||
21417 | cat >>confdefs.h <<\_ACEOF | |
21418 | #define HAVE_STD_HASH_MAP 1 | |
21419 | _ACEOF | |
21420 | ||
21421 | else | |
21422 | echo "$as_me: failed program was:" >&5 | |
21423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21424 | ||
21425 | echo "$as_me:$LINENO: result: no" >&5 | |
21426 | echo "${ECHO_T}no" >&6 | |
21427 | fi | |
ac1cb8d3 | 21428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21429 | |
21430 | fi | |
21431 | ||
21432 | ||
21433 | ||
21434 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21435 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21436 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21437 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21439 | fi | |
21440 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21441 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21442 | else | |
21443 | # Is the header compilable? | |
21444 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
21445 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
21446 | cat >conftest.$ac_ext <<_ACEOF | |
21447 | /* confdefs.h. */ | |
21448 | _ACEOF | |
21449 | cat confdefs.h >>conftest.$ac_ext | |
21450 | cat >>conftest.$ac_ext <<_ACEOF | |
21451 | /* end confdefs.h. */ | |
21452 | $ac_includes_default | |
21453 | #include <ext/hash_map> | |
21454 | _ACEOF | |
21455 | rm -f conftest.$ac_objext | |
21456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21457 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21458 | ac_status=$? |
ac1cb8d3 VS |
21459 | grep -v '^ *+' conftest.er1 >conftest.err |
21460 | rm -f conftest.er1 | |
21461 | cat conftest.err >&5 | |
bdcade0a MB |
21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21463 | (exit $ac_status); } && | |
07158944 | 21464 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21466 | (eval $ac_try) 2>&5 | |
21467 | ac_status=$? | |
21468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21469 | (exit $ac_status); }; } && | |
21470 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21472 | (eval $ac_try) 2>&5 | |
21473 | ac_status=$? | |
21474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21475 | (exit $ac_status); }; }; then | |
21476 | ac_header_compiler=yes | |
21477 | else | |
21478 | echo "$as_me: failed program was:" >&5 | |
21479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21480 | ||
21481 | ac_header_compiler=no | |
21482 | fi | |
ac1cb8d3 | 21483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21484 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21485 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21486 | ||
21487 | # Is the header present? | |
21488 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
21489 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
21490 | cat >conftest.$ac_ext <<_ACEOF | |
21491 | /* confdefs.h. */ | |
21492 | _ACEOF | |
21493 | cat confdefs.h >>conftest.$ac_ext | |
21494 | cat >>conftest.$ac_ext <<_ACEOF | |
21495 | /* end confdefs.h. */ | |
21496 | #include <ext/hash_map> | |
21497 | _ACEOF | |
21498 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21499 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21500 | ac_status=$? | |
21501 | grep -v '^ *+' conftest.er1 >conftest.err | |
21502 | rm -f conftest.er1 | |
21503 | cat conftest.err >&5 | |
21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21505 | (exit $ac_status); } >/dev/null; then | |
21506 | if test -s conftest.err; then | |
21507 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21508 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
21509 | else |
21510 | ac_cpp_err= | |
21511 | fi | |
21512 | else | |
21513 | ac_cpp_err=yes | |
21514 | fi | |
21515 | if test -z "$ac_cpp_err"; then | |
21516 | ac_header_preproc=yes | |
21517 | else | |
21518 | echo "$as_me: failed program was:" >&5 | |
21519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21520 | ||
21521 | ac_header_preproc=no | |
21522 | fi | |
21523 | rm -f conftest.err conftest.$ac_ext | |
21524 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21525 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21526 | ||
21527 | # So? What about this header? | |
ac1cb8d3 VS |
21528 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21529 | yes:no: ) | |
bdcade0a MB |
21530 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21531 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21532 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
21533 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
21534 | ac_header_preproc=yes | |
bdcade0a | 21535 | ;; |
ac1cb8d3 | 21536 | no:yes:* ) |
bdcade0a MB |
21537 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
21538 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21539 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
21540 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
21541 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
21542 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
21543 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21544 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21545 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
21546 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21547 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
21548 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21549 | ( |
21550 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21551 | ## ----------------------------------------- ## |
21552 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21553 | ## ----------------------------------------- ## | |
bdcade0a MB |
21554 | _ASBOX |
21555 | ) | | |
21556 | sed "s/^/$as_me: WARNING: /" >&2 | |
21557 | ;; | |
21558 | esac | |
21559 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21560 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21561 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21563 | else | |
21564 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
21565 | fi | |
21566 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21567 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21568 | ||
21569 | fi | |
21570 | if test $ac_cv_header_ext_hash_map = yes; then | |
21571 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21572 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21573 | cat >conftest.$ac_ext <<_ACEOF | |
21574 | /* confdefs.h. */ | |
21575 | _ACEOF | |
21576 | cat confdefs.h >>conftest.$ac_ext | |
21577 | cat >>conftest.$ac_ext <<_ACEOF | |
21578 | /* end confdefs.h. */ | |
21579 | #include <ext/hash_map> | |
21580 | #include <ext/hash_set> | |
21581 | int | |
21582 | main () | |
21583 | { | |
21584 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
21585 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
21586 | ; | |
21587 | return 0; | |
21588 | } | |
21589 | _ACEOF | |
21590 | rm -f conftest.$ac_objext | |
21591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21592 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21593 | ac_status=$? |
ac1cb8d3 VS |
21594 | grep -v '^ *+' conftest.er1 >conftest.err |
21595 | rm -f conftest.er1 | |
21596 | cat conftest.err >&5 | |
bdcade0a MB |
21597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21598 | (exit $ac_status); } && | |
07158944 | 21599 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21601 | (eval $ac_try) 2>&5 | |
21602 | ac_status=$? | |
21603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21604 | (exit $ac_status); }; } && | |
21605 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21607 | (eval $ac_try) 2>&5 | |
21608 | ac_status=$? | |
21609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21610 | (exit $ac_status); }; }; then | |
21611 | echo "$as_me:$LINENO: result: yes" >&5 | |
21612 | echo "${ECHO_T}yes" >&6 | |
21613 | cat >>confdefs.h <<\_ACEOF | |
21614 | #define HAVE_EXT_HASH_MAP 1 | |
21615 | _ACEOF | |
21616 | ||
21617 | cat >>confdefs.h <<\_ACEOF | |
21618 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
21619 | _ACEOF | |
21620 | ||
21621 | else | |
21622 | echo "$as_me: failed program was:" >&5 | |
21623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21624 | ||
21625 | echo "$as_me:$LINENO: result: no" >&5 | |
21626 | echo "${ECHO_T}no" >&6 | |
21627 | fi | |
ac1cb8d3 | 21628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21629 | |
21630 | fi | |
21631 | ||
21632 | ||
a848cd7e SC |
21633 | |
21634 | ac_ext=c | |
21635 | ac_cpp='$CPP $CPPFLAGS' | |
21636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21639 | ||
21640 | fi | |
21641 | ||
21642 | ||
21643 | SEARCH_INCLUDE="\ | |
21644 | /usr/local/include \ | |
21645 | \ | |
21646 | /usr/Motif-2.1/include \ | |
21647 | /usr/Motif-1.2/include \ | |
21648 | /usr/include/Motif1.2 \ | |
21649 | /opt/xpm/include/X11 \ | |
21650 | /opt/GBxpm/include/ \ | |
21651 | /opt/GBxpm/X11/include/ \ | |
21652 | \ | |
21653 | /usr/dt/include \ | |
21654 | /usr/openwin/include \ | |
21655 | \ | |
21656 | /usr/include/Xm \ | |
21657 | \ | |
21658 | /usr/X11R6/include \ | |
21659 | /usr/X11R6.4/include \ | |
21660 | /usr/X11R5/include \ | |
21661 | /usr/X11R4/include \ | |
21662 | \ | |
21663 | /usr/include/X11R6 \ | |
21664 | /usr/include/X11R5 \ | |
21665 | /usr/include/X11R4 \ | |
21666 | \ | |
21667 | /usr/local/X11R6/include \ | |
21668 | /usr/local/X11R5/include \ | |
21669 | /usr/local/X11R4/include \ | |
21670 | \ | |
21671 | /usr/local/include/X11R6 \ | |
21672 | /usr/local/include/X11R5 \ | |
21673 | /usr/local/include/X11R4 \ | |
21674 | \ | |
21675 | /usr/X11/include \ | |
21676 | /usr/include/X11 \ | |
21677 | /usr/local/X11/include \ | |
21678 | /usr/local/include/X11 \ | |
21679 | \ | |
21680 | /usr/X386/include \ | |
21681 | /usr/x386/include \ | |
21682 | /usr/XFree86/include/X11 \ | |
21683 | \ | |
21684 | X:/XFree86/include \ | |
21685 | X:/XFree86/include/X11 \ | |
21686 | \ | |
21687 | /usr/include/gtk \ | |
21688 | /usr/local/include/gtk \ | |
21689 | /usr/include/glib \ | |
21690 | /usr/local/include/glib \ | |
21691 | \ | |
21692 | /usr/include/qt \ | |
21693 | /usr/local/include/qt \ | |
21694 | \ | |
21695 | /usr/local/arm/3.3.2/include \ | |
21696 | \ | |
21697 | /usr/include/windows \ | |
21698 | /usr/include/wine \ | |
21699 | /usr/local/include/wine \ | |
21700 | \ | |
21701 | /usr/unsupported/include \ | |
21702 | /usr/athena/include \ | |
21703 | /usr/local/x11r5/include \ | |
21704 | /usr/lpp/Xamples/include \ | |
21705 | \ | |
21706 | /usr/openwin/share/include" | |
21707 | ||
07158944 | 21708 | SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`" |
a848cd7e SC |
21709 | |
21710 | ||
21711 | cat >confcache <<\_ACEOF | |
21712 | # This file is a shell script that caches the results of configure | |
21713 | # tests run on this system so they can be shared between configure | |
21714 | # scripts and configure runs, see configure's option --config-cache. | |
21715 | # It is not useful on other systems. If it contains results you don't | |
21716 | # want to keep, you may remove or edit it. | |
21717 | # | |
21718 | # config.status only pays attention to the cache file if you give it | |
21719 | # the --recheck option to rerun configure. | |
21720 | # | |
21721 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21722 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21723 | # following values. | |
21724 | ||
21725 | _ACEOF | |
21726 | ||
21727 | # The following way of writing the cache mishandles newlines in values, | |
21728 | # but we know of no workaround that is simple, portable, and efficient. | |
21729 | # So, don't put newlines in cache variables' values. | |
21730 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21731 | # and sets the high bit in the cache file unless we assign to the vars. | |
21732 | { | |
21733 | (set) 2>&1 | | |
21734 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21735 | *ac_space=\ *) | |
21736 | # `set' does not quote correctly, so add quotes (double-quote | |
21737 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21738 | sed -n \ | |
ac1cb8d3 VS |
21739 | "s/'/'\\\\''/g; |
21740 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
21741 | ;; |
21742 | *) | |
21743 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21744 | sed -n \ | |
ac1cb8d3 | 21745 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
21746 | ;; |
21747 | esac; | |
21748 | } | | |
21749 | sed ' | |
21750 | t clear | |
21751 | : clear | |
21752 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21753 | t end | |
21754 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21755 | : end' >>confcache | |
21756 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21757 | if test -w $cache_file; then | |
21758 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21759 | cat confcache >$cache_file | |
21760 | else | |
21761 | echo "not updating unwritable cache $cache_file" | |
21762 | fi | |
21763 | fi | |
21764 | rm -f confcache | |
21765 | ||
21766 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
21767 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
21768 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
21769 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
21770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21771 | else | |
21772 | ||
21773 | cat >conftest.$ac_ext <<_ACEOF | |
21774 | /* confdefs.h. */ | |
21775 | _ACEOF | |
21776 | cat confdefs.h >>conftest.$ac_ext | |
21777 | cat >>conftest.$ac_ext <<_ACEOF | |
21778 | /* end confdefs.h. */ | |
21779 | #include <features.h> | |
21780 | int | |
21781 | main () | |
21782 | { | |
21783 | ||
21784 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
21785 | #error not glibc2.1 | |
21786 | #endif | |
21787 | ||
21788 | ; | |
21789 | return 0; | |
21790 | } | |
21791 | _ACEOF | |
21792 | rm -f conftest.$ac_objext | |
21793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21795 | ac_status=$? |
ac1cb8d3 VS |
21796 | grep -v '^ *+' conftest.er1 >conftest.err |
21797 | rm -f conftest.er1 | |
21798 | cat conftest.err >&5 | |
a848cd7e SC |
21799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21800 | (exit $ac_status); } && | |
07158944 | 21801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21803 | (eval $ac_try) 2>&5 | |
21804 | ac_status=$? | |
21805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21806 | (exit $ac_status); }; } && | |
21807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21809 | (eval $ac_try) 2>&5 | |
21810 | ac_status=$? | |
21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21812 | (exit $ac_status); }; }; then | |
21813 | ||
21814 | wx_cv_lib_glibc21=yes | |
21815 | ||
21816 | else | |
21817 | echo "$as_me: failed program was:" >&5 | |
21818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21819 | ||
21820 | ||
21821 | wx_cv_lib_glibc21=no | |
21822 | ||
21823 | ||
21824 | fi | |
ac1cb8d3 | 21825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21826 | |
21827 | fi | |
21828 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
21829 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21830 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
21831 | cat >>confdefs.h <<\_ACEOF | |
21832 | #define wxHAVE_GLIBC2 1 | |
21833 | _ACEOF | |
21834 | ||
21835 | fi | |
21836 | fi | |
21837 | ||
21838 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
21839 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
21840 | cat >>confdefs.h <<\_ACEOF | |
21841 | #define _GNU_SOURCE 1 | |
21842 | _ACEOF | |
21843 | ||
21844 | fi | |
21845 | fi | |
21846 | ||
21847 | ||
21848 | ||
21849 | if test "$wxUSE_REGEX" != "no"; then | |
21850 | cat >>confdefs.h <<\_ACEOF | |
21851 | #define wxUSE_REGEX 1 | |
21852 | _ACEOF | |
21853 | ||
21854 | ||
21855 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
21856 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
21857 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
21858 | wxUSE_REGEX=builtin | |
21859 | fi | |
21860 | ||
21861 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
21862 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21863 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21864 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21865 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21867 | fi | |
21868 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21869 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21870 | else | |
21871 | # Is the header compilable? | |
21872 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
21873 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
21874 | cat >conftest.$ac_ext <<_ACEOF | |
21875 | /* confdefs.h. */ | |
21876 | _ACEOF | |
21877 | cat confdefs.h >>conftest.$ac_ext | |
21878 | cat >>conftest.$ac_ext <<_ACEOF | |
21879 | /* end confdefs.h. */ | |
21880 | $ac_includes_default | |
21881 | #include <regex.h> | |
21882 | _ACEOF | |
21883 | rm -f conftest.$ac_objext | |
21884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21885 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21886 | ac_status=$? |
ac1cb8d3 VS |
21887 | grep -v '^ *+' conftest.er1 >conftest.err |
21888 | rm -f conftest.er1 | |
21889 | cat conftest.err >&5 | |
a848cd7e SC |
21890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21891 | (exit $ac_status); } && | |
07158944 | 21892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21894 | (eval $ac_try) 2>&5 | |
21895 | ac_status=$? | |
21896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21897 | (exit $ac_status); }; } && | |
21898 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21900 | (eval $ac_try) 2>&5 | |
21901 | ac_status=$? | |
21902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21903 | (exit $ac_status); }; }; then | |
21904 | ac_header_compiler=yes | |
21905 | else | |
21906 | echo "$as_me: failed program was:" >&5 | |
21907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21908 | ||
21909 | ac_header_compiler=no | |
21910 | fi | |
ac1cb8d3 | 21911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21912 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21913 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21914 | ||
21915 | # Is the header present? | |
21916 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
21917 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
21918 | cat >conftest.$ac_ext <<_ACEOF | |
21919 | /* confdefs.h. */ | |
21920 | _ACEOF | |
21921 | cat confdefs.h >>conftest.$ac_ext | |
21922 | cat >>conftest.$ac_ext <<_ACEOF | |
21923 | /* end confdefs.h. */ | |
21924 | #include <regex.h> | |
21925 | _ACEOF | |
21926 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21927 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21928 | ac_status=$? | |
21929 | grep -v '^ *+' conftest.er1 >conftest.err | |
21930 | rm -f conftest.er1 | |
21931 | cat conftest.err >&5 | |
21932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21933 | (exit $ac_status); } >/dev/null; then | |
21934 | if test -s conftest.err; then | |
21935 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21936 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21937 | else |
21938 | ac_cpp_err= | |
21939 | fi | |
21940 | else | |
21941 | ac_cpp_err=yes | |
21942 | fi | |
21943 | if test -z "$ac_cpp_err"; then | |
21944 | ac_header_preproc=yes | |
21945 | else | |
21946 | echo "$as_me: failed program was:" >&5 | |
21947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21948 | ||
21949 | ac_header_preproc=no | |
21950 | fi | |
21951 | rm -f conftest.err conftest.$ac_ext | |
21952 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21953 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21954 | ||
21955 | # So? What about this header? | |
ac1cb8d3 VS |
21956 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21957 | yes:no: ) | |
a848cd7e SC |
21958 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21959 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21960 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
21961 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
21962 | ac_header_preproc=yes | |
a848cd7e | 21963 | ;; |
ac1cb8d3 | 21964 | no:yes:* ) |
a848cd7e SC |
21965 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
21966 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21967 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
21968 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
21969 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
21970 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
21971 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21972 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21973 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
21974 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21975 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
21976 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21977 | ( |
21978 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21979 | ## ----------------------------------------- ## |
21980 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21981 | ## ----------------------------------------- ## | |
a848cd7e SC |
21982 | _ASBOX |
21983 | ) | | |
21984 | sed "s/^/$as_me: WARNING: /" >&2 | |
21985 | ;; | |
21986 | esac | |
21987 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21988 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21989 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21991 | else | |
21992 | ac_cv_header_regex_h=$ac_header_preproc | |
21993 | fi | |
21994 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21995 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21996 | ||
21997 | fi | |
21998 | if test $ac_cv_header_regex_h = yes; then | |
21999 | ||
22000 | for ac_func in regcomp | |
22001 | do | |
22002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22003 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22005 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22007 | else | |
22008 | cat >conftest.$ac_ext <<_ACEOF | |
22009 | /* confdefs.h. */ | |
22010 | _ACEOF | |
22011 | cat confdefs.h >>conftest.$ac_ext | |
22012 | cat >>conftest.$ac_ext <<_ACEOF | |
22013 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
22014 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22016 | #define $ac_func innocuous_$ac_func | |
22017 | ||
a848cd7e SC |
22018 | /* System header to define __stub macros and hopefully few prototypes, |
22019 | which can conflict with char $ac_func (); below. | |
22020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22021 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 22022 | |
a848cd7e SC |
22023 | #ifdef __STDC__ |
22024 | # include <limits.h> | |
22025 | #else | |
22026 | # include <assert.h> | |
22027 | #endif | |
ac1cb8d3 VS |
22028 | |
22029 | #undef $ac_func | |
22030 | ||
a848cd7e SC |
22031 | /* Override any gcc2 internal prototype to avoid an error. */ |
22032 | #ifdef __cplusplus | |
22033 | extern "C" | |
22034 | { | |
22035 | #endif | |
22036 | /* We use char because int might match the return type of a gcc2 | |
22037 | builtin and then its argument prototype would still apply. */ | |
22038 | char $ac_func (); | |
22039 | /* The GNU C library defines this for functions which it implements | |
22040 | to always fail with ENOSYS. Some functions are actually named | |
22041 | something starting with __ and the normal name is an alias. */ | |
22042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22043 | choke me | |
22044 | #else | |
22045 | char (*f) () = $ac_func; | |
22046 | #endif | |
22047 | #ifdef __cplusplus | |
22048 | } | |
22049 | #endif | |
22050 | ||
22051 | int | |
22052 | main () | |
22053 | { | |
22054 | return f != $ac_func; | |
22055 | ; | |
22056 | return 0; | |
22057 | } | |
22058 | _ACEOF | |
22059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22061 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22062 | ac_status=$? |
ac1cb8d3 VS |
22063 | grep -v '^ *+' conftest.er1 >conftest.err |
22064 | rm -f conftest.er1 | |
22065 | cat conftest.err >&5 | |
a848cd7e SC |
22066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22067 | (exit $ac_status); } && | |
07158944 | 22068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22070 | (eval $ac_try) 2>&5 | |
22071 | ac_status=$? | |
22072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22073 | (exit $ac_status); }; } && | |
22074 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22076 | (eval $ac_try) 2>&5 | |
22077 | ac_status=$? | |
22078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22079 | (exit $ac_status); }; }; then | |
22080 | eval "$as_ac_var=yes" | |
22081 | else | |
22082 | echo "$as_me: failed program was:" >&5 | |
22083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22084 | ||
22085 | eval "$as_ac_var=no" | |
22086 | fi | |
ac1cb8d3 VS |
22087 | rm -f conftest.err conftest.$ac_objext \ |
22088 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22089 | fi |
22090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22091 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22092 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22093 | cat >>confdefs.h <<_ACEOF | |
22094 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22095 | _ACEOF | |
22096 | ||
22097 | fi | |
22098 | done | |
22099 | ||
22100 | fi | |
22101 | ||
22102 | ||
22103 | ||
22104 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
22105 | if test "$wxUSE_REGEX" = "sys" ; then | |
22106 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
22107 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
22108 | { (exit 1); exit 1; }; } | |
22109 | else | |
22110 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
22111 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
22112 | wxUSE_REGEX=builtin | |
22113 | fi | |
22114 | else | |
22115 | wxUSE_REGEX=sys | |
22116 | cat >>confdefs.h <<\_ACEOF | |
22117 | #define WX_NO_REGEX_ADVANCED 1 | |
22118 | _ACEOF | |
22119 | ||
22120 | fi | |
22121 | fi | |
22122 | fi | |
22123 | ||
22124 | ||
22125 | ZLIB_LINK= | |
22126 | if test "$wxUSE_ZLIB" != "no" ; then | |
22127 | cat >>confdefs.h <<\_ACEOF | |
22128 | #define wxUSE_ZLIB 1 | |
22129 | _ACEOF | |
22130 | ||
22131 | ||
22132 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
22133 | if test "$USE_DARWIN" = 1; then | |
22134 | system_zlib_h_ok="yes" | |
22135 | else | |
22136 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
22137 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
22138 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22140 | else | |
22141 | if test "$cross_compiling" = yes; then | |
22142 | unset ac_cv_header_zlib_h | |
22143 | ||
22144 | else | |
22145 | cat >conftest.$ac_ext <<_ACEOF | |
22146 | /* confdefs.h. */ | |
22147 | _ACEOF | |
22148 | cat confdefs.h >>conftest.$ac_ext | |
22149 | cat >>conftest.$ac_ext <<_ACEOF | |
22150 | /* end confdefs.h. */ | |
22151 | ||
22152 | #include <zlib.h> | |
22153 | #include <stdio.h> | |
22154 | ||
22155 | int main() | |
22156 | { | |
22157 | FILE *f=fopen("conftestval", "w"); | |
22158 | if (!f) exit(1); | |
22159 | fprintf(f, "%s", | |
22160 | ZLIB_VERSION[0] == '1' && | |
22161 | (ZLIB_VERSION[2] > '1' || | |
22162 | (ZLIB_VERSION[2] == '1' && | |
22163 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
22164 | exit(0); | |
22165 | } | |
22166 | ||
22167 | _ACEOF | |
22168 | rm -f conftest$ac_exeext | |
22169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22170 | (eval $ac_link) 2>&5 | |
22171 | ac_status=$? | |
22172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22175 | (eval $ac_try) 2>&5 | |
22176 | ac_status=$? | |
22177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22178 | (exit $ac_status); }; }; then | |
22179 | ac_cv_header_zlib_h=`cat conftestval` | |
22180 | else | |
22181 | echo "$as_me: program exited with status $ac_status" >&5 | |
22182 | echo "$as_me: failed program was:" >&5 | |
22183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22184 | ||
22185 | ( exit $ac_status ) | |
22186 | ac_cv_header_zlib_h=no | |
22187 | fi | |
ac1cb8d3 | 22188 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22189 | fi |
22190 | ||
22191 | fi | |
22192 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22193 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22194 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22195 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22196 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22197 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22199 | fi | |
22200 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22201 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22202 | else | |
22203 | # Is the header compilable? | |
22204 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
22205 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
22206 | cat >conftest.$ac_ext <<_ACEOF | |
22207 | /* confdefs.h. */ | |
22208 | _ACEOF | |
22209 | cat confdefs.h >>conftest.$ac_ext | |
22210 | cat >>conftest.$ac_ext <<_ACEOF | |
22211 | /* end confdefs.h. */ | |
22212 | $ac_includes_default | |
22213 | #include <zlib.h> | |
22214 | _ACEOF | |
22215 | rm -f conftest.$ac_objext | |
22216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22217 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22218 | ac_status=$? |
ac1cb8d3 VS |
22219 | grep -v '^ *+' conftest.er1 >conftest.err |
22220 | rm -f conftest.er1 | |
22221 | cat conftest.err >&5 | |
a848cd7e SC |
22222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22223 | (exit $ac_status); } && | |
07158944 | 22224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22226 | (eval $ac_try) 2>&5 | |
22227 | ac_status=$? | |
22228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22229 | (exit $ac_status); }; } && | |
22230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22232 | (eval $ac_try) 2>&5 | |
22233 | ac_status=$? | |
22234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22235 | (exit $ac_status); }; }; then | |
22236 | ac_header_compiler=yes | |
22237 | else | |
22238 | echo "$as_me: failed program was:" >&5 | |
22239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22240 | ||
22241 | ac_header_compiler=no | |
22242 | fi | |
ac1cb8d3 | 22243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22244 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22245 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22246 | ||
22247 | # Is the header present? | |
22248 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
22249 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
22250 | cat >conftest.$ac_ext <<_ACEOF | |
22251 | /* confdefs.h. */ | |
22252 | _ACEOF | |
22253 | cat confdefs.h >>conftest.$ac_ext | |
22254 | cat >>conftest.$ac_ext <<_ACEOF | |
22255 | /* end confdefs.h. */ | |
22256 | #include <zlib.h> | |
22257 | _ACEOF | |
22258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22260 | ac_status=$? | |
22261 | grep -v '^ *+' conftest.er1 >conftest.err | |
22262 | rm -f conftest.er1 | |
22263 | cat conftest.err >&5 | |
22264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22265 | (exit $ac_status); } >/dev/null; then | |
22266 | if test -s conftest.err; then | |
22267 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22268 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22269 | else |
22270 | ac_cpp_err= | |
22271 | fi | |
22272 | else | |
22273 | ac_cpp_err=yes | |
22274 | fi | |
22275 | if test -z "$ac_cpp_err"; then | |
22276 | ac_header_preproc=yes | |
22277 | else | |
22278 | echo "$as_me: failed program was:" >&5 | |
22279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22280 | ||
22281 | ac_header_preproc=no | |
22282 | fi | |
22283 | rm -f conftest.err conftest.$ac_ext | |
22284 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22285 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22286 | ||
22287 | # So? What about this header? | |
ac1cb8d3 VS |
22288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22289 | yes:no: ) | |
a848cd7e SC |
22290 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22291 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22292 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
22293 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
22294 | ac_header_preproc=yes | |
a848cd7e | 22295 | ;; |
ac1cb8d3 | 22296 | no:yes:* ) |
a848cd7e SC |
22297 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
22298 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22299 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
22300 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
22301 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
22302 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
22303 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22304 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22305 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
22306 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22307 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
22308 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22309 | ( |
22310 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22311 | ## ----------------------------------------- ## |
22312 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22313 | ## ----------------------------------------- ## | |
a848cd7e SC |
22314 | _ASBOX |
22315 | ) | | |
22316 | sed "s/^/$as_me: WARNING: /" >&2 | |
22317 | ;; | |
22318 | esac | |
22319 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
22320 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
22321 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
22322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22323 | else | |
22324 | ac_cv_header_zlib_h=$ac_header_preproc | |
22325 | fi | |
22326 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
22327 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
22328 | ||
22329 | fi | |
22330 | ||
22331 | ||
22332 | ||
22333 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
22334 | fi | |
22335 | ||
22336 | if test "$system_zlib_h_ok" = "yes"; then | |
22337 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
22338 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
22339 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
22340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22341 | else | |
22342 | ac_check_lib_save_LIBS=$LIBS | |
22343 | LIBS="-lz $LIBS" | |
22344 | cat >conftest.$ac_ext <<_ACEOF | |
22345 | /* confdefs.h. */ | |
22346 | _ACEOF | |
22347 | cat confdefs.h >>conftest.$ac_ext | |
22348 | cat >>conftest.$ac_ext <<_ACEOF | |
22349 | /* end confdefs.h. */ | |
22350 | ||
22351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22352 | #ifdef __cplusplus | |
22353 | extern "C" | |
22354 | #endif | |
22355 | /* We use char because int might match the return type of a gcc2 | |
22356 | builtin and then its argument prototype would still apply. */ | |
22357 | char deflate (); | |
22358 | int | |
22359 | main () | |
22360 | { | |
22361 | deflate (); | |
22362 | ; | |
22363 | return 0; | |
22364 | } | |
22365 | _ACEOF | |
22366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22368 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22369 | ac_status=$? |
ac1cb8d3 VS |
22370 | grep -v '^ *+' conftest.er1 >conftest.err |
22371 | rm -f conftest.er1 | |
22372 | cat conftest.err >&5 | |
a848cd7e SC |
22373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22374 | (exit $ac_status); } && | |
07158944 | 22375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22377 | (eval $ac_try) 2>&5 | |
22378 | ac_status=$? | |
22379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22380 | (exit $ac_status); }; } && | |
22381 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22383 | (eval $ac_try) 2>&5 | |
22384 | ac_status=$? | |
22385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22386 | (exit $ac_status); }; }; then | |
22387 | ac_cv_lib_z_deflate=yes | |
22388 | else | |
22389 | echo "$as_me: failed program was:" >&5 | |
22390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22391 | ||
22392 | ac_cv_lib_z_deflate=no | |
22393 | fi | |
ac1cb8d3 VS |
22394 | rm -f conftest.err conftest.$ac_objext \ |
22395 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22396 | LIBS=$ac_check_lib_save_LIBS |
22397 | fi | |
22398 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
22399 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
22400 | if test $ac_cv_lib_z_deflate = yes; then | |
22401 | ZLIB_LINK=" -lz" | |
22402 | fi | |
22403 | ||
22404 | fi | |
22405 | ||
22406 | if test "x$ZLIB_LINK" = "x" ; then | |
22407 | if test "$wxUSE_ZLIB" = "sys" ; then | |
22408 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
22409 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
22410 | { (exit 1); exit 1; }; } | |
22411 | else | |
22412 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
22413 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
22414 | wxUSE_ZLIB=builtin | |
22415 | fi | |
22416 | else | |
22417 | wxUSE_ZLIB=sys | |
22418 | fi | |
22419 | fi | |
22420 | fi | |
22421 | ||
22422 | ||
22423 | PNG_LINK= | |
22424 | if test "$wxUSE_LIBPNG" != "no" ; then | |
22425 | cat >>confdefs.h <<\_ACEOF | |
22426 | #define wxUSE_LIBPNG 1 | |
22427 | _ACEOF | |
22428 | ||
22429 | ||
22430 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
22431 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
22432 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
22433 | wxUSE_LIBPNG=sys | |
22434 | fi | |
22435 | ||
22436 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
22437 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
22438 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
22439 | wxUSE_LIBPNG=builtin | |
22440 | fi | |
22441 | ||
22442 | if test "$wxUSE_MGL" != 1 ; then | |
22443 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
22444 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
22445 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
22446 | if test "${ac_cv_header_png_h+set}" = set; then | |
22447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22448 | else | |
22449 | if test "$cross_compiling" = yes; then | |
22450 | unset ac_cv_header_png_h | |
22451 | ||
22452 | else | |
22453 | cat >conftest.$ac_ext <<_ACEOF | |
22454 | /* confdefs.h. */ | |
22455 | _ACEOF | |
22456 | cat confdefs.h >>conftest.$ac_ext | |
22457 | cat >>conftest.$ac_ext <<_ACEOF | |
22458 | /* end confdefs.h. */ | |
22459 | ||
22460 | #include <png.h> | |
22461 | #include <stdio.h> | |
22462 | ||
22463 | int main() | |
22464 | { | |
22465 | FILE *f=fopen("conftestval", "w"); | |
22466 | if (!f) exit(1); | |
22467 | fprintf(f, "%s", | |
22468 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
22469 | exit(0); | |
22470 | } | |
22471 | ||
22472 | _ACEOF | |
22473 | rm -f conftest$ac_exeext | |
22474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22475 | (eval $ac_link) 2>&5 | |
22476 | ac_status=$? | |
22477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22478 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22480 | (eval $ac_try) 2>&5 | |
22481 | ac_status=$? | |
22482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22483 | (exit $ac_status); }; }; then | |
22484 | ac_cv_header_png_h=`cat conftestval` | |
22485 | else | |
22486 | echo "$as_me: program exited with status $ac_status" >&5 | |
22487 | echo "$as_me: failed program was:" >&5 | |
22488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22489 | ||
22490 | ( exit $ac_status ) | |
22491 | ac_cv_header_png_h=no | |
22492 | fi | |
ac1cb8d3 | 22493 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22494 | fi |
22495 | ||
22496 | fi | |
22497 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22498 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22499 | if test "${ac_cv_header_png_h+set}" = set; then | |
22500 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22501 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22502 | if test "${ac_cv_header_png_h+set}" = set; then | |
22503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22504 | fi | |
22505 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22506 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22507 | else | |
22508 | # Is the header compilable? | |
22509 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
22510 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
22511 | cat >conftest.$ac_ext <<_ACEOF | |
22512 | /* confdefs.h. */ | |
22513 | _ACEOF | |
22514 | cat confdefs.h >>conftest.$ac_ext | |
22515 | cat >>conftest.$ac_ext <<_ACEOF | |
22516 | /* end confdefs.h. */ | |
22517 | $ac_includes_default | |
22518 | #include <png.h> | |
22519 | _ACEOF | |
22520 | rm -f conftest.$ac_objext | |
22521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22523 | ac_status=$? |
ac1cb8d3 VS |
22524 | grep -v '^ *+' conftest.er1 >conftest.err |
22525 | rm -f conftest.er1 | |
22526 | cat conftest.err >&5 | |
a848cd7e SC |
22527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22528 | (exit $ac_status); } && | |
07158944 | 22529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22531 | (eval $ac_try) 2>&5 | |
22532 | ac_status=$? | |
22533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22534 | (exit $ac_status); }; } && | |
22535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22537 | (eval $ac_try) 2>&5 | |
22538 | ac_status=$? | |
22539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22540 | (exit $ac_status); }; }; then | |
22541 | ac_header_compiler=yes | |
22542 | else | |
22543 | echo "$as_me: failed program was:" >&5 | |
22544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22545 | ||
22546 | ac_header_compiler=no | |
22547 | fi | |
ac1cb8d3 | 22548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22550 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22551 | ||
22552 | # Is the header present? | |
22553 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
22554 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
22555 | cat >conftest.$ac_ext <<_ACEOF | |
22556 | /* confdefs.h. */ | |
22557 | _ACEOF | |
22558 | cat confdefs.h >>conftest.$ac_ext | |
22559 | cat >>conftest.$ac_ext <<_ACEOF | |
22560 | /* end confdefs.h. */ | |
22561 | #include <png.h> | |
22562 | _ACEOF | |
22563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22565 | ac_status=$? | |
22566 | grep -v '^ *+' conftest.er1 >conftest.err | |
22567 | rm -f conftest.er1 | |
22568 | cat conftest.err >&5 | |
22569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22570 | (exit $ac_status); } >/dev/null; then | |
22571 | if test -s conftest.err; then | |
22572 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22573 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22574 | else |
22575 | ac_cpp_err= | |
22576 | fi | |
22577 | else | |
22578 | ac_cpp_err=yes | |
22579 | fi | |
22580 | if test -z "$ac_cpp_err"; then | |
22581 | ac_header_preproc=yes | |
22582 | else | |
22583 | echo "$as_me: failed program was:" >&5 | |
22584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22585 | ||
22586 | ac_header_preproc=no | |
22587 | fi | |
22588 | rm -f conftest.err conftest.$ac_ext | |
22589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22590 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22591 | ||
22592 | # So? What about this header? | |
ac1cb8d3 VS |
22593 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22594 | yes:no: ) | |
a848cd7e SC |
22595 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22596 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22597 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
22598 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
22599 | ac_header_preproc=yes | |
a848cd7e | 22600 | ;; |
ac1cb8d3 | 22601 | no:yes:* ) |
a848cd7e SC |
22602 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
22603 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22604 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
22605 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
22606 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
22607 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
22608 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22609 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22610 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
22611 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22612 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
22613 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22614 | ( |
22615 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22616 | ## ----------------------------------------- ## |
22617 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22618 | ## ----------------------------------------- ## | |
a848cd7e SC |
22619 | _ASBOX |
22620 | ) | | |
22621 | sed "s/^/$as_me: WARNING: /" >&2 | |
22622 | ;; | |
22623 | esac | |
22624 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22625 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22626 | if test "${ac_cv_header_png_h+set}" = set; then | |
22627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22628 | else | |
22629 | ac_cv_header_png_h=$ac_header_preproc | |
22630 | fi | |
22631 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22632 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22633 | ||
22634 | fi | |
22635 | ||
22636 | ||
22637 | ||
22638 | if test "$ac_cv_header_png_h" = "yes"; then | |
22639 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
22640 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
22641 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
22642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22643 | else | |
22644 | ac_check_lib_save_LIBS=$LIBS | |
22645 | LIBS="-lpng -lz -lm $LIBS" | |
22646 | cat >conftest.$ac_ext <<_ACEOF | |
22647 | /* confdefs.h. */ | |
22648 | _ACEOF | |
22649 | cat confdefs.h >>conftest.$ac_ext | |
22650 | cat >>conftest.$ac_ext <<_ACEOF | |
22651 | /* end confdefs.h. */ | |
22652 | ||
22653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22654 | #ifdef __cplusplus | |
22655 | extern "C" | |
22656 | #endif | |
22657 | /* We use char because int might match the return type of a gcc2 | |
22658 | builtin and then its argument prototype would still apply. */ | |
22659 | char png_check_sig (); | |
22660 | int | |
22661 | main () | |
22662 | { | |
22663 | png_check_sig (); | |
22664 | ; | |
22665 | return 0; | |
22666 | } | |
22667 | _ACEOF | |
22668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22670 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22671 | ac_status=$? |
ac1cb8d3 VS |
22672 | grep -v '^ *+' conftest.er1 >conftest.err |
22673 | rm -f conftest.er1 | |
22674 | cat conftest.err >&5 | |
a848cd7e SC |
22675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22676 | (exit $ac_status); } && | |
07158944 | 22677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22679 | (eval $ac_try) 2>&5 | |
22680 | ac_status=$? | |
22681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22682 | (exit $ac_status); }; } && | |
22683 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22685 | (eval $ac_try) 2>&5 | |
22686 | ac_status=$? | |
22687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22688 | (exit $ac_status); }; }; then | |
22689 | ac_cv_lib_png_png_check_sig=yes | |
22690 | else | |
22691 | echo "$as_me: failed program was:" >&5 | |
22692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22693 | ||
22694 | ac_cv_lib_png_png_check_sig=no | |
22695 | fi | |
ac1cb8d3 VS |
22696 | rm -f conftest.err conftest.$ac_objext \ |
22697 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22698 | LIBS=$ac_check_lib_save_LIBS |
22699 | fi | |
22700 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
22701 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
22702 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
22703 | PNG_LINK=" -lpng -lz" | |
22704 | fi | |
22705 | ||
22706 | fi | |
22707 | ||
22708 | if test "x$PNG_LINK" = "x" ; then | |
22709 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
22710 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
22711 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
22712 | { (exit 1); exit 1; }; } | |
22713 | else | |
22714 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
22715 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
22716 | wxUSE_LIBPNG=builtin | |
22717 | fi | |
22718 | else | |
22719 | wxUSE_LIBPNG=sys | |
22720 | fi | |
22721 | fi | |
22722 | fi | |
22723 | ||
22724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
22725 | fi | |
22726 | ||
22727 | ||
22728 | JPEG_LINK= | |
22729 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
22730 | cat >>confdefs.h <<\_ACEOF | |
22731 | #define wxUSE_LIBJPEG 1 | |
22732 | _ACEOF | |
22733 | ||
22734 | ||
22735 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
22736 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
22737 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
22738 | wxUSE_LIBJPEG=sys | |
22739 | fi | |
22740 | ||
22741 | if test "$wxUSE_MGL" != 1 ; then | |
22742 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
22743 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
22744 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
22745 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
22746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22747 | else | |
22748 | cat >conftest.$ac_ext <<_ACEOF | |
22749 | /* confdefs.h. */ | |
22750 | _ACEOF | |
22751 | cat confdefs.h >>conftest.$ac_ext | |
22752 | cat >>conftest.$ac_ext <<_ACEOF | |
22753 | /* end confdefs.h. */ | |
22754 | ||
22755 | #undef HAVE_STDLIB_H | |
22756 | #include <stdio.h> | |
22757 | #include <jpeglib.h> | |
22758 | ||
22759 | int | |
22760 | main () | |
22761 | { | |
22762 | ||
22763 | ||
22764 | ; | |
22765 | return 0; | |
22766 | } | |
22767 | _ACEOF | |
22768 | rm -f conftest.$ac_objext | |
22769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22771 | ac_status=$? |
ac1cb8d3 VS |
22772 | grep -v '^ *+' conftest.er1 >conftest.err |
22773 | rm -f conftest.er1 | |
22774 | cat conftest.err >&5 | |
a848cd7e SC |
22775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22776 | (exit $ac_status); } && | |
07158944 | 22777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22779 | (eval $ac_try) 2>&5 | |
22780 | ac_status=$? | |
22781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22782 | (exit $ac_status); }; } && | |
22783 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22785 | (eval $ac_try) 2>&5 | |
22786 | ac_status=$? | |
22787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22788 | (exit $ac_status); }; }; then | |
22789 | ac_cv_header_jpeglib_h=yes | |
22790 | else | |
22791 | echo "$as_me: failed program was:" >&5 | |
22792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22793 | ||
22794 | ac_cv_header_jpeglib_h=no | |
22795 | ||
22796 | fi | |
ac1cb8d3 | 22797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22798 | |
22799 | fi | |
22800 | ||
22801 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
22802 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
22803 | ||
22804 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
22805 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
22806 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
22807 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
22808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22809 | else | |
22810 | ac_check_lib_save_LIBS=$LIBS | |
22811 | LIBS="-ljpeg $LIBS" | |
22812 | cat >conftest.$ac_ext <<_ACEOF | |
22813 | /* confdefs.h. */ | |
22814 | _ACEOF | |
22815 | cat confdefs.h >>conftest.$ac_ext | |
22816 | cat >>conftest.$ac_ext <<_ACEOF | |
22817 | /* end confdefs.h. */ | |
22818 | ||
22819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22820 | #ifdef __cplusplus | |
22821 | extern "C" | |
22822 | #endif | |
22823 | /* We use char because int might match the return type of a gcc2 | |
22824 | builtin and then its argument prototype would still apply. */ | |
22825 | char jpeg_read_header (); | |
22826 | int | |
22827 | main () | |
22828 | { | |
22829 | jpeg_read_header (); | |
22830 | ; | |
22831 | return 0; | |
22832 | } | |
22833 | _ACEOF | |
22834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22836 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22837 | ac_status=$? |
ac1cb8d3 VS |
22838 | grep -v '^ *+' conftest.er1 >conftest.err |
22839 | rm -f conftest.er1 | |
22840 | cat conftest.err >&5 | |
a848cd7e SC |
22841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22842 | (exit $ac_status); } && | |
07158944 | 22843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22845 | (eval $ac_try) 2>&5 | |
22846 | ac_status=$? | |
22847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22848 | (exit $ac_status); }; } && | |
22849 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22851 | (eval $ac_try) 2>&5 | |
22852 | ac_status=$? | |
22853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22854 | (exit $ac_status); }; }; then | |
22855 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
22856 | else | |
22857 | echo "$as_me: failed program was:" >&5 | |
22858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22859 | ||
22860 | ac_cv_lib_jpeg_jpeg_read_header=no | |
22861 | fi | |
ac1cb8d3 VS |
22862 | rm -f conftest.err conftest.$ac_objext \ |
22863 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22864 | LIBS=$ac_check_lib_save_LIBS |
22865 | fi | |
22866 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
22867 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
22868 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
22869 | JPEG_LINK=" -ljpeg" | |
22870 | fi | |
22871 | ||
22872 | fi | |
22873 | ||
22874 | if test "x$JPEG_LINK" = "x" ; then | |
22875 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
22876 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
22877 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
22878 | { (exit 1); exit 1; }; } | |
22879 | else | |
22880 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
22881 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
22882 | wxUSE_LIBJPEG=builtin | |
22883 | fi | |
22884 | else | |
22885 | wxUSE_LIBJPEG=sys | |
22886 | fi | |
22887 | fi | |
22888 | fi | |
22889 | fi | |
22890 | ||
22891 | ||
22892 | TIFF_LINK= | |
22893 | TIFF_PREREQ_LINKS=-lm | |
22894 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
22895 | cat >>confdefs.h <<\_ACEOF | |
22896 | #define wxUSE_LIBTIFF 1 | |
22897 | _ACEOF | |
22898 | ||
22899 | ||
22900 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
22901 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
22902 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
22903 | fi | |
22904 | if test "$wxUSE_ZLIB" = "sys"; then | |
22905 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
22906 | fi | |
22907 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22908 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22909 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22910 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22912 | fi | |
22913 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22914 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22915 | else | |
22916 | # Is the header compilable? | |
22917 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
22918 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
22919 | cat >conftest.$ac_ext <<_ACEOF | |
22920 | /* confdefs.h. */ | |
22921 | _ACEOF | |
22922 | cat confdefs.h >>conftest.$ac_ext | |
22923 | cat >>conftest.$ac_ext <<_ACEOF | |
22924 | /* end confdefs.h. */ | |
22925 | $ac_includes_default | |
22926 | #include <tiffio.h> | |
22927 | _ACEOF | |
22928 | rm -f conftest.$ac_objext | |
22929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22930 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22931 | ac_status=$? |
ac1cb8d3 VS |
22932 | grep -v '^ *+' conftest.er1 >conftest.err |
22933 | rm -f conftest.er1 | |
22934 | cat conftest.err >&5 | |
a848cd7e SC |
22935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22936 | (exit $ac_status); } && | |
07158944 | 22937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22939 | (eval $ac_try) 2>&5 | |
22940 | ac_status=$? | |
22941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22942 | (exit $ac_status); }; } && | |
22943 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22945 | (eval $ac_try) 2>&5 | |
22946 | ac_status=$? | |
22947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22948 | (exit $ac_status); }; }; then | |
22949 | ac_header_compiler=yes | |
22950 | else | |
22951 | echo "$as_me: failed program was:" >&5 | |
22952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22953 | ||
22954 | ac_header_compiler=no | |
22955 | fi | |
ac1cb8d3 | 22956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22957 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22958 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22959 | ||
22960 | # Is the header present? | |
22961 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
22962 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
22963 | cat >conftest.$ac_ext <<_ACEOF | |
22964 | /* confdefs.h. */ | |
22965 | _ACEOF | |
22966 | cat confdefs.h >>conftest.$ac_ext | |
22967 | cat >>conftest.$ac_ext <<_ACEOF | |
22968 | /* end confdefs.h. */ | |
22969 | #include <tiffio.h> | |
22970 | _ACEOF | |
22971 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22972 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22973 | ac_status=$? | |
22974 | grep -v '^ *+' conftest.er1 >conftest.err | |
22975 | rm -f conftest.er1 | |
22976 | cat conftest.err >&5 | |
22977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22978 | (exit $ac_status); } >/dev/null; then | |
22979 | if test -s conftest.err; then | |
22980 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22981 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22982 | else |
22983 | ac_cpp_err= | |
22984 | fi | |
22985 | else | |
22986 | ac_cpp_err=yes | |
22987 | fi | |
22988 | if test -z "$ac_cpp_err"; then | |
22989 | ac_header_preproc=yes | |
22990 | else | |
22991 | echo "$as_me: failed program was:" >&5 | |
22992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22993 | ||
22994 | ac_header_preproc=no | |
22995 | fi | |
22996 | rm -f conftest.err conftest.$ac_ext | |
22997 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22998 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22999 | ||
23000 | # So? What about this header? | |
ac1cb8d3 VS |
23001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23002 | yes:no: ) | |
a848cd7e SC |
23003 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23004 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23005 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
23006 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
23007 | ac_header_preproc=yes | |
a848cd7e | 23008 | ;; |
ac1cb8d3 | 23009 | no:yes:* ) |
a848cd7e SC |
23010 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
23011 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23012 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
23013 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
23014 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
23015 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
23016 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23017 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23018 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
23019 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23020 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
23021 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23022 | ( |
23023 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23024 | ## ----------------------------------------- ## |
23025 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23026 | ## ----------------------------------------- ## | |
a848cd7e SC |
23027 | _ASBOX |
23028 | ) | | |
23029 | sed "s/^/$as_me: WARNING: /" >&2 | |
23030 | ;; | |
23031 | esac | |
23032 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
23033 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
23034 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
23035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23036 | else | |
23037 | ac_cv_header_tiffio_h=$ac_header_preproc | |
23038 | fi | |
23039 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
23040 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
23041 | ||
23042 | fi | |
23043 | if test $ac_cv_header_tiffio_h = yes; then | |
23044 | ||
23045 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
23046 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
23047 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
23048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23049 | else | |
23050 | ac_check_lib_save_LIBS=$LIBS | |
23051 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
23052 | cat >conftest.$ac_ext <<_ACEOF | |
23053 | /* confdefs.h. */ | |
23054 | _ACEOF | |
23055 | cat confdefs.h >>conftest.$ac_ext | |
23056 | cat >>conftest.$ac_ext <<_ACEOF | |
23057 | /* end confdefs.h. */ | |
23058 | ||
23059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23060 | #ifdef __cplusplus | |
23061 | extern "C" | |
23062 | #endif | |
23063 | /* We use char because int might match the return type of a gcc2 | |
23064 | builtin and then its argument prototype would still apply. */ | |
23065 | char TIFFError (); | |
23066 | int | |
23067 | main () | |
23068 | { | |
23069 | TIFFError (); | |
23070 | ; | |
23071 | return 0; | |
23072 | } | |
23073 | _ACEOF | |
23074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23076 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23077 | ac_status=$? |
ac1cb8d3 VS |
23078 | grep -v '^ *+' conftest.er1 >conftest.err |
23079 | rm -f conftest.er1 | |
23080 | cat conftest.err >&5 | |
a848cd7e SC |
23081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23082 | (exit $ac_status); } && | |
07158944 | 23083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23085 | (eval $ac_try) 2>&5 | |
23086 | ac_status=$? | |
23087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23088 | (exit $ac_status); }; } && | |
23089 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23091 | (eval $ac_try) 2>&5 | |
23092 | ac_status=$? | |
23093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23094 | (exit $ac_status); }; }; then | |
23095 | ac_cv_lib_tiff_TIFFError=yes | |
23096 | else | |
23097 | echo "$as_me: failed program was:" >&5 | |
23098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23099 | ||
23100 | ac_cv_lib_tiff_TIFFError=no | |
23101 | fi | |
ac1cb8d3 VS |
23102 | rm -f conftest.err conftest.$ac_objext \ |
23103 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23104 | LIBS=$ac_check_lib_save_LIBS |
23105 | fi | |
23106 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
23107 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
23108 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
23109 | TIFF_LINK=" -ltiff" | |
23110 | fi | |
23111 | ||
23112 | ||
23113 | ||
23114 | fi | |
23115 | ||
23116 | ||
23117 | ||
23118 | if test "x$TIFF_LINK" = "x" ; then | |
23119 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
23120 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
23121 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
23122 | { (exit 1); exit 1; }; } | |
23123 | else | |
23124 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
23125 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
23126 | wxUSE_LIBTIFF=builtin | |
23127 | fi | |
23128 | else | |
23129 | wxUSE_LIBTIFF=sys | |
23130 | fi | |
23131 | fi | |
23132 | fi | |
23133 | ||
23134 | ||
23135 | if test "$wxUSE_EXPAT" != "no"; then | |
23136 | wxUSE_XML=yes | |
23137 | cat >>confdefs.h <<\_ACEOF | |
23138 | #define wxUSE_EXPAT 1 | |
23139 | _ACEOF | |
23140 | ||
23141 | cat >>confdefs.h <<\_ACEOF | |
23142 | #define wxUSE_XML 1 | |
23143 | _ACEOF | |
23144 | ||
23145 | ||
23146 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
23147 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23148 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23149 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23150 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23152 | fi | |
23153 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23154 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23155 | else | |
23156 | # Is the header compilable? | |
23157 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
23158 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
23159 | cat >conftest.$ac_ext <<_ACEOF | |
23160 | /* confdefs.h. */ | |
23161 | _ACEOF | |
23162 | cat confdefs.h >>conftest.$ac_ext | |
23163 | cat >>conftest.$ac_ext <<_ACEOF | |
23164 | /* end confdefs.h. */ | |
23165 | $ac_includes_default | |
23166 | #include <expat.h> | |
23167 | _ACEOF | |
23168 | rm -f conftest.$ac_objext | |
23169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23170 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23171 | ac_status=$? |
ac1cb8d3 VS |
23172 | grep -v '^ *+' conftest.er1 >conftest.err |
23173 | rm -f conftest.er1 | |
23174 | cat conftest.err >&5 | |
a848cd7e SC |
23175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23176 | (exit $ac_status); } && | |
07158944 | 23177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23179 | (eval $ac_try) 2>&5 | |
23180 | ac_status=$? | |
23181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23182 | (exit $ac_status); }; } && | |
23183 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23185 | (eval $ac_try) 2>&5 | |
23186 | ac_status=$? | |
23187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23188 | (exit $ac_status); }; }; then | |
23189 | ac_header_compiler=yes | |
23190 | else | |
23191 | echo "$as_me: failed program was:" >&5 | |
23192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23193 | ||
23194 | ac_header_compiler=no | |
23195 | fi | |
ac1cb8d3 | 23196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23197 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23198 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23199 | ||
23200 | # Is the header present? | |
23201 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
23202 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
23203 | cat >conftest.$ac_ext <<_ACEOF | |
23204 | /* confdefs.h. */ | |
23205 | _ACEOF | |
23206 | cat confdefs.h >>conftest.$ac_ext | |
23207 | cat >>conftest.$ac_ext <<_ACEOF | |
23208 | /* end confdefs.h. */ | |
23209 | #include <expat.h> | |
23210 | _ACEOF | |
23211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23213 | ac_status=$? | |
23214 | grep -v '^ *+' conftest.er1 >conftest.err | |
23215 | rm -f conftest.er1 | |
23216 | cat conftest.err >&5 | |
23217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23218 | (exit $ac_status); } >/dev/null; then | |
23219 | if test -s conftest.err; then | |
23220 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23222 | else |
23223 | ac_cpp_err= | |
23224 | fi | |
23225 | else | |
23226 | ac_cpp_err=yes | |
23227 | fi | |
23228 | if test -z "$ac_cpp_err"; then | |
23229 | ac_header_preproc=yes | |
23230 | else | |
23231 | echo "$as_me: failed program was:" >&5 | |
23232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23233 | ||
23234 | ac_header_preproc=no | |
23235 | fi | |
23236 | rm -f conftest.err conftest.$ac_ext | |
23237 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23238 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23239 | ||
23240 | # So? What about this header? | |
ac1cb8d3 VS |
23241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23242 | yes:no: ) | |
a848cd7e SC |
23243 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23244 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23245 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
23246 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
23247 | ac_header_preproc=yes | |
a848cd7e | 23248 | ;; |
ac1cb8d3 | 23249 | no:yes:* ) |
a848cd7e SC |
23250 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
23251 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23252 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
23253 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
23254 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
23255 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
23256 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23257 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23258 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
23259 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23260 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
23261 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23262 | ( |
23263 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23264 | ## ----------------------------------------- ## |
23265 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23266 | ## ----------------------------------------- ## | |
a848cd7e SC |
23267 | _ASBOX |
23268 | ) | | |
23269 | sed "s/^/$as_me: WARNING: /" >&2 | |
23270 | ;; | |
23271 | esac | |
23272 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
23273 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
23274 | if test "${ac_cv_header_expat_h+set}" = set; then | |
23275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23276 | else | |
23277 | ac_cv_header_expat_h=$ac_header_preproc | |
23278 | fi | |
23279 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
23280 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
23281 | ||
23282 | fi | |
23283 | if test $ac_cv_header_expat_h = yes; then | |
23284 | found_expat_h=1 | |
23285 | fi | |
23286 | ||
23287 | ||
23288 | if test "x$found_expat_h" = "x1"; then | |
23289 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
23290 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
23291 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
23292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23293 | else | |
23294 | ||
23295 | ||
23296 | ||
23297 | ac_ext=cc | |
23298 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23299 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23300 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23301 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23302 | ||
23303 | cat >conftest.$ac_ext <<_ACEOF | |
23304 | /* confdefs.h. */ | |
23305 | _ACEOF | |
23306 | cat confdefs.h >>conftest.$ac_ext | |
23307 | cat >>conftest.$ac_ext <<_ACEOF | |
23308 | /* end confdefs.h. */ | |
23309 | #include <expat.h> | |
23310 | int | |
23311 | main () | |
23312 | { | |
23313 | ||
23314 | ; | |
23315 | return 0; | |
23316 | } | |
23317 | _ACEOF | |
23318 | rm -f conftest.$ac_objext | |
23319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23320 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23321 | ac_status=$? |
ac1cb8d3 VS |
23322 | grep -v '^ *+' conftest.er1 >conftest.err |
23323 | rm -f conftest.er1 | |
23324 | cat conftest.err >&5 | |
a848cd7e SC |
23325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23326 | (exit $ac_status); } && | |
07158944 | 23327 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23329 | (eval $ac_try) 2>&5 | |
23330 | ac_status=$? | |
23331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23332 | (exit $ac_status); }; } && | |
23333 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
23339 | wx_cv_expat_is_not_broken=yes | |
23340 | else | |
23341 | echo "$as_me: failed program was:" >&5 | |
23342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23343 | ||
23344 | wx_cv_expat_is_not_broken=no | |
23345 | ||
23346 | fi | |
ac1cb8d3 | 23347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23348 | ac_ext=c |
23349 | ac_cpp='$CPP $CPPFLAGS' | |
23350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23353 | ||
23354 | ||
23355 | ||
23356 | fi | |
23357 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
23358 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
23359 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
23360 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
23361 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
23362 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
23363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23364 | else | |
23365 | ac_check_lib_save_LIBS=$LIBS | |
23366 | LIBS="-lexpat $LIBS" | |
23367 | cat >conftest.$ac_ext <<_ACEOF | |
23368 | /* confdefs.h. */ | |
23369 | _ACEOF | |
23370 | cat confdefs.h >>conftest.$ac_ext | |
23371 | cat >>conftest.$ac_ext <<_ACEOF | |
23372 | /* end confdefs.h. */ | |
23373 | ||
23374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23375 | #ifdef __cplusplus | |
23376 | extern "C" | |
23377 | #endif | |
23378 | /* We use char because int might match the return type of a gcc2 | |
23379 | builtin and then its argument prototype would still apply. */ | |
23380 | char XML_ParserCreate (); | |
23381 | int | |
23382 | main () | |
23383 | { | |
23384 | XML_ParserCreate (); | |
23385 | ; | |
23386 | return 0; | |
23387 | } | |
23388 | _ACEOF | |
23389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23391 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23392 | ac_status=$? |
ac1cb8d3 VS |
23393 | grep -v '^ *+' conftest.er1 >conftest.err |
23394 | rm -f conftest.er1 | |
23395 | cat conftest.err >&5 | |
a848cd7e SC |
23396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23397 | (exit $ac_status); } && | |
07158944 | 23398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23400 | (eval $ac_try) 2>&5 | |
23401 | ac_status=$? | |
23402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23403 | (exit $ac_status); }; } && | |
23404 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23406 | (eval $ac_try) 2>&5 | |
23407 | ac_status=$? | |
23408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23409 | (exit $ac_status); }; }; then | |
23410 | ac_cv_lib_expat_XML_ParserCreate=yes | |
23411 | else | |
23412 | echo "$as_me: failed program was:" >&5 | |
23413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23414 | ||
23415 | ac_cv_lib_expat_XML_ParserCreate=no | |
23416 | fi | |
ac1cb8d3 VS |
23417 | rm -f conftest.err conftest.$ac_objext \ |
23418 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23419 | LIBS=$ac_check_lib_save_LIBS |
23420 | fi | |
23421 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
23422 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
23423 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
23424 | EXPAT_LINK=" -lexpat" | |
23425 | fi | |
23426 | ||
23427 | fi | |
23428 | fi | |
23429 | if test "x$EXPAT_LINK" = "x" ; then | |
23430 | if test "$wxUSE_EXPAT" = "sys" ; then | |
23431 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
23432 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
23433 | { (exit 1); exit 1; }; } | |
23434 | else | |
23435 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
23436 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
23437 | wxUSE_EXPAT=builtin | |
23438 | fi | |
23439 | else | |
23440 | wxUSE_EXPAT=sys | |
23441 | fi | |
23442 | fi | |
23443 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
23444 | ||
23445 | ||
23446 | subdirs="$subdirs src/expat" | |
23447 | ||
23448 | fi | |
23449 | fi | |
23450 | ||
23451 | ||
23452 | ||
23453 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
23454 | if test "${ac_cv_header_mspack_h+set}" = set; then |
23455 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23456 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23457 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23459 | fi | |
23460 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23461 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23462 | else | |
23463 | # Is the header compilable? | |
23464 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
23465 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
23466 | cat >conftest.$ac_ext <<_ACEOF | |
23467 | /* confdefs.h. */ | |
23468 | _ACEOF | |
23469 | cat confdefs.h >>conftest.$ac_ext | |
23470 | cat >>conftest.$ac_ext <<_ACEOF | |
23471 | /* end confdefs.h. */ | |
23472 | $ac_includes_default | |
23473 | #include <mspack.h> | |
23474 | _ACEOF | |
23475 | rm -f conftest.$ac_objext | |
23476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23477 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23478 | ac_status=$? |
ac1cb8d3 VS |
23479 | grep -v '^ *+' conftest.er1 >conftest.err |
23480 | rm -f conftest.er1 | |
23481 | cat conftest.err >&5 | |
a848cd7e SC |
23482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23483 | (exit $ac_status); } && | |
07158944 | 23484 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23486 | (eval $ac_try) 2>&5 | |
23487 | ac_status=$? | |
23488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23489 | (exit $ac_status); }; } && | |
23490 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23492 | (eval $ac_try) 2>&5 | |
23493 | ac_status=$? | |
23494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23495 | (exit $ac_status); }; }; then | |
23496 | ac_header_compiler=yes | |
23497 | else | |
23498 | echo "$as_me: failed program was:" >&5 | |
23499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23500 | ||
23501 | ac_header_compiler=no | |
23502 | fi | |
ac1cb8d3 | 23503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23504 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23505 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23506 | ||
23507 | # Is the header present? | |
23508 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
23509 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
23510 | cat >conftest.$ac_ext <<_ACEOF | |
23511 | /* confdefs.h. */ | |
23512 | _ACEOF | |
23513 | cat confdefs.h >>conftest.$ac_ext | |
23514 | cat >>conftest.$ac_ext <<_ACEOF | |
23515 | /* end confdefs.h. */ | |
23516 | #include <mspack.h> | |
23517 | _ACEOF | |
23518 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23519 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23520 | ac_status=$? | |
23521 | grep -v '^ *+' conftest.er1 >conftest.err | |
23522 | rm -f conftest.er1 | |
23523 | cat conftest.err >&5 | |
23524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23525 | (exit $ac_status); } >/dev/null; then | |
23526 | if test -s conftest.err; then | |
23527 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23528 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23529 | else |
23530 | ac_cpp_err= | |
23531 | fi | |
23532 | else | |
23533 | ac_cpp_err=yes | |
23534 | fi | |
23535 | if test -z "$ac_cpp_err"; then | |
23536 | ac_header_preproc=yes | |
23537 | else | |
23538 | echo "$as_me: failed program was:" >&5 | |
23539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23540 | ||
23541 | ac_header_preproc=no | |
23542 | fi | |
23543 | rm -f conftest.err conftest.$ac_ext | |
23544 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23545 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23546 | ||
23547 | # So? What about this header? | |
ac1cb8d3 VS |
23548 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23549 | yes:no: ) | |
a848cd7e SC |
23550 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23551 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23552 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
23553 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
23554 | ac_header_preproc=yes | |
a848cd7e | 23555 | ;; |
ac1cb8d3 | 23556 | no:yes:* ) |
a848cd7e SC |
23557 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
23558 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23559 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
23560 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
23561 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
23562 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
23563 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23564 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23565 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
23566 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23567 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
23568 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23569 | ( |
23570 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23571 | ## ----------------------------------------- ## |
23572 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23573 | ## ----------------------------------------- ## | |
a848cd7e SC |
23574 | _ASBOX |
23575 | ) | | |
23576 | sed "s/^/$as_me: WARNING: /" >&2 | |
23577 | ;; | |
23578 | esac | |
23579 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23580 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23581 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23583 | else | |
23584 | ac_cv_header_mspack_h=$ac_header_preproc | |
23585 | fi | |
23586 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23587 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23588 | ||
23589 | fi | |
23590 | if test $ac_cv_header_mspack_h = yes; then | |
23591 | found_mspack_h=1 | |
23592 | fi | |
23593 | ||
23594 | ||
23595 | if test "x$found_mspack_h" = "x1"; then | |
23596 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
23597 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
23598 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
23599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23600 | else | |
23601 | ac_check_lib_save_LIBS=$LIBS | |
23602 | LIBS="-lmspack $LIBS" | |
23603 | cat >conftest.$ac_ext <<_ACEOF | |
23604 | /* confdefs.h. */ | |
23605 | _ACEOF | |
23606 | cat confdefs.h >>conftest.$ac_ext | |
23607 | cat >>conftest.$ac_ext <<_ACEOF | |
23608 | /* end confdefs.h. */ | |
23609 | ||
23610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23611 | #ifdef __cplusplus | |
23612 | extern "C" | |
23613 | #endif | |
23614 | /* We use char because int might match the return type of a gcc2 | |
23615 | builtin and then its argument prototype would still apply. */ | |
23616 | char mspack_create_chm_decompressor (); | |
23617 | int | |
23618 | main () | |
23619 | { | |
23620 | mspack_create_chm_decompressor (); | |
23621 | ; | |
23622 | return 0; | |
23623 | } | |
23624 | _ACEOF | |
23625 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23627 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23628 | ac_status=$? |
ac1cb8d3 VS |
23629 | grep -v '^ *+' conftest.er1 >conftest.err |
23630 | rm -f conftest.er1 | |
23631 | cat conftest.err >&5 | |
a848cd7e SC |
23632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23633 | (exit $ac_status); } && | |
07158944 | 23634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23636 | (eval $ac_try) 2>&5 | |
23637 | ac_status=$? | |
23638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23639 | (exit $ac_status); }; } && | |
23640 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23642 | (eval $ac_try) 2>&5 | |
23643 | ac_status=$? | |
23644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23645 | (exit $ac_status); }; }; then | |
23646 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
23647 | else | |
23648 | echo "$as_me: failed program was:" >&5 | |
23649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23650 | ||
23651 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
23652 | fi | |
ac1cb8d3 VS |
23653 | rm -f conftest.err conftest.$ac_objext \ |
23654 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23655 | LIBS=$ac_check_lib_save_LIBS |
23656 | fi | |
23657 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
23658 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
23659 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
23660 | MSPACK_LINK=" -lmspack" | |
23661 | fi | |
23662 | ||
23663 | fi | |
23664 | if test "x$MSPACK_LINK" = "x" ; then | |
23665 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
23666 | fi |
23667 | fi | |
23668 | ||
23669 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
23670 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
23671 | #define wxUSE_LIBMSPACK 1 |
23672 | _ACEOF | |
23673 | ||
a848cd7e SC |
23674 | fi |
23675 | ||
23676 | ||
23677 | ||
23678 | AFMINSTALL= | |
23679 | WIN32INSTALL= | |
23680 | ||
23681 | TOOLKIT= | |
23682 | TOOLKIT_INCLUDE= | |
23683 | WIDGET_SET= | |
23684 | ||
23685 | if test "$USE_WIN32" = 1 ; then | |
23686 | ||
23687 | for ac_header in w32api.h | |
23688 | do | |
23689 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23691 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23692 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23695 | fi | |
23696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23697 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23698 | else | |
23699 | # Is the header compilable? | |
23700 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23701 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23702 | cat >conftest.$ac_ext <<_ACEOF | |
23703 | /* confdefs.h. */ | |
23704 | _ACEOF | |
23705 | cat confdefs.h >>conftest.$ac_ext | |
23706 | cat >>conftest.$ac_ext <<_ACEOF | |
23707 | /* end confdefs.h. */ | |
23708 | $ac_includes_default | |
23709 | #include <$ac_header> | |
23710 | _ACEOF | |
23711 | rm -f conftest.$ac_objext | |
23712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23714 | ac_status=$? |
ac1cb8d3 VS |
23715 | grep -v '^ *+' conftest.er1 >conftest.err |
23716 | rm -f conftest.er1 | |
23717 | cat conftest.err >&5 | |
a848cd7e SC |
23718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23719 | (exit $ac_status); } && | |
07158944 | 23720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23722 | (eval $ac_try) 2>&5 | |
23723 | ac_status=$? | |
23724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23725 | (exit $ac_status); }; } && | |
23726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23728 | (eval $ac_try) 2>&5 | |
23729 | ac_status=$? | |
23730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23731 | (exit $ac_status); }; }; then | |
23732 | ac_header_compiler=yes | |
23733 | else | |
23734 | echo "$as_me: failed program was:" >&5 | |
23735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23736 | ||
23737 | ac_header_compiler=no | |
23738 | fi | |
ac1cb8d3 | 23739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23740 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23741 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23742 | ||
23743 | # Is the header present? | |
23744 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23745 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23746 | cat >conftest.$ac_ext <<_ACEOF | |
23747 | /* confdefs.h. */ | |
23748 | _ACEOF | |
23749 | cat confdefs.h >>conftest.$ac_ext | |
23750 | cat >>conftest.$ac_ext <<_ACEOF | |
23751 | /* end confdefs.h. */ | |
23752 | #include <$ac_header> | |
23753 | _ACEOF | |
23754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23756 | ac_status=$? | |
23757 | grep -v '^ *+' conftest.er1 >conftest.err | |
23758 | rm -f conftest.er1 | |
23759 | cat conftest.err >&5 | |
23760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23761 | (exit $ac_status); } >/dev/null; then | |
23762 | if test -s conftest.err; then | |
23763 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23764 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23765 | else |
23766 | ac_cpp_err= | |
23767 | fi | |
23768 | else | |
23769 | ac_cpp_err=yes | |
23770 | fi | |
23771 | if test -z "$ac_cpp_err"; then | |
23772 | ac_header_preproc=yes | |
23773 | else | |
23774 | echo "$as_me: failed program was:" >&5 | |
23775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23776 | ||
23777 | ac_header_preproc=no | |
23778 | fi | |
23779 | rm -f conftest.err conftest.$ac_ext | |
23780 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23781 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23782 | ||
23783 | # So? What about this header? | |
ac1cb8d3 VS |
23784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23785 | yes:no: ) | |
a848cd7e SC |
23786 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23787 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23788 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23789 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23790 | ac_header_preproc=yes | |
a848cd7e | 23791 | ;; |
ac1cb8d3 | 23792 | no:yes:* ) |
a848cd7e SC |
23793 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23794 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23795 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23796 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23797 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23798 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23799 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23800 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23801 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
23802 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23803 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23804 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23805 | ( |
23806 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23807 | ## ----------------------------------------- ## |
23808 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23809 | ## ----------------------------------------- ## | |
a848cd7e SC |
23810 | _ASBOX |
23811 | ) | | |
23812 | sed "s/^/$as_me: WARNING: /" >&2 | |
23813 | ;; | |
23814 | esac | |
23815 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23817 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23819 | else | |
ac1cb8d3 | 23820 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
23821 | fi |
23822 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23823 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23824 | ||
23825 | fi | |
23826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23827 | cat >>confdefs.h <<_ACEOF | |
23828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23829 | _ACEOF | |
23830 | ||
23831 | fi | |
23832 | ||
23833 | done | |
23834 | ||
23835 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23836 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23837 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23838 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23840 | fi | |
23841 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23842 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23843 | else | |
23844 | # Is the header compilable? | |
23845 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
23846 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
23847 | cat >conftest.$ac_ext <<_ACEOF | |
23848 | /* confdefs.h. */ | |
23849 | _ACEOF | |
23850 | cat confdefs.h >>conftest.$ac_ext | |
23851 | cat >>conftest.$ac_ext <<_ACEOF | |
23852 | /* end confdefs.h. */ | |
23853 | $ac_includes_default | |
23854 | #include <windows.h> | |
23855 | _ACEOF | |
23856 | rm -f conftest.$ac_objext | |
23857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23858 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23859 | ac_status=$? |
ac1cb8d3 VS |
23860 | grep -v '^ *+' conftest.er1 >conftest.err |
23861 | rm -f conftest.er1 | |
23862 | cat conftest.err >&5 | |
a848cd7e SC |
23863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23864 | (exit $ac_status); } && | |
07158944 | 23865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23867 | (eval $ac_try) 2>&5 | |
23868 | ac_status=$? | |
23869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23870 | (exit $ac_status); }; } && | |
23871 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23873 | (eval $ac_try) 2>&5 | |
23874 | ac_status=$? | |
23875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23876 | (exit $ac_status); }; }; then | |
23877 | ac_header_compiler=yes | |
23878 | else | |
23879 | echo "$as_me: failed program was:" >&5 | |
23880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23881 | ||
23882 | ac_header_compiler=no | |
23883 | fi | |
ac1cb8d3 | 23884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23885 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23886 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23887 | ||
23888 | # Is the header present? | |
23889 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
23890 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
23891 | cat >conftest.$ac_ext <<_ACEOF | |
23892 | /* confdefs.h. */ | |
23893 | _ACEOF | |
23894 | cat confdefs.h >>conftest.$ac_ext | |
23895 | cat >>conftest.$ac_ext <<_ACEOF | |
23896 | /* end confdefs.h. */ | |
23897 | #include <windows.h> | |
23898 | _ACEOF | |
23899 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23900 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23901 | ac_status=$? | |
23902 | grep -v '^ *+' conftest.er1 >conftest.err | |
23903 | rm -f conftest.er1 | |
23904 | cat conftest.err >&5 | |
23905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23906 | (exit $ac_status); } >/dev/null; then | |
23907 | if test -s conftest.err; then | |
23908 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23909 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23910 | else |
23911 | ac_cpp_err= | |
23912 | fi | |
23913 | else | |
23914 | ac_cpp_err=yes | |
23915 | fi | |
23916 | if test -z "$ac_cpp_err"; then | |
23917 | ac_header_preproc=yes | |
23918 | else | |
23919 | echo "$as_me: failed program was:" >&5 | |
23920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23921 | ||
23922 | ac_header_preproc=no | |
23923 | fi | |
23924 | rm -f conftest.err conftest.$ac_ext | |
23925 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23926 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23927 | ||
23928 | # So? What about this header? | |
ac1cb8d3 VS |
23929 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23930 | yes:no: ) | |
a848cd7e SC |
23931 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23932 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23933 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
23934 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
23935 | ac_header_preproc=yes | |
a848cd7e | 23936 | ;; |
ac1cb8d3 | 23937 | no:yes:* ) |
a848cd7e SC |
23938 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
23939 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23940 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
23941 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
23942 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
23943 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
23944 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23945 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23946 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
23947 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23948 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
23949 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23950 | ( |
23951 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23952 | ## ----------------------------------------- ## |
23953 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23954 | ## ----------------------------------------- ## | |
a848cd7e SC |
23955 | _ASBOX |
23956 | ) | | |
23957 | sed "s/^/$as_me: WARNING: /" >&2 | |
23958 | ;; | |
23959 | esac | |
23960 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23961 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23962 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23964 | else | |
23965 | ac_cv_header_windows_h=$ac_header_preproc | |
23966 | fi | |
23967 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23968 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23969 | ||
23970 | fi | |
23971 | if test $ac_cv_header_windows_h = yes; then | |
23972 | : | |
23973 | else | |
23974 | ||
23975 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
23976 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
23977 | { (exit 1); exit 1; }; } | |
23978 | ||
23979 | fi | |
23980 | ||
23981 | ||
23982 | ||
23983 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
23984 | ||
23985 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
23986 | LIBS="$LIBS -loleacc" | |
23987 | fi | |
23988 | ||
23989 | case "${host}" in | |
23990 | *-*-cygwin* ) | |
23991 | LIBS="$LIBS -lkernel32 -luser32" | |
23992 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
23993 | esac | |
23994 | ||
23995 | if test "$wxUSE_ODBC" = "sys" ; then | |
23996 | wxUSE_ODBC = "yes" | |
23997 | fi | |
23998 | if test "$wxUSE_ODBC" = "yes" ; then | |
23999 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
24000 | cat >>confdefs.h <<\_ACEOF | |
24001 | #define wxUSE_ODBC 1 | |
24002 | _ACEOF | |
24003 | ||
24004 | fi | |
24005 | ||
24006 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
24007 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
24008 | ||
24009 | WIN32INSTALL=win32install | |
24010 | fi | |
24011 | ||
24012 | if test "$wxUSE_GUI" = "yes"; then | |
24013 | USE_GUI=1 | |
24014 | ||
24015 | GUI_TK_LIBRARY= | |
24016 | ||
24017 | WXGTK12= | |
24018 | WXGTK127= | |
24019 | WXGTK20= | |
24020 | WXGPE= | |
24021 | ||
207bc66c RN |
24022 | if test "$wxUSE_COCOA" = 1 ; then |
24023 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
24024 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
24025 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
24026 | wxUSE_PRINTING_ARCHITECTURE=no | |
24027 | fi | |
24028 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
24029 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
24030 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
24031 | wxUSE_DRAG_AND_DROP=no | |
24032 | fi | |
24033 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
24034 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
24035 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
24036 | wxUSE_DRAGIMAGE=no | |
24037 | fi | |
24038 | fi | |
24039 | ||
a848cd7e SC |
24040 | if test "$wxUSE_MSW" = 1 ; then |
24041 | TOOLKIT=MSW | |
24042 | GUIDIST=MSW_DIST | |
24043 | ||
ceec2216 | 24044 | case "${host}" in |
a848cd7e SC |
24045 | *-*-mingw32* ) |
24046 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
24047 | esac | |
24048 | fi | |
24049 | ||
24050 | if test "$wxUSE_GTK" = 1; then | |
24051 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
24052 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
24053 | ||
24054 | gtk_version_cached=1 | |
24055 | if test "${wx_cv_lib_gtk+set}" = set; then | |
24056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24057 | else | |
24058 | ||
24059 | gtk_version_cached=0 | |
24060 | echo "$as_me:$LINENO: result: " >&5 | |
24061 | echo "${ECHO_T}" >&6 | |
24062 | ||
24063 | GTK_MODULES= | |
24064 | if test "$wxUSE_THREADS" = "yes"; then | |
24065 | GTK_MODULES=gthread | |
24066 | fi | |
24067 | ||
24068 | wx_cv_lib_gtk= | |
24069 | if test "x$wxUSE_GTK2" = "xyes"; then | |
24070 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24071 | if test "${enable_gtktest+set}" = set; then | |
24072 | enableval="$enable_gtktest" | |
24073 | ||
24074 | else | |
24075 | enable_gtktest=yes | |
24076 | fi; | |
24077 | ||
24078 | pkg_config_args=gtk+-2.0 | |
24079 | for module in . $GTK_MODULES | |
24080 | do | |
24081 | case "$module" in | |
24082 | gthread) | |
24083 | pkg_config_args="$pkg_config_args gthread-2.0" | |
24084 | ;; | |
24085 | esac | |
24086 | done | |
24087 | ||
24088 | no_gtk="" | |
24089 | ||
24090 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24091 | set dummy pkg-config; ac_word=$2 | |
24092 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24094 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24096 | else | |
24097 | case $PKG_CONFIG in | |
24098 | [\\/]* | ?:[\\/]*) | |
24099 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24100 | ;; | |
24101 | *) | |
24102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24103 | for as_dir in $PATH | |
24104 | do | |
24105 | IFS=$as_save_IFS | |
24106 | test -z "$as_dir" && as_dir=. | |
24107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24108 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24109 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24111 | break 2 | |
24112 | fi | |
24113 | done | |
24114 | done | |
24115 | ||
24116 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
24117 | ;; | |
24118 | esac | |
24119 | fi | |
24120 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
24121 | ||
24122 | if test -n "$PKG_CONFIG"; then | |
24123 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
24124 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
24125 | else | |
24126 | echo "$as_me:$LINENO: result: no" >&5 | |
24127 | echo "${ECHO_T}no" >&6 | |
24128 | fi | |
24129 | ||
24130 | ||
24131 | if test x$PKG_CONFIG != xno ; then | |
24132 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
24133 | : | |
24134 | else | |
c2218763 | 24135 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
24136 | no_gtk=yes |
24137 | PKG_CONFIG=no | |
24138 | fi | |
24139 | else | |
24140 | no_gtk=yes | |
24141 | fi | |
24142 | ||
24143 | min_gtk_version=2.0.0 | |
24144 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
24145 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
24146 | ||
24147 | if test x$PKG_CONFIG != xno ; then | |
24148 | ## don't try to run the test against uninstalled libtool libs | |
24149 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
24150 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
24151 | enable_gtktest=no | |
24152 | fi | |
24153 | ||
24154 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
24155 | : | |
24156 | else | |
24157 | no_gtk=yes | |
24158 | fi | |
24159 | fi | |
24160 | ||
24161 | if test x"$no_gtk" = x ; then | |
24162 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
24163 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
24164 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24165 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24166 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24167 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24168 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
24169 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24170 | if test "x$enable_gtktest" = "xyes" ; then | |
24171 | ac_save_CFLAGS="$CFLAGS" | |
24172 | ac_save_LIBS="$LIBS" | |
24173 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24174 | LIBS="$GTK_LIBS $LIBS" | |
24175 | rm -f conf.gtktest | |
24176 | if test "$cross_compiling" = yes; then | |
24177 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24178 | else | |
24179 | cat >conftest.$ac_ext <<_ACEOF | |
24180 | /* confdefs.h. */ | |
24181 | _ACEOF | |
24182 | cat confdefs.h >>conftest.$ac_ext | |
24183 | cat >>conftest.$ac_ext <<_ACEOF | |
24184 | /* end confdefs.h. */ | |
24185 | ||
24186 | #include <gtk/gtk.h> | |
24187 | #include <stdio.h> | |
24188 | #include <stdlib.h> | |
24189 | ||
24190 | int | |
24191 | main () | |
24192 | { | |
24193 | int major, minor, micro; | |
24194 | char *tmp_version; | |
24195 | ||
24196 | system ("touch conf.gtktest"); | |
24197 | ||
24198 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24199 | tmp_version = g_strdup("$min_gtk_version"); | |
24200 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24201 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24202 | exit(1); | |
24203 | } | |
24204 | ||
24205 | if ((gtk_major_version != $gtk_config_major_version) || | |
24206 | (gtk_minor_version != $gtk_config_minor_version) || | |
24207 | (gtk_micro_version != $gtk_config_micro_version)) | |
24208 | { | |
24209 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24210 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24211 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24212 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
24213 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24214 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24215 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24216 | printf("*** required on your system.\n"); | |
24217 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
24218 | printf("*** to point to the correct configuration files\n"); | |
24219 | } | |
24220 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24221 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24222 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24223 | { | |
24224 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24225 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24226 | printf("*** library (version %d.%d.%d)\n", | |
24227 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24228 | } | |
24229 | else | |
24230 | { | |
24231 | if ((gtk_major_version > major) || | |
24232 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24233 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24234 | { | |
24235 | return 0; | |
24236 | } | |
24237 | else | |
24238 | { | |
24239 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24240 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24241 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24242 | major, minor, micro); | |
24243 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24244 | printf("***\n"); | |
24245 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24246 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
24247 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24248 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
24249 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
24250 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24251 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24252 | } | |
24253 | } | |
24254 | return 1; | |
24255 | } | |
24256 | ||
24257 | _ACEOF | |
24258 | rm -f conftest$ac_exeext | |
24259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24260 | (eval $ac_link) 2>&5 | |
24261 | ac_status=$? | |
24262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24263 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24265 | (eval $ac_try) 2>&5 | |
24266 | ac_status=$? | |
24267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24268 | (exit $ac_status); }; }; then | |
24269 | : | |
24270 | else | |
24271 | echo "$as_me: program exited with status $ac_status" >&5 | |
24272 | echo "$as_me: failed program was:" >&5 | |
24273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24274 | ||
24275 | ( exit $ac_status ) | |
24276 | no_gtk=yes | |
24277 | fi | |
ac1cb8d3 | 24278 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24279 | fi |
24280 | CFLAGS="$ac_save_CFLAGS" | |
24281 | LIBS="$ac_save_LIBS" | |
24282 | fi | |
24283 | fi | |
24284 | if test "x$no_gtk" = x ; then | |
24285 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
24286 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
24287 | wx_cv_lib_gtk=2.0 | |
24288 | else | |
24289 | echo "$as_me:$LINENO: result: no" >&5 | |
24290 | echo "${ECHO_T}no" >&6 | |
24291 | if test "$PKG_CONFIG" = "no" ; then | |
24292 | echo "*** A new enough version of pkg-config was not found." | |
24293 | echo "*** See http://pkgconfig.sourceforge.net" | |
24294 | else | |
24295 | if test -f conf.gtktest ; then | |
24296 | : | |
24297 | else | |
24298 | echo "*** Could not run GTK+ test program, checking why..." | |
24299 | ac_save_CFLAGS="$CFLAGS" | |
24300 | ac_save_LIBS="$LIBS" | |
24301 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24302 | LIBS="$LIBS $GTK_LIBS" | |
24303 | cat >conftest.$ac_ext <<_ACEOF | |
24304 | /* confdefs.h. */ | |
24305 | _ACEOF | |
24306 | cat confdefs.h >>conftest.$ac_ext | |
24307 | cat >>conftest.$ac_ext <<_ACEOF | |
24308 | /* end confdefs.h. */ | |
24309 | ||
24310 | #include <gtk/gtk.h> | |
24311 | #include <stdio.h> | |
24312 | ||
24313 | int | |
24314 | main () | |
24315 | { | |
24316 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24317 | ; | |
24318 | return 0; | |
24319 | } | |
24320 | _ACEOF | |
24321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24323 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24324 | ac_status=$? |
ac1cb8d3 VS |
24325 | grep -v '^ *+' conftest.er1 >conftest.err |
24326 | rm -f conftest.er1 | |
24327 | cat conftest.err >&5 | |
a848cd7e SC |
24328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24329 | (exit $ac_status); } && | |
07158944 | 24330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24332 | (eval $ac_try) 2>&5 | |
24333 | ac_status=$? | |
24334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24335 | (exit $ac_status); }; } && | |
24336 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24338 | (eval $ac_try) 2>&5 | |
24339 | ac_status=$? | |
24340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24341 | (exit $ac_status); }; }; then | |
24342 | echo "*** The test program compiled, but did not run. This usually means" | |
24343 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
24344 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
24345 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24346 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24347 | echo "*** is required on your system" | |
24348 | echo "***" | |
24349 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24350 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24351 | else | |
24352 | echo "$as_me: failed program was:" >&5 | |
24353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24354 | ||
24355 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24356 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
24357 | fi | |
ac1cb8d3 VS |
24358 | rm -f conftest.err conftest.$ac_objext \ |
24359 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24360 | CFLAGS="$ac_save_CFLAGS" |
24361 | LIBS="$ac_save_LIBS" | |
24362 | fi | |
24363 | fi | |
24364 | GTK_CFLAGS="" | |
24365 | GTK_LIBS="" | |
24366 | : | |
24367 | fi | |
24368 | ||
24369 | ||
24370 | rm -f conf.gtktest | |
24371 | ||
24372 | else | |
24373 | ||
24374 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24375 | if test "${with_gtk_prefix+set}" = set; then | |
24376 | withval="$with_gtk_prefix" | |
24377 | gtk_config_prefix="$withval" | |
24378 | else | |
24379 | gtk_config_prefix="" | |
24380 | fi; | |
24381 | ||
24382 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24383 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24384 | withval="$with_gtk_exec_prefix" | |
24385 | gtk_config_exec_prefix="$withval" | |
24386 | else | |
24387 | gtk_config_exec_prefix="" | |
24388 | fi; | |
24389 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24390 | if test "${enable_gtktest+set}" = set; then | |
24391 | enableval="$enable_gtktest" | |
24392 | ||
24393 | else | |
24394 | enable_gtktest=yes | |
24395 | fi; | |
24396 | ||
24397 | for module in . $GTK_MODULES | |
24398 | do | |
24399 | case "$module" in | |
24400 | gthread) | |
24401 | gtk_config_args="$gtk_config_args gthread" | |
24402 | ;; | |
24403 | esac | |
24404 | done | |
24405 | ||
24406 | if test x$gtk_config_exec_prefix != x ; then | |
24407 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24408 | if test x${GTK_CONFIG+set} != xset ; then | |
24409 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24410 | fi | |
24411 | fi | |
24412 | if test x$gtk_config_prefix != x ; then | |
24413 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24414 | if test x${GTK_CONFIG+set} != xset ; then | |
24415 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24416 | fi | |
24417 | fi | |
24418 | ||
24419 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24420 | set dummy gtk-config; ac_word=$2 | |
24421 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24423 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24425 | else | |
24426 | case $GTK_CONFIG in | |
24427 | [\\/]* | ?:[\\/]*) | |
24428 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24429 | ;; | |
24430 | *) | |
24431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24432 | for as_dir in $PATH | |
24433 | do | |
24434 | IFS=$as_save_IFS | |
24435 | test -z "$as_dir" && as_dir=. | |
24436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24438 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24440 | break 2 | |
24441 | fi | |
24442 | done | |
24443 | done | |
24444 | ||
24445 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24446 | ;; | |
24447 | esac | |
24448 | fi | |
24449 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24450 | ||
24451 | if test -n "$GTK_CONFIG"; then | |
24452 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24453 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24454 | else | |
24455 | echo "$as_me:$LINENO: result: no" >&5 | |
24456 | echo "${ECHO_T}no" >&6 | |
24457 | fi | |
24458 | ||
24459 | min_gtk_version=1.2.7 | |
24460 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24461 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24462 | no_gtk="" | |
24463 | if test "$GTK_CONFIG" = "no" ; then | |
24464 | no_gtk=yes | |
24465 | else | |
24466 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24467 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24468 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24469 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24470 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24471 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24472 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24473 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24474 | if test "x$enable_gtktest" = "xyes" ; then | |
24475 | ac_save_CFLAGS="$CFLAGS" | |
24476 | ac_save_LIBS="$LIBS" | |
24477 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24478 | LIBS="$GTK_LIBS $LIBS" | |
24479 | rm -f conf.gtktest | |
24480 | if test "$cross_compiling" = yes; then | |
24481 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24482 | else | |
24483 | cat >conftest.$ac_ext <<_ACEOF | |
24484 | /* confdefs.h. */ | |
24485 | _ACEOF | |
24486 | cat confdefs.h >>conftest.$ac_ext | |
24487 | cat >>conftest.$ac_ext <<_ACEOF | |
24488 | /* end confdefs.h. */ | |
24489 | ||
24490 | #include <gtk/gtk.h> | |
24491 | #include <stdio.h> | |
24492 | #include <stdlib.h> | |
24493 | ||
24494 | int | |
24495 | main () | |
24496 | { | |
24497 | int major, minor, micro; | |
24498 | char *tmp_version; | |
24499 | ||
24500 | system ("touch conf.gtktest"); | |
24501 | ||
24502 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24503 | tmp_version = g_strdup("$min_gtk_version"); | |
24504 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24505 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24506 | exit(1); | |
24507 | } | |
24508 | ||
24509 | if ((gtk_major_version != $gtk_config_major_version) || | |
24510 | (gtk_minor_version != $gtk_config_minor_version) || | |
24511 | (gtk_micro_version != $gtk_config_micro_version)) | |
24512 | { | |
24513 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24514 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24515 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24516 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24517 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24518 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24519 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24520 | printf("*** required on your system.\n"); | |
24521 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24522 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24523 | printf("*** before re-running configure\n"); | |
24524 | } | |
24525 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24526 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24527 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24528 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24529 | { | |
24530 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24531 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24532 | printf("*** library (version %d.%d.%d)\n", | |
24533 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24534 | } | |
24535 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24536 | else | |
24537 | { | |
24538 | if ((gtk_major_version > major) || | |
24539 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24540 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24541 | { | |
24542 | return 0; | |
24543 | } | |
24544 | else | |
24545 | { | |
24546 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24547 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24548 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24549 | major, minor, micro); | |
24550 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24551 | printf("***\n"); | |
24552 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24553 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24554 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24555 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24556 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24557 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24558 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24559 | } | |
24560 | } | |
24561 | return 1; | |
24562 | } | |
24563 | ||
24564 | _ACEOF | |
24565 | rm -f conftest$ac_exeext | |
24566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24567 | (eval $ac_link) 2>&5 | |
24568 | ac_status=$? | |
24569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24570 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24572 | (eval $ac_try) 2>&5 | |
24573 | ac_status=$? | |
24574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24575 | (exit $ac_status); }; }; then | |
24576 | : | |
24577 | else | |
24578 | echo "$as_me: program exited with status $ac_status" >&5 | |
24579 | echo "$as_me: failed program was:" >&5 | |
24580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24581 | ||
24582 | ( exit $ac_status ) | |
24583 | no_gtk=yes | |
24584 | fi | |
ac1cb8d3 | 24585 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24586 | fi |
24587 | CFLAGS="$ac_save_CFLAGS" | |
24588 | LIBS="$ac_save_LIBS" | |
24589 | fi | |
24590 | fi | |
24591 | if test "x$no_gtk" = x ; then | |
24592 | echo "$as_me:$LINENO: result: yes" >&5 | |
24593 | echo "${ECHO_T}yes" >&6 | |
24594 | wx_cv_lib_gtk=1.2.7 | |
24595 | else | |
24596 | echo "$as_me:$LINENO: result: no" >&5 | |
24597 | echo "${ECHO_T}no" >&6 | |
24598 | if test "$GTK_CONFIG" = "no" ; then | |
24599 | echo "*** The gtk-config script installed by GTK could not be found" | |
24600 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24601 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24602 | echo "*** full path to gtk-config." | |
24603 | else | |
24604 | if test -f conf.gtktest ; then | |
24605 | : | |
24606 | else | |
24607 | echo "*** Could not run GTK test program, checking why..." | |
24608 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24609 | LIBS="$LIBS $GTK_LIBS" | |
24610 | cat >conftest.$ac_ext <<_ACEOF | |
24611 | /* confdefs.h. */ | |
24612 | _ACEOF | |
24613 | cat confdefs.h >>conftest.$ac_ext | |
24614 | cat >>conftest.$ac_ext <<_ACEOF | |
24615 | /* end confdefs.h. */ | |
24616 | ||
24617 | #include <gtk/gtk.h> | |
24618 | #include <stdio.h> | |
24619 | ||
24620 | int | |
24621 | main () | |
24622 | { | |
24623 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24624 | ; | |
24625 | return 0; | |
24626 | } | |
24627 | _ACEOF | |
24628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24630 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24631 | ac_status=$? |
ac1cb8d3 VS |
24632 | grep -v '^ *+' conftest.er1 >conftest.err |
24633 | rm -f conftest.er1 | |
24634 | cat conftest.err >&5 | |
a848cd7e SC |
24635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24636 | (exit $ac_status); } && | |
07158944 | 24637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24639 | (eval $ac_try) 2>&5 | |
24640 | ac_status=$? | |
24641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24642 | (exit $ac_status); }; } && | |
24643 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24645 | (eval $ac_try) 2>&5 | |
24646 | ac_status=$? | |
24647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24648 | (exit $ac_status); }; }; then | |
24649 | echo "*** The test program compiled, but did not run. This usually means" | |
24650 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24651 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24652 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24653 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24654 | echo "*** is required on your system" | |
24655 | echo "***" | |
24656 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24657 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24658 | echo "***" | |
24659 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24660 | echo "*** came with the system with the command" | |
24661 | echo "***" | |
24662 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24663 | else | |
24664 | echo "$as_me: failed program was:" >&5 | |
24665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24666 | ||
24667 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24668 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24669 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24670 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24671 | fi | |
ac1cb8d3 VS |
24672 | rm -f conftest.err conftest.$ac_objext \ |
24673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24674 | CFLAGS="$ac_save_CFLAGS" |
24675 | LIBS="$ac_save_LIBS" | |
24676 | fi | |
24677 | fi | |
24678 | GTK_CFLAGS="" | |
24679 | GTK_LIBS="" | |
24680 | : | |
24681 | fi | |
24682 | ||
24683 | ||
24684 | rm -f conf.gtktest | |
24685 | ||
24686 | ||
24687 | if test -z "$wx_cv_lib_gtk"; then | |
24688 | ||
24689 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24690 | if test "${with_gtk_prefix+set}" = set; then | |
24691 | withval="$with_gtk_prefix" | |
24692 | gtk_config_prefix="$withval" | |
24693 | else | |
24694 | gtk_config_prefix="" | |
24695 | fi; | |
24696 | ||
24697 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24698 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24699 | withval="$with_gtk_exec_prefix" | |
24700 | gtk_config_exec_prefix="$withval" | |
24701 | else | |
24702 | gtk_config_exec_prefix="" | |
24703 | fi; | |
24704 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24705 | if test "${enable_gtktest+set}" = set; then | |
24706 | enableval="$enable_gtktest" | |
24707 | ||
24708 | else | |
24709 | enable_gtktest=yes | |
24710 | fi; | |
24711 | ||
24712 | for module in . $GTK_MODULES | |
24713 | do | |
24714 | case "$module" in | |
24715 | gthread) | |
24716 | gtk_config_args="$gtk_config_args gthread" | |
24717 | ;; | |
24718 | esac | |
24719 | done | |
24720 | ||
24721 | if test x$gtk_config_exec_prefix != x ; then | |
24722 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24723 | if test x${GTK_CONFIG+set} != xset ; then | |
24724 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24725 | fi | |
24726 | fi | |
24727 | if test x$gtk_config_prefix != x ; then | |
24728 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24729 | if test x${GTK_CONFIG+set} != xset ; then | |
24730 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24731 | fi | |
24732 | fi | |
24733 | ||
24734 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24735 | set dummy gtk-config; ac_word=$2 | |
24736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24738 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24740 | else | |
24741 | case $GTK_CONFIG in | |
24742 | [\\/]* | ?:[\\/]*) | |
24743 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24744 | ;; | |
24745 | *) | |
24746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24747 | for as_dir in $PATH | |
24748 | do | |
24749 | IFS=$as_save_IFS | |
24750 | test -z "$as_dir" && as_dir=. | |
24751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24752 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24753 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24755 | break 2 | |
24756 | fi | |
24757 | done | |
24758 | done | |
24759 | ||
24760 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24761 | ;; | |
24762 | esac | |
24763 | fi | |
24764 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24765 | ||
24766 | if test -n "$GTK_CONFIG"; then | |
24767 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24768 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24769 | else | |
24770 | echo "$as_me:$LINENO: result: no" >&5 | |
24771 | echo "${ECHO_T}no" >&6 | |
24772 | fi | |
24773 | ||
24774 | min_gtk_version=1.2.3 | |
24775 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24776 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24777 | no_gtk="" | |
24778 | if test "$GTK_CONFIG" = "no" ; then | |
24779 | no_gtk=yes | |
24780 | else | |
24781 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24782 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24783 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24784 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24785 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24786 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24787 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24788 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24789 | if test "x$enable_gtktest" = "xyes" ; then | |
24790 | ac_save_CFLAGS="$CFLAGS" | |
24791 | ac_save_LIBS="$LIBS" | |
24792 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24793 | LIBS="$GTK_LIBS $LIBS" | |
24794 | rm -f conf.gtktest | |
24795 | if test "$cross_compiling" = yes; then | |
24796 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24797 | else | |
24798 | cat >conftest.$ac_ext <<_ACEOF | |
24799 | /* confdefs.h. */ | |
24800 | _ACEOF | |
24801 | cat confdefs.h >>conftest.$ac_ext | |
24802 | cat >>conftest.$ac_ext <<_ACEOF | |
24803 | /* end confdefs.h. */ | |
24804 | ||
24805 | #include <gtk/gtk.h> | |
24806 | #include <stdio.h> | |
24807 | #include <stdlib.h> | |
24808 | ||
24809 | int | |
24810 | main () | |
24811 | { | |
24812 | int major, minor, micro; | |
24813 | char *tmp_version; | |
24814 | ||
24815 | system ("touch conf.gtktest"); | |
24816 | ||
24817 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24818 | tmp_version = g_strdup("$min_gtk_version"); | |
24819 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24820 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24821 | exit(1); | |
24822 | } | |
24823 | ||
24824 | if ((gtk_major_version != $gtk_config_major_version) || | |
24825 | (gtk_minor_version != $gtk_config_minor_version) || | |
24826 | (gtk_micro_version != $gtk_config_micro_version)) | |
24827 | { | |
24828 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24829 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24830 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24831 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24832 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24833 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24834 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24835 | printf("*** required on your system.\n"); | |
24836 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24837 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24838 | printf("*** before re-running configure\n"); | |
24839 | } | |
24840 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24841 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24842 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24843 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24844 | { | |
24845 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24846 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24847 | printf("*** library (version %d.%d.%d)\n", | |
24848 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24849 | } | |
24850 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24851 | else | |
24852 | { | |
24853 | if ((gtk_major_version > major) || | |
24854 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24855 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24856 | { | |
24857 | return 0; | |
24858 | } | |
24859 | else | |
24860 | { | |
24861 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24862 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24863 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24864 | major, minor, micro); | |
24865 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24866 | printf("***\n"); | |
24867 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24868 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24869 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24870 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24871 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24872 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24873 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24874 | } | |
24875 | } | |
24876 | return 1; | |
24877 | } | |
24878 | ||
24879 | _ACEOF | |
24880 | rm -f conftest$ac_exeext | |
24881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24882 | (eval $ac_link) 2>&5 | |
24883 | ac_status=$? | |
24884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24887 | (eval $ac_try) 2>&5 | |
24888 | ac_status=$? | |
24889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24890 | (exit $ac_status); }; }; then | |
24891 | : | |
24892 | else | |
24893 | echo "$as_me: program exited with status $ac_status" >&5 | |
24894 | echo "$as_me: failed program was:" >&5 | |
24895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24896 | ||
24897 | ( exit $ac_status ) | |
24898 | no_gtk=yes | |
24899 | fi | |
ac1cb8d3 | 24900 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24901 | fi |
24902 | CFLAGS="$ac_save_CFLAGS" | |
24903 | LIBS="$ac_save_LIBS" | |
24904 | fi | |
24905 | fi | |
24906 | if test "x$no_gtk" = x ; then | |
24907 | echo "$as_me:$LINENO: result: yes" >&5 | |
24908 | echo "${ECHO_T}yes" >&6 | |
24909 | wx_cv_lib_gtk=1.2.3 | |
24910 | else | |
24911 | echo "$as_me:$LINENO: result: no" >&5 | |
24912 | echo "${ECHO_T}no" >&6 | |
24913 | if test "$GTK_CONFIG" = "no" ; then | |
24914 | echo "*** The gtk-config script installed by GTK could not be found" | |
24915 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24916 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24917 | echo "*** full path to gtk-config." | |
24918 | else | |
24919 | if test -f conf.gtktest ; then | |
24920 | : | |
24921 | else | |
24922 | echo "*** Could not run GTK test program, checking why..." | |
24923 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24924 | LIBS="$LIBS $GTK_LIBS" | |
24925 | cat >conftest.$ac_ext <<_ACEOF | |
24926 | /* confdefs.h. */ | |
24927 | _ACEOF | |
24928 | cat confdefs.h >>conftest.$ac_ext | |
24929 | cat >>conftest.$ac_ext <<_ACEOF | |
24930 | /* end confdefs.h. */ | |
24931 | ||
24932 | #include <gtk/gtk.h> | |
24933 | #include <stdio.h> | |
24934 | ||
24935 | int | |
24936 | main () | |
24937 | { | |
24938 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24939 | ; | |
24940 | return 0; | |
24941 | } | |
24942 | _ACEOF | |
24943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24945 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24946 | ac_status=$? |
ac1cb8d3 VS |
24947 | grep -v '^ *+' conftest.er1 >conftest.err |
24948 | rm -f conftest.er1 | |
24949 | cat conftest.err >&5 | |
a848cd7e SC |
24950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24951 | (exit $ac_status); } && | |
07158944 | 24952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24954 | (eval $ac_try) 2>&5 | |
24955 | ac_status=$? | |
24956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24957 | (exit $ac_status); }; } && | |
24958 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24960 | (eval $ac_try) 2>&5 | |
24961 | ac_status=$? | |
24962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24963 | (exit $ac_status); }; }; then | |
24964 | echo "*** The test program compiled, but did not run. This usually means" | |
24965 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24966 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24967 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24968 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24969 | echo "*** is required on your system" | |
24970 | echo "***" | |
24971 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24972 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24973 | echo "***" | |
24974 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24975 | echo "*** came with the system with the command" | |
24976 | echo "***" | |
24977 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24978 | else | |
24979 | echo "$as_me: failed program was:" >&5 | |
24980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24981 | ||
24982 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24983 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24984 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24985 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24986 | fi | |
ac1cb8d3 VS |
24987 | rm -f conftest.err conftest.$ac_objext \ |
24988 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24989 | CFLAGS="$ac_save_CFLAGS" |
24990 | LIBS="$ac_save_LIBS" | |
24991 | fi | |
24992 | fi | |
24993 | GTK_CFLAGS="" | |
24994 | GTK_LIBS="" | |
24995 | : | |
24996 | fi | |
24997 | ||
24998 | ||
24999 | rm -f conf.gtktest | |
25000 | ||
25001 | fi | |
25002 | fi | |
25003 | ||
25004 | if test -z "$wx_cv_lib_gtk"; then | |
25005 | wx_cv_lib_gtk=none | |
25006 | else | |
25007 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
25008 | wx_cv_libs_gtk=$GTK_LIBS | |
25009 | fi | |
25010 | ||
25011 | ||
25012 | fi | |
25013 | ||
25014 | ||
25015 | if test "$gtk_version_cached" = 1; then | |
25016 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
25017 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
25018 | fi | |
25019 | ||
25020 | case "$wx_cv_lib_gtk" in | |
25021 | 2.0) WXGTK20=1 | |
25022 | TOOLKIT_VERSION=2 | |
25023 | ;; | |
25024 | 1.2.7) WXGTK127=1 | |
25025 | WXGTK12=1 | |
25026 | ;; | |
25027 | 1.2.3) WXGTK12=1 | |
25028 | ;; | |
25029 | *) { { echo "$as_me:$LINENO: error: | |
25030 | Please check that gtk-config is in path, the directory | |
25031 | where GTK+ libraries are installed (returned by | |
25032 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
25033 | equivalent variable and GTK+ is version 1.2.3 or above. | |
25034 | " >&5 | |
25035 | echo "$as_me: error: | |
25036 | Please check that gtk-config is in path, the directory | |
25037 | where GTK+ libraries are installed (returned by | |
25038 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
25039 | equivalent variable and GTK+ is version 1.2.3 or above. | |
25040 | " >&2;} | |
25041 | { (exit 1); exit 1; }; } | |
25042 | ;; | |
25043 | esac | |
25044 | ||
25045 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
25046 | save_CFLAGS="$CFLAGS" |
25047 | save_LIBS="$LIBS" | |
25048 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25049 | LIBS="$LIBS $GTK_LIBS" | |
25050 | ||
9755e73b | 25051 | |
304205f1 VS |
25052 | for ac_func in pango_font_family_is_monospace |
25053 | do | |
25054 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25055 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25056 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25057 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25059 | else | |
25060 | cat >conftest.$ac_ext <<_ACEOF | |
25061 | /* confdefs.h. */ | |
25062 | _ACEOF | |
25063 | cat confdefs.h >>conftest.$ac_ext | |
25064 | cat >>conftest.$ac_ext <<_ACEOF | |
25065 | /* end confdefs.h. */ | |
25066 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25067 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25068 | #define $ac_func innocuous_$ac_func | |
25069 | ||
25070 | /* System header to define __stub macros and hopefully few prototypes, | |
25071 | which can conflict with char $ac_func (); below. | |
25072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25073 | <limits.h> exists even on freestanding compilers. */ | |
25074 | ||
25075 | #ifdef __STDC__ | |
25076 | # include <limits.h> | |
25077 | #else | |
25078 | # include <assert.h> | |
25079 | #endif | |
25080 | ||
25081 | #undef $ac_func | |
25082 | ||
25083 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25084 | #ifdef __cplusplus | |
25085 | extern "C" | |
25086 | { | |
25087 | #endif | |
25088 | /* We use char because int might match the return type of a gcc2 | |
25089 | builtin and then its argument prototype would still apply. */ | |
25090 | char $ac_func (); | |
25091 | /* The GNU C library defines this for functions which it implements | |
25092 | to always fail with ENOSYS. Some functions are actually named | |
25093 | something starting with __ and the normal name is an alias. */ | |
25094 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25095 | choke me | |
25096 | #else | |
25097 | char (*f) () = $ac_func; | |
25098 | #endif | |
25099 | #ifdef __cplusplus | |
25100 | } | |
25101 | #endif | |
25102 | ||
25103 | int | |
25104 | main () | |
25105 | { | |
25106 | return f != $ac_func; | |
25107 | ; | |
25108 | return 0; | |
25109 | } | |
25110 | _ACEOF | |
25111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25113 | (eval $ac_link) 2>conftest.er1 | |
25114 | ac_status=$? | |
25115 | grep -v '^ *+' conftest.er1 >conftest.err | |
25116 | rm -f conftest.er1 | |
25117 | cat conftest.err >&5 | |
25118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25119 | (exit $ac_status); } && | |
07158944 | 25120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25122 | (eval $ac_try) 2>&5 | |
25123 | ac_status=$? | |
25124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25125 | (exit $ac_status); }; } && | |
25126 | { ac_try='test -s conftest$ac_exeext' | |
25127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25128 | (eval $ac_try) 2>&5 | |
25129 | ac_status=$? | |
25130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25131 | (exit $ac_status); }; }; then | |
25132 | eval "$as_ac_var=yes" | |
25133 | else | |
25134 | echo "$as_me: failed program was:" >&5 | |
25135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25136 | ||
25137 | eval "$as_ac_var=no" | |
25138 | fi | |
25139 | rm -f conftest.err conftest.$ac_objext \ | |
25140 | conftest$ac_exeext conftest.$ac_ext | |
25141 | fi | |
25142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25143 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25144 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25145 | cat >>confdefs.h <<_ACEOF | |
25146 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25147 | _ACEOF | |
25148 | ||
25149 | fi | |
25150 | done | |
25151 | ||
9755e73b VS |
25152 | |
25153 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
25154 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
25155 | cat >conftest.$ac_ext <<_ACEOF | |
25156 | /* confdefs.h. */ | |
25157 | _ACEOF | |
25158 | cat confdefs.h >>conftest.$ac_ext | |
25159 | cat >>conftest.$ac_ext <<_ACEOF | |
25160 | /* end confdefs.h. */ | |
25161 | ||
25162 | #include <gtk/gtk.h> | |
25163 | ||
25164 | int | |
25165 | main () | |
25166 | { | |
25167 | ||
25168 | #if !GTK_CHECK_VERSION(2,4,0) | |
25169 | #error "Not GTK+ 2.4" | |
25170 | #endif | |
25171 | ||
25172 | ; | |
25173 | return 0; | |
25174 | } | |
25175 | _ACEOF | |
25176 | rm -f conftest.$ac_objext | |
25177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25178 | (eval $ac_compile) 2>conftest.er1 | |
25179 | ac_status=$? | |
25180 | grep -v '^ *+' conftest.er1 >conftest.err | |
25181 | rm -f conftest.er1 | |
25182 | cat conftest.err >&5 | |
25183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25184 | (exit $ac_status); } && | |
07158944 | 25185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
25186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25187 | (eval $ac_try) 2>&5 | |
25188 | ac_status=$? | |
25189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25190 | (exit $ac_status); }; } && | |
25191 | { ac_try='test -s conftest.$ac_objext' | |
25192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25193 | (eval $ac_try) 2>&5 | |
25194 | ac_status=$? | |
25195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25196 | (exit $ac_status); }; }; then | |
25197 | ||
25198 | cat >>confdefs.h <<\_ACEOF | |
25199 | #define __WXGTK24__ 1 | |
25200 | _ACEOF | |
25201 | ||
25202 | echo "$as_me:$LINENO: result: yes" >&5 | |
25203 | echo "${ECHO_T}yes" >&6 | |
25204 | ||
25205 | else | |
25206 | echo "$as_me: failed program was:" >&5 | |
25207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25208 | ||
25209 | ||
25210 | echo "$as_me:$LINENO: result: no" >&5 | |
25211 | echo "${ECHO_T}no" >&6 | |
25212 | ||
25213 | fi | |
25214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25215 | ||
304205f1 VS |
25216 | CFLAGS="$save_CFLAGS" |
25217 | LIBS="$save_LIBS" | |
a848cd7e SC |
25218 | else |
25219 | if test "$wxUSE_UNICODE" = "yes"; then | |
25220 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
25221 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
25222 | wxUSE_UNICODE=no | |
25223 | fi | |
25224 | fi | |
25225 | ||
25226 | if test "$USE_DARWIN" != 1; then | |
25227 | ||
25228 | for ac_func in poll | |
25229 | do | |
25230 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25231 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25232 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25233 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25235 | else | |
25236 | cat >conftest.$ac_ext <<_ACEOF | |
25237 | /* confdefs.h. */ | |
25238 | _ACEOF | |
25239 | cat confdefs.h >>conftest.$ac_ext | |
25240 | cat >>conftest.$ac_ext <<_ACEOF | |
25241 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25242 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25243 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25244 | #define $ac_func innocuous_$ac_func | |
25245 | ||
a848cd7e SC |
25246 | /* System header to define __stub macros and hopefully few prototypes, |
25247 | which can conflict with char $ac_func (); below. | |
25248 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25249 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25250 | |
a848cd7e SC |
25251 | #ifdef __STDC__ |
25252 | # include <limits.h> | |
25253 | #else | |
25254 | # include <assert.h> | |
25255 | #endif | |
ac1cb8d3 VS |
25256 | |
25257 | #undef $ac_func | |
25258 | ||
a848cd7e SC |
25259 | /* Override any gcc2 internal prototype to avoid an error. */ |
25260 | #ifdef __cplusplus | |
25261 | extern "C" | |
25262 | { | |
25263 | #endif | |
25264 | /* We use char because int might match the return type of a gcc2 | |
25265 | builtin and then its argument prototype would still apply. */ | |
25266 | char $ac_func (); | |
25267 | /* The GNU C library defines this for functions which it implements | |
25268 | to always fail with ENOSYS. Some functions are actually named | |
25269 | something starting with __ and the normal name is an alias. */ | |
25270 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25271 | choke me | |
25272 | #else | |
25273 | char (*f) () = $ac_func; | |
25274 | #endif | |
25275 | #ifdef __cplusplus | |
25276 | } | |
25277 | #endif | |
25278 | ||
25279 | int | |
25280 | main () | |
25281 | { | |
25282 | return f != $ac_func; | |
25283 | ; | |
25284 | return 0; | |
25285 | } | |
25286 | _ACEOF | |
25287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25289 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25290 | ac_status=$? |
ac1cb8d3 VS |
25291 | grep -v '^ *+' conftest.er1 >conftest.err |
25292 | rm -f conftest.er1 | |
25293 | cat conftest.err >&5 | |
a848cd7e SC |
25294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25295 | (exit $ac_status); } && | |
07158944 | 25296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25298 | (eval $ac_try) 2>&5 | |
25299 | ac_status=$? | |
25300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25301 | (exit $ac_status); }; } && | |
25302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25304 | (eval $ac_try) 2>&5 | |
25305 | ac_status=$? | |
25306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25307 | (exit $ac_status); }; }; then | |
25308 | eval "$as_ac_var=yes" | |
25309 | else | |
25310 | echo "$as_me: failed program was:" >&5 | |
25311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25312 | ||
25313 | eval "$as_ac_var=no" | |
25314 | fi | |
ac1cb8d3 VS |
25315 | rm -f conftest.err conftest.$ac_objext \ |
25316 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25317 | fi |
25318 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25319 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25320 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25321 | cat >>confdefs.h <<_ACEOF | |
25322 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25323 | _ACEOF | |
25324 | ||
25325 | fi | |
25326 | done | |
25327 | ||
25328 | fi | |
25329 | ||
25330 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
25331 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
25332 | ||
25333 | AFMINSTALL=afminstall | |
25334 | TOOLKIT=GTK | |
25335 | GUIDIST=GTK_DIST | |
25336 | ||
25337 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
25338 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
25339 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
25340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25341 | else | |
25342 | ac_check_lib_save_LIBS=$LIBS | |
25343 | LIBS="-lgdk $LIBS" | |
25344 | cat >conftest.$ac_ext <<_ACEOF | |
25345 | /* confdefs.h. */ | |
25346 | _ACEOF | |
25347 | cat confdefs.h >>conftest.$ac_ext | |
25348 | cat >>conftest.$ac_ext <<_ACEOF | |
25349 | /* end confdefs.h. */ | |
25350 | ||
25351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25352 | #ifdef __cplusplus | |
25353 | extern "C" | |
25354 | #endif | |
25355 | /* We use char because int might match the return type of a gcc2 | |
25356 | builtin and then its argument prototype would still apply. */ | |
25357 | char gdk_im_open (); | |
25358 | int | |
25359 | main () | |
25360 | { | |
25361 | gdk_im_open (); | |
25362 | ; | |
25363 | return 0; | |
25364 | } | |
25365 | _ACEOF | |
25366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25368 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25369 | ac_status=$? |
ac1cb8d3 VS |
25370 | grep -v '^ *+' conftest.er1 >conftest.err |
25371 | rm -f conftest.er1 | |
25372 | cat conftest.err >&5 | |
a848cd7e SC |
25373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25374 | (exit $ac_status); } && | |
07158944 | 25375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25377 | (eval $ac_try) 2>&5 | |
25378 | ac_status=$? | |
25379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25380 | (exit $ac_status); }; } && | |
25381 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25383 | (eval $ac_try) 2>&5 | |
25384 | ac_status=$? | |
25385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25386 | (exit $ac_status); }; }; then | |
25387 | ac_cv_lib_gdk_gdk_im_open=yes | |
25388 | else | |
25389 | echo "$as_me: failed program was:" >&5 | |
25390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25391 | ||
25392 | ac_cv_lib_gdk_gdk_im_open=no | |
25393 | fi | |
ac1cb8d3 VS |
25394 | rm -f conftest.err conftest.$ac_objext \ |
25395 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25396 | LIBS=$ac_check_lib_save_LIBS |
25397 | fi | |
25398 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
25399 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
25400 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
25401 | cat >>confdefs.h <<\_ACEOF | |
25402 | #define HAVE_XIM 1 | |
25403 | _ACEOF | |
25404 | ||
25405 | fi | |
25406 | ||
25407 | ||
25408 | ||
25409 | if test "$wxUSE_GPE" = "yes"; then | |
25410 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
25411 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
25412 | ||
25413 | ac_find_libraries= | |
25414 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25415 | do | |
25416 | for ac_extension in a so sl dylib; do | |
25417 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
25418 | ac_find_libraries=$ac_dir | |
25419 | break 2 | |
25420 | fi | |
25421 | done | |
25422 | done | |
25423 | ||
25424 | if test "$ac_find_libraries" != "" ; then | |
25425 | ||
25426 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25427 | result=$? | |
25428 | if test $result = 0; then | |
25429 | ac_path_to_link="" | |
25430 | else | |
25431 | ac_path_to_link=" -L$ac_find_libraries" | |
25432 | fi | |
25433 | ||
25434 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
25435 | WXGPE=1 | |
25436 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25437 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25438 | else | |
25439 | echo "$as_me:$LINENO: result: not found" >&5 | |
25440 | echo "${ECHO_T}not found" >&6 | |
25441 | fi | |
25442 | ||
25443 | fi | |
25444 | fi | |
25445 | ||
25446 | if test "$wxUSE_MGL" = 1; then | |
25447 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
25448 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
25449 | if test "x$MGL_ROOT" = x ; then | |
25450 | echo "$as_me:$LINENO: result: not found" >&5 | |
25451 | echo "${ECHO_T}not found" >&6 | |
25452 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
25453 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
25454 | { (exit 1); exit 1; }; } | |
25455 | else | |
25456 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
25457 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
25458 | fi | |
25459 | ||
25460 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
25461 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
25462 | case "${host}" in | |
25463 | *-*-linux* ) | |
25464 | if test "x$wxUSE_SHARED" = xyes ; then | |
25465 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
25466 | else | |
25467 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
25468 | fi | |
25469 | ;; | |
25470 | *-pc-msdosdjgpp ) | |
25471 | mgl_os_candidates="dos32/dj2" | |
25472 | ;; | |
25473 | *) | |
25474 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
25475 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
25476 | { (exit 1); exit 1; }; } | |
25477 | esac | |
25478 | ||
25479 | mgl_lib_type="" | |
25480 | mgl_os="" | |
25481 | ||
25482 | for mgl_os_i in $mgl_os_candidates ; do | |
25483 | if test "x$mgl_os" = x ; then | |
25484 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
25485 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
25486 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
25487 | mgl_lib_type=debug | |
25488 | mgl_os=$mgl_os_i | |
25489 | fi | |
25490 | fi | |
25491 | if test "x$mgl_lib_type" = x ; then | |
25492 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
25493 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
25494 | mgl_lib_type=release | |
25495 | mgl_os=$mgl_os_i | |
25496 | fi | |
25497 | fi | |
25498 | fi | |
25499 | done | |
25500 | ||
25501 | if test "x$mgl_os" = x ; then | |
25502 | echo "$as_me:$LINENO: result: not found" >&5 | |
25503 | echo "${ECHO_T}not found" >&6 | |
25504 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
25505 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
25506 | { (exit 1); exit 1; }; } | |
25507 | fi | |
25508 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
25509 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
25510 | ||
25511 | wxUSE_UNIVERSAL="yes" | |
25512 | ||
25513 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
25514 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
25515 | ||
25516 | AFMINSTALL=afminstall | |
25517 | TOOLKIT=MGL | |
25518 | GUIDIST=MGL_DIST | |
25519 | fi | |
25520 | ||
25521 | if test "$wxUSE_MICROWIN" = 1; then | |
25522 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
25523 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
25524 | if test "x$MICROWINDOWS" = x ; then | |
25525 | echo "$as_me:$LINENO: result: not found" >&5 | |
25526 | echo "${ECHO_T}not found" >&6 | |
25527 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
25528 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
25529 | { (exit 1); exit 1; }; } | |
25530 | else | |
25531 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
25532 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
25533 | fi | |
25534 | ||
25535 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
25536 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
25537 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
25538 | else | |
25539 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
25540 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
25541 | { (exit 1); exit 1; }; } | |
25542 | fi | |
25543 | ||
25544 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
25545 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
25546 | ||
25547 | wxUSE_UNIVERSAL="yes" | |
25548 | ||
25549 | AFMINSTALL=afminstall | |
25550 | TOOLKIT=MICROWIN | |
25551 | GUIDIST=MICROWIN_DIST | |
25552 | ||
25553 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
25554 | fi | |
25555 | ||
74b84332 | 25556 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
07158944 VZ |
25557 | |
25558 | if test "x$ac_path_x_has_been_run" != xyes; then | |
25559 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
25560 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25561 | ||
07158944 | 25562 | ac_path_x_has_been_run=yes |
a848cd7e SC |
25563 | |
25564 | # Check whether --with-x or --without-x was given. | |
25565 | if test "${with_x+set}" = set; then | |
25566 | withval="$with_x" | |
25567 | ||
25568 | fi; | |
25569 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
25570 | if test "x$with_x" = xno; then | |
25571 | # The user explicitly disabled X. | |
25572 | have_x=disabled | |
25573 | else | |
25574 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
25575 | # Both variables are already set. | |
25576 | have_x=yes | |
25577 | else | |
25578 | if test "${ac_cv_have_x+set}" = set; then | |
25579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25580 | else | |
25581 | # One or both of the vars are not set, and there is no cached value. | |
25582 | ac_x_includes=no ac_x_libraries=no | |
25583 | rm -fr conftest.dir | |
25584 | if mkdir conftest.dir; then | |
25585 | cd conftest.dir | |
25586 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
25587 | cat >Imakefile <<'_ACEOF' | |
25588 | acfindx: | |
25589 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
25590 | _ACEOF | |
25591 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
25592 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
25593 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
25594 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
25595 | for ac_extension in a so sl; do | |
25596 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
25597 | test -f $ac_im_libdir/libX11.$ac_extension; then |
25598 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
25599 | fi |
25600 | done | |
25601 | # Screen out bogus values from the imake configuration. They are | |
25602 | # bogus both because they are the default anyway, and because | |
25603 | # using them would break gcc on systems where it needs fixed includes. | |
25604 | case $ac_im_incroot in | |
25605 | /usr/include) ;; | |
25606 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
25607 | esac | |
25608 | case $ac_im_usrlibdir in | |
25609 | /usr/lib | /lib) ;; | |
25610 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
25611 | esac | |
25612 | fi | |
25613 | cd .. | |
25614 | rm -fr conftest.dir | |
25615 | fi | |
25616 | ||
25617 | # Standard set of common directories for X headers. | |
25618 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
25619 | ac_x_header_dirs=' | |
25620 | /usr/X11/include | |
25621 | /usr/X11R6/include | |
25622 | /usr/X11R5/include | |
25623 | /usr/X11R4/include | |
25624 | ||
25625 | /usr/include/X11 | |
25626 | /usr/include/X11R6 | |
25627 | /usr/include/X11R5 | |
25628 | /usr/include/X11R4 | |
25629 | ||
25630 | /usr/local/X11/include | |
25631 | /usr/local/X11R6/include | |
25632 | /usr/local/X11R5/include | |
25633 | /usr/local/X11R4/include | |
25634 | ||
25635 | /usr/local/include/X11 | |
25636 | /usr/local/include/X11R6 | |
25637 | /usr/local/include/X11R5 | |
25638 | /usr/local/include/X11R4 | |
25639 | ||
25640 | /usr/X386/include | |
25641 | /usr/x386/include | |
25642 | /usr/XFree86/include/X11 | |
25643 | ||
25644 | /usr/include | |
25645 | /usr/local/include | |
25646 | /usr/unsupported/include | |
25647 | /usr/athena/include | |
25648 | /usr/local/x11r5/include | |
25649 | /usr/lpp/Xamples/include | |
25650 | ||
25651 | /usr/openwin/include | |
25652 | /usr/openwin/share/include' | |
25653 | ||
25654 | if test "$ac_x_includes" = no; then | |
07158944 | 25655 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
25656 | # First, try using that file with no special directory specified. |
25657 | cat >conftest.$ac_ext <<_ACEOF | |
25658 | /* confdefs.h. */ | |
25659 | _ACEOF | |
25660 | cat confdefs.h >>conftest.$ac_ext | |
25661 | cat >>conftest.$ac_ext <<_ACEOF | |
25662 | /* end confdefs.h. */ | |
25663 | #include <X11/Intrinsic.h> | |
25664 | _ACEOF | |
25665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25667 | ac_status=$? | |
25668 | grep -v '^ *+' conftest.er1 >conftest.err | |
25669 | rm -f conftest.er1 | |
25670 | cat conftest.err >&5 | |
25671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25672 | (exit $ac_status); } >/dev/null; then | |
25673 | if test -s conftest.err; then | |
25674 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25675 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25676 | else |
25677 | ac_cpp_err= | |
25678 | fi | |
25679 | else | |
25680 | ac_cpp_err=yes | |
25681 | fi | |
25682 | if test -z "$ac_cpp_err"; then | |
25683 | # We can compile using X headers with no special include directory. | |
25684 | ac_x_includes= | |
25685 | else | |
25686 | echo "$as_me: failed program was:" >&5 | |
25687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25688 | ||
25689 | for ac_dir in $ac_x_header_dirs; do | |
25690 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
25691 | ac_x_includes=$ac_dir | |
25692 | break | |
25693 | fi | |
25694 | done | |
25695 | fi | |
25696 | rm -f conftest.err conftest.$ac_ext | |
25697 | fi # $ac_x_includes = no | |
25698 | ||
25699 | if test "$ac_x_libraries" = no; then | |
25700 | # Check for the libraries. | |
25701 | # See if we find them without any special options. | |
25702 | # Don't add to $LIBS permanently. | |
25703 | ac_save_LIBS=$LIBS | |
25704 | LIBS="-lXt $LIBS" | |
25705 | cat >conftest.$ac_ext <<_ACEOF | |
25706 | /* confdefs.h. */ | |
25707 | _ACEOF | |
25708 | cat confdefs.h >>conftest.$ac_ext | |
25709 | cat >>conftest.$ac_ext <<_ACEOF | |
25710 | /* end confdefs.h. */ | |
25711 | #include <X11/Intrinsic.h> | |
25712 | int | |
25713 | main () | |
25714 | { | |
25715 | XtMalloc (0) | |
25716 | ; | |
25717 | return 0; | |
25718 | } | |
25719 | _ACEOF | |
25720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25722 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25723 | ac_status=$? |
ac1cb8d3 VS |
25724 | grep -v '^ *+' conftest.er1 >conftest.err |
25725 | rm -f conftest.er1 | |
25726 | cat conftest.err >&5 | |
a848cd7e SC |
25727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25728 | (exit $ac_status); } && | |
07158944 | 25729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25731 | (eval $ac_try) 2>&5 | |
25732 | ac_status=$? | |
25733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25734 | (exit $ac_status); }; } && | |
25735 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25737 | (eval $ac_try) 2>&5 | |
25738 | ac_status=$? | |
25739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25740 | (exit $ac_status); }; }; then | |
25741 | LIBS=$ac_save_LIBS | |
25742 | # We can link X programs with no special library path. | |
25743 | ac_x_libraries= | |
25744 | else | |
25745 | echo "$as_me: failed program was:" >&5 | |
25746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25747 | ||
25748 | LIBS=$ac_save_LIBS | |
25749 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25750 | do | |
25751 | # Don't even attempt the hair of trying to link an X program! | |
25752 | for ac_extension in a so sl; do | |
25753 | if test -r $ac_dir/libXt.$ac_extension; then | |
25754 | ac_x_libraries=$ac_dir | |
25755 | break 2 | |
25756 | fi | |
25757 | done | |
25758 | done | |
25759 | fi | |
ac1cb8d3 VS |
25760 | rm -f conftest.err conftest.$ac_objext \ |
25761 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25762 | fi # $ac_x_libraries = no |
25763 | ||
25764 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25765 | # Didn't find X anywhere. Cache the known absence of X. | |
25766 | ac_cv_have_x="have_x=no" | |
25767 | else | |
25768 | # Record where we found X for the cache. | |
25769 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 25770 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
25771 | fi |
25772 | fi | |
25773 | ||
25774 | fi | |
25775 | eval "$ac_cv_have_x" | |
25776 | fi # $with_x != no | |
25777 | ||
25778 | if test "$have_x" != yes; then | |
25779 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
25780 | echo "${ECHO_T}$have_x" >&6 | |
25781 | no_x=yes | |
25782 | else | |
25783 | # If each of the values was on the command line, it overrides each guess. | |
25784 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
25785 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
25786 | # Update the cache value to reflect the command line values. | |
25787 | ac_cv_have_x="have_x=yes \ | |
25788 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
07158944 VZ |
25789 | # It might be that x_includes is empty (headers are found in the |
25790 | # standard search path. Then output the corresponding message | |
25791 | ac_out_x_includes=$x_includes | |
25792 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
25793 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
25794 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
25795 | fi |
25796 | ||
07158944 | 25797 | fi |
a848cd7e SC |
25798 | if test "$no_x" = yes; then |
25799 | # Not all programs may use this symbol, but it does not hurt to define it. | |
25800 | ||
25801 | cat >>confdefs.h <<\_ACEOF | |
25802 | #define X_DISPLAY_MISSING 1 | |
25803 | _ACEOF | |
25804 | ||
25805 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
25806 | else | |
25807 | if test -n "$x_includes"; then | |
25808 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
25809 | fi | |
25810 | ||
25811 | # It would also be nice to do this for all -L options, not just this one. | |
25812 | if test -n "$x_libraries"; then | |
25813 | X_LIBS="$X_LIBS -L$x_libraries" | |
25814 | # For Solaris; some versions of Sun CC require a space after -R and | |
25815 | # others require no space. Words are not sufficient . . . . | |
25816 | case `(uname -sr) 2>/dev/null` in | |
25817 | "SunOS 5"*) | |
25818 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
25819 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
25820 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
25821 | cat >conftest.$ac_ext <<_ACEOF | |
25822 | /* confdefs.h. */ | |
25823 | _ACEOF | |
25824 | cat confdefs.h >>conftest.$ac_ext | |
25825 | cat >>conftest.$ac_ext <<_ACEOF | |
25826 | /* end confdefs.h. */ | |
25827 | ||
25828 | int | |
25829 | main () | |
25830 | { | |
25831 | ||
25832 | ; | |
25833 | return 0; | |
25834 | } | |
25835 | _ACEOF | |
25836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25838 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25839 | ac_status=$? |
ac1cb8d3 VS |
25840 | grep -v '^ *+' conftest.er1 >conftest.err |
25841 | rm -f conftest.er1 | |
25842 | cat conftest.err >&5 | |
a848cd7e SC |
25843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25844 | (exit $ac_status); } && | |
07158944 | 25845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25847 | (eval $ac_try) 2>&5 | |
25848 | ac_status=$? | |
25849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25850 | (exit $ac_status); }; } && | |
25851 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25853 | (eval $ac_try) 2>&5 | |
25854 | ac_status=$? | |
25855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25856 | (exit $ac_status); }; }; then | |
25857 | ac_R_nospace=yes | |
25858 | else | |
25859 | echo "$as_me: failed program was:" >&5 | |
25860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25861 | ||
25862 | ac_R_nospace=no | |
25863 | fi | |
ac1cb8d3 VS |
25864 | rm -f conftest.err conftest.$ac_objext \ |
25865 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25866 | if test $ac_R_nospace = yes; then |
25867 | echo "$as_me:$LINENO: result: no" >&5 | |
25868 | echo "${ECHO_T}no" >&6 | |
25869 | X_LIBS="$X_LIBS -R$x_libraries" | |
25870 | else | |
25871 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
25872 | cat >conftest.$ac_ext <<_ACEOF | |
25873 | /* confdefs.h. */ | |
25874 | _ACEOF | |
25875 | cat confdefs.h >>conftest.$ac_ext | |
25876 | cat >>conftest.$ac_ext <<_ACEOF | |
25877 | /* end confdefs.h. */ | |
25878 | ||
25879 | int | |
25880 | main () | |
25881 | { | |
25882 | ||
25883 | ; | |
25884 | return 0; | |
25885 | } | |
25886 | _ACEOF | |
25887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25889 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25890 | ac_status=$? |
ac1cb8d3 VS |
25891 | grep -v '^ *+' conftest.er1 >conftest.err |
25892 | rm -f conftest.er1 | |
25893 | cat conftest.err >&5 | |
a848cd7e SC |
25894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25895 | (exit $ac_status); } && | |
07158944 | 25896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25898 | (eval $ac_try) 2>&5 | |
25899 | ac_status=$? | |
25900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25901 | (exit $ac_status); }; } && | |
25902 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25904 | (eval $ac_try) 2>&5 | |
25905 | ac_status=$? | |
25906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25907 | (exit $ac_status); }; }; then | |
25908 | ac_R_space=yes | |
25909 | else | |
25910 | echo "$as_me: failed program was:" >&5 | |
25911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25912 | ||
25913 | ac_R_space=no | |
25914 | fi | |
ac1cb8d3 VS |
25915 | rm -f conftest.err conftest.$ac_objext \ |
25916 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25917 | if test $ac_R_space = yes; then |
25918 | echo "$as_me:$LINENO: result: yes" >&5 | |
25919 | echo "${ECHO_T}yes" >&6 | |
25920 | X_LIBS="$X_LIBS -R $x_libraries" | |
25921 | else | |
25922 | echo "$as_me:$LINENO: result: neither works" >&5 | |
25923 | echo "${ECHO_T}neither works" >&6 | |
25924 | fi | |
25925 | fi | |
25926 | LIBS=$ac_xsave_LIBS | |
25927 | esac | |
25928 | fi | |
25929 | ||
25930 | # Check for system-dependent libraries X programs must link with. | |
25931 | # Do this before checking for the system-independent R6 libraries | |
25932 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
25933 | ||
25934 | if test "$ISC" = yes; then | |
25935 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
25936 | else | |
25937 | # Martyn Johnson says this is needed for Ultrix, if the X | |
25938 | # libraries were built with DECnet support. And Karl Berry says | |
25939 | # the Alpha needs dnet_stub (dnet does not exist). | |
25940 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
25941 | cat >conftest.$ac_ext <<_ACEOF | |
25942 | /* confdefs.h. */ | |
25943 | _ACEOF | |
25944 | cat confdefs.h >>conftest.$ac_ext | |
25945 | cat >>conftest.$ac_ext <<_ACEOF | |
25946 | /* end confdefs.h. */ | |
25947 | ||
25948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25949 | #ifdef __cplusplus | |
25950 | extern "C" | |
25951 | #endif | |
25952 | /* We use char because int might match the return type of a gcc2 | |
25953 | builtin and then its argument prototype would still apply. */ | |
25954 | char XOpenDisplay (); | |
25955 | int | |
25956 | main () | |
25957 | { | |
25958 | XOpenDisplay (); | |
25959 | ; | |
25960 | return 0; | |
25961 | } | |
25962 | _ACEOF | |
25963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25965 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25966 | ac_status=$? |
ac1cb8d3 VS |
25967 | grep -v '^ *+' conftest.er1 >conftest.err |
25968 | rm -f conftest.er1 | |
25969 | cat conftest.err >&5 | |
a848cd7e SC |
25970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25971 | (exit $ac_status); } && | |
07158944 | 25972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25974 | (eval $ac_try) 2>&5 | |
25975 | ac_status=$? | |
25976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25977 | (exit $ac_status); }; } && | |
25978 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25980 | (eval $ac_try) 2>&5 | |
25981 | ac_status=$? | |
25982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25983 | (exit $ac_status); }; }; then | |
25984 | : | |
25985 | else | |
25986 | echo "$as_me: failed program was:" >&5 | |
25987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25988 | ||
25989 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
25990 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25991 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25993 | else | |
25994 | ac_check_lib_save_LIBS=$LIBS | |
25995 | LIBS="-ldnet $LIBS" | |
25996 | cat >conftest.$ac_ext <<_ACEOF | |
25997 | /* confdefs.h. */ | |
25998 | _ACEOF | |
25999 | cat confdefs.h >>conftest.$ac_ext | |
26000 | cat >>conftest.$ac_ext <<_ACEOF | |
26001 | /* end confdefs.h. */ | |
26002 | ||
26003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26004 | #ifdef __cplusplus | |
26005 | extern "C" | |
26006 | #endif | |
26007 | /* We use char because int might match the return type of a gcc2 | |
26008 | builtin and then its argument prototype would still apply. */ | |
26009 | char dnet_ntoa (); | |
26010 | int | |
26011 | main () | |
26012 | { | |
26013 | dnet_ntoa (); | |
26014 | ; | |
26015 | return 0; | |
26016 | } | |
26017 | _ACEOF | |
26018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26020 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26021 | ac_status=$? |
ac1cb8d3 VS |
26022 | grep -v '^ *+' conftest.er1 >conftest.err |
26023 | rm -f conftest.er1 | |
26024 | cat conftest.err >&5 | |
a848cd7e SC |
26025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26026 | (exit $ac_status); } && | |
07158944 | 26027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26029 | (eval $ac_try) 2>&5 | |
26030 | ac_status=$? | |
26031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26032 | (exit $ac_status); }; } && | |
26033 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26035 | (eval $ac_try) 2>&5 | |
26036 | ac_status=$? | |
26037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26038 | (exit $ac_status); }; }; then | |
26039 | ac_cv_lib_dnet_dnet_ntoa=yes | |
26040 | else | |
26041 | echo "$as_me: failed program was:" >&5 | |
26042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26043 | ||
26044 | ac_cv_lib_dnet_dnet_ntoa=no | |
26045 | fi | |
ac1cb8d3 VS |
26046 | rm -f conftest.err conftest.$ac_objext \ |
26047 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26048 | LIBS=$ac_check_lib_save_LIBS |
26049 | fi | |
26050 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
26051 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
26052 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
26053 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
26054 | fi | |
26055 | ||
26056 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
26057 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
26058 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
26059 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
26060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26061 | else | |
26062 | ac_check_lib_save_LIBS=$LIBS | |
26063 | LIBS="-ldnet_stub $LIBS" | |
26064 | cat >conftest.$ac_ext <<_ACEOF | |
26065 | /* confdefs.h. */ | |
26066 | _ACEOF | |
26067 | cat confdefs.h >>conftest.$ac_ext | |
26068 | cat >>conftest.$ac_ext <<_ACEOF | |
26069 | /* end confdefs.h. */ | |
26070 | ||
26071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26072 | #ifdef __cplusplus | |
26073 | extern "C" | |
26074 | #endif | |
26075 | /* We use char because int might match the return type of a gcc2 | |
26076 | builtin and then its argument prototype would still apply. */ | |
26077 | char dnet_ntoa (); | |
26078 | int | |
26079 | main () | |
26080 | { | |
26081 | dnet_ntoa (); | |
26082 | ; | |
26083 | return 0; | |
26084 | } | |
26085 | _ACEOF | |
26086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26088 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26089 | ac_status=$? |
ac1cb8d3 VS |
26090 | grep -v '^ *+' conftest.er1 >conftest.err |
26091 | rm -f conftest.er1 | |
26092 | cat conftest.err >&5 | |
a848cd7e SC |
26093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26094 | (exit $ac_status); } && | |
07158944 | 26095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26097 | (eval $ac_try) 2>&5 | |
26098 | ac_status=$? | |
26099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26100 | (exit $ac_status); }; } && | |
26101 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26103 | (eval $ac_try) 2>&5 | |
26104 | ac_status=$? | |
26105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26106 | (exit $ac_status); }; }; then | |
26107 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
26108 | else | |
26109 | echo "$as_me: failed program was:" >&5 | |
26110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26111 | ||
26112 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
26113 | fi | |
ac1cb8d3 VS |
26114 | rm -f conftest.err conftest.$ac_objext \ |
26115 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26116 | LIBS=$ac_check_lib_save_LIBS |
26117 | fi | |
26118 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
26119 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
26120 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
26121 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
26122 | fi | |
26123 | ||
26124 | fi | |
26125 | fi | |
ac1cb8d3 VS |
26126 | rm -f conftest.err conftest.$ac_objext \ |
26127 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26128 | LIBS="$ac_xsave_LIBS" |
26129 | ||
26130 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
26131 | # to get the SysV transport functions. | |
26132 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
26133 | # needs -lnsl. | |
26134 | # The nsl library prevents programs from opening the X display | |
26135 | # on Irix 5.2, according to T.E. Dickey. | |
26136 | # The functions gethostbyname, getservbyname, and inet_addr are | |
26137 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
26138 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
26139 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
26140 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
26141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26142 | else | |
26143 | cat >conftest.$ac_ext <<_ACEOF | |
26144 | /* confdefs.h. */ | |
26145 | _ACEOF | |
26146 | cat confdefs.h >>conftest.$ac_ext | |
26147 | cat >>conftest.$ac_ext <<_ACEOF | |
26148 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26149 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
26150 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26151 | #define gethostbyname innocuous_gethostbyname | |
26152 | ||
a848cd7e SC |
26153 | /* System header to define __stub macros and hopefully few prototypes, |
26154 | which can conflict with char gethostbyname (); below. | |
26155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26156 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26157 | |
a848cd7e SC |
26158 | #ifdef __STDC__ |
26159 | # include <limits.h> | |
26160 | #else | |
26161 | # include <assert.h> | |
26162 | #endif | |
ac1cb8d3 VS |
26163 | |
26164 | #undef gethostbyname | |
26165 | ||
a848cd7e SC |
26166 | /* Override any gcc2 internal prototype to avoid an error. */ |
26167 | #ifdef __cplusplus | |
26168 | extern "C" | |
26169 | { | |
26170 | #endif | |
26171 | /* We use char because int might match the return type of a gcc2 | |
26172 | builtin and then its argument prototype would still apply. */ | |
26173 | char gethostbyname (); | |
26174 | /* The GNU C library defines this for functions which it implements | |
26175 | to always fail with ENOSYS. Some functions are actually named | |
26176 | something starting with __ and the normal name is an alias. */ | |
26177 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
26178 | choke me | |
26179 | #else | |
26180 | char (*f) () = gethostbyname; | |
26181 | #endif | |
26182 | #ifdef __cplusplus | |
26183 | } | |
26184 | #endif | |
26185 | ||
26186 | int | |
26187 | main () | |
26188 | { | |
26189 | return f != gethostbyname; | |
26190 | ; | |
26191 | return 0; | |
26192 | } | |
26193 | _ACEOF | |
26194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26196 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26197 | ac_status=$? |
ac1cb8d3 VS |
26198 | grep -v '^ *+' conftest.er1 >conftest.err |
26199 | rm -f conftest.er1 | |
26200 | cat conftest.err >&5 | |
a848cd7e SC |
26201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26202 | (exit $ac_status); } && | |
07158944 | 26203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26205 | (eval $ac_try) 2>&5 | |
26206 | ac_status=$? | |
26207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26208 | (exit $ac_status); }; } && | |
26209 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26211 | (eval $ac_try) 2>&5 | |
26212 | ac_status=$? | |
26213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26214 | (exit $ac_status); }; }; then | |
26215 | ac_cv_func_gethostbyname=yes | |
26216 | else | |
26217 | echo "$as_me: failed program was:" >&5 | |
26218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26219 | ||
26220 | ac_cv_func_gethostbyname=no | |
26221 | fi | |
ac1cb8d3 VS |
26222 | rm -f conftest.err conftest.$ac_objext \ |
26223 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26224 | fi |
26225 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
26226 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
26227 | ||
26228 | if test $ac_cv_func_gethostbyname = no; then | |
26229 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
26230 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
26231 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
26232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26233 | else | |
26234 | ac_check_lib_save_LIBS=$LIBS | |
26235 | LIBS="-lnsl $LIBS" | |
26236 | cat >conftest.$ac_ext <<_ACEOF | |
26237 | /* confdefs.h. */ | |
26238 | _ACEOF | |
26239 | cat confdefs.h >>conftest.$ac_ext | |
26240 | cat >>conftest.$ac_ext <<_ACEOF | |
26241 | /* end confdefs.h. */ | |
26242 | ||
26243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26244 | #ifdef __cplusplus | |
26245 | extern "C" | |
26246 | #endif | |
26247 | /* We use char because int might match the return type of a gcc2 | |
26248 | builtin and then its argument prototype would still apply. */ | |
26249 | char gethostbyname (); | |
26250 | int | |
26251 | main () | |
26252 | { | |
26253 | gethostbyname (); | |
26254 | ; | |
26255 | return 0; | |
26256 | } | |
26257 | _ACEOF | |
26258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
26260 | (eval $ac_link) 2>conftest.er1 |
26261 | ac_status=$? | |
26262 | grep -v '^ *+' conftest.er1 >conftest.err | |
26263 | rm -f conftest.er1 | |
26264 | cat conftest.err >&5 | |
26265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26266 | (exit $ac_status); } && | |
07158944 | 26267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26269 | (eval $ac_try) 2>&5 | |
26270 | ac_status=$? | |
26271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26272 | (exit $ac_status); }; } && | |
26273 | { ac_try='test -s conftest$ac_exeext' | |
26274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26275 | (eval $ac_try) 2>&5 | |
26276 | ac_status=$? | |
26277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26278 | (exit $ac_status); }; }; then | |
26279 | ac_cv_lib_nsl_gethostbyname=yes | |
26280 | else | |
26281 | echo "$as_me: failed program was:" >&5 | |
26282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26283 | ||
26284 | ac_cv_lib_nsl_gethostbyname=no | |
26285 | fi | |
26286 | rm -f conftest.err conftest.$ac_objext \ | |
26287 | conftest$ac_exeext conftest.$ac_ext | |
26288 | LIBS=$ac_check_lib_save_LIBS | |
26289 | fi | |
26290 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
26291 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
26292 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
26293 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
26294 | fi | |
26295 | ||
26296 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
26297 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
26298 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
26299 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
26300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26301 | else | |
26302 | ac_check_lib_save_LIBS=$LIBS | |
26303 | LIBS="-lbsd $LIBS" | |
26304 | cat >conftest.$ac_ext <<_ACEOF | |
26305 | /* confdefs.h. */ | |
26306 | _ACEOF | |
26307 | cat confdefs.h >>conftest.$ac_ext | |
26308 | cat >>conftest.$ac_ext <<_ACEOF | |
26309 | /* end confdefs.h. */ | |
26310 | ||
26311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26312 | #ifdef __cplusplus | |
26313 | extern "C" | |
26314 | #endif | |
26315 | /* We use char because int might match the return type of a gcc2 | |
26316 | builtin and then its argument prototype would still apply. */ | |
26317 | char gethostbyname (); | |
26318 | int | |
26319 | main () | |
26320 | { | |
26321 | gethostbyname (); | |
26322 | ; | |
26323 | return 0; | |
26324 | } | |
26325 | _ACEOF | |
26326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26328 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 26329 | ac_status=$? |
ac1cb8d3 VS |
26330 | grep -v '^ *+' conftest.er1 >conftest.err |
26331 | rm -f conftest.er1 | |
26332 | cat conftest.err >&5 | |
a848cd7e SC |
26333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26334 | (exit $ac_status); } && | |
07158944 | 26335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
26336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26337 | (eval $ac_try) 2>&5 | |
26338 | ac_status=$? | |
26339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
26340 | (exit $ac_status); }; } && |
26341 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26343 | (eval $ac_try) 2>&5 | |
26344 | ac_status=$? | |
26345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26346 | (exit $ac_status); }; }; then | |
26347 | ac_cv_lib_bsd_gethostbyname=yes | |
26348 | else | |
26349 | echo "$as_me: failed program was:" >&5 | |
26350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26351 | ||
26352 | ac_cv_lib_bsd_gethostbyname=no | |
26353 | fi | |
ac1cb8d3 VS |
26354 | rm -f conftest.err conftest.$ac_objext \ |
26355 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26356 | LIBS=$ac_check_lib_save_LIBS |
26357 | fi | |
26358 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
26359 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
26360 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
26361 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
26362 | fi | |
26363 | ||
26364 | fi | |
26365 | fi | |
26366 | ||
26367 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
26368 | # socket/setsockopt and other routines are undefined under SCO ODT | |
26369 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
26370 | # on later versions), says Simon Leinen: it contains gethostby* | |
26371 | # variants that don't use the name server (or something). -lsocket | |
26372 | # must be given before -lnsl if both are needed. We assume that | |
26373 | # if connect needs -lnsl, so does gethostbyname. | |
26374 | echo "$as_me:$LINENO: checking for connect" >&5 | |
26375 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
26376 | if test "${ac_cv_func_connect+set}" = set; then | |
26377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26378 | else | |
26379 | cat >conftest.$ac_ext <<_ACEOF | |
26380 | /* confdefs.h. */ | |
26381 | _ACEOF | |
26382 | cat confdefs.h >>conftest.$ac_ext | |
26383 | cat >>conftest.$ac_ext <<_ACEOF | |
26384 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26385 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
26386 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26387 | #define connect innocuous_connect | |
26388 | ||
a848cd7e SC |
26389 | /* System header to define __stub macros and hopefully few prototypes, |
26390 | which can conflict with char connect (); below. | |
26391 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26392 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26393 | |
a848cd7e SC |
26394 | #ifdef __STDC__ |
26395 | # include <limits.h> | |
26396 | #else | |
26397 | # include <assert.h> | |
26398 | #endif | |
ac1cb8d3 VS |
26399 | |
26400 | #undef connect | |
26401 | ||
a848cd7e SC |
26402 | /* Override any gcc2 internal prototype to avoid an error. */ |
26403 | #ifdef __cplusplus | |
26404 | extern "C" | |
26405 | { | |
26406 | #endif | |
26407 | /* We use char because int might match the return type of a gcc2 | |
26408 | builtin and then its argument prototype would still apply. */ | |
26409 | char connect (); | |
26410 | /* The GNU C library defines this for functions which it implements | |
26411 | to always fail with ENOSYS. Some functions are actually named | |
26412 | something starting with __ and the normal name is an alias. */ | |
26413 | #if defined (__stub_connect) || defined (__stub___connect) | |
26414 | choke me | |
26415 | #else | |
26416 | char (*f) () = connect; | |
26417 | #endif | |
26418 | #ifdef __cplusplus | |
26419 | } | |
26420 | #endif | |
26421 | ||
26422 | int | |
26423 | main () | |
26424 | { | |
26425 | return f != connect; | |
26426 | ; | |
26427 | return 0; | |
26428 | } | |
26429 | _ACEOF | |
26430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26432 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26433 | ac_status=$? |
ac1cb8d3 VS |
26434 | grep -v '^ *+' conftest.er1 >conftest.err |
26435 | rm -f conftest.er1 | |
26436 | cat conftest.err >&5 | |
a848cd7e SC |
26437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26438 | (exit $ac_status); } && | |
07158944 | 26439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26441 | (eval $ac_try) 2>&5 | |
26442 | ac_status=$? | |
26443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26444 | (exit $ac_status); }; } && | |
26445 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26447 | (eval $ac_try) 2>&5 | |
26448 | ac_status=$? | |
26449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26450 | (exit $ac_status); }; }; then | |
26451 | ac_cv_func_connect=yes | |
26452 | else | |
26453 | echo "$as_me: failed program was:" >&5 | |
26454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26455 | ||
26456 | ac_cv_func_connect=no | |
26457 | fi | |
ac1cb8d3 VS |
26458 | rm -f conftest.err conftest.$ac_objext \ |
26459 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26460 | fi |
26461 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
26462 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
26463 | ||
26464 | if test $ac_cv_func_connect = no; then | |
26465 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
26466 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
26467 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
26468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26469 | else | |
26470 | ac_check_lib_save_LIBS=$LIBS | |
26471 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
26472 | cat >conftest.$ac_ext <<_ACEOF | |
26473 | /* confdefs.h. */ | |
26474 | _ACEOF | |
26475 | cat confdefs.h >>conftest.$ac_ext | |
26476 | cat >>conftest.$ac_ext <<_ACEOF | |
26477 | /* end confdefs.h. */ | |
26478 | ||
26479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26480 | #ifdef __cplusplus | |
26481 | extern "C" | |
26482 | #endif | |
26483 | /* We use char because int might match the return type of a gcc2 | |
26484 | builtin and then its argument prototype would still apply. */ | |
26485 | char connect (); | |
26486 | int | |
26487 | main () | |
26488 | { | |
26489 | connect (); | |
26490 | ; | |
26491 | return 0; | |
26492 | } | |
26493 | _ACEOF | |
26494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26496 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26497 | ac_status=$? |
ac1cb8d3 VS |
26498 | grep -v '^ *+' conftest.er1 >conftest.err |
26499 | rm -f conftest.er1 | |
26500 | cat conftest.err >&5 | |
a848cd7e SC |
26501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26502 | (exit $ac_status); } && | |
07158944 | 26503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26505 | (eval $ac_try) 2>&5 | |
26506 | ac_status=$? | |
26507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26508 | (exit $ac_status); }; } && | |
26509 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26511 | (eval $ac_try) 2>&5 | |
26512 | ac_status=$? | |
26513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26514 | (exit $ac_status); }; }; then | |
26515 | ac_cv_lib_socket_connect=yes | |
26516 | else | |
26517 | echo "$as_me: failed program was:" >&5 | |
26518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26519 | ||
26520 | ac_cv_lib_socket_connect=no | |
26521 | fi | |
ac1cb8d3 VS |
26522 | rm -f conftest.err conftest.$ac_objext \ |
26523 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26524 | LIBS=$ac_check_lib_save_LIBS |
26525 | fi | |
26526 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
26527 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
26528 | if test $ac_cv_lib_socket_connect = yes; then | |
26529 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
26530 | fi | |
26531 | ||
26532 | fi | |
26533 | ||
26534 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
26535 | echo "$as_me:$LINENO: checking for remove" >&5 | |
26536 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
26537 | if test "${ac_cv_func_remove+set}" = set; then | |
26538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26539 | else | |
26540 | cat >conftest.$ac_ext <<_ACEOF | |
26541 | /* confdefs.h. */ | |
26542 | _ACEOF | |
26543 | cat confdefs.h >>conftest.$ac_ext | |
26544 | cat >>conftest.$ac_ext <<_ACEOF | |
26545 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26546 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
26547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26548 | #define remove innocuous_remove | |
26549 | ||
a848cd7e SC |
26550 | /* System header to define __stub macros and hopefully few prototypes, |
26551 | which can conflict with char remove (); below. | |
26552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26553 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26554 | |
a848cd7e SC |
26555 | #ifdef __STDC__ |
26556 | # include <limits.h> | |
26557 | #else | |
26558 | # include <assert.h> | |
26559 | #endif | |
ac1cb8d3 VS |
26560 | |
26561 | #undef remove | |
26562 | ||
a848cd7e SC |
26563 | /* Override any gcc2 internal prototype to avoid an error. */ |
26564 | #ifdef __cplusplus | |
26565 | extern "C" | |
26566 | { | |
26567 | #endif | |
26568 | /* We use char because int might match the return type of a gcc2 | |
26569 | builtin and then its argument prototype would still apply. */ | |
26570 | char remove (); | |
26571 | /* The GNU C library defines this for functions which it implements | |
26572 | to always fail with ENOSYS. Some functions are actually named | |
26573 | something starting with __ and the normal name is an alias. */ | |
26574 | #if defined (__stub_remove) || defined (__stub___remove) | |
26575 | choke me | |
26576 | #else | |
26577 | char (*f) () = remove; | |
26578 | #endif | |
26579 | #ifdef __cplusplus | |
26580 | } | |
26581 | #endif | |
26582 | ||
26583 | int | |
26584 | main () | |
26585 | { | |
26586 | return f != remove; | |
26587 | ; | |
26588 | return 0; | |
26589 | } | |
26590 | _ACEOF | |
26591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26593 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26594 | ac_status=$? |
ac1cb8d3 VS |
26595 | grep -v '^ *+' conftest.er1 >conftest.err |
26596 | rm -f conftest.er1 | |
26597 | cat conftest.err >&5 | |
a848cd7e SC |
26598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26599 | (exit $ac_status); } && | |
07158944 | 26600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26602 | (eval $ac_try) 2>&5 | |
26603 | ac_status=$? | |
26604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26605 | (exit $ac_status); }; } && | |
26606 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26608 | (eval $ac_try) 2>&5 | |
26609 | ac_status=$? | |
26610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26611 | (exit $ac_status); }; }; then | |
26612 | ac_cv_func_remove=yes | |
26613 | else | |
26614 | echo "$as_me: failed program was:" >&5 | |
26615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26616 | ||
26617 | ac_cv_func_remove=no | |
26618 | fi | |
ac1cb8d3 VS |
26619 | rm -f conftest.err conftest.$ac_objext \ |
26620 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26621 | fi |
26622 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
26623 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
26624 | ||
26625 | if test $ac_cv_func_remove = no; then | |
26626 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
26627 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
26628 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
26629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26630 | else | |
26631 | ac_check_lib_save_LIBS=$LIBS | |
26632 | LIBS="-lposix $LIBS" | |
26633 | cat >conftest.$ac_ext <<_ACEOF | |
26634 | /* confdefs.h. */ | |
26635 | _ACEOF | |
26636 | cat confdefs.h >>conftest.$ac_ext | |
26637 | cat >>conftest.$ac_ext <<_ACEOF | |
26638 | /* end confdefs.h. */ | |
26639 | ||
26640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26641 | #ifdef __cplusplus | |
26642 | extern "C" | |
26643 | #endif | |
26644 | /* We use char because int might match the return type of a gcc2 | |
26645 | builtin and then its argument prototype would still apply. */ | |
26646 | char remove (); | |
26647 | int | |
26648 | main () | |
26649 | { | |
26650 | remove (); | |
26651 | ; | |
26652 | return 0; | |
26653 | } | |
26654 | _ACEOF | |
26655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26657 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26658 | ac_status=$? |
ac1cb8d3 VS |
26659 | grep -v '^ *+' conftest.er1 >conftest.err |
26660 | rm -f conftest.er1 | |
26661 | cat conftest.err >&5 | |
a848cd7e SC |
26662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26663 | (exit $ac_status); } && | |
07158944 | 26664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26666 | (eval $ac_try) 2>&5 | |
26667 | ac_status=$? | |
26668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26669 | (exit $ac_status); }; } && | |
26670 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26672 | (eval $ac_try) 2>&5 | |
26673 | ac_status=$? | |
26674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26675 | (exit $ac_status); }; }; then | |
26676 | ac_cv_lib_posix_remove=yes | |
26677 | else | |
26678 | echo "$as_me: failed program was:" >&5 | |
26679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26680 | ||
26681 | ac_cv_lib_posix_remove=no | |
26682 | fi | |
ac1cb8d3 VS |
26683 | rm -f conftest.err conftest.$ac_objext \ |
26684 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26685 | LIBS=$ac_check_lib_save_LIBS |
26686 | fi | |
26687 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
26688 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
26689 | if test $ac_cv_lib_posix_remove = yes; then | |
26690 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
26691 | fi | |
26692 | ||
26693 | fi | |
26694 | ||
26695 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
26696 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
26697 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
26698 | if test "${ac_cv_func_shmat+set}" = set; then | |
26699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26700 | else | |
26701 | cat >conftest.$ac_ext <<_ACEOF | |
26702 | /* confdefs.h. */ | |
26703 | _ACEOF | |
26704 | cat confdefs.h >>conftest.$ac_ext | |
26705 | cat >>conftest.$ac_ext <<_ACEOF | |
26706 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26707 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
26708 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26709 | #define shmat innocuous_shmat | |
26710 | ||
a848cd7e SC |
26711 | /* System header to define __stub macros and hopefully few prototypes, |
26712 | which can conflict with char shmat (); below. | |
26713 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26714 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26715 | |
a848cd7e SC |
26716 | #ifdef __STDC__ |
26717 | # include <limits.h> | |
26718 | #else | |
26719 | # include <assert.h> | |
26720 | #endif | |
ac1cb8d3 VS |
26721 | |
26722 | #undef shmat | |
26723 | ||
a848cd7e SC |
26724 | /* Override any gcc2 internal prototype to avoid an error. */ |
26725 | #ifdef __cplusplus | |
26726 | extern "C" | |
26727 | { | |
26728 | #endif | |
26729 | /* We use char because int might match the return type of a gcc2 | |
26730 | builtin and then its argument prototype would still apply. */ | |
26731 | char shmat (); | |
26732 | /* The GNU C library defines this for functions which it implements | |
26733 | to always fail with ENOSYS. Some functions are actually named | |
26734 | something starting with __ and the normal name is an alias. */ | |
26735 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
26736 | choke me | |
26737 | #else | |
26738 | char (*f) () = shmat; | |
26739 | #endif | |
26740 | #ifdef __cplusplus | |
26741 | } | |
26742 | #endif | |
26743 | ||
26744 | int | |
26745 | main () | |
26746 | { | |
26747 | return f != shmat; | |
26748 | ; | |
26749 | return 0; | |
26750 | } | |
26751 | _ACEOF | |
26752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26754 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26755 | ac_status=$? |
ac1cb8d3 VS |
26756 | grep -v '^ *+' conftest.er1 >conftest.err |
26757 | rm -f conftest.er1 | |
26758 | cat conftest.err >&5 | |
a848cd7e SC |
26759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26760 | (exit $ac_status); } && | |
07158944 | 26761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26763 | (eval $ac_try) 2>&5 | |
26764 | ac_status=$? | |
26765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26766 | (exit $ac_status); }; } && | |
26767 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26769 | (eval $ac_try) 2>&5 | |
26770 | ac_status=$? | |
26771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26772 | (exit $ac_status); }; }; then | |
26773 | ac_cv_func_shmat=yes | |
26774 | else | |
26775 | echo "$as_me: failed program was:" >&5 | |
26776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26777 | ||
26778 | ac_cv_func_shmat=no | |
26779 | fi | |
ac1cb8d3 VS |
26780 | rm -f conftest.err conftest.$ac_objext \ |
26781 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26782 | fi |
26783 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
26784 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
26785 | ||
26786 | if test $ac_cv_func_shmat = no; then | |
26787 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
26788 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
26789 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
26790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26791 | else | |
26792 | ac_check_lib_save_LIBS=$LIBS | |
26793 | LIBS="-lipc $LIBS" | |
26794 | cat >conftest.$ac_ext <<_ACEOF | |
26795 | /* confdefs.h. */ | |
26796 | _ACEOF | |
26797 | cat confdefs.h >>conftest.$ac_ext | |
26798 | cat >>conftest.$ac_ext <<_ACEOF | |
26799 | /* end confdefs.h. */ | |
26800 | ||
26801 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26802 | #ifdef __cplusplus | |
26803 | extern "C" | |
26804 | #endif | |
26805 | /* We use char because int might match the return type of a gcc2 | |
26806 | builtin and then its argument prototype would still apply. */ | |
26807 | char shmat (); | |
26808 | int | |
26809 | main () | |
26810 | { | |
26811 | shmat (); | |
26812 | ; | |
26813 | return 0; | |
26814 | } | |
26815 | _ACEOF | |
26816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26818 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26819 | ac_status=$? |
ac1cb8d3 VS |
26820 | grep -v '^ *+' conftest.er1 >conftest.err |
26821 | rm -f conftest.er1 | |
26822 | cat conftest.err >&5 | |
a848cd7e SC |
26823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26824 | (exit $ac_status); } && | |
07158944 | 26825 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26827 | (eval $ac_try) 2>&5 | |
26828 | ac_status=$? | |
26829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26830 | (exit $ac_status); }; } && | |
26831 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26833 | (eval $ac_try) 2>&5 | |
26834 | ac_status=$? | |
26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26836 | (exit $ac_status); }; }; then | |
26837 | ac_cv_lib_ipc_shmat=yes | |
26838 | else | |
26839 | echo "$as_me: failed program was:" >&5 | |
26840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26841 | ||
26842 | ac_cv_lib_ipc_shmat=no | |
26843 | fi | |
ac1cb8d3 VS |
26844 | rm -f conftest.err conftest.$ac_objext \ |
26845 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26846 | LIBS=$ac_check_lib_save_LIBS |
26847 | fi | |
26848 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
26849 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
26850 | if test $ac_cv_lib_ipc_shmat = yes; then | |
26851 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
26852 | fi | |
26853 | ||
26854 | fi | |
26855 | fi | |
26856 | ||
26857 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
26858 | ac_save_LDFLAGS=$LDFLAGS | |
26859 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
26860 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
26861 | # check for ICE first), but we must link in the order -lSM -lICE or | |
26862 | # we get undefined symbols. So assume we have SM if we have ICE. | |
26863 | # These have to be linked with before -lX11, unlike the other | |
26864 | # libraries we check for below, so use a different variable. | |
26865 | # John Interrante, Karl Berry | |
26866 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
26867 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
26868 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
26869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26870 | else | |
26871 | ac_check_lib_save_LIBS=$LIBS | |
26872 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
26873 | cat >conftest.$ac_ext <<_ACEOF | |
26874 | /* confdefs.h. */ | |
26875 | _ACEOF | |
26876 | cat confdefs.h >>conftest.$ac_ext | |
26877 | cat >>conftest.$ac_ext <<_ACEOF | |
26878 | /* end confdefs.h. */ | |
26879 | ||
26880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26881 | #ifdef __cplusplus | |
26882 | extern "C" | |
26883 | #endif | |
26884 | /* We use char because int might match the return type of a gcc2 | |
26885 | builtin and then its argument prototype would still apply. */ | |
26886 | char IceConnectionNumber (); | |
26887 | int | |
26888 | main () | |
26889 | { | |
26890 | IceConnectionNumber (); | |
26891 | ; | |
26892 | return 0; | |
26893 | } | |
26894 | _ACEOF | |
26895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26898 | ac_status=$? |
ac1cb8d3 VS |
26899 | grep -v '^ *+' conftest.er1 >conftest.err |
26900 | rm -f conftest.er1 | |
26901 | cat conftest.err >&5 | |
a848cd7e SC |
26902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26903 | (exit $ac_status); } && | |
07158944 | 26904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26906 | (eval $ac_try) 2>&5 | |
26907 | ac_status=$? | |
26908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26909 | (exit $ac_status); }; } && | |
26910 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26912 | (eval $ac_try) 2>&5 | |
26913 | ac_status=$? | |
26914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26915 | (exit $ac_status); }; }; then | |
26916 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
26917 | else | |
26918 | echo "$as_me: failed program was:" >&5 | |
26919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26920 | ||
26921 | ac_cv_lib_ICE_IceConnectionNumber=no | |
26922 | fi | |
ac1cb8d3 VS |
26923 | rm -f conftest.err conftest.$ac_objext \ |
26924 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26925 | LIBS=$ac_check_lib_save_LIBS |
26926 | fi | |
26927 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
26928 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
26929 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
26930 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
26931 | fi | |
26932 | ||
26933 | LDFLAGS=$ac_save_LDFLAGS | |
26934 | ||
26935 | fi | |
26936 | ||
26937 | ||
26938 | if test "$no_x" = "yes"; then | |
26939 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
26940 | echo "$as_me: error: X11 not found" >&2;} | |
26941 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
26942 | fi | |
26943 | ||
74b84332 VS |
26944 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
26945 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
26946 | AFMINSTALL=afminstall |
26947 | COMPILED_X_PROGRAM=0 | |
26948 | ||
74b84332 VS |
26949 | fi |
26950 | ||
26951 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
26952 | if test "$wxUSE_NANOX" = "yes"; then |
26953 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
26954 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
26955 | if test "x$MICROWIN" = x ; then | |
26956 | echo "$as_me:$LINENO: result: not found" >&5 | |
26957 | echo "${ECHO_T}not found" >&6 | |
26958 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
26959 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
26960 | { (exit 1); exit 1; }; } | |
26961 | else | |
26962 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
26963 | echo "${ECHO_T}$MICROWIN" >&6 | |
26964 | cat >>confdefs.h <<\_ACEOF | |
26965 | #define wxUSE_NANOX 1 | |
26966 | _ACEOF | |
26967 | ||
26968 | fi | |
26969 | fi | |
26970 | ||
26971 | if test "$wxUSE_UNICODE" = "yes"; then | |
26972 | ||
26973 | succeeded=no | |
26974 | ||
26975 | if test -z "$PKG_CONFIG"; then | |
26976 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26977 | set dummy pkg-config; ac_word=$2 | |
26978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26980 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26982 | else | |
26983 | case $PKG_CONFIG in | |
26984 | [\\/]* | ?:[\\/]*) | |
26985 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26986 | ;; | |
26987 | *) | |
26988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26989 | for as_dir in $PATH | |
26990 | do | |
26991 | IFS=$as_save_IFS | |
26992 | test -z "$as_dir" && as_dir=. | |
26993 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26995 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26997 | break 2 | |
26998 | fi | |
26999 | done | |
27000 | done | |
27001 | ||
27002 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27003 | ;; | |
27004 | esac | |
27005 | fi | |
27006 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27007 | ||
27008 | if test -n "$PKG_CONFIG"; then | |
27009 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27010 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27011 | else | |
27012 | echo "$as_me:$LINENO: result: no" >&5 | |
27013 | echo "${ECHO_T}no" >&6 | |
27014 | fi | |
27015 | ||
27016 | fi | |
27017 | ||
27018 | if test "$PKG_CONFIG" = "no" ; then | |
27019 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27020 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27021 | echo "*** to the full path to pkg-config." | |
27022 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27023 | else | |
27024 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27025 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27026 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
27027 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
27028 | ||
27029 | if $PKG_CONFIG --exists "pangox" ; then | |
27030 | echo "$as_me:$LINENO: result: yes" >&5 | |
27031 | echo "${ECHO_T}yes" >&6 | |
27032 | succeeded=yes | |
27033 | ||
27034 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
27035 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
27036 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
27037 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
27038 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
27039 | ||
27040 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
27041 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
27042 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
27043 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
27044 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
27045 | else | |
27046 | PANGOX_CFLAGS="" | |
27047 | PANGOX_LIBS="" | |
27048 | ## If we have a custom action on failure, don't print errors, but | |
27049 | ## do set a variable so people can do so. | |
27050 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
27051 | ||
27052 | fi | |
27053 | ||
27054 | ||
27055 | ||
27056 | else | |
27057 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27058 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27059 | fi | |
27060 | fi | |
27061 | ||
27062 | if test $succeeded = yes; then | |
27063 | ||
27064 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
27065 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
27066 | ||
27067 | else | |
27068 | ||
27069 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
27070 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
27071 | { (exit 1); exit 1; }; } | |
27072 | ||
27073 | ||
27074 | fi | |
27075 | ||
27076 | ||
27077 | succeeded=no | |
27078 | ||
27079 | if test -z "$PKG_CONFIG"; then | |
27080 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27081 | set dummy pkg-config; ac_word=$2 | |
27082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27084 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27086 | else | |
27087 | case $PKG_CONFIG in | |
27088 | [\\/]* | ?:[\\/]*) | |
27089 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27090 | ;; | |
27091 | *) | |
27092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27093 | for as_dir in $PATH | |
27094 | do | |
27095 | IFS=$as_save_IFS | |
27096 | test -z "$as_dir" && as_dir=. | |
27097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27099 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27101 | break 2 | |
27102 | fi | |
27103 | done | |
27104 | done | |
27105 | ||
27106 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27107 | ;; | |
27108 | esac | |
27109 | fi | |
27110 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27111 | ||
27112 | if test -n "$PKG_CONFIG"; then | |
27113 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27114 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27115 | else | |
27116 | echo "$as_me:$LINENO: result: no" >&5 | |
27117 | echo "${ECHO_T}no" >&6 | |
27118 | fi | |
27119 | ||
27120 | fi | |
27121 | ||
27122 | if test "$PKG_CONFIG" = "no" ; then | |
27123 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27124 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27125 | echo "*** to the full path to pkg-config." | |
27126 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27127 | else | |
27128 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27129 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27130 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
27131 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
27132 | ||
27133 | if $PKG_CONFIG --exists "pangoft2" ; then | |
27134 | echo "$as_me:$LINENO: result: yes" >&5 | |
27135 | echo "${ECHO_T}yes" >&6 | |
27136 | succeeded=yes | |
27137 | ||
27138 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
27139 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
27140 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
27141 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
27142 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
27143 | ||
27144 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
27145 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
27146 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
27147 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
27148 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
27149 | else | |
27150 | PANGOFT2_CFLAGS="" | |
27151 | PANGOFT2_LIBS="" | |
27152 | ## If we have a custom action on failure, don't print errors, but | |
27153 | ## do set a variable so people can do so. | |
27154 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
27155 | ||
27156 | fi | |
27157 | ||
27158 | ||
27159 | ||
27160 | else | |
27161 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27162 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27163 | fi | |
27164 | fi | |
27165 | ||
27166 | if test $succeeded = yes; then | |
27167 | ||
27168 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
27169 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
27170 | ||
27171 | else | |
27172 | ||
27173 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
27174 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
27175 | wxUSE_PRINTING_ARCHITECTURE="no" | |
27176 | ||
27177 | ||
27178 | fi | |
27179 | ||
27180 | ||
27181 | succeeded=no | |
27182 | ||
27183 | if test -z "$PKG_CONFIG"; then | |
27184 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27185 | set dummy pkg-config; ac_word=$2 | |
27186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27188 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27190 | else | |
27191 | case $PKG_CONFIG in | |
27192 | [\\/]* | ?:[\\/]*) | |
27193 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27194 | ;; | |
27195 | *) | |
27196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27197 | for as_dir in $PATH | |
27198 | do | |
27199 | IFS=$as_save_IFS | |
27200 | test -z "$as_dir" && as_dir=. | |
27201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27202 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27203 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27205 | break 2 | |
27206 | fi | |
27207 | done | |
27208 | done | |
27209 | ||
27210 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27211 | ;; | |
27212 | esac | |
27213 | fi | |
27214 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27215 | ||
27216 | if test -n "$PKG_CONFIG"; then | |
27217 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27218 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27219 | else | |
27220 | echo "$as_me:$LINENO: result: no" >&5 | |
27221 | echo "${ECHO_T}no" >&6 | |
27222 | fi | |
27223 | ||
27224 | fi | |
27225 | ||
27226 | if test "$PKG_CONFIG" = "no" ; then | |
27227 | echo "*** The pkg-config script could not be found. Make sure it is" | |
27228 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
27229 | echo "*** to the full path to pkg-config." | |
27230 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
27231 | else | |
27232 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
27233 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
27234 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
27235 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
27236 | ||
27237 | if $PKG_CONFIG --exists "pangoxft" ; then | |
27238 | echo "$as_me:$LINENO: result: yes" >&5 | |
27239 | echo "${ECHO_T}yes" >&6 | |
27240 | succeeded=yes | |
27241 | ||
27242 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
27243 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
27244 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
27245 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
27246 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
27247 | ||
27248 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
27249 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
27250 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
27251 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
27252 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
27253 | else | |
27254 | PANGOXFT_CFLAGS="" | |
27255 | PANGOXFT_LIBS="" | |
27256 | ## If we have a custom action on failure, don't print errors, but | |
27257 | ## do set a variable so people can do so. | |
27258 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
27259 | ||
27260 | fi | |
27261 | ||
27262 | ||
27263 | ||
27264 | else | |
27265 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
27266 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
27267 | fi | |
27268 | fi | |
27269 | ||
27270 | if test $succeeded = yes; then | |
27271 | ||
4ae1af05 MB |
27272 | cat >>confdefs.h <<\_ACEOF |
27273 | #define HAVE_PANGO_XFT 1 | |
27274 | _ACEOF | |
27275 | ||
a848cd7e SC |
27276 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
27277 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
27278 | ||
27279 | else | |
27280 | ||
27281 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
27282 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
27283 | ||
27284 | ||
27285 | fi | |
27286 | ||
304205f1 VS |
27287 | save_CFLAGS="$CFLAGS" |
27288 | save_LIBS="$LIBS" | |
27289 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
27290 | LIBS="$LIBS $PANGOX_LIBS" | |
27291 | ||
27292 | for ac_func in pango_font_family_is_monospace | |
27293 | do | |
27294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27295 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27297 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27299 | else | |
27300 | cat >conftest.$ac_ext <<_ACEOF | |
27301 | /* confdefs.h. */ | |
27302 | _ACEOF | |
27303 | cat confdefs.h >>conftest.$ac_ext | |
27304 | cat >>conftest.$ac_ext <<_ACEOF | |
27305 | /* end confdefs.h. */ | |
27306 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
27307 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27308 | #define $ac_func innocuous_$ac_func | |
27309 | ||
27310 | /* System header to define __stub macros and hopefully few prototypes, | |
27311 | which can conflict with char $ac_func (); below. | |
27312 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27313 | <limits.h> exists even on freestanding compilers. */ | |
27314 | ||
27315 | #ifdef __STDC__ | |
27316 | # include <limits.h> | |
27317 | #else | |
27318 | # include <assert.h> | |
27319 | #endif | |
27320 | ||
27321 | #undef $ac_func | |
27322 | ||
27323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27324 | #ifdef __cplusplus | |
27325 | extern "C" | |
27326 | { | |
27327 | #endif | |
27328 | /* We use char because int might match the return type of a gcc2 | |
27329 | builtin and then its argument prototype would still apply. */ | |
27330 | char $ac_func (); | |
27331 | /* The GNU C library defines this for functions which it implements | |
27332 | to always fail with ENOSYS. Some functions are actually named | |
27333 | something starting with __ and the normal name is an alias. */ | |
27334 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27335 | choke me | |
27336 | #else | |
27337 | char (*f) () = $ac_func; | |
27338 | #endif | |
27339 | #ifdef __cplusplus | |
27340 | } | |
27341 | #endif | |
27342 | ||
27343 | int | |
27344 | main () | |
27345 | { | |
27346 | return f != $ac_func; | |
27347 | ; | |
27348 | return 0; | |
27349 | } | |
27350 | _ACEOF | |
27351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27353 | (eval $ac_link) 2>conftest.er1 | |
27354 | ac_status=$? | |
27355 | grep -v '^ *+' conftest.er1 >conftest.err | |
27356 | rm -f conftest.er1 | |
27357 | cat conftest.err >&5 | |
27358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27359 | (exit $ac_status); } && | |
07158944 | 27360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
27361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27362 | (eval $ac_try) 2>&5 | |
27363 | ac_status=$? | |
27364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27365 | (exit $ac_status); }; } && | |
27366 | { ac_try='test -s conftest$ac_exeext' | |
27367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27368 | (eval $ac_try) 2>&5 | |
27369 | ac_status=$? | |
27370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27371 | (exit $ac_status); }; }; then | |
27372 | eval "$as_ac_var=yes" | |
27373 | else | |
27374 | echo "$as_me: failed program was:" >&5 | |
27375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27376 | ||
27377 | eval "$as_ac_var=no" | |
27378 | fi | |
27379 | rm -f conftest.err conftest.$ac_objext \ | |
27380 | conftest$ac_exeext conftest.$ac_ext | |
27381 | fi | |
27382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27383 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27385 | cat >>confdefs.h <<_ACEOF | |
27386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27387 | _ACEOF | |
27388 | ||
27389 | fi | |
27390 | done | |
27391 | ||
27392 | CFLAGS="$save_CFLAGS" | |
27393 | LIBS="$save_LIBS" | |
a848cd7e SC |
27394 | fi |
27395 | ||
27396 | wxUSE_UNIVERSAL="yes" | |
27397 | ||
27398 | if test "$wxUSE_NANOX" = "yes"; then | |
27399 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
27400 | 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" | |
27401 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
27402 | else | |
27403 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
27404 | fi | |
27405 | ||
a848cd7e SC |
27406 | TOOLKIT=X11 |
27407 | GUIDIST=X11_DIST | |
27408 | fi | |
27409 | ||
27410 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
27411 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
27412 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 27413 | |
74b84332 VS |
27414 | ac_find_includes= |
27415 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27416 | do | |
27417 | if test -f "$ac_dir/Xm/Xm.h"; then | |
27418 | ac_find_includes=$ac_dir | |
27419 | break | |
27420 | fi | |
27421 | done | |
a848cd7e | 27422 | |
74b84332 VS |
27423 | if test "$ac_find_includes" != "" ; then |
27424 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27425 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27426 | ||
27427 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27428 | ac_path_to_include="" | |
27429 | else | |
27430 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
27431 | result=$? | |
27432 | if test $result = 0; then | |
27433 | ac_path_to_include="" | |
27434 | else | |
27435 | ac_path_to_include=" -I$ac_find_includes" | |
27436 | fi | |
a848cd7e SC |
27437 | fi |
27438 | ||
74b84332 VS |
27439 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
27440 | else | |
27441 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27442 | /* confdefs.h. */ |
27443 | _ACEOF | |
27444 | cat confdefs.h >>conftest.$ac_ext | |
27445 | cat >>conftest.$ac_ext <<_ACEOF | |
27446 | /* end confdefs.h. */ | |
27447 | ||
74b84332 VS |
27448 | #include <Xm/Xm.h> |
27449 | ||
a848cd7e SC |
27450 | int |
27451 | main () | |
27452 | { | |
27453 | ||
74b84332 VS |
27454 | int version; |
27455 | version = xmUseVersion; | |
27456 | ||
a848cd7e SC |
27457 | ; |
27458 | return 0; | |
27459 | } | |
27460 | _ACEOF | |
74b84332 VS |
27461 | rm -f conftest.$ac_objext |
27462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27463 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27464 | ac_status=$? |
ac1cb8d3 VS |
27465 | grep -v '^ *+' conftest.er1 >conftest.err |
27466 | rm -f conftest.er1 | |
27467 | cat conftest.err >&5 | |
a848cd7e SC |
27468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27469 | (exit $ac_status); } && | |
07158944 | 27470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
74b84332 | 27476 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27478 | (eval $ac_try) 2>&5 | |
27479 | ac_status=$? | |
27480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27481 | (exit $ac_status); }; }; then | |
74b84332 VS |
27482 | |
27483 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27484 | echo "${ECHO_T}found in default search path" >&6 | |
27485 | COMPILED_X_PROGRAM=1 | |
27486 | ||
a848cd7e SC |
27487 | else |
27488 | echo "$as_me: failed program was:" >&5 | |
27489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27490 | ||
a848cd7e | 27491 | |
74b84332 VS |
27492 | echo "$as_me:$LINENO: result: no" >&5 |
27493 | echo "${ECHO_T}no" >&6 | |
27494 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
27495 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
27496 | { (exit 1); exit 1; }; } | |
a848cd7e | 27497 | |
a848cd7e | 27498 | |
a848cd7e | 27499 | fi |
74b84332 VS |
27500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27501 | fi | |
27502 | ||
27503 | if test "$COMPILED_X_PROGRAM" = 0; then | |
27504 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
27505 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
27506 | ||
27507 | ac_find_libraries= | |
27508 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27509 | do | |
27510 | for ac_extension in a so sl dylib; do | |
27511 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
27512 | ac_find_libraries=$ac_dir | |
27513 | break 2 | |
a848cd7e | 27514 | fi |
74b84332 VS |
27515 | done |
27516 | done | |
a848cd7e | 27517 | |
74b84332 VS |
27518 | if test "$ac_find_libraries" != "" ; then |
27519 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27520 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 27521 | |
74b84332 VS |
27522 | |
27523 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27524 | result=$? | |
27525 | if test $result = 0; then | |
27526 | ac_path_to_link="" | |
a848cd7e | 27527 | else |
74b84332 VS |
27528 | ac_path_to_link=" -L$ac_find_libraries" |
27529 | fi | |
27530 | ||
27531 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27532 | else | |
27533 | save_CFLAGS=$CFLAGS | |
27534 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27535 | ||
27536 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27537 | /* confdefs.h. */ |
27538 | _ACEOF | |
27539 | cat confdefs.h >>conftest.$ac_ext | |
27540 | cat >>conftest.$ac_ext <<_ACEOF | |
27541 | /* end confdefs.h. */ | |
27542 | ||
74b84332 VS |
27543 | #include <Xm/Xm.h> |
27544 | ||
a848cd7e SC |
27545 | int |
27546 | main () | |
27547 | { | |
74b84332 VS |
27548 | |
27549 | int version; | |
27550 | version = xmUseVersion; | |
27551 | ||
a848cd7e SC |
27552 | ; |
27553 | return 0; | |
27554 | } | |
27555 | _ACEOF | |
74b84332 VS |
27556 | rm -f conftest.$ac_objext |
27557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27558 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27559 | ac_status=$? |
ac1cb8d3 VS |
27560 | grep -v '^ *+' conftest.er1 >conftest.err |
27561 | rm -f conftest.er1 | |
27562 | cat conftest.err >&5 | |
a848cd7e SC |
27563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27564 | (exit $ac_status); } && | |
07158944 | 27565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27567 | (eval $ac_try) 2>&5 | |
27568 | ac_status=$? | |
27569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27570 | (exit $ac_status); }; } && | |
74b84332 | 27571 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27573 | (eval $ac_try) 2>&5 | |
27574 | ac_status=$? | |
27575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27576 | (exit $ac_status); }; }; then | |
74b84332 VS |
27577 | |
27578 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27579 | echo "${ECHO_T}found in default search path" >&6 | |
27580 | COMPILED_X_PROGRAM=1 | |
27581 | ||
a848cd7e SC |
27582 | else |
27583 | echo "$as_me: failed program was:" >&5 | |
27584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27585 | ||
74b84332 VS |
27586 | |
27587 | echo "$as_me:$LINENO: result: no" >&5 | |
27588 | echo "${ECHO_T}no" >&6 | |
27589 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
27590 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
27591 | { (exit 1); exit 1; }; } | |
27592 | ||
27593 | ||
27594 | fi | |
27595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27596 | ||
27597 | CFLAGS=$save_CFLAGS | |
27598 | fi | |
27599 | fi | |
27600 | ||
27601 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
27602 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
27603 | libp_link="" | |
27604 | libsm_ice_link="" | |
27605 | libs_found=0 | |
27606 | for libp in "" " -lXp"; do | |
27607 | if test "$libs_found" = "0"; then | |
27608 | for libsm_ice in "" " -lSM -lICE"; do | |
27609 | if test "$libs_found" = "0"; then | |
27610 | save_LIBS="$LIBS" | |
27611 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
27612 | save_CFLAGS=$CFLAGS | |
27613 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27614 | ||
27615 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27616 | /* confdefs.h. */ |
27617 | _ACEOF | |
27618 | cat confdefs.h >>conftest.$ac_ext | |
27619 | cat >>conftest.$ac_ext <<_ACEOF | |
27620 | /* end confdefs.h. */ | |
27621 | ||
74b84332 VS |
27622 | #include <Xm/Xm.h> |
27623 | #include <Xm/List.h> | |
27624 | ||
a848cd7e SC |
27625 | int |
27626 | main () | |
27627 | { | |
74b84332 VS |
27628 | |
27629 | XmString string = NULL; | |
27630 | Widget w = NULL; | |
27631 | int position = 0; | |
27632 | XmListAddItem(w, string, position); | |
27633 | ||
a848cd7e SC |
27634 | ; |
27635 | return 0; | |
27636 | } | |
27637 | _ACEOF | |
27638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27640 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27641 | ac_status=$? |
ac1cb8d3 VS |
27642 | grep -v '^ *+' conftest.er1 >conftest.err |
27643 | rm -f conftest.er1 | |
27644 | cat conftest.err >&5 | |
a848cd7e SC |
27645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27646 | (exit $ac_status); } && | |
07158944 | 27647 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27649 | (eval $ac_try) 2>&5 | |
27650 | ac_status=$? | |
27651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27652 | (exit $ac_status); }; } && | |
27653 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27655 | (eval $ac_try) 2>&5 | |
27656 | ac_status=$? | |
27657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27658 | (exit $ac_status); }; }; then | |
27659 | ||
27660 | libp_link="$libp" | |
27661 | libsm_ice_link="$libsm_ice" | |
27662 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
27663 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
27664 | libs_found=1 | |
27665 | ||
27666 | else | |
27667 | echo "$as_me: failed program was:" >&5 | |
27668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27669 | ||
27670 | ||
27671 | ||
27672 | fi | |
ac1cb8d3 VS |
27673 | rm -f conftest.err conftest.$ac_objext \ |
27674 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27675 | |
27676 | LIBS="$save_LIBS" | |
27677 | CFLAGS=$save_CFLAGS | |
27678 | fi | |
27679 | done | |
27680 | fi | |
27681 | done | |
27682 | ||
27683 | if test "$libs_found" = "0"; then | |
27684 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
27685 | echo "${ECHO_T}can't find the right libraries" >&6 | |
27686 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
27687 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
27688 | { (exit 1); exit 1; }; } | |
27689 | fi | |
27690 | ||
27691 | save_CFLAGS=$CFLAGS | |
27692 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27693 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
27694 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
27695 | cat >conftest.$ac_ext <<_ACEOF | |
27696 | /* confdefs.h. */ | |
27697 | _ACEOF | |
27698 | cat confdefs.h >>conftest.$ac_ext | |
27699 | cat >>conftest.$ac_ext <<_ACEOF | |
27700 | /* end confdefs.h. */ | |
27701 | ||
27702 | #include <Xm/Xm.h> | |
27703 | ||
27704 | int | |
27705 | main () | |
27706 | { | |
27707 | ||
27708 | #if XmVersion < 2000 | |
27709 | #error "Not Motif 2" | |
27710 | #endif | |
27711 | ||
27712 | ; | |
27713 | return 0; | |
27714 | } | |
27715 | _ACEOF | |
27716 | rm -f conftest.$ac_objext | |
27717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27719 | ac_status=$? |
ac1cb8d3 VS |
27720 | grep -v '^ *+' conftest.er1 >conftest.err |
27721 | rm -f conftest.er1 | |
27722 | cat conftest.err >&5 | |
a848cd7e SC |
27723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27724 | (exit $ac_status); } && | |
07158944 | 27725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27727 | (eval $ac_try) 2>&5 | |
27728 | ac_status=$? | |
27729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27730 | (exit $ac_status); }; } && | |
27731 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27733 | (eval $ac_try) 2>&5 | |
27734 | ac_status=$? | |
27735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27736 | (exit $ac_status); }; }; then | |
27737 | ||
27738 | cat >>confdefs.h <<\_ACEOF | |
27739 | #define __WXMOTIF20__ 1 | |
27740 | _ACEOF | |
27741 | ||
27742 | echo "$as_me:$LINENO: result: found" >&5 | |
27743 | echo "${ECHO_T}found" >&6 | |
27744 | ||
27745 | else | |
27746 | echo "$as_me: failed program was:" >&5 | |
27747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27748 | ||
27749 | ||
27750 | cat >>confdefs.h <<\_ACEOF | |
27751 | #define __WXMOTIF20__ 0 | |
27752 | _ACEOF | |
27753 | ||
27754 | echo "$as_me:$LINENO: result: not found" >&5 | |
27755 | echo "${ECHO_T}not found" >&6 | |
27756 | ||
27757 | fi | |
ac1cb8d3 | 27758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27759 | CFLAGS=$save_CFLAGS |
27760 | ||
27761 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
27762 | TOOLKIT=MOTIF |
27763 | GUIDIST=MOTIF_DIST | |
27764 | fi | |
27765 | ||
74b84332 | 27766 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
27767 | if test "$wxUSE_LIBXPM" = "sys"; then |
27768 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
27769 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
27770 | ||
27771 | ac_find_libraries= | |
27772 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27773 | do | |
27774 | for ac_extension in a so sl dylib; do | |
27775 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
27776 | ac_find_libraries=$ac_dir | |
27777 | break 2 | |
27778 | fi | |
27779 | done | |
27780 | done | |
27781 | ||
27782 | if test "$ac_find_libraries" != "" ; then | |
27783 | ||
27784 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27785 | result=$? | |
27786 | if test $result = 0; then | |
27787 | ac_path_to_link="" | |
27788 | else | |
27789 | ac_path_to_link=" -L$ac_find_libraries" | |
27790 | fi | |
27791 | ||
27792 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27793 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27794 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
27795 | ||
27796 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
27797 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
27798 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
27799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27800 | else | |
27801 | ||
27802 | save_CFLAGS=$CFLAGS | |
27803 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27804 | ||
27805 | cat >conftest.$ac_ext <<_ACEOF | |
27806 | /* confdefs.h. */ | |
27807 | _ACEOF | |
27808 | cat confdefs.h >>conftest.$ac_ext | |
27809 | cat >>conftest.$ac_ext <<_ACEOF | |
27810 | /* end confdefs.h. */ | |
27811 | ||
27812 | #include <X11/xpm.h> | |
27813 | ||
27814 | int | |
27815 | main () | |
27816 | { | |
27817 | ||
27818 | int version; | |
27819 | version = XpmLibraryVersion(); | |
27820 | ||
27821 | ; | |
27822 | return 0; | |
27823 | } | |
27824 | _ACEOF | |
27825 | rm -f conftest.$ac_objext | |
27826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27827 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27828 | ac_status=$? |
ac1cb8d3 VS |
27829 | grep -v '^ *+' conftest.er1 >conftest.err |
27830 | rm -f conftest.er1 | |
27831 | cat conftest.err >&5 | |
a848cd7e SC |
27832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27833 | (exit $ac_status); } && | |
07158944 | 27834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27836 | (eval $ac_try) 2>&5 | |
27837 | ac_status=$? | |
27838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27839 | (exit $ac_status); }; } && | |
27840 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27842 | (eval $ac_try) 2>&5 | |
27843 | ac_status=$? | |
27844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27845 | (exit $ac_status); }; }; then | |
27846 | wx_cv_x11_xpm_h=yes | |
27847 | else | |
27848 | echo "$as_me: failed program was:" >&5 | |
27849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27850 | ||
27851 | wx_cv_x11_xpm_h=no | |
27852 | ||
27853 | fi | |
ac1cb8d3 | 27854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27855 | |
27856 | CFLAGS=$save_CFLAGS | |
27857 | ||
27858 | ||
27859 | fi | |
27860 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
27861 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
27862 | ||
27863 | if test $wx_cv_x11_xpm_h = "yes"; then | |
27864 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
27865 | cat >>confdefs.h <<\_ACEOF | |
27866 | #define wxHAVE_LIB_XPM 1 | |
27867 | _ACEOF | |
27868 | ||
27869 | else | |
27870 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
27871 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
27872 | fi | |
27873 | fi | |
27874 | ||
27875 | fi | |
27876 | ||
27877 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
27878 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
27879 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
27880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27881 | else | |
27882 | ac_check_lib_save_LIBS=$LIBS | |
27883 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
27884 | cat >conftest.$ac_ext <<_ACEOF | |
27885 | /* confdefs.h. */ | |
27886 | _ACEOF | |
27887 | cat confdefs.h >>conftest.$ac_ext | |
27888 | cat >>conftest.$ac_ext <<_ACEOF | |
27889 | /* end confdefs.h. */ | |
27890 | ||
27891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27892 | #ifdef __cplusplus | |
27893 | extern "C" | |
27894 | #endif | |
27895 | /* We use char because int might match the return type of a gcc2 | |
27896 | builtin and then its argument prototype would still apply. */ | |
27897 | char XShapeQueryExtension (); | |
27898 | int | |
27899 | main () | |
27900 | { | |
27901 | XShapeQueryExtension (); | |
27902 | ; | |
27903 | return 0; | |
27904 | } | |
27905 | _ACEOF | |
27906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27908 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27909 | ac_status=$? |
ac1cb8d3 VS |
27910 | grep -v '^ *+' conftest.er1 >conftest.err |
27911 | rm -f conftest.er1 | |
27912 | cat conftest.err >&5 | |
a848cd7e SC |
27913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27914 | (exit $ac_status); } && | |
07158944 | 27915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27917 | (eval $ac_try) 2>&5 | |
27918 | ac_status=$? | |
27919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27920 | (exit $ac_status); }; } && | |
27921 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27923 | (eval $ac_try) 2>&5 | |
27924 | ac_status=$? | |
27925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27926 | (exit $ac_status); }; }; then | |
27927 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
27928 | else | |
27929 | echo "$as_me: failed program was:" >&5 | |
27930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27931 | ||
27932 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
27933 | fi | |
ac1cb8d3 VS |
27934 | rm -f conftest.err conftest.$ac_objext \ |
27935 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27936 | LIBS=$ac_check_lib_save_LIBS |
27937 | fi | |
27938 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
27939 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
27940 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
27941 | ||
27942 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
27943 | wxHAVE_XEXT_LIB=1 | |
27944 | ||
27945 | fi | |
27946 | ||
27947 | ||
27948 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
27949 | save_CFLAGS="$CFLAGS" | |
27950 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27951 | ||
27952 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
27953 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
27954 | cat >conftest.$ac_ext <<_ACEOF | |
27955 | /* confdefs.h. */ | |
27956 | _ACEOF | |
27957 | cat confdefs.h >>conftest.$ac_ext | |
27958 | cat >>conftest.$ac_ext <<_ACEOF | |
27959 | /* end confdefs.h. */ | |
27960 | ||
27961 | #include <X11/Xlib.h> | |
27962 | #include <X11/extensions/shape.h> | |
27963 | ||
27964 | int | |
27965 | main () | |
27966 | { | |
27967 | ||
27968 | int dummy1, dummy2; | |
27969 | XShapeQueryExtension((Display*)NULL, | |
27970 | (int*)NULL, (int*)NULL); | |
27971 | ||
27972 | ; | |
27973 | return 0; | |
27974 | } | |
27975 | _ACEOF | |
27976 | rm -f conftest.$ac_objext | |
27977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27978 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27979 | ac_status=$? |
ac1cb8d3 VS |
27980 | grep -v '^ *+' conftest.er1 >conftest.err |
27981 | rm -f conftest.er1 | |
27982 | cat conftest.err >&5 | |
a848cd7e SC |
27983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27984 | (exit $ac_status); } && | |
07158944 | 27985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27987 | (eval $ac_try) 2>&5 | |
27988 | ac_status=$? | |
27989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27990 | (exit $ac_status); }; } && | |
27991 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27993 | (eval $ac_try) 2>&5 | |
27994 | ac_status=$? | |
27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27996 | (exit $ac_status); }; }; then | |
27997 | ||
27998 | cat >>confdefs.h <<\_ACEOF | |
27999 | #define HAVE_XSHAPE 1 | |
28000 | _ACEOF | |
28001 | ||
28002 | echo "$as_me:$LINENO: result: found" >&5 | |
28003 | echo "${ECHO_T}found" >&6 | |
28004 | ||
28005 | else | |
28006 | echo "$as_me: failed program was:" >&5 | |
28007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28008 | ||
28009 | ||
28010 | echo "$as_me:$LINENO: result: not found" >&5 | |
28011 | echo "${ECHO_T}not found" >&6 | |
28012 | ||
28013 | fi | |
ac1cb8d3 | 28014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28015 | CFLAGS="$save_CFLAGS" |
28016 | ||
28017 | fi | |
28018 | fi | |
28019 | ||
28020 | if test "$wxUSE_MAC" = 1; then | |
28021 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
28022 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
28023 | if test "$GCC" = yes; then | |
28024 | echo "$as_me:$LINENO: result: gcc" >&5 | |
28025 | echo "${ECHO_T}gcc" >&6 | |
28026 | CPPFLAGS_PASCAL="-fpascal-strings" | |
28027 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
28028 | echo "$as_me:$LINENO: result: xlc" >&5 | |
28029 | echo "${ECHO_T}xlc" >&6 | |
28030 | CPPFLAGS_PASCAL="-qmacpstr" | |
28031 | else | |
28032 | echo "$as_me:$LINENO: result: none" >&5 | |
28033 | echo "${ECHO_T}none" >&6 | |
28034 | fi | |
28035 | ||
1e9e8aba DE |
28036 | if test "x$wxUSE_UNIX" = "xyes"; then |
28037 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
28038 | else | |
28039 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
28040 | fi | |
a848cd7e | 28041 | |
a848cd7e SC |
28042 | TOOLKIT=MAC |
28043 | GUIDIST=MACX_DIST | |
dd21ced8 | 28044 | WXBASEPORT="_carbon" |
a848cd7e SC |
28045 | fi |
28046 | ||
28047 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
28048 | TOOLKIT=COCOA |
28049 | GUIDIST=COCOA_DIST | |
28050 | fi | |
28051 | ||
28052 | if test "$wxUSE_PM" = 1; then | |
28053 | TOOLKIT=PM | |
de59c161 RD |
28054 | GUIDIST=PM_DIST |
28055 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
28056 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
28057 | if test "${wx_cv_spbcdata+set}" = set; then | |
28058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28059 | else | |
28060 | ||
28061 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
28062 | /* confdefs.h. */ |
28063 | _ACEOF | |
28064 | cat confdefs.h >>conftest.$ac_ext | |
28065 | cat >>conftest.$ac_ext <<_ACEOF | |
28066 | /* end confdefs.h. */ | |
28067 | ||
28068 | #define INCL_PM | |
28069 | #include <os2.h> | |
28070 | ||
28071 | int | |
28072 | main () | |
28073 | { | |
28074 | ||
28075 | SPBCDATA test; | |
28076 | ||
28077 | ; | |
28078 | return 0; | |
28079 | } | |
28080 | _ACEOF | |
28081 | rm -f conftest.$ac_objext | |
28082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28083 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 28084 | ac_status=$? |
ac1cb8d3 VS |
28085 | grep -v '^ *+' conftest.er1 >conftest.err |
28086 | rm -f conftest.er1 | |
28087 | cat conftest.err >&5 | |
de59c161 RD |
28088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28089 | (exit $ac_status); } && | |
07158944 | 28090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28092 | (eval $ac_try) 2>&5 | |
28093 | ac_status=$? | |
28094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28095 | (exit $ac_status); }; } && | |
28096 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
28097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28098 | (eval $ac_try) 2>&5 | |
28099 | ac_status=$? | |
28100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28101 | (exit $ac_status); }; }; then | |
28102 | wx_cv_spbcdata=yes | |
28103 | else | |
28104 | echo "$as_me: failed program was:" >&5 | |
28105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28106 | ||
28107 | wx_cv_spbcdata=no | |
28108 | ||
28109 | fi | |
ac1cb8d3 | 28110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
28111 | |
28112 | ||
28113 | fi | |
28114 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
28115 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
28116 | ||
28117 | if test $wx_cv_spbcdata = "yes"; then | |
28118 | cat >>confdefs.h <<\_ACEOF | |
28119 | #define HAVE_SPBCDATA 1 | |
28120 | _ACEOF | |
28121 | ||
28122 | fi | |
a848cd7e SC |
28123 | fi |
28124 | ||
28125 | if test "$TOOLKIT" = "PM" ; then | |
28126 | TOOLKIT_DIR="os2" | |
28127 | else | |
28128 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
28129 | fi | |
28130 | ||
a848cd7e | 28131 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
28132 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
28133 | WIDGET_SET=univ | |
a848cd7e SC |
28134 | fi |
28135 | ||
28136 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
28137 | DISTDIR="wx\$(TOOLKIT)" | |
28138 | else | |
28139 | USE_GUI=0 | |
28140 | ||
28141 | TOOLKIT_DIR="base" | |
28142 | ||
28143 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 28144 | TOOLKIT="MSW" |
a848cd7e SC |
28145 | fi |
28146 | ||
a848cd7e SC |
28147 | GUIDIST="BASE_DIST" |
28148 | DISTDIR="wxBase" | |
28149 | fi | |
28150 | ||
28151 | ||
28152 | ||
28153 | ||
28154 | IODBC_C_SRC="" | |
28155 | ||
28156 | ||
28157 | if test "$TOOLKIT" != "MSW" ; then | |
28158 | ||
28159 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
28160 | ||
28161 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28162 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28163 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28164 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28166 | fi | |
28167 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28168 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28169 | else | |
28170 | # Is the header compilable? | |
28171 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
28172 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
28173 | cat >conftest.$ac_ext <<_ACEOF | |
28174 | /* confdefs.h. */ | |
28175 | _ACEOF | |
28176 | cat confdefs.h >>conftest.$ac_ext | |
28177 | cat >>conftest.$ac_ext <<_ACEOF | |
28178 | /* end confdefs.h. */ | |
28179 | $ac_includes_default | |
28180 | #include <sql.h> | |
28181 | _ACEOF | |
28182 | rm -f conftest.$ac_objext | |
28183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28184 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28185 | ac_status=$? |
ac1cb8d3 VS |
28186 | grep -v '^ *+' conftest.er1 >conftest.err |
28187 | rm -f conftest.er1 | |
28188 | cat conftest.err >&5 | |
a848cd7e SC |
28189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28190 | (exit $ac_status); } && | |
07158944 | 28191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28193 | (eval $ac_try) 2>&5 | |
28194 | ac_status=$? | |
28195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28196 | (exit $ac_status); }; } && | |
28197 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28199 | (eval $ac_try) 2>&5 | |
28200 | ac_status=$? | |
28201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28202 | (exit $ac_status); }; }; then | |
28203 | ac_header_compiler=yes | |
28204 | else | |
28205 | echo "$as_me: failed program was:" >&5 | |
28206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28207 | ||
28208 | ac_header_compiler=no | |
28209 | fi | |
ac1cb8d3 | 28210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28212 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28213 | ||
28214 | # Is the header present? | |
28215 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
28216 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
28217 | cat >conftest.$ac_ext <<_ACEOF | |
28218 | /* confdefs.h. */ | |
28219 | _ACEOF | |
28220 | cat confdefs.h >>conftest.$ac_ext | |
28221 | cat >>conftest.$ac_ext <<_ACEOF | |
28222 | /* end confdefs.h. */ | |
28223 | #include <sql.h> | |
28224 | _ACEOF | |
28225 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28227 | ac_status=$? | |
28228 | grep -v '^ *+' conftest.er1 >conftest.err | |
28229 | rm -f conftest.er1 | |
28230 | cat conftest.err >&5 | |
28231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28232 | (exit $ac_status); } >/dev/null; then | |
28233 | if test -s conftest.err; then | |
28234 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28235 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28236 | else |
28237 | ac_cpp_err= | |
28238 | fi | |
28239 | else | |
28240 | ac_cpp_err=yes | |
28241 | fi | |
28242 | if test -z "$ac_cpp_err"; then | |
28243 | ac_header_preproc=yes | |
28244 | else | |
28245 | echo "$as_me: failed program was:" >&5 | |
28246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28247 | ||
28248 | ac_header_preproc=no | |
28249 | fi | |
28250 | rm -f conftest.err conftest.$ac_ext | |
28251 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28252 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28253 | ||
28254 | # So? What about this header? | |
ac1cb8d3 VS |
28255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28256 | yes:no: ) | |
a848cd7e SC |
28257 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28258 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28259 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
28260 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
28261 | ac_header_preproc=yes | |
a848cd7e | 28262 | ;; |
ac1cb8d3 | 28263 | no:yes:* ) |
a848cd7e SC |
28264 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
28265 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28266 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
28267 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
28268 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
28269 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
28270 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28271 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28272 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
28273 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28274 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
28275 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28276 | ( |
28277 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28278 | ## ----------------------------------------- ## |
28279 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28280 | ## ----------------------------------------- ## | |
a848cd7e SC |
28281 | _ASBOX |
28282 | ) | | |
28283 | sed "s/^/$as_me: WARNING: /" >&2 | |
28284 | ;; | |
28285 | esac | |
28286 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
28287 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
28288 | if test "${ac_cv_header_sql_h+set}" = set; then | |
28289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28290 | else | |
28291 | ac_cv_header_sql_h=$ac_header_preproc | |
28292 | fi | |
28293 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
28294 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
28295 | ||
28296 | fi | |
28297 | if test $ac_cv_header_sql_h = yes; then | |
28298 | found_sql_h=1 | |
28299 | fi | |
28300 | ||
28301 | ||
28302 | if test "x$found_sql_h" = "x1" ; then | |
28303 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
28304 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
28305 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
28306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28307 | else | |
28308 | ac_check_lib_save_LIBS=$LIBS | |
28309 | LIBS="-liodbc $LIBS" | |
28310 | cat >conftest.$ac_ext <<_ACEOF | |
28311 | /* confdefs.h. */ | |
28312 | _ACEOF | |
28313 | cat confdefs.h >>conftest.$ac_ext | |
28314 | cat >>conftest.$ac_ext <<_ACEOF | |
28315 | /* end confdefs.h. */ | |
28316 | ||
28317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28318 | #ifdef __cplusplus | |
28319 | extern "C" | |
28320 | #endif | |
28321 | /* We use char because int might match the return type of a gcc2 | |
28322 | builtin and then its argument prototype would still apply. */ | |
28323 | char SQLAllocEnv (); | |
28324 | int | |
28325 | main () | |
28326 | { | |
28327 | SQLAllocEnv (); | |
28328 | ; | |
28329 | return 0; | |
28330 | } | |
28331 | _ACEOF | |
28332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28334 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28335 | ac_status=$? |
ac1cb8d3 VS |
28336 | grep -v '^ *+' conftest.er1 >conftest.err |
28337 | rm -f conftest.er1 | |
28338 | cat conftest.err >&5 | |
a848cd7e SC |
28339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28340 | (exit $ac_status); } && | |
07158944 | 28341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28343 | (eval $ac_try) 2>&5 | |
28344 | ac_status=$? | |
28345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28346 | (exit $ac_status); }; } && | |
28347 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28349 | (eval $ac_try) 2>&5 | |
28350 | ac_status=$? | |
28351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28352 | (exit $ac_status); }; }; then | |
28353 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
28354 | else | |
28355 | echo "$as_me: failed program was:" >&5 | |
28356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28357 | ||
28358 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
28359 | fi | |
ac1cb8d3 VS |
28360 | rm -f conftest.err conftest.$ac_objext \ |
28361 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28362 | LIBS=$ac_check_lib_save_LIBS |
28363 | fi | |
28364 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
28365 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
28366 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
28367 | ODBC_LINK=" -liodbc" | |
28368 | else | |
28369 | ||
28370 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
28371 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
28372 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
28373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28374 | else | |
28375 | ac_check_lib_save_LIBS=$LIBS | |
28376 | LIBS="-lunixodbc $LIBS" | |
28377 | cat >conftest.$ac_ext <<_ACEOF | |
28378 | /* confdefs.h. */ | |
28379 | _ACEOF | |
28380 | cat confdefs.h >>conftest.$ac_ext | |
28381 | cat >>conftest.$ac_ext <<_ACEOF | |
28382 | /* end confdefs.h. */ | |
28383 | ||
28384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28385 | #ifdef __cplusplus | |
28386 | extern "C" | |
28387 | #endif | |
28388 | /* We use char because int might match the return type of a gcc2 | |
28389 | builtin and then its argument prototype would still apply. */ | |
28390 | char SQLAllocEnv (); | |
28391 | int | |
28392 | main () | |
28393 | { | |
28394 | SQLAllocEnv (); | |
28395 | ; | |
28396 | return 0; | |
28397 | } | |
28398 | _ACEOF | |
28399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28401 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28402 | ac_status=$? |
ac1cb8d3 VS |
28403 | grep -v '^ *+' conftest.er1 >conftest.err |
28404 | rm -f conftest.er1 | |
28405 | cat conftest.err >&5 | |
a848cd7e SC |
28406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28407 | (exit $ac_status); } && | |
07158944 | 28408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28410 | (eval $ac_try) 2>&5 | |
28411 | ac_status=$? | |
28412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28413 | (exit $ac_status); }; } && | |
28414 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28416 | (eval $ac_try) 2>&5 | |
28417 | ac_status=$? | |
28418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28419 | (exit $ac_status); }; }; then | |
28420 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
28421 | else | |
28422 | echo "$as_me: failed program was:" >&5 | |
28423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28424 | ||
28425 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
28426 | fi | |
ac1cb8d3 VS |
28427 | rm -f conftest.err conftest.$ac_objext \ |
28428 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28429 | LIBS=$ac_check_lib_save_LIBS |
28430 | fi | |
28431 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
28432 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
28433 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
28434 | ODBC_LINK=" -lunixodbc" | |
28435 | else | |
28436 | ||
28437 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
28438 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
28439 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
28440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28441 | else | |
28442 | ac_check_lib_save_LIBS=$LIBS | |
28443 | LIBS="-lodbc $LIBS" | |
28444 | cat >conftest.$ac_ext <<_ACEOF | |
28445 | /* confdefs.h. */ | |
28446 | _ACEOF | |
28447 | cat confdefs.h >>conftest.$ac_ext | |
28448 | cat >>conftest.$ac_ext <<_ACEOF | |
28449 | /* end confdefs.h. */ | |
28450 | ||
28451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28452 | #ifdef __cplusplus | |
28453 | extern "C" | |
28454 | #endif | |
28455 | /* We use char because int might match the return type of a gcc2 | |
28456 | builtin and then its argument prototype would still apply. */ | |
28457 | char SQLAllocEnv (); | |
28458 | int | |
28459 | main () | |
28460 | { | |
28461 | SQLAllocEnv (); | |
28462 | ; | |
28463 | return 0; | |
28464 | } | |
28465 | _ACEOF | |
28466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28468 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28469 | ac_status=$? |
ac1cb8d3 VS |
28470 | grep -v '^ *+' conftest.er1 >conftest.err |
28471 | rm -f conftest.er1 | |
28472 | cat conftest.err >&5 | |
a848cd7e SC |
28473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28474 | (exit $ac_status); } && | |
07158944 | 28475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28477 | (eval $ac_try) 2>&5 | |
28478 | ac_status=$? | |
28479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28480 | (exit $ac_status); }; } && | |
28481 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28483 | (eval $ac_try) 2>&5 | |
28484 | ac_status=$? | |
28485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28486 | (exit $ac_status); }; }; then | |
28487 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
28488 | else | |
28489 | echo "$as_me: failed program was:" >&5 | |
28490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28491 | ||
28492 | ac_cv_lib_odbc_SQLAllocEnv=no | |
28493 | fi | |
ac1cb8d3 VS |
28494 | rm -f conftest.err conftest.$ac_objext \ |
28495 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28496 | LIBS=$ac_check_lib_save_LIBS |
28497 | fi | |
28498 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
28499 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
28500 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
28501 | ODBC_LINK=" -lodbc" | |
28502 | fi | |
28503 | ||
28504 | ||
28505 | fi | |
28506 | ||
28507 | ||
28508 | fi | |
28509 | ||
28510 | fi | |
28511 | if test "x$ODBC_LINK" = "x" ; then | |
28512 | if test "$wxUSE_ODBC" = "sys" ; then | |
28513 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
28514 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
28515 | { (exit 1); exit 1; }; } | |
28516 | else | |
28517 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
28518 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
28519 | wxUSE_ODBC=builtin | |
28520 | fi | |
28521 | else | |
28522 | wxUSE_ODBC=sys | |
28523 | fi | |
28524 | fi | |
a848cd7e | 28525 | |
2da0c077 RD |
28526 | if test "$wxUSE_ODBC" = "builtin" ; then |
28527 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
28528 | #define wxUSE_BUILTIN_IODBC 1 |
28529 | _ACEOF | |
28530 | ||
a848cd7e SC |
28531 | fi |
28532 | fi | |
28533 | ||
2da0c077 RD |
28534 | if test "$wxUSE_ODBC" != "no" ; then |
28535 | cat >>confdefs.h <<\_ACEOF | |
28536 | #define wxUSE_ODBC 1 | |
28537 | _ACEOF | |
28538 | ||
28539 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
28540 | ||
28541 | WXODBCFLAG="-D_IODBC_" | |
28542 | fi | |
a848cd7e | 28543 | |
01cb68df | 28544 | |
a848cd7e | 28545 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 28546 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
28547 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
28548 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
28549 | ||
28550 | ac_find_libraries= | |
28551 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28552 | do | |
28553 | for ac_extension in a so sl dylib; do | |
28554 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
28555 | ac_find_libraries=$ac_dir | |
28556 | break 2 | |
28557 | fi | |
28558 | done | |
28559 | done | |
28560 | ||
28561 | if test "$ac_find_libraries" != "" ; then | |
28562 | ||
28563 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28564 | result=$? | |
28565 | if test $result = 0; then | |
28566 | ac_path_to_link="" | |
28567 | else | |
28568 | ac_path_to_link=" -L$ac_find_libraries" | |
28569 | fi | |
28570 | ||
28571 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28572 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
28573 | fi | |
28574 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
28575 | echo "$as_me:$LINENO: result: yes" >&5 | |
28576 | echo "${ECHO_T}yes" >&6 | |
28577 | ||
28578 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
28579 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
28580 | ||
28581 | ac_find_libraries= | |
28582 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28583 | do | |
28584 | for ac_extension in a so sl dylib; do | |
28585 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
28586 | ac_find_libraries=$ac_dir | |
28587 | break 2 | |
28588 | fi | |
28589 | done | |
28590 | done | |
28591 | ||
28592 | if test "$ac_find_libraries" != "" ; then | |
28593 | echo "$as_me:$LINENO: result: yes" >&5 | |
28594 | echo "${ECHO_T}yes" >&6 | |
28595 | ||
28596 | for ac_header in X11/extensions/xf86vmode.h | |
28597 | do | |
28598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28599 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28600 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28601 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28603 | else | |
28604 | cat >conftest.$ac_ext <<_ACEOF | |
28605 | /* confdefs.h. */ | |
28606 | _ACEOF | |
28607 | cat confdefs.h >>conftest.$ac_ext | |
28608 | cat >>conftest.$ac_ext <<_ACEOF | |
28609 | /* end confdefs.h. */ | |
28610 | ||
28611 | #if HAVE_X11_XLIB_H | |
28612 | #include <X11/Xlib.h> | |
28613 | #endif | |
28614 | ||
28615 | ||
28616 | #include <$ac_header> | |
28617 | _ACEOF | |
28618 | rm -f conftest.$ac_objext | |
28619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28620 | (eval $ac_compile) 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); } && | |
07158944 | 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_objext' | |
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 | eval "$as_ac_Header=yes" | |
28640 | else | |
28641 | echo "$as_me: failed program was:" >&5 | |
28642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28643 | ||
28644 | eval "$as_ac_Header=no" | |
28645 | fi | |
ac1cb8d3 | 28646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28647 | fi |
28648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28650 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28651 | cat >>confdefs.h <<_ACEOF | |
28652 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28653 | _ACEOF | |
28654 | ||
28655 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
28656 | ||
28657 | fi | |
28658 | ||
28659 | done | |
28660 | ||
28661 | else | |
28662 | echo "$as_me:$LINENO: result: no" >&5 | |
28663 | echo "${ECHO_T}no" >&6 | |
28664 | fi | |
28665 | ||
28666 | else | |
28667 | echo "$as_me:$LINENO: result: no" >&5 | |
28668 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
28669 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
28670 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
28671 | wxUSE_DISPLAY="no" |
28672 | fi | |
01cb68df RG |
28673 | elif test "$wxUSE_MSW" = 1; then |
28674 | ||
28675 | ||
28676 | for ac_header in multimon.h ddraw.h | |
28677 | do | |
28678 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 28679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
28680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
28681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 28683 | else |
5294a27e | 28684 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
28685 | /* confdefs.h. */ |
28686 | _ACEOF | |
28687 | cat confdefs.h >>conftest.$ac_ext | |
28688 | cat >>conftest.$ac_ext <<_ACEOF | |
28689 | /* end confdefs.h. */ | |
5294a27e VZ |
28690 | #include <windows.h> |
28691 | ||
01cb68df RG |
28692 | #include <$ac_header> |
28693 | _ACEOF | |
28694 | rm -f conftest.$ac_objext | |
28695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28696 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 28697 | ac_status=$? |
ac1cb8d3 VS |
28698 | grep -v '^ *+' conftest.er1 >conftest.err |
28699 | rm -f conftest.er1 | |
28700 | cat conftest.err >&5 | |
01cb68df RG |
28701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28702 | (exit $ac_status); } && | |
07158944 | 28703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28705 | (eval $ac_try) 2>&5 | |
28706 | ac_status=$? | |
28707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28708 | (exit $ac_status); }; } && | |
28709 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
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); }; }; then | |
5294a27e | 28715 | eval "$as_ac_Header=yes" |
01cb68df RG |
28716 | else |
28717 | echo "$as_me: failed program was:" >&5 | |
28718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28719 | ||
5294a27e | 28720 | eval "$as_ac_Header=no" |
01cb68df | 28721 | fi |
ac1cb8d3 | 28722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
28723 | fi |
28724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
28726 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28727 | cat >>confdefs.h <<_ACEOF | |
28728 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28729 | _ACEOF | |
28730 | ||
28731 | else | |
28732 | ||
5294a27e VZ |
28733 | wxUSE_DISPLAY="no" |
28734 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 28735 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
28736 | |
28737 | fi | |
28738 | ||
28739 | done | |
28740 | ||
a848cd7e SC |
28741 | fi |
28742 | fi | |
28743 | ||
28744 | ||
28745 | USE_OPENGL=0 | |
28746 | if test "$wxUSE_OPENGL" = "yes"; then | |
28747 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28748 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
28749 | elif test "$wxUSE_MSW" = 1; then | |
28750 | OPENGL_LIBS="-lopengl32 -lglu32" | |
28751 | else | |
28752 | ||
28753 | ||
28754 | ac_find_includes= | |
28755 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28756 | do | |
28757 | if test -f "$ac_dir/GL/gl.h"; then | |
28758 | ac_find_includes=$ac_dir | |
28759 | break | |
28760 | fi | |
28761 | done | |
28762 | ||
28763 | if test "$ac_find_includes" != "" ; then | |
28764 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28765 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28766 | ||
28767 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28768 | ac_path_to_include="" | |
28769 | else | |
28770 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
28771 | result=$? | |
28772 | if test $result = 0; then | |
28773 | ac_path_to_include="" | |
28774 | else | |
28775 | ac_path_to_include=" -I$ac_find_includes" | |
28776 | fi | |
28777 | fi | |
28778 | ||
28779 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
28780 | fi | |
28781 | ||
28782 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28783 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28784 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28785 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28787 | fi | |
28788 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28789 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28790 | else | |
28791 | # Is the header compilable? | |
28792 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
28793 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
28794 | cat >conftest.$ac_ext <<_ACEOF | |
28795 | /* confdefs.h. */ | |
28796 | _ACEOF | |
28797 | cat confdefs.h >>conftest.$ac_ext | |
28798 | cat >>conftest.$ac_ext <<_ACEOF | |
28799 | /* end confdefs.h. */ | |
28800 | $ac_includes_default | |
28801 | #include <GL/gl.h> | |
28802 | _ACEOF | |
28803 | rm -f conftest.$ac_objext | |
28804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28805 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28806 | ac_status=$? |
ac1cb8d3 VS |
28807 | grep -v '^ *+' conftest.er1 >conftest.err |
28808 | rm -f conftest.er1 | |
28809 | cat conftest.err >&5 | |
a848cd7e SC |
28810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28811 | (exit $ac_status); } && | |
07158944 | 28812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28814 | (eval $ac_try) 2>&5 | |
28815 | ac_status=$? | |
28816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28817 | (exit $ac_status); }; } && | |
28818 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28820 | (eval $ac_try) 2>&5 | |
28821 | ac_status=$? | |
28822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28823 | (exit $ac_status); }; }; then | |
28824 | ac_header_compiler=yes | |
28825 | else | |
28826 | echo "$as_me: failed program was:" >&5 | |
28827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28828 | ||
28829 | ac_header_compiler=no | |
28830 | fi | |
ac1cb8d3 | 28831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28832 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28833 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28834 | ||
28835 | # Is the header present? | |
28836 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
28837 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
28838 | cat >conftest.$ac_ext <<_ACEOF | |
28839 | /* confdefs.h. */ | |
28840 | _ACEOF | |
28841 | cat confdefs.h >>conftest.$ac_ext | |
28842 | cat >>conftest.$ac_ext <<_ACEOF | |
28843 | /* end confdefs.h. */ | |
28844 | #include <GL/gl.h> | |
28845 | _ACEOF | |
28846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28848 | ac_status=$? | |
28849 | grep -v '^ *+' conftest.er1 >conftest.err | |
28850 | rm -f conftest.er1 | |
28851 | cat conftest.err >&5 | |
28852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28853 | (exit $ac_status); } >/dev/null; then | |
28854 | if test -s conftest.err; then | |
28855 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28857 | else |
28858 | ac_cpp_err= | |
28859 | fi | |
28860 | else | |
28861 | ac_cpp_err=yes | |
28862 | fi | |
28863 | if test -z "$ac_cpp_err"; then | |
28864 | ac_header_preproc=yes | |
28865 | else | |
28866 | echo "$as_me: failed program was:" >&5 | |
28867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28868 | ||
28869 | ac_header_preproc=no | |
28870 | fi | |
28871 | rm -f conftest.err conftest.$ac_ext | |
28872 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28873 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28874 | ||
28875 | # So? What about this header? | |
ac1cb8d3 VS |
28876 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28877 | yes:no: ) | |
a848cd7e SC |
28878 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28879 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28880 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
28881 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
28882 | ac_header_preproc=yes | |
a848cd7e | 28883 | ;; |
ac1cb8d3 | 28884 | no:yes:* ) |
a848cd7e SC |
28885 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
28886 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28887 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
28888 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
28889 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
28890 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
28891 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28892 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28893 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
28894 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28895 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
28896 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28897 | ( |
28898 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28899 | ## ----------------------------------------- ## |
28900 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28901 | ## ----------------------------------------- ## | |
a848cd7e SC |
28902 | _ASBOX |
28903 | ) | | |
28904 | sed "s/^/$as_me: WARNING: /" >&2 | |
28905 | ;; | |
28906 | esac | |
28907 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28908 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28909 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28911 | else | |
28912 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
28913 | fi | |
28914 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28915 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28916 | ||
28917 | fi | |
28918 | if test $ac_cv_header_GL_gl_h = yes; then | |
28919 | ||
28920 | found_gl=0 | |
28921 | ||
28922 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
28923 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
28924 | ||
28925 | ac_find_libraries= | |
28926 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28927 | do | |
28928 | for ac_extension in a so sl dylib; do | |
28929 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
28930 | ac_find_libraries=$ac_dir | |
28931 | break 2 | |
28932 | fi | |
28933 | done | |
28934 | done | |
28935 | ||
28936 | if test "$ac_find_libraries" != "" ; then | |
28937 | ||
28938 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28939 | result=$? | |
28940 | if test $result = 0; then | |
28941 | ac_path_to_link="" | |
28942 | else | |
28943 | ac_path_to_link=" -L$ac_find_libraries" | |
28944 | fi | |
28945 | ||
28946 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28947 | LDFLAGS_GL="$ac_path_to_link" | |
28948 | fi | |
28949 | ||
28950 | ||
28951 | ac_find_libraries= | |
28952 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28953 | do | |
28954 | for ac_extension in a so sl dylib; do | |
28955 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28956 | ac_find_libraries=$ac_dir | |
28957 | break 2 | |
28958 | fi | |
28959 | done | |
28960 | done | |
28961 | ||
28962 | if test "$ac_find_libraries" != "" ; then | |
28963 | ||
28964 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28965 | result=$? | |
28966 | if test $result = 0; then | |
28967 | ac_path_to_link="" | |
28968 | else | |
28969 | ac_path_to_link=" -L$ac_find_libraries" | |
28970 | fi | |
28971 | ||
28972 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
28973 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
28974 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28975 | fi | |
28976 | ||
28977 | found_gl=1 | |
28978 | OPENGL_LIBS="-lGL -lGLU" | |
28979 | echo "$as_me:$LINENO: result: yes" >&5 | |
28980 | echo "${ECHO_T}yes" >&6 | |
28981 | fi | |
28982 | fi | |
28983 | ||
28984 | if test "$found_gl" != 1; then | |
28985 | echo "$as_me:$LINENO: result: no" >&5 | |
28986 | echo "${ECHO_T}no" >&6 | |
28987 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
28988 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
28989 | ||
28990 | ac_find_libraries= | |
28991 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28992 | do | |
28993 | for ac_extension in a so sl dylib; do | |
28994 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
28995 | ac_find_libraries=$ac_dir | |
28996 | break 2 | |
28997 | fi | |
28998 | done | |
28999 | done | |
29000 | ||
29001 | if test "$ac_find_libraries" != "" ; then | |
29002 | ||
29003 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
29004 | result=$? | |
29005 | if test $result = 0; then | |
29006 | ac_path_to_link="" | |
29007 | else | |
29008 | ac_path_to_link=" -L$ac_find_libraries" | |
29009 | fi | |
29010 | ||
29011 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
29012 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
29013 | echo "$as_me:$LINENO: result: yes" >&5 | |
29014 | echo "${ECHO_T}yes" >&6 | |
29015 | else | |
29016 | echo "$as_me:$LINENO: result: no" >&5 | |
29017 | echo "${ECHO_T}no" >&6 | |
29018 | fi | |
29019 | fi | |
29020 | ||
29021 | fi | |
29022 | ||
29023 | ||
29024 | ||
29025 | if test "x$OPENGL_LIBS" = "x"; then | |
29026 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
29027 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
29028 | { (exit 1); exit 1; }; } | |
29029 | fi | |
29030 | fi | |
29031 | ||
29032 | if test "$wxUSE_OPENGL" = "yes"; then | |
29033 | USE_OPENGL=1 | |
29034 | cat >>confdefs.h <<\_ACEOF | |
29035 | #define wxUSE_OPENGL 1 | |
29036 | _ACEOF | |
29037 | ||
29038 | cat >>confdefs.h <<\_ACEOF | |
29039 | #define wxUSE_GLCANVAS 1 | |
29040 | _ACEOF | |
29041 | ||
29042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
29043 | fi | |
29044 | fi | |
29045 | ||
a848cd7e SC |
29046 | |
29047 | if test -n "$TOOLKIT" ; then | |
29048 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
29049 | fi | |
29050 | ||
a848cd7e SC |
29051 | |
29052 | ||
29053 | if test "$wxUSE_SHARED" = "yes"; then | |
29054 | case "${host}" in | |
29055 | *-pc-msdosdjgpp ) | |
29056 | wxUSE_SHARED=no | |
29057 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
29058 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
29059 | ;; | |
29060 | esac | |
29061 | fi | |
29062 | ||
a848cd7e | 29063 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
29064 | |
29065 | ||
29066 | found_versioning=no | |
29067 | ||
29068 | ||
29069 | if test $found_versioning = no ; then | |
29070 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
29071 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
29072 | if test "${wx_cv_version_script+set}" = set; then | |
29073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29074 | else | |
29075 | ||
29076 | echo "VER_1 { *; };" >conftest.sym | |
29077 | echo "int main() { return 0; }" >conftest.cpp | |
29078 | ||
29079 | if { ac_try=' | |
29080 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
29081 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
29082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29083 | (eval $ac_try) 2>&5 | |
29084 | ac_status=$? | |
29085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29086 | (exit $ac_status); }; } ; then | |
29087 | if test -s conftest.stderr ; then | |
29088 | wx_cv_version_script=no | |
29089 | else | |
29090 | wx_cv_version_script=yes | |
29091 | fi | |
29092 | else | |
29093 | wx_cv_version_script=no | |
29094 | fi | |
29095 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
29096 | ||
29097 | fi | |
29098 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
29099 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
29100 | if test $wx_cv_version_script = yes ; then | |
29101 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
29102 | fi | |
29103 | fi | |
29104 | ||
29105 | ||
29106 | case "${host}" in | |
29107 | *-*-linux* | *-*-gnu* ) | |
29108 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29109 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29110 | ;; |
29111 | ||
29112 | *-*-solaris2* ) | |
29113 | if test "$GCC" = yes ; then | |
29114 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
29115 | ||
29116 | saveLdflags="$LDFLAGS" | |
29117 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
29118 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
29119 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
29120 | cat >conftest.$ac_ext <<_ACEOF | |
29121 | /* confdefs.h. */ | |
29122 | _ACEOF | |
29123 | cat confdefs.h >>conftest.$ac_ext | |
29124 | cat >>conftest.$ac_ext <<_ACEOF | |
29125 | /* end confdefs.h. */ | |
29126 | ||
29127 | int | |
29128 | main () | |
29129 | { | |
29130 | ||
29131 | ; | |
29132 | return 0; | |
29133 | } | |
29134 | _ACEOF | |
29135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29137 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29138 | ac_status=$? |
ac1cb8d3 VS |
29139 | grep -v '^ *+' conftest.er1 >conftest.err |
29140 | rm -f conftest.er1 | |
29141 | cat conftest.err >&5 | |
a848cd7e SC |
29142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29143 | (exit $ac_status); } && | |
07158944 | 29144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29146 | (eval $ac_try) 2>&5 | |
29147 | ac_status=$? | |
29148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29149 | (exit $ac_status); }; } && | |
29150 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29152 | (eval $ac_try) 2>&5 | |
29153 | ac_status=$? | |
29154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29155 | (exit $ac_status); }; }; then | |
29156 | ||
29157 | echo "$as_me:$LINENO: result: yes" >&5 | |
29158 | echo "${ECHO_T}yes" >&6 | |
29159 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 29160 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
29161 | |
29162 | else | |
29163 | echo "$as_me: failed program was:" >&5 | |
29164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29165 | ||
29166 | ||
29167 | echo "$as_me:$LINENO: result: no" >&5 | |
29168 | echo "${ECHO_T}no" >&6 | |
29169 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
29170 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
29171 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
29172 | cat >conftest.$ac_ext <<_ACEOF | |
29173 | /* confdefs.h. */ | |
29174 | _ACEOF | |
29175 | cat confdefs.h >>conftest.$ac_ext | |
29176 | cat >>conftest.$ac_ext <<_ACEOF | |
29177 | /* end confdefs.h. */ | |
29178 | ||
29179 | int | |
29180 | main () | |
29181 | { | |
29182 | ||
29183 | ; | |
29184 | return 0; | |
29185 | } | |
29186 | _ACEOF | |
29187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29190 | ac_status=$? |
ac1cb8d3 VS |
29191 | grep -v '^ *+' conftest.er1 >conftest.err |
29192 | rm -f conftest.er1 | |
29193 | cat conftest.err >&5 | |
a848cd7e SC |
29194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29195 | (exit $ac_status); } && | |
07158944 | 29196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29198 | (eval $ac_try) 2>&5 | |
29199 | ac_status=$? | |
29200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29201 | (exit $ac_status); }; } && | |
29202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29204 | (eval $ac_try) 2>&5 | |
29205 | ac_status=$? | |
29206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29207 | (exit $ac_status); }; }; then | |
29208 | ||
ffa0583f | 29209 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 29210 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
29211 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
29212 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
29213 | ||
a848cd7e SC |
29214 | else |
29215 | echo "$as_me: failed program was:" >&5 | |
29216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29217 | ||
29218 | ||
29219 | echo "$as_me:$LINENO: result: no" >&5 | |
29220 | echo "${ECHO_T}no" >&6 | |
29221 | ||
29222 | fi | |
ac1cb8d3 VS |
29223 | rm -f conftest.err conftest.$ac_objext \ |
29224 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29225 | |
29226 | fi | |
ac1cb8d3 VS |
29227 | rm -f conftest.err conftest.$ac_objext \ |
29228 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29229 | LDFLAGS="$saveLdflags" |
29230 | else | |
a848cd7e | 29231 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 29232 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
29233 | fi |
29234 | ;; | |
29235 | ||
29236 | powerpc-*-darwin* ) | |
29237 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
29238 | cat <<EOF >change-install-names | |
29239 | #!/bin/sh | |
29240 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
29241 | inst_cmd="install_name_tool " | |
29242 | for i in \${libnames} ; do | |
29243 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
29244 | done | |
29245 | \${inst_cmd} \${3} | |
29246 | EOF | |
29247 | chmod +x change-install-names | |
29248 | ;; | |
29249 | ||
29250 | *-*-cygwin* | *-*-mingw32* ) | |
29251 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
29252 | ;; | |
29253 | ||
81f90336 MW |
29254 | *-*-hpux* ) |
29255 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
29256 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
29257 | ;; | |
29258 | ||
a848cd7e | 29259 | esac |
ceec2216 | 29260 | |
ffa0583f RL |
29261 | if test $wxUSE_RPATH = "no"; then |
29262 | SAMPLES_RPATH_FLAG='' | |
29263 | SAMPLES_RPATH_POSTLINK='' | |
29264 | WXCONFIG_RPATH='' | |
29265 | fi | |
29266 | ||
29267 | SHARED=1 | |
29268 | ||
29269 | else | |
29270 | ||
ceec2216 RL |
29271 | config_linkage_component="-static" |
29272 | SHARED=0 | |
ffa0583f | 29273 | |
ceec2216 | 29274 | fi |
a848cd7e | 29275 | |
a848cd7e | 29276 | |
ceec2216 RL |
29277 | UNICODE=0 |
29278 | lib_unicode_suffix= | |
29279 | WX_CHARTYPE="ansi" | |
29280 | if test "$wxUSE_UNICODE" = "yes"; then | |
29281 | lib_unicode_suffix=u | |
29282 | WX_CHARTYPE="unicode" | |
29283 | UNICODE=1 | |
a848cd7e SC |
29284 | fi |
29285 | ||
ceec2216 RL |
29286 | lib_debug_suffix= |
29287 | WX_DEBUGTYPE="release" | |
29288 | DEBUG_FLAG=0 | |
29289 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
29290 | lib_debug_suffix=d | |
29291 | WX_DEBUGTYPE="debug" | |
29292 | DEBUG_FLAG=1 | |
29293 | fi | |
a848cd7e | 29294 | |
ceec2216 RL |
29295 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
29296 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 29297 | |
ceec2216 RL |
29298 | DEBUG_INFO=0 |
29299 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
29300 | DEBUG_INFO=1 | |
29301 | fi | |
a848cd7e | 29302 | |
ceec2216 | 29303 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 29304 | |
ceec2216 | 29305 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 29306 | |
ceec2216 | 29307 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 29308 | |
ceec2216 RL |
29309 | if test "$cross_compiling" = "yes"; then |
29310 | HOST_SUFFIX="-$host_alias" | |
29311 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
29312 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
29313 | fi |
29314 | ||
dd21ced8 | 29315 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
29316 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
29317 | ||
29318 | ||
29319 | ||
a848cd7e | 29320 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
29321 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
29322 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 29323 | |
a848cd7e | 29324 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
29325 | |
29326 | # Extract the first word of "Rez", so it can be a program name with args. | |
29327 | set dummy Rez; ac_word=$2 | |
29328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29330 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
29331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29332 | else | |
29333 | if test -n "$RESCOMP"; then | |
29334 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
29335 | else | |
29336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29337 | for as_dir in $PATH | |
29338 | do | |
29339 | IFS=$as_save_IFS | |
29340 | test -z "$as_dir" && as_dir=. | |
29341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29343 | ac_cv_prog_RESCOMP="Rez" | |
29344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29345 | break 2 | |
29346 | fi | |
29347 | done | |
29348 | done | |
29349 | ||
29350 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
29351 | fi | |
29352 | fi | |
29353 | RESCOMP=$ac_cv_prog_RESCOMP | |
29354 | if test -n "$RESCOMP"; then | |
29355 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
29356 | echo "${ECHO_T}$RESCOMP" >&6 | |
29357 | else | |
29358 | echo "$as_me:$LINENO: result: no" >&5 | |
29359 | echo "${ECHO_T}no" >&6 | |
29360 | fi | |
29361 | ||
29362 | # Extract the first word of "DeRez", so it can be a program name with args. | |
29363 | set dummy DeRez; ac_word=$2 | |
29364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29366 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
29367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29368 | else | |
29369 | if test -n "$DEREZ"; then | |
29370 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
29371 | else | |
29372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29373 | for as_dir in $PATH | |
29374 | do | |
29375 | IFS=$as_save_IFS | |
29376 | test -z "$as_dir" && as_dir=. | |
29377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29379 | ac_cv_prog_DEREZ="DeRez" | |
29380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29381 | break 2 | |
29382 | fi | |
29383 | done | |
29384 | done | |
29385 | ||
29386 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
29387 | fi | |
29388 | fi | |
29389 | DEREZ=$ac_cv_prog_DEREZ | |
29390 | if test -n "$DEREZ"; then | |
29391 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
29392 | echo "${ECHO_T}$DEREZ" >&6 | |
29393 | else | |
29394 | echo "$as_me:$LINENO: result: no" >&5 | |
29395 | echo "${ECHO_T}no" >&6 | |
29396 | fi | |
29397 | ||
29398 | # Extract the first word of "SetFile", so it can be a program name with args. | |
29399 | set dummy SetFile; ac_word=$2 | |
29400 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29402 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
29403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29404 | else | |
29405 | if test -n "$SETFILE"; then | |
29406 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
29407 | else | |
29408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29409 | for as_dir in $PATH | |
29410 | do | |
29411 | IFS=$as_save_IFS | |
29412 | test -z "$as_dir" && as_dir=. | |
29413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29415 | ac_cv_prog_SETFILE="SetFile" | |
29416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29417 | break 2 | |
29418 | fi | |
29419 | done | |
29420 | done | |
29421 | ||
29422 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
29423 | fi | |
29424 | fi | |
29425 | SETFILE=$ac_cv_prog_SETFILE | |
29426 | if test -n "$SETFILE"; then | |
29427 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
29428 | echo "${ECHO_T}$SETFILE" >&6 | |
29429 | else | |
29430 | echo "$as_me:$LINENO: result: no" >&5 | |
29431 | echo "${ECHO_T}no" >&6 | |
29432 | fi | |
29433 | ||
29434 | ||
29435 | MACSETFILE="\$(SETFILE)" | |
29436 | ||
29437 | if test "$wxUSE_MAC" = 1; then | |
29438 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
29439 | ||
29440 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29441 | else | |
29442 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
29443 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
29444 | fi | |
29445 | else | |
ffa0583f RL |
29446 | MACSETFILE="@true" |
29447 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
29448 | |
29449 | if test "$wxUSE_PM" = 1; then | |
29450 | MACRESCOMP="emxbind -ep" | |
29451 | else | |
ffa0583f | 29452 | MACRESCOMP="@true" |
a848cd7e SC |
29453 | fi |
29454 | fi | |
29455 | ||
29456 | ||
29457 | ||
29458 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
29459 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
29460 | if test "${ac_cv_type_mode_t+set}" = set; then | |
29461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29462 | else | |
29463 | cat >conftest.$ac_ext <<_ACEOF | |
29464 | /* confdefs.h. */ | |
29465 | _ACEOF | |
29466 | cat confdefs.h >>conftest.$ac_ext | |
29467 | cat >>conftest.$ac_ext <<_ACEOF | |
29468 | /* end confdefs.h. */ | |
29469 | $ac_includes_default | |
29470 | int | |
29471 | main () | |
29472 | { | |
29473 | if ((mode_t *) 0) | |
29474 | return 0; | |
29475 | if (sizeof (mode_t)) | |
29476 | return 0; | |
29477 | ; | |
29478 | return 0; | |
29479 | } | |
29480 | _ACEOF | |
29481 | rm -f conftest.$ac_objext | |
29482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29484 | ac_status=$? |
ac1cb8d3 VS |
29485 | grep -v '^ *+' conftest.er1 >conftest.err |
29486 | rm -f conftest.er1 | |
29487 | cat conftest.err >&5 | |
a848cd7e SC |
29488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29489 | (exit $ac_status); } && | |
07158944 | 29490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29492 | (eval $ac_try) 2>&5 | |
29493 | ac_status=$? | |
29494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29495 | (exit $ac_status); }; } && | |
29496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29498 | (eval $ac_try) 2>&5 | |
29499 | ac_status=$? | |
29500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29501 | (exit $ac_status); }; }; then | |
29502 | ac_cv_type_mode_t=yes | |
29503 | else | |
29504 | echo "$as_me: failed program was:" >&5 | |
29505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29506 | ||
29507 | ac_cv_type_mode_t=no | |
29508 | fi | |
ac1cb8d3 | 29509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29510 | fi |
29511 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
29512 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
29513 | if test $ac_cv_type_mode_t = yes; then | |
29514 | : | |
29515 | else | |
29516 | ||
29517 | cat >>confdefs.h <<_ACEOF | |
29518 | #define mode_t int | |
29519 | _ACEOF | |
29520 | ||
29521 | fi | |
29522 | ||
29523 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
29524 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
29525 | if test "${ac_cv_type_off_t+set}" = set; then | |
29526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29527 | else | |
29528 | cat >conftest.$ac_ext <<_ACEOF | |
29529 | /* confdefs.h. */ | |
29530 | _ACEOF | |
29531 | cat confdefs.h >>conftest.$ac_ext | |
29532 | cat >>conftest.$ac_ext <<_ACEOF | |
29533 | /* end confdefs.h. */ | |
29534 | $ac_includes_default | |
29535 | int | |
29536 | main () | |
29537 | { | |
29538 | if ((off_t *) 0) | |
29539 | return 0; | |
29540 | if (sizeof (off_t)) | |
29541 | return 0; | |
29542 | ; | |
29543 | return 0; | |
29544 | } | |
29545 | _ACEOF | |
29546 | rm -f conftest.$ac_objext | |
29547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29549 | ac_status=$? |
ac1cb8d3 VS |
29550 | grep -v '^ *+' conftest.er1 >conftest.err |
29551 | rm -f conftest.er1 | |
29552 | cat conftest.err >&5 | |
a848cd7e SC |
29553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29554 | (exit $ac_status); } && | |
07158944 | 29555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29557 | (eval $ac_try) 2>&5 | |
29558 | ac_status=$? | |
29559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29560 | (exit $ac_status); }; } && | |
29561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29563 | (eval $ac_try) 2>&5 | |
29564 | ac_status=$? | |
29565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29566 | (exit $ac_status); }; }; then | |
29567 | ac_cv_type_off_t=yes | |
29568 | else | |
29569 | echo "$as_me: failed program was:" >&5 | |
29570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29571 | ||
29572 | ac_cv_type_off_t=no | |
29573 | fi | |
ac1cb8d3 | 29574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29575 | fi |
29576 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
29577 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
29578 | if test $ac_cv_type_off_t = yes; then | |
29579 | : | |
29580 | else | |
29581 | ||
29582 | cat >>confdefs.h <<_ACEOF | |
29583 | #define off_t long | |
29584 | _ACEOF | |
29585 | ||
29586 | fi | |
29587 | ||
29588 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
29589 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
29590 | if test "${ac_cv_type_pid_t+set}" = set; then | |
29591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29592 | else | |
29593 | cat >conftest.$ac_ext <<_ACEOF | |
29594 | /* confdefs.h. */ | |
29595 | _ACEOF | |
29596 | cat confdefs.h >>conftest.$ac_ext | |
29597 | cat >>conftest.$ac_ext <<_ACEOF | |
29598 | /* end confdefs.h. */ | |
29599 | $ac_includes_default | |
29600 | int | |
29601 | main () | |
29602 | { | |
29603 | if ((pid_t *) 0) | |
29604 | return 0; | |
29605 | if (sizeof (pid_t)) | |
29606 | return 0; | |
29607 | ; | |
29608 | return 0; | |
29609 | } | |
29610 | _ACEOF | |
29611 | rm -f conftest.$ac_objext | |
29612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29613 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29614 | ac_status=$? |
ac1cb8d3 VS |
29615 | grep -v '^ *+' conftest.er1 >conftest.err |
29616 | rm -f conftest.er1 | |
29617 | cat conftest.err >&5 | |
a848cd7e SC |
29618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29619 | (exit $ac_status); } && | |
07158944 | 29620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29622 | (eval $ac_try) 2>&5 | |
29623 | ac_status=$? | |
29624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29625 | (exit $ac_status); }; } && | |
29626 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29628 | (eval $ac_try) 2>&5 | |
29629 | ac_status=$? | |
29630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29631 | (exit $ac_status); }; }; then | |
29632 | ac_cv_type_pid_t=yes | |
29633 | else | |
29634 | echo "$as_me: failed program was:" >&5 | |
29635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29636 | ||
29637 | ac_cv_type_pid_t=no | |
29638 | fi | |
ac1cb8d3 | 29639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29640 | fi |
29641 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
29642 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
29643 | if test $ac_cv_type_pid_t = yes; then | |
29644 | : | |
29645 | else | |
29646 | ||
29647 | cat >>confdefs.h <<_ACEOF | |
29648 | #define pid_t int | |
29649 | _ACEOF | |
29650 | ||
29651 | fi | |
29652 | ||
29653 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
29654 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
29655 | if test "${ac_cv_type_size_t+set}" = set; then | |
29656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29657 | else | |
29658 | cat >conftest.$ac_ext <<_ACEOF | |
29659 | /* confdefs.h. */ | |
29660 | _ACEOF | |
29661 | cat confdefs.h >>conftest.$ac_ext | |
29662 | cat >>conftest.$ac_ext <<_ACEOF | |
29663 | /* end confdefs.h. */ | |
29664 | $ac_includes_default | |
29665 | int | |
29666 | main () | |
29667 | { | |
29668 | if ((size_t *) 0) | |
29669 | return 0; | |
29670 | if (sizeof (size_t)) | |
29671 | return 0; | |
29672 | ; | |
29673 | return 0; | |
29674 | } | |
29675 | _ACEOF | |
29676 | rm -f conftest.$ac_objext | |
29677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29678 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29679 | ac_status=$? |
ac1cb8d3 VS |
29680 | grep -v '^ *+' conftest.er1 >conftest.err |
29681 | rm -f conftest.er1 | |
29682 | cat conftest.err >&5 | |
a848cd7e SC |
29683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29684 | (exit $ac_status); } && | |
07158944 | 29685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29687 | (eval $ac_try) 2>&5 | |
29688 | ac_status=$? | |
29689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29690 | (exit $ac_status); }; } && | |
29691 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29693 | (eval $ac_try) 2>&5 | |
29694 | ac_status=$? | |
29695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29696 | (exit $ac_status); }; }; then | |
29697 | ac_cv_type_size_t=yes | |
29698 | else | |
29699 | echo "$as_me: failed program was:" >&5 | |
29700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29701 | ||
29702 | ac_cv_type_size_t=no | |
29703 | fi | |
ac1cb8d3 | 29704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29705 | fi |
29706 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
29707 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
29708 | if test $ac_cv_type_size_t = yes; then | |
29709 | : | |
29710 | else | |
29711 | ||
29712 | cat >>confdefs.h <<_ACEOF | |
29713 | #define size_t unsigned | |
29714 | _ACEOF | |
29715 | ||
29716 | fi | |
29717 | ||
29718 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
29719 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
29720 | if test "${ac_cv_type_uid_t+set}" = set; then | |
29721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29722 | else | |
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 | #include <sys/types.h> | |
29730 | ||
29731 | _ACEOF | |
29732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
29733 | $EGREP "uid_t" >/dev/null 2>&1; then | |
29734 | ac_cv_type_uid_t=yes | |
29735 | else | |
29736 | ac_cv_type_uid_t=no | |
29737 | fi | |
29738 | rm -f conftest* | |
29739 | ||
29740 | fi | |
29741 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
29742 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
29743 | if test $ac_cv_type_uid_t = no; then | |
29744 | ||
29745 | cat >>confdefs.h <<\_ACEOF | |
29746 | #define uid_t int | |
29747 | _ACEOF | |
29748 | ||
29749 | ||
29750 | cat >>confdefs.h <<\_ACEOF | |
29751 | #define gid_t int | |
29752 | _ACEOF | |
29753 | ||
29754 | fi | |
29755 | ||
29756 | ||
d51253e8 RL |
29757 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
29758 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
29759 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
29760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29761 | else | |
29762 | cat >conftest.$ac_ext <<_ACEOF | |
29763 | /* confdefs.h. */ | |
29764 | _ACEOF | |
29765 | cat confdefs.h >>conftest.$ac_ext | |
29766 | cat >>conftest.$ac_ext <<_ACEOF | |
29767 | /* end confdefs.h. */ | |
29768 | $ac_includes_default | |
29769 | int | |
29770 | main () | |
29771 | { | |
29772 | if ((ssize_t *) 0) | |
29773 | return 0; | |
29774 | if (sizeof (ssize_t)) | |
29775 | return 0; | |
29776 | ; | |
29777 | return 0; | |
29778 | } | |
29779 | _ACEOF | |
29780 | rm -f conftest.$ac_objext | |
29781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29782 | (eval $ac_compile) 2>conftest.er1 | |
29783 | ac_status=$? | |
29784 | grep -v '^ *+' conftest.er1 >conftest.err | |
29785 | rm -f conftest.er1 | |
29786 | cat conftest.err >&5 | |
29787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29788 | (exit $ac_status); } && | |
07158944 | 29789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
29790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29791 | (eval $ac_try) 2>&5 | |
29792 | ac_status=$? | |
29793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29794 | (exit $ac_status); }; } && | |
29795 | { ac_try='test -s conftest.$ac_objext' | |
29796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29797 | (eval $ac_try) 2>&5 | |
29798 | ac_status=$? | |
29799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29800 | (exit $ac_status); }; }; then | |
29801 | ac_cv_type_ssize_t=yes | |
29802 | else | |
29803 | echo "$as_me: failed program was:" >&5 | |
29804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29805 | ||
29806 | ac_cv_type_ssize_t=no | |
29807 | fi | |
29808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29809 | fi | |
29810 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
29811 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
29812 | if test $ac_cv_type_ssize_t = yes; then | |
29813 | ||
29814 | cat >>confdefs.h <<_ACEOF | |
29815 | #define HAVE_SSIZE_T 1 | |
29816 | _ACEOF | |
29817 | ||
29818 | ||
29819 | fi | |
29820 | ||
29821 | ||
a848cd7e SC |
29822 | |
29823 | ||
29824 | ac_ext=cc | |
29825 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29826 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29827 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29828 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29829 | ||
29830 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
29831 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
29832 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
29833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29834 | else | |
29835 | ||
29836 | cat >conftest.$ac_ext <<_ACEOF | |
29837 | /* confdefs.h. */ | |
29838 | _ACEOF | |
29839 | cat confdefs.h >>conftest.$ac_ext | |
29840 | cat >>conftest.$ac_ext <<_ACEOF | |
29841 | /* end confdefs.h. */ | |
29842 | #include <stddef.h> | |
29843 | int | |
29844 | main () | |
29845 | { | |
29846 | ||
29847 | return 0; } | |
29848 | ||
29849 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
29850 | ||
29851 | int bar() { | |
29852 | ||
29853 | ; | |
29854 | return 0; | |
29855 | } | |
29856 | _ACEOF | |
29857 | rm -f conftest.$ac_objext | |
29858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29859 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29860 | ac_status=$? |
ac1cb8d3 VS |
29861 | grep -v '^ *+' conftest.er1 >conftest.err |
29862 | rm -f conftest.er1 | |
29863 | cat conftest.err >&5 | |
a848cd7e SC |
29864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29865 | (exit $ac_status); } && | |
07158944 | 29866 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29868 | (eval $ac_try) 2>&5 | |
29869 | ac_status=$? | |
29870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29871 | (exit $ac_status); }; } && | |
29872 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29874 | (eval $ac_try) 2>&5 | |
29875 | ac_status=$? | |
29876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29877 | (exit $ac_status); }; }; then | |
29878 | wx_cv_size_t_is_uint=no | |
29879 | else | |
29880 | echo "$as_me: failed program was:" >&5 | |
29881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29882 | ||
29883 | wx_cv_size_t_is_uint=yes | |
29884 | ||
29885 | fi | |
ac1cb8d3 | 29886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29887 | |
29888 | ||
29889 | fi | |
29890 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
29891 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
29892 | ||
29893 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
29894 | cat >>confdefs.h <<\_ACEOF | |
29895 | #define wxSIZE_T_IS_UINT 1 | |
29896 | _ACEOF | |
29897 | ||
29898 | else | |
29899 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
29900 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
29901 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
29902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29903 | else | |
29904 | cat >conftest.$ac_ext <<_ACEOF | |
29905 | /* confdefs.h. */ | |
29906 | _ACEOF | |
29907 | cat confdefs.h >>conftest.$ac_ext | |
29908 | cat >>conftest.$ac_ext <<_ACEOF | |
29909 | /* end confdefs.h. */ | |
29910 | #include <stddef.h> | |
29911 | int | |
29912 | main () | |
29913 | { | |
29914 | ||
29915 | return 0; } | |
29916 | ||
29917 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
29918 | ||
29919 | int bar() { | |
29920 | ||
29921 | ; | |
29922 | return 0; | |
29923 | } | |
29924 | _ACEOF | |
29925 | rm -f conftest.$ac_objext | |
29926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29927 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29928 | ac_status=$? |
ac1cb8d3 VS |
29929 | grep -v '^ *+' conftest.er1 >conftest.err |
29930 | rm -f conftest.er1 | |
29931 | cat conftest.err >&5 | |
a848cd7e SC |
29932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29933 | (exit $ac_status); } && | |
07158944 | 29934 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29936 | (eval $ac_try) 2>&5 | |
29937 | ac_status=$? | |
29938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29939 | (exit $ac_status); }; } && | |
29940 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29942 | (eval $ac_try) 2>&5 | |
29943 | ac_status=$? | |
29944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29945 | (exit $ac_status); }; }; then | |
29946 | wx_cv_size_t_is_ulong=no | |
29947 | else | |
29948 | echo "$as_me: failed program was:" >&5 | |
29949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29950 | ||
29951 | wx_cv_size_t_is_ulong=yes | |
29952 | ||
29953 | fi | |
ac1cb8d3 | 29954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29955 | |
29956 | fi | |
29957 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
29958 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
29959 | ||
29960 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
29961 | cat >>confdefs.h <<\_ACEOF | |
29962 | #define wxSIZE_T_IS_ULONG 1 | |
29963 | _ACEOF | |
29964 | ||
29965 | fi | |
29966 | fi | |
29967 | ||
29968 | ac_ext=c | |
29969 | ac_cpp='$CPP $CPPFLAGS' | |
29970 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29971 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29972 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29973 | ||
29974 | ||
29975 | ||
29976 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
29977 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
29978 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
29979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29980 | else | |
29981 | ||
29982 | cat >conftest.$ac_ext <<_ACEOF | |
29983 | /* confdefs.h. */ | |
29984 | _ACEOF | |
29985 | cat confdefs.h >>conftest.$ac_ext | |
29986 | cat >>conftest.$ac_ext <<_ACEOF | |
29987 | /* end confdefs.h. */ | |
29988 | #include <pwd.h> | |
29989 | int | |
29990 | main () | |
29991 | { | |
29992 | ||
29993 | char *p; | |
29994 | struct passwd *pw; | |
29995 | p = pw->pw_gecos; | |
29996 | ||
29997 | ; | |
29998 | return 0; | |
29999 | } | |
30000 | _ACEOF | |
30001 | rm -f conftest.$ac_objext | |
30002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30004 | ac_status=$? |
ac1cb8d3 VS |
30005 | grep -v '^ *+' conftest.er1 >conftest.err |
30006 | rm -f conftest.er1 | |
30007 | cat conftest.err >&5 | |
a848cd7e SC |
30008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30009 | (exit $ac_status); } && | |
07158944 | 30010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30012 | (eval $ac_try) 2>&5 | |
30013 | ac_status=$? | |
30014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30015 | (exit $ac_status); }; } && | |
30016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30018 | (eval $ac_try) 2>&5 | |
30019 | ac_status=$? | |
30020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30021 | (exit $ac_status); }; }; then | |
30022 | ||
30023 | wx_cv_struct_pw_gecos=yes | |
30024 | ||
30025 | else | |
30026 | echo "$as_me: failed program was:" >&5 | |
30027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30028 | ||
30029 | ||
30030 | wx_cv_struct_pw_gecos=no | |
30031 | ||
30032 | ||
30033 | fi | |
ac1cb8d3 | 30034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30035 | |
30036 | ||
30037 | fi | |
30038 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
30039 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
30040 | ||
30041 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
30042 | cat >>confdefs.h <<\_ACEOF | |
30043 | #define HAVE_PW_GECOS 1 | |
30044 | _ACEOF | |
30045 | ||
30046 | fi | |
30047 | ||
30048 | ||
238ecede | 30049 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
a848cd7e SC |
30050 | cat >>confdefs.h <<\_ACEOF |
30051 | #define wxUSE_WCHAR_T 1 | |
30052 | _ACEOF | |
30053 | ||
30054 | ||
30055 | WCSLEN_FOUND=0 | |
30056 | WCHAR_LINK= | |
30057 | ||
30058 | for ac_func in wcslen | |
30059 | do | |
30060 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30061 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30062 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30063 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30065 | else | |
30066 | cat >conftest.$ac_ext <<_ACEOF | |
30067 | /* confdefs.h. */ | |
30068 | _ACEOF | |
30069 | cat confdefs.h >>conftest.$ac_ext | |
30070 | cat >>conftest.$ac_ext <<_ACEOF | |
30071 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30072 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30073 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30074 | #define $ac_func innocuous_$ac_func | |
30075 | ||
a848cd7e SC |
30076 | /* System header to define __stub macros and hopefully few prototypes, |
30077 | which can conflict with char $ac_func (); below. | |
30078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30079 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30080 | |
a848cd7e SC |
30081 | #ifdef __STDC__ |
30082 | # include <limits.h> | |
30083 | #else | |
30084 | # include <assert.h> | |
30085 | #endif | |
ac1cb8d3 VS |
30086 | |
30087 | #undef $ac_func | |
30088 | ||
a848cd7e SC |
30089 | /* Override any gcc2 internal prototype to avoid an error. */ |
30090 | #ifdef __cplusplus | |
30091 | extern "C" | |
30092 | { | |
30093 | #endif | |
30094 | /* We use char because int might match the return type of a gcc2 | |
30095 | builtin and then its argument prototype would still apply. */ | |
30096 | char $ac_func (); | |
30097 | /* The GNU C library defines this for functions which it implements | |
30098 | to always fail with ENOSYS. Some functions are actually named | |
30099 | something starting with __ and the normal name is an alias. */ | |
30100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30101 | choke me | |
30102 | #else | |
30103 | char (*f) () = $ac_func; | |
30104 | #endif | |
30105 | #ifdef __cplusplus | |
30106 | } | |
30107 | #endif | |
30108 | ||
30109 | int | |
30110 | main () | |
30111 | { | |
30112 | return f != $ac_func; | |
30113 | ; | |
30114 | return 0; | |
30115 | } | |
30116 | _ACEOF | |
30117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30119 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30120 | ac_status=$? |
ac1cb8d3 VS |
30121 | grep -v '^ *+' conftest.er1 >conftest.err |
30122 | rm -f conftest.er1 | |
30123 | cat conftest.err >&5 | |
a848cd7e SC |
30124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30125 | (exit $ac_status); } && | |
07158944 | 30126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30128 | (eval $ac_try) 2>&5 | |
30129 | ac_status=$? | |
30130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30131 | (exit $ac_status); }; } && | |
30132 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30134 | (eval $ac_try) 2>&5 | |
30135 | ac_status=$? | |
30136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30137 | (exit $ac_status); }; }; then | |
30138 | eval "$as_ac_var=yes" | |
30139 | else | |
30140 | echo "$as_me: failed program was:" >&5 | |
30141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30142 | ||
30143 | eval "$as_ac_var=no" | |
30144 | fi | |
ac1cb8d3 VS |
30145 | rm -f conftest.err conftest.$ac_objext \ |
30146 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30147 | fi |
30148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30149 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30150 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30151 | cat >>confdefs.h <<_ACEOF | |
30152 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30153 | _ACEOF | |
30154 | WCSLEN_FOUND=1 | |
30155 | fi | |
30156 | done | |
30157 | ||
30158 | ||
30159 | if test "$WCSLEN_FOUND" = 0; then | |
30160 | if test "$TOOLKIT" = "MSW"; then | |
30161 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
30162 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
30163 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
30164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30165 | else | |
30166 | ac_check_lib_save_LIBS=$LIBS | |
30167 | LIBS="-lmsvcrt $LIBS" | |
30168 | cat >conftest.$ac_ext <<_ACEOF | |
30169 | /* confdefs.h. */ | |
30170 | _ACEOF | |
30171 | cat confdefs.h >>conftest.$ac_ext | |
30172 | cat >>conftest.$ac_ext <<_ACEOF | |
30173 | /* end confdefs.h. */ | |
30174 | ||
30175 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30176 | #ifdef __cplusplus | |
30177 | extern "C" | |
30178 | #endif | |
30179 | /* We use char because int might match the return type of a gcc2 | |
30180 | builtin and then its argument prototype would still apply. */ | |
30181 | char wcslen (); | |
30182 | int | |
30183 | main () | |
30184 | { | |
30185 | wcslen (); | |
30186 | ; | |
30187 | return 0; | |
30188 | } | |
30189 | _ACEOF | |
30190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30193 | ac_status=$? |
ac1cb8d3 VS |
30194 | grep -v '^ *+' conftest.er1 >conftest.err |
30195 | rm -f conftest.er1 | |
30196 | cat conftest.err >&5 | |
a848cd7e SC |
30197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30198 | (exit $ac_status); } && | |
07158944 | 30199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30201 | (eval $ac_try) 2>&5 | |
30202 | ac_status=$? | |
30203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30204 | (exit $ac_status); }; } && | |
30205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30207 | (eval $ac_try) 2>&5 | |
30208 | ac_status=$? | |
30209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30210 | (exit $ac_status); }; }; then | |
30211 | ac_cv_lib_msvcrt_wcslen=yes | |
30212 | else | |
30213 | echo "$as_me: failed program was:" >&5 | |
30214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30215 | ||
30216 | ac_cv_lib_msvcrt_wcslen=no | |
30217 | fi | |
ac1cb8d3 VS |
30218 | rm -f conftest.err conftest.$ac_objext \ |
30219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30220 | LIBS=$ac_check_lib_save_LIBS |
30221 | fi | |
30222 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
30223 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
30224 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
30225 | WCHAR_OK=1 | |
30226 | fi | |
30227 | ||
30228 | else | |
30229 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
30230 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
30231 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
30232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30233 | else | |
30234 | ac_check_lib_save_LIBS=$LIBS | |
30235 | LIBS="-lw $LIBS" | |
30236 | cat >conftest.$ac_ext <<_ACEOF | |
30237 | /* confdefs.h. */ | |
30238 | _ACEOF | |
30239 | cat confdefs.h >>conftest.$ac_ext | |
30240 | cat >>conftest.$ac_ext <<_ACEOF | |
30241 | /* end confdefs.h. */ | |
30242 | ||
30243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30244 | #ifdef __cplusplus | |
30245 | extern "C" | |
30246 | #endif | |
30247 | /* We use char because int might match the return type of a gcc2 | |
30248 | builtin and then its argument prototype would still apply. */ | |
30249 | char wcslen (); | |
30250 | int | |
30251 | main () | |
30252 | { | |
30253 | wcslen (); | |
30254 | ; | |
30255 | return 0; | |
30256 | } | |
30257 | _ACEOF | |
30258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30260 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30261 | ac_status=$? |
ac1cb8d3 VS |
30262 | grep -v '^ *+' conftest.er1 >conftest.err |
30263 | rm -f conftest.er1 | |
30264 | cat conftest.err >&5 | |
a848cd7e SC |
30265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30266 | (exit $ac_status); } && | |
07158944 | 30267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30269 | (eval $ac_try) 2>&5 | |
30270 | ac_status=$? | |
30271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30272 | (exit $ac_status); }; } && | |
30273 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30275 | (eval $ac_try) 2>&5 | |
30276 | ac_status=$? | |
30277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30278 | (exit $ac_status); }; }; then | |
30279 | ac_cv_lib_w_wcslen=yes | |
30280 | else | |
30281 | echo "$as_me: failed program was:" >&5 | |
30282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30283 | ||
30284 | ac_cv_lib_w_wcslen=no | |
30285 | fi | |
ac1cb8d3 VS |
30286 | rm -f conftest.err conftest.$ac_objext \ |
30287 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30288 | LIBS=$ac_check_lib_save_LIBS |
30289 | fi | |
30290 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
30291 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
30292 | if test $ac_cv_lib_w_wcslen = yes; then | |
30293 | ||
30294 | WCHAR_LINK=" -lw" | |
30295 | WCSLEN_FOUND=1 | |
30296 | ||
30297 | fi | |
30298 | ||
30299 | fi | |
30300 | fi | |
30301 | ||
30302 | if test "$WCSLEN_FOUND" = 1; then | |
30303 | cat >>confdefs.h <<\_ACEOF | |
30304 | #define HAVE_WCSLEN 1 | |
30305 | _ACEOF | |
30306 | ||
30307 | fi | |
30308 | ||
81f90336 | 30309 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
30310 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
30311 | fi | |
30312 | ||
a848cd7e SC |
30313 | |
30314 | for ac_func in wcsrtombs | |
30315 | do | |
30316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30317 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30319 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30321 | else | |
30322 | cat >conftest.$ac_ext <<_ACEOF | |
30323 | /* confdefs.h. */ | |
30324 | _ACEOF | |
30325 | cat confdefs.h >>conftest.$ac_ext | |
30326 | cat >>conftest.$ac_ext <<_ACEOF | |
30327 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30330 | #define $ac_func innocuous_$ac_func | |
30331 | ||
a848cd7e SC |
30332 | /* System header to define __stub macros and hopefully few prototypes, |
30333 | which can conflict with char $ac_func (); below. | |
30334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30335 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30336 | |
a848cd7e SC |
30337 | #ifdef __STDC__ |
30338 | # include <limits.h> | |
30339 | #else | |
30340 | # include <assert.h> | |
30341 | #endif | |
ac1cb8d3 VS |
30342 | |
30343 | #undef $ac_func | |
30344 | ||
a848cd7e SC |
30345 | /* Override any gcc2 internal prototype to avoid an error. */ |
30346 | #ifdef __cplusplus | |
30347 | extern "C" | |
30348 | { | |
30349 | #endif | |
30350 | /* We use char because int might match the return type of a gcc2 | |
30351 | builtin and then its argument prototype would still apply. */ | |
30352 | char $ac_func (); | |
30353 | /* The GNU C library defines this for functions which it implements | |
30354 | to always fail with ENOSYS. Some functions are actually named | |
30355 | something starting with __ and the normal name is an alias. */ | |
30356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30357 | choke me | |
30358 | #else | |
30359 | char (*f) () = $ac_func; | |
30360 | #endif | |
30361 | #ifdef __cplusplus | |
30362 | } | |
30363 | #endif | |
30364 | ||
30365 | int | |
30366 | main () | |
30367 | { | |
30368 | return f != $ac_func; | |
30369 | ; | |
30370 | return 0; | |
30371 | } | |
30372 | _ACEOF | |
30373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30375 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30376 | ac_status=$? |
ac1cb8d3 VS |
30377 | grep -v '^ *+' conftest.er1 >conftest.err |
30378 | rm -f conftest.er1 | |
30379 | cat conftest.err >&5 | |
a848cd7e SC |
30380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30381 | (exit $ac_status); } && | |
07158944 | 30382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30384 | (eval $ac_try) 2>&5 | |
30385 | ac_status=$? | |
30386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30387 | (exit $ac_status); }; } && | |
30388 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30390 | (eval $ac_try) 2>&5 | |
30391 | ac_status=$? | |
30392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30393 | (exit $ac_status); }; }; then | |
30394 | eval "$as_ac_var=yes" | |
30395 | else | |
30396 | echo "$as_me: failed program was:" >&5 | |
30397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30398 | ||
30399 | eval "$as_ac_var=no" | |
30400 | fi | |
ac1cb8d3 VS |
30401 | rm -f conftest.err conftest.$ac_objext \ |
30402 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30403 | fi |
30404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30406 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30407 | cat >>confdefs.h <<_ACEOF | |
30408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30409 | _ACEOF | |
30410 | ||
30411 | fi | |
30412 | done | |
30413 | ||
30414 | else | |
30415 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
30416 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
30417 | fi | |
30418 | ||
30419 | ||
30420 | ||
30421 | ac_ext=cc | |
30422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30426 | ||
30427 | ||
30428 | ||
30429 | for ac_func in vsnprintf | |
30430 | do | |
30431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30432 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30434 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30436 | else | |
30437 | cat >conftest.$ac_ext <<_ACEOF | |
30438 | /* confdefs.h. */ | |
30439 | _ACEOF | |
30440 | cat confdefs.h >>conftest.$ac_ext | |
30441 | cat >>conftest.$ac_ext <<_ACEOF | |
30442 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30443 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30445 | #define $ac_func innocuous_$ac_func | |
30446 | ||
a848cd7e SC |
30447 | /* System header to define __stub macros and hopefully few prototypes, |
30448 | which can conflict with char $ac_func (); below. | |
30449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30450 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30451 | |
a848cd7e SC |
30452 | #ifdef __STDC__ |
30453 | # include <limits.h> | |
30454 | #else | |
30455 | # include <assert.h> | |
30456 | #endif | |
ac1cb8d3 VS |
30457 | |
30458 | #undef $ac_func | |
30459 | ||
a848cd7e SC |
30460 | /* Override any gcc2 internal prototype to avoid an error. */ |
30461 | #ifdef __cplusplus | |
30462 | extern "C" | |
30463 | { | |
30464 | #endif | |
30465 | /* We use char because int might match the return type of a gcc2 | |
30466 | builtin and then its argument prototype would still apply. */ | |
30467 | char $ac_func (); | |
30468 | /* The GNU C library defines this for functions which it implements | |
30469 | to always fail with ENOSYS. Some functions are actually named | |
30470 | something starting with __ and the normal name is an alias. */ | |
30471 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30472 | choke me | |
30473 | #else | |
30474 | char (*f) () = $ac_func; | |
30475 | #endif | |
30476 | #ifdef __cplusplus | |
30477 | } | |
30478 | #endif | |
30479 | ||
30480 | int | |
30481 | main () | |
30482 | { | |
30483 | return f != $ac_func; | |
30484 | ; | |
30485 | return 0; | |
30486 | } | |
30487 | _ACEOF | |
30488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30490 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30491 | ac_status=$? |
ac1cb8d3 VS |
30492 | grep -v '^ *+' conftest.er1 >conftest.err |
30493 | rm -f conftest.er1 | |
30494 | cat conftest.err >&5 | |
a848cd7e SC |
30495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30496 | (exit $ac_status); } && | |
07158944 | 30497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30499 | (eval $ac_try) 2>&5 | |
30500 | ac_status=$? | |
30501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30502 | (exit $ac_status); }; } && | |
30503 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30505 | (eval $ac_try) 2>&5 | |
30506 | ac_status=$? | |
30507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30508 | (exit $ac_status); }; }; then | |
30509 | eval "$as_ac_var=yes" | |
30510 | else | |
30511 | echo "$as_me: failed program was:" >&5 | |
30512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30513 | ||
30514 | eval "$as_ac_var=no" | |
30515 | fi | |
ac1cb8d3 VS |
30516 | rm -f conftest.err conftest.$ac_objext \ |
30517 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30518 | fi |
30519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30522 | cat >>confdefs.h <<_ACEOF | |
30523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30524 | _ACEOF | |
30525 | ||
30526 | fi | |
30527 | done | |
30528 | ||
30529 | ||
30530 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
30531 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
30532 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
30533 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
30534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30535 | else | |
30536 | ||
30537 | cat >conftest.$ac_ext <<_ACEOF | |
30538 | /* confdefs.h. */ | |
30539 | _ACEOF | |
30540 | cat confdefs.h >>conftest.$ac_ext | |
30541 | cat >>conftest.$ac_ext <<_ACEOF | |
30542 | /* end confdefs.h. */ | |
30543 | ||
30544 | #include <stdio.h> | |
30545 | #include <stdarg.h> | |
30546 | ||
30547 | int | |
30548 | main () | |
30549 | { | |
30550 | ||
30551 | char *buf; | |
30552 | va_list ap; | |
30553 | vsnprintf(buf, 10u, "%s", ap); | |
30554 | ||
30555 | ; | |
30556 | return 0; | |
30557 | } | |
30558 | _ACEOF | |
30559 | rm -f conftest.$ac_objext | |
30560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30561 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30562 | ac_status=$? |
ac1cb8d3 VS |
30563 | grep -v '^ *+' conftest.er1 >conftest.err |
30564 | rm -f conftest.er1 | |
30565 | cat conftest.err >&5 | |
a848cd7e SC |
30566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30567 | (exit $ac_status); } && | |
07158944 | 30568 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30570 | (eval $ac_try) 2>&5 | |
30571 | ac_status=$? | |
30572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30573 | (exit $ac_status); }; } && | |
30574 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30576 | (eval $ac_try) 2>&5 | |
30577 | ac_status=$? | |
30578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30579 | (exit $ac_status); }; }; then | |
30580 | wx_cv_func_vsnprintf_decl=yes | |
30581 | else | |
30582 | echo "$as_me: failed program was:" >&5 | |
30583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30584 | ||
c122b164 DE |
30585 | |
30586 | cat >conftest.$ac_ext <<_ACEOF | |
30587 | /* confdefs.h. */ | |
30588 | _ACEOF | |
30589 | cat confdefs.h >>conftest.$ac_ext | |
30590 | cat >>conftest.$ac_ext <<_ACEOF | |
30591 | /* end confdefs.h. */ | |
30592 | ||
30593 | #include <stdio.h> | |
30594 | #include <stdarg.h> | |
30595 | using namespace std; | |
30596 | ||
30597 | int | |
30598 | main () | |
30599 | { | |
30600 | ||
30601 | char *buf; | |
30602 | va_list ap; | |
30603 | vsnprintf(buf, 10u, "%s", ap); | |
30604 | ||
30605 | ; | |
30606 | return 0; | |
30607 | } | |
30608 | _ACEOF | |
30609 | rm -f conftest.$ac_objext | |
30610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30611 | (eval $ac_compile) 2>conftest.er1 | |
30612 | ac_status=$? | |
30613 | grep -v '^ *+' conftest.er1 >conftest.err | |
30614 | rm -f conftest.er1 | |
30615 | cat conftest.err >&5 | |
30616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30617 | (exit $ac_status); } && | |
07158944 | 30618 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
30619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30620 | (eval $ac_try) 2>&5 | |
30621 | ac_status=$? | |
30622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30623 | (exit $ac_status); }; } && | |
30624 | { ac_try='test -s conftest.$ac_objext' | |
30625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30626 | (eval $ac_try) 2>&5 | |
30627 | ac_status=$? | |
30628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30629 | (exit $ac_status); }; }; then | |
30630 | wx_cv_func_vsnprintf_decl=yes | |
30631 | else | |
30632 | echo "$as_me: failed program was:" >&5 | |
30633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30634 | ||
a848cd7e SC |
30635 | wx_cv_func_vsnprintf_decl=no |
30636 | ||
30637 | fi | |
ac1cb8d3 | 30638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30639 | |
30640 | ||
c122b164 DE |
30641 | fi |
30642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30643 | ||
30644 | ||
a848cd7e SC |
30645 | fi |
30646 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
30647 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
30648 | ||
30649 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
30650 | cat >>confdefs.h <<\_ACEOF | |
30651 | #define HAVE_VSNPRINTF_DECL 1 | |
30652 | _ACEOF | |
30653 | ||
30654 | fi | |
30655 | fi | |
30656 | ||
30657 | if test "$wxUSE_UNICODE" = yes; then | |
30658 | ||
30659 | ||
30660 | ||
fbe47c7b VS |
30661 | |
30662 | ||
30663 | ||
30664 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
30665 | do |
30666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30669 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30671 | else | |
30672 | cat >conftest.$ac_ext <<_ACEOF | |
30673 | /* confdefs.h. */ | |
30674 | _ACEOF | |
30675 | cat confdefs.h >>conftest.$ac_ext | |
30676 | cat >>conftest.$ac_ext <<_ACEOF | |
30677 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30678 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30680 | #define $ac_func innocuous_$ac_func | |
30681 | ||
a848cd7e SC |
30682 | /* System header to define __stub macros and hopefully few prototypes, |
30683 | which can conflict with char $ac_func (); below. | |
30684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30685 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30686 | |
a848cd7e SC |
30687 | #ifdef __STDC__ |
30688 | # include <limits.h> | |
30689 | #else | |
30690 | # include <assert.h> | |
30691 | #endif | |
ac1cb8d3 VS |
30692 | |
30693 | #undef $ac_func | |
30694 | ||
a848cd7e SC |
30695 | /* Override any gcc2 internal prototype to avoid an error. */ |
30696 | #ifdef __cplusplus | |
30697 | extern "C" | |
30698 | { | |
30699 | #endif | |
30700 | /* We use char because int might match the return type of a gcc2 | |
30701 | builtin and then its argument prototype would still apply. */ | |
30702 | char $ac_func (); | |
30703 | /* The GNU C library defines this for functions which it implements | |
30704 | to always fail with ENOSYS. Some functions are actually named | |
30705 | something starting with __ and the normal name is an alias. */ | |
30706 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30707 | choke me | |
30708 | #else | |
30709 | char (*f) () = $ac_func; | |
30710 | #endif | |
30711 | #ifdef __cplusplus | |
30712 | } | |
30713 | #endif | |
30714 | ||
30715 | int | |
30716 | main () | |
30717 | { | |
30718 | return f != $ac_func; | |
30719 | ; | |
30720 | return 0; | |
30721 | } | |
30722 | _ACEOF | |
30723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30725 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30726 | ac_status=$? |
ac1cb8d3 VS |
30727 | grep -v '^ *+' conftest.er1 >conftest.err |
30728 | rm -f conftest.er1 | |
30729 | cat conftest.err >&5 | |
a848cd7e SC |
30730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30731 | (exit $ac_status); } && | |
07158944 | 30732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30734 | (eval $ac_try) 2>&5 | |
30735 | ac_status=$? | |
30736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30737 | (exit $ac_status); }; } && | |
30738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30740 | (eval $ac_try) 2>&5 | |
30741 | ac_status=$? | |
30742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30743 | (exit $ac_status); }; }; then | |
30744 | eval "$as_ac_var=yes" | |
30745 | else | |
30746 | echo "$as_me: failed program was:" >&5 | |
30747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30748 | ||
30749 | eval "$as_ac_var=no" | |
30750 | fi | |
ac1cb8d3 VS |
30751 | rm -f conftest.err conftest.$ac_objext \ |
30752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30753 | fi |
30754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30756 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30757 | cat >>confdefs.h <<_ACEOF | |
30758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30759 | _ACEOF | |
30760 | ||
30761 | fi | |
30762 | done | |
30763 | ||
30764 | ||
30765 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
30766 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
30767 | cat >conftest.$ac_ext <<_ACEOF | |
30768 | /* confdefs.h. */ | |
30769 | _ACEOF | |
30770 | cat confdefs.h >>conftest.$ac_ext | |
30771 | cat >>conftest.$ac_ext <<_ACEOF | |
30772 | /* end confdefs.h. */ | |
30773 | #include <wchar.h> | |
30774 | int | |
30775 | main () | |
30776 | { | |
30777 | &_vsnwprintf; | |
30778 | ; | |
30779 | return 0; | |
30780 | } | |
30781 | _ACEOF | |
30782 | rm -f conftest.$ac_objext | |
30783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30785 | ac_status=$? |
ac1cb8d3 VS |
30786 | grep -v '^ *+' conftest.er1 >conftest.err |
30787 | rm -f conftest.er1 | |
30788 | cat conftest.err >&5 | |
a848cd7e SC |
30789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30790 | (exit $ac_status); } && | |
07158944 | 30791 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30793 | (eval $ac_try) 2>&5 | |
30794 | ac_status=$? | |
30795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30796 | (exit $ac_status); }; } && | |
30797 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30799 | (eval $ac_try) 2>&5 | |
30800 | ac_status=$? | |
30801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30802 | (exit $ac_status); }; }; then | |
30803 | echo "$as_me:$LINENO: result: yes" >&5 | |
30804 | echo "${ECHO_T}yes" >&6 | |
30805 | cat >>confdefs.h <<\_ACEOF | |
30806 | #define HAVE__VSNWPRINTF 1 | |
30807 | _ACEOF | |
30808 | ||
30809 | else | |
30810 | echo "$as_me: failed program was:" >&5 | |
30811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30812 | ||
30813 | echo "$as_me:$LINENO: result: no" >&5 | |
30814 | echo "${ECHO_T}no" >&6 | |
30815 | fi | |
ac1cb8d3 | 30816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
30817 | fi |
30818 | ||
30819 | ac_ext=c | |
30820 | ac_cpp='$CPP $CPPFLAGS' | |
30821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30824 | ||
30825 | ||
30826 | ||
30827 | ||
30828 | if test "$TOOLKIT" != "MSW"; then | |
30829 | ||
30830 | ||
30831 | ||
30832 | ||
30833 | ac_ext=cc | |
30834 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30835 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30836 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30837 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30838 | ||
30839 | ||
30840 | ||
30841 | ||
30842 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
30843 | if test "${with_libiconv_prefix+set}" = set; then | |
30844 | withval="$with_libiconv_prefix" | |
30845 | ||
30846 | for dir in `echo "$withval" | tr : ' '`; do | |
30847 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
30848 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
30849 | done | |
30850 | ||
30851 | fi; | |
30852 | ||
30853 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
30854 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
30855 | if test "${am_cv_func_iconv+set}" = set; then | |
30856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30857 | else | |
30858 | ||
30859 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
30860 | am_cv_lib_iconv=no | |
30861 | cat >conftest.$ac_ext <<_ACEOF | |
30862 | /* confdefs.h. */ | |
30863 | _ACEOF | |
30864 | cat confdefs.h >>conftest.$ac_ext | |
30865 | cat >>conftest.$ac_ext <<_ACEOF | |
30866 | /* end confdefs.h. */ | |
30867 | #include <stdlib.h> | |
30868 | #include <iconv.h> | |
30869 | int | |
30870 | main () | |
30871 | { | |
30872 | iconv_t cd = iconv_open("",""); | |
30873 | iconv(cd,NULL,NULL,NULL,NULL); | |
30874 | iconv_close(cd); | |
30875 | ; | |
30876 | return 0; | |
30877 | } | |
30878 | _ACEOF | |
30879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30881 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30882 | ac_status=$? |
ac1cb8d3 VS |
30883 | grep -v '^ *+' conftest.er1 >conftest.err |
30884 | rm -f conftest.er1 | |
30885 | cat conftest.err >&5 | |
a848cd7e SC |
30886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30887 | (exit $ac_status); } && | |
07158944 | 30888 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30890 | (eval $ac_try) 2>&5 | |
30891 | ac_status=$? | |
30892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30893 | (exit $ac_status); }; } && | |
30894 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30896 | (eval $ac_try) 2>&5 | |
30897 | ac_status=$? | |
30898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30899 | (exit $ac_status); }; }; then | |
30900 | am_cv_func_iconv=yes | |
30901 | else | |
30902 | echo "$as_me: failed program was:" >&5 | |
30903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30904 | ||
30905 | fi | |
ac1cb8d3 VS |
30906 | rm -f conftest.err conftest.$ac_objext \ |
30907 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30908 | if test "$am_cv_func_iconv" != yes; then |
30909 | am_save_LIBS="$LIBS" | |
30910 | LIBS="$LIBS -liconv" | |
30911 | cat >conftest.$ac_ext <<_ACEOF | |
30912 | /* confdefs.h. */ | |
30913 | _ACEOF | |
30914 | cat confdefs.h >>conftest.$ac_ext | |
30915 | cat >>conftest.$ac_ext <<_ACEOF | |
30916 | /* end confdefs.h. */ | |
30917 | #include <stdlib.h> | |
30918 | #include <iconv.h> | |
30919 | int | |
30920 | main () | |
30921 | { | |
30922 | iconv_t cd = iconv_open("",""); | |
30923 | iconv(cd,NULL,NULL,NULL,NULL); | |
30924 | iconv_close(cd); | |
30925 | ; | |
30926 | return 0; | |
30927 | } | |
30928 | _ACEOF | |
30929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30931 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30932 | ac_status=$? |
ac1cb8d3 VS |
30933 | grep -v '^ *+' conftest.er1 >conftest.err |
30934 | rm -f conftest.er1 | |
30935 | cat conftest.err >&5 | |
a848cd7e SC |
30936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30937 | (exit $ac_status); } && | |
07158944 | 30938 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30940 | (eval $ac_try) 2>&5 | |
30941 | ac_status=$? | |
30942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30943 | (exit $ac_status); }; } && | |
30944 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30946 | (eval $ac_try) 2>&5 | |
30947 | ac_status=$? | |
30948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30949 | (exit $ac_status); }; }; then | |
30950 | am_cv_lib_iconv=yes | |
30951 | am_cv_func_iconv=yes | |
30952 | else | |
30953 | echo "$as_me: failed program was:" >&5 | |
30954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30955 | ||
30956 | fi | |
ac1cb8d3 VS |
30957 | rm -f conftest.err conftest.$ac_objext \ |
30958 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30959 | LIBS="$am_save_LIBS" |
30960 | fi | |
30961 | ||
30962 | fi | |
30963 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
30964 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
30965 | if test "$am_cv_func_iconv" = yes; then | |
30966 | ||
30967 | cat >>confdefs.h <<\_ACEOF | |
30968 | #define HAVE_ICONV 1 | |
30969 | _ACEOF | |
30970 | ||
30971 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
30972 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
30973 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
30974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30975 | else | |
30976 | cat >conftest.$ac_ext <<_ACEOF | |
30977 | /* confdefs.h. */ | |
30978 | _ACEOF | |
30979 | cat confdefs.h >>conftest.$ac_ext | |
30980 | cat >>conftest.$ac_ext <<_ACEOF | |
30981 | /* end confdefs.h. */ | |
30982 | ||
30983 | #include <stdlib.h> | |
30984 | #include <iconv.h> | |
30985 | extern | |
30986 | #ifdef __cplusplus | |
30987 | "C" | |
30988 | #endif | |
30989 | #if defined(__STDC__) || defined(__cplusplus) | |
30990 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
30991 | #else | |
30992 | size_t iconv(); | |
30993 | #endif | |
30994 | ||
30995 | int | |
30996 | main () | |
30997 | { | |
30998 | ||
30999 | ; | |
31000 | return 0; | |
31001 | } | |
31002 | _ACEOF | |
31003 | rm -f conftest.$ac_objext | |
31004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31005 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31006 | ac_status=$? |
ac1cb8d3 VS |
31007 | grep -v '^ *+' conftest.er1 >conftest.err |
31008 | rm -f conftest.er1 | |
31009 | cat conftest.err >&5 | |
a848cd7e SC |
31010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31011 | (exit $ac_status); } && | |
07158944 | 31012 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31014 | (eval $ac_try) 2>&5 | |
31015 | ac_status=$? | |
31016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31017 | (exit $ac_status); }; } && | |
31018 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31020 | (eval $ac_try) 2>&5 | |
31021 | ac_status=$? | |
31022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31023 | (exit $ac_status); }; }; then | |
31024 | wx_cv_func_iconv_const="no" | |
31025 | else | |
31026 | echo "$as_me: failed program was:" >&5 | |
31027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31028 | ||
31029 | wx_cv_func_iconv_const="yes" | |
31030 | ||
31031 | fi | |
ac1cb8d3 | 31032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31033 | |
31034 | fi | |
31035 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
31036 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
31037 | ||
31038 | iconv_const= | |
31039 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
31040 | iconv_const="const" | |
31041 | fi | |
31042 | ||
31043 | ||
31044 | cat >>confdefs.h <<_ACEOF | |
31045 | #define ICONV_CONST $iconv_const | |
31046 | _ACEOF | |
31047 | ||
31048 | fi | |
31049 | LIBICONV= | |
31050 | if test "$am_cv_lib_iconv" = yes; then | |
31051 | LIBICONV="-liconv" | |
31052 | fi | |
31053 | ||
31054 | ||
31055 | LIBS="$LIBICONV $LIBS" | |
31056 | ac_ext=c | |
31057 | ac_cpp='$CPP $CPPFLAGS' | |
31058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31061 | ||
31062 | ||
31063 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
31064 | ||
31065 | for ac_func in sigaction | |
31066 | do | |
31067 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31068 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31069 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31070 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31072 | else | |
31073 | cat >conftest.$ac_ext <<_ACEOF | |
31074 | /* confdefs.h. */ | |
31075 | _ACEOF | |
31076 | cat confdefs.h >>conftest.$ac_ext | |
31077 | cat >>conftest.$ac_ext <<_ACEOF | |
31078 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31079 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31080 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31081 | #define $ac_func innocuous_$ac_func | |
31082 | ||
a848cd7e SC |
31083 | /* System header to define __stub macros and hopefully few prototypes, |
31084 | which can conflict with char $ac_func (); below. | |
31085 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31086 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31087 | |
a848cd7e SC |
31088 | #ifdef __STDC__ |
31089 | # include <limits.h> | |
31090 | #else | |
31091 | # include <assert.h> | |
31092 | #endif | |
ac1cb8d3 VS |
31093 | |
31094 | #undef $ac_func | |
31095 | ||
a848cd7e SC |
31096 | /* Override any gcc2 internal prototype to avoid an error. */ |
31097 | #ifdef __cplusplus | |
31098 | extern "C" | |
31099 | { | |
31100 | #endif | |
31101 | /* We use char because int might match the return type of a gcc2 | |
31102 | builtin and then its argument prototype would still apply. */ | |
31103 | char $ac_func (); | |
31104 | /* The GNU C library defines this for functions which it implements | |
31105 | to always fail with ENOSYS. Some functions are actually named | |
31106 | something starting with __ and the normal name is an alias. */ | |
31107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31108 | choke me | |
31109 | #else | |
31110 | char (*f) () = $ac_func; | |
31111 | #endif | |
31112 | #ifdef __cplusplus | |
31113 | } | |
31114 | #endif | |
31115 | ||
31116 | int | |
31117 | main () | |
31118 | { | |
31119 | return f != $ac_func; | |
31120 | ; | |
31121 | return 0; | |
31122 | } | |
31123 | _ACEOF | |
31124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31126 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31127 | ac_status=$? |
ac1cb8d3 VS |
31128 | grep -v '^ *+' conftest.er1 >conftest.err |
31129 | rm -f conftest.er1 | |
31130 | cat conftest.err >&5 | |
a848cd7e SC |
31131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31132 | (exit $ac_status); } && | |
07158944 | 31133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31135 | (eval $ac_try) 2>&5 | |
31136 | ac_status=$? | |
31137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31138 | (exit $ac_status); }; } && | |
31139 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31141 | (eval $ac_try) 2>&5 | |
31142 | ac_status=$? | |
31143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31144 | (exit $ac_status); }; }; then | |
31145 | eval "$as_ac_var=yes" | |
31146 | else | |
31147 | echo "$as_me: failed program was:" >&5 | |
31148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31149 | ||
31150 | eval "$as_ac_var=no" | |
31151 | fi | |
ac1cb8d3 VS |
31152 | rm -f conftest.err conftest.$ac_objext \ |
31153 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31154 | fi |
31155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31156 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31157 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31158 | cat >>confdefs.h <<_ACEOF | |
31159 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31160 | _ACEOF | |
31161 | ||
31162 | fi | |
31163 | done | |
31164 | ||
31165 | ||
31166 | if test "$ac_cv_func_sigaction" = "no"; then | |
31167 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
31168 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
31169 | wxUSE_ON_FATAL_EXCEPTION=no | |
31170 | fi | |
31171 | ||
31172 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
31173 | ||
31174 | ||
31175 | ac_ext=cc | |
31176 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31177 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31178 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31179 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31180 | ||
31181 | ||
31182 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
31183 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
31184 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
31185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31186 | else | |
31187 | ||
31188 | cat >conftest.$ac_ext <<_ACEOF | |
31189 | /* confdefs.h. */ | |
31190 | _ACEOF | |
31191 | cat confdefs.h >>conftest.$ac_ext | |
31192 | cat >>conftest.$ac_ext <<_ACEOF | |
31193 | /* end confdefs.h. */ | |
31194 | #include <signal.h> | |
31195 | int | |
31196 | main () | |
31197 | { | |
31198 | ||
31199 | extern void testSigHandler(int); | |
31200 | ||
31201 | struct sigaction sa; | |
31202 | sa.sa_handler = testSigHandler; | |
31203 | ||
31204 | ; | |
31205 | return 0; | |
31206 | } | |
31207 | _ACEOF | |
31208 | rm -f conftest.$ac_objext | |
31209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31210 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31211 | ac_status=$? |
ac1cb8d3 VS |
31212 | grep -v '^ *+' conftest.er1 >conftest.err |
31213 | rm -f conftest.er1 | |
31214 | cat conftest.err >&5 | |
a848cd7e SC |
31215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31216 | (exit $ac_status); } && | |
07158944 | 31217 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31219 | (eval $ac_try) 2>&5 | |
31220 | ac_status=$? | |
31221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31222 | (exit $ac_status); }; } && | |
31223 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31225 | (eval $ac_try) 2>&5 | |
31226 | ac_status=$? | |
31227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31228 | (exit $ac_status); }; }; then | |
31229 | ||
31230 | wx_cv_type_sa_handler=int | |
31231 | ||
31232 | else | |
31233 | echo "$as_me: failed program was:" >&5 | |
31234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31235 | ||
31236 | ||
31237 | wx_cv_type_sa_handler=void | |
31238 | ||
31239 | fi | |
ac1cb8d3 | 31240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31241 | |
31242 | fi | |
31243 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
31244 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
31245 | ||
31246 | ac_ext=c | |
31247 | ac_cpp='$CPP $CPPFLAGS' | |
31248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31251 | ||
31252 | ||
31253 | cat >>confdefs.h <<_ACEOF | |
31254 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
31255 | _ACEOF | |
31256 | ||
31257 | fi | |
31258 | fi | |
31259 | ||
eaff0f0d VZ |
31260 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
31261 | ||
31262 | ||
31263 | ac_ext=cc | |
31264 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31265 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31266 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31267 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31268 | ||
31269 | ||
31270 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
31271 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
31272 | if test "${wx_cv_func_backtrace+set}" = set; then | |
31273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31274 | else | |
31275 | ||
31276 | cat >conftest.$ac_ext <<_ACEOF | |
31277 | /* confdefs.h. */ | |
31278 | _ACEOF | |
31279 | cat confdefs.h >>conftest.$ac_ext | |
31280 | cat >>conftest.$ac_ext <<_ACEOF | |
31281 | /* end confdefs.h. */ | |
31282 | #include <execinfo.h> | |
31283 | int | |
31284 | main () | |
31285 | { | |
31286 | ||
31287 | void *trace[1]; | |
31288 | char **messages; | |
31289 | ||
31290 | backtrace(trace, 1); | |
31291 | messages = backtrace_symbols(trace, 1); | |
31292 | ||
31293 | ; | |
31294 | return 0; | |
31295 | } | |
31296 | _ACEOF | |
31297 | rm -f conftest.$ac_objext | |
31298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31299 | (eval $ac_compile) 2>conftest.er1 | |
31300 | ac_status=$? | |
31301 | grep -v '^ *+' conftest.er1 >conftest.err | |
31302 | rm -f conftest.er1 | |
31303 | cat conftest.err >&5 | |
31304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31305 | (exit $ac_status); } && | |
07158944 | 31306 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31308 | (eval $ac_try) 2>&5 | |
31309 | ac_status=$? | |
31310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31311 | (exit $ac_status); }; } && | |
31312 | { ac_try='test -s conftest.$ac_objext' | |
31313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31314 | (eval $ac_try) 2>&5 | |
31315 | ac_status=$? | |
31316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31317 | (exit $ac_status); }; }; then | |
31318 | wx_cv_func_backtrace=yes | |
31319 | else | |
31320 | echo "$as_me: failed program was:" >&5 | |
31321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31322 | ||
31323 | wx_cv_func_backtrace=no | |
31324 | ||
31325 | fi | |
31326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31327 | ||
31328 | ||
31329 | fi | |
31330 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
31331 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
31332 | ||
31333 | ||
31334 | if test "$wx_cv_func_backtrace" = "no"; then | |
31335 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
31336 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
31337 | wxUSE_STACKWALKER=no | |
31338 | else | |
31339 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
31340 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
31341 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
31342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31343 | else | |
31344 | ||
31345 | cat >conftest.$ac_ext <<_ACEOF | |
31346 | /* confdefs.h. */ | |
31347 | _ACEOF | |
31348 | cat confdefs.h >>conftest.$ac_ext | |
31349 | cat >>conftest.$ac_ext <<_ACEOF | |
31350 | /* end confdefs.h. */ | |
31351 | #include <cxxabi.h> | |
31352 | int | |
31353 | main () | |
31354 | { | |
31355 | ||
31356 | int rc; | |
31357 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
31358 | ||
31359 | ; | |
31360 | return 0; | |
31361 | } | |
31362 | _ACEOF | |
31363 | rm -f conftest.$ac_objext | |
31364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31365 | (eval $ac_compile) 2>conftest.er1 | |
31366 | ac_status=$? | |
31367 | grep -v '^ *+' conftest.er1 >conftest.err | |
31368 | rm -f conftest.er1 | |
31369 | cat conftest.err >&5 | |
31370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31371 | (exit $ac_status); } && | |
07158944 | 31372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
31373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31374 | (eval $ac_try) 2>&5 | |
31375 | ac_status=$? | |
31376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31377 | (exit $ac_status); }; } && | |
31378 | { ac_try='test -s conftest.$ac_objext' | |
31379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31380 | (eval $ac_try) 2>&5 | |
31381 | ac_status=$? | |
31382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31383 | (exit $ac_status); }; }; then | |
31384 | wx_cv_func_cxa_demangle=yes | |
31385 | else | |
31386 | echo "$as_me: failed program was:" >&5 | |
31387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31388 | ||
31389 | wx_cv_func_cxa_demangle=no | |
31390 | ||
31391 | fi | |
31392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31393 | ||
31394 | ||
31395 | fi | |
31396 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
31397 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
31398 | ||
31399 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
31400 | cat >>confdefs.h <<\_ACEOF | |
31401 | #define HAVE_CXA_DEMANGLE 1 | |
31402 | _ACEOF | |
31403 | ||
31404 | fi | |
31405 | fi | |
31406 | ||
31407 | ac_ext=c | |
31408 | ac_cpp='$CPP $CPPFLAGS' | |
31409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31412 | ||
31413 | fi | |
31414 | ||
a848cd7e SC |
31415 | |
31416 | ||
31417 | for ac_func in mkstemp mktemp | |
31418 | do | |
31419 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31420 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31421 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31422 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31424 | else | |
31425 | cat >conftest.$ac_ext <<_ACEOF | |
31426 | /* confdefs.h. */ | |
31427 | _ACEOF | |
31428 | cat confdefs.h >>conftest.$ac_ext | |
31429 | cat >>conftest.$ac_ext <<_ACEOF | |
31430 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31431 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31432 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31433 | #define $ac_func innocuous_$ac_func | |
31434 | ||
a848cd7e SC |
31435 | /* System header to define __stub macros and hopefully few prototypes, |
31436 | which can conflict with char $ac_func (); below. | |
31437 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31438 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31439 | |
a848cd7e SC |
31440 | #ifdef __STDC__ |
31441 | # include <limits.h> | |
31442 | #else | |
31443 | # include <assert.h> | |
31444 | #endif | |
ac1cb8d3 VS |
31445 | |
31446 | #undef $ac_func | |
31447 | ||
a848cd7e SC |
31448 | /* Override any gcc2 internal prototype to avoid an error. */ |
31449 | #ifdef __cplusplus | |
31450 | extern "C" | |
31451 | { | |
31452 | #endif | |
31453 | /* We use char because int might match the return type of a gcc2 | |
31454 | builtin and then its argument prototype would still apply. */ | |
31455 | char $ac_func (); | |
31456 | /* The GNU C library defines this for functions which it implements | |
31457 | to always fail with ENOSYS. Some functions are actually named | |
31458 | something starting with __ and the normal name is an alias. */ | |
31459 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31460 | choke me | |
31461 | #else | |
31462 | char (*f) () = $ac_func; | |
31463 | #endif | |
31464 | #ifdef __cplusplus | |
31465 | } | |
31466 | #endif | |
31467 | ||
31468 | int | |
31469 | main () | |
31470 | { | |
31471 | return f != $ac_func; | |
31472 | ; | |
31473 | return 0; | |
31474 | } | |
31475 | _ACEOF | |
31476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31478 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31479 | ac_status=$? |
ac1cb8d3 VS |
31480 | grep -v '^ *+' conftest.er1 >conftest.err |
31481 | rm -f conftest.er1 | |
31482 | cat conftest.err >&5 | |
a848cd7e SC |
31483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31484 | (exit $ac_status); } && | |
07158944 | 31485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31487 | (eval $ac_try) 2>&5 | |
31488 | ac_status=$? | |
31489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31490 | (exit $ac_status); }; } && | |
31491 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31493 | (eval $ac_try) 2>&5 | |
31494 | ac_status=$? | |
31495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31496 | (exit $ac_status); }; }; then | |
31497 | eval "$as_ac_var=yes" | |
31498 | else | |
31499 | echo "$as_me: failed program was:" >&5 | |
31500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31501 | ||
31502 | eval "$as_ac_var=no" | |
31503 | fi | |
ac1cb8d3 VS |
31504 | rm -f conftest.err conftest.$ac_objext \ |
31505 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31506 | fi |
31507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31509 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31510 | cat >>confdefs.h <<_ACEOF | |
31511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31512 | _ACEOF | |
31513 | break | |
31514 | fi | |
31515 | done | |
31516 | ||
31517 | ||
31518 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
31519 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
31520 | if test "${wx_cv_func_statfs+set}" = set; then | |
31521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31522 | else | |
31523 | cat >conftest.$ac_ext <<_ACEOF | |
31524 | /* confdefs.h. */ | |
31525 | _ACEOF | |
31526 | cat confdefs.h >>conftest.$ac_ext | |
31527 | cat >>conftest.$ac_ext <<_ACEOF | |
31528 | /* end confdefs.h. */ | |
31529 | ||
31530 | #if defined(__BSD__) | |
31531 | #include <sys/param.h> | |
31532 | #include <sys/mount.h> | |
31533 | #else | |
31534 | #include <sys/vfs.h> | |
31535 | #endif | |
31536 | ||
31537 | int | |
31538 | main () | |
31539 | { | |
31540 | ||
31541 | long l; | |
31542 | struct statfs fs; | |
31543 | statfs("/", &fs); | |
31544 | l = fs.f_bsize; | |
31545 | l += fs.f_blocks; | |
31546 | l += fs.f_bavail; | |
31547 | ||
31548 | ; | |
31549 | return 0; | |
31550 | } | |
31551 | _ACEOF | |
31552 | rm -f conftest.$ac_objext | |
31553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31554 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31555 | ac_status=$? |
ac1cb8d3 VS |
31556 | grep -v '^ *+' conftest.er1 >conftest.err |
31557 | rm -f conftest.er1 | |
31558 | cat conftest.err >&5 | |
a848cd7e SC |
31559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31560 | (exit $ac_status); } && | |
07158944 | 31561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31563 | (eval $ac_try) 2>&5 | |
31564 | ac_status=$? | |
31565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31566 | (exit $ac_status); }; } && | |
31567 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31569 | (eval $ac_try) 2>&5 | |
31570 | ac_status=$? | |
31571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31572 | (exit $ac_status); }; }; then | |
31573 | ||
31574 | wx_cv_func_statfs=yes | |
31575 | ||
31576 | else | |
31577 | echo "$as_me: failed program was:" >&5 | |
31578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31579 | ||
31580 | ||
31581 | wx_cv_func_statfs=no | |
31582 | ||
31583 | ||
31584 | fi | |
ac1cb8d3 | 31585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31586 | |
31587 | fi | |
31588 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
31589 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
31590 | ||
31591 | if test "$wx_cv_func_statfs" = "yes"; then | |
31592 | wx_cv_type_statvfs_t="struct statfs" | |
31593 | cat >>confdefs.h <<\_ACEOF | |
31594 | #define HAVE_STATFS 1 | |
31595 | _ACEOF | |
31596 | ||
31597 | else | |
31598 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
31599 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
31600 | if test "${wx_cv_func_statvfs+set}" = set; then | |
31601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31602 | else | |
31603 | cat >conftest.$ac_ext <<_ACEOF | |
31604 | /* confdefs.h. */ | |
31605 | _ACEOF | |
31606 | cat confdefs.h >>conftest.$ac_ext | |
31607 | cat >>conftest.$ac_ext <<_ACEOF | |
31608 | /* end confdefs.h. */ | |
31609 | ||
31610 | #include <stddef.h> | |
31611 | #include <sys/statvfs.h> | |
31612 | ||
31613 | int | |
31614 | main () | |
31615 | { | |
31616 | ||
31617 | statvfs("/", NULL); | |
31618 | ||
31619 | ; | |
31620 | return 0; | |
31621 | } | |
31622 | _ACEOF | |
31623 | rm -f conftest.$ac_objext | |
31624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31625 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31626 | ac_status=$? |
ac1cb8d3 VS |
31627 | grep -v '^ *+' conftest.er1 >conftest.err |
31628 | rm -f conftest.er1 | |
31629 | cat conftest.err >&5 | |
a848cd7e SC |
31630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31631 | (exit $ac_status); } && | |
07158944 | 31632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31634 | (eval $ac_try) 2>&5 | |
31635 | ac_status=$? | |
31636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31637 | (exit $ac_status); }; } && | |
31638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31640 | (eval $ac_try) 2>&5 | |
31641 | ac_status=$? | |
31642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31643 | (exit $ac_status); }; }; then | |
31644 | wx_cv_func_statvfs=yes | |
31645 | else | |
31646 | echo "$as_me: failed program was:" >&5 | |
31647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31648 | ||
31649 | wx_cv_func_statvfs=no | |
31650 | ||
31651 | fi | |
ac1cb8d3 | 31652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31653 | |
31654 | fi | |
31655 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
31656 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
31657 | ||
31658 | if test "$wx_cv_func_statvfs" = "yes"; then | |
31659 | ||
31660 | ||
31661 | ac_ext=cc | |
31662 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31666 | ||
31667 | ||
31668 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
31669 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
31670 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
31671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31672 | else | |
31673 | cat >conftest.$ac_ext <<_ACEOF | |
31674 | /* confdefs.h. */ | |
31675 | _ACEOF | |
31676 | cat confdefs.h >>conftest.$ac_ext | |
31677 | cat >>conftest.$ac_ext <<_ACEOF | |
31678 | /* end confdefs.h. */ | |
31679 | ||
31680 | #include <sys/statvfs.h> | |
31681 | ||
31682 | int | |
31683 | main () | |
31684 | { | |
31685 | ||
31686 | long l; | |
31687 | statvfs_t fs; | |
31688 | statvfs("/", &fs); | |
31689 | l = fs.f_bsize; | |
31690 | l += fs.f_blocks; | |
31691 | l += fs.f_bavail; | |
31692 | ||
31693 | ; | |
31694 | return 0; | |
31695 | } | |
31696 | _ACEOF | |
31697 | rm -f conftest.$ac_objext | |
31698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31699 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31700 | ac_status=$? |
ac1cb8d3 VS |
31701 | grep -v '^ *+' conftest.er1 >conftest.err |
31702 | rm -f conftest.er1 | |
31703 | cat conftest.err >&5 | |
a848cd7e SC |
31704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31705 | (exit $ac_status); } && | |
07158944 | 31706 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31708 | (eval $ac_try) 2>&5 | |
31709 | ac_status=$? | |
31710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31711 | (exit $ac_status); }; } && | |
31712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31714 | (eval $ac_try) 2>&5 | |
31715 | ac_status=$? | |
31716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31717 | (exit $ac_status); }; }; then | |
31718 | wx_cv_type_statvfs_t=statvfs_t | |
31719 | else | |
31720 | echo "$as_me: failed program was:" >&5 | |
31721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31722 | ||
31723 | ||
31724 | cat >conftest.$ac_ext <<_ACEOF | |
31725 | /* confdefs.h. */ | |
31726 | _ACEOF | |
31727 | cat confdefs.h >>conftest.$ac_ext | |
31728 | cat >>conftest.$ac_ext <<_ACEOF | |
31729 | /* end confdefs.h. */ | |
31730 | ||
31731 | #include <sys/statvfs.h> | |
31732 | ||
31733 | int | |
31734 | main () | |
31735 | { | |
31736 | ||
31737 | long l; | |
31738 | struct statvfs fs; | |
31739 | statvfs("/", &fs); | |
31740 | l = fs.f_bsize; | |
31741 | l += fs.f_blocks; | |
31742 | l += fs.f_bavail; | |
31743 | ||
31744 | ; | |
31745 | return 0; | |
31746 | } | |
31747 | _ACEOF | |
31748 | rm -f conftest.$ac_objext | |
31749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31751 | ac_status=$? |
ac1cb8d3 VS |
31752 | grep -v '^ *+' conftest.er1 >conftest.err |
31753 | rm -f conftest.er1 | |
31754 | cat conftest.err >&5 | |
a848cd7e SC |
31755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31756 | (exit $ac_status); } && | |
07158944 | 31757 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31759 | (eval $ac_try) 2>&5 | |
31760 | ac_status=$? | |
31761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31762 | (exit $ac_status); }; } && | |
31763 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31765 | (eval $ac_try) 2>&5 | |
31766 | ac_status=$? | |
31767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31768 | (exit $ac_status); }; }; then | |
31769 | wx_cv_type_statvfs_t="struct statvfs" | |
31770 | else | |
31771 | echo "$as_me: failed program was:" >&5 | |
31772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31773 | ||
31774 | wx_cv_type_statvfs_t="unknown" | |
31775 | ||
31776 | fi | |
ac1cb8d3 | 31777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31778 | |
31779 | ||
31780 | fi | |
ac1cb8d3 | 31781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31782 | |
31783 | fi | |
31784 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
31785 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
31786 | ||
31787 | ac_ext=c | |
31788 | ac_cpp='$CPP $CPPFLAGS' | |
31789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31792 | ||
31793 | ||
31794 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31795 | cat >>confdefs.h <<\_ACEOF | |
31796 | #define HAVE_STATVFS 1 | |
31797 | _ACEOF | |
31798 | ||
31799 | fi | |
31800 | else | |
31801 | wx_cv_type_statvfs_t="unknown" | |
31802 | fi | |
31803 | fi | |
31804 | ||
31805 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31806 | cat >>confdefs.h <<_ACEOF | |
31807 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
31808 | _ACEOF | |
31809 | ||
31810 | else | |
31811 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
31812 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
31813 | fi | |
31814 | ||
31815 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
31816 | ||
31817 | ||
31818 | for ac_func in fcntl flock | |
31819 | do | |
31820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31823 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31825 | else | |
31826 | cat >conftest.$ac_ext <<_ACEOF | |
31827 | /* confdefs.h. */ | |
31828 | _ACEOF | |
31829 | cat confdefs.h >>conftest.$ac_ext | |
31830 | cat >>conftest.$ac_ext <<_ACEOF | |
31831 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31834 | #define $ac_func innocuous_$ac_func | |
31835 | ||
a848cd7e SC |
31836 | /* System header to define __stub macros and hopefully few prototypes, |
31837 | which can conflict with char $ac_func (); below. | |
31838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31839 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31840 | |
a848cd7e SC |
31841 | #ifdef __STDC__ |
31842 | # include <limits.h> | |
31843 | #else | |
31844 | # include <assert.h> | |
31845 | #endif | |
ac1cb8d3 VS |
31846 | |
31847 | #undef $ac_func | |
31848 | ||
a848cd7e SC |
31849 | /* Override any gcc2 internal prototype to avoid an error. */ |
31850 | #ifdef __cplusplus | |
31851 | extern "C" | |
31852 | { | |
31853 | #endif | |
31854 | /* We use char because int might match the return type of a gcc2 | |
31855 | builtin and then its argument prototype would still apply. */ | |
31856 | char $ac_func (); | |
31857 | /* The GNU C library defines this for functions which it implements | |
31858 | to always fail with ENOSYS. Some functions are actually named | |
31859 | something starting with __ and the normal name is an alias. */ | |
31860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31861 | choke me | |
31862 | #else | |
31863 | char (*f) () = $ac_func; | |
31864 | #endif | |
31865 | #ifdef __cplusplus | |
31866 | } | |
31867 | #endif | |
31868 | ||
31869 | int | |
31870 | main () | |
31871 | { | |
31872 | return f != $ac_func; | |
31873 | ; | |
31874 | return 0; | |
31875 | } | |
31876 | _ACEOF | |
31877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31879 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31880 | ac_status=$? |
ac1cb8d3 VS |
31881 | grep -v '^ *+' conftest.er1 >conftest.err |
31882 | rm -f conftest.er1 | |
31883 | cat conftest.err >&5 | |
a848cd7e SC |
31884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31885 | (exit $ac_status); } && | |
07158944 | 31886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31888 | (eval $ac_try) 2>&5 | |
31889 | ac_status=$? | |
31890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31891 | (exit $ac_status); }; } && | |
31892 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31894 | (eval $ac_try) 2>&5 | |
31895 | ac_status=$? | |
31896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31897 | (exit $ac_status); }; }; then | |
31898 | eval "$as_ac_var=yes" | |
31899 | else | |
31900 | echo "$as_me: failed program was:" >&5 | |
31901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31902 | ||
31903 | eval "$as_ac_var=no" | |
31904 | fi | |
ac1cb8d3 VS |
31905 | rm -f conftest.err conftest.$ac_objext \ |
31906 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31907 | fi |
31908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31909 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31910 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31911 | cat >>confdefs.h <<_ACEOF | |
31912 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31913 | _ACEOF | |
31914 | break | |
31915 | fi | |
31916 | done | |
31917 | ||
31918 | ||
31919 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
31920 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
31921 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
31922 | wxUSE_SNGLINST_CHECKER=no | |
31923 | fi | |
31924 | fi | |
31925 | ||
31926 | ||
31927 | for ac_func in timegm | |
31928 | do | |
31929 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31930 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31932 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31934 | else | |
31935 | cat >conftest.$ac_ext <<_ACEOF | |
31936 | /* confdefs.h. */ | |
31937 | _ACEOF | |
31938 | cat confdefs.h >>conftest.$ac_ext | |
31939 | cat >>conftest.$ac_ext <<_ACEOF | |
31940 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31941 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31942 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31943 | #define $ac_func innocuous_$ac_func | |
31944 | ||
a848cd7e SC |
31945 | /* System header to define __stub macros and hopefully few prototypes, |
31946 | which can conflict with char $ac_func (); below. | |
31947 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31948 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31949 | |
a848cd7e SC |
31950 | #ifdef __STDC__ |
31951 | # include <limits.h> | |
31952 | #else | |
31953 | # include <assert.h> | |
31954 | #endif | |
ac1cb8d3 VS |
31955 | |
31956 | #undef $ac_func | |
31957 | ||
a848cd7e SC |
31958 | /* Override any gcc2 internal prototype to avoid an error. */ |
31959 | #ifdef __cplusplus | |
31960 | extern "C" | |
31961 | { | |
31962 | #endif | |
31963 | /* We use char because int might match the return type of a gcc2 | |
31964 | builtin and then its argument prototype would still apply. */ | |
31965 | char $ac_func (); | |
31966 | /* The GNU C library defines this for functions which it implements | |
31967 | to always fail with ENOSYS. Some functions are actually named | |
31968 | something starting with __ and the normal name is an alias. */ | |
31969 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31970 | choke me | |
31971 | #else | |
31972 | char (*f) () = $ac_func; | |
31973 | #endif | |
31974 | #ifdef __cplusplus | |
31975 | } | |
31976 | #endif | |
31977 | ||
31978 | int | |
31979 | main () | |
31980 | { | |
31981 | return f != $ac_func; | |
31982 | ; | |
31983 | return 0; | |
31984 | } | |
31985 | _ACEOF | |
31986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31988 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31989 | ac_status=$? |
ac1cb8d3 VS |
31990 | grep -v '^ *+' conftest.er1 >conftest.err |
31991 | rm -f conftest.er1 | |
31992 | cat conftest.err >&5 | |
a848cd7e SC |
31993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31994 | (exit $ac_status); } && | |
07158944 | 31995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31997 | (eval $ac_try) 2>&5 | |
31998 | ac_status=$? | |
31999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32000 | (exit $ac_status); }; } && | |
32001 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32003 | (eval $ac_try) 2>&5 | |
32004 | ac_status=$? | |
32005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32006 | (exit $ac_status); }; }; then | |
32007 | eval "$as_ac_var=yes" | |
32008 | else | |
32009 | echo "$as_me: failed program was:" >&5 | |
32010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32011 | ||
32012 | eval "$as_ac_var=no" | |
32013 | fi | |
ac1cb8d3 VS |
32014 | rm -f conftest.err conftest.$ac_objext \ |
32015 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32016 | fi |
32017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32018 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32019 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32020 | cat >>confdefs.h <<_ACEOF | |
32021 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32022 | _ACEOF | |
32023 | ||
32024 | fi | |
32025 | done | |
32026 | ||
32027 | ||
32028 | ||
32029 | ||
32030 | for ac_func in putenv setenv | |
32031 | do | |
32032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32037 | else | |
32038 | cat >conftest.$ac_ext <<_ACEOF | |
32039 | /* confdefs.h. */ | |
32040 | _ACEOF | |
32041 | cat confdefs.h >>conftest.$ac_ext | |
32042 | cat >>conftest.$ac_ext <<_ACEOF | |
32043 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32046 | #define $ac_func innocuous_$ac_func | |
32047 | ||
a848cd7e SC |
32048 | /* System header to define __stub macros and hopefully few prototypes, |
32049 | which can conflict with char $ac_func (); below. | |
32050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32051 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32052 | |
a848cd7e SC |
32053 | #ifdef __STDC__ |
32054 | # include <limits.h> | |
32055 | #else | |
32056 | # include <assert.h> | |
32057 | #endif | |
ac1cb8d3 VS |
32058 | |
32059 | #undef $ac_func | |
32060 | ||
a848cd7e SC |
32061 | /* Override any gcc2 internal prototype to avoid an error. */ |
32062 | #ifdef __cplusplus | |
32063 | extern "C" | |
32064 | { | |
32065 | #endif | |
32066 | /* We use char because int might match the return type of a gcc2 | |
32067 | builtin and then its argument prototype would still apply. */ | |
32068 | char $ac_func (); | |
32069 | /* The GNU C library defines this for functions which it implements | |
32070 | to always fail with ENOSYS. Some functions are actually named | |
32071 | something starting with __ and the normal name is an alias. */ | |
32072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32073 | choke me | |
32074 | #else | |
32075 | char (*f) () = $ac_func; | |
32076 | #endif | |
32077 | #ifdef __cplusplus | |
32078 | } | |
32079 | #endif | |
32080 | ||
32081 | int | |
32082 | main () | |
32083 | { | |
32084 | return f != $ac_func; | |
32085 | ; | |
32086 | return 0; | |
32087 | } | |
32088 | _ACEOF | |
32089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32091 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32092 | ac_status=$? |
ac1cb8d3 VS |
32093 | grep -v '^ *+' conftest.er1 >conftest.err |
32094 | rm -f conftest.er1 | |
32095 | cat conftest.err >&5 | |
a848cd7e SC |
32096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32097 | (exit $ac_status); } && | |
07158944 | 32098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32100 | (eval $ac_try) 2>&5 | |
32101 | ac_status=$? | |
32102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32103 | (exit $ac_status); }; } && | |
32104 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32106 | (eval $ac_try) 2>&5 | |
32107 | ac_status=$? | |
32108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32109 | (exit $ac_status); }; }; then | |
32110 | eval "$as_ac_var=yes" | |
32111 | else | |
32112 | echo "$as_me: failed program was:" >&5 | |
32113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32114 | ||
32115 | eval "$as_ac_var=no" | |
32116 | fi | |
ac1cb8d3 VS |
32117 | rm -f conftest.err conftest.$ac_objext \ |
32118 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32119 | fi |
32120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32121 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32122 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32123 | cat >>confdefs.h <<_ACEOF | |
32124 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32125 | _ACEOF | |
32126 | break | |
32127 | fi | |
32128 | done | |
32129 | ||
32130 | ||
32131 | HAVE_SOME_SLEEP_FUNC=0 | |
32132 | if test "$USE_BEOS" = 1; then | |
32133 | cat >>confdefs.h <<\_ACEOF | |
32134 | #define HAVE_SLEEP 1 | |
32135 | _ACEOF | |
32136 | ||
32137 | HAVE_SOME_SLEEP_FUNC=1 | |
32138 | fi | |
32139 | ||
32140 | if test "$USE_DARWIN" = 1; then | |
32141 | cat >>confdefs.h <<\_ACEOF | |
32142 | #define HAVE_USLEEP 1 | |
32143 | _ACEOF | |
32144 | ||
32145 | HAVE_SOME_SLEEP_FUNC=1 | |
32146 | fi | |
32147 | ||
32148 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
32149 | POSIX4_LINK= | |
32150 | ||
32151 | for ac_func in nanosleep | |
32152 | do | |
32153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32156 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32158 | else | |
32159 | cat >conftest.$ac_ext <<_ACEOF | |
32160 | /* confdefs.h. */ | |
32161 | _ACEOF | |
32162 | cat confdefs.h >>conftest.$ac_ext | |
32163 | cat >>conftest.$ac_ext <<_ACEOF | |
32164 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32165 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32166 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32167 | #define $ac_func innocuous_$ac_func | |
32168 | ||
a848cd7e SC |
32169 | /* System header to define __stub macros and hopefully few prototypes, |
32170 | which can conflict with char $ac_func (); below. | |
32171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32172 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32173 | |
a848cd7e SC |
32174 | #ifdef __STDC__ |
32175 | # include <limits.h> | |
32176 | #else | |
32177 | # include <assert.h> | |
32178 | #endif | |
ac1cb8d3 VS |
32179 | |
32180 | #undef $ac_func | |
32181 | ||
a848cd7e SC |
32182 | /* Override any gcc2 internal prototype to avoid an error. */ |
32183 | #ifdef __cplusplus | |
32184 | extern "C" | |
32185 | { | |
32186 | #endif | |
32187 | /* We use char because int might match the return type of a gcc2 | |
32188 | builtin and then its argument prototype would still apply. */ | |
32189 | char $ac_func (); | |
32190 | /* The GNU C library defines this for functions which it implements | |
32191 | to always fail with ENOSYS. Some functions are actually named | |
32192 | something starting with __ and the normal name is an alias. */ | |
32193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32194 | choke me | |
32195 | #else | |
32196 | char (*f) () = $ac_func; | |
32197 | #endif | |
32198 | #ifdef __cplusplus | |
32199 | } | |
32200 | #endif | |
32201 | ||
32202 | int | |
32203 | main () | |
32204 | { | |
32205 | return f != $ac_func; | |
32206 | ; | |
32207 | return 0; | |
32208 | } | |
32209 | _ACEOF | |
32210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32212 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32213 | ac_status=$? |
ac1cb8d3 VS |
32214 | grep -v '^ *+' conftest.er1 >conftest.err |
32215 | rm -f conftest.er1 | |
32216 | cat conftest.err >&5 | |
a848cd7e SC |
32217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32218 | (exit $ac_status); } && | |
07158944 | 32219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32221 | (eval $ac_try) 2>&5 | |
32222 | ac_status=$? | |
32223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32224 | (exit $ac_status); }; } && | |
32225 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32227 | (eval $ac_try) 2>&5 | |
32228 | ac_status=$? | |
32229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32230 | (exit $ac_status); }; }; then | |
32231 | eval "$as_ac_var=yes" | |
32232 | else | |
32233 | echo "$as_me: failed program was:" >&5 | |
32234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32235 | ||
32236 | eval "$as_ac_var=no" | |
32237 | fi | |
ac1cb8d3 VS |
32238 | rm -f conftest.err conftest.$ac_objext \ |
32239 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32240 | fi |
32241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32242 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32243 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32244 | cat >>confdefs.h <<_ACEOF | |
32245 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32246 | _ACEOF | |
32247 | cat >>confdefs.h <<\_ACEOF | |
32248 | #define HAVE_NANOSLEEP 1 | |
32249 | _ACEOF | |
32250 | ||
32251 | else | |
32252 | ||
32253 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
32254 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
32255 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
32256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32257 | else | |
32258 | ac_check_lib_save_LIBS=$LIBS | |
32259 | LIBS="-lposix4 $LIBS" | |
32260 | cat >conftest.$ac_ext <<_ACEOF | |
32261 | /* confdefs.h. */ | |
32262 | _ACEOF | |
32263 | cat confdefs.h >>conftest.$ac_ext | |
32264 | cat >>conftest.$ac_ext <<_ACEOF | |
32265 | /* end confdefs.h. */ | |
32266 | ||
32267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32268 | #ifdef __cplusplus | |
32269 | extern "C" | |
32270 | #endif | |
32271 | /* We use char because int might match the return type of a gcc2 | |
32272 | builtin and then its argument prototype would still apply. */ | |
32273 | char nanosleep (); | |
32274 | int | |
32275 | main () | |
32276 | { | |
32277 | nanosleep (); | |
32278 | ; | |
32279 | return 0; | |
32280 | } | |
32281 | _ACEOF | |
32282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32284 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32285 | ac_status=$? |
ac1cb8d3 VS |
32286 | grep -v '^ *+' conftest.er1 >conftest.err |
32287 | rm -f conftest.er1 | |
32288 | cat conftest.err >&5 | |
a848cd7e SC |
32289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32290 | (exit $ac_status); } && | |
07158944 | 32291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32293 | (eval $ac_try) 2>&5 | |
32294 | ac_status=$? | |
32295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32296 | (exit $ac_status); }; } && | |
32297 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32299 | (eval $ac_try) 2>&5 | |
32300 | ac_status=$? | |
32301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32302 | (exit $ac_status); }; }; then | |
32303 | ac_cv_lib_posix4_nanosleep=yes | |
32304 | else | |
32305 | echo "$as_me: failed program was:" >&5 | |
32306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32307 | ||
32308 | ac_cv_lib_posix4_nanosleep=no | |
32309 | fi | |
ac1cb8d3 VS |
32310 | rm -f conftest.err conftest.$ac_objext \ |
32311 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32312 | LIBS=$ac_check_lib_save_LIBS |
32313 | fi | |
32314 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
32315 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
32316 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
32317 | ||
32318 | cat >>confdefs.h <<\_ACEOF | |
32319 | #define HAVE_NANOSLEEP 1 | |
32320 | _ACEOF | |
32321 | ||
32322 | POSIX4_LINK=" -lposix4" | |
32323 | ||
32324 | else | |
32325 | ||
32326 | ||
32327 | for ac_func in usleep | |
32328 | do | |
32329 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32330 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32331 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32332 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32334 | else | |
32335 | cat >conftest.$ac_ext <<_ACEOF | |
32336 | /* confdefs.h. */ | |
32337 | _ACEOF | |
32338 | cat confdefs.h >>conftest.$ac_ext | |
32339 | cat >>conftest.$ac_ext <<_ACEOF | |
32340 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32341 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32342 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32343 | #define $ac_func innocuous_$ac_func | |
32344 | ||
a848cd7e SC |
32345 | /* System header to define __stub macros and hopefully few prototypes, |
32346 | which can conflict with char $ac_func (); below. | |
32347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32348 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32349 | |
a848cd7e SC |
32350 | #ifdef __STDC__ |
32351 | # include <limits.h> | |
32352 | #else | |
32353 | # include <assert.h> | |
32354 | #endif | |
ac1cb8d3 VS |
32355 | |
32356 | #undef $ac_func | |
32357 | ||
a848cd7e SC |
32358 | /* Override any gcc2 internal prototype to avoid an error. */ |
32359 | #ifdef __cplusplus | |
32360 | extern "C" | |
32361 | { | |
32362 | #endif | |
32363 | /* We use char because int might match the return type of a gcc2 | |
32364 | builtin and then its argument prototype would still apply. */ | |
32365 | char $ac_func (); | |
32366 | /* The GNU C library defines this for functions which it implements | |
32367 | to always fail with ENOSYS. Some functions are actually named | |
32368 | something starting with __ and the normal name is an alias. */ | |
32369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32370 | choke me | |
32371 | #else | |
32372 | char (*f) () = $ac_func; | |
32373 | #endif | |
32374 | #ifdef __cplusplus | |
32375 | } | |
32376 | #endif | |
32377 | ||
32378 | int | |
32379 | main () | |
32380 | { | |
32381 | return f != $ac_func; | |
32382 | ; | |
32383 | return 0; | |
32384 | } | |
32385 | _ACEOF | |
32386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32388 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32389 | ac_status=$? |
ac1cb8d3 VS |
32390 | grep -v '^ *+' conftest.er1 >conftest.err |
32391 | rm -f conftest.er1 | |
32392 | cat conftest.err >&5 | |
a848cd7e SC |
32393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32394 | (exit $ac_status); } && | |
07158944 | 32395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32397 | (eval $ac_try) 2>&5 | |
32398 | ac_status=$? | |
32399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32400 | (exit $ac_status); }; } && | |
32401 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32403 | (eval $ac_try) 2>&5 | |
32404 | ac_status=$? | |
32405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32406 | (exit $ac_status); }; }; then | |
32407 | eval "$as_ac_var=yes" | |
32408 | else | |
32409 | echo "$as_me: failed program was:" >&5 | |
32410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32411 | ||
32412 | eval "$as_ac_var=no" | |
32413 | fi | |
ac1cb8d3 VS |
32414 | rm -f conftest.err conftest.$ac_objext \ |
32415 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32416 | fi |
32417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32418 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32419 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32420 | cat >>confdefs.h <<_ACEOF | |
32421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32422 | _ACEOF | |
32423 | cat >>confdefs.h <<\_ACEOF | |
32424 | #define HAVE_USLEEP 1 | |
32425 | _ACEOF | |
32426 | ||
32427 | else | |
32428 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
32429 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
32430 | ||
32431 | fi | |
32432 | done | |
32433 | ||
32434 | ||
32435 | ||
32436 | fi | |
32437 | ||
32438 | ||
32439 | ||
32440 | fi | |
32441 | done | |
32442 | ||
32443 | fi | |
32444 | ||
32445 | ||
32446 | ||
32447 | for ac_func in uname gethostname | |
32448 | do | |
32449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32452 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32454 | else | |
32455 | cat >conftest.$ac_ext <<_ACEOF | |
32456 | /* confdefs.h. */ | |
32457 | _ACEOF | |
32458 | cat confdefs.h >>conftest.$ac_ext | |
32459 | cat >>conftest.$ac_ext <<_ACEOF | |
32460 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32461 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32463 | #define $ac_func innocuous_$ac_func | |
32464 | ||
a848cd7e SC |
32465 | /* System header to define __stub macros and hopefully few prototypes, |
32466 | which can conflict with char $ac_func (); below. | |
32467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32468 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32469 | |
a848cd7e SC |
32470 | #ifdef __STDC__ |
32471 | # include <limits.h> | |
32472 | #else | |
32473 | # include <assert.h> | |
32474 | #endif | |
ac1cb8d3 VS |
32475 | |
32476 | #undef $ac_func | |
32477 | ||
a848cd7e SC |
32478 | /* Override any gcc2 internal prototype to avoid an error. */ |
32479 | #ifdef __cplusplus | |
32480 | extern "C" | |
32481 | { | |
32482 | #endif | |
32483 | /* We use char because int might match the return type of a gcc2 | |
32484 | builtin and then its argument prototype would still apply. */ | |
32485 | char $ac_func (); | |
32486 | /* The GNU C library defines this for functions which it implements | |
32487 | to always fail with ENOSYS. Some functions are actually named | |
32488 | something starting with __ and the normal name is an alias. */ | |
32489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32490 | choke me | |
32491 | #else | |
32492 | char (*f) () = $ac_func; | |
32493 | #endif | |
32494 | #ifdef __cplusplus | |
32495 | } | |
32496 | #endif | |
32497 | ||
32498 | int | |
32499 | main () | |
32500 | { | |
32501 | return f != $ac_func; | |
32502 | ; | |
32503 | return 0; | |
32504 | } | |
32505 | _ACEOF | |
32506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32508 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32509 | ac_status=$? |
ac1cb8d3 VS |
32510 | grep -v '^ *+' conftest.er1 >conftest.err |
32511 | rm -f conftest.er1 | |
32512 | cat conftest.err >&5 | |
a848cd7e SC |
32513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32514 | (exit $ac_status); } && | |
07158944 | 32515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32517 | (eval $ac_try) 2>&5 | |
32518 | ac_status=$? | |
32519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32520 | (exit $ac_status); }; } && | |
32521 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32523 | (eval $ac_try) 2>&5 | |
32524 | ac_status=$? | |
32525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32526 | (exit $ac_status); }; }; then | |
32527 | eval "$as_ac_var=yes" | |
32528 | else | |
32529 | echo "$as_me: failed program was:" >&5 | |
32530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32531 | ||
32532 | eval "$as_ac_var=no" | |
32533 | fi | |
ac1cb8d3 VS |
32534 | rm -f conftest.err conftest.$ac_objext \ |
32535 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32536 | fi |
32537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32538 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32539 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32540 | cat >>confdefs.h <<_ACEOF | |
32541 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32542 | _ACEOF | |
32543 | break | |
32544 | fi | |
32545 | done | |
32546 | ||
32547 | ||
32548 | ||
32549 | ||
32550 | ac_ext=cc | |
32551 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32552 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32553 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32554 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32555 | ||
32556 | ||
32557 | ||
32558 | for ac_func in strtok_r | |
32559 | do | |
32560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32565 | else | |
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. */ | |
ac1cb8d3 VS |
32572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32574 | #define $ac_func innocuous_$ac_func | |
32575 | ||
a848cd7e SC |
32576 | /* System header to define __stub macros and hopefully few prototypes, |
32577 | which can conflict with char $ac_func (); below. | |
32578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32579 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32580 | |
a848cd7e SC |
32581 | #ifdef __STDC__ |
32582 | # include <limits.h> | |
32583 | #else | |
32584 | # include <assert.h> | |
32585 | #endif | |
ac1cb8d3 VS |
32586 | |
32587 | #undef $ac_func | |
32588 | ||
a848cd7e SC |
32589 | /* Override any gcc2 internal prototype to avoid an error. */ |
32590 | #ifdef __cplusplus | |
32591 | extern "C" | |
32592 | { | |
32593 | #endif | |
32594 | /* We use char because int might match the return type of a gcc2 | |
32595 | builtin and then its argument prototype would still apply. */ | |
32596 | char $ac_func (); | |
32597 | /* The GNU C library defines this for functions which it implements | |
32598 | to always fail with ENOSYS. Some functions are actually named | |
32599 | something starting with __ and the normal name is an alias. */ | |
32600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32601 | choke me | |
32602 | #else | |
32603 | char (*f) () = $ac_func; | |
32604 | #endif | |
32605 | #ifdef __cplusplus | |
32606 | } | |
32607 | #endif | |
32608 | ||
32609 | int | |
32610 | main () | |
32611 | { | |
32612 | return f != $ac_func; | |
32613 | ; | |
32614 | return 0; | |
32615 | } | |
32616 | _ACEOF | |
32617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32619 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32620 | ac_status=$? |
ac1cb8d3 VS |
32621 | grep -v '^ *+' conftest.er1 >conftest.err |
32622 | rm -f conftest.er1 | |
32623 | cat conftest.err >&5 | |
a848cd7e SC |
32624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32625 | (exit $ac_status); } && | |
07158944 | 32626 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32628 | (eval $ac_try) 2>&5 | |
32629 | ac_status=$? | |
32630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32631 | (exit $ac_status); }; } && | |
32632 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32634 | (eval $ac_try) 2>&5 | |
32635 | ac_status=$? | |
32636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32637 | (exit $ac_status); }; }; then | |
32638 | eval "$as_ac_var=yes" | |
32639 | else | |
32640 | echo "$as_me: failed program was:" >&5 | |
32641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32642 | ||
32643 | eval "$as_ac_var=no" | |
32644 | fi | |
ac1cb8d3 VS |
32645 | rm -f conftest.err conftest.$ac_objext \ |
32646 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32647 | fi |
32648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32651 | cat >>confdefs.h <<_ACEOF | |
32652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32653 | _ACEOF | |
32654 | ||
32655 | fi | |
32656 | done | |
32657 | ||
32658 | ||
32659 | ac_ext=c | |
32660 | ac_cpp='$CPP $CPPFLAGS' | |
32661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32664 | ||
32665 | ||
32666 | INET_LINK= | |
32667 | ||
32668 | for ac_func in inet_addr | |
32669 | do | |
32670 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32671 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32672 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32673 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32675 | else | |
32676 | cat >conftest.$ac_ext <<_ACEOF | |
32677 | /* confdefs.h. */ | |
32678 | _ACEOF | |
32679 | cat confdefs.h >>conftest.$ac_ext | |
32680 | cat >>conftest.$ac_ext <<_ACEOF | |
32681 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32682 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32683 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32684 | #define $ac_func innocuous_$ac_func | |
32685 | ||
a848cd7e SC |
32686 | /* System header to define __stub macros and hopefully few prototypes, |
32687 | which can conflict with char $ac_func (); below. | |
32688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32689 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32690 | |
a848cd7e SC |
32691 | #ifdef __STDC__ |
32692 | # include <limits.h> | |
32693 | #else | |
32694 | # include <assert.h> | |
32695 | #endif | |
ac1cb8d3 VS |
32696 | |
32697 | #undef $ac_func | |
32698 | ||
a848cd7e SC |
32699 | /* Override any gcc2 internal prototype to avoid an error. */ |
32700 | #ifdef __cplusplus | |
32701 | extern "C" | |
32702 | { | |
32703 | #endif | |
32704 | /* We use char because int might match the return type of a gcc2 | |
32705 | builtin and then its argument prototype would still apply. */ | |
32706 | char $ac_func (); | |
32707 | /* The GNU C library defines this for functions which it implements | |
32708 | to always fail with ENOSYS. Some functions are actually named | |
32709 | something starting with __ and the normal name is an alias. */ | |
32710 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32711 | choke me | |
32712 | #else | |
32713 | char (*f) () = $ac_func; | |
32714 | #endif | |
32715 | #ifdef __cplusplus | |
32716 | } | |
32717 | #endif | |
32718 | ||
32719 | int | |
32720 | main () | |
32721 | { | |
32722 | return f != $ac_func; | |
32723 | ; | |
32724 | return 0; | |
32725 | } | |
32726 | _ACEOF | |
32727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32729 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32730 | ac_status=$? |
ac1cb8d3 VS |
32731 | grep -v '^ *+' conftest.er1 >conftest.err |
32732 | rm -f conftest.er1 | |
32733 | cat conftest.err >&5 | |
a848cd7e SC |
32734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32735 | (exit $ac_status); } && | |
07158944 | 32736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32738 | (eval $ac_try) 2>&5 | |
32739 | ac_status=$? | |
32740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32741 | (exit $ac_status); }; } && | |
32742 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32744 | (eval $ac_try) 2>&5 | |
32745 | ac_status=$? | |
32746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32747 | (exit $ac_status); }; }; then | |
32748 | eval "$as_ac_var=yes" | |
32749 | else | |
32750 | echo "$as_me: failed program was:" >&5 | |
32751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32752 | ||
32753 | eval "$as_ac_var=no" | |
32754 | fi | |
ac1cb8d3 VS |
32755 | rm -f conftest.err conftest.$ac_objext \ |
32756 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32757 | fi |
32758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32759 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32760 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32761 | cat >>confdefs.h <<_ACEOF | |
32762 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32763 | _ACEOF | |
32764 | cat >>confdefs.h <<\_ACEOF | |
32765 | #define HAVE_INET_ADDR 1 | |
32766 | _ACEOF | |
32767 | ||
32768 | else | |
32769 | ||
32770 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
32771 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
32772 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
32773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32774 | else | |
32775 | ac_check_lib_save_LIBS=$LIBS | |
32776 | LIBS="-lnsl $LIBS" | |
32777 | cat >conftest.$ac_ext <<_ACEOF | |
32778 | /* confdefs.h. */ | |
32779 | _ACEOF | |
32780 | cat confdefs.h >>conftest.$ac_ext | |
32781 | cat >>conftest.$ac_ext <<_ACEOF | |
32782 | /* end confdefs.h. */ | |
32783 | ||
32784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32785 | #ifdef __cplusplus | |
32786 | extern "C" | |
32787 | #endif | |
32788 | /* We use char because int might match the return type of a gcc2 | |
32789 | builtin and then its argument prototype would still apply. */ | |
32790 | char inet_addr (); | |
32791 | int | |
32792 | main () | |
32793 | { | |
32794 | inet_addr (); | |
32795 | ; | |
32796 | return 0; | |
32797 | } | |
32798 | _ACEOF | |
32799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32801 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32802 | ac_status=$? |
ac1cb8d3 VS |
32803 | grep -v '^ *+' conftest.er1 >conftest.err |
32804 | rm -f conftest.er1 | |
32805 | cat conftest.err >&5 | |
a848cd7e SC |
32806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32807 | (exit $ac_status); } && | |
07158944 | 32808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32810 | (eval $ac_try) 2>&5 | |
32811 | ac_status=$? | |
32812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32813 | (exit $ac_status); }; } && | |
32814 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32816 | (eval $ac_try) 2>&5 | |
32817 | ac_status=$? | |
32818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32819 | (exit $ac_status); }; }; then | |
32820 | ac_cv_lib_nsl_inet_addr=yes | |
32821 | else | |
32822 | echo "$as_me: failed program was:" >&5 | |
32823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32824 | ||
32825 | ac_cv_lib_nsl_inet_addr=no | |
32826 | fi | |
ac1cb8d3 VS |
32827 | rm -f conftest.err conftest.$ac_objext \ |
32828 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32829 | LIBS=$ac_check_lib_save_LIBS |
32830 | fi | |
32831 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
32832 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
32833 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
32834 | INET_LINK="nsl" | |
32835 | else | |
32836 | ||
32837 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
32838 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
32839 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
32840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32841 | else | |
32842 | ac_check_lib_save_LIBS=$LIBS | |
32843 | LIBS="-lresolv $LIBS" | |
32844 | cat >conftest.$ac_ext <<_ACEOF | |
32845 | /* confdefs.h. */ | |
32846 | _ACEOF | |
32847 | cat confdefs.h >>conftest.$ac_ext | |
32848 | cat >>conftest.$ac_ext <<_ACEOF | |
32849 | /* end confdefs.h. */ | |
32850 | ||
32851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32852 | #ifdef __cplusplus | |
32853 | extern "C" | |
32854 | #endif | |
32855 | /* We use char because int might match the return type of a gcc2 | |
32856 | builtin and then its argument prototype would still apply. */ | |
32857 | char inet_addr (); | |
32858 | int | |
32859 | main () | |
32860 | { | |
32861 | inet_addr (); | |
32862 | ; | |
32863 | return 0; | |
32864 | } | |
32865 | _ACEOF | |
32866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32868 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32869 | ac_status=$? |
ac1cb8d3 VS |
32870 | grep -v '^ *+' conftest.er1 >conftest.err |
32871 | rm -f conftest.er1 | |
32872 | cat conftest.err >&5 | |
a848cd7e SC |
32873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32874 | (exit $ac_status); } && | |
07158944 | 32875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32877 | (eval $ac_try) 2>&5 | |
32878 | ac_status=$? | |
32879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32880 | (exit $ac_status); }; } && | |
32881 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32883 | (eval $ac_try) 2>&5 | |
32884 | ac_status=$? | |
32885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32886 | (exit $ac_status); }; }; then | |
32887 | ac_cv_lib_resolv_inet_addr=yes | |
32888 | else | |
32889 | echo "$as_me: failed program was:" >&5 | |
32890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32891 | ||
32892 | ac_cv_lib_resolv_inet_addr=no | |
32893 | fi | |
ac1cb8d3 VS |
32894 | rm -f conftest.err conftest.$ac_objext \ |
32895 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32896 | LIBS=$ac_check_lib_save_LIBS |
32897 | fi | |
32898 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
32899 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
32900 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
32901 | INET_LINK="resolv" | |
32902 | else | |
32903 | ||
32904 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
32905 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
32906 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
32907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32908 | else | |
32909 | ac_check_lib_save_LIBS=$LIBS | |
32910 | LIBS="-lsocket $LIBS" | |
32911 | cat >conftest.$ac_ext <<_ACEOF | |
32912 | /* confdefs.h. */ | |
32913 | _ACEOF | |
32914 | cat confdefs.h >>conftest.$ac_ext | |
32915 | cat >>conftest.$ac_ext <<_ACEOF | |
32916 | /* end confdefs.h. */ | |
32917 | ||
32918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32919 | #ifdef __cplusplus | |
32920 | extern "C" | |
32921 | #endif | |
32922 | /* We use char because int might match the return type of a gcc2 | |
32923 | builtin and then its argument prototype would still apply. */ | |
32924 | char inet_addr (); | |
32925 | int | |
32926 | main () | |
32927 | { | |
32928 | inet_addr (); | |
32929 | ; | |
32930 | return 0; | |
32931 | } | |
32932 | _ACEOF | |
32933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32935 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32936 | ac_status=$? |
ac1cb8d3 VS |
32937 | grep -v '^ *+' conftest.er1 >conftest.err |
32938 | rm -f conftest.er1 | |
32939 | cat conftest.err >&5 | |
a848cd7e SC |
32940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32941 | (exit $ac_status); } && | |
07158944 | 32942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32944 | (eval $ac_try) 2>&5 | |
32945 | ac_status=$? | |
32946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32947 | (exit $ac_status); }; } && | |
32948 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32950 | (eval $ac_try) 2>&5 | |
32951 | ac_status=$? | |
32952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32953 | (exit $ac_status); }; }; then | |
32954 | ac_cv_lib_socket_inet_addr=yes | |
32955 | else | |
32956 | echo "$as_me: failed program was:" >&5 | |
32957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32958 | ||
32959 | ac_cv_lib_socket_inet_addr=no | |
32960 | fi | |
ac1cb8d3 VS |
32961 | rm -f conftest.err conftest.$ac_objext \ |
32962 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32963 | LIBS=$ac_check_lib_save_LIBS |
32964 | fi | |
32965 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
32966 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
32967 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
32968 | INET_LINK="socket" | |
32969 | ||
32970 | fi | |
32971 | ||
32972 | ||
32973 | ||
32974 | fi | |
32975 | ||
32976 | ||
32977 | ||
32978 | fi | |
32979 | ||
32980 | ||
32981 | ||
32982 | fi | |
32983 | done | |
32984 | ||
32985 | ||
32986 | ||
32987 | for ac_func in inet_aton | |
32988 | do | |
32989 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32990 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32991 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32992 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32994 | else | |
32995 | cat >conftest.$ac_ext <<_ACEOF | |
32996 | /* confdefs.h. */ | |
32997 | _ACEOF | |
32998 | cat confdefs.h >>conftest.$ac_ext | |
32999 | cat >>conftest.$ac_ext <<_ACEOF | |
33000 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33001 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33002 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33003 | #define $ac_func innocuous_$ac_func | |
33004 | ||
a848cd7e SC |
33005 | /* System header to define __stub macros and hopefully few prototypes, |
33006 | which can conflict with char $ac_func (); below. | |
33007 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33008 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33009 | |
a848cd7e SC |
33010 | #ifdef __STDC__ |
33011 | # include <limits.h> | |
33012 | #else | |
33013 | # include <assert.h> | |
33014 | #endif | |
ac1cb8d3 VS |
33015 | |
33016 | #undef $ac_func | |
33017 | ||
a848cd7e SC |
33018 | /* Override any gcc2 internal prototype to avoid an error. */ |
33019 | #ifdef __cplusplus | |
33020 | extern "C" | |
33021 | { | |
33022 | #endif | |
33023 | /* We use char because int might match the return type of a gcc2 | |
33024 | builtin and then its argument prototype would still apply. */ | |
33025 | char $ac_func (); | |
33026 | /* The GNU C library defines this for functions which it implements | |
33027 | to always fail with ENOSYS. Some functions are actually named | |
33028 | something starting with __ and the normal name is an alias. */ | |
33029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33030 | choke me | |
33031 | #else | |
33032 | char (*f) () = $ac_func; | |
33033 | #endif | |
33034 | #ifdef __cplusplus | |
33035 | } | |
33036 | #endif | |
33037 | ||
33038 | int | |
33039 | main () | |
33040 | { | |
33041 | return f != $ac_func; | |
33042 | ; | |
33043 | return 0; | |
33044 | } | |
33045 | _ACEOF | |
33046 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33048 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33049 | ac_status=$? |
ac1cb8d3 VS |
33050 | grep -v '^ *+' conftest.er1 >conftest.err |
33051 | rm -f conftest.er1 | |
33052 | cat conftest.err >&5 | |
a848cd7e SC |
33053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33054 | (exit $ac_status); } && | |
07158944 | 33055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33057 | (eval $ac_try) 2>&5 | |
33058 | ac_status=$? | |
33059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33060 | (exit $ac_status); }; } && | |
33061 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33063 | (eval $ac_try) 2>&5 | |
33064 | ac_status=$? | |
33065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33066 | (exit $ac_status); }; }; then | |
33067 | eval "$as_ac_var=yes" | |
33068 | else | |
33069 | echo "$as_me: failed program was:" >&5 | |
33070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33071 | ||
33072 | eval "$as_ac_var=no" | |
33073 | fi | |
ac1cb8d3 VS |
33074 | rm -f conftest.err conftest.$ac_objext \ |
33075 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33076 | fi |
33077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33078 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33079 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33080 | cat >>confdefs.h <<_ACEOF | |
33081 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33082 | _ACEOF | |
33083 | cat >>confdefs.h <<\_ACEOF | |
33084 | #define HAVE_INET_ATON 1 | |
33085 | _ACEOF | |
33086 | ||
33087 | else | |
33088 | ||
33089 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
33090 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
33091 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
33092 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
33093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33094 | else | |
33095 | ac_check_lib_save_LIBS=$LIBS | |
33096 | LIBS="-l$INET_LINK $LIBS" | |
33097 | cat >conftest.$ac_ext <<_ACEOF | |
33098 | /* confdefs.h. */ | |
33099 | _ACEOF | |
33100 | cat confdefs.h >>conftest.$ac_ext | |
33101 | cat >>conftest.$ac_ext <<_ACEOF | |
33102 | /* end confdefs.h. */ | |
33103 | ||
33104 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33105 | #ifdef __cplusplus | |
33106 | extern "C" | |
33107 | #endif | |
33108 | /* We use char because int might match the return type of a gcc2 | |
33109 | builtin and then its argument prototype would still apply. */ | |
33110 | char inet_aton (); | |
33111 | int | |
33112 | main () | |
33113 | { | |
33114 | inet_aton (); | |
33115 | ; | |
33116 | return 0; | |
33117 | } | |
33118 | _ACEOF | |
33119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33121 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33122 | ac_status=$? |
ac1cb8d3 VS |
33123 | grep -v '^ *+' conftest.er1 >conftest.err |
33124 | rm -f conftest.er1 | |
33125 | cat conftest.err >&5 | |
a848cd7e SC |
33126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33127 | (exit $ac_status); } && | |
07158944 | 33128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33130 | (eval $ac_try) 2>&5 | |
33131 | ac_status=$? | |
33132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33133 | (exit $ac_status); }; } && | |
33134 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33136 | (eval $ac_try) 2>&5 | |
33137 | ac_status=$? | |
33138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33139 | (exit $ac_status); }; }; then | |
33140 | eval "$as_ac_Lib=yes" | |
33141 | else | |
33142 | echo "$as_me: failed program was:" >&5 | |
33143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33144 | ||
33145 | eval "$as_ac_Lib=no" | |
33146 | fi | |
ac1cb8d3 VS |
33147 | rm -f conftest.err conftest.$ac_objext \ |
33148 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33149 | LIBS=$ac_check_lib_save_LIBS |
33150 | fi | |
33151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
33152 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
33153 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
33154 | cat >>confdefs.h <<\_ACEOF | |
33155 | #define HAVE_INET_ATON 1 | |
33156 | _ACEOF | |
33157 | ||
33158 | fi | |
33159 | ||
33160 | ||
33161 | fi | |
33162 | done | |
33163 | ||
33164 | ||
33165 | if test "x$INET_LINK" != "x"; then | |
33166 | cat >>confdefs.h <<\_ACEOF | |
33167 | #define HAVE_INET_ADDR 1 | |
33168 | _ACEOF | |
33169 | ||
33170 | INET_LINK=" -l$INET_LINK" | |
33171 | fi | |
33172 | ||
33173 | fi | |
33174 | ||
33175 | ||
33176 | ||
33177 | EXTRALIBS_ESD= | |
33178 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
33179 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
33180 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
33181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33182 | else | |
33183 | ac_check_lib_save_LIBS=$LIBS | |
33184 | LIBS="-lesd $LIBS" | |
33185 | cat >conftest.$ac_ext <<_ACEOF | |
33186 | /* confdefs.h. */ | |
33187 | _ACEOF | |
33188 | cat confdefs.h >>conftest.$ac_ext | |
33189 | cat >>conftest.$ac_ext <<_ACEOF | |
33190 | /* end confdefs.h. */ | |
33191 | ||
33192 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33193 | #ifdef __cplusplus | |
33194 | extern "C" | |
33195 | #endif | |
33196 | /* We use char because int might match the return type of a gcc2 | |
33197 | builtin and then its argument prototype would still apply. */ | |
33198 | char esd_close (); | |
33199 | int | |
33200 | main () | |
33201 | { | |
33202 | esd_close (); | |
33203 | ; | |
33204 | return 0; | |
33205 | } | |
33206 | _ACEOF | |
33207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33209 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33210 | ac_status=$? |
ac1cb8d3 VS |
33211 | grep -v '^ *+' conftest.er1 >conftest.err |
33212 | rm -f conftest.er1 | |
33213 | cat conftest.err >&5 | |
a848cd7e SC |
33214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33215 | (exit $ac_status); } && | |
07158944 | 33216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33218 | (eval $ac_try) 2>&5 | |
33219 | ac_status=$? | |
33220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33221 | (exit $ac_status); }; } && | |
33222 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33224 | (eval $ac_try) 2>&5 | |
33225 | ac_status=$? | |
33226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33227 | (exit $ac_status); }; }; then | |
33228 | ac_cv_lib_esd_esd_close=yes | |
33229 | else | |
33230 | echo "$as_me: failed program was:" >&5 | |
33231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33232 | ||
33233 | ac_cv_lib_esd_esd_close=no | |
33234 | fi | |
ac1cb8d3 VS |
33235 | rm -f conftest.err conftest.$ac_objext \ |
33236 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33237 | LIBS=$ac_check_lib_save_LIBS |
33238 | fi | |
33239 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
33240 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
33241 | if test $ac_cv_lib_esd_esd_close = yes; then | |
33242 | ||
33243 | ||
33244 | for ac_header in esd.h | |
33245 | do | |
33246 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33252 | fi | |
33253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33254 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33255 | else | |
33256 | # Is the header compilable? | |
33257 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33258 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33259 | cat >conftest.$ac_ext <<_ACEOF | |
33260 | /* confdefs.h. */ | |
33261 | _ACEOF | |
33262 | cat confdefs.h >>conftest.$ac_ext | |
33263 | cat >>conftest.$ac_ext <<_ACEOF | |
33264 | /* end confdefs.h. */ | |
33265 | $ac_includes_default | |
33266 | #include <$ac_header> | |
33267 | _ACEOF | |
33268 | rm -f conftest.$ac_objext | |
33269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33271 | ac_status=$? |
ac1cb8d3 VS |
33272 | grep -v '^ *+' conftest.er1 >conftest.err |
33273 | rm -f conftest.er1 | |
33274 | cat conftest.err >&5 | |
a848cd7e SC |
33275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33276 | (exit $ac_status); } && | |
07158944 | 33277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33279 | (eval $ac_try) 2>&5 | |
33280 | ac_status=$? | |
33281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33282 | (exit $ac_status); }; } && | |
33283 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33285 | (eval $ac_try) 2>&5 | |
33286 | ac_status=$? | |
33287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33288 | (exit $ac_status); }; }; then | |
33289 | ac_header_compiler=yes | |
33290 | else | |
33291 | echo "$as_me: failed program was:" >&5 | |
33292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33293 | ||
33294 | ac_header_compiler=no | |
33295 | fi | |
ac1cb8d3 | 33296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33298 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33299 | ||
33300 | # Is the header present? | |
33301 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33303 | cat >conftest.$ac_ext <<_ACEOF | |
33304 | /* confdefs.h. */ | |
33305 | _ACEOF | |
33306 | cat confdefs.h >>conftest.$ac_ext | |
33307 | cat >>conftest.$ac_ext <<_ACEOF | |
33308 | /* end confdefs.h. */ | |
33309 | #include <$ac_header> | |
33310 | _ACEOF | |
33311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33313 | ac_status=$? | |
33314 | grep -v '^ *+' conftest.er1 >conftest.err | |
33315 | rm -f conftest.er1 | |
33316 | cat conftest.err >&5 | |
33317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33318 | (exit $ac_status); } >/dev/null; then | |
33319 | if test -s conftest.err; then | |
33320 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33322 | else |
33323 | ac_cpp_err= | |
33324 | fi | |
33325 | else | |
33326 | ac_cpp_err=yes | |
33327 | fi | |
33328 | if test -z "$ac_cpp_err"; then | |
33329 | ac_header_preproc=yes | |
33330 | else | |
33331 | echo "$as_me: failed program was:" >&5 | |
33332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33333 | ||
33334 | ac_header_preproc=no | |
33335 | fi | |
33336 | rm -f conftest.err conftest.$ac_ext | |
33337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33338 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33339 | ||
33340 | # So? What about this header? | |
ac1cb8d3 VS |
33341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33342 | yes:no: ) | |
a848cd7e SC |
33343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33347 | ac_header_preproc=yes | |
a848cd7e | 33348 | ;; |
ac1cb8d3 | 33349 | no:yes:* ) |
a848cd7e SC |
33350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33356 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33357 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33362 | ( |
33363 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33364 | ## ----------------------------------------- ## |
33365 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33366 | ## ----------------------------------------- ## | |
a848cd7e SC |
33367 | _ASBOX |
33368 | ) | | |
33369 | sed "s/^/$as_me: WARNING: /" >&2 | |
33370 | ;; | |
33371 | esac | |
33372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33376 | else | |
ac1cb8d3 | 33377 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33378 | fi |
33379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33381 | ||
33382 | fi | |
33383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33384 | cat >>confdefs.h <<_ACEOF | |
33385 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33386 | _ACEOF | |
33387 | ||
33388 | EXTRALIBS_ESD="-lesd" | |
33389 | ||
33390 | fi | |
33391 | ||
33392 | done | |
33393 | ||
33394 | ||
33395 | fi | |
33396 | ||
33397 | ||
33398 | ||
33399 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
33400 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
33401 | cat >conftest.$ac_ext <<_ACEOF | |
33402 | /* confdefs.h. */ | |
33403 | _ACEOF | |
33404 | cat confdefs.h >>conftest.$ac_ext | |
33405 | cat >>conftest.$ac_ext <<_ACEOF | |
33406 | /* end confdefs.h. */ | |
33407 | #ifdef __linux__ | |
33408 | #include <linux/cdrom.h> | |
33409 | #else | |
33410 | /* For Solaris */ | |
33411 | #include <sys/cdio.h> | |
33412 | #endif | |
33413 | ||
33414 | int | |
33415 | main () | |
33416 | { | |
33417 | struct cdrom_tocentry entry, old_entry; | |
33418 | ; | |
33419 | return 0; | |
33420 | } | |
33421 | _ACEOF | |
33422 | rm -f conftest.$ac_objext | |
33423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33425 | ac_status=$? |
ac1cb8d3 VS |
33426 | grep -v '^ *+' conftest.er1 >conftest.err |
33427 | rm -f conftest.er1 | |
33428 | cat conftest.err >&5 | |
a848cd7e SC |
33429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33430 | (exit $ac_status); } && | |
07158944 | 33431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33433 | (eval $ac_try) 2>&5 | |
33434 | ac_status=$? | |
33435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33436 | (exit $ac_status); }; } && | |
33437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33439 | (eval $ac_try) 2>&5 | |
33440 | ac_status=$? | |
33441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33442 | (exit $ac_status); }; }; then | |
33443 | echo "$as_me:$LINENO: result: yes" >&5 | |
33444 | echo "${ECHO_T}yes" >&6 | |
33445 | cat >>confdefs.h <<\_ACEOF | |
33446 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
33447 | _ACEOF | |
33448 | ||
33449 | else | |
33450 | echo "$as_me: failed program was:" >&5 | |
33451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33452 | ||
33453 | echo "$as_me:$LINENO: result: no" >&5 | |
33454 | echo "${ECHO_T}no" >&6 | |
33455 | fi | |
ac1cb8d3 | 33456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33457 | |
33458 | ||
33459 | cat >confcache <<\_ACEOF | |
33460 | # This file is a shell script that caches the results of configure | |
33461 | # tests run on this system so they can be shared between configure | |
33462 | # scripts and configure runs, see configure's option --config-cache. | |
33463 | # It is not useful on other systems. If it contains results you don't | |
33464 | # want to keep, you may remove or edit it. | |
33465 | # | |
33466 | # config.status only pays attention to the cache file if you give it | |
33467 | # the --recheck option to rerun configure. | |
33468 | # | |
33469 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
33470 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
33471 | # following values. | |
33472 | ||
33473 | _ACEOF | |
33474 | ||
33475 | # The following way of writing the cache mishandles newlines in values, | |
33476 | # but we know of no workaround that is simple, portable, and efficient. | |
33477 | # So, don't put newlines in cache variables' values. | |
33478 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
33479 | # and sets the high bit in the cache file unless we assign to the vars. | |
33480 | { | |
33481 | (set) 2>&1 | | |
33482 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
33483 | *ac_space=\ *) | |
33484 | # `set' does not quote correctly, so add quotes (double-quote | |
33485 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
33486 | sed -n \ | |
ac1cb8d3 VS |
33487 | "s/'/'\\\\''/g; |
33488 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
33489 | ;; |
33490 | *) | |
33491 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
33492 | sed -n \ | |
ac1cb8d3 | 33493 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
33494 | ;; |
33495 | esac; | |
33496 | } | | |
33497 | sed ' | |
33498 | t clear | |
33499 | : clear | |
33500 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
33501 | t end | |
33502 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
33503 | : end' >>confcache | |
33504 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
33505 | if test -w $cache_file; then | |
33506 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
33507 | cat confcache >$cache_file | |
33508 | else | |
33509 | echo "not updating unwritable cache $cache_file" | |
33510 | fi | |
33511 | fi | |
33512 | rm -f confcache | |
33513 | ||
33514 | ||
33515 | CPP_MT_FLAG= | |
33516 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33517 | ||
33518 | ||
33519 | THREADS_LINK= | |
33520 | THREADS_CFLAGS= | |
33521 | ||
33522 | if test "$wxUSE_THREADS" = "yes" ; then | |
33523 | if test "$USE_BEOS" = 1; then | |
33524 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
33525 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
33526 | wxUSE_THREADS="no" | |
33527 | fi | |
33528 | fi | |
33529 | ||
33530 | if test "$wxUSE_THREADS" = "yes" ; then | |
33531 | ||
33532 | ||
33533 | THREAD_OPTS="-pthread" | |
33534 | case "${host}" in | |
33535 | *-*-solaris2* | *-*-sunos4* ) | |
33536 | if test "x$GCC" = "xyes"; then | |
33537 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
33538 | else | |
33539 | THREAD_OPTS="-mt $THREAD_OPTS" | |
33540 | fi | |
33541 | ;; | |
33542 | *-*-freebsd*) | |
33543 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
33544 | ;; | |
33545 | *-*-darwin* | *-*-cygwin* ) | |
33546 | THREAD_OPTS="" | |
33547 | ;; | |
33548 | *-*-aix*) | |
33549 | THREAD_OPTS="pthreads" | |
33550 | ;; | |
33551 | *-hp-hpux* ) | |
33552 | if test "x$GCC" != "xyes"; then | |
33553 | THREAD_OPTS="" | |
33554 | fi | |
33555 | ;; | |
33556 | ||
33557 | *-*-irix* ) | |
33558 | if test "x$GCC" = "xyes"; then | |
33559 | THREAD_OPTS="" | |
33560 | fi | |
33561 | ;; | |
33562 | ||
33563 | *-*-*UnixWare*) | |
33564 | if test "x$GCC" != "xyes"; then | |
33565 | THREAD_OPTS="-Ethread" | |
33566 | fi | |
33567 | ;; | |
33568 | esac | |
33569 | ||
33570 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
33571 | ||
33572 | THREADS_OK=no | |
33573 | for flag in $THREAD_OPTS; do | |
33574 | case $flag in | |
33575 | none) | |
33576 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
33577 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
33578 | ;; | |
33579 | ||
33580 | -*) | |
33581 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
33582 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
33583 | THREADS_CFLAGS="$flag" | |
33584 | ;; | |
33585 | ||
33586 | *) | |
33587 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
33588 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
33589 | THREADS_LINK="-l$flag" | |
33590 | ;; | |
33591 | esac | |
33592 | ||
33593 | save_LIBS="$LIBS" | |
33594 | save_CFLAGS="$CFLAGS" | |
33595 | LIBS="$THREADS_LINK $LIBS" | |
33596 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
33597 | ||
33598 | cat >conftest.$ac_ext <<_ACEOF | |
33599 | /* confdefs.h. */ | |
33600 | _ACEOF | |
33601 | cat confdefs.h >>conftest.$ac_ext | |
33602 | cat >>conftest.$ac_ext <<_ACEOF | |
33603 | /* end confdefs.h. */ | |
33604 | #include <pthread.h> | |
33605 | int | |
33606 | main () | |
33607 | { | |
33608 | pthread_create(0,0,0,0); | |
33609 | ; | |
33610 | return 0; | |
33611 | } | |
33612 | _ACEOF | |
33613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33615 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33616 | ac_status=$? |
ac1cb8d3 VS |
33617 | grep -v '^ *+' conftest.er1 >conftest.err |
33618 | rm -f conftest.er1 | |
33619 | cat conftest.err >&5 | |
a848cd7e SC |
33620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33621 | (exit $ac_status); } && | |
07158944 | 33622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33624 | (eval $ac_try) 2>&5 | |
33625 | ac_status=$? | |
33626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33627 | (exit $ac_status); }; } && | |
33628 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33630 | (eval $ac_try) 2>&5 | |
33631 | ac_status=$? | |
33632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33633 | (exit $ac_status); }; }; then | |
33634 | THREADS_OK=yes | |
33635 | else | |
33636 | echo "$as_me: failed program was:" >&5 | |
33637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33638 | ||
33639 | fi | |
ac1cb8d3 VS |
33640 | rm -f conftest.err conftest.$ac_objext \ |
33641 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33642 | |
33643 | LIBS="$save_LIBS" | |
33644 | CFLAGS="$save_CFLAGS" | |
33645 | ||
33646 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
33647 | echo "${ECHO_T}$THREADS_OK" >&6 | |
33648 | if test "x$THREADS_OK" = "xyes"; then | |
33649 | break; | |
33650 | fi | |
33651 | ||
33652 | THREADS_LINK="" | |
33653 | THREADS_CFLAGS="" | |
33654 | done | |
33655 | ||
33656 | if test "x$THREADS_OK" != "xyes"; then | |
33657 | wxUSE_THREADS=no | |
33658 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
33659 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
33660 | else | |
33661 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
33662 | LIBS="$THREADS_LINK $LIBS" | |
33663 | ||
33664 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
33665 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
33666 | flag=no | |
33667 | case "${host}" in | |
33668 | *-aix*) | |
33669 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
33670 | flag="-D_THREAD_SAFE" | |
33671 | ;; | |
33672 | *-freebsd*) | |
33673 | flag="-D_THREAD_SAFE" | |
33674 | ;; | |
33675 | *-hp-hpux* ) | |
33676 | flag="-D_REENTRANT" | |
33677 | if test "x$GCC" != "xyes"; then | |
33678 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
33679 | fi | |
33680 | ;; | |
33681 | *solaris* | alpha*-osf*) | |
33682 | flag="-D_REENTRANT" | |
33683 | ;; | |
33684 | esac | |
33685 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
33686 | echo "${ECHO_T}${flag}" >&6 | |
33687 | if test "x$flag" != xno; then | |
33688 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
33689 | fi | |
33690 | ||
33691 | if test "x$THREADS_CFLAGS" != "x"; then | |
33692 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
33693 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
33694 | fi | |
33695 | fi | |
33696 | fi | |
33697 | ||
33698 | if test "$wxUSE_THREADS" = "yes" ; then | |
33699 | ||
33700 | for ac_func in thr_setconcurrency | |
33701 | do | |
33702 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33703 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33704 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33705 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33707 | else | |
33708 | cat >conftest.$ac_ext <<_ACEOF | |
33709 | /* confdefs.h. */ | |
33710 | _ACEOF | |
33711 | cat confdefs.h >>conftest.$ac_ext | |
33712 | cat >>conftest.$ac_ext <<_ACEOF | |
33713 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33714 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33716 | #define $ac_func innocuous_$ac_func | |
33717 | ||
a848cd7e SC |
33718 | /* System header to define __stub macros and hopefully few prototypes, |
33719 | which can conflict with char $ac_func (); below. | |
33720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33721 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33722 | |
a848cd7e SC |
33723 | #ifdef __STDC__ |
33724 | # include <limits.h> | |
33725 | #else | |
33726 | # include <assert.h> | |
33727 | #endif | |
ac1cb8d3 VS |
33728 | |
33729 | #undef $ac_func | |
33730 | ||
a848cd7e SC |
33731 | /* Override any gcc2 internal prototype to avoid an error. */ |
33732 | #ifdef __cplusplus | |
33733 | extern "C" | |
33734 | { | |
33735 | #endif | |
33736 | /* We use char because int might match the return type of a gcc2 | |
33737 | builtin and then its argument prototype would still apply. */ | |
33738 | char $ac_func (); | |
33739 | /* The GNU C library defines this for functions which it implements | |
33740 | to always fail with ENOSYS. Some functions are actually named | |
33741 | something starting with __ and the normal name is an alias. */ | |
33742 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33743 | choke me | |
33744 | #else | |
33745 | char (*f) () = $ac_func; | |
33746 | #endif | |
33747 | #ifdef __cplusplus | |
33748 | } | |
33749 | #endif | |
33750 | ||
33751 | int | |
33752 | main () | |
33753 | { | |
33754 | return f != $ac_func; | |
33755 | ; | |
33756 | return 0; | |
33757 | } | |
33758 | _ACEOF | |
33759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33761 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33762 | ac_status=$? |
ac1cb8d3 VS |
33763 | grep -v '^ *+' conftest.er1 >conftest.err |
33764 | rm -f conftest.er1 | |
33765 | cat conftest.err >&5 | |
a848cd7e SC |
33766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33767 | (exit $ac_status); } && | |
07158944 | 33768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33770 | (eval $ac_try) 2>&5 | |
33771 | ac_status=$? | |
33772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33773 | (exit $ac_status); }; } && | |
33774 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33776 | (eval $ac_try) 2>&5 | |
33777 | ac_status=$? | |
33778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33779 | (exit $ac_status); }; }; then | |
33780 | eval "$as_ac_var=yes" | |
33781 | else | |
33782 | echo "$as_me: failed program was:" >&5 | |
33783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33784 | ||
33785 | eval "$as_ac_var=no" | |
33786 | fi | |
ac1cb8d3 VS |
33787 | rm -f conftest.err conftest.$ac_objext \ |
33788 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33789 | fi |
33790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33791 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33792 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33793 | cat >>confdefs.h <<_ACEOF | |
33794 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33795 | _ACEOF | |
33796 | ||
33797 | fi | |
33798 | done | |
33799 | ||
33800 | ||
33801 | ||
33802 | for ac_header in sched.h | |
33803 | do | |
33804 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33810 | fi | |
33811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33812 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33813 | else | |
33814 | # Is the header compilable? | |
33815 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33816 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33817 | cat >conftest.$ac_ext <<_ACEOF | |
33818 | /* confdefs.h. */ | |
33819 | _ACEOF | |
33820 | cat confdefs.h >>conftest.$ac_ext | |
33821 | cat >>conftest.$ac_ext <<_ACEOF | |
33822 | /* end confdefs.h. */ | |
33823 | $ac_includes_default | |
33824 | #include <$ac_header> | |
33825 | _ACEOF | |
33826 | rm -f conftest.$ac_objext | |
33827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33828 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33829 | ac_status=$? |
ac1cb8d3 VS |
33830 | grep -v '^ *+' conftest.er1 >conftest.err |
33831 | rm -f conftest.er1 | |
33832 | cat conftest.err >&5 | |
a848cd7e SC |
33833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33834 | (exit $ac_status); } && | |
07158944 | 33835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33837 | (eval $ac_try) 2>&5 | |
33838 | ac_status=$? | |
33839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33840 | (exit $ac_status); }; } && | |
33841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33843 | (eval $ac_try) 2>&5 | |
33844 | ac_status=$? | |
33845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33846 | (exit $ac_status); }; }; then | |
33847 | ac_header_compiler=yes | |
33848 | else | |
33849 | echo "$as_me: failed program was:" >&5 | |
33850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33851 | ||
33852 | ac_header_compiler=no | |
33853 | fi | |
ac1cb8d3 | 33854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33855 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33856 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33857 | ||
33858 | # Is the header present? | |
33859 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33860 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33861 | cat >conftest.$ac_ext <<_ACEOF | |
33862 | /* confdefs.h. */ | |
33863 | _ACEOF | |
33864 | cat confdefs.h >>conftest.$ac_ext | |
33865 | cat >>conftest.$ac_ext <<_ACEOF | |
33866 | /* end confdefs.h. */ | |
33867 | #include <$ac_header> | |
33868 | _ACEOF | |
33869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33871 | ac_status=$? | |
33872 | grep -v '^ *+' conftest.er1 >conftest.err | |
33873 | rm -f conftest.er1 | |
33874 | cat conftest.err >&5 | |
33875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33876 | (exit $ac_status); } >/dev/null; then | |
33877 | if test -s conftest.err; then | |
33878 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33880 | else |
33881 | ac_cpp_err= | |
33882 | fi | |
33883 | else | |
33884 | ac_cpp_err=yes | |
33885 | fi | |
33886 | if test -z "$ac_cpp_err"; then | |
33887 | ac_header_preproc=yes | |
33888 | else | |
33889 | echo "$as_me: failed program was:" >&5 | |
33890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33891 | ||
33892 | ac_header_preproc=no | |
33893 | fi | |
33894 | rm -f conftest.err conftest.$ac_ext | |
33895 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33896 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33897 | ||
33898 | # So? What about this header? | |
ac1cb8d3 VS |
33899 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33900 | yes:no: ) | |
a848cd7e SC |
33901 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33902 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33904 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33905 | ac_header_preproc=yes | |
a848cd7e | 33906 | ;; |
ac1cb8d3 | 33907 | no:yes:* ) |
a848cd7e SC |
33908 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33909 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33910 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33911 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33912 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33913 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33914 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33915 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33916 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33917 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33918 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33919 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33920 | ( |
33921 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33922 | ## ----------------------------------------- ## |
33923 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33924 | ## ----------------------------------------- ## | |
a848cd7e SC |
33925 | _ASBOX |
33926 | ) | | |
33927 | sed "s/^/$as_me: WARNING: /" >&2 | |
33928 | ;; | |
33929 | esac | |
33930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33934 | else | |
ac1cb8d3 | 33935 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33936 | fi |
33937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33938 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33939 | ||
33940 | fi | |
33941 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33942 | cat >>confdefs.h <<_ACEOF | |
33943 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33944 | _ACEOF | |
33945 | ||
33946 | fi | |
33947 | ||
33948 | done | |
33949 | ||
33950 | if test "$ac_cv_header_sched_h" = "yes"; then | |
33951 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
33952 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
33953 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
33954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33955 | else | |
33956 | cat >conftest.$ac_ext <<_ACEOF | |
33957 | /* confdefs.h. */ | |
33958 | _ACEOF | |
33959 | cat confdefs.h >>conftest.$ac_ext | |
33960 | cat >>conftest.$ac_ext <<_ACEOF | |
33961 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33962 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
33963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33964 | #define sched_yield innocuous_sched_yield | |
33965 | ||
a848cd7e SC |
33966 | /* System header to define __stub macros and hopefully few prototypes, |
33967 | which can conflict with char sched_yield (); below. | |
33968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33969 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33970 | |
a848cd7e SC |
33971 | #ifdef __STDC__ |
33972 | # include <limits.h> | |
33973 | #else | |
33974 | # include <assert.h> | |
33975 | #endif | |
ac1cb8d3 VS |
33976 | |
33977 | #undef sched_yield | |
33978 | ||
a848cd7e SC |
33979 | /* Override any gcc2 internal prototype to avoid an error. */ |
33980 | #ifdef __cplusplus | |
33981 | extern "C" | |
33982 | { | |
33983 | #endif | |
33984 | /* We use char because int might match the return type of a gcc2 | |
33985 | builtin and then its argument prototype would still apply. */ | |
33986 | char sched_yield (); | |
33987 | /* The GNU C library defines this for functions which it implements | |
33988 | to always fail with ENOSYS. Some functions are actually named | |
33989 | something starting with __ and the normal name is an alias. */ | |
33990 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
33991 | choke me | |
33992 | #else | |
33993 | char (*f) () = sched_yield; | |
33994 | #endif | |
33995 | #ifdef __cplusplus | |
33996 | } | |
33997 | #endif | |
33998 | ||
33999 | int | |
34000 | main () | |
34001 | { | |
34002 | return f != sched_yield; | |
34003 | ; | |
34004 | return 0; | |
34005 | } | |
34006 | _ACEOF | |
34007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34009 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34010 | ac_status=$? |
ac1cb8d3 VS |
34011 | grep -v '^ *+' conftest.er1 >conftest.err |
34012 | rm -f conftest.er1 | |
34013 | cat conftest.err >&5 | |
a848cd7e SC |
34014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34015 | (exit $ac_status); } && | |
07158944 | 34016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34018 | (eval $ac_try) 2>&5 | |
34019 | ac_status=$? | |
34020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34021 | (exit $ac_status); }; } && | |
34022 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34024 | (eval $ac_try) 2>&5 | |
34025 | ac_status=$? | |
34026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34027 | (exit $ac_status); }; }; then | |
34028 | ac_cv_func_sched_yield=yes | |
34029 | else | |
34030 | echo "$as_me: failed program was:" >&5 | |
34031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34032 | ||
34033 | ac_cv_func_sched_yield=no | |
34034 | fi | |
ac1cb8d3 VS |
34035 | rm -f conftest.err conftest.$ac_objext \ |
34036 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34037 | fi |
34038 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
34039 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
34040 | if test $ac_cv_func_sched_yield = yes; then | |
34041 | cat >>confdefs.h <<\_ACEOF | |
34042 | #define HAVE_SCHED_YIELD 1 | |
34043 | _ACEOF | |
34044 | ||
34045 | else | |
34046 | ||
34047 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
34048 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
34049 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
34050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34051 | else | |
34052 | ac_check_lib_save_LIBS=$LIBS | |
34053 | LIBS="-lposix4 $LIBS" | |
34054 | cat >conftest.$ac_ext <<_ACEOF | |
34055 | /* confdefs.h. */ | |
34056 | _ACEOF | |
34057 | cat confdefs.h >>conftest.$ac_ext | |
34058 | cat >>conftest.$ac_ext <<_ACEOF | |
34059 | /* end confdefs.h. */ | |
34060 | ||
34061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34062 | #ifdef __cplusplus | |
34063 | extern "C" | |
34064 | #endif | |
34065 | /* We use char because int might match the return type of a gcc2 | |
34066 | builtin and then its argument prototype would still apply. */ | |
34067 | char sched_yield (); | |
34068 | int | |
34069 | main () | |
34070 | { | |
34071 | sched_yield (); | |
34072 | ; | |
34073 | return 0; | |
34074 | } | |
34075 | _ACEOF | |
34076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34078 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34079 | ac_status=$? |
ac1cb8d3 VS |
34080 | grep -v '^ *+' conftest.er1 >conftest.err |
34081 | rm -f conftest.er1 | |
34082 | cat conftest.err >&5 | |
a848cd7e SC |
34083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34084 | (exit $ac_status); } && | |
07158944 | 34085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34087 | (eval $ac_try) 2>&5 | |
34088 | ac_status=$? | |
34089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34090 | (exit $ac_status); }; } && | |
34091 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
34097 | ac_cv_lib_posix4_sched_yield=yes | |
34098 | else | |
34099 | echo "$as_me: failed program was:" >&5 | |
34100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34101 | ||
34102 | ac_cv_lib_posix4_sched_yield=no | |
34103 | fi | |
ac1cb8d3 VS |
34104 | rm -f conftest.err conftest.$ac_objext \ |
34105 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34106 | LIBS=$ac_check_lib_save_LIBS |
34107 | fi | |
34108 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
34109 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
34110 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
34111 | cat >>confdefs.h <<\_ACEOF | |
34112 | #define HAVE_SCHED_YIELD 1 | |
34113 | _ACEOF | |
34114 | POSIX4_LINK=" -lposix4" | |
34115 | else | |
34116 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
34117 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
34118 | ||
34119 | fi | |
34120 | ||
34121 | ||
34122 | ||
34123 | fi | |
34124 | ||
34125 | fi | |
34126 | ||
34127 | HAVE_PRIOR_FUNCS=0 | |
34128 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
34129 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
34130 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
34131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34132 | else | |
34133 | cat >conftest.$ac_ext <<_ACEOF | |
34134 | /* confdefs.h. */ | |
34135 | _ACEOF | |
34136 | cat confdefs.h >>conftest.$ac_ext | |
34137 | cat >>conftest.$ac_ext <<_ACEOF | |
34138 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34139 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
34140 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34141 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
34142 | ||
a848cd7e SC |
34143 | /* System header to define __stub macros and hopefully few prototypes, |
34144 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
34145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34146 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34147 | |
a848cd7e SC |
34148 | #ifdef __STDC__ |
34149 | # include <limits.h> | |
34150 | #else | |
34151 | # include <assert.h> | |
34152 | #endif | |
ac1cb8d3 VS |
34153 | |
34154 | #undef pthread_attr_getschedpolicy | |
34155 | ||
a848cd7e SC |
34156 | /* Override any gcc2 internal prototype to avoid an error. */ |
34157 | #ifdef __cplusplus | |
34158 | extern "C" | |
34159 | { | |
34160 | #endif | |
34161 | /* We use char because int might match the return type of a gcc2 | |
34162 | builtin and then its argument prototype would still apply. */ | |
34163 | char pthread_attr_getschedpolicy (); | |
34164 | /* The GNU C library defines this for functions which it implements | |
34165 | to always fail with ENOSYS. Some functions are actually named | |
34166 | something starting with __ and the normal name is an alias. */ | |
34167 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
34168 | choke me | |
34169 | #else | |
34170 | char (*f) () = pthread_attr_getschedpolicy; | |
34171 | #endif | |
34172 | #ifdef __cplusplus | |
34173 | } | |
34174 | #endif | |
34175 | ||
34176 | int | |
34177 | main () | |
34178 | { | |
34179 | return f != pthread_attr_getschedpolicy; | |
34180 | ; | |
34181 | return 0; | |
34182 | } | |
34183 | _ACEOF | |
34184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34186 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34187 | ac_status=$? |
ac1cb8d3 VS |
34188 | grep -v '^ *+' conftest.er1 >conftest.err |
34189 | rm -f conftest.er1 | |
34190 | cat conftest.err >&5 | |
a848cd7e SC |
34191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34192 | (exit $ac_status); } && | |
07158944 | 34193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34195 | (eval $ac_try) 2>&5 | |
34196 | ac_status=$? | |
34197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34198 | (exit $ac_status); }; } && | |
34199 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34201 | (eval $ac_try) 2>&5 | |
34202 | ac_status=$? | |
34203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34204 | (exit $ac_status); }; }; then | |
34205 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
34206 | else | |
34207 | echo "$as_me: failed program was:" >&5 | |
34208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34209 | ||
34210 | ac_cv_func_pthread_attr_getschedpolicy=no | |
34211 | fi | |
ac1cb8d3 VS |
34212 | rm -f conftest.err conftest.$ac_objext \ |
34213 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34214 | fi |
34215 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
34216 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
34217 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
34218 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
34219 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
34220 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
34221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34222 | else | |
34223 | cat >conftest.$ac_ext <<_ACEOF | |
34224 | /* confdefs.h. */ | |
34225 | _ACEOF | |
34226 | cat confdefs.h >>conftest.$ac_ext | |
34227 | cat >>conftest.$ac_ext <<_ACEOF | |
34228 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34229 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
34230 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34231 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
34232 | ||
a848cd7e SC |
34233 | /* System header to define __stub macros and hopefully few prototypes, |
34234 | which can conflict with char pthread_attr_setschedparam (); below. | |
34235 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34236 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34237 | |
a848cd7e SC |
34238 | #ifdef __STDC__ |
34239 | # include <limits.h> | |
34240 | #else | |
34241 | # include <assert.h> | |
34242 | #endif | |
ac1cb8d3 VS |
34243 | |
34244 | #undef pthread_attr_setschedparam | |
34245 | ||
a848cd7e SC |
34246 | /* Override any gcc2 internal prototype to avoid an error. */ |
34247 | #ifdef __cplusplus | |
34248 | extern "C" | |
34249 | { | |
34250 | #endif | |
34251 | /* We use char because int might match the return type of a gcc2 | |
34252 | builtin and then its argument prototype would still apply. */ | |
34253 | char pthread_attr_setschedparam (); | |
34254 | /* The GNU C library defines this for functions which it implements | |
34255 | to always fail with ENOSYS. Some functions are actually named | |
34256 | something starting with __ and the normal name is an alias. */ | |
34257 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
34258 | choke me | |
34259 | #else | |
34260 | char (*f) () = pthread_attr_setschedparam; | |
34261 | #endif | |
34262 | #ifdef __cplusplus | |
34263 | } | |
34264 | #endif | |
34265 | ||
34266 | int | |
34267 | main () | |
34268 | { | |
34269 | return f != pthread_attr_setschedparam; | |
34270 | ; | |
34271 | return 0; | |
34272 | } | |
34273 | _ACEOF | |
34274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34276 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34277 | ac_status=$? |
ac1cb8d3 VS |
34278 | grep -v '^ *+' conftest.er1 >conftest.err |
34279 | rm -f conftest.er1 | |
34280 | cat conftest.err >&5 | |
a848cd7e SC |
34281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34282 | (exit $ac_status); } && | |
07158944 | 34283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34285 | (eval $ac_try) 2>&5 | |
34286 | ac_status=$? | |
34287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34288 | (exit $ac_status); }; } && | |
34289 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34291 | (eval $ac_try) 2>&5 | |
34292 | ac_status=$? | |
34293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34294 | (exit $ac_status); }; }; then | |
34295 | ac_cv_func_pthread_attr_setschedparam=yes | |
34296 | else | |
34297 | echo "$as_me: failed program was:" >&5 | |
34298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34299 | ||
34300 | ac_cv_func_pthread_attr_setschedparam=no | |
34301 | fi | |
ac1cb8d3 VS |
34302 | rm -f conftest.err conftest.$ac_objext \ |
34303 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34304 | fi |
34305 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
34306 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
34307 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
34308 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
34309 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
34310 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
34311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34312 | else | |
34313 | cat >conftest.$ac_ext <<_ACEOF | |
34314 | /* confdefs.h. */ | |
34315 | _ACEOF | |
34316 | cat confdefs.h >>conftest.$ac_ext | |
34317 | cat >>conftest.$ac_ext <<_ACEOF | |
34318 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34319 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
34320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34321 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
34322 | ||
a848cd7e SC |
34323 | /* System header to define __stub macros and hopefully few prototypes, |
34324 | which can conflict with char sched_get_priority_max (); below. | |
34325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34326 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34327 | |
a848cd7e SC |
34328 | #ifdef __STDC__ |
34329 | # include <limits.h> | |
34330 | #else | |
34331 | # include <assert.h> | |
34332 | #endif | |
ac1cb8d3 VS |
34333 | |
34334 | #undef sched_get_priority_max | |
34335 | ||
a848cd7e SC |
34336 | /* Override any gcc2 internal prototype to avoid an error. */ |
34337 | #ifdef __cplusplus | |
34338 | extern "C" | |
34339 | { | |
34340 | #endif | |
34341 | /* We use char because int might match the return type of a gcc2 | |
34342 | builtin and then its argument prototype would still apply. */ | |
34343 | char sched_get_priority_max (); | |
34344 | /* The GNU C library defines this for functions which it implements | |
34345 | to always fail with ENOSYS. Some functions are actually named | |
34346 | something starting with __ and the normal name is an alias. */ | |
34347 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
34348 | choke me | |
34349 | #else | |
34350 | char (*f) () = sched_get_priority_max; | |
34351 | #endif | |
34352 | #ifdef __cplusplus | |
34353 | } | |
34354 | #endif | |
34355 | ||
34356 | int | |
34357 | main () | |
34358 | { | |
34359 | return f != sched_get_priority_max; | |
34360 | ; | |
34361 | return 0; | |
34362 | } | |
34363 | _ACEOF | |
34364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34366 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34367 | ac_status=$? |
ac1cb8d3 VS |
34368 | grep -v '^ *+' conftest.er1 >conftest.err |
34369 | rm -f conftest.er1 | |
34370 | cat conftest.err >&5 | |
a848cd7e SC |
34371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34372 | (exit $ac_status); } && | |
07158944 | 34373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34375 | (eval $ac_try) 2>&5 | |
34376 | ac_status=$? | |
34377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34378 | (exit $ac_status); }; } && | |
34379 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34381 | (eval $ac_try) 2>&5 | |
34382 | ac_status=$? | |
34383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34384 | (exit $ac_status); }; }; then | |
34385 | ac_cv_func_sched_get_priority_max=yes | |
34386 | else | |
34387 | echo "$as_me: failed program was:" >&5 | |
34388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34389 | ||
34390 | ac_cv_func_sched_get_priority_max=no | |
34391 | fi | |
ac1cb8d3 VS |
34392 | rm -f conftest.err conftest.$ac_objext \ |
34393 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34394 | fi |
34395 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
34396 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
34397 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
34398 | HAVE_PRIOR_FUNCS=1 | |
34399 | else | |
34400 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
34401 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
34402 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
34403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34404 | else | |
34405 | ac_check_lib_save_LIBS=$LIBS | |
34406 | LIBS="-lposix4 $LIBS" | |
34407 | cat >conftest.$ac_ext <<_ACEOF | |
34408 | /* confdefs.h. */ | |
34409 | _ACEOF | |
34410 | cat confdefs.h >>conftest.$ac_ext | |
34411 | cat >>conftest.$ac_ext <<_ACEOF | |
34412 | /* end confdefs.h. */ | |
34413 | ||
34414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34415 | #ifdef __cplusplus | |
34416 | extern "C" | |
34417 | #endif | |
34418 | /* We use char because int might match the return type of a gcc2 | |
34419 | builtin and then its argument prototype would still apply. */ | |
34420 | char sched_get_priority_max (); | |
34421 | int | |
34422 | main () | |
34423 | { | |
34424 | sched_get_priority_max (); | |
34425 | ; | |
34426 | return 0; | |
34427 | } | |
34428 | _ACEOF | |
34429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34431 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34432 | ac_status=$? |
ac1cb8d3 VS |
34433 | grep -v '^ *+' conftest.er1 >conftest.err |
34434 | rm -f conftest.er1 | |
34435 | cat conftest.err >&5 | |
a848cd7e SC |
34436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34437 | (exit $ac_status); } && | |
07158944 | 34438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34440 | (eval $ac_try) 2>&5 | |
34441 | ac_status=$? | |
34442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34443 | (exit $ac_status); }; } && | |
34444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34446 | (eval $ac_try) 2>&5 | |
34447 | ac_status=$? | |
34448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34449 | (exit $ac_status); }; }; then | |
34450 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
34451 | else | |
34452 | echo "$as_me: failed program was:" >&5 | |
34453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34454 | ||
34455 | ac_cv_lib_posix4_sched_get_priority_max=no | |
34456 | fi | |
ac1cb8d3 VS |
34457 | rm -f conftest.err conftest.$ac_objext \ |
34458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34459 | LIBS=$ac_check_lib_save_LIBS |
34460 | fi | |
34461 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
34462 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
34463 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
34464 | ||
34465 | HAVE_PRIOR_FUNCS=1 | |
34466 | POSIX4_LINK=" -lposix4" | |
34467 | ||
34468 | fi | |
34469 | ||
34470 | ||
34471 | fi | |
34472 | ||
34473 | ||
34474 | fi | |
34475 | ||
34476 | ||
34477 | fi | |
34478 | ||
34479 | ||
34480 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
34481 | cat >>confdefs.h <<\_ACEOF | |
34482 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
34483 | _ACEOF | |
34484 | ||
34485 | else | |
34486 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
34487 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
34488 | fi | |
34489 | ||
34490 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
34491 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
34492 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
34493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34494 | else | |
34495 | cat >conftest.$ac_ext <<_ACEOF | |
34496 | /* confdefs.h. */ | |
34497 | _ACEOF | |
34498 | cat confdefs.h >>conftest.$ac_ext | |
34499 | cat >>conftest.$ac_ext <<_ACEOF | |
34500 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34501 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
34502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34503 | #define pthread_cancel innocuous_pthread_cancel | |
34504 | ||
a848cd7e SC |
34505 | /* System header to define __stub macros and hopefully few prototypes, |
34506 | which can conflict with char pthread_cancel (); below. | |
34507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34508 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34509 | |
a848cd7e SC |
34510 | #ifdef __STDC__ |
34511 | # include <limits.h> | |
34512 | #else | |
34513 | # include <assert.h> | |
34514 | #endif | |
ac1cb8d3 VS |
34515 | |
34516 | #undef pthread_cancel | |
34517 | ||
a848cd7e SC |
34518 | /* Override any gcc2 internal prototype to avoid an error. */ |
34519 | #ifdef __cplusplus | |
34520 | extern "C" | |
34521 | { | |
34522 | #endif | |
34523 | /* We use char because int might match the return type of a gcc2 | |
34524 | builtin and then its argument prototype would still apply. */ | |
34525 | char pthread_cancel (); | |
34526 | /* The GNU C library defines this for functions which it implements | |
34527 | to always fail with ENOSYS. Some functions are actually named | |
34528 | something starting with __ and the normal name is an alias. */ | |
34529 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
34530 | choke me | |
34531 | #else | |
34532 | char (*f) () = pthread_cancel; | |
34533 | #endif | |
34534 | #ifdef __cplusplus | |
34535 | } | |
34536 | #endif | |
34537 | ||
34538 | int | |
34539 | main () | |
34540 | { | |
34541 | return f != pthread_cancel; | |
34542 | ; | |
34543 | return 0; | |
34544 | } | |
34545 | _ACEOF | |
34546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34548 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34549 | ac_status=$? |
ac1cb8d3 VS |
34550 | grep -v '^ *+' conftest.er1 >conftest.err |
34551 | rm -f conftest.er1 | |
34552 | cat conftest.err >&5 | |
a848cd7e SC |
34553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34554 | (exit $ac_status); } && | |
07158944 | 34555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34557 | (eval $ac_try) 2>&5 | |
34558 | ac_status=$? | |
34559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34560 | (exit $ac_status); }; } && | |
34561 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34563 | (eval $ac_try) 2>&5 | |
34564 | ac_status=$? | |
34565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34566 | (exit $ac_status); }; }; then | |
34567 | ac_cv_func_pthread_cancel=yes | |
34568 | else | |
34569 | echo "$as_me: failed program was:" >&5 | |
34570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34571 | ||
34572 | ac_cv_func_pthread_cancel=no | |
34573 | fi | |
ac1cb8d3 VS |
34574 | rm -f conftest.err conftest.$ac_objext \ |
34575 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34576 | fi |
34577 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
34578 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
34579 | if test $ac_cv_func_pthread_cancel = yes; then | |
34580 | cat >>confdefs.h <<\_ACEOF | |
34581 | #define HAVE_PTHREAD_CANCEL 1 | |
34582 | _ACEOF | |
34583 | ||
34584 | else | |
34585 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
34586 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
34587 | fi | |
34588 | ||
34589 | ||
34590 | ||
34591 | ||
34592 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
34593 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
34594 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
34595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34596 | else | |
34597 | ||
34598 | cat >conftest.$ac_ext <<_ACEOF | |
34599 | /* confdefs.h. */ | |
34600 | _ACEOF | |
34601 | cat confdefs.h >>conftest.$ac_ext | |
34602 | cat >>conftest.$ac_ext <<_ACEOF | |
34603 | /* end confdefs.h. */ | |
34604 | #include <pthread.h> | |
34605 | int | |
34606 | main () | |
34607 | { | |
34608 | ||
34609 | pthread_mutexattr_t attr; | |
34610 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
34611 | ||
34612 | ; | |
34613 | return 0; | |
34614 | } | |
34615 | _ACEOF | |
34616 | rm -f conftest.$ac_objext | |
34617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34618 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34619 | ac_status=$? |
ac1cb8d3 VS |
34620 | grep -v '^ *+' conftest.er1 >conftest.err |
34621 | rm -f conftest.er1 | |
34622 | cat conftest.err >&5 | |
a848cd7e SC |
34623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34624 | (exit $ac_status); } && | |
07158944 | 34625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34627 | (eval $ac_try) 2>&5 | |
34628 | ac_status=$? | |
34629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34630 | (exit $ac_status); }; } && | |
34631 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34633 | (eval $ac_try) 2>&5 | |
34634 | ac_status=$? | |
34635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34636 | (exit $ac_status); }; }; then | |
34637 | ||
34638 | wx_cv_type_pthread_mutexattr_t=yes | |
34639 | ||
34640 | else | |
34641 | echo "$as_me: failed program was:" >&5 | |
34642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34643 | ||
34644 | ||
34645 | wx_cv_type_pthread_mutexattr_t=no | |
34646 | ||
34647 | ||
34648 | fi | |
ac1cb8d3 | 34649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34650 | |
34651 | fi | |
34652 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
34653 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
34654 | ||
34655 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
34656 | cat >>confdefs.h <<\_ACEOF | |
34657 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
34658 | _ACEOF | |
34659 | ||
34660 | else | |
34661 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
34662 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
34663 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
34664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34665 | else | |
34666 | ||
34667 | cat >conftest.$ac_ext <<_ACEOF | |
34668 | /* confdefs.h. */ | |
34669 | _ACEOF | |
34670 | cat confdefs.h >>conftest.$ac_ext | |
34671 | cat >>conftest.$ac_ext <<_ACEOF | |
34672 | /* end confdefs.h. */ | |
34673 | #include <pthread.h> | |
34674 | int | |
34675 | main () | |
34676 | { | |
34677 | ||
34678 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
34679 | ||
34680 | ; | |
34681 | return 0; | |
34682 | } | |
34683 | _ACEOF | |
34684 | rm -f conftest.$ac_objext | |
34685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34686 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34687 | ac_status=$? |
ac1cb8d3 VS |
34688 | grep -v '^ *+' conftest.er1 >conftest.err |
34689 | rm -f conftest.er1 | |
34690 | cat conftest.err >&5 | |
a848cd7e SC |
34691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34692 | (exit $ac_status); } && | |
07158944 | 34693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34695 | (eval $ac_try) 2>&5 | |
34696 | ac_status=$? | |
34697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34698 | (exit $ac_status); }; } && | |
34699 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34701 | (eval $ac_try) 2>&5 | |
34702 | ac_status=$? | |
34703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34704 | (exit $ac_status); }; }; then | |
34705 | ||
34706 | wx_cv_type_pthread_rec_mutex_init=yes | |
34707 | ||
34708 | else | |
34709 | echo "$as_me: failed program was:" >&5 | |
34710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34711 | ||
34712 | ||
34713 | wx_cv_type_pthread_rec_mutex_init=no | |
34714 | ||
34715 | ||
34716 | fi | |
ac1cb8d3 | 34717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34718 | |
34719 | fi | |
34720 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
34721 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
34722 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
34723 | cat >>confdefs.h <<\_ACEOF | |
34724 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
34725 | _ACEOF | |
34726 | ||
34727 | else | |
34728 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
34729 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
34730 | fi | |
34731 | fi | |
34732 | fi | |
34733 | ||
34734 | else | |
34735 | if test "$wxUSE_THREADS" = "yes" ; then | |
34736 | case "${host}" in | |
34737 | *-*-mingw32* ) | |
34738 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
34739 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
34740 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
34741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34742 | else | |
34743 | ||
34744 | CFLAGS_OLD="$CFLAGS" | |
34745 | CFLAGS="$CFLAGS -mthreads" | |
34746 | cat >conftest.$ac_ext <<_ACEOF | |
34747 | /* confdefs.h. */ | |
34748 | _ACEOF | |
34749 | cat confdefs.h >>conftest.$ac_ext | |
34750 | cat >>conftest.$ac_ext <<_ACEOF | |
34751 | /* end confdefs.h. */ | |
34752 | ||
34753 | int | |
34754 | main () | |
34755 | { | |
34756 | ||
34757 | ; | |
34758 | return 0; | |
34759 | } | |
34760 | _ACEOF | |
34761 | rm -f conftest.$ac_objext | |
34762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34763 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34764 | ac_status=$? |
ac1cb8d3 VS |
34765 | grep -v '^ *+' conftest.er1 >conftest.err |
34766 | rm -f conftest.er1 | |
34767 | cat conftest.err >&5 | |
a848cd7e SC |
34768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34769 | (exit $ac_status); } && | |
07158944 | 34770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34772 | (eval $ac_try) 2>&5 | |
34773 | ac_status=$? | |
34774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34775 | (exit $ac_status); }; } && | |
34776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34778 | (eval $ac_try) 2>&5 | |
34779 | ac_status=$? | |
34780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34781 | (exit $ac_status); }; }; then | |
34782 | wx_cv_cflags_mthread=yes | |
34783 | else | |
34784 | echo "$as_me: failed program was:" >&5 | |
34785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34786 | ||
34787 | wx_cv_cflags_mthread=no | |
34788 | ||
34789 | fi | |
ac1cb8d3 | 34790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34791 | |
34792 | ||
34793 | fi | |
34794 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
34795 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
34796 | ||
34797 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
34798 | CXXFLAGS="$CXXFLAGS -mthreads" | |
34799 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
34800 | LDFLAGS="$LDFLAGS -mthreads" | |
34801 | else | |
34802 | CFLAGS="$CFLAGS_OLD" | |
34803 | fi | |
34804 | ;; | |
34805 | *-pc-os2*emx ) | |
34806 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34807 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34808 | LDFLAGS="$LDFLAGS -Zmt" | |
34809 | ;; | |
34810 | esac | |
34811 | fi | |
34812 | fi | |
34813 | ||
34814 | if test "$wxUSE_THREADS" = "yes"; then | |
34815 | cat >>confdefs.h <<\_ACEOF | |
34816 | #define wxUSE_THREADS 1 | |
34817 | _ACEOF | |
34818 | ||
34819 | ||
34820 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
34821 | else | |
34822 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
34823 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
34824 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
34825 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
34826 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
34827 | echo "$as_me:$LINENO: result: yes" >&5 | |
34828 | echo "${ECHO_T}yes" >&6 | |
34829 | else | |
34830 | echo "$as_me:$LINENO: result: no" >&5 | |
34831 | echo "${ECHO_T}no" >&6 | |
34832 | fi | |
34833 | fi | |
34834 | fi | |
34835 | ||
34836 | if test "$WXGTK20" = 1 ; then | |
34837 | cat >>confdefs.h <<_ACEOF | |
34838 | #define __WXGTK20__ $WXGTK20 | |
34839 | _ACEOF | |
34840 | ||
34841 | WXGTK12=1 | |
34842 | fi | |
34843 | ||
34844 | if test "$WXGTK12" = 1 ; then | |
34845 | cat >>confdefs.h <<_ACEOF | |
34846 | #define __WXGTK12__ $WXGTK12 | |
34847 | _ACEOF | |
34848 | ||
34849 | fi | |
34850 | ||
34851 | if test "$WXGTK127" = 1 ; then | |
34852 | cat >>confdefs.h <<_ACEOF | |
34853 | #define __WXGTK127__ $WXGTK127 | |
34854 | _ACEOF | |
34855 | ||
34856 | fi | |
34857 | ||
34858 | if test "$WXGPE" = 1 ; then | |
34859 | cat >>confdefs.h <<_ACEOF | |
34860 | #define __WXGPE__ $WXGPE | |
34861 | _ACEOF | |
34862 | ||
34863 | fi | |
34864 | ||
34865 | WXDEBUG= | |
34866 | ||
34867 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
34868 | WXDEBUG="-g" | |
34869 | wxUSE_OPTIMISE=no | |
34870 | fi | |
34871 | ||
34872 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
34873 | wxUSE_DEBUG_INFO=yes | |
34874 | WXDEBUG="-ggdb" | |
34875 | fi | |
34876 | ||
34877 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
34878 | cat >>confdefs.h <<\_ACEOF | |
34879 | #define WXDEBUG 1 | |
34880 | _ACEOF | |
34881 | ||
34882 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
34883 | else | |
34884 | if test "$wxUSE_GTK" = 1 ; then | |
34885 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
34886 | fi | |
34887 | fi | |
34888 | ||
34889 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
34890 | cat >>confdefs.h <<\_ACEOF | |
34891 | #define wxUSE_MEMORY_TRACING 1 | |
34892 | _ACEOF | |
34893 | ||
34894 | cat >>confdefs.h <<\_ACEOF | |
34895 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
34896 | _ACEOF | |
34897 | ||
34898 | cat >>confdefs.h <<\_ACEOF | |
34899 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
34900 | _ACEOF | |
34901 | ||
34902 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
34903 | fi | |
34904 | ||
34905 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
34906 | DMALLOC_LIBS="-ldmalloc" | |
34907 | fi | |
34908 | ||
34909 | PROFILE= | |
34910 | if test "$wxUSE_PROFILE" = "yes" ; then | |
34911 | PROFILE=" -pg" | |
34912 | fi | |
34913 | ||
34914 | CODE_GEN_FLAGS= | |
34915 | CODE_GEN_FLAGS_CXX= | |
34916 | if test "$GCC" = "yes" ; then | |
34917 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
34918 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
34919 | fi | |
34920 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
34921 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
34922 | fi | |
34923 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
34924 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
34925 | fi | |
34926 | ||
34927 | case "${host}" in | |
34928 | powerpc*-*-aix* ) | |
34929 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
34930 | ;; | |
34931 | *-hppa* ) | |
34932 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
34933 | ;; | |
34934 | esac | |
34935 | fi | |
34936 | ||
34937 | OPTIMISE= | |
34938 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
34939 | if test "$GCC" = yes ; then | |
34940 | OPTIMISE="-O0" | |
34941 | fi | |
34942 | else | |
34943 | if test "$GCC" = yes ; then | |
34944 | OPTIMISE="-O2" | |
34945 | ||
34946 | case "${host}" in | |
34947 | i586-*-*|i686-*-* ) | |
34948 | OPTIMISE="${OPTIMISE} " | |
34949 | ;; | |
34950 | esac | |
34951 | else | |
34952 | OPTIMISE="-O" | |
34953 | fi | |
34954 | fi | |
34955 | ||
34956 | ||
34957 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
34958 | cat >>confdefs.h <<\_ACEOF | |
34959 | #define WXWIN_COMPATIBILITY_2_2 1 | |
34960 | _ACEOF | |
34961 | ||
34962 | ||
34963 | WXWIN_COMPATIBILITY_2_4="yes" | |
34964 | fi | |
34965 | ||
34966 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
34967 | cat >>confdefs.h <<\_ACEOF | |
34968 | #define WXWIN_COMPATIBILITY_2_4 1 | |
34969 | _ACEOF | |
34970 | ||
34971 | fi | |
34972 | ||
34973 | ||
34974 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 34975 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
34976 | #define wxUSE_GUI 1 |
34977 | _ACEOF | |
34978 | ||
34979 | ||
370fd4c2 | 34980 | fi |
a848cd7e SC |
34981 | |
34982 | ||
34983 | if test "$wxUSE_UNIX" = "yes"; then | |
34984 | cat >>confdefs.h <<\_ACEOF | |
34985 | #define wxUSE_UNIX 1 | |
34986 | _ACEOF | |
34987 | ||
34988 | fi | |
34989 | ||
34990 | ||
34991 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
34992 | ||
34993 | HAVE_DL_FUNCS=0 | |
34994 | HAVE_SHL_FUNCS=0 | |
34995 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34996 | if test "$USE_DARWIN" = 1; then | |
34997 | HAVE_DL_FUNCS=1 | |
34998 | else | |
34999 | ||
35000 | for ac_func in dlopen | |
35001 | do | |
35002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35003 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35005 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35007 | else | |
35008 | cat >conftest.$ac_ext <<_ACEOF | |
35009 | /* confdefs.h. */ | |
35010 | _ACEOF | |
35011 | cat confdefs.h >>conftest.$ac_ext | |
35012 | cat >>conftest.$ac_ext <<_ACEOF | |
35013 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35014 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35016 | #define $ac_func innocuous_$ac_func | |
35017 | ||
a848cd7e SC |
35018 | /* System header to define __stub macros and hopefully few prototypes, |
35019 | which can conflict with char $ac_func (); below. | |
35020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35021 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35022 | |
a848cd7e SC |
35023 | #ifdef __STDC__ |
35024 | # include <limits.h> | |
35025 | #else | |
35026 | # include <assert.h> | |
35027 | #endif | |
ac1cb8d3 VS |
35028 | |
35029 | #undef $ac_func | |
35030 | ||
a848cd7e SC |
35031 | /* Override any gcc2 internal prototype to avoid an error. */ |
35032 | #ifdef __cplusplus | |
35033 | extern "C" | |
35034 | { | |
35035 | #endif | |
35036 | /* We use char because int might match the return type of a gcc2 | |
35037 | builtin and then its argument prototype would still apply. */ | |
35038 | char $ac_func (); | |
35039 | /* The GNU C library defines this for functions which it implements | |
35040 | to always fail with ENOSYS. Some functions are actually named | |
35041 | something starting with __ and the normal name is an alias. */ | |
35042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35043 | choke me | |
35044 | #else | |
35045 | char (*f) () = $ac_func; | |
35046 | #endif | |
35047 | #ifdef __cplusplus | |
35048 | } | |
35049 | #endif | |
35050 | ||
35051 | int | |
35052 | main () | |
35053 | { | |
35054 | return f != $ac_func; | |
35055 | ; | |
35056 | return 0; | |
35057 | } | |
35058 | _ACEOF | |
35059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35061 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35062 | ac_status=$? |
ac1cb8d3 VS |
35063 | grep -v '^ *+' conftest.er1 >conftest.err |
35064 | rm -f conftest.er1 | |
35065 | cat conftest.err >&5 | |
a848cd7e SC |
35066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35067 | (exit $ac_status); } && | |
07158944 | 35068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35070 | (eval $ac_try) 2>&5 | |
35071 | ac_status=$? | |
35072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35073 | (exit $ac_status); }; } && | |
35074 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35076 | (eval $ac_try) 2>&5 | |
35077 | ac_status=$? | |
35078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35079 | (exit $ac_status); }; }; then | |
35080 | eval "$as_ac_var=yes" | |
35081 | else | |
35082 | echo "$as_me: failed program was:" >&5 | |
35083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35084 | ||
35085 | eval "$as_ac_var=no" | |
35086 | fi | |
ac1cb8d3 VS |
35087 | rm -f conftest.err conftest.$ac_objext \ |
35088 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35089 | fi |
35090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35091 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35092 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35093 | cat >>confdefs.h <<_ACEOF | |
35094 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35095 | _ACEOF | |
35096 | ||
35097 | cat >>confdefs.h <<\_ACEOF | |
35098 | #define HAVE_DLOPEN 1 | |
35099 | _ACEOF | |
35100 | ||
35101 | HAVE_DL_FUNCS=1 | |
35102 | ||
35103 | else | |
35104 | ||
35105 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
35106 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
35107 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
35108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35109 | else | |
35110 | ac_check_lib_save_LIBS=$LIBS | |
35111 | LIBS="-ldl $LIBS" | |
35112 | cat >conftest.$ac_ext <<_ACEOF | |
35113 | /* confdefs.h. */ | |
35114 | _ACEOF | |
35115 | cat confdefs.h >>conftest.$ac_ext | |
35116 | cat >>conftest.$ac_ext <<_ACEOF | |
35117 | /* end confdefs.h. */ | |
35118 | ||
35119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35120 | #ifdef __cplusplus | |
35121 | extern "C" | |
35122 | #endif | |
35123 | /* We use char because int might match the return type of a gcc2 | |
35124 | builtin and then its argument prototype would still apply. */ | |
35125 | char dlopen (); | |
35126 | int | |
35127 | main () | |
35128 | { | |
35129 | dlopen (); | |
35130 | ; | |
35131 | return 0; | |
35132 | } | |
35133 | _ACEOF | |
35134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35137 | ac_status=$? |
ac1cb8d3 VS |
35138 | grep -v '^ *+' conftest.er1 >conftest.err |
35139 | rm -f conftest.er1 | |
35140 | cat conftest.err >&5 | |
a848cd7e SC |
35141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35142 | (exit $ac_status); } && | |
07158944 | 35143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35145 | (eval $ac_try) 2>&5 | |
35146 | ac_status=$? | |
35147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35148 | (exit $ac_status); }; } && | |
35149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35151 | (eval $ac_try) 2>&5 | |
35152 | ac_status=$? | |
35153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35154 | (exit $ac_status); }; }; then | |
35155 | ac_cv_lib_dl_dlopen=yes | |
35156 | else | |
35157 | echo "$as_me: failed program was:" >&5 | |
35158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35159 | ||
35160 | ac_cv_lib_dl_dlopen=no | |
35161 | fi | |
ac1cb8d3 VS |
35162 | rm -f conftest.err conftest.$ac_objext \ |
35163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35164 | LIBS=$ac_check_lib_save_LIBS |
35165 | fi | |
35166 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
35167 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
35168 | if test $ac_cv_lib_dl_dlopen = yes; then | |
35169 | ||
35170 | cat >>confdefs.h <<\_ACEOF | |
35171 | #define HAVE_DLOPEN 1 | |
35172 | _ACEOF | |
35173 | ||
35174 | HAVE_DL_FUNCS=1 | |
35175 | DL_LINK=" -ldl$DL_LINK" | |
35176 | ||
35177 | else | |
35178 | ||
35179 | ||
35180 | for ac_func in shl_load | |
35181 | do | |
35182 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35183 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35185 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35187 | else | |
35188 | cat >conftest.$ac_ext <<_ACEOF | |
35189 | /* confdefs.h. */ | |
35190 | _ACEOF | |
35191 | cat confdefs.h >>conftest.$ac_ext | |
35192 | cat >>conftest.$ac_ext <<_ACEOF | |
35193 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35194 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35195 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35196 | #define $ac_func innocuous_$ac_func | |
35197 | ||
a848cd7e SC |
35198 | /* System header to define __stub macros and hopefully few prototypes, |
35199 | which can conflict with char $ac_func (); below. | |
35200 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35201 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35202 | |
a848cd7e SC |
35203 | #ifdef __STDC__ |
35204 | # include <limits.h> | |
35205 | #else | |
35206 | # include <assert.h> | |
35207 | #endif | |
ac1cb8d3 VS |
35208 | |
35209 | #undef $ac_func | |
35210 | ||
a848cd7e SC |
35211 | /* Override any gcc2 internal prototype to avoid an error. */ |
35212 | #ifdef __cplusplus | |
35213 | extern "C" | |
35214 | { | |
35215 | #endif | |
35216 | /* We use char because int might match the return type of a gcc2 | |
35217 | builtin and then its argument prototype would still apply. */ | |
35218 | char $ac_func (); | |
35219 | /* The GNU C library defines this for functions which it implements | |
35220 | to always fail with ENOSYS. Some functions are actually named | |
35221 | something starting with __ and the normal name is an alias. */ | |
35222 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35223 | choke me | |
35224 | #else | |
35225 | char (*f) () = $ac_func; | |
35226 | #endif | |
35227 | #ifdef __cplusplus | |
35228 | } | |
35229 | #endif | |
35230 | ||
35231 | int | |
35232 | main () | |
35233 | { | |
35234 | return f != $ac_func; | |
35235 | ; | |
35236 | return 0; | |
35237 | } | |
35238 | _ACEOF | |
35239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35241 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35242 | ac_status=$? |
ac1cb8d3 VS |
35243 | grep -v '^ *+' conftest.er1 >conftest.err |
35244 | rm -f conftest.er1 | |
35245 | cat conftest.err >&5 | |
a848cd7e SC |
35246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35247 | (exit $ac_status); } && | |
07158944 | 35248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35250 | (eval $ac_try) 2>&5 | |
35251 | ac_status=$? | |
35252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35253 | (exit $ac_status); }; } && | |
35254 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35256 | (eval $ac_try) 2>&5 | |
35257 | ac_status=$? | |
35258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35259 | (exit $ac_status); }; }; then | |
35260 | eval "$as_ac_var=yes" | |
35261 | else | |
35262 | echo "$as_me: failed program was:" >&5 | |
35263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35264 | ||
35265 | eval "$as_ac_var=no" | |
35266 | fi | |
ac1cb8d3 VS |
35267 | rm -f conftest.err conftest.$ac_objext \ |
35268 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35269 | fi |
35270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35271 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35272 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35273 | cat >>confdefs.h <<_ACEOF | |
35274 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35275 | _ACEOF | |
35276 | ||
35277 | cat >>confdefs.h <<\_ACEOF | |
35278 | #define HAVE_SHL_LOAD 1 | |
35279 | _ACEOF | |
35280 | ||
35281 | HAVE_SHL_FUNCS=1 | |
35282 | ||
35283 | else | |
35284 | ||
35285 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
35286 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
35287 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
35288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35289 | else | |
35290 | ac_check_lib_save_LIBS=$LIBS | |
35291 | LIBS="-lshl_load $LIBS" | |
35292 | cat >conftest.$ac_ext <<_ACEOF | |
35293 | /* confdefs.h. */ | |
35294 | _ACEOF | |
35295 | cat confdefs.h >>conftest.$ac_ext | |
35296 | cat >>conftest.$ac_ext <<_ACEOF | |
35297 | /* end confdefs.h. */ | |
35298 | ||
35299 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35300 | #ifdef __cplusplus | |
35301 | extern "C" | |
35302 | #endif | |
35303 | /* We use char because int might match the return type of a gcc2 | |
35304 | builtin and then its argument prototype would still apply. */ | |
35305 | char dld (); | |
35306 | int | |
35307 | main () | |
35308 | { | |
35309 | dld (); | |
35310 | ; | |
35311 | return 0; | |
35312 | } | |
35313 | _ACEOF | |
35314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35316 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35317 | ac_status=$? |
ac1cb8d3 VS |
35318 | grep -v '^ *+' conftest.er1 >conftest.err |
35319 | rm -f conftest.er1 | |
35320 | cat conftest.err >&5 | |
a848cd7e SC |
35321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35322 | (exit $ac_status); } && | |
07158944 | 35323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35325 | (eval $ac_try) 2>&5 | |
35326 | ac_status=$? | |
35327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35328 | (exit $ac_status); }; } && | |
35329 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35331 | (eval $ac_try) 2>&5 | |
35332 | ac_status=$? | |
35333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35334 | (exit $ac_status); }; }; then | |
35335 | ac_cv_lib_shl_load_dld=yes | |
35336 | else | |
35337 | echo "$as_me: failed program was:" >&5 | |
35338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35339 | ||
35340 | ac_cv_lib_shl_load_dld=no | |
35341 | fi | |
ac1cb8d3 VS |
35342 | rm -f conftest.err conftest.$ac_objext \ |
35343 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35344 | LIBS=$ac_check_lib_save_LIBS |
35345 | fi | |
35346 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
35347 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
35348 | if test $ac_cv_lib_shl_load_dld = yes; then | |
35349 | ||
35350 | HAVE_SHL_FUNCS=1 | |
35351 | DL_LINK=" -ldld$DL_LINK" | |
35352 | ||
35353 | fi | |
35354 | ||
35355 | ||
35356 | fi | |
35357 | done | |
35358 | ||
35359 | ||
35360 | fi | |
35361 | ||
35362 | ||
35363 | fi | |
35364 | done | |
35365 | ||
35366 | ||
35367 | if test "$HAVE_DL_FUNCS" = 1; then | |
35368 | ||
35369 | for ac_func in dlerror | |
35370 | do | |
35371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35372 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35374 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35376 | else | |
35377 | cat >conftest.$ac_ext <<_ACEOF | |
35378 | /* confdefs.h. */ | |
35379 | _ACEOF | |
35380 | cat confdefs.h >>conftest.$ac_ext | |
35381 | cat >>conftest.$ac_ext <<_ACEOF | |
35382 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35383 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35385 | #define $ac_func innocuous_$ac_func | |
35386 | ||
a848cd7e SC |
35387 | /* System header to define __stub macros and hopefully few prototypes, |
35388 | which can conflict with char $ac_func (); below. | |
35389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35390 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35391 | |
a848cd7e SC |
35392 | #ifdef __STDC__ |
35393 | # include <limits.h> | |
35394 | #else | |
35395 | # include <assert.h> | |
35396 | #endif | |
ac1cb8d3 VS |
35397 | |
35398 | #undef $ac_func | |
35399 | ||
a848cd7e SC |
35400 | /* Override any gcc2 internal prototype to avoid an error. */ |
35401 | #ifdef __cplusplus | |
35402 | extern "C" | |
35403 | { | |
35404 | #endif | |
35405 | /* We use char because int might match the return type of a gcc2 | |
35406 | builtin and then its argument prototype would still apply. */ | |
35407 | char $ac_func (); | |
35408 | /* The GNU C library defines this for functions which it implements | |
35409 | to always fail with ENOSYS. Some functions are actually named | |
35410 | something starting with __ and the normal name is an alias. */ | |
35411 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35412 | choke me | |
35413 | #else | |
35414 | char (*f) () = $ac_func; | |
35415 | #endif | |
35416 | #ifdef __cplusplus | |
35417 | } | |
35418 | #endif | |
35419 | ||
35420 | int | |
35421 | main () | |
35422 | { | |
35423 | return f != $ac_func; | |
35424 | ; | |
35425 | return 0; | |
35426 | } | |
35427 | _ACEOF | |
35428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35430 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35431 | ac_status=$? |
ac1cb8d3 VS |
35432 | grep -v '^ *+' conftest.er1 >conftest.err |
35433 | rm -f conftest.er1 | |
35434 | cat conftest.err >&5 | |
a848cd7e SC |
35435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35436 | (exit $ac_status); } && | |
07158944 | 35437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35439 | (eval $ac_try) 2>&5 | |
35440 | ac_status=$? | |
35441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35442 | (exit $ac_status); }; } && | |
35443 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35445 | (eval $ac_try) 2>&5 | |
35446 | ac_status=$? | |
35447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35448 | (exit $ac_status); }; }; then | |
35449 | eval "$as_ac_var=yes" | |
35450 | else | |
35451 | echo "$as_me: failed program was:" >&5 | |
35452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35453 | ||
35454 | eval "$as_ac_var=no" | |
35455 | fi | |
ac1cb8d3 VS |
35456 | rm -f conftest.err conftest.$ac_objext \ |
35457 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35458 | fi |
35459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35460 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35461 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35462 | cat >>confdefs.h <<_ACEOF | |
35463 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35464 | _ACEOF | |
35465 | cat >>confdefs.h <<\_ACEOF | |
35466 | #define HAVE_DLERROR 1 | |
35467 | _ACEOF | |
35468 | ||
35469 | else | |
35470 | ||
35471 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
35472 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
35473 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
35474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35475 | else | |
35476 | ac_check_lib_save_LIBS=$LIBS | |
35477 | LIBS="-ldl $LIBS" | |
35478 | cat >conftest.$ac_ext <<_ACEOF | |
35479 | /* confdefs.h. */ | |
35480 | _ACEOF | |
35481 | cat confdefs.h >>conftest.$ac_ext | |
35482 | cat >>conftest.$ac_ext <<_ACEOF | |
35483 | /* end confdefs.h. */ | |
35484 | ||
35485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35486 | #ifdef __cplusplus | |
35487 | extern "C" | |
35488 | #endif | |
35489 | /* We use char because int might match the return type of a gcc2 | |
35490 | builtin and then its argument prototype would still apply. */ | |
35491 | char dlerror (); | |
35492 | int | |
35493 | main () | |
35494 | { | |
35495 | dlerror (); | |
35496 | ; | |
35497 | return 0; | |
35498 | } | |
35499 | _ACEOF | |
35500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35502 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35503 | ac_status=$? |
ac1cb8d3 VS |
35504 | grep -v '^ *+' conftest.er1 >conftest.err |
35505 | rm -f conftest.er1 | |
35506 | cat conftest.err >&5 | |
a848cd7e SC |
35507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35508 | (exit $ac_status); } && | |
07158944 | 35509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35511 | (eval $ac_try) 2>&5 | |
35512 | ac_status=$? | |
35513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35514 | (exit $ac_status); }; } && | |
35515 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35517 | (eval $ac_try) 2>&5 | |
35518 | ac_status=$? | |
35519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35520 | (exit $ac_status); }; }; then | |
35521 | ac_cv_lib_dl_dlerror=yes | |
35522 | else | |
35523 | echo "$as_me: failed program was:" >&5 | |
35524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35525 | ||
35526 | ac_cv_lib_dl_dlerror=no | |
35527 | fi | |
ac1cb8d3 VS |
35528 | rm -f conftest.err conftest.$ac_objext \ |
35529 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35530 | LIBS=$ac_check_lib_save_LIBS |
35531 | fi | |
35532 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
35533 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
35534 | if test $ac_cv_lib_dl_dlerror = yes; then | |
35535 | cat >>confdefs.h <<\_ACEOF | |
35536 | #define HAVE_DLERROR 1 | |
35537 | _ACEOF | |
35538 | ||
35539 | fi | |
35540 | ||
35541 | ||
35542 | ||
35543 | fi | |
35544 | done | |
35545 | ||
35546 | fi | |
35547 | fi | |
35548 | ||
35549 | if test "$HAVE_DL_FUNCS" = 0; then | |
35550 | if test "$HAVE_SHL_FUNCS" = 0; then | |
35551 | if test "$USE_UNIX" = 1; then | |
35552 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
35553 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
35554 | wxUSE_DYNAMIC_LOADER=no | |
35555 | wxUSE_DYNLIB_CLASS=no | |
35556 | else | |
35557 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
35558 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
35559 | fi | |
35560 | fi | |
35561 | fi | |
35562 | fi | |
35563 | fi | |
35564 | ||
35565 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
35566 | cat >>confdefs.h <<\_ACEOF | |
35567 | #define wxUSE_DYNAMIC_LOADER 1 | |
35568 | _ACEOF | |
35569 | ||
35570 | fi | |
35571 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35572 | cat >>confdefs.h <<\_ACEOF | |
35573 | #define wxUSE_DYNLIB_CLASS 1 | |
35574 | _ACEOF | |
35575 | ||
35576 | fi | |
35577 | ||
35578 | ||
35579 | ||
35580 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35581 | if test "$wxUSE_SHARED" = "no" ; then | |
35582 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
35583 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
35584 | wxUSE_PLUGINS=no | |
35585 | fi | |
35586 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
35587 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
35588 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
35589 | wxUSE_PLUGINS=no | |
35590 | fi | |
35591 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
35592 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
35593 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
35594 | wxUSE_PLUGINS=no | |
35595 | fi | |
35596 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35597 | cat >>confdefs.h <<\_ACEOF | |
35598 | #define wxUSE_PLUGINS 1 | |
35599 | _ACEOF | |
35600 | ||
35601 | fi | |
35602 | fi | |
35603 | ||
35604 | ||
35605 | if test "$wxUSE_STL" = "yes"; then | |
35606 | cat >>confdefs.h <<\_ACEOF | |
35607 | #define wxUSE_STL 1 | |
35608 | _ACEOF | |
35609 | ||
35610 | fi | |
35611 | ||
35612 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
35613 | cat >>confdefs.h <<\_ACEOF | |
35614 | #define wxUSE_APPLE_IEEE 1 | |
35615 | _ACEOF | |
35616 | ||
35617 | fi | |
35618 | ||
35619 | if test "$wxUSE_TIMER" = "yes"; then | |
35620 | cat >>confdefs.h <<\_ACEOF | |
35621 | #define wxUSE_TIMER 1 | |
35622 | _ACEOF | |
35623 | ||
35624 | fi | |
35625 | ||
35626 | WITH_PLUGIN_SDL=0 | |
35627 | if test "$wxUSE_SOUND" = "yes"; then | |
35628 | if test "$USE_UNIX" = "1" ; then | |
35629 | ||
35630 | for ac_header in sys/soundcard.h | |
35631 | do | |
35632 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35633 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35638 | fi | |
35639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35641 | else | |
35642 | # Is the header compilable? | |
35643 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35644 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35645 | cat >conftest.$ac_ext <<_ACEOF | |
35646 | /* confdefs.h. */ | |
35647 | _ACEOF | |
35648 | cat confdefs.h >>conftest.$ac_ext | |
35649 | cat >>conftest.$ac_ext <<_ACEOF | |
35650 | /* end confdefs.h. */ | |
35651 | $ac_includes_default | |
35652 | #include <$ac_header> | |
35653 | _ACEOF | |
35654 | rm -f conftest.$ac_objext | |
35655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35656 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35657 | ac_status=$? |
ac1cb8d3 VS |
35658 | grep -v '^ *+' conftest.er1 >conftest.err |
35659 | rm -f conftest.er1 | |
35660 | cat conftest.err >&5 | |
a848cd7e SC |
35661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35662 | (exit $ac_status); } && | |
07158944 | 35663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35665 | (eval $ac_try) 2>&5 | |
35666 | ac_status=$? | |
35667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35668 | (exit $ac_status); }; } && | |
35669 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35671 | (eval $ac_try) 2>&5 | |
35672 | ac_status=$? | |
35673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35674 | (exit $ac_status); }; }; then | |
35675 | ac_header_compiler=yes | |
35676 | else | |
35677 | echo "$as_me: failed program was:" >&5 | |
35678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35679 | ||
35680 | ac_header_compiler=no | |
35681 | fi | |
ac1cb8d3 | 35682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35683 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35684 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35685 | ||
35686 | # Is the header present? | |
35687 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35688 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35689 | cat >conftest.$ac_ext <<_ACEOF | |
35690 | /* confdefs.h. */ | |
35691 | _ACEOF | |
35692 | cat confdefs.h >>conftest.$ac_ext | |
35693 | cat >>conftest.$ac_ext <<_ACEOF | |
35694 | /* end confdefs.h. */ | |
35695 | #include <$ac_header> | |
35696 | _ACEOF | |
35697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35699 | ac_status=$? | |
35700 | grep -v '^ *+' conftest.er1 >conftest.err | |
35701 | rm -f conftest.er1 | |
35702 | cat conftest.err >&5 | |
35703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35704 | (exit $ac_status); } >/dev/null; then | |
35705 | if test -s conftest.err; then | |
35706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35708 | else |
35709 | ac_cpp_err= | |
35710 | fi | |
35711 | else | |
35712 | ac_cpp_err=yes | |
35713 | fi | |
35714 | if test -z "$ac_cpp_err"; then | |
35715 | ac_header_preproc=yes | |
35716 | else | |
35717 | echo "$as_me: failed program was:" >&5 | |
35718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35719 | ||
35720 | ac_header_preproc=no | |
35721 | fi | |
35722 | rm -f conftest.err conftest.$ac_ext | |
35723 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35724 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35725 | ||
35726 | # So? What about this header? | |
ac1cb8d3 VS |
35727 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35728 | yes:no: ) | |
a848cd7e SC |
35729 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35730 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35731 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35732 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35733 | ac_header_preproc=yes | |
a848cd7e | 35734 | ;; |
ac1cb8d3 | 35735 | no:yes:* ) |
a848cd7e SC |
35736 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35737 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35738 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35739 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35740 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35741 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35742 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35743 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35745 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35746 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35747 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35748 | ( |
35749 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35750 | ## ----------------------------------------- ## |
35751 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35752 | ## ----------------------------------------- ## | |
a848cd7e SC |
35753 | _ASBOX |
35754 | ) | | |
35755 | sed "s/^/$as_me: WARNING: /" >&2 | |
35756 | ;; | |
35757 | esac | |
35758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35762 | else | |
ac1cb8d3 | 35763 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35764 | fi |
35765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35767 | ||
35768 | fi | |
35769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35770 | cat >>confdefs.h <<_ACEOF | |
35771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35772 | _ACEOF | |
35773 | ||
35774 | fi | |
35775 | ||
35776 | done | |
35777 | ||
35778 | ||
35779 | if test "$wxUSE_LIBSDL" != "no"; then | |
35780 | ||
35781 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
35782 | if test "${with_sdl_prefix+set}" = set; then | |
35783 | withval="$with_sdl_prefix" | |
35784 | sdl_prefix="$withval" | |
35785 | else | |
35786 | sdl_prefix="" | |
35787 | fi; | |
35788 | ||
35789 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
35790 | if test "${with_sdl_exec_prefix+set}" = set; then | |
35791 | withval="$with_sdl_exec_prefix" | |
35792 | sdl_exec_prefix="$withval" | |
35793 | else | |
35794 | sdl_exec_prefix="" | |
35795 | fi; | |
35796 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
35797 | if test "${enable_sdltest+set}" = set; then | |
35798 | enableval="$enable_sdltest" | |
35799 | ||
35800 | else | |
35801 | enable_sdltest=yes | |
35802 | fi; | |
35803 | ||
35804 | if test x$sdl_exec_prefix != x ; then | |
35805 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
35806 | if test x${SDL_CONFIG+set} != xset ; then | |
35807 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
35808 | fi | |
35809 | fi | |
35810 | if test x$sdl_prefix != x ; then | |
35811 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
35812 | if test x${SDL_CONFIG+set} != xset ; then | |
35813 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
35814 | fi | |
35815 | fi | |
35816 | ||
35817 | ||
35818 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
35819 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
35820 | set dummy sdl-config; ac_word=$2 | |
35821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35823 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
35824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35825 | else | |
35826 | case $SDL_CONFIG in | |
35827 | [\\/]* | ?:[\\/]*) | |
35828 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
35829 | ;; | |
35830 | *) | |
35831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35832 | for as_dir in $PATH | |
35833 | do | |
35834 | IFS=$as_save_IFS | |
35835 | test -z "$as_dir" && as_dir=. | |
35836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35838 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35840 | break 2 | |
35841 | fi | |
35842 | done | |
35843 | done | |
35844 | ||
35845 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
35846 | ;; | |
35847 | esac | |
35848 | fi | |
35849 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
35850 | ||
35851 | if test -n "$SDL_CONFIG"; then | |
35852 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
35853 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
35854 | else | |
35855 | echo "$as_me:$LINENO: result: no" >&5 | |
35856 | echo "${ECHO_T}no" >&6 | |
35857 | fi | |
35858 | ||
35859 | min_sdl_version=1.2.0 | |
35860 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
35861 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
35862 | no_sdl="" | |
35863 | if test "$SDL_CONFIG" = "no" ; then | |
35864 | no_sdl=yes | |
35865 | else | |
35866 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
35867 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
35868 | ||
35869 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
35870 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
35871 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
35872 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
35873 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
35874 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
35875 | if test "x$enable_sdltest" = "xyes" ; then | |
35876 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 35877 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
35878 | ac_save_LIBS="$LIBS" |
35879 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 35880 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
35881 | LIBS="$LIBS $SDL_LIBS" |
35882 | rm -f conf.sdltest | |
35883 | if test "$cross_compiling" = yes; then | |
35884 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
35885 | else | |
35886 | cat >conftest.$ac_ext <<_ACEOF | |
35887 | /* confdefs.h. */ | |
35888 | _ACEOF | |
35889 | cat confdefs.h >>conftest.$ac_ext | |
35890 | cat >>conftest.$ac_ext <<_ACEOF | |
35891 | /* end confdefs.h. */ | |
35892 | ||
35893 | #include <stdio.h> | |
35894 | #include <stdlib.h> | |
35895 | #include <string.h> | |
35896 | #include "SDL.h" | |
35897 | ||
35898 | char* | |
35899 | my_strdup (char *str) | |
35900 | { | |
35901 | char *new_str; | |
35902 | ||
35903 | if (str) | |
35904 | { | |
35905 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
35906 | strcpy (new_str, str); | |
35907 | } | |
35908 | else | |
35909 | new_str = NULL; | |
35910 | ||
35911 | return new_str; | |
35912 | } | |
35913 | ||
35914 | int main (int argc, char *argv[]) | |
35915 | { | |
35916 | int major, minor, micro; | |
35917 | char *tmp_version; | |
35918 | ||
35919 | /* This hangs on some systems (?) | |
35920 | system ("touch conf.sdltest"); | |
35921 | */ | |
35922 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
35923 | ||
35924 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
35925 | tmp_version = my_strdup("$min_sdl_version"); | |
35926 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
35927 | printf("%s, bad version string\n", "$min_sdl_version"); | |
35928 | exit(1); | |
35929 | } | |
35930 | ||
35931 | if (($sdl_major_version > major) || | |
35932 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
35933 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
35934 | { | |
35935 | return 0; | |
35936 | } | |
35937 | else | |
35938 | { | |
35939 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
35940 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
35941 | printf("*** best to upgrade to the required version.\n"); | |
35942 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
35943 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
35944 | printf("*** config.cache before re-running configure\n"); | |
35945 | return 1; | |
35946 | } | |
35947 | } | |
35948 | ||
35949 | ||
35950 | _ACEOF | |
35951 | rm -f conftest$ac_exeext | |
35952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35953 | (eval $ac_link) 2>&5 | |
35954 | ac_status=$? | |
35955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35958 | (eval $ac_try) 2>&5 | |
35959 | ac_status=$? | |
35960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35961 | (exit $ac_status); }; }; then | |
35962 | : | |
35963 | else | |
35964 | echo "$as_me: program exited with status $ac_status" >&5 | |
35965 | echo "$as_me: failed program was:" >&5 | |
35966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35967 | ||
35968 | ( exit $ac_status ) | |
35969 | no_sdl=yes | |
35970 | fi | |
ac1cb8d3 | 35971 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35972 | fi |
35973 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 35974 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
35975 | LIBS="$ac_save_LIBS" |
35976 | fi | |
35977 | fi | |
35978 | if test "x$no_sdl" = x ; then | |
35979 | echo "$as_me:$LINENO: result: yes" >&5 | |
35980 | echo "${ECHO_T}yes" >&6 | |
35981 | ||
35982 | EXTRALIBS_SDL="$SDL_LIBS" | |
35983 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
35984 | cat >>confdefs.h <<\_ACEOF | |
35985 | #define wxUSE_LIBSDL 1 | |
35986 | _ACEOF | |
35987 | ||
35988 | ||
35989 | else | |
35990 | echo "$as_me:$LINENO: result: no" >&5 | |
35991 | echo "${ECHO_T}no" >&6 | |
35992 | if test "$SDL_CONFIG" = "no" ; then | |
35993 | echo "*** The sdl-config script installed by SDL could not be found" | |
35994 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
35995 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
35996 | echo "*** full path to sdl-config." | |
35997 | else | |
35998 | if test -f conf.sdltest ; then | |
35999 | : | |
36000 | else | |
36001 | echo "*** Could not run SDL test program, checking why..." | |
36002 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 36003 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
36004 | LIBS="$LIBS $SDL_LIBS" |
36005 | cat >conftest.$ac_ext <<_ACEOF | |
36006 | /* confdefs.h. */ | |
36007 | _ACEOF | |
36008 | cat confdefs.h >>conftest.$ac_ext | |
36009 | cat >>conftest.$ac_ext <<_ACEOF | |
36010 | /* end confdefs.h. */ | |
36011 | ||
36012 | #include <stdio.h> | |
36013 | #include "SDL.h" | |
36014 | ||
36015 | int main(int argc, char *argv[]) | |
36016 | { return 0; } | |
36017 | #undef main | |
36018 | #define main K_and_R_C_main | |
36019 | ||
36020 | int | |
36021 | main () | |
36022 | { | |
36023 | return 0; | |
36024 | ; | |
36025 | return 0; | |
36026 | } | |
36027 | _ACEOF | |
36028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36030 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36031 | ac_status=$? |
ac1cb8d3 VS |
36032 | grep -v '^ *+' conftest.er1 >conftest.err |
36033 | rm -f conftest.er1 | |
36034 | cat conftest.err >&5 | |
a848cd7e SC |
36035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36036 | (exit $ac_status); } && | |
07158944 | 36037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36039 | (eval $ac_try) 2>&5 | |
36040 | ac_status=$? | |
36041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36042 | (exit $ac_status); }; } && | |
36043 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36045 | (eval $ac_try) 2>&5 | |
36046 | ac_status=$? | |
36047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36048 | (exit $ac_status); }; }; then | |
36049 | echo "*** The test program compiled, but did not run. This usually means" | |
36050 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
36051 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
36052 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
36053 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
36054 | echo "*** is required on your system" | |
36055 | echo "***" | |
36056 | echo "*** If you have an old version installed, it is best to remove it, although" | |
36057 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
36058 | else | |
36059 | echo "$as_me: failed program was:" >&5 | |
36060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36061 | ||
36062 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
36063 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
36064 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
36065 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
36066 | fi | |
ac1cb8d3 VS |
36067 | rm -f conftest.err conftest.$ac_objext \ |
36068 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 36069 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 36070 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
36071 | LIBS="$ac_save_LIBS" |
36072 | fi | |
36073 | fi | |
36074 | SDL_CFLAGS="" | |
36075 | SDL_LIBS="" | |
36076 | wxUSE_LIBSDL="no" | |
36077 | fi | |
36078 | ||
36079 | ||
36080 | rm -f conf.sdltest | |
36081 | ||
36082 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
36083 | WITH_PLUGIN_SDL=1 | |
36084 | fi | |
36085 | fi | |
36086 | fi | |
36087 | ||
36088 | cat >>confdefs.h <<\_ACEOF | |
36089 | #define wxUSE_SOUND 1 | |
36090 | _ACEOF | |
36091 | ||
36092 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
36093 | fi | |
36094 | ||
d1c38808 VZ |
36095 | if test "$WXGTK20" = 1; then |
36096 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36097 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
36098 | ||
36099 | ||
36100 | succeeded=no | |
36101 | ||
36102 | if test -z "$PKG_CONFIG"; then | |
36103 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
36104 | set dummy pkg-config; ac_word=$2 | |
36105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36107 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
36108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36109 | else | |
36110 | case $PKG_CONFIG in | |
36111 | [\\/]* | ?:[\\/]*) | |
36112 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
36113 | ;; | |
36114 | *) | |
36115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36116 | for as_dir in $PATH | |
36117 | do | |
36118 | IFS=$as_save_IFS | |
36119 | test -z "$as_dir" && as_dir=. | |
36120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36122 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
36123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36124 | break 2 | |
36125 | fi | |
36126 | done | |
36127 | done | |
36128 | ||
36129 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
36130 | ;; | |
36131 | esac | |
36132 | fi | |
36133 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
36134 | ||
36135 | if test -n "$PKG_CONFIG"; then | |
36136 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
36137 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
36138 | else | |
36139 | echo "$as_me:$LINENO: result: no" >&5 | |
36140 | echo "${ECHO_T}no" >&6 | |
36141 | fi | |
36142 | ||
36143 | fi | |
36144 | ||
36145 | if test "$PKG_CONFIG" = "no" ; then | |
36146 | echo "*** The pkg-config script could not be found. Make sure it is" | |
36147 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
36148 | echo "*** to the full path to pkg-config." | |
36149 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
36150 | else | |
36151 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
36152 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
36153 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
36154 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 36155 | |
ffa762ff | 36156 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
36157 | echo "$as_me:$LINENO: result: yes" >&5 |
36158 | echo "${ECHO_T}yes" >&6 | |
36159 | succeeded=yes | |
36160 | ||
36161 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
36162 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 36163 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36164 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
36165 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
36166 | ||
36167 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
36168 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 36169 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36170 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
36171 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
36172 | else | |
36173 | LIBGNOMEPRINTUI_CFLAGS="" | |
36174 | LIBGNOMEPRINTUI_LIBS="" | |
36175 | ## If we have a custom action on failure, don't print errors, but | |
36176 | ## do set a variable so people can do so. | |
ffa762ff | 36177 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
36178 | |
36179 | fi | |
36180 | ||
36181 | ||
36182 | ||
36183 | else | |
36184 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
36185 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
36186 | fi | |
36187 | fi | |
36188 | ||
36189 | if test $succeeded = yes; then | |
36190 | ||
d1c38808 VZ |
36191 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
36192 | cat >>confdefs.h <<\_ACEOF | |
36193 | #define wxUSE_LIBGNOMEPRINT 1 | |
36194 | _ACEOF | |
36195 | ||
36196 | ||
36197 | else | |
36198 | ||
36199 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
36200 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
36201 | wxUSE_LIBGNOMEPRINT="no" | |
36202 | ||
36203 | ||
36204 | fi | |
36205 | ||
36206 | fi | |
36207 | fi | |
36208 | fi | |
36209 | ||
36210 | ||
a848cd7e SC |
36211 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
36212 | cat >>confdefs.h <<\_ACEOF | |
36213 | #define wxUSE_CMDLINE_PARSER 1 | |
36214 | _ACEOF | |
36215 | ||
36216 | fi | |
36217 | ||
36218 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
36219 | cat >>confdefs.h <<\_ACEOF | |
36220 | #define wxUSE_STOPWATCH 1 | |
36221 | _ACEOF | |
36222 | ||
36223 | fi | |
36224 | ||
36225 | if test "$wxUSE_DATETIME" = "yes"; then | |
36226 | cat >>confdefs.h <<\_ACEOF | |
36227 | #define wxUSE_DATETIME 1 | |
36228 | _ACEOF | |
36229 | ||
36230 | fi | |
36231 | ||
36232 | if test "$wxUSE_FILE" = "yes"; then | |
36233 | cat >>confdefs.h <<\_ACEOF | |
36234 | #define wxUSE_FILE 1 | |
36235 | _ACEOF | |
36236 | ||
36237 | fi | |
36238 | ||
36239 | if test "$wxUSE_FFILE" = "yes"; then | |
36240 | cat >>confdefs.h <<\_ACEOF | |
36241 | #define wxUSE_FFILE 1 | |
36242 | _ACEOF | |
36243 | ||
36244 | fi | |
36245 | ||
36246 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
36247 | cat >>confdefs.h <<\_ACEOF | |
36248 | #define wxUSE_FILESYSTEM 1 | |
36249 | _ACEOF | |
36250 | ||
36251 | fi | |
36252 | ||
36253 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
36254 | cat >>confdefs.h <<\_ACEOF | |
36255 | #define wxUSE_FS_ZIP 1 | |
36256 | _ACEOF | |
36257 | ||
36258 | fi | |
36259 | ||
9e8e867f | 36260 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 36261 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 36262 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
36263 | _ACEOF |
36264 | ||
36265 | fi | |
36266 | ||
36267 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 36268 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
36269 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
36270 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
36271 | elif test "$wxUSE_ZLIB" = "no"; then | |
36272 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
36273 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
36274 | else | |
36275 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36276 | #define wxUSE_ZIPSTREAM 1 |
36277 | _ACEOF | |
36278 | ||
81f90336 | 36279 | fi |
a848cd7e SC |
36280 | fi |
36281 | ||
a848cd7e SC |
36282 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
36283 | cat >>confdefs.h <<\_ACEOF | |
36284 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
36285 | _ACEOF | |
36286 | ||
36287 | fi | |
36288 | ||
eaff0f0d VZ |
36289 | if test "$wxUSE_STACKWALKER" = "yes"; then |
36290 | cat >>confdefs.h <<\_ACEOF | |
36291 | #define wxUSE_STACKWALKER 1 | |
36292 | _ACEOF | |
36293 | ||
36294 | fi | |
36295 | ||
a848cd7e SC |
36296 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
36297 | cat >>confdefs.h <<\_ACEOF | |
36298 | #define wxUSE_SNGLINST_CHECKER 1 | |
36299 | _ACEOF | |
36300 | ||
36301 | fi | |
36302 | ||
36303 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
36304 | cat >>confdefs.h <<\_ACEOF | |
36305 | #define wxUSE_BUSYINFO 1 | |
36306 | _ACEOF | |
36307 | ||
36308 | fi | |
36309 | ||
36310 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
36311 | cat >>confdefs.h <<\_ACEOF | |
36312 | #define wxUSE_STD_IOSTREAM 1 | |
36313 | _ACEOF | |
36314 | ||
36315 | fi | |
36316 | ||
07158944 VZ |
36317 | if test "$wxUSE_STDPATHS" = "yes"; then |
36318 | cat >>confdefs.h <<\_ACEOF | |
36319 | #define wxUSE_STDPATHS 1 | |
36320 | _ACEOF | |
36321 | ||
36322 | fi | |
36323 | ||
a848cd7e SC |
36324 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
36325 | cat >>confdefs.h <<\_ACEOF | |
36326 | #define wxUSE_TEXTBUFFER 1 | |
36327 | _ACEOF | |
36328 | ||
36329 | fi | |
36330 | ||
36331 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
36332 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
36333 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
36334 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
36335 | else | |
36336 | cat >>confdefs.h <<\_ACEOF | |
36337 | #define wxUSE_TEXTFILE 1 | |
36338 | _ACEOF | |
36339 | ||
36340 | fi | |
36341 | fi | |
36342 | ||
36343 | if test "$wxUSE_CONFIG" = "yes" ; then | |
36344 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
36345 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
36346 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
36347 | else | |
36348 | cat >>confdefs.h <<\_ACEOF | |
36349 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
36350 | _ACEOF |
36351 | ||
36352 | cat >>confdefs.h <<\_ACEOF | |
36353 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
36354 | _ACEOF |
36355 | ||
36356 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
36357 | fi | |
36358 | fi | |
36359 | ||
36360 | if test "$wxUSE_INTL" = "yes" ; then | |
36361 | if test "$wxUSE_FILE" != "yes"; then | |
36362 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
36363 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
36364 | else | |
36365 | cat >>confdefs.h <<\_ACEOF | |
36366 | #define wxUSE_INTL 1 | |
36367 | _ACEOF | |
36368 | ||
36369 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
36370 | GUIDIST="$GUIDIST INTL_DIST" | |
36371 | fi | |
36372 | fi | |
36373 | ||
36374 | if test "$wxUSE_LOG" = "yes"; then | |
36375 | cat >>confdefs.h <<\_ACEOF | |
36376 | #define wxUSE_LOG 1 | |
36377 | _ACEOF | |
36378 | ||
36379 | ||
36380 | if test "$wxUSE_LOGGUI" = "yes"; then | |
36381 | cat >>confdefs.h <<\_ACEOF | |
36382 | #define wxUSE_LOGGUI 1 | |
36383 | _ACEOF | |
36384 | ||
36385 | fi | |
36386 | ||
36387 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
36388 | cat >>confdefs.h <<\_ACEOF | |
36389 | #define wxUSE_LOGWINDOW 1 | |
36390 | _ACEOF | |
36391 | ||
36392 | fi | |
36393 | ||
36394 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
36395 | cat >>confdefs.h <<\_ACEOF | |
36396 | #define wxUSE_LOG_DIALOG 1 | |
36397 | _ACEOF | |
36398 | ||
36399 | fi | |
0b78747f MW |
36400 | |
36401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
36402 | fi |
36403 | ||
36404 | if test "$wxUSE_LONGLONG" = "yes"; then | |
36405 | cat >>confdefs.h <<\_ACEOF | |
36406 | #define wxUSE_LONGLONG 1 | |
36407 | _ACEOF | |
36408 | ||
36409 | fi | |
36410 | ||
36411 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
36412 | cat >>confdefs.h <<\_ACEOF | |
36413 | #define wxUSE_GEOMETRY 1 | |
36414 | _ACEOF | |
36415 | ||
36416 | fi | |
36417 | ||
a848cd7e SC |
36418 | if test "$wxUSE_STREAMS" = "yes" ; then |
36419 | cat >>confdefs.h <<\_ACEOF | |
36420 | #define wxUSE_STREAMS 1 | |
36421 | _ACEOF | |
36422 | ||
36423 | fi | |
36424 | ||
36425 | ||
36426 | if test "$wxUSE_DATETIME" = "yes"; then | |
36427 | ||
36428 | for ac_func in strptime | |
36429 | do | |
36430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36433 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36435 | else | |
36436 | cat >conftest.$ac_ext <<_ACEOF | |
36437 | /* confdefs.h. */ | |
36438 | _ACEOF | |
36439 | cat confdefs.h >>conftest.$ac_ext | |
36440 | cat >>conftest.$ac_ext <<_ACEOF | |
36441 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36444 | #define $ac_func innocuous_$ac_func | |
36445 | ||
a848cd7e SC |
36446 | /* System header to define __stub macros and hopefully few prototypes, |
36447 | which can conflict with char $ac_func (); below. | |
36448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36449 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36450 | |
a848cd7e SC |
36451 | #ifdef __STDC__ |
36452 | # include <limits.h> | |
36453 | #else | |
36454 | # include <assert.h> | |
36455 | #endif | |
ac1cb8d3 VS |
36456 | |
36457 | #undef $ac_func | |
36458 | ||
a848cd7e SC |
36459 | /* Override any gcc2 internal prototype to avoid an error. */ |
36460 | #ifdef __cplusplus | |
36461 | extern "C" | |
36462 | { | |
36463 | #endif | |
36464 | /* We use char because int might match the return type of a gcc2 | |
36465 | builtin and then its argument prototype would still apply. */ | |
36466 | char $ac_func (); | |
36467 | /* The GNU C library defines this for functions which it implements | |
36468 | to always fail with ENOSYS. Some functions are actually named | |
36469 | something starting with __ and the normal name is an alias. */ | |
36470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36471 | choke me | |
36472 | #else | |
36473 | char (*f) () = $ac_func; | |
36474 | #endif | |
36475 | #ifdef __cplusplus | |
36476 | } | |
36477 | #endif | |
36478 | ||
36479 | int | |
36480 | main () | |
36481 | { | |
36482 | return f != $ac_func; | |
36483 | ; | |
36484 | return 0; | |
36485 | } | |
36486 | _ACEOF | |
36487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36489 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36490 | ac_status=$? |
ac1cb8d3 VS |
36491 | grep -v '^ *+' conftest.er1 >conftest.err |
36492 | rm -f conftest.er1 | |
36493 | cat conftest.err >&5 | |
a848cd7e SC |
36494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36495 | (exit $ac_status); } && | |
07158944 | 36496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36498 | (eval $ac_try) 2>&5 | |
36499 | ac_status=$? | |
36500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36501 | (exit $ac_status); }; } && | |
36502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36504 | (eval $ac_try) 2>&5 | |
36505 | ac_status=$? | |
36506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36507 | (exit $ac_status); }; }; then | |
36508 | eval "$as_ac_var=yes" | |
36509 | else | |
36510 | echo "$as_me: failed program was:" >&5 | |
36511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36512 | ||
36513 | eval "$as_ac_var=no" | |
36514 | fi | |
ac1cb8d3 VS |
36515 | rm -f conftest.err conftest.$ac_objext \ |
36516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36517 | fi |
36518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36520 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36521 | cat >>confdefs.h <<_ACEOF | |
36522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36523 | _ACEOF | |
36524 | ||
36525 | fi | |
36526 | done | |
36527 | ||
36528 | ||
36529 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
36530 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
36531 | if test "${wx_cv_var_timezone+set}" = set; then | |
36532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36533 | else | |
36534 | ||
36535 | cat >conftest.$ac_ext <<_ACEOF | |
36536 | /* confdefs.h. */ | |
36537 | _ACEOF | |
36538 | cat confdefs.h >>conftest.$ac_ext | |
36539 | cat >>conftest.$ac_ext <<_ACEOF | |
36540 | /* end confdefs.h. */ | |
36541 | ||
36542 | #include <time.h> | |
36543 | ||
36544 | int | |
36545 | main () | |
36546 | { | |
36547 | ||
36548 | int tz; | |
36549 | tz = timezone; | |
36550 | ||
36551 | ; | |
36552 | return 0; | |
36553 | } | |
36554 | _ACEOF | |
36555 | rm -f conftest.$ac_objext | |
36556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36558 | ac_status=$? |
ac1cb8d3 VS |
36559 | grep -v '^ *+' conftest.er1 >conftest.err |
36560 | rm -f conftest.er1 | |
36561 | cat conftest.err >&5 | |
a848cd7e SC |
36562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36563 | (exit $ac_status); } && | |
07158944 | 36564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36566 | (eval $ac_try) 2>&5 | |
36567 | ac_status=$? | |
36568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36569 | (exit $ac_status); }; } && | |
36570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36572 | (eval $ac_try) 2>&5 | |
36573 | ac_status=$? | |
36574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36575 | (exit $ac_status); }; }; then | |
36576 | ||
36577 | wx_cv_var_timezone=timezone | |
36578 | ||
36579 | else | |
36580 | echo "$as_me: failed program was:" >&5 | |
36581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36582 | ||
36583 | ||
36584 | cat >conftest.$ac_ext <<_ACEOF | |
36585 | /* confdefs.h. */ | |
36586 | _ACEOF | |
36587 | cat confdefs.h >>conftest.$ac_ext | |
36588 | cat >>conftest.$ac_ext <<_ACEOF | |
36589 | /* end confdefs.h. */ | |
36590 | ||
36591 | #include <time.h> | |
36592 | ||
36593 | int | |
36594 | main () | |
36595 | { | |
36596 | ||
36597 | int tz; | |
36598 | tz = _timezone; | |
36599 | ||
36600 | ; | |
36601 | return 0; | |
36602 | } | |
36603 | _ACEOF | |
36604 | rm -f conftest.$ac_objext | |
36605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36606 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36607 | ac_status=$? |
ac1cb8d3 VS |
36608 | grep -v '^ *+' conftest.er1 >conftest.err |
36609 | rm -f conftest.er1 | |
36610 | cat conftest.err >&5 | |
a848cd7e SC |
36611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36612 | (exit $ac_status); } && | |
07158944 | 36613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36615 | (eval $ac_try) 2>&5 | |
36616 | ac_status=$? | |
36617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36618 | (exit $ac_status); }; } && | |
36619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36621 | (eval $ac_try) 2>&5 | |
36622 | ac_status=$? | |
36623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36624 | (exit $ac_status); }; }; then | |
36625 | ||
36626 | wx_cv_var_timezone=_timezone | |
36627 | ||
36628 | else | |
36629 | echo "$as_me: failed program was:" >&5 | |
36630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36631 | ||
36632 | ||
36633 | cat >conftest.$ac_ext <<_ACEOF | |
36634 | /* confdefs.h. */ | |
36635 | _ACEOF | |
36636 | cat confdefs.h >>conftest.$ac_ext | |
36637 | cat >>conftest.$ac_ext <<_ACEOF | |
36638 | /* end confdefs.h. */ | |
36639 | ||
36640 | #include <time.h> | |
36641 | ||
36642 | int | |
36643 | main () | |
36644 | { | |
36645 | ||
36646 | int tz; | |
36647 | tz = __timezone; | |
36648 | ||
36649 | ; | |
36650 | return 0; | |
36651 | } | |
36652 | _ACEOF | |
36653 | rm -f conftest.$ac_objext | |
36654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36655 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36656 | ac_status=$? |
ac1cb8d3 VS |
36657 | grep -v '^ *+' conftest.er1 >conftest.err |
36658 | rm -f conftest.er1 | |
36659 | cat conftest.err >&5 | |
a848cd7e SC |
36660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36661 | (exit $ac_status); } && | |
07158944 | 36662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36664 | (eval $ac_try) 2>&5 | |
36665 | ac_status=$? | |
36666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36667 | (exit $ac_status); }; } && | |
36668 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36670 | (eval $ac_try) 2>&5 | |
36671 | ac_status=$? | |
36672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36673 | (exit $ac_status); }; }; then | |
36674 | ||
36675 | wx_cv_var_timezone=__timezone | |
36676 | ||
36677 | else | |
36678 | echo "$as_me: failed program was:" >&5 | |
36679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36680 | ||
36681 | ||
36682 | if test "$USE_DOS" = 0 ; then | |
36683 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
36684 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
36685 | fi | |
36686 | ||
36687 | ||
36688 | fi | |
ac1cb8d3 | 36689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36690 | |
36691 | ||
36692 | fi | |
ac1cb8d3 | 36693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36694 | |
36695 | ||
36696 | fi | |
ac1cb8d3 | 36697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36698 | |
36699 | ||
36700 | fi | |
36701 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
36702 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
36703 | ||
36704 | if test "x$wx_cv_var_timezone" != x ; then | |
36705 | cat >>confdefs.h <<_ACEOF | |
36706 | #define WX_TIMEZONE $wx_cv_var_timezone | |
36707 | _ACEOF | |
36708 | ||
36709 | fi | |
36710 | ||
36711 | ||
36712 | for ac_func in localtime | |
36713 | do | |
36714 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36715 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36716 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36717 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36719 | else | |
36720 | cat >conftest.$ac_ext <<_ACEOF | |
36721 | /* confdefs.h. */ | |
36722 | _ACEOF | |
36723 | cat confdefs.h >>conftest.$ac_ext | |
36724 | cat >>conftest.$ac_ext <<_ACEOF | |
36725 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36726 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36727 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36728 | #define $ac_func innocuous_$ac_func | |
36729 | ||
a848cd7e SC |
36730 | /* System header to define __stub macros and hopefully few prototypes, |
36731 | which can conflict with char $ac_func (); below. | |
36732 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36733 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36734 | |
a848cd7e SC |
36735 | #ifdef __STDC__ |
36736 | # include <limits.h> | |
36737 | #else | |
36738 | # include <assert.h> | |
36739 | #endif | |
ac1cb8d3 VS |
36740 | |
36741 | #undef $ac_func | |
36742 | ||
a848cd7e SC |
36743 | /* Override any gcc2 internal prototype to avoid an error. */ |
36744 | #ifdef __cplusplus | |
36745 | extern "C" | |
36746 | { | |
36747 | #endif | |
36748 | /* We use char because int might match the return type of a gcc2 | |
36749 | builtin and then its argument prototype would still apply. */ | |
36750 | char $ac_func (); | |
36751 | /* The GNU C library defines this for functions which it implements | |
36752 | to always fail with ENOSYS. Some functions are actually named | |
36753 | something starting with __ and the normal name is an alias. */ | |
36754 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36755 | choke me | |
36756 | #else | |
36757 | char (*f) () = $ac_func; | |
36758 | #endif | |
36759 | #ifdef __cplusplus | |
36760 | } | |
36761 | #endif | |
36762 | ||
36763 | int | |
36764 | main () | |
36765 | { | |
36766 | return f != $ac_func; | |
36767 | ; | |
36768 | return 0; | |
36769 | } | |
36770 | _ACEOF | |
36771 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36773 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36774 | ac_status=$? |
ac1cb8d3 VS |
36775 | grep -v '^ *+' conftest.er1 >conftest.err |
36776 | rm -f conftest.er1 | |
36777 | cat conftest.err >&5 | |
a848cd7e SC |
36778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36779 | (exit $ac_status); } && | |
07158944 | 36780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36782 | (eval $ac_try) 2>&5 | |
36783 | ac_status=$? | |
36784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36785 | (exit $ac_status); }; } && | |
36786 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36788 | (eval $ac_try) 2>&5 | |
36789 | ac_status=$? | |
36790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36791 | (exit $ac_status); }; }; then | |
36792 | eval "$as_ac_var=yes" | |
36793 | else | |
36794 | echo "$as_me: failed program was:" >&5 | |
36795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36796 | ||
36797 | eval "$as_ac_var=no" | |
36798 | fi | |
ac1cb8d3 VS |
36799 | rm -f conftest.err conftest.$ac_objext \ |
36800 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36801 | fi |
36802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36803 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36804 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36805 | cat >>confdefs.h <<_ACEOF | |
36806 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36807 | _ACEOF | |
36808 | ||
36809 | fi | |
36810 | done | |
36811 | ||
36812 | ||
36813 | if test "$ac_cv_func_localtime" = "yes"; then | |
36814 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
36815 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
36816 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
36817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36818 | else | |
36819 | ||
36820 | cat >conftest.$ac_ext <<_ACEOF | |
36821 | /* confdefs.h. */ | |
36822 | _ACEOF | |
36823 | cat confdefs.h >>conftest.$ac_ext | |
36824 | cat >>conftest.$ac_ext <<_ACEOF | |
36825 | /* end confdefs.h. */ | |
36826 | ||
36827 | #include <time.h> | |
36828 | ||
36829 | int | |
36830 | main () | |
36831 | { | |
36832 | ||
36833 | struct tm tm; | |
36834 | tm.tm_gmtoff++; | |
36835 | ||
36836 | ; | |
36837 | return 0; | |
36838 | } | |
36839 | _ACEOF | |
36840 | rm -f conftest.$ac_objext | |
36841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36842 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36843 | ac_status=$? |
ac1cb8d3 VS |
36844 | grep -v '^ *+' conftest.er1 >conftest.err |
36845 | rm -f conftest.er1 | |
36846 | cat conftest.err >&5 | |
a848cd7e SC |
36847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36848 | (exit $ac_status); } && | |
07158944 | 36849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36851 | (eval $ac_try) 2>&5 | |
36852 | ac_status=$? | |
36853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36854 | (exit $ac_status); }; } && | |
36855 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36857 | (eval $ac_try) 2>&5 | |
36858 | ac_status=$? | |
36859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36860 | (exit $ac_status); }; }; then | |
36861 | ||
36862 | wx_cv_struct_tm_has_gmtoff=yes | |
36863 | ||
36864 | else | |
36865 | echo "$as_me: failed program was:" >&5 | |
36866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36867 | ||
36868 | wx_cv_struct_tm_has_gmtoff=no | |
36869 | ||
36870 | fi | |
ac1cb8d3 | 36871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36872 | |
36873 | fi | |
36874 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
36875 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
36876 | fi | |
36877 | ||
36878 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
36879 | cat >>confdefs.h <<\_ACEOF | |
36880 | #define WX_GMTOFF_IN_TM 1 | |
36881 | _ACEOF | |
36882 | ||
36883 | fi | |
36884 | ||
36885 | ||
36886 | ||
36887 | for ac_func in gettimeofday ftime | |
36888 | do | |
36889 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36890 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36891 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36892 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36894 | else | |
36895 | cat >conftest.$ac_ext <<_ACEOF | |
36896 | /* confdefs.h. */ | |
36897 | _ACEOF | |
36898 | cat confdefs.h >>conftest.$ac_ext | |
36899 | cat >>conftest.$ac_ext <<_ACEOF | |
36900 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36901 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36903 | #define $ac_func innocuous_$ac_func | |
36904 | ||
a848cd7e SC |
36905 | /* System header to define __stub macros and hopefully few prototypes, |
36906 | which can conflict with char $ac_func (); below. | |
36907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36908 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36909 | |
a848cd7e SC |
36910 | #ifdef __STDC__ |
36911 | # include <limits.h> | |
36912 | #else | |
36913 | # include <assert.h> | |
36914 | #endif | |
ac1cb8d3 VS |
36915 | |
36916 | #undef $ac_func | |
36917 | ||
a848cd7e SC |
36918 | /* Override any gcc2 internal prototype to avoid an error. */ |
36919 | #ifdef __cplusplus | |
36920 | extern "C" | |
36921 | { | |
36922 | #endif | |
36923 | /* We use char because int might match the return type of a gcc2 | |
36924 | builtin and then its argument prototype would still apply. */ | |
36925 | char $ac_func (); | |
36926 | /* The GNU C library defines this for functions which it implements | |
36927 | to always fail with ENOSYS. Some functions are actually named | |
36928 | something starting with __ and the normal name is an alias. */ | |
36929 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36930 | choke me | |
36931 | #else | |
36932 | char (*f) () = $ac_func; | |
36933 | #endif | |
36934 | #ifdef __cplusplus | |
36935 | } | |
36936 | #endif | |
36937 | ||
36938 | int | |
36939 | main () | |
36940 | { | |
36941 | return f != $ac_func; | |
36942 | ; | |
36943 | return 0; | |
36944 | } | |
36945 | _ACEOF | |
36946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36948 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36949 | ac_status=$? |
ac1cb8d3 VS |
36950 | grep -v '^ *+' conftest.er1 >conftest.err |
36951 | rm -f conftest.er1 | |
36952 | cat conftest.err >&5 | |
a848cd7e SC |
36953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36954 | (exit $ac_status); } && | |
07158944 | 36955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36957 | (eval $ac_try) 2>&5 | |
36958 | ac_status=$? | |
36959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36960 | (exit $ac_status); }; } && | |
36961 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36963 | (eval $ac_try) 2>&5 | |
36964 | ac_status=$? | |
36965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36966 | (exit $ac_status); }; }; then | |
36967 | eval "$as_ac_var=yes" | |
36968 | else | |
36969 | echo "$as_me: failed program was:" >&5 | |
36970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36971 | ||
36972 | eval "$as_ac_var=no" | |
36973 | fi | |
ac1cb8d3 VS |
36974 | rm -f conftest.err conftest.$ac_objext \ |
36975 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36976 | fi |
36977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36978 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36979 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36980 | cat >>confdefs.h <<_ACEOF | |
36981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36982 | _ACEOF | |
36983 | break | |
36984 | fi | |
36985 | done | |
36986 | ||
36987 | ||
36988 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
36989 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
36990 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
36991 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
36992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36993 | else | |
36994 | ||
36995 | ||
36996 | ||
36997 | ac_ext=cc | |
36998 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36999 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37000 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37001 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37002 | ||
37003 | ||
37004 | cat >conftest.$ac_ext <<_ACEOF | |
37005 | /* confdefs.h. */ | |
37006 | _ACEOF | |
37007 | cat confdefs.h >>conftest.$ac_ext | |
37008 | cat >>conftest.$ac_ext <<_ACEOF | |
37009 | /* end confdefs.h. */ | |
37010 | ||
37011 | #include <sys/time.h> | |
37012 | #include <unistd.h> | |
37013 | ||
37014 | int | |
37015 | main () | |
37016 | { | |
37017 | ||
37018 | struct timeval tv; | |
37019 | gettimeofday(&tv, NULL); | |
37020 | ||
37021 | ; | |
37022 | return 0; | |
37023 | } | |
37024 | _ACEOF | |
37025 | rm -f conftest.$ac_objext | |
37026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37027 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37028 | ac_status=$? |
ac1cb8d3 VS |
37029 | grep -v '^ *+' conftest.er1 >conftest.err |
37030 | rm -f conftest.er1 | |
37031 | cat conftest.err >&5 | |
a848cd7e SC |
37032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37033 | (exit $ac_status); } && | |
07158944 | 37034 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37036 | (eval $ac_try) 2>&5 | |
37037 | ac_status=$? | |
37038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37039 | (exit $ac_status); }; } && | |
37040 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37042 | (eval $ac_try) 2>&5 | |
37043 | ac_status=$? | |
37044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37045 | (exit $ac_status); }; }; then | |
37046 | wx_cv_func_gettimeofday_has_2_args=yes | |
37047 | else | |
37048 | echo "$as_me: failed program was:" >&5 | |
37049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37050 | ||
37051 | cat >conftest.$ac_ext <<_ACEOF | |
37052 | /* confdefs.h. */ | |
37053 | _ACEOF | |
37054 | cat confdefs.h >>conftest.$ac_ext | |
37055 | cat >>conftest.$ac_ext <<_ACEOF | |
37056 | /* end confdefs.h. */ | |
37057 | ||
37058 | #include <sys/time.h> | |
37059 | #include <unistd.h> | |
37060 | ||
37061 | int | |
37062 | main () | |
37063 | { | |
37064 | ||
37065 | struct timeval tv; | |
37066 | gettimeofday(&tv); | |
37067 | ||
37068 | ; | |
37069 | return 0; | |
37070 | } | |
37071 | _ACEOF | |
37072 | rm -f conftest.$ac_objext | |
37073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37074 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37075 | ac_status=$? |
ac1cb8d3 VS |
37076 | grep -v '^ *+' conftest.er1 >conftest.err |
37077 | rm -f conftest.er1 | |
37078 | cat conftest.err >&5 | |
a848cd7e SC |
37079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37080 | (exit $ac_status); } && | |
07158944 | 37081 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37083 | (eval $ac_try) 2>&5 | |
37084 | ac_status=$? | |
37085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37086 | (exit $ac_status); }; } && | |
37087 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37089 | (eval $ac_try) 2>&5 | |
37090 | ac_status=$? | |
37091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37092 | (exit $ac_status); }; }; then | |
37093 | wx_cv_func_gettimeofday_has_2_args=no | |
37094 | else | |
37095 | echo "$as_me: failed program was:" >&5 | |
37096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37097 | ||
37098 | ||
37099 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
37100 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
37101 | wx_cv_func_gettimeofday_has_2_args=unknown | |
37102 | ||
37103 | ||
37104 | fi | |
ac1cb8d3 | 37105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37106 | |
37107 | fi | |
ac1cb8d3 | 37108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37109 | ac_ext=c |
37110 | ac_cpp='$CPP $CPPFLAGS' | |
37111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37114 | ||
37115 | ||
37116 | fi | |
37117 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
37118 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
37119 | ||
37120 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
37121 | cat >>confdefs.h <<\_ACEOF | |
37122 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
37123 | _ACEOF | |
37124 | ||
37125 | fi | |
37126 | fi | |
37127 | ||
37128 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
37129 | fi | |
37130 | ||
37131 | ||
37132 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37133 | if test "$wxUSE_MGL" = "1"; then | |
37134 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
37135 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
37136 | wxUSE_SOCKETS="no" | |
37137 | fi | |
37138 | fi | |
37139 | ||
37140 | if test "$wxUSE_SOCKETS" = "yes"; then | |
37141 | if test "$TOOLKIT" != "MSW"; then | |
37142 | echo "$as_me:$LINENO: checking for socket" >&5 | |
37143 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
37144 | if test "${ac_cv_func_socket+set}" = set; then | |
37145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37146 | else | |
37147 | cat >conftest.$ac_ext <<_ACEOF | |
37148 | /* confdefs.h. */ | |
37149 | _ACEOF | |
37150 | cat confdefs.h >>conftest.$ac_ext | |
37151 | cat >>conftest.$ac_ext <<_ACEOF | |
37152 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37153 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
37154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37155 | #define socket innocuous_socket | |
37156 | ||
a848cd7e SC |
37157 | /* System header to define __stub macros and hopefully few prototypes, |
37158 | which can conflict with char socket (); below. | |
37159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37160 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37161 | |
a848cd7e SC |
37162 | #ifdef __STDC__ |
37163 | # include <limits.h> | |
37164 | #else | |
37165 | # include <assert.h> | |
37166 | #endif | |
ac1cb8d3 VS |
37167 | |
37168 | #undef socket | |
37169 | ||
a848cd7e SC |
37170 | /* Override any gcc2 internal prototype to avoid an error. */ |
37171 | #ifdef __cplusplus | |
37172 | extern "C" | |
37173 | { | |
37174 | #endif | |
37175 | /* We use char because int might match the return type of a gcc2 | |
37176 | builtin and then its argument prototype would still apply. */ | |
37177 | char socket (); | |
37178 | /* The GNU C library defines this for functions which it implements | |
37179 | to always fail with ENOSYS. Some functions are actually named | |
37180 | something starting with __ and the normal name is an alias. */ | |
37181 | #if defined (__stub_socket) || defined (__stub___socket) | |
37182 | choke me | |
37183 | #else | |
37184 | char (*f) () = socket; | |
37185 | #endif | |
37186 | #ifdef __cplusplus | |
37187 | } | |
37188 | #endif | |
37189 | ||
37190 | int | |
37191 | main () | |
37192 | { | |
37193 | return f != socket; | |
37194 | ; | |
37195 | return 0; | |
37196 | } | |
37197 | _ACEOF | |
37198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37200 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37201 | ac_status=$? |
ac1cb8d3 VS |
37202 | grep -v '^ *+' conftest.er1 >conftest.err |
37203 | rm -f conftest.er1 | |
37204 | cat conftest.err >&5 | |
a848cd7e SC |
37205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37206 | (exit $ac_status); } && | |
07158944 | 37207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37209 | (eval $ac_try) 2>&5 | |
37210 | ac_status=$? | |
37211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37212 | (exit $ac_status); }; } && | |
37213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37215 | (eval $ac_try) 2>&5 | |
37216 | ac_status=$? | |
37217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37218 | (exit $ac_status); }; }; then | |
37219 | ac_cv_func_socket=yes | |
37220 | else | |
37221 | echo "$as_me: failed program was:" >&5 | |
37222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37223 | ||
37224 | ac_cv_func_socket=no | |
37225 | fi | |
ac1cb8d3 VS |
37226 | rm -f conftest.err conftest.$ac_objext \ |
37227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37228 | fi |
37229 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
37230 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
37231 | if test $ac_cv_func_socket = yes; then | |
37232 | : | |
37233 | else | |
37234 | ||
37235 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
37236 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
37237 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
37238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37239 | else | |
37240 | ac_check_lib_save_LIBS=$LIBS | |
37241 | LIBS="-lsocket $LIBS" | |
37242 | cat >conftest.$ac_ext <<_ACEOF | |
37243 | /* confdefs.h. */ | |
37244 | _ACEOF | |
37245 | cat confdefs.h >>conftest.$ac_ext | |
37246 | cat >>conftest.$ac_ext <<_ACEOF | |
37247 | /* end confdefs.h. */ | |
37248 | ||
37249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37250 | #ifdef __cplusplus | |
37251 | extern "C" | |
37252 | #endif | |
37253 | /* We use char because int might match the return type of a gcc2 | |
37254 | builtin and then its argument prototype would still apply. */ | |
37255 | char socket (); | |
37256 | int | |
37257 | main () | |
37258 | { | |
37259 | socket (); | |
37260 | ; | |
37261 | return 0; | |
37262 | } | |
37263 | _ACEOF | |
37264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37266 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37267 | ac_status=$? |
ac1cb8d3 VS |
37268 | grep -v '^ *+' conftest.er1 >conftest.err |
37269 | rm -f conftest.er1 | |
37270 | cat conftest.err >&5 | |
a848cd7e SC |
37271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37272 | (exit $ac_status); } && | |
07158944 | 37273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37275 | (eval $ac_try) 2>&5 | |
37276 | ac_status=$? | |
37277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37278 | (exit $ac_status); }; } && | |
37279 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37281 | (eval $ac_try) 2>&5 | |
37282 | ac_status=$? | |
37283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37284 | (exit $ac_status); }; }; then | |
37285 | ac_cv_lib_socket_socket=yes | |
37286 | else | |
37287 | echo "$as_me: failed program was:" >&5 | |
37288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37289 | ||
37290 | ac_cv_lib_socket_socket=no | |
37291 | fi | |
ac1cb8d3 VS |
37292 | rm -f conftest.err conftest.$ac_objext \ |
37293 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37294 | LIBS=$ac_check_lib_save_LIBS |
37295 | fi | |
37296 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
37297 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
37298 | if test $ac_cv_lib_socket_socket = yes; then | |
37299 | if test "$INET_LINK" != " -lsocket"; then | |
37300 | INET_LINK="$INET_LINK -lsocket" | |
37301 | fi | |
37302 | else | |
37303 | ||
37304 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
37305 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
37306 | wxUSE_SOCKETS=no | |
37307 | ||
37308 | ||
37309 | fi | |
37310 | ||
37311 | ||
37312 | ||
37313 | fi | |
37314 | ||
37315 | fi | |
37316 | fi | |
37317 | ||
37318 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37319 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
37320 | ac_ext=cc |
37321 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37322 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37323 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37324 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37325 | ||
37326 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
37327 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
37328 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
37329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37330 | else | |
37331 | ||
37332 | cat >conftest.$ac_ext <<_ACEOF | |
37333 | /* confdefs.h. */ | |
37334 | _ACEOF | |
37335 | cat confdefs.h >>conftest.$ac_ext | |
37336 | cat >>conftest.$ac_ext <<_ACEOF | |
37337 | /* end confdefs.h. */ | |
37338 | ||
37339 | #include <sys/types.h> | |
37340 | #include <sys/socket.h> | |
37341 | ||
37342 | int | |
37343 | main () | |
37344 | { | |
37345 | ||
37346 | socklen_t len; | |
37347 | getsockname(0, 0, &len); | |
37348 | ||
37349 | ; | |
37350 | return 0; | |
37351 | } | |
37352 | _ACEOF | |
37353 | rm -f conftest.$ac_objext | |
37354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37356 | ac_status=$? |
ac1cb8d3 VS |
37357 | grep -v '^ *+' conftest.er1 >conftest.err |
37358 | rm -f conftest.er1 | |
37359 | cat conftest.err >&5 | |
a848cd7e SC |
37360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37361 | (exit $ac_status); } && | |
07158944 | 37362 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37364 | (eval $ac_try) 2>&5 | |
37365 | ac_status=$? | |
37366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37367 | (exit $ac_status); }; } && | |
37368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37370 | (eval $ac_try) 2>&5 | |
37371 | ac_status=$? | |
37372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37373 | (exit $ac_status); }; }; then | |
37374 | wx_cv_type_getsockname3=socklen_t | |
37375 | else | |
37376 | echo "$as_me: failed program was:" >&5 | |
37377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37378 | ||
37379 | ||
37380 | CFLAGS_OLD="$CFLAGS" | |
37381 | if test "$GCC" = yes ; then | |
37382 | CFLAGS="$CFLAGS -Werror" | |
37383 | fi | |
37384 | ||
37385 | cat >conftest.$ac_ext <<_ACEOF | |
37386 | /* confdefs.h. */ | |
37387 | _ACEOF | |
37388 | cat confdefs.h >>conftest.$ac_ext | |
37389 | cat >>conftest.$ac_ext <<_ACEOF | |
37390 | /* end confdefs.h. */ | |
37391 | ||
37392 | #include <sys/types.h> | |
37393 | #include <sys/socket.h> | |
37394 | ||
37395 | int | |
37396 | main () | |
37397 | { | |
37398 | ||
37399 | size_t len; | |
37400 | getsockname(0, 0, &len); | |
37401 | ||
37402 | ; | |
37403 | return 0; | |
37404 | } | |
37405 | _ACEOF | |
37406 | rm -f conftest.$ac_objext | |
37407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37408 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37409 | ac_status=$? |
ac1cb8d3 VS |
37410 | grep -v '^ *+' conftest.er1 >conftest.err |
37411 | rm -f conftest.er1 | |
37412 | cat conftest.err >&5 | |
a848cd7e SC |
37413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37414 | (exit $ac_status); } && | |
07158944 | 37415 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37417 | (eval $ac_try) 2>&5 | |
37418 | ac_status=$? | |
37419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37420 | (exit $ac_status); }; } && | |
37421 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37423 | (eval $ac_try) 2>&5 | |
37424 | ac_status=$? | |
37425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37426 | (exit $ac_status); }; }; then | |
37427 | wx_cv_type_getsockname3=size_t | |
37428 | else | |
37429 | echo "$as_me: failed program was:" >&5 | |
37430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37431 | ||
37432 | cat >conftest.$ac_ext <<_ACEOF | |
37433 | /* confdefs.h. */ | |
37434 | _ACEOF | |
37435 | cat confdefs.h >>conftest.$ac_ext | |
37436 | cat >>conftest.$ac_ext <<_ACEOF | |
37437 | /* end confdefs.h. */ | |
37438 | ||
37439 | #include <sys/types.h> | |
37440 | #include <sys/socket.h> | |
37441 | ||
37442 | int | |
37443 | main () | |
37444 | { | |
37445 | ||
37446 | int len; | |
37447 | getsockname(0, 0, &len); | |
37448 | ||
37449 | ; | |
37450 | return 0; | |
37451 | } | |
37452 | _ACEOF | |
37453 | rm -f conftest.$ac_objext | |
37454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37455 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37456 | ac_status=$? |
ac1cb8d3 VS |
37457 | grep -v '^ *+' conftest.er1 >conftest.err |
37458 | rm -f conftest.er1 | |
37459 | cat conftest.err >&5 | |
a848cd7e SC |
37460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37461 | (exit $ac_status); } && | |
07158944 | 37462 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37464 | (eval $ac_try) 2>&5 | |
37465 | ac_status=$? | |
37466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37467 | (exit $ac_status); }; } && | |
37468 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37470 | (eval $ac_try) 2>&5 | |
37471 | ac_status=$? | |
37472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37473 | (exit $ac_status); }; }; then | |
37474 | wx_cv_type_getsockname3=int | |
37475 | else | |
37476 | echo "$as_me: failed program was:" >&5 | |
37477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37478 | ||
37479 | wx_cv_type_getsockname3=unknown | |
37480 | ||
37481 | fi | |
ac1cb8d3 | 37482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37483 | |
37484 | fi | |
ac1cb8d3 | 37485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37486 | |
37487 | CFLAGS="$CFLAGS_OLD" | |
37488 | ||
37489 | ||
37490 | fi | |
ac1cb8d3 | 37491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37492 | |
37493 | fi | |
37494 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
37495 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
37496 | ||
37497 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
37498 | wxUSE_SOCKETS=no | |
37499 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37500 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37501 | else | |
37502 | cat >>confdefs.h <<_ACEOF | |
37503 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
37504 | _ACEOF |
37505 | ||
37506 | fi | |
37507 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
37508 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
37509 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
37510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37511 | else | |
37512 | ||
37513 | cat >conftest.$ac_ext <<_ACEOF | |
37514 | /* confdefs.h. */ | |
37515 | _ACEOF | |
37516 | cat confdefs.h >>conftest.$ac_ext | |
37517 | cat >>conftest.$ac_ext <<_ACEOF | |
37518 | /* end confdefs.h. */ | |
37519 | ||
37520 | #include <sys/types.h> | |
37521 | #include <sys/socket.h> | |
37522 | ||
37523 | int | |
37524 | main () | |
37525 | { | |
37526 | ||
37527 | socklen_t len; | |
37528 | getsockopt(0, 0, 0, 0, &len); | |
37529 | ||
37530 | ; | |
37531 | return 0; | |
37532 | } | |
37533 | _ACEOF | |
37534 | rm -f conftest.$ac_objext | |
37535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37536 | (eval $ac_compile) 2>conftest.er1 | |
37537 | ac_status=$? | |
37538 | grep -v '^ *+' conftest.er1 >conftest.err | |
37539 | rm -f conftest.er1 | |
37540 | cat conftest.err >&5 | |
37541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37542 | (exit $ac_status); } && | |
07158944 | 37543 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
37544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37545 | (eval $ac_try) 2>&5 | |
37546 | ac_status=$? | |
37547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37548 | (exit $ac_status); }; } && | |
37549 | { ac_try='test -s conftest.$ac_objext' | |
37550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37551 | (eval $ac_try) 2>&5 | |
37552 | ac_status=$? | |
37553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37554 | (exit $ac_status); }; }; then | |
37555 | wx_cv_type_getsockopt5=socklen_t | |
37556 | else | |
37557 | echo "$as_me: failed program was:" >&5 | |
37558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37559 | ||
37560 | ||
37561 | CFLAGS_OLD="$CFLAGS" | |
37562 | if test "$GCC" = yes ; then | |
37563 | CFLAGS="$CFLAGS -Werror" | |
37564 | fi | |
37565 | ||
37566 | cat >conftest.$ac_ext <<_ACEOF | |
37567 | /* confdefs.h. */ | |
37568 | _ACEOF | |
37569 | cat confdefs.h >>conftest.$ac_ext | |
37570 | cat >>conftest.$ac_ext <<_ACEOF | |
37571 | /* end confdefs.h. */ | |
37572 | ||
37573 | #include <sys/types.h> | |
37574 | #include <sys/socket.h> | |
37575 | ||
37576 | int | |
37577 | main () | |
37578 | { | |
37579 | ||
37580 | size_t len; | |
37581 | getsockopt(0, 0, 0, 0, &len); | |
37582 | ||
37583 | ; | |
37584 | return 0; | |
37585 | } | |
37586 | _ACEOF | |
37587 | rm -f conftest.$ac_objext | |
37588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37589 | (eval $ac_compile) 2>conftest.er1 | |
37590 | ac_status=$? | |
37591 | grep -v '^ *+' conftest.er1 >conftest.err | |
37592 | rm -f conftest.er1 | |
37593 | cat conftest.err >&5 | |
37594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37595 | (exit $ac_status); } && | |
07158944 | 37596 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
37597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37598 | (eval $ac_try) 2>&5 | |
37599 | ac_status=$? | |
37600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37601 | (exit $ac_status); }; } && | |
37602 | { ac_try='test -s conftest.$ac_objext' | |
37603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37604 | (eval $ac_try) 2>&5 | |
37605 | ac_status=$? | |
37606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37607 | (exit $ac_status); }; }; then | |
37608 | wx_cv_type_getsockopt5=size_t | |
37609 | else | |
37610 | echo "$as_me: failed program was:" >&5 | |
37611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37612 | ||
37613 | cat >conftest.$ac_ext <<_ACEOF | |
37614 | /* confdefs.h. */ | |
37615 | _ACEOF | |
37616 | cat confdefs.h >>conftest.$ac_ext | |
37617 | cat >>conftest.$ac_ext <<_ACEOF | |
37618 | /* end confdefs.h. */ | |
37619 | ||
37620 | #include <sys/types.h> | |
37621 | #include <sys/socket.h> | |
37622 | ||
37623 | int | |
37624 | main () | |
37625 | { | |
37626 | ||
37627 | int len; | |
37628 | getsockopt(0, 0, 0, 0, &len); | |
37629 | ||
37630 | ; | |
37631 | return 0; | |
37632 | } | |
37633 | _ACEOF | |
37634 | rm -f conftest.$ac_objext | |
37635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37636 | (eval $ac_compile) 2>conftest.er1 | |
37637 | ac_status=$? | |
37638 | grep -v '^ *+' conftest.er1 >conftest.err | |
37639 | rm -f conftest.er1 | |
37640 | cat conftest.err >&5 | |
37641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37642 | (exit $ac_status); } && | |
07158944 | 37643 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
37644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37645 | (eval $ac_try) 2>&5 | |
37646 | ac_status=$? | |
37647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37648 | (exit $ac_status); }; } && | |
37649 | { ac_try='test -s conftest.$ac_objext' | |
37650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37651 | (eval $ac_try) 2>&5 | |
37652 | ac_status=$? | |
37653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37654 | (exit $ac_status); }; }; then | |
37655 | wx_cv_type_getsockopt5=int | |
37656 | else | |
37657 | echo "$as_me: failed program was:" >&5 | |
37658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37659 | ||
37660 | wx_cv_type_getsockopt5=unknown | |
37661 | ||
37662 | fi | |
37663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37664 | ||
37665 | fi | |
37666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37667 | ||
37668 | CFLAGS="$CFLAGS_OLD" | |
37669 | ||
37670 | ||
37671 | fi | |
37672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37673 | ||
37674 | fi | |
37675 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
37676 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
37677 | ||
37678 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
37679 | wxUSE_SOCKETS=no | |
37680 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37681 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37682 | else | |
37683 | cat >>confdefs.h <<_ACEOF | |
37684 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
37685 | _ACEOF |
37686 | ||
37687 | fi | |
4d4ff94c VZ |
37688 | ac_ext=c |
37689 | ac_cpp='$CPP $CPPFLAGS' | |
37690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37693 | ||
a848cd7e SC |
37694 | fi |
37695 | fi | |
37696 | ||
37697 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37698 | cat >>confdefs.h <<\_ACEOF | |
37699 | #define wxUSE_SOCKETS 1 | |
37700 | _ACEOF | |
37701 | ||
37702 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
37703 | fi | |
37704 | ||
37705 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
37706 | if test "$wxUSE_SOCKETS" != "yes"; then | |
37707 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
37708 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
37709 | wxUSE_PROTOCOL=no | |
37710 | fi | |
37711 | fi | |
37712 | ||
37713 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
37714 | cat >>confdefs.h <<\_ACEOF | |
37715 | #define wxUSE_PROTOCOL 1 | |
37716 | _ACEOF | |
37717 | ||
37718 | ||
37719 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
37720 | cat >>confdefs.h <<\_ACEOF | |
37721 | #define wxUSE_PROTOCOL_HTTP 1 | |
37722 | _ACEOF | |
37723 | ||
37724 | fi | |
37725 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
37726 | cat >>confdefs.h <<\_ACEOF | |
37727 | #define wxUSE_PROTOCOL_FTP 1 | |
37728 | _ACEOF | |
37729 | ||
37730 | fi | |
37731 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
37732 | cat >>confdefs.h <<\_ACEOF | |
37733 | #define wxUSE_PROTOCOL_FILE 1 | |
37734 | _ACEOF | |
37735 | ||
37736 | fi | |
37737 | else | |
37738 | if test "$wxUSE_FS_INET" = "yes"; then | |
37739 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
37740 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
37741 | wxUSE_FS_INET="no" | |
37742 | fi | |
37743 | fi | |
37744 | ||
37745 | if test "$wxUSE_URL" = "yes"; then | |
37746 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
37747 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
37748 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
37749 | wxUSE_URL=no | |
37750 | fi | |
37751 | if test "$wxUSE_URL" = "yes"; then | |
37752 | cat >>confdefs.h <<\_ACEOF | |
37753 | #define wxUSE_URL 1 | |
37754 | _ACEOF | |
37755 | ||
37756 | fi | |
37757 | fi | |
37758 | ||
37759 | if test "$wxUSE_FS_INET" = "yes"; then | |
37760 | cat >>confdefs.h <<\_ACEOF | |
37761 | #define wxUSE_FS_INET 1 | |
37762 | _ACEOF | |
37763 | ||
37764 | fi | |
37765 | ||
37766 | ||
37767 | if test "$wxUSE_GUI" = "yes"; then | |
4cb1d3da | 37768 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a848cd7e | 37769 | |
4cb1d3da | 37770 | if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then |
a848cd7e SC |
37771 | |
37772 | for ac_header in linux/joystick.h | |
37773 | do | |
37774 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37780 | fi | |
37781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37783 | else | |
37784 | # Is the header compilable? | |
37785 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37786 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37787 | cat >conftest.$ac_ext <<_ACEOF | |
37788 | /* confdefs.h. */ | |
37789 | _ACEOF | |
37790 | cat confdefs.h >>conftest.$ac_ext | |
37791 | cat >>conftest.$ac_ext <<_ACEOF | |
37792 | /* end confdefs.h. */ | |
37793 | $ac_includes_default | |
37794 | #include <$ac_header> | |
37795 | _ACEOF | |
37796 | rm -f conftest.$ac_objext | |
37797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37798 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37799 | ac_status=$? |
ac1cb8d3 VS |
37800 | grep -v '^ *+' conftest.er1 >conftest.err |
37801 | rm -f conftest.er1 | |
37802 | cat conftest.err >&5 | |
a848cd7e SC |
37803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37804 | (exit $ac_status); } && | |
07158944 | 37805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37807 | (eval $ac_try) 2>&5 | |
37808 | ac_status=$? | |
37809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37810 | (exit $ac_status); }; } && | |
37811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37813 | (eval $ac_try) 2>&5 | |
37814 | ac_status=$? | |
37815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37816 | (exit $ac_status); }; }; then | |
37817 | ac_header_compiler=yes | |
37818 | else | |
37819 | echo "$as_me: failed program was:" >&5 | |
37820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37821 | ||
37822 | ac_header_compiler=no | |
37823 | fi | |
ac1cb8d3 | 37824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37825 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37826 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37827 | ||
37828 | # Is the header present? | |
37829 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37830 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37831 | cat >conftest.$ac_ext <<_ACEOF | |
37832 | /* confdefs.h. */ | |
37833 | _ACEOF | |
37834 | cat confdefs.h >>conftest.$ac_ext | |
37835 | cat >>conftest.$ac_ext <<_ACEOF | |
37836 | /* end confdefs.h. */ | |
37837 | #include <$ac_header> | |
37838 | _ACEOF | |
37839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37841 | ac_status=$? | |
37842 | grep -v '^ *+' conftest.er1 >conftest.err | |
37843 | rm -f conftest.er1 | |
37844 | cat conftest.err >&5 | |
37845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37846 | (exit $ac_status); } >/dev/null; then | |
37847 | if test -s conftest.err; then | |
37848 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37849 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37850 | else |
37851 | ac_cpp_err= | |
37852 | fi | |
37853 | else | |
37854 | ac_cpp_err=yes | |
37855 | fi | |
37856 | if test -z "$ac_cpp_err"; then | |
37857 | ac_header_preproc=yes | |
37858 | else | |
37859 | echo "$as_me: failed program was:" >&5 | |
37860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37861 | ||
37862 | ac_header_preproc=no | |
37863 | fi | |
37864 | rm -f conftest.err conftest.$ac_ext | |
37865 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37866 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37867 | ||
37868 | # So? What about this header? | |
ac1cb8d3 VS |
37869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37870 | yes:no: ) | |
a848cd7e SC |
37871 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37872 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37874 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37875 | ac_header_preproc=yes | |
a848cd7e | 37876 | ;; |
ac1cb8d3 | 37877 | no:yes:* ) |
a848cd7e SC |
37878 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37879 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37880 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37881 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37882 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37883 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37884 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37885 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37887 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37888 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37889 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37890 | ( |
37891 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37892 | ## ----------------------------------------- ## |
37893 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37894 | ## ----------------------------------------- ## | |
a848cd7e SC |
37895 | _ASBOX |
37896 | ) | | |
37897 | sed "s/^/$as_me: WARNING: /" >&2 | |
37898 | ;; | |
37899 | esac | |
37900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37904 | else | |
ac1cb8d3 | 37905 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37906 | fi |
37907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37909 | ||
37910 | fi | |
37911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37912 | cat >>confdefs.h <<_ACEOF | |
37913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37914 | _ACEOF | |
37915 | ||
37916 | fi | |
37917 | ||
37918 | done | |
37919 | ||
37920 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
37921 | wxUSE_JOYSTICK=no | |
37922 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37923 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37924 | fi | |
4cb1d3da RN |
37925 | else |
37926 | if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then | |
37927 | wxUSE_JOYSTICK=no | |
37928 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37929 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37930 | fi | |
a848cd7e | 37931 | fi |
a848cd7e | 37932 | |
4cb1d3da RN |
37933 | |
37934 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
37935 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37936 | #define wxUSE_JOYSTICK 1 |
37937 | _ACEOF | |
37938 | ||
4cb1d3da RN |
37939 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
37940 | fi | |
a848cd7e SC |
37941 | fi |
37942 | fi | |
37943 | ||
37944 | ||
37945 | ||
37946 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
37947 | cat >>confdefs.h <<\_ACEOF | |
37948 | #define wxUSE_FONTMAP 1 | |
37949 | _ACEOF | |
37950 | ||
37951 | fi | |
37952 | ||
37953 | if test "$wxUSE_UNICODE" = "yes" ; then | |
37954 | cat >>confdefs.h <<\_ACEOF | |
37955 | #define wxUSE_UNICODE 1 | |
37956 | _ACEOF | |
37957 | ||
37958 | ||
37959 | if test "$USE_WIN32" != 1; then | |
37960 | wxUSE_UNICODE_MSLU=no | |
37961 | fi | |
37962 | ||
37963 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
37964 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
37965 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
37966 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
37967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37968 | else | |
37969 | ac_check_lib_save_LIBS=$LIBS | |
37970 | LIBS="-lunicows $LIBS" | |
37971 | cat >conftest.$ac_ext <<_ACEOF | |
37972 | /* confdefs.h. */ | |
37973 | _ACEOF | |
37974 | cat confdefs.h >>conftest.$ac_ext | |
37975 | cat >>conftest.$ac_ext <<_ACEOF | |
37976 | /* end confdefs.h. */ | |
37977 | ||
37978 | ||
37979 | int | |
37980 | main () | |
37981 | { | |
37982 | main (); | |
37983 | ; | |
37984 | return 0; | |
37985 | } | |
37986 | _ACEOF | |
37987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37989 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37990 | ac_status=$? |
ac1cb8d3 VS |
37991 | grep -v '^ *+' conftest.er1 >conftest.err |
37992 | rm -f conftest.er1 | |
37993 | cat conftest.err >&5 | |
a848cd7e SC |
37994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37995 | (exit $ac_status); } && | |
07158944 | 37996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37998 | (eval $ac_try) 2>&5 | |
37999 | ac_status=$? | |
38000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38001 | (exit $ac_status); }; } && | |
38002 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38004 | (eval $ac_try) 2>&5 | |
38005 | ac_status=$? | |
38006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38007 | (exit $ac_status); }; }; then | |
38008 | ac_cv_lib_unicows_main=yes | |
38009 | else | |
38010 | echo "$as_me: failed program was:" >&5 | |
38011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38012 | ||
38013 | ac_cv_lib_unicows_main=no | |
38014 | fi | |
ac1cb8d3 VS |
38015 | rm -f conftest.err conftest.$ac_objext \ |
38016 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38017 | LIBS=$ac_check_lib_save_LIBS |
38018 | fi | |
38019 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
38020 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
38021 | if test $ac_cv_lib_unicows_main = yes; then | |
38022 | ||
38023 | cat >>confdefs.h <<\_ACEOF | |
38024 | #define wxUSE_UNICODE_MSLU 1 | |
38025 | _ACEOF | |
38026 | ||
38027 | ||
38028 | else | |
38029 | ||
38030 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38031 | Applications will only run on Windows NT/2000/XP!" >&5 | |
38032 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
38033 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
38034 | wxUSE_UNICODE_MSLU=no | |
38035 | ||
38036 | fi | |
38037 | ||
38038 | fi | |
38039 | fi | |
38040 | ||
38041 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
38042 | cat >>confdefs.h <<\_ACEOF | |
38043 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
38044 | _ACEOF | |
38045 | ||
38046 | fi | |
38047 | ||
38048 | ||
38049 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
38050 | cat >>confdefs.h <<\_ACEOF | |
38051 | #define wxUSE_POSTSCRIPT 1 | |
38052 | _ACEOF | |
38053 | ||
38054 | fi | |
38055 | ||
38056 | cat >>confdefs.h <<\_ACEOF | |
38057 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
38058 | _ACEOF | |
38059 | ||
38060 | ||
38061 | cat >>confdefs.h <<\_ACEOF | |
38062 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
38063 | _ACEOF | |
38064 | ||
38065 | ||
38066 | ||
38067 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
38068 | cat >>confdefs.h <<\_ACEOF | |
38069 | #define wxUSE_CONSTRAINTS 1 | |
38070 | _ACEOF | |
38071 | ||
38072 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
38073 | fi | |
38074 | ||
8a7b1113 VZ |
38075 | if test "$wxUSE_MDI" = "yes"; then |
38076 | cat >>confdefs.h <<\_ACEOF | |
38077 | #define wxUSE_MDI 1 | |
38078 | _ACEOF | |
38079 | ||
38080 | ||
38081 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38082 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38083 | #define wxUSE_MDI_ARCHITECTURE 1 |
38084 | _ACEOF | |
38085 | ||
8a7b1113 VZ |
38086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
38087 | fi | |
a848cd7e SC |
38088 | fi |
38089 | ||
38090 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
38091 | cat >>confdefs.h <<\_ACEOF | |
38092 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
38093 | _ACEOF | |
38094 | ||
38095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
38096 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
38097 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
38098 | fi | |
38099 | fi | |
38100 | ||
38101 | if test "$wxUSE_HELP" = "yes"; then | |
38102 | cat >>confdefs.h <<\_ACEOF | |
38103 | #define wxUSE_HELP 1 | |
38104 | _ACEOF | |
38105 | ||
38106 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
38107 | ||
38108 | if test "$wxUSE_MSW" = 1; then | |
38109 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
38110 | cat >>confdefs.h <<\_ACEOF | |
38111 | #define wxUSE_MS_HTML_HELP 1 | |
38112 | _ACEOF | |
38113 | ||
38114 | fi | |
38115 | fi | |
38116 | ||
38117 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
38118 | if test "$wxUSE_HTML" = "yes"; then | |
38119 | cat >>confdefs.h <<\_ACEOF | |
38120 | #define wxUSE_WXHTML_HELP 1 | |
38121 | _ACEOF | |
38122 | ||
38123 | else | |
38124 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
38125 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
38126 | wxUSE_WXHTML_HELP=no | |
38127 | fi | |
38128 | fi | |
38129 | fi | |
38130 | ||
38131 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
38132 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38133 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
38134 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
38135 | else | |
38136 | cat >>confdefs.h <<\_ACEOF | |
38137 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
38138 | _ACEOF | |
38139 | ||
38140 | fi | |
38141 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
38142 | fi | |
38143 | ||
38144 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
38145 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
38146 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
38147 | { (exit 1); exit 1; }; } | |
38148 | fi | |
38149 | ||
38150 | ||
38151 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
38152 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
38153 | -o "$wxUSE_OLE" = "yes" \ | |
38154 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
38155 | ||
38156 | for ac_header in ole2.h | |
38157 | do | |
38158 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38159 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38164 | fi | |
38165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38166 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38167 | else | |
38168 | # Is the header compilable? | |
38169 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38170 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38171 | cat >conftest.$ac_ext <<_ACEOF | |
38172 | /* confdefs.h. */ | |
38173 | _ACEOF | |
38174 | cat confdefs.h >>conftest.$ac_ext | |
38175 | cat >>conftest.$ac_ext <<_ACEOF | |
38176 | /* end confdefs.h. */ | |
38177 | $ac_includes_default | |
38178 | #include <$ac_header> | |
38179 | _ACEOF | |
38180 | rm -f conftest.$ac_objext | |
38181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38183 | ac_status=$? |
ac1cb8d3 VS |
38184 | grep -v '^ *+' conftest.er1 >conftest.err |
38185 | rm -f conftest.er1 | |
38186 | cat conftest.err >&5 | |
a848cd7e SC |
38187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38188 | (exit $ac_status); } && | |
07158944 | 38189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38191 | (eval $ac_try) 2>&5 | |
38192 | ac_status=$? | |
38193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38194 | (exit $ac_status); }; } && | |
38195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38197 | (eval $ac_try) 2>&5 | |
38198 | ac_status=$? | |
38199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38200 | (exit $ac_status); }; }; then | |
38201 | ac_header_compiler=yes | |
38202 | else | |
38203 | echo "$as_me: failed program was:" >&5 | |
38204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38205 | ||
38206 | ac_header_compiler=no | |
38207 | fi | |
ac1cb8d3 | 38208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38210 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38211 | ||
38212 | # Is the header present? | |
38213 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38214 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38215 | cat >conftest.$ac_ext <<_ACEOF | |
38216 | /* confdefs.h. */ | |
38217 | _ACEOF | |
38218 | cat confdefs.h >>conftest.$ac_ext | |
38219 | cat >>conftest.$ac_ext <<_ACEOF | |
38220 | /* end confdefs.h. */ | |
38221 | #include <$ac_header> | |
38222 | _ACEOF | |
38223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38225 | ac_status=$? | |
38226 | grep -v '^ *+' conftest.er1 >conftest.err | |
38227 | rm -f conftest.er1 | |
38228 | cat conftest.err >&5 | |
38229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38230 | (exit $ac_status); } >/dev/null; then | |
38231 | if test -s conftest.err; then | |
38232 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 38233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
38234 | else |
38235 | ac_cpp_err= | |
38236 | fi | |
38237 | else | |
38238 | ac_cpp_err=yes | |
38239 | fi | |
38240 | if test -z "$ac_cpp_err"; then | |
38241 | ac_header_preproc=yes | |
38242 | else | |
38243 | echo "$as_me: failed program was:" >&5 | |
38244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38245 | ||
38246 | ac_header_preproc=no | |
38247 | fi | |
38248 | rm -f conftest.err conftest.$ac_ext | |
38249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38250 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38251 | ||
38252 | # So? What about this header? | |
ac1cb8d3 VS |
38253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
38254 | yes:no: ) | |
a848cd7e SC |
38255 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38256 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38258 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38259 | ac_header_preproc=yes | |
a848cd7e | 38260 | ;; |
ac1cb8d3 | 38261 | no:yes:* ) |
a848cd7e SC |
38262 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38263 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38264 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38265 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38266 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38267 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38268 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38269 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38270 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38271 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38272 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38273 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38274 | ( |
38275 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38276 | ## ----------------------------------------- ## |
38277 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38278 | ## ----------------------------------------- ## | |
a848cd7e SC |
38279 | _ASBOX |
38280 | ) | | |
38281 | sed "s/^/$as_me: WARNING: /" >&2 | |
38282 | ;; | |
38283 | esac | |
38284 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38285 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38288 | else | |
ac1cb8d3 | 38289 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38290 | fi |
38291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38292 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38293 | ||
38294 | fi | |
38295 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38296 | cat >>confdefs.h <<_ACEOF | |
38297 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38298 | _ACEOF | |
38299 | ||
38300 | fi | |
38301 | ||
38302 | done | |
38303 | ||
38304 | ||
38305 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
38306 | if test "$GCC" = yes ; then | |
38307 | ||
38308 | ||
38309 | ac_ext=cc | |
38310 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38311 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38312 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38313 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38314 | ||
38315 | ||
38316 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
38317 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
38318 | cat >conftest.$ac_ext <<_ACEOF | |
38319 | /* confdefs.h. */ | |
38320 | _ACEOF | |
38321 | cat confdefs.h >>conftest.$ac_ext | |
38322 | cat >>conftest.$ac_ext <<_ACEOF | |
38323 | /* end confdefs.h. */ | |
38324 | #include <windows.h> | |
38325 | #include <ole2.h> | |
38326 | int | |
38327 | main () | |
38328 | { | |
38329 | ||
38330 | ; | |
38331 | return 0; | |
38332 | } | |
38333 | _ACEOF | |
38334 | rm -f conftest.$ac_objext | |
38335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38337 | ac_status=$? |
ac1cb8d3 VS |
38338 | grep -v '^ *+' conftest.er1 >conftest.err |
38339 | rm -f conftest.er1 | |
38340 | cat conftest.err >&5 | |
a848cd7e SC |
38341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38342 | (exit $ac_status); } && | |
07158944 | 38343 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38345 | (eval $ac_try) 2>&5 | |
38346 | ac_status=$? | |
38347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38348 | (exit $ac_status); }; } && | |
38349 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38351 | (eval $ac_try) 2>&5 | |
38352 | ac_status=$? | |
38353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38354 | (exit $ac_status); }; }; then | |
38355 | echo "$as_me:$LINENO: result: no" >&5 | |
38356 | echo "${ECHO_T}no" >&6 | |
38357 | else | |
38358 | echo "$as_me: failed program was:" >&5 | |
38359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38360 | ||
38361 | echo "$as_me:$LINENO: result: yes" >&5 | |
38362 | echo "${ECHO_T}yes" >&6 | |
38363 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
38364 | fi | |
ac1cb8d3 | 38365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38366 | ac_ext=c |
38367 | ac_cpp='$CPP $CPPFLAGS' | |
38368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38371 | ||
a848cd7e SC |
38372 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
38373 | if test "$wxUSE_OLE" = "yes" ; then | |
38374 | cat >>confdefs.h <<\_ACEOF | |
38375 | #define wxUSE_OLE 1 | |
38376 | _ACEOF | |
38377 | ||
0b78747f | 38378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
38379 | fi |
38380 | fi | |
38381 | ||
38382 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
38383 | cat >>confdefs.h <<\_ACEOF | |
38384 | #define wxUSE_DATAOBJ 1 | |
38385 | _ACEOF | |
38386 | ||
38387 | fi | |
38388 | else | |
38389 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
38390 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
38391 | ||
38392 | wxUSE_CLIPBOARD=no | |
38393 | wxUSE_DRAG_AND_DROP=no | |
38394 | wxUSE_DATAOBJ=no | |
38395 | wxUSE_OLE=no | |
38396 | fi | |
38397 | ||
38398 | if test "$wxUSE_METAFILE" = "yes"; then | |
38399 | cat >>confdefs.h <<\_ACEOF | |
38400 | #define wxUSE_METAFILE 1 | |
38401 | _ACEOF | |
38402 | ||
38403 | ||
38404 | cat >>confdefs.h <<\_ACEOF | |
38405 | #define wxUSE_ENH_METAFILE 1 | |
38406 | _ACEOF | |
38407 | ||
38408 | fi | |
38409 | fi | |
38410 | ||
38411 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 38412 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
38413 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
38414 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 38415 | wxUSE_IPC=no |
a848cd7e SC |
38416 | fi |
38417 | ||
0b78747f MW |
38418 | if test "$wxUSE_IPC" = "yes"; then |
38419 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38420 | #define wxUSE_IPC 1 |
38421 | _ACEOF | |
38422 | ||
0b78747f MW |
38423 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
38424 | fi | |
a848cd7e SC |
38425 | fi |
38426 | ||
38427 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38428 | if test "$wxUSE_MGL" = 1; then | |
38429 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
38430 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
38431 | wxUSE_CLIPBOARD=no | |
38432 | fi | |
38433 | ||
38434 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38435 | cat >>confdefs.h <<\_ACEOF | |
38436 | #define wxUSE_CLIPBOARD 1 | |
38437 | _ACEOF | |
38438 | ||
38439 | ||
38440 | cat >>confdefs.h <<\_ACEOF | |
38441 | #define wxUSE_DATAOBJ 1 | |
38442 | _ACEOF | |
38443 | ||
38444 | fi | |
38445 | fi | |
38446 | ||
38447 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
38448 | if test "$wxUSE_GTK" = 1; then | |
38449 | if test "$WXGTK12" != 1; then | |
38450 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
38451 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
38452 | wxUSE_DRAG_AND_DROP=no | |
38453 | fi | |
38454 | fi | |
38455 | ||
38456 | if test "$wxUSE_MOTIF" = 1; then | |
38457 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
38458 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
38459 | wxUSE_DRAG_AND_DROP=no | |
38460 | fi | |
38461 | ||
38462 | if test "$wxUSE_X11" = 1; then | |
38463 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
38464 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
38465 | wxUSE_DRAG_AND_DROP=no | |
38466 | fi | |
38467 | ||
38468 | if test "$wxUSE_MGL" = 1; then | |
38469 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
38470 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
38471 | wxUSE_DRAG_AND_DROP=no | |
38472 | fi | |
38473 | ||
38474 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
38475 | cat >>confdefs.h <<\_ACEOF | |
38476 | #define wxUSE_DRAG_AND_DROP 1 | |
38477 | _ACEOF | |
38478 | ||
38479 | fi | |
38480 | ||
38481 | fi | |
38482 | ||
38483 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
38484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
38485 | fi | |
38486 | ||
38487 | if test "$wxUSE_SPLINES" = "yes" ; then | |
38488 | cat >>confdefs.h <<\_ACEOF | |
38489 | #define wxUSE_SPLINES 1 | |
38490 | _ACEOF | |
38491 | ||
38492 | fi | |
38493 | ||
38494 | ||
38495 | USES_CONTROLS=0 | |
38496 | if test "$wxUSE_CONTROLS" = "yes"; then | |
38497 | USES_CONTROLS=1 | |
38498 | fi | |
38499 | ||
38500 | if test "$wxUSE_ACCEL" = "yes"; then | |
38501 | cat >>confdefs.h <<\_ACEOF | |
38502 | #define wxUSE_ACCEL 1 | |
38503 | _ACEOF | |
38504 | ||
38505 | USES_CONTROLS=1 | |
38506 | fi | |
38507 | ||
38508 | if test "$wxUSE_BUTTON" = "yes"; then | |
38509 | cat >>confdefs.h <<\_ACEOF | |
38510 | #define wxUSE_BUTTON 1 | |
38511 | _ACEOF | |
38512 | ||
38513 | USES_CONTROLS=1 | |
38514 | fi | |
38515 | ||
38516 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
38517 | cat >>confdefs.h <<\_ACEOF | |
38518 | #define wxUSE_BMPBUTTON 1 | |
38519 | _ACEOF | |
38520 | ||
38521 | USES_CONTROLS=1 | |
38522 | fi | |
38523 | ||
38524 | if test "$wxUSE_CALCTRL" = "yes"; then | |
38525 | cat >>confdefs.h <<\_ACEOF | |
38526 | #define wxUSE_CALENDARCTRL 1 | |
38527 | _ACEOF | |
38528 | ||
38529 | USES_CONTROLS=1 | |
38530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
38531 | fi | |
38532 | ||
38533 | if test "$wxUSE_CARET" = "yes"; then | |
38534 | cat >>confdefs.h <<\_ACEOF | |
38535 | #define wxUSE_CARET 1 | |
38536 | _ACEOF | |
38537 | ||
38538 | USES_CONTROLS=1 | |
38539 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
38540 | fi | |
38541 | ||
38542 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
38543 | cat >>confdefs.h <<\_ACEOF | |
38544 | #define wxUSE_COMBOBOX 1 | |
38545 | _ACEOF | |
38546 | ||
38547 | USES_CONTROLS=1 | |
38548 | fi | |
38549 | ||
38550 | if test "$wxUSE_CHOICE" = "yes"; then | |
38551 | cat >>confdefs.h <<\_ACEOF | |
38552 | #define wxUSE_CHOICE 1 | |
38553 | _ACEOF | |
38554 | ||
38555 | USES_CONTROLS=1 | |
38556 | fi | |
38557 | ||
92bbdbcd WS |
38558 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
38559 | cat >>confdefs.h <<\_ACEOF | |
38560 | #define wxUSE_CHOICEBOOK 1 | |
38561 | _ACEOF | |
38562 | ||
38563 | USES_CONTROLS=1 | |
38564 | fi | |
38565 | ||
a848cd7e SC |
38566 | if test "$wxUSE_CHECKBOX" = "yes"; then |
38567 | cat >>confdefs.h <<\_ACEOF | |
38568 | #define wxUSE_CHECKBOX 1 | |
38569 | _ACEOF | |
38570 | ||
38571 | USES_CONTROLS=1 | |
38572 | fi | |
38573 | ||
38574 | if test "$wxUSE_CHECKLST" = "yes"; then | |
38575 | cat >>confdefs.h <<\_ACEOF | |
38576 | #define wxUSE_CHECKLISTBOX 1 | |
38577 | _ACEOF | |
38578 | ||
38579 | USES_CONTROLS=1 | |
38580 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
38581 | fi | |
38582 | ||
da98e9be VZ |
38583 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
38584 | cat >>confdefs.h <<\_ACEOF | |
38585 | #define wxUSE_DATEPICKCTRL 1 | |
38586 | _ACEOF | |
38587 | ||
38588 | USES_CONTROLS=1 | |
38589 | fi | |
38590 | ||
a848cd7e SC |
38591 | if test "$wxUSE_DISPLAY" = "yes"; then |
38592 | cat >>confdefs.h <<\_ACEOF | |
38593 | #define wxUSE_DISPLAY 1 | |
38594 | _ACEOF | |
38595 | ||
0b78747f | 38596 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
38597 | fi |
38598 | ||
38599 | if test "$wxUSE_GAUGE" = "yes"; then | |
38600 | cat >>confdefs.h <<\_ACEOF | |
38601 | #define wxUSE_GAUGE 1 | |
38602 | _ACEOF | |
38603 | ||
38604 | USES_CONTROLS=1 | |
38605 | fi | |
38606 | ||
38607 | if test "$wxUSE_GRID" = "yes"; then | |
38608 | cat >>confdefs.h <<\_ACEOF | |
38609 | #define wxUSE_GRID 1 | |
38610 | _ACEOF | |
38611 | ||
38612 | USES_CONTROLS=1 | |
38613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
38614 | fi | |
38615 | ||
38616 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38617 | cat >>confdefs.h <<\_ACEOF | |
38618 | #define wxUSE_IMAGLIST 1 | |
38619 | _ACEOF | |
38620 | ||
38621 | fi | |
38622 | ||
38623 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
38624 | cat >>confdefs.h <<\_ACEOF | |
38625 | #define wxUSE_LISTBOOK 1 | |
38626 | _ACEOF | |
38627 | ||
38628 | USES_CONTROLS=1 | |
38629 | fi | |
38630 | ||
38631 | if test "$wxUSE_LISTBOX" = "yes"; then | |
38632 | cat >>confdefs.h <<\_ACEOF | |
38633 | #define wxUSE_LISTBOX 1 | |
38634 | _ACEOF | |
38635 | ||
38636 | USES_CONTROLS=1 | |
0b78747f | 38637 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
38638 | fi |
38639 | ||
38640 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
38641 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38642 | cat >>confdefs.h <<\_ACEOF | |
38643 | #define wxUSE_LISTCTRL 1 | |
38644 | _ACEOF | |
38645 | ||
38646 | USES_CONTROLS=1 | |
38647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
38648 | else | |
38649 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
38650 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38651 | fi | |
38652 | fi | |
38653 | ||
38654 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
38655 | cat >>confdefs.h <<\_ACEOF | |
38656 | #define wxUSE_NOTEBOOK 1 | |
38657 | _ACEOF | |
38658 | ||
38659 | USES_CONTROLS=1 | |
38660 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
38661 | fi | |
38662 | ||
38663 | ||
38664 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
38665 | cat >>confdefs.h <<\_ACEOF | |
38666 | #define wxUSE_RADIOBOX 1 | |
38667 | _ACEOF | |
38668 | ||
38669 | USES_CONTROLS=1 | |
38670 | fi | |
38671 | ||
38672 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
38673 | cat >>confdefs.h <<\_ACEOF | |
38674 | #define wxUSE_RADIOBTN 1 | |
38675 | _ACEOF | |
38676 | ||
38677 | USES_CONTROLS=1 | |
38678 | fi | |
38679 | ||
38680 | if test "$wxUSE_SASH" = "yes"; then | |
38681 | cat >>confdefs.h <<\_ACEOF | |
38682 | #define wxUSE_SASH 1 | |
38683 | _ACEOF | |
38684 | ||
38685 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
38686 | fi | |
38687 | ||
38688 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
38689 | cat >>confdefs.h <<\_ACEOF | |
38690 | #define wxUSE_SCROLLBAR 1 | |
38691 | _ACEOF | |
38692 | ||
38693 | USES_CONTROLS=1 | |
38694 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
38695 | fi | |
38696 | ||
38697 | if test "$wxUSE_SLIDER" = "yes"; then | |
38698 | cat >>confdefs.h <<\_ACEOF | |
38699 | #define wxUSE_SLIDER 1 | |
38700 | _ACEOF | |
38701 | ||
38702 | USES_CONTROLS=1 | |
38703 | fi | |
38704 | ||
38705 | if test "$wxUSE_SPINBTN" = "yes"; then | |
38706 | cat >>confdefs.h <<\_ACEOF | |
38707 | #define wxUSE_SPINBTN 1 | |
38708 | _ACEOF | |
38709 | ||
38710 | USES_CONTROLS=1 | |
38711 | fi | |
38712 | ||
38713 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
38714 | cat >>confdefs.h <<\_ACEOF | |
38715 | #define wxUSE_SPINCTRL 1 | |
38716 | _ACEOF | |
38717 | ||
38718 | USES_CONTROLS=1 | |
38719 | fi | |
38720 | ||
38721 | if test "$wxUSE_SPLITTER" = "yes"; then | |
38722 | cat >>confdefs.h <<\_ACEOF | |
38723 | #define wxUSE_SPLITTER 1 | |
38724 | _ACEOF | |
38725 | ||
38726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
38727 | fi | |
38728 | ||
38729 | if test "$wxUSE_STATBMP" = "yes"; then | |
38730 | cat >>confdefs.h <<\_ACEOF | |
38731 | #define wxUSE_STATBMP 1 | |
38732 | _ACEOF | |
38733 | ||
38734 | USES_CONTROLS=1 | |
38735 | fi | |
38736 | ||
38737 | if test "$wxUSE_STATBOX" = "yes"; then | |
38738 | cat >>confdefs.h <<\_ACEOF | |
38739 | #define wxUSE_STATBOX 1 | |
38740 | _ACEOF | |
38741 | ||
38742 | USES_CONTROLS=1 | |
38743 | fi | |
38744 | ||
38745 | if test "$wxUSE_STATTEXT" = "yes"; then | |
38746 | cat >>confdefs.h <<\_ACEOF | |
38747 | #define wxUSE_STATTEXT 1 | |
38748 | _ACEOF | |
38749 | ||
38750 | USES_CONTROLS=1 | |
38751 | fi | |
38752 | ||
38753 | if test "$wxUSE_STATLINE" = "yes"; then | |
38754 | cat >>confdefs.h <<\_ACEOF | |
38755 | #define wxUSE_STATLINE 1 | |
38756 | _ACEOF | |
38757 | ||
38758 | USES_CONTROLS=1 | |
38759 | fi | |
38760 | ||
38761 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
38762 | cat >>confdefs.h <<\_ACEOF |
38763 | #define wxUSE_NATIVE_STATUSBAR 1 | |
38764 | _ACEOF | |
38765 | ||
a848cd7e SC |
38766 | cat >>confdefs.h <<\_ACEOF |
38767 | #define wxUSE_STATUSBAR 1 | |
38768 | _ACEOF | |
38769 | ||
38770 | USES_CONTROLS=1 | |
38771 | ||
38772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
38773 | fi | |
38774 | ||
38775 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
38776 | cat >>confdefs.h <<\_ACEOF | |
38777 | #define wxUSE_TAB_DIALOG 1 | |
38778 | _ACEOF | |
38779 | ||
a848cd7e SC |
38780 | fi |
38781 | ||
38782 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
38783 | cat >>confdefs.h <<\_ACEOF | |
38784 | #define wxUSE_TEXTCTRL 1 | |
38785 | _ACEOF | |
38786 | ||
38787 | USES_CONTROLS=1 | |
38788 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
38789 | fi | |
38790 | ||
38791 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38792 | if test "$wxUSE_COCOA" = 1 ; then | |
38793 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
38794 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
38795 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
38796 | else |
38797 | if test "$wxUSE_PM" = 1; then | |
38798 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
38799 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
38800 | wxUSE_TOGGLEBTN=no | |
38801 | fi | |
a848cd7e SC |
38802 | fi |
38803 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38804 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
38805 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
38806 | wxUSE_TOGGLEBTN=no | |
38807 | fi | |
38808 | ||
38809 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38810 | cat >>confdefs.h <<\_ACEOF | |
38811 | #define wxUSE_TOGGLEBTN 1 | |
38812 | _ACEOF | |
38813 | ||
38814 | USES_CONTROLS=1 | |
38815 | fi | |
38816 | fi | |
38817 | ||
38818 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
38819 | cat >>confdefs.h <<\_ACEOF | |
38820 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
38821 | _ACEOF | |
38822 | ||
38823 | wxUSE_TOOLBAR="yes" | |
38824 | USES_CONTROLS=1 | |
38825 | fi | |
38826 | ||
38827 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
38828 | cat >>confdefs.h <<\_ACEOF | |
38829 | #define wxUSE_TOOLBAR 1 | |
38830 | _ACEOF | |
38831 | ||
38832 | USES_CONTROLS=1 | |
38833 | ||
38834 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
38835 | wxUSE_TOOLBAR_NATIVE="yes" | |
38836 | fi | |
38837 | ||
38838 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
38839 | cat >>confdefs.h <<\_ACEOF | |
38840 | #define wxUSE_TOOLBAR_NATIVE 1 | |
38841 | _ACEOF | |
38842 | ||
38843 | USES_CONTROLS=1 | |
38844 | fi | |
38845 | ||
38846 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
38847 | fi | |
38848 | ||
38849 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
38850 | if test "$wxUSE_MOTIF" = 1; then | |
38851 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
38852 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
38853 | else | |
38854 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38855 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
38856 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
38857 | else | |
38858 | cat >>confdefs.h <<\_ACEOF | |
38859 | #define wxUSE_TOOLTIPS 1 | |
38860 | _ACEOF | |
38861 | ||
38862 | fi | |
38863 | fi | |
38864 | fi | |
38865 | ||
38866 | if test "$wxUSE_TREECTRL" = "yes"; then | |
38867 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38868 | cat >>confdefs.h <<\_ACEOF | |
38869 | #define wxUSE_TREECTRL 1 | |
38870 | _ACEOF | |
38871 | ||
38872 | USES_CONTROLS=1 | |
38873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
38874 | else | |
38875 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
38876 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38877 | fi | |
38878 | fi | |
38879 | ||
38880 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
38881 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
38882 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
38883 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
38884 | else | |
38885 | if test "$wxUSE_PM" = 1; then | |
38886 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
38887 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
38888 | else | |
38889 | cat >>confdefs.h <<\_ACEOF | |
38890 | #define wxUSE_POPUPWIN 1 | |
38891 | _ACEOF | |
38892 | ||
0b78747f | 38893 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
38894 | |
38895 | USES_CONTROLS=1 | |
38896 | fi | |
38897 | fi | |
38898 | fi | |
38899 | ||
0dcd06dd | 38900 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
38901 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
38902 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
38903 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
38904 | else | |
38905 | cat >>confdefs.h <<\_ACEOF | |
38906 | #define wxUSE_DIALUP_MANAGER 1 | |
38907 | _ACEOF | |
38908 | ||
38909 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
38910 | fi | |
38911 | fi | |
38912 | ||
a848cd7e SC |
38913 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
38914 | if test "$wxUSE_PM" = 1; then | |
38915 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
38916 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
38917 | else | |
38918 | cat >>confdefs.h <<\_ACEOF | |
38919 | #define wxUSE_TIPWINDOW 1 | |
38920 | _ACEOF | |
38921 | ||
38922 | fi | |
38923 | fi | |
38924 | ||
38925 | if test "$USES_CONTROLS" = 1; then | |
38926 | cat >>confdefs.h <<\_ACEOF | |
38927 | #define wxUSE_CONTROLS 1 | |
38928 | _ACEOF | |
38929 | ||
38930 | fi | |
38931 | ||
38932 | ||
38933 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
38934 | cat >>confdefs.h <<\_ACEOF | |
38935 | #define wxUSE_ACCESSIBILITY 1 | |
38936 | _ACEOF | |
38937 | ||
38938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
38939 | fi | |
38940 | ||
38941 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
38942 | cat >>confdefs.h <<\_ACEOF | |
38943 | #define wxUSE_DRAGIMAGE 1 | |
38944 | _ACEOF | |
38945 | ||
38946 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
38947 | fi | |
38948 | ||
38949 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
38950 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
38951 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
38952 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
38953 | else | |
38954 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38955 | #define wxUSE_EXCEPTIONS 1 |
38956 | _ACEOF | |
38957 | ||
07bea8f0 VS |
38958 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
38959 | fi | |
a848cd7e SC |
38960 | fi |
38961 | ||
38962 | USE_HTML=0 | |
38963 | if test "$wxUSE_HTML" = "yes"; then | |
38964 | cat >>confdefs.h <<\_ACEOF | |
38965 | #define wxUSE_HTML 1 | |
38966 | _ACEOF | |
38967 | ||
38968 | USE_HTML=1 | |
38969 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
38970 | if test "$wxUSE_MAC" = 1; then |
38971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
38972 | fi | |
a848cd7e | 38973 | fi |
646b6ec1 | 38974 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 38975 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
38976 | old_CPPFLAGS="$CPPFLAGS" |
38977 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
38978 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
38979 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
38980 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
38981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38982 | else | |
38983 | cat >conftest.$ac_ext <<_ACEOF | |
38984 | /* confdefs.h. */ | |
38985 | _ACEOF | |
38986 | cat confdefs.h >>conftest.$ac_ext | |
38987 | cat >>conftest.$ac_ext <<_ACEOF | |
38988 | /* end confdefs.h. */ | |
38989 | #include <Carbon/Carbon.h> | |
38990 | ||
38991 | #include <WebKit/HIWebView.h> | |
38992 | _ACEOF | |
38993 | rm -f conftest.$ac_objext | |
38994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38995 | (eval $ac_compile) 2>conftest.er1 | |
38996 | ac_status=$? | |
38997 | grep -v '^ *+' conftest.er1 >conftest.err | |
38998 | rm -f conftest.er1 | |
38999 | cat conftest.err >&5 | |
39000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39001 | (exit $ac_status); } && | |
07158944 | 39002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
39003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39004 | (eval $ac_try) 2>&5 | |
39005 | ac_status=$? | |
39006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39007 | (exit $ac_status); }; } && | |
39008 | { ac_try='test -s conftest.$ac_objext' | |
39009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39010 | (eval $ac_try) 2>&5 | |
39011 | ac_status=$? | |
39012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39013 | (exit $ac_status); }; }; then | |
39014 | ac_cv_header_WebKit_HIWebView_h=yes | |
39015 | else | |
39016 | echo "$as_me: failed program was:" >&5 | |
39017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39018 | ||
39019 | ac_cv_header_WebKit_HIWebView_h=no | |
39020 | fi | |
39021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39022 | fi | |
39023 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
39024 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
39025 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
39026 | ||
39027 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
39028 | #define wxUSE_WEBKIT 1 |
39029 | _ACEOF | |
39030 | ||
07bea8f0 VS |
39031 | WEBKIT_LINK="-framework WebKit" |
39032 | ||
39033 | else | |
39034 | ||
39035 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
39036 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
39037 | wxUSE_WEBKIT=no | |
39038 | ||
646b6ec1 VS |
39039 | fi |
39040 | ||
07bea8f0 VS |
39041 | |
39042 | CPPFLAGS="$old_CPPFLAGS" | |
39043 | elif test "$wxUSE_COCOA" = 1; then | |
39044 | cat >>confdefs.h <<\_ACEOF | |
39045 | #define wxUSE_WEBKIT 1 | |
39046 | _ACEOF | |
39047 | ||
39048 | else | |
39049 | wxUSE_WEBKIT=no | |
39050 | fi | |
39051 | fi | |
39052 | ||
9a8f0513 VS |
39053 | USE_XRC=0 |
39054 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
39055 | if test "$wxUSE_XML" != "yes"; then |
39056 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
39057 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
39058 | wxUSE_XRC=no | |
39059 | else | |
39060 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
39061 | #define wxUSE_XRC 1 |
39062 | _ACEOF | |
39063 | ||
d2ebf0b7 VS |
39064 | USE_XRC=1 |
39065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
39066 | fi | |
9a8f0513 | 39067 | fi |
07bea8f0 | 39068 | |
a848cd7e SC |
39069 | if test "$wxUSE_MENUS" = "yes"; then |
39070 | cat >>confdefs.h <<\_ACEOF | |
39071 | #define wxUSE_MENUS 1 | |
39072 | _ACEOF | |
39073 | ||
39074 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
39075 | fi | |
39076 | ||
39077 | if test "$wxUSE_METAFILE" = "yes"; then | |
39078 | cat >>confdefs.h <<\_ACEOF | |
39079 | #define wxUSE_METAFILE 1 | |
39080 | _ACEOF | |
39081 | ||
39082 | fi | |
39083 | ||
39084 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
39085 | cat >>confdefs.h <<\_ACEOF | |
39086 | #define wxUSE_MIMETYPE 1 | |
39087 | _ACEOF | |
39088 | ||
39089 | fi | |
39090 | ||
39091 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
39092 | cat >>confdefs.h <<\_ACEOF | |
39093 | #define wxUSE_MINIFRAME 1 | |
39094 | _ACEOF | |
39095 | ||
39096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
39097 | fi | |
39098 | ||
39099 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
39100 | cat >>confdefs.h <<\_ACEOF | |
39101 | #define wxUSE_SYSTEM_OPTIONS 1 | |
39102 | _ACEOF | |
39103 | ||
39104 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 39105 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
39106 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
39107 | fi | |
39108 | fi | |
39109 | ||
39110 | ||
39111 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
39112 | cat >>confdefs.h <<\_ACEOF | |
39113 | #define wxUSE_VALIDATORS 1 | |
39114 | _ACEOF | |
39115 | ||
39116 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
39117 | fi | |
39118 | ||
39119 | if test "$wxUSE_PALETTE" = "yes" ; then | |
39120 | cat >>confdefs.h <<\_ACEOF | |
39121 | #define wxUSE_PALETTE 1 | |
39122 | _ACEOF | |
39123 | ||
39124 | fi | |
39125 | ||
39126 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
39127 | LIBS=" -lunicows $LIBS" | |
39128 | fi | |
39129 | ||
39130 | ||
39131 | if test "$wxUSE_IMAGE" = "yes" ; then | |
39132 | cat >>confdefs.h <<\_ACEOF | |
39133 | #define wxUSE_IMAGE 1 | |
39134 | _ACEOF | |
39135 | ||
39136 | ||
39137 | if test "$wxUSE_GIF" = "yes" ; then | |
39138 | cat >>confdefs.h <<\_ACEOF | |
39139 | #define wxUSE_GIF 1 | |
39140 | _ACEOF | |
39141 | ||
39142 | fi | |
39143 | ||
39144 | if test "$wxUSE_PCX" = "yes" ; then | |
39145 | cat >>confdefs.h <<\_ACEOF | |
39146 | #define wxUSE_PCX 1 | |
39147 | _ACEOF | |
39148 | ||
39149 | fi | |
39150 | ||
39151 | if test "$wxUSE_IFF" = "yes" ; then | |
39152 | cat >>confdefs.h <<\_ACEOF | |
39153 | #define wxUSE_IFF 1 | |
39154 | _ACEOF | |
39155 | ||
39156 | fi | |
39157 | ||
39158 | if test "$wxUSE_PNM" = "yes" ; then | |
39159 | cat >>confdefs.h <<\_ACEOF | |
39160 | #define wxUSE_PNM 1 | |
39161 | _ACEOF | |
39162 | ||
39163 | fi | |
39164 | ||
39165 | if test "$wxUSE_XPM" = "yes" ; then | |
39166 | cat >>confdefs.h <<\_ACEOF | |
39167 | #define wxUSE_XPM 1 | |
39168 | _ACEOF | |
39169 | ||
39170 | fi | |
39171 | ||
39172 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
39173 | cat >>confdefs.h <<\_ACEOF | |
39174 | #define wxUSE_ICO_CUR 1 | |
39175 | _ACEOF | |
39176 | ||
39177 | fi | |
39178 | fi | |
39179 | ||
39180 | ||
39181 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
39182 | cat >>confdefs.h <<\_ACEOF | |
39183 | #define wxUSE_CHOICEDLG 1 | |
39184 | _ACEOF | |
39185 | ||
39186 | fi | |
39187 | ||
39188 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
39189 | cat >>confdefs.h <<\_ACEOF | |
39190 | #define wxUSE_COLOURDLG 1 | |
39191 | _ACEOF | |
39192 | ||
39193 | fi | |
39194 | ||
39195 | if test "$wxUSE_FILEDLG" = "yes"; then | |
39196 | cat >>confdefs.h <<\_ACEOF | |
39197 | #define wxUSE_FILEDLG 1 | |
39198 | _ACEOF | |
39199 | ||
39200 | fi | |
39201 | ||
39202 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
39203 | cat >>confdefs.h <<\_ACEOF | |
39204 | #define wxUSE_FINDREPLDLG 1 | |
39205 | _ACEOF | |
39206 | ||
39207 | fi | |
39208 | ||
39209 | if test "$wxUSE_FONTDLG" = "yes"; then | |
39210 | cat >>confdefs.h <<\_ACEOF | |
39211 | #define wxUSE_FONTDLG 1 | |
39212 | _ACEOF | |
39213 | ||
39214 | fi | |
39215 | ||
39216 | if test "$wxUSE_DIRDLG" = "yes"; then | |
39217 | if test "$wxUSE_TREECTRL" != "yes"; then | |
39218 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
39219 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
39220 | else | |
39221 | cat >>confdefs.h <<\_ACEOF | |
39222 | #define wxUSE_DIRDLG 1 | |
39223 | _ACEOF | |
39224 | ||
39225 | fi | |
39226 | fi | |
39227 | ||
39228 | if test "$wxUSE_MSGDLG" = "yes"; then | |
39229 | cat >>confdefs.h <<\_ACEOF | |
39230 | #define wxUSE_MSGDLG 1 | |
39231 | _ACEOF | |
39232 | ||
39233 | fi | |
39234 | ||
39235 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
39236 | cat >>confdefs.h <<\_ACEOF | |
39237 | #define wxUSE_NUMBERDLG 1 | |
39238 | _ACEOF | |
39239 | ||
39240 | fi | |
39241 | ||
39242 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
39243 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39244 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
39245 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
39246 | else | |
39247 | cat >>confdefs.h <<\_ACEOF | |
39248 | #define wxUSE_PROGRESSDLG 1 | |
39249 | _ACEOF | |
39250 | ||
39251 | fi | |
39252 | fi | |
39253 | ||
39254 | if test "$wxUSE_SPLASH" = "yes"; then | |
39255 | cat >>confdefs.h <<\_ACEOF | |
39256 | #define wxUSE_SPLASH 1 | |
39257 | _ACEOF | |
39258 | ||
2057db16 | 39259 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
39260 | fi |
39261 | ||
39262 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
39263 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
39264 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
39265 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
39266 | else | |
39267 | cat >>confdefs.h <<\_ACEOF | |
39268 | #define wxUSE_STARTUP_TIPS 1 | |
39269 | _ACEOF | |
39270 | ||
39271 | fi | |
39272 | fi | |
39273 | ||
39274 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
39275 | cat >>confdefs.h <<\_ACEOF | |
39276 | #define wxUSE_TEXTDLG 1 | |
39277 | _ACEOF | |
39278 | ||
39279 | fi | |
39280 | ||
39281 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
39282 | cat >>confdefs.h <<\_ACEOF | |
39283 | #define wxUSE_WIZARDDLG 1 | |
39284 | _ACEOF | |
39285 | ||
39286 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
39287 | fi | |
39288 | ||
39289 | ||
ce756cb0 RN |
39290 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39291 | if test "$wxUSE_MSW" = 1; then | |
39292 | wxUSE_DIRECTSHOW="yes" | |
39293 | ||
39294 | for ac_header in dshow.h | |
39295 | do | |
39296 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
39297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39301 | else | |
39302 | cat >conftest.$ac_ext <<_ACEOF | |
39303 | /* confdefs.h. */ | |
39304 | _ACEOF | |
39305 | cat confdefs.h >>conftest.$ac_ext | |
39306 | cat >>conftest.$ac_ext <<_ACEOF | |
39307 | /* end confdefs.h. */ | |
39308 | #include <windows.h> | |
39309 | ||
39310 | #include <$ac_header> | |
39311 | _ACEOF | |
39312 | rm -f conftest.$ac_objext | |
39313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39314 | (eval $ac_compile) 2>conftest.er1 | |
39315 | ac_status=$? | |
39316 | grep -v '^ *+' conftest.er1 >conftest.err | |
39317 | rm -f conftest.er1 | |
39318 | cat conftest.err >&5 | |
39319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39320 | (exit $ac_status); } && | |
07158944 | 39321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
39322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39323 | (eval $ac_try) 2>&5 | |
39324 | ac_status=$? | |
39325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39326 | (exit $ac_status); }; } && | |
39327 | { ac_try='test -s conftest.$ac_objext' | |
39328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39329 | (eval $ac_try) 2>&5 | |
39330 | ac_status=$? | |
39331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39332 | (exit $ac_status); }; }; then | |
39333 | eval "$as_ac_Header=yes" | |
39334 | else | |
39335 | echo "$as_me: failed program was:" >&5 | |
39336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39337 | ||
39338 | eval "$as_ac_Header=no" | |
39339 | fi | |
39340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39341 | fi | |
39342 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39343 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39344 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39345 | cat >>confdefs.h <<_ACEOF | |
39346 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39347 | _ACEOF | |
39348 | ||
39349 | else | |
39350 | ||
39351 | wxUSE_DIRECTSHOW="no" | |
39352 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
39353 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
39354 | ||
39355 | fi | |
39356 | ||
39357 | done | |
39358 | ||
39359 | ||
39360 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
39361 | cat >>confdefs.h <<\_ACEOF | |
39362 | #define wxUSE_DIRECTSHOW 1 | |
39363 | _ACEOF | |
39364 | ||
39365 | LIBS="$LIBS -lstrmiids" | |
39366 | fi | |
39367 | fi | |
39368 | ||
39369 | if test "$wxUSE_GTK" = 1; then | |
39370 | wxUSE_GSTREAMER="yes" | |
39371 | ||
ce756cb0 | 39372 | |
dae87f93 | 39373 | succeeded=no |
ce756cb0 | 39374 | |
dae87f93 RN |
39375 | if test -z "$PKG_CONFIG"; then |
39376 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
39377 | set dummy pkg-config; ac_word=$2 | |
39378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39380 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
39381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39382 | else | |
39383 | case $PKG_CONFIG in | |
39384 | [\\/]* | ?:[\\/]*) | |
39385 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
39386 | ;; | |
39387 | *) | |
39388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39389 | for as_dir in $PATH | |
39390 | do | |
39391 | IFS=$as_save_IFS | |
39392 | test -z "$as_dir" && as_dir=. | |
39393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39395 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39397 | break 2 | |
39398 | fi | |
39399 | done | |
39400 | done | |
39401 | ||
39402 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39403 | ;; | |
39404 | esac | |
39405 | fi | |
39406 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39407 | ||
39408 | if test -n "$PKG_CONFIG"; then | |
39409 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39410 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39411 | else | |
39412 | echo "$as_me:$LINENO: result: no" >&5 | |
39413 | echo "${ECHO_T}no" >&6 | |
39414 | fi | |
39415 | ||
39416 | fi | |
39417 | ||
39418 | if test "$PKG_CONFIG" = "no" ; then | |
39419 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39420 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39421 | echo "*** to the full path to pkg-config." | |
39422 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39423 | else | |
39424 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39425 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
39426 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
39427 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
39428 | ||
39429 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
39430 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39431 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39432 | succeeded=yes |
ce756cb0 | 39433 | |
dae87f93 RN |
39434 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
39435 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
39436 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
39437 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
39438 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
39439 | ||
39440 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
39441 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
39442 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
39443 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
39444 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
39445 | else | |
39446 | GSTREAMER_CFLAGS="" | |
39447 | GSTREAMER_LIBS="" | |
39448 | ## If we have a custom action on failure, don't print errors, but | |
39449 | ## do set a variable so people can do so. | |
39450 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 39451 | |
dae87f93 RN |
39452 | fi |
39453 | ||
39454 | ||
39455 | ||
39456 | else | |
39457 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39458 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39459 | fi | |
39460 | fi | |
39461 | ||
39462 | if test $succeeded = yes; then | |
39463 | ||
39464 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
39465 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 39466 | |
ce756cb0 | 39467 | else |
dae87f93 RN |
39468 | |
39469 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
39470 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
39471 | wxUSE_GSTREAMER="no" | |
39472 | ||
39473 | fi | |
39474 | ||
39475 | ||
39476 | ||
39477 | ||
39478 | ||
39479 | if test "x$GST_INSPECT" == "x"; then | |
39480 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
39481 | set dummy gst-inspect; ac_word=$2 | |
39482 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39484 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
39485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39486 | else | |
39487 | if test -n "$GST_INSPECT"; then | |
39488 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
39489 | else | |
39490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39491 | for as_dir in $PATH | |
39492 | do | |
39493 | IFS=$as_save_IFS | |
39494 | test -z "$as_dir" && as_dir=. | |
39495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39497 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
39498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39499 | break 2 | |
ce756cb0 | 39500 | fi |
dae87f93 RN |
39501 | done |
39502 | done | |
39503 | ||
39504 | fi | |
39505 | fi | |
39506 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
39507 | if test -n "$GST_INSPECT"; then | |
39508 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
39509 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
39510 | else | |
39511 | echo "$as_me:$LINENO: result: no" >&5 | |
39512 | echo "${ECHO_T}no" >&6 | |
39513 | fi | |
39514 | ||
39515 | fi | |
39516 | ||
39517 | if test "x$GST_INSPECT" != "x"; then | |
39518 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
39519 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
39520 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
39521 | echo "$as_me:$LINENO: result: found." >&5 | |
39522 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 39523 | |
ce756cb0 | 39524 | else |
dae87f93 RN |
39525 | echo "$as_me:$LINENO: result: not found." >&5 |
39526 | echo "${ECHO_T}not found." >&6 | |
39527 | ||
39528 | wxUSE_GSTREAMER="no" | |
39529 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
39530 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
39531 | ||
39532 | fi | |
39533 | fi | |
39534 | ||
39535 | ||
39536 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
39537 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
39538 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
39539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39540 | else | |
39541 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
39542 | /* confdefs.h. */ |
39543 | _ACEOF | |
39544 | cat confdefs.h >>conftest.$ac_ext | |
39545 | cat >>conftest.$ac_ext <<_ACEOF | |
39546 | /* end confdefs.h. */ | |
dae87f93 | 39547 | #include <gst/gst.h> |
ce756cb0 | 39548 | |
dae87f93 | 39549 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
39550 | _ACEOF |
39551 | rm -f conftest.$ac_objext | |
39552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39553 | (eval $ac_compile) 2>conftest.er1 | |
39554 | ac_status=$? | |
39555 | grep -v '^ *+' conftest.er1 >conftest.err | |
39556 | rm -f conftest.er1 | |
39557 | cat conftest.err >&5 | |
39558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39559 | (exit $ac_status); } && | |
07158944 | 39560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
39561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39562 | (eval $ac_try) 2>&5 | |
39563 | ac_status=$? | |
39564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39565 | (exit $ac_status); }; } && | |
39566 | { ac_try='test -s conftest.$ac_objext' | |
39567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39568 | (eval $ac_try) 2>&5 | |
39569 | ac_status=$? | |
39570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39571 | (exit $ac_status); }; }; then | |
dae87f93 | 39572 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
39573 | else |
39574 | echo "$as_me: failed program was:" >&5 | |
39575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39576 | ||
dae87f93 | 39577 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
39578 | fi |
39579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
39580 | fi |
39581 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
39582 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
39583 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
39584 | : | |
39585 | else | |
ce756cb0 | 39586 | |
dae87f93 RN |
39587 | wxUSE_GSTREAMER="no" |
39588 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
39589 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 39590 | |
dae87f93 | 39591 | fi |
ce756cb0 | 39592 | |
dae87f93 RN |
39593 | |
39594 | ||
39595 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
39596 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
39597 | ||
39598 | ac_find_libraries= | |
39599 | for ac_dir in $SEARCH_LIB /usr/lib; | |
39600 | do | |
39601 | for ac_extension in a so sl dylib; do | |
39602 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
39603 | ac_find_libraries=$ac_dir | |
39604 | break 2 | |
39605 | fi | |
39606 | done | |
39607 | done | |
39608 | ||
ce756cb0 | 39609 | |
dae87f93 RN |
39610 | if test "$ac_find_libraries" = "" ; then |
39611 | echo "$as_me:$LINENO: result: no" >&5 | |
39612 | echo "${ECHO_T}no" >&6 | |
39613 | wxUSE_GSTREAMER="no" | |
39614 | else | |
39615 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39616 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39617 | fi |
ce756cb0 | 39618 | |
dae87f93 RN |
39619 | if test "$wxUSE_GSTREAMER" = "yes"; then |
39620 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
39621 | #define wxUSE_GSTREAMER 1 |
39622 | _ACEOF | |
39623 | ||
dae87f93 RN |
39624 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
39625 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
39626 | fi |
39627 | fi | |
39628 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
39629 | cat >>confdefs.h <<\_ACEOF | |
39630 | #define wxUSE_MEDIACTRL 1 | |
39631 | _ACEOF | |
39632 | ||
39633 | fi | |
39634 | ||
39635 | ||
a848cd7e SC |
39636 | if test "$cross_compiling" = "yes"; then |
39637 | OSINFO="\"$host\"" | |
39638 | else | |
39639 | OSINFO=`uname -s -r -m` | |
39640 | OSINFO="\"$OSINFO\"" | |
39641 | fi | |
39642 | ||
39643 | cat >>confdefs.h <<_ACEOF | |
39644 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
39645 | _ACEOF | |
39646 | ||
39647 | ||
39648 | ||
39649 | if test "x$prefix" != "xNONE"; then | |
39650 | wxPREFIX=$prefix | |
39651 | else | |
39652 | wxPREFIX=$ac_default_prefix | |
39653 | fi | |
39654 | ||
39655 | cat >>confdefs.h <<_ACEOF | |
39656 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
39657 | _ACEOF | |
39658 | ||
39659 | ||
a848cd7e SC |
39660 | |
39661 | ||
39662 | CORE_BASE_LIBS="net base" | |
39663 | CORE_GUI_LIBS="adv core" | |
39664 | ||
39665 | if test "$wxUSE_XML" = "yes" ; then | |
39666 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
39667 | fi | |
39668 | if test "$wxUSE_ODBC" != "no" ; then | |
39669 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
39670 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
39671 | fi | |
39672 | if test "$wxUSE_HTML" = "yes" ; then | |
39673 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
39674 | fi | |
9a8f0513 VS |
39675 | if test "$wxUSE_XRC" = "yes" ; then |
39676 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
39677 | fi | |
a848cd7e SC |
39678 | |
39679 | if test "$wxUSE_GUI" != "yes"; then | |
39680 | CORE_GUI_LIBS="" | |
39681 | fi | |
39682 | ||
39683 | ||
39684 | ||
39685 | ||
39686 | ||
39687 | ||
39688 | ||
39689 | ||
39690 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 39691 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
39692 | if test "$USE_DARWIN" = 1; then |
39693 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
39694 | else | |
39695 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
39696 | fi | |
07bea8f0 | 39697 | fi |
5dcf30a0 | 39698 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
39699 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
39700 | else | |
39701 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 39702 | fi |
a848cd7e SC |
39703 | fi |
39704 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 39705 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
39706 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39707 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
39708 | fi | |
a848cd7e SC |
39709 | fi |
39710 | ||
39711 | ||
39712 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
39713 | ||
39714 | have_cos=0 | |
39715 | have_floor=0 | |
39716 | ||
39717 | for ac_func in cos | |
39718 | do | |
39719 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39720 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39721 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39722 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39724 | else | |
39725 | cat >conftest.$ac_ext <<_ACEOF | |
39726 | /* confdefs.h. */ | |
39727 | _ACEOF | |
39728 | cat confdefs.h >>conftest.$ac_ext | |
39729 | cat >>conftest.$ac_ext <<_ACEOF | |
39730 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39731 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39732 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39733 | #define $ac_func innocuous_$ac_func | |
39734 | ||
a848cd7e SC |
39735 | /* System header to define __stub macros and hopefully few prototypes, |
39736 | which can conflict with char $ac_func (); below. | |
39737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39738 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39739 | |
a848cd7e SC |
39740 | #ifdef __STDC__ |
39741 | # include <limits.h> | |
39742 | #else | |
39743 | # include <assert.h> | |
39744 | #endif | |
ac1cb8d3 VS |
39745 | |
39746 | #undef $ac_func | |
39747 | ||
a848cd7e SC |
39748 | /* Override any gcc2 internal prototype to avoid an error. */ |
39749 | #ifdef __cplusplus | |
39750 | extern "C" | |
39751 | { | |
39752 | #endif | |
39753 | /* We use char because int might match the return type of a gcc2 | |
39754 | builtin and then its argument prototype would still apply. */ | |
39755 | char $ac_func (); | |
39756 | /* The GNU C library defines this for functions which it implements | |
39757 | to always fail with ENOSYS. Some functions are actually named | |
39758 | something starting with __ and the normal name is an alias. */ | |
39759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39760 | choke me | |
39761 | #else | |
39762 | char (*f) () = $ac_func; | |
39763 | #endif | |
39764 | #ifdef __cplusplus | |
39765 | } | |
39766 | #endif | |
39767 | ||
39768 | int | |
39769 | main () | |
39770 | { | |
39771 | return f != $ac_func; | |
39772 | ; | |
39773 | return 0; | |
39774 | } | |
39775 | _ACEOF | |
39776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39778 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39779 | ac_status=$? |
ac1cb8d3 VS |
39780 | grep -v '^ *+' conftest.er1 >conftest.err |
39781 | rm -f conftest.er1 | |
39782 | cat conftest.err >&5 | |
a848cd7e SC |
39783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39784 | (exit $ac_status); } && | |
07158944 | 39785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39787 | (eval $ac_try) 2>&5 | |
39788 | ac_status=$? | |
39789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39790 | (exit $ac_status); }; } && | |
39791 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39793 | (eval $ac_try) 2>&5 | |
39794 | ac_status=$? | |
39795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39796 | (exit $ac_status); }; }; then | |
39797 | eval "$as_ac_var=yes" | |
39798 | else | |
39799 | echo "$as_me: failed program was:" >&5 | |
39800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39801 | ||
39802 | eval "$as_ac_var=no" | |
39803 | fi | |
ac1cb8d3 VS |
39804 | rm -f conftest.err conftest.$ac_objext \ |
39805 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39806 | fi |
39807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39808 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39809 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39810 | cat >>confdefs.h <<_ACEOF | |
39811 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39812 | _ACEOF | |
39813 | have_cos=1 | |
39814 | fi | |
39815 | done | |
39816 | ||
39817 | ||
39818 | for ac_func in floor | |
39819 | do | |
39820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39823 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39825 | else | |
39826 | cat >conftest.$ac_ext <<_ACEOF | |
39827 | /* confdefs.h. */ | |
39828 | _ACEOF | |
39829 | cat confdefs.h >>conftest.$ac_ext | |
39830 | cat >>conftest.$ac_ext <<_ACEOF | |
39831 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39834 | #define $ac_func innocuous_$ac_func | |
39835 | ||
a848cd7e SC |
39836 | /* System header to define __stub macros and hopefully few prototypes, |
39837 | which can conflict with char $ac_func (); below. | |
39838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39839 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39840 | |
a848cd7e SC |
39841 | #ifdef __STDC__ |
39842 | # include <limits.h> | |
39843 | #else | |
39844 | # include <assert.h> | |
39845 | #endif | |
ac1cb8d3 VS |
39846 | |
39847 | #undef $ac_func | |
39848 | ||
a848cd7e SC |
39849 | /* Override any gcc2 internal prototype to avoid an error. */ |
39850 | #ifdef __cplusplus | |
39851 | extern "C" | |
39852 | { | |
39853 | #endif | |
39854 | /* We use char because int might match the return type of a gcc2 | |
39855 | builtin and then its argument prototype would still apply. */ | |
39856 | char $ac_func (); | |
39857 | /* The GNU C library defines this for functions which it implements | |
39858 | to always fail with ENOSYS. Some functions are actually named | |
39859 | something starting with __ and the normal name is an alias. */ | |
39860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39861 | choke me | |
39862 | #else | |
39863 | char (*f) () = $ac_func; | |
39864 | #endif | |
39865 | #ifdef __cplusplus | |
39866 | } | |
39867 | #endif | |
39868 | ||
39869 | int | |
39870 | main () | |
39871 | { | |
39872 | return f != $ac_func; | |
39873 | ; | |
39874 | return 0; | |
39875 | } | |
39876 | _ACEOF | |
39877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39879 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39880 | ac_status=$? |
ac1cb8d3 VS |
39881 | grep -v '^ *+' conftest.er1 >conftest.err |
39882 | rm -f conftest.er1 | |
39883 | cat conftest.err >&5 | |
a848cd7e SC |
39884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39885 | (exit $ac_status); } && | |
07158944 | 39886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39888 | (eval $ac_try) 2>&5 | |
39889 | ac_status=$? | |
39890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39891 | (exit $ac_status); }; } && | |
39892 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39894 | (eval $ac_try) 2>&5 | |
39895 | ac_status=$? | |
39896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39897 | (exit $ac_status); }; }; then | |
39898 | eval "$as_ac_var=yes" | |
39899 | else | |
39900 | echo "$as_me: failed program was:" >&5 | |
39901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39902 | ||
39903 | eval "$as_ac_var=no" | |
39904 | fi | |
ac1cb8d3 VS |
39905 | rm -f conftest.err conftest.$ac_objext \ |
39906 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39907 | fi |
39908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39909 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39910 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39911 | cat >>confdefs.h <<_ACEOF | |
39912 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39913 | _ACEOF | |
39914 | have_floor=1 | |
39915 | fi | |
39916 | done | |
39917 | ||
39918 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
39919 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
39920 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
39921 | echo "$as_me:$LINENO: result: yes" >&5 | |
39922 | echo "${ECHO_T}yes" >&6 | |
39923 | else | |
39924 | echo "$as_me:$LINENO: result: no" >&5 | |
39925 | echo "${ECHO_T}no" >&6 | |
39926 | LIBS="$LIBS -lm" | |
39927 | # use different functions to avoid configure caching | |
39928 | have_sin=0 | |
39929 | have_ceil=0 | |
39930 | ||
39931 | for ac_func in sin | |
39932 | do | |
39933 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39934 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39935 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39936 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39938 | else | |
39939 | cat >conftest.$ac_ext <<_ACEOF | |
39940 | /* confdefs.h. */ | |
39941 | _ACEOF | |
39942 | cat confdefs.h >>conftest.$ac_ext | |
39943 | cat >>conftest.$ac_ext <<_ACEOF | |
39944 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39947 | #define $ac_func innocuous_$ac_func | |
39948 | ||
a848cd7e SC |
39949 | /* System header to define __stub macros and hopefully few prototypes, |
39950 | which can conflict with char $ac_func (); below. | |
39951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39952 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39953 | |
a848cd7e SC |
39954 | #ifdef __STDC__ |
39955 | # include <limits.h> | |
39956 | #else | |
39957 | # include <assert.h> | |
39958 | #endif | |
ac1cb8d3 VS |
39959 | |
39960 | #undef $ac_func | |
39961 | ||
a848cd7e SC |
39962 | /* Override any gcc2 internal prototype to avoid an error. */ |
39963 | #ifdef __cplusplus | |
39964 | extern "C" | |
39965 | { | |
39966 | #endif | |
39967 | /* We use char because int might match the return type of a gcc2 | |
39968 | builtin and then its argument prototype would still apply. */ | |
39969 | char $ac_func (); | |
39970 | /* The GNU C library defines this for functions which it implements | |
39971 | to always fail with ENOSYS. Some functions are actually named | |
39972 | something starting with __ and the normal name is an alias. */ | |
39973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39974 | choke me | |
39975 | #else | |
39976 | char (*f) () = $ac_func; | |
39977 | #endif | |
39978 | #ifdef __cplusplus | |
39979 | } | |
39980 | #endif | |
39981 | ||
39982 | int | |
39983 | main () | |
39984 | { | |
39985 | return f != $ac_func; | |
39986 | ; | |
39987 | return 0; | |
39988 | } | |
39989 | _ACEOF | |
39990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39992 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39993 | ac_status=$? |
ac1cb8d3 VS |
39994 | grep -v '^ *+' conftest.er1 >conftest.err |
39995 | rm -f conftest.er1 | |
39996 | cat conftest.err >&5 | |
a848cd7e SC |
39997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39998 | (exit $ac_status); } && | |
07158944 | 39999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40001 | (eval $ac_try) 2>&5 | |
40002 | ac_status=$? | |
40003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40004 | (exit $ac_status); }; } && | |
40005 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40007 | (eval $ac_try) 2>&5 | |
40008 | ac_status=$? | |
40009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40010 | (exit $ac_status); }; }; then | |
40011 | eval "$as_ac_var=yes" | |
40012 | else | |
40013 | echo "$as_me: failed program was:" >&5 | |
40014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40015 | ||
40016 | eval "$as_ac_var=no" | |
40017 | fi | |
ac1cb8d3 VS |
40018 | rm -f conftest.err conftest.$ac_objext \ |
40019 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40020 | fi |
40021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40022 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40023 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40024 | cat >>confdefs.h <<_ACEOF | |
40025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40026 | _ACEOF | |
40027 | have_sin=1 | |
40028 | fi | |
40029 | done | |
40030 | ||
40031 | ||
40032 | for ac_func in ceil | |
40033 | do | |
40034 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40035 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40036 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40037 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40039 | else | |
40040 | cat >conftest.$ac_ext <<_ACEOF | |
40041 | /* confdefs.h. */ | |
40042 | _ACEOF | |
40043 | cat confdefs.h >>conftest.$ac_ext | |
40044 | cat >>conftest.$ac_ext <<_ACEOF | |
40045 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40046 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40048 | #define $ac_func innocuous_$ac_func | |
40049 | ||
a848cd7e SC |
40050 | /* System header to define __stub macros and hopefully few prototypes, |
40051 | which can conflict with char $ac_func (); below. | |
40052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40053 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40054 | |
a848cd7e SC |
40055 | #ifdef __STDC__ |
40056 | # include <limits.h> | |
40057 | #else | |
40058 | # include <assert.h> | |
40059 | #endif | |
ac1cb8d3 VS |
40060 | |
40061 | #undef $ac_func | |
40062 | ||
a848cd7e SC |
40063 | /* Override any gcc2 internal prototype to avoid an error. */ |
40064 | #ifdef __cplusplus | |
40065 | extern "C" | |
40066 | { | |
40067 | #endif | |
40068 | /* We use char because int might match the return type of a gcc2 | |
40069 | builtin and then its argument prototype would still apply. */ | |
40070 | char $ac_func (); | |
40071 | /* The GNU C library defines this for functions which it implements | |
40072 | to always fail with ENOSYS. Some functions are actually named | |
40073 | something starting with __ and the normal name is an alias. */ | |
40074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40075 | choke me | |
40076 | #else | |
40077 | char (*f) () = $ac_func; | |
40078 | #endif | |
40079 | #ifdef __cplusplus | |
40080 | } | |
40081 | #endif | |
40082 | ||
40083 | int | |
40084 | main () | |
40085 | { | |
40086 | return f != $ac_func; | |
40087 | ; | |
40088 | return 0; | |
40089 | } | |
40090 | _ACEOF | |
40091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40093 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40094 | ac_status=$? |
ac1cb8d3 VS |
40095 | grep -v '^ *+' conftest.er1 >conftest.err |
40096 | rm -f conftest.er1 | |
40097 | cat conftest.err >&5 | |
a848cd7e SC |
40098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40099 | (exit $ac_status); } && | |
07158944 | 40100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40102 | (eval $ac_try) 2>&5 | |
40103 | ac_status=$? | |
40104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40105 | (exit $ac_status); }; } && | |
40106 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40108 | (eval $ac_try) 2>&5 | |
40109 | ac_status=$? | |
40110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40111 | (exit $ac_status); }; }; then | |
40112 | eval "$as_ac_var=yes" | |
40113 | else | |
40114 | echo "$as_me: failed program was:" >&5 | |
40115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40116 | ||
40117 | eval "$as_ac_var=no" | |
40118 | fi | |
ac1cb8d3 VS |
40119 | rm -f conftest.err conftest.$ac_objext \ |
40120 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40121 | fi |
40122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40123 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40124 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40125 | cat >>confdefs.h <<_ACEOF | |
40126 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40127 | _ACEOF | |
40128 | have_ceil=1 | |
40129 | fi | |
40130 | done | |
40131 | ||
40132 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
40133 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
40134 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
40135 | echo "$as_me:$LINENO: result: yes" >&5 | |
40136 | echo "${ECHO_T}yes" >&6 | |
40137 | else | |
40138 | echo "$as_me:$LINENO: result: no" >&5 | |
40139 | echo "${ECHO_T}no" >&6 | |
40140 | # not sure we should warn the user, crash, etc. | |
40141 | fi | |
40142 | fi | |
40143 | ||
40144 | if test "$wxUSE_GUI" = "yes"; then | |
40145 | ||
40146 | ||
0b78747f | 40147 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
a848cd7e | 40148 | drawing dynamic erase event exec font image \ |
0b78747f | 40149 | minimal propsize rotate shaped vscroll widgets render" |
a848cd7e SC |
40150 | |
40151 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
40152 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
40153 | fi | |
0b78747f MW |
40154 | if test "$TOOLKIT" = "MSW"; then |
40155 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nativdlg regtest richedit" | |
40156 | fi | |
a848cd7e SC |
40157 | else |
40158 | SAMPLES_SUBDIRS="console" | |
40159 | fi | |
40160 | ||
40161 | ||
ceec2216 | 40162 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
40163 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
40164 | ||
40165 | if test "$GXX" = yes ; then | |
5294a27e VZ |
40166 | CWARNINGS="-Wall" |
40167 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
40168 | fi |
40169 | ||
40170 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
40171 | ||
0c3c69fc | 40172 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 40173 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 40174 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 40175 | |
95986553 DE |
40176 | if test "x$MWCC" = "xyes"; then |
40177 | ||
40178 | CC="$CC -cwd source -I-" | |
40179 | CXX="$CXX -cwd source -I-" | |
40180 | fi | |
40181 | ||
a848cd7e | 40182 | |
0c3c69fc | 40183 | LIBS=`echo $LIBS` |
a848cd7e SC |
40184 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
40185 | EXTRALIBS_XML="$EXPAT_LINK" | |
40186 | EXTRALIBS_HTML="$MSPACK_LINK" | |
40187 | EXTRALIBS_ODBC="$ODBC_LINK" | |
40188 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 40189 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
40190 | fi |
40191 | if test "$wxUSE_OPENGL" = "yes"; then | |
40192 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
40193 | fi | |
40194 | ||
40195 | LDFLAGS="$LDFLAGS $PROFILE" | |
40196 | ||
40197 | if test "$wxUSE_GTK" = 1; then | |
40198 | WXCONFIG_INCLUDE= | |
40199 | else | |
40200 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
40201 | fi | |
40202 | ||
40203 | WXCONFIG_EXTRALIBS="$LIBS" | |
40204 | ||
40205 | if test "$wxUSE_REGEX" = "builtin" ; then | |
40206 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
40207 | fi | |
40208 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
40209 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
40210 | fi | |
40211 | if test "$wxUSE_ODBC" = "builtin" ; then | |
40212 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
40213 | fi | |
40214 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
40215 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
40216 | fi | |
40217 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
40218 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
40219 | fi | |
40220 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
40221 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
40222 | fi | |
40223 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
40224 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
40225 | fi | |
40226 | if test "$wxUSE_ODBC" = "builtin" ; then | |
40227 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
40228 | fi | |
40229 | ||
40230 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 40231 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
40232 | done |
40233 | ||
40234 | ||
40235 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
40236 | WXUNIV=1 | |
40237 | else | |
40238 | WXUNIV=0 | |
40239 | fi | |
40240 | ||
40241 | ||
40242 | ||
40243 | ||
40244 | ||
40245 | ||
40246 | ||
40247 | ||
40248 | ||
40249 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
40250 | MONOLITHIC=1 | |
40251 | else | |
40252 | MONOLITHIC=0 | |
40253 | fi | |
40254 | ||
40255 | if test $wxUSE_PLUGINS = "yes" ; then | |
40256 | USE_PLUGINS=1 | |
40257 | else | |
40258 | USE_PLUGINS=0 | |
40259 | fi | |
40260 | ||
40261 | if test $wxUSE_ODBC != "no" ; then | |
40262 | USE_ODBC=1 | |
40263 | else | |
40264 | USE_ODBC=0 | |
40265 | fi | |
40266 | ||
40267 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
40268 | OFFICIAL_BUILD=1 | |
40269 | else | |
40270 | OFFICIAL_BUILD=0 | |
40271 | fi | |
40272 | ||
40273 | ||
40274 | ||
40275 | ||
40276 | ||
40277 | ||
40278 | ||
40279 | ||
40280 | ||
40281 | ||
40282 | ||
40283 | ||
40284 | ||
40285 | ||
40286 | ||
40287 | ||
40288 | ||
40289 | ||
40290 | ||
ceec2216 | 40291 | |
d1c38808 | 40292 | |
a848cd7e SC |
40293 | |
40294 | ||
40295 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
40296 | ||
40297 | ||
40298 | ||
40299 | ||
40300 | ||
40301 | ||
40302 | ||
40303 | ||
4d4ff94c VZ |
40304 | case "$TOOLKIT" in |
40305 | GTK) | |
40306 | TOOLKIT_USER="GTK+" | |
40307 | if test "$WXGTK20" = 1; then | |
40308 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
40309 | fi | |
9a8f0513 | 40310 | ;; |
4d4ff94c VZ |
40311 | |
40312 | *) | |
40313 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 40314 | ;; |
4d4ff94c | 40315 | esac |
a848cd7e | 40316 | |
9a8f0513 | 40317 | |
1e9e8aba DE |
40318 | |
40319 | ||
a848cd7e SC |
40320 | if test "x$BAKEFILE_HOST" = "x"; then |
40321 | BAKEFILE_HOST="${host}" | |
40322 | fi | |
40323 | ||
40324 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
40325 | ||
40326 | if test -n "$ac_tool_prefix"; then | |
40327 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
40328 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
40329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40331 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
40332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40333 | else | |
40334 | if test -n "$RANLIB"; then | |
40335 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
40336 | else | |
40337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40338 | for as_dir in $PATH | |
40339 | do | |
40340 | IFS=$as_save_IFS | |
40341 | test -z "$as_dir" && as_dir=. | |
40342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40344 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
40345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40346 | break 2 | |
40347 | fi | |
40348 | done | |
40349 | done | |
40350 | ||
40351 | fi | |
40352 | fi | |
40353 | RANLIB=$ac_cv_prog_RANLIB | |
40354 | if test -n "$RANLIB"; then | |
40355 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
40356 | echo "${ECHO_T}$RANLIB" >&6 | |
40357 | else | |
40358 | echo "$as_me:$LINENO: result: no" >&5 | |
40359 | echo "${ECHO_T}no" >&6 | |
40360 | fi | |
40361 | ||
40362 | fi | |
40363 | if test -z "$ac_cv_prog_RANLIB"; then | |
40364 | ac_ct_RANLIB=$RANLIB | |
40365 | # Extract the first word of "ranlib", so it can be a program name with args. | |
40366 | set dummy ranlib; ac_word=$2 | |
40367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40369 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
40370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40371 | else | |
40372 | if test -n "$ac_ct_RANLIB"; then | |
40373 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
40374 | else | |
40375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40376 | for as_dir in $PATH | |
40377 | do | |
40378 | IFS=$as_save_IFS | |
40379 | test -z "$as_dir" && as_dir=. | |
40380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40382 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
40383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40384 | break 2 | |
40385 | fi | |
40386 | done | |
40387 | done | |
40388 | ||
40389 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
40390 | fi | |
40391 | fi | |
40392 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
40393 | if test -n "$ac_ct_RANLIB"; then | |
40394 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
40395 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
40396 | else | |
40397 | echo "$as_me:$LINENO: result: no" >&5 | |
40398 | echo "${ECHO_T}no" >&6 | |
40399 | fi | |
40400 | ||
40401 | RANLIB=$ac_ct_RANLIB | |
40402 | else | |
40403 | RANLIB="$ac_cv_prog_RANLIB" | |
40404 | fi | |
40405 | ||
40406 | # Find a good install program. We prefer a C program (faster), | |
40407 | # so one script is as good as another. But avoid the broken or | |
40408 | # incompatible versions: | |
40409 | # SysV /etc/install, /usr/sbin/install | |
40410 | # SunOS /usr/etc/install | |
40411 | # IRIX /sbin/install | |
40412 | # AIX /bin/install | |
40413 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
40414 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
40415 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
40416 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 40417 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
40418 | # ./install, which can be erroneously created by make from ./install.sh. |
40419 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
40420 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
40421 | if test -z "$INSTALL"; then | |
40422 | if test "${ac_cv_path_install+set}" = set; then | |
40423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40424 | else | |
40425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40426 | for as_dir in $PATH | |
40427 | do | |
40428 | IFS=$as_save_IFS | |
40429 | test -z "$as_dir" && as_dir=. | |
40430 | # Account for people who put trailing slashes in PATH elements. | |
40431 | case $as_dir/ in | |
40432 | ./ | .// | /cC/* | \ | |
40433 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 40434 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
40435 | /usr/ucb/* ) ;; |
40436 | *) | |
40437 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
40438 | # Don't use installbsd from OSF since it installs stuff as root | |
40439 | # by default. | |
40440 | for ac_prog in ginstall scoinst install; do | |
40441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
40442 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
40443 | if test $ac_prog = install && | |
40444 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40445 | # AIX install. It has an incompatible calling convention. | |
40446 | : | |
40447 | elif test $ac_prog = install && | |
40448 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40449 | # program-specific install script used by HP pwplus--don't use. | |
40450 | : | |
40451 | else | |
40452 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
40453 | break 3 | |
40454 | fi | |
40455 | fi | |
a848cd7e SC |
40456 | done |
40457 | done | |
40458 | ;; | |
40459 | esac | |
40460 | done | |
40461 | ||
40462 | ||
40463 | fi | |
40464 | if test "${ac_cv_path_install+set}" = set; then | |
40465 | INSTALL=$ac_cv_path_install | |
40466 | else | |
40467 | # As a last resort, use the slow shell script. We don't cache a | |
40468 | # path for INSTALL within a source directory, because that will | |
40469 | # break other packages using the cache if that directory is | |
40470 | # removed, or if the path is relative. | |
40471 | INSTALL=$ac_install_sh | |
40472 | fi | |
40473 | fi | |
40474 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
40475 | echo "${ECHO_T}$INSTALL" >&6 | |
40476 | ||
40477 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
40478 | # It thinks the first close brace ends the variable substitution. | |
40479 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
40480 | ||
40481 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
40482 | ||
40483 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
40484 | ||
40485 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
40486 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
40487 | LN_S=$as_ln_s | |
40488 | if test "$LN_S" = "ln -s"; then | |
40489 | echo "$as_me:$LINENO: result: yes" >&5 | |
40490 | echo "${ECHO_T}yes" >&6 | |
40491 | else | |
40492 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
40493 | echo "${ECHO_T}no, using $LN_S" >&6 | |
40494 | fi | |
40495 | ||
40496 | ||
40497 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40498 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40499 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40500 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40502 | else | |
40503 | cat >conftest.make <<\_ACEOF | |
40504 | all: | |
40505 | @echo 'ac_maketemp="$(MAKE)"' | |
40506 | _ACEOF | |
40507 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40508 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40509 | if test -n "$ac_maketemp"; then | |
40510 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40511 | else | |
40512 | eval ac_cv_prog_make_${ac_make}_set=no | |
40513 | fi | |
40514 | rm -f conftest.make | |
40515 | fi | |
40516 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40517 | echo "$as_me:$LINENO: result: yes" >&5 | |
40518 | echo "${ECHO_T}yes" >&6 | |
40519 | SET_MAKE= | |
40520 | else | |
40521 | echo "$as_me:$LINENO: result: no" >&5 | |
40522 | echo "${ECHO_T}no" >&6 | |
40523 | SET_MAKE="MAKE=${MAKE-make}" | |
40524 | fi | |
40525 | ||
40526 | ||
40527 | ||
40528 | if test -n "$ac_tool_prefix"; then | |
40529 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
40530 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
40531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40533 | if test "${ac_cv_prog_AR+set}" = set; then | |
40534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40535 | else | |
40536 | if test -n "$AR"; then | |
40537 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
40538 | else | |
40539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40540 | for as_dir in $PATH | |
40541 | do | |
40542 | IFS=$as_save_IFS | |
40543 | test -z "$as_dir" && as_dir=. | |
40544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40546 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
40547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40548 | break 2 | |
40549 | fi | |
40550 | done | |
40551 | done | |
40552 | ||
40553 | fi | |
40554 | fi | |
40555 | AR=$ac_cv_prog_AR | |
40556 | if test -n "$AR"; then | |
40557 | echo "$as_me:$LINENO: result: $AR" >&5 | |
40558 | echo "${ECHO_T}$AR" >&6 | |
40559 | else | |
40560 | echo "$as_me:$LINENO: result: no" >&5 | |
40561 | echo "${ECHO_T}no" >&6 | |
40562 | fi | |
40563 | ||
40564 | fi | |
40565 | if test -z "$ac_cv_prog_AR"; then | |
40566 | ac_ct_AR=$AR | |
40567 | # Extract the first word of "ar", so it can be a program name with args. | |
40568 | set dummy ar; ac_word=$2 | |
40569 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40571 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
40572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40573 | else | |
40574 | if test -n "$ac_ct_AR"; then | |
40575 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
40576 | else | |
40577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40578 | for as_dir in $PATH | |
40579 | do | |
40580 | IFS=$as_save_IFS | |
40581 | test -z "$as_dir" && as_dir=. | |
40582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40584 | ac_cv_prog_ac_ct_AR="ar" | |
40585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40586 | break 2 | |
40587 | fi | |
40588 | done | |
40589 | done | |
40590 | ||
40591 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
40592 | fi | |
40593 | fi | |
40594 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
40595 | if test -n "$ac_ct_AR"; then | |
40596 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
40597 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
40598 | else | |
40599 | echo "$as_me:$LINENO: result: no" >&5 | |
40600 | echo "${ECHO_T}no" >&6 | |
40601 | fi | |
40602 | ||
40603 | AR=$ac_ct_AR | |
40604 | else | |
40605 | AR="$ac_cv_prog_AR" | |
40606 | fi | |
40607 | ||
40608 | if test -n "$ac_tool_prefix"; then | |
40609 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
40610 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
40611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40613 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
40614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40615 | else | |
40616 | if test -n "$STRIP"; then | |
40617 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
40618 | else | |
40619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40620 | for as_dir in $PATH | |
40621 | do | |
40622 | IFS=$as_save_IFS | |
40623 | test -z "$as_dir" && as_dir=. | |
40624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40626 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
40627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40628 | break 2 | |
40629 | fi | |
40630 | done | |
40631 | done | |
40632 | ||
40633 | fi | |
40634 | fi | |
40635 | STRIP=$ac_cv_prog_STRIP | |
40636 | if test -n "$STRIP"; then | |
40637 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
40638 | echo "${ECHO_T}$STRIP" >&6 | |
40639 | else | |
40640 | echo "$as_me:$LINENO: result: no" >&5 | |
40641 | echo "${ECHO_T}no" >&6 | |
40642 | fi | |
40643 | ||
40644 | fi | |
40645 | if test -z "$ac_cv_prog_STRIP"; then | |
40646 | ac_ct_STRIP=$STRIP | |
40647 | # Extract the first word of "strip", so it can be a program name with args. | |
40648 | set dummy strip; ac_word=$2 | |
40649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40651 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
40652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40653 | else | |
40654 | if test -n "$ac_ct_STRIP"; then | |
40655 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
40656 | else | |
40657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40658 | for as_dir in $PATH | |
40659 | do | |
40660 | IFS=$as_save_IFS | |
40661 | test -z "$as_dir" && as_dir=. | |
40662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40664 | ac_cv_prog_ac_ct_STRIP="strip" | |
40665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40666 | break 2 | |
40667 | fi | |
40668 | done | |
40669 | done | |
40670 | ||
40671 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
40672 | fi | |
40673 | fi | |
40674 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
40675 | if test -n "$ac_ct_STRIP"; then | |
40676 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
40677 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
40678 | else | |
40679 | echo "$as_me:$LINENO: result: no" >&5 | |
40680 | echo "${ECHO_T}no" >&6 | |
40681 | fi | |
40682 | ||
40683 | STRIP=$ac_ct_STRIP | |
40684 | else | |
40685 | STRIP="$ac_cv_prog_STRIP" | |
40686 | fi | |
40687 | ||
40688 | if test -n "$ac_tool_prefix"; then | |
40689 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
40690 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
40691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40693 | if test "${ac_cv_prog_NM+set}" = set; then | |
40694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40695 | else | |
40696 | if test -n "$NM"; then | |
40697 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
40698 | else | |
40699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40700 | for as_dir in $PATH | |
40701 | do | |
40702 | IFS=$as_save_IFS | |
40703 | test -z "$as_dir" && as_dir=. | |
40704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40705 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40706 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
40707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40708 | break 2 | |
40709 | fi | |
40710 | done | |
40711 | done | |
40712 | ||
40713 | fi | |
40714 | fi | |
40715 | NM=$ac_cv_prog_NM | |
40716 | if test -n "$NM"; then | |
40717 | echo "$as_me:$LINENO: result: $NM" >&5 | |
40718 | echo "${ECHO_T}$NM" >&6 | |
40719 | else | |
40720 | echo "$as_me:$LINENO: result: no" >&5 | |
40721 | echo "${ECHO_T}no" >&6 | |
40722 | fi | |
40723 | ||
40724 | fi | |
40725 | if test -z "$ac_cv_prog_NM"; then | |
40726 | ac_ct_NM=$NM | |
40727 | # Extract the first word of "nm", so it can be a program name with args. | |
40728 | set dummy nm; ac_word=$2 | |
40729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40731 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
40732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40733 | else | |
40734 | if test -n "$ac_ct_NM"; then | |
40735 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
40736 | else | |
40737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40738 | for as_dir in $PATH | |
40739 | do | |
40740 | IFS=$as_save_IFS | |
40741 | test -z "$as_dir" && as_dir=. | |
40742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40744 | ac_cv_prog_ac_ct_NM="nm" | |
40745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40746 | break 2 | |
40747 | fi | |
40748 | done | |
40749 | done | |
40750 | ||
40751 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
40752 | fi | |
40753 | fi | |
40754 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
40755 | if test -n "$ac_ct_NM"; then | |
40756 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
40757 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
40758 | else | |
40759 | echo "$as_me:$LINENO: result: no" >&5 | |
40760 | echo "${ECHO_T}no" >&6 | |
40761 | fi | |
40762 | ||
40763 | NM=$ac_ct_NM | |
40764 | else | |
40765 | NM="$ac_cv_prog_NM" | |
40766 | fi | |
40767 | ||
40768 | ||
40769 | case ${BAKEFILE_HOST} in | |
40770 | *-hp-hpux* ) | |
1e9e8aba | 40771 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
40772 | ;; |
40773 | *) INSTALL_DIR="$INSTALL -d" | |
40774 | ;; | |
40775 | esac | |
40776 | ||
40777 | ||
40778 | LDFLAGS_GUI= | |
40779 | case ${BAKEFILE_HOST} in | |
40780 | *-*-cygwin* | *-*-mingw32* ) | |
40781 | LDFLAGS_GUI="-mwindows" | |
40782 | esac | |
40783 | ||
40784 | ||
40785 | fi | |
40786 | ||
40787 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
40788 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
40789 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
40790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40791 | else | |
40792 | ||
40793 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
40794 | egrep -s GNU > /dev/null); then | |
40795 | bakefile_cv_prog_makeisgnu="yes" | |
40796 | else | |
40797 | bakefile_cv_prog_makeisgnu="no" | |
40798 | fi | |
40799 | ||
40800 | fi | |
40801 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
40802 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
40803 | ||
40804 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
40805 | IF_GNU_MAKE="" | |
40806 | else | |
40807 | IF_GNU_MAKE="#" | |
40808 | fi | |
40809 | ||
40810 | ||
40811 | ||
40812 | PLATFORM_UNIX=0 | |
40813 | PLATFORM_WIN32=0 | |
40814 | PLATFORM_MSDOS=0 | |
40815 | PLATFORM_MAC=0 | |
1e9e8aba | 40816 | PLATFORM_MACOS=0 |
a848cd7e SC |
40817 | PLATFORM_MACOSX=0 |
40818 | PLATFORM_OS2=0 | |
1e9e8aba | 40819 | PLATFORM_BEOS=0 |
a848cd7e SC |
40820 | |
40821 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
40822 | case "${BAKEFILE_HOST}" in | |
40823 | *-*-cygwin* | *-*-mingw32* ) | |
40824 | PLATFORM_WIN32=1 | |
40825 | ;; | |
40826 | *-pc-msdosdjgpp ) | |
40827 | PLATFORM_MSDOS=1 | |
40828 | ;; | |
40829 | *-pc-os2_emx | *-pc-os2-emx ) | |
40830 | PLATFORM_OS2=1 | |
40831 | ;; | |
40832 | powerpc-*-darwin* ) | |
40833 | PLATFORM_MAC=1 | |
40834 | PLATFORM_MACOSX=1 | |
40835 | ;; | |
1e9e8aba DE |
40836 | *-*-beos* ) |
40837 | PLATFORM_BEOS=1 | |
40838 | ;; | |
40839 | powerpc-apple-macos* ) | |
40840 | PLATFORM_MAC=1 | |
40841 | PLATFORM_MACOS=1 | |
40842 | ;; | |
a848cd7e SC |
40843 | * ) |
40844 | PLATFORM_UNIX=1 | |
40845 | ;; | |
40846 | esac | |
40847 | else | |
40848 | case "$BAKEFILE_FORCE_PLATFORM" in | |
40849 | win32 ) | |
40850 | PLATFORM_WIN32=1 | |
40851 | ;; | |
40852 | msdos ) | |
40853 | PLATFORM_MSDOS=1 | |
40854 | ;; | |
40855 | os2 ) | |
40856 | PLATFORM_OS2=1 | |
40857 | ;; | |
40858 | darwin ) | |
40859 | PLATFORM_MAC=1 | |
40860 | PLATFORM_MACOSX=1 | |
40861 | ;; | |
40862 | unix ) | |
40863 | PLATFORM_UNIX=1 | |
40864 | ;; | |
1e9e8aba DE |
40865 | beos ) |
40866 | PLATFORM_BEOS=1 | |
40867 | ;; | |
a848cd7e SC |
40868 | * ) |
40869 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
40870 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
40871 | { (exit 1); exit 1; }; } | |
40872 | ;; | |
40873 | esac | |
40874 | fi | |
40875 | ||
40876 | ||
40877 | ||
40878 | ||
40879 | ||
40880 | ||
40881 | ||
40882 | ||
40883 | ||
1e9e8aba DE |
40884 | |
40885 | ||
a848cd7e SC |
40886 | # Check whether --enable-omf or --disable-omf was given. |
40887 | if test "${enable_omf+set}" = set; then | |
40888 | enableval="$enable_omf" | |
40889 | bk_os2_use_omf="$enableval" | |
40890 | fi; | |
40891 | ||
40892 | case "${BAKEFILE_HOST}" in | |
40893 | *-*-darwin* ) | |
40894 | CFLAGS="$CFLAGS -fno-common" | |
40895 | CXXFLAGS="$CXXFLAGS -fno-common" | |
40896 | ;; | |
40897 | ||
40898 | *-pc-os2_emx | *-pc-os2-emx ) | |
40899 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
40900 | AR=emxomfar | |
40901 | RANLIB=: | |
40902 | LDFLAGS="-Zomf $LDFLAGS" | |
40903 | CFLAGS="-Zomf $CFLAGS" | |
40904 | CXXFLAGS="-Zomf $CXXFLAGS" | |
40905 | OS2_LIBEXT="lib" | |
40906 | else | |
40907 | OS2_LIBEXT="a" | |
40908 | fi | |
40909 | ;; | |
1e9e8aba DE |
40910 | |
40911 | i*86-*-beos* ) | |
40912 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
40913 | ;; | |
a848cd7e SC |
40914 | esac |
40915 | ||
40916 | ||
40917 | SO_SUFFIX="so" | |
40918 | SO_SUFFIX_MODULE="so" | |
40919 | EXEEXT="" | |
40920 | LIBPREFIX="lib" | |
40921 | LIBEXT=".a" | |
40922 | DLLPREFIX="lib" | |
40923 | DLLPREFIX_MODULE="" | |
40924 | DLLIMP_SUFFIX="" | |
40925 | ||
40926 | case "${BAKEFILE_HOST}" in | |
40927 | *-hp-hpux* ) | |
40928 | SO_SUFFIX="sl" | |
40929 | SO_SUFFIX_MODULE="sl" | |
40930 | ;; | |
40931 | *-*-aix* ) | |
40932 | SO_SUFFIX="a" | |
40933 | SO_SUFFIX_MODULE="a" | |
40934 | ;; | |
40935 | *-*-cygwin* | *-*-mingw32* ) | |
40936 | SO_SUFFIX="dll" | |
40937 | SO_SUFFIX_MODULE="dll" | |
40938 | DLLIMP_SUFFIX="dll.a" | |
40939 | EXEEXT=".exe" | |
40940 | DLLPREFIX="" | |
40941 | ;; | |
40942 | *-pc-msdosdjgpp ) | |
40943 | EXEEXT=".exe" | |
40944 | DLLPREFIX="" | |
40945 | ;; | |
40946 | *-pc-os2_emx | *-pc-os2-emx ) | |
40947 | SO_SUFFIX="dll" | |
40948 | SO_SUFFIX_MODULE="dll" | |
40949 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
40950 | EXEEXT=".exe" | |
40951 | DLLPREFIX="" | |
40952 | LIBPREFIX="" | |
40953 | LIBEXT=".$OS2_LIBEXT" | |
40954 | ;; | |
40955 | powerpc-*-darwin* ) | |
40956 | SO_SUFFIX="dylib" | |
40957 | SO_SUFFIX_MODULE="bundle" | |
40958 | ;; | |
40959 | esac | |
40960 | ||
40961 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
40962 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
40963 | fi | |
40964 | ||
40965 | ||
40966 | ||
40967 | ||
40968 | ||
40969 | ||
40970 | ||
40971 | ||
40972 | ||
40973 | ||
40974 | ||
1e9e8aba DE |
40975 | PIC_FLAG="" |
40976 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
40977 | PIC_FLAG="-fPIC" |
40978 | fi | |
40979 | ||
1e9e8aba DE |
40980 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
40981 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
40982 | ||
a848cd7e SC |
40983 | case "${BAKEFILE_HOST}" in |
40984 | *-hp-hpux* ) | |
1e9e8aba | 40985 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
40986 | LDFLAGS="$LDFLAGS -L/usr/lib" |
40987 | ||
40988 | SHARED_LD_CC="${CC} -b -o" | |
40989 | SHARED_LD_CXX="${CXX} -b -o" | |
40990 | PIC_FLAG="+Z" | |
40991 | fi | |
40992 | ;; | |
40993 | ||
40994 | *-*-linux* ) | |
40995 | if test "x$GCC" != "xyes"; then | |
40996 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
40997 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
40998 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
40999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41000 | else | |
41001 | ||
41002 | cat >conftest.$ac_ext <<_ACEOF | |
41003 | /* confdefs.h. */ | |
41004 | _ACEOF | |
41005 | cat confdefs.h >>conftest.$ac_ext | |
41006 | cat >>conftest.$ac_ext <<_ACEOF | |
41007 | /* end confdefs.h. */ | |
41008 | ||
41009 | int | |
41010 | main () | |
41011 | { | |
41012 | ||
41013 | #ifndef __INTEL_COMPILER | |
41014 | #error Not icc | |
41015 | #endif | |
41016 | ||
41017 | ; | |
41018 | return 0; | |
41019 | } | |
41020 | _ACEOF | |
41021 | rm -f conftest.$ac_objext | |
41022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41023 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41024 | ac_status=$? |
ac1cb8d3 VS |
41025 | grep -v '^ *+' conftest.er1 >conftest.err |
41026 | rm -f conftest.er1 | |
41027 | cat conftest.err >&5 | |
a848cd7e SC |
41028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41029 | (exit $ac_status); } && | |
07158944 | 41030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41032 | (eval $ac_try) 2>&5 | |
41033 | ac_status=$? | |
41034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41035 | (exit $ac_status); }; } && | |
41036 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41038 | (eval $ac_try) 2>&5 | |
41039 | ac_status=$? | |
41040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41041 | (exit $ac_status); }; }; then | |
41042 | bakefile_cv_prog_icc=yes | |
41043 | else | |
41044 | echo "$as_me: failed program was:" >&5 | |
41045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41046 | ||
41047 | bakefile_cv_prog_icc=no | |
41048 | ||
41049 | fi | |
ac1cb8d3 | 41050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41051 | |
41052 | fi | |
41053 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
41054 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
41055 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
41056 | PIC_FLAG="-KPIC" | |
41057 | fi | |
41058 | fi | |
41059 | ;; | |
41060 | ||
41061 | *-*-solaris2* ) | |
41062 | if test "x$GCC" != xyes ; then | |
41063 | SHARED_LD_CC="${CC} -G -o" | |
41064 | SHARED_LD_CXX="${CXX} -G -o" | |
41065 | PIC_FLAG="-KPIC" | |
41066 | fi | |
41067 | ;; | |
41068 | ||
41069 | *-*-darwin* ) | |
41070 | ||
41071 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
41072 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
41073 | if test "${wx_cv_gcc31+set}" = set; then | |
41074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41075 | else | |
41076 | ||
41077 | cat >conftest.$ac_ext <<_ACEOF | |
41078 | /* confdefs.h. */ | |
41079 | _ACEOF | |
41080 | cat confdefs.h >>conftest.$ac_ext | |
41081 | cat >>conftest.$ac_ext <<_ACEOF | |
41082 | /* end confdefs.h. */ | |
41083 | ||
41084 | int | |
41085 | main () | |
41086 | { | |
41087 | ||
41088 | #if (__GNUC__ < 3) || \ | |
41089 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
41090 | #error old gcc | |
41091 | #endif | |
41092 | ||
41093 | ; | |
41094 | return 0; | |
41095 | } | |
41096 | _ACEOF | |
41097 | rm -f conftest.$ac_objext | |
41098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41100 | ac_status=$? |
ac1cb8d3 VS |
41101 | grep -v '^ *+' conftest.er1 >conftest.err |
41102 | rm -f conftest.er1 | |
41103 | cat conftest.err >&5 | |
a848cd7e SC |
41104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41105 | (exit $ac_status); } && | |
07158944 | 41106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41108 | (eval $ac_try) 2>&5 | |
41109 | ac_status=$? | |
41110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41111 | (exit $ac_status); }; } && | |
41112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41114 | (eval $ac_try) 2>&5 | |
41115 | ac_status=$? | |
41116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41117 | (exit $ac_status); }; }; then | |
41118 | ||
41119 | wx_cv_gcc31=yes | |
41120 | ||
41121 | else | |
41122 | echo "$as_me: failed program was:" >&5 | |
41123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41124 | ||
41125 | ||
41126 | wx_cv_gcc31=no | |
41127 | ||
41128 | ||
41129 | fi | |
ac1cb8d3 | 41130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41131 | |
41132 | fi | |
41133 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
41134 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
41135 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
41136 | |
41137 | D='$' | |
41138 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
41139 | #!/bin/sh |
41140 | #----------------------------------------------------------------------------- | |
41141 | #-- Name: distrib/mac/shared-ld-sh | |
41142 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
41143 | #-- Author: Gilles Depeyrot | |
41144 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
41145 | #-- Licence: any use permitted | |
41146 | #----------------------------------------------------------------------------- | |
41147 | ||
41148 | verbose=0 | |
41149 | args="" | |
41150 | objects="" | |
41151 | linking_flag="-dynamiclib" | |
41152 | ||
473276a9 VS |
41153 | while test ${D}# -gt 0; do |
41154 | case ${D}1 in | |
a848cd7e SC |
41155 | |
41156 | -v) | |
41157 | verbose=1 | |
41158 | ;; | |
41159 | ||
41160 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
41161 | # collect these options and values | |
473276a9 | 41162 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
41163 | shift |
41164 | ;; | |
41165 | ||
41166 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
41167 | # collect these options | |
473276a9 | 41168 | args="${D}{args} ${D}1" |
a848cd7e SC |
41169 | ;; |
41170 | ||
41171 | -dynamiclib|-bundle) | |
473276a9 | 41172 | linking_flag="${D}1" |
a848cd7e SC |
41173 | ;; |
41174 | ||
41175 | -*) | |
473276a9 | 41176 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
41177 | exit 1 |
41178 | ;; | |
41179 | ||
41180 | *.o | *.a | *.dylib) | |
41181 | # collect object files | |
473276a9 | 41182 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
41183 | ;; |
41184 | ||
41185 | *) | |
473276a9 | 41186 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
41187 | exit 1 |
41188 | ;; | |
41189 | ||
41190 | esac | |
41191 | shift | |
41192 | done | |
41193 | ||
41194 | # | |
41195 | # Link one module containing all the others | |
41196 | # | |
473276a9 VS |
41197 | if test ${D}{verbose} = 1; then |
41198 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 41199 | fi |
473276a9 VS |
41200 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
41201 | status=${D}? | |
41202 | if test ${D}{status} != 0; then | |
41203 | exit ${D}{status} | |
a848cd7e SC |
41204 | fi |
41205 | ||
41206 | # | |
41207 | # Link the shared library from the single module created | |
41208 | # | |
473276a9 VS |
41209 | if test ${D}{verbose} = 1; then |
41210 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 41211 | fi |
473276a9 VS |
41212 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
41213 | status=${D}? | |
41214 | if test ${D}{status} != 0; then | |
41215 | exit ${D}{status} | |
a848cd7e SC |
41216 | fi |
41217 | ||
41218 | # | |
41219 | # Remove intermediate module | |
41220 | # | |
473276a9 | 41221 | rm -f master.${D}${D}.o |
a848cd7e SC |
41222 | |
41223 | exit 0 | |
41224 | EOF | |
473276a9 | 41225 | |
a848cd7e SC |
41226 | chmod +x shared-ld-sh |
41227 | ||
41228 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
41229 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
41230 | SHARED_LD_CXX="$SHARED_LD_CC" | |
41231 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
41232 | else | |
41233 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41234 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
41235 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
41236 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
41237 | fi | |
41238 | ||
41239 | PIC_FLAG="-dynamic -fPIC" | |
41240 | ;; | |
41241 | ||
41242 | *-*-aix* ) | |
41243 | if test "x$GCC" != "xyes"; then | |
41244 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
41245 | set dummy makeC++SharedLib; ac_word=$2 | |
41246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41248 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
41249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41250 | else | |
41251 | if test -n "$AIX_CXX_LD"; then | |
41252 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
41253 | else | |
41254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41255 | for as_dir in $PATH | |
41256 | do | |
41257 | IFS=$as_save_IFS | |
41258 | test -z "$as_dir" && as_dir=. | |
41259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41261 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
41262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41263 | break 2 | |
41264 | fi | |
41265 | done | |
41266 | done | |
41267 | ||
41268 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
41269 | fi | |
41270 | fi | |
41271 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
41272 | if test -n "$AIX_CXX_LD"; then | |
41273 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
41274 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
41275 | else | |
41276 | echo "$as_me:$LINENO: result: no" >&5 | |
41277 | echo "${ECHO_T}no" >&6 | |
41278 | fi | |
41279 | ||
41280 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
41281 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
41282 | fi | |
41283 | ;; | |
41284 | ||
41285 | *-*-beos* ) | |
1e9e8aba DE |
41286 | SHARED_LD_CC="${LD} -nostart -o" |
41287 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
41288 | ;; |
41289 | ||
41290 | *-*-irix* ) | |
41291 | if test "x$GCC" != "xyes"; then | |
41292 | PIC_FLAG="-KPIC" | |
41293 | fi | |
41294 | ;; | |
41295 | ||
41296 | *-*-cygwin* | *-*-mingw32* ) | |
41297 | PIC_FLAG="" | |
1e9e8aba DE |
41298 | SHARED_LD_CC="\$(CC) -shared -o" |
41299 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
41300 | ;; |
41301 | ||
41302 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
41303 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
41304 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 41305 | PIC_FLAG="" |
473276a9 VS |
41306 | |
41307 | D='$' | |
41308 | cat <<EOF >dllar.sh | |
41309 | #!/bin/sh | |
41310 | # | |
41311 | # dllar - a tool to build both a .dll and an .a file | |
41312 | # from a set of object (.o) files for EMX/OS2. | |
41313 | # | |
41314 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
41315 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
41316 | # | |
41317 | # This script will accept a set of files on the command line. | |
41318 | # All the public symbols from the .o files will be exported into | |
41319 | # a .DEF file, then linker will be run (through gcc) against them to | |
41320 | # build a shared library consisting of all given .o files. All libraries | |
41321 | # (.a) will be first decompressed into component .o files then act as | |
41322 | # described above. You can optionally give a description (-d "description") | |
41323 | # which will be put into .DLL. To see the list of accepted options (as well | |
41324 | # as command-line format) simply run this program without options. The .DLL | |
41325 | # is built to be imported by name (there is no guarantee that new versions | |
41326 | # of the library you build will have same ordinals for same symbols). | |
41327 | # | |
41328 | # dllar is free software; you can redistribute it and/or modify | |
41329 | # it under the terms of the GNU General Public License as published by | |
41330 | # the Free Software Foundation; either version 2, or (at your option) | |
41331 | # any later version. | |
41332 | # | |
41333 | # dllar is distributed in the hope that it will be useful, | |
41334 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
41335 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
41336 | # GNU General Public License for more details. | |
41337 | # | |
41338 | # You should have received a copy of the GNU General Public License | |
41339 | # along with dllar; see the file COPYING. If not, write to the Free | |
41340 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
41341 | # 02111-1307, USA. | |
41342 | ||
41343 | # To successfuly run this program you will need: | |
41344 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
41345 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
41346 | # - gcc | |
41347 | # (used to build the .dll) | |
41348 | # - emxexp | |
41349 | # (used to create .def file from .o files) | |
41350 | # - emximp | |
41351 | # (used to create .a file from .def file) | |
41352 | # - GNU text utilites (cat, sort, uniq) | |
41353 | # used to process emxexp output | |
41354 | # - GNU file utilities (mv, rm) | |
41355 | # - GNU sed | |
41356 | # - lxlite (optional, see flag below) | |
41357 | # (used for general .dll cleanup) | |
41358 | # | |
41359 | ||
41360 | flag_USE_LXLITE=1; | |
41361 | ||
41362 | # | |
41363 | # helper functions | |
41364 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
41365 | # second argument (suffix to remove) is given | |
41366 | basnam(){ | |
41367 | case ${D}# in | |
41368 | 1) | |
1e9e8aba | 41369 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
41370 | ;; |
41371 | 2) | |
41372 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
41373 | ;; | |
41374 | *) | |
41375 | echo "error in basnam ${D}*" | |
41376 | exit 8 | |
41377 | ;; | |
41378 | esac | |
41379 | } | |
41380 | ||
41381 | # Cleanup temporary files and output | |
41382 | CleanUp() { | |
41383 | cd ${D}curDir | |
41384 | for i in ${D}inputFiles ; do | |
41385 | case ${D}i in | |
41386 | *!) | |
41387 | rm -rf \`basnam ${D}i !\` | |
41388 | ;; | |
41389 | *) | |
41390 | ;; | |
41391 | esac | |
41392 | done | |
41393 | ||
41394 | # Kill result in case of failure as there is just to many stupid make/nmake | |
41395 | # things out there which doesn't do this. | |
1e9e8aba | 41396 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
41397 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
41398 | fi | |
41399 | } | |
41400 | ||
41401 | # Print usage and exit script with rc=1. | |
41402 | PrintHelp() { | |
b1d22ded DE |
41403 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
41404 | echo ' [-name-mangler-script script.sh]' | |
41405 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
41406 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
41407 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 41408 | echo ' [*.o] [*.a]' |
473276a9 VS |
41409 | echo '*> "output_file" should have no extension.' |
41410 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
41411 | echo ' The import library name is derived from this and is set to "name".a,' | |
41412 | echo ' unless overridden by -import' | |
41413 | echo '*> "importlib_name" should have no extension.' | |
41414 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
41415 | echo ' This name is used as the import library name and may be longer and' | |
41416 | echo ' more descriptive than the DLL name which has to follow the old ' | |
41417 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
41418 | echo '*> "script.sh may be given to override the output_file name by a' |
41419 | echo ' different name. It is mainly useful if the regular make process' | |
41420 | echo ' of some package does not take into account OS/2 restriction of' | |
41421 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
41422 | echo ' supposed to procude a shorter name as output. The script should' | |
41423 | echo ' expect to get importlib_name without extension and should produce' | |
41424 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
41425 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
41426 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
41427 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
41428 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
41429 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
41430 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
41431 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
41432 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 41433 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 41434 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 41435 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 41436 | echo ' C runtime DLLs.' |
b1d22ded | 41437 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
41438 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
41439 | echo ' unchanged to GCC at the end of command line.' | |
41440 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
41441 | echo ' the basename for DLL and import library will be set to library name,' | |
41442 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
41443 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
41444 | echo ' library will be renamed into gcc_s.a.' | |
41445 | echo '--------' | |
41446 | echo 'Example:' | |
41447 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
41448 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
41449 | CleanUp | |
41450 | exit 1 | |
41451 | } | |
41452 | ||
41453 | # Execute a command. | |
41454 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
41455 | # @Uses Whatever CleanUp() uses. | |
41456 | doCommand() { | |
41457 | echo "${D}*" | |
41458 | eval ${D}* | |
41459 | rcCmd=${D}? | |
41460 | ||
1e9e8aba | 41461 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
41462 | echo "command failed, exit code="${D}rcCmd |
41463 | CleanUp | |
41464 | exit ${D}rcCmd | |
41465 | fi | |
41466 | } | |
41467 | ||
41468 | # main routine | |
41469 | # setup globals | |
41470 | cmdLine=${D}* | |
41471 | outFile="" | |
41472 | outimpFile="" | |
41473 | inputFiles="" | |
b1d22ded | 41474 | renameScript="" |
473276a9 VS |
41475 | description="" |
41476 | CC=gcc.exe | |
41477 | CFLAGS="-s -Zcrtdll" | |
41478 | EXTRA_CFLAGS="" | |
41479 | EXPORT_BY_ORDINALS=0 | |
41480 | exclude_symbols="" | |
41481 | library_flags="" | |
41482 | curDir=\`pwd\` | |
41483 | curDirS=curDir | |
41484 | case ${D}curDirS in | |
41485 | */) | |
41486 | ;; | |
41487 | *) | |
41488 | curDirS=${D}{curDirS}"/" | |
41489 | ;; | |
41490 | esac | |
41491 | # Parse commandline | |
41492 | libsToLink=0 | |
b1d22ded | 41493 | omfLinking=0 |
1e9e8aba | 41494 | while [ ${D}1 ]; do |
473276a9 VS |
41495 | case ${D}1 in |
41496 | -ord*) | |
41497 | EXPORT_BY_ORDINALS=1; | |
41498 | ;; | |
41499 | -o*) | |
41500 | shift | |
41501 | outFile=${D}1 | |
41502 | ;; | |
41503 | -i*) | |
41504 | shift | |
41505 | outimpFile=${D}1 | |
41506 | ;; | |
b1d22ded DE |
41507 | -name-mangler-script) |
41508 | shift | |
41509 | renameScript=${D}1 | |
41510 | ;; | |
473276a9 VS |
41511 | -d*) |
41512 | shift | |
41513 | description=${D}1 | |
41514 | ;; | |
41515 | -f*) | |
41516 | shift | |
41517 | CFLAGS=${D}1 | |
41518 | ;; | |
41519 | -c*) | |
41520 | shift | |
41521 | CC=${D}1 | |
41522 | ;; | |
41523 | -h*) | |
41524 | PrintHelp | |
41525 | ;; | |
41526 | -ex*) | |
41527 | shift | |
41528 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
41529 | ;; | |
41530 | -libf*) | |
41531 | shift | |
41532 | library_flags=${D}{library_flags}${D}1" " | |
41533 | ;; | |
41534 | -nocrt*) | |
41535 | CFLAGS="-s" | |
41536 | ;; | |
41537 | -nolxl*) | |
41538 | flag_USE_LXLITE=0 | |
41539 | ;; | |
41540 | -* | /*) | |
41541 | case ${D}1 in | |
41542 | -L* | -l*) | |
41543 | libsToLink=1 | |
41544 | ;; | |
b1d22ded DE |
41545 | -Zomf) |
41546 | omfLinking=1 | |
41547 | ;; | |
473276a9 VS |
41548 | *) |
41549 | ;; | |
41550 | esac | |
41551 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
41552 | ;; | |
b1d22ded DE |
41553 | *.dll) |
41554 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
41555 | if [ ${D}omfLinking -eq 1 ]; then | |
41556 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
41557 | else | |
41558 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
41559 | fi | |
41560 | ;; | |
473276a9 VS |
41561 | *) |
41562 | found=0; | |
1e9e8aba | 41563 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
41564 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
41565 | else | |
41566 | for file in ${D}1 ; do | |
1e9e8aba | 41567 | if [ -f ${D}file ]; then |
473276a9 VS |
41568 | inputFiles="${D}{inputFiles} ${D}file" |
41569 | found=1 | |
41570 | fi | |
41571 | done | |
1e9e8aba | 41572 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
41573 | echo "ERROR: No file(s) found: "${D}1 |
41574 | exit 8 | |
41575 | fi | |
41576 | fi | |
41577 | ;; | |
41578 | esac | |
41579 | shift | |
41580 | done # iterate cmdline words | |
41581 | ||
41582 | # | |
1e9e8aba | 41583 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
41584 | echo "dllar: no input files" |
41585 | PrintHelp | |
41586 | fi | |
41587 | ||
41588 | # Now extract all .o files from .a files | |
41589 | newInputFiles="" | |
41590 | for file in ${D}inputFiles ; do | |
41591 | case ${D}file in | |
41592 | *.a | *.lib) | |
41593 | case ${D}file in | |
41594 | *.a) | |
41595 | suffix=".a" | |
41596 | AR="ar" | |
41597 | ;; | |
41598 | *.lib) | |
41599 | suffix=".lib" | |
41600 | AR="emxomfar" | |
41601 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
41602 | ;; | |
41603 | *) | |
41604 | ;; | |
41605 | esac | |
41606 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
41607 | mkdir ${D}dirname | |
1e9e8aba | 41608 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
41609 | echo "Failed to create subdirectory ./${D}dirname" |
41610 | CleanUp | |
41611 | exit 8; | |
41612 | fi | |
41613 | # Append '!' to indicate archive | |
41614 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
41615 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
41616 | cd ${D}curDir | |
41617 | found=0; | |
41618 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 41619 | if [ -f ${D}subfile ]; then |
473276a9 | 41620 | found=1 |
1e9e8aba | 41621 | if [ -s ${D}subfile ]; then |
473276a9 VS |
41622 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
41623 | newInputFiles="${D}newInputFiles ${D}subfile" | |
41624 | fi | |
41625 | fi | |
41626 | done | |
1e9e8aba DE |
41627 | if [ ${D}found -eq 0 ]; then |
41628 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
41629 | fi |
41630 | ;; | |
41631 | *) | |
41632 | newInputFiles="${D}{newInputFiles} ${D}file" | |
41633 | ;; | |
41634 | esac | |
41635 | done | |
41636 | inputFiles="${D}newInputFiles" | |
41637 | ||
41638 | # Output filename(s). | |
41639 | do_backup=0; | |
1e9e8aba | 41640 | if [ -z ${D}outFile ]; then |
473276a9 VS |
41641 | do_backup=1; |
41642 | set outFile ${D}inputFiles; outFile=${D}2 | |
41643 | fi | |
41644 | ||
41645 | # If it is an archive, remove the '!' and the '_%' suffixes | |
41646 | case ${D}outFile in | |
41647 | *_%!) | |
41648 | outFile=\`basnam ${D}outFile _%!\` | |
41649 | ;; | |
41650 | *) | |
41651 | ;; | |
41652 | esac | |
41653 | case ${D}outFile in | |
41654 | *.dll) | |
41655 | outFile=\`basnam ${D}outFile .dll\` | |
41656 | ;; | |
41657 | *.DLL) | |
41658 | outFile=\`basnam ${D}outFile .DLL\` | |
41659 | ;; | |
41660 | *.o) | |
41661 | outFile=\`basnam ${D}outFile .o\` | |
41662 | ;; | |
41663 | *.obj) | |
41664 | outFile=\`basnam ${D}outFile .obj\` | |
41665 | ;; | |
41666 | *.a) | |
41667 | outFile=\`basnam ${D}outFile .a\` | |
41668 | ;; | |
41669 | *.lib) | |
41670 | outFile=\`basnam ${D}outFile .lib\` | |
41671 | ;; | |
41672 | *) | |
41673 | ;; | |
41674 | esac | |
41675 | case ${D}outimpFile in | |
41676 | *.a) | |
41677 | outimpFile=\`basnam ${D}outimpFile .a\` | |
41678 | ;; | |
41679 | *.lib) | |
41680 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
41681 | ;; | |
41682 | *) | |
41683 | ;; | |
41684 | esac | |
1e9e8aba | 41685 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
41686 | outimpFile=${D}outFile |
41687 | fi | |
41688 | defFile="${D}{outFile}.def" | |
41689 | arcFile="${D}{outimpFile}.a" | |
41690 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
41691 | |
41692 | #create ${D}dllFile as something matching 8.3 restrictions, | |
41693 | if [ -z ${D}renameScript ] ; then | |
41694 | dllFile="${D}outFile" | |
41695 | else | |
41696 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
41697 | fi | |
473276a9 | 41698 | |
1e9e8aba DE |
41699 | if [ ${D}do_backup -ne 0 ] ; then |
41700 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
41701 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
41702 | fi | |
1e9e8aba | 41703 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
41704 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
41705 | fi | |
41706 | fi | |
41707 | ||
41708 | # Extract public symbols from all the object files. | |
41709 | tmpdefFile=${D}{defFile}_% | |
41710 | rm -f ${D}tmpdefFile | |
41711 | for file in ${D}inputFiles ; do | |
41712 | case ${D}file in | |
41713 | *!) | |
41714 | ;; | |
41715 | *) | |
41716 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
41717 | ;; | |
41718 | esac | |
41719 | done | |
41720 | ||
41721 | # Create the def file. | |
41722 | rm -f ${D}defFile | |
41723 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
41724 | dllFile="${D}{dllFile}.dll" |
41725 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 41726 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
41727 | fi |
41728 | echo "EXPORTS" >> ${D}defFile | |
41729 | ||
41730 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
41731 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
41732 | ||
41733 | # Checks if the export is ok or not. | |
41734 | for word in ${D}exclude_symbols; do | |
41735 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
41736 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
41737 | done | |
41738 | ||
41739 | ||
1e9e8aba DE |
41740 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
41741 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
41742 | sed ' |
41743 | N | |
41744 | : loop | |
1e9e8aba | 41745 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
41746 | t loop |
41747 | ' > ${D}{tmpdefFile}% | |
41748 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
41749 | else | |
41750 | rm -f ${D}{tmpdefFile}% | |
41751 | fi | |
41752 | cat ${D}tmpdefFile >> ${D}defFile | |
41753 | rm -f ${D}tmpdefFile | |
41754 | ||
41755 | # Do linking, create implib, and apply lxlite. | |
41756 | gccCmdl=""; | |
41757 | for file in ${D}inputFiles ; do | |
41758 | case ${D}file in | |
41759 | *!) | |
41760 | ;; | |
41761 | *) | |
41762 | gccCmdl="${D}gccCmdl ${D}file" | |
41763 | ;; | |
41764 | esac | |
41765 | done | |
41766 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
41767 | touch "${D}{outFile}.dll" | |
41768 | ||
41769 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 41770 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 41771 | add_flags=""; |
1e9e8aba | 41772 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
41773 | add_flags="-ynd" |
41774 | fi | |
41775 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
41776 | fi | |
41777 | doCommand "emxomf -s -l ${D}arcFile" | |
41778 | ||
41779 | # Successful exit. | |
41780 | CleanUp 1 | |
41781 | exit 0 | |
41782 | EOF | |
41783 | ||
41784 | chmod +x dllar.sh | |
a848cd7e SC |
41785 | ;; |
41786 | ||
1e9e8aba | 41787 | powerpc-apple-macos* | \ |
a848cd7e SC |
41788 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
41789 | *-*-sunos4* | \ | |
41790 | *-*-osf* | \ | |
41791 | *-*-dgux5* | \ | |
41792 | *-*-sysv5* ) | |
41793 | ;; | |
41794 | ||
41795 | *) | |
41796 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
41797 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
41798 | { (exit 1); exit 1; }; } | |
41799 | esac | |
41800 | ||
2057db16 VS |
41801 | if test "x$PIC_FLAG" != "x" ; then |
41802 | PIC_FLAG="$PIC_FLAG -DPIC" | |
41803 | fi | |
41804 | ||
a848cd7e SC |
41805 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
41806 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
41807 | fi | |
41808 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
41809 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
41810 | fi | |
41811 | ||
41812 | ||
41813 | ||
41814 | ||
41815 | ||
41816 | ||
41817 | ||
41818 | ||
41819 | USE_SOVERSION=0 | |
41820 | USE_SOVERLINUX=0 | |
41821 | USE_SOVERSOLARIS=0 | |
41822 | USE_SOSYMLINKS=0 | |
41823 | USE_MACVERSION=0 | |
41824 | SONAME_FLAG= | |
41825 | ||
41826 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 41827 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
41828 | SONAME_FLAG="-Wl,-soname," |
41829 | USE_SOVERSION=1 | |
41830 | USE_SOVERLINUX=1 | |
41831 | USE_SOSYMLINKS=1 | |
41832 | ;; | |
41833 | ||
a848cd7e SC |
41834 | *-*-solaris2* ) |
41835 | SONAME_FLAG="-h " | |
41836 | USE_SOVERSION=1 | |
41837 | USE_SOVERSOLARIS=1 | |
41838 | USE_SOSYMLINKS=1 | |
41839 | ;; | |
41840 | ||
41841 | *-*-darwin* ) | |
41842 | USE_MACVERSION=1 | |
41843 | USE_SOVERSION=1 | |
41844 | USE_SOSYMLINKS=1 | |
41845 | ;; | |
41846 | esac | |
41847 | ||
41848 | ||
41849 | ||
41850 | ||
41851 | ||
41852 | ||
41853 | ||
41854 | ||
41855 | ||
41856 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
41857 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
41858 | DEPS_TRACKING=0 | |
41859 | ||
41860 | if test "x$GCC" = "xyes"; then | |
41861 | DEPSMODE=gcc | |
41862 | DEPS_TRACKING=1 | |
41863 | case "${BAKEFILE_HOST}" in | |
41864 | powerpc-*-darwin* ) | |
41865 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
41866 | ;; | |
41867 | * ) | |
41868 | DEPSFLAG_GCC="-MMD" | |
41869 | ;; | |
41870 | esac | |
41871 | echo "$as_me:$LINENO: result: gcc" >&5 | |
41872 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 41873 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 41874 | DEPSMODE=mwcc |
b1d22ded | 41875 | DEPS_TRACKING=1 |
81f90336 | 41876 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
41877 | echo "$as_me:$LINENO: result: mwcc" >&5 |
41878 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
41879 | else |
41880 | echo "$as_me:$LINENO: result: none" >&5 | |
41881 | echo "${ECHO_T}none" >&6 | |
41882 | fi | |
41883 | ||
41884 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
41885 | |
41886 | D='$' | |
41887 | cat <<EOF >bk-deps | |
a848cd7e SC |
41888 | #!/bin/sh |
41889 | ||
41890 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41891 | # script. It is used to track C/C++ files dependencies in portable way. | |
41892 | # | |
41893 | # Permission is given to use this file in any way. | |
41894 | ||
473276a9 | 41895 | DEPSMODE=${DEPSMODE} |
a848cd7e | 41896 | DEPSDIR=.deps |
473276a9 | 41897 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 41898 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 41899 | |
473276a9 | 41900 | mkdir -p ${D}DEPSDIR |
a848cd7e | 41901 | |
473276a9 VS |
41902 | if test ${D}DEPSMODE = gcc ; then |
41903 | ${D}* ${D}{DEPSFLAG_GCC} | |
41904 | status=${D}? | |
41905 | if test ${D}{status} != 0 ; then | |
41906 | exit ${D}{status} | |
a848cd7e SC |
41907 | fi |
41908 | # move created file to the location we want it in: | |
473276a9 VS |
41909 | while test ${D}# -gt 0; do |
41910 | case "${D}1" in | |
a848cd7e SC |
41911 | -o ) |
41912 | shift | |
473276a9 | 41913 | objfile=${D}1 |
a848cd7e SC |
41914 | ;; |
41915 | -* ) | |
41916 | ;; | |
41917 | * ) | |
473276a9 | 41918 | srcfile=${D}1 |
a848cd7e SC |
41919 | ;; |
41920 | esac | |
41921 | shift | |
41922 | done | |
1e9e8aba DE |
41923 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
41924 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
41925 | if test -f ${D}depfile ; then |
41926 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41927 | rm -f ${D}depfile | |
a848cd7e | 41928 | else |
1e9e8aba | 41929 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
41930 | if test -f ${D}depfile ; then |
41931 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41932 | rm -f ${D}depfile | |
a848cd7e SC |
41933 | fi |
41934 | fi | |
41935 | exit 0 | |
81f90336 MW |
41936 | elif test ${D}DEPSMODE = mwcc ; then |
41937 | ${D}* | |
41938 | status=${D}? | |
41939 | if test ${D}{status} != 0 ; then | |
41940 | exit ${D}{status} | |
41941 | fi | |
41942 | # Run mwcc again with -MM and redirect into the dep file we want | |
41943 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
41944 | prevarg= | |
41945 | for arg in ${D}* ; do | |
41946 | if test "${D}prevarg" = "-o"; then | |
41947 | objfile=${D}arg | |
41948 | else | |
41949 | case "${D}arg" in | |
41950 | -* ) | |
41951 | ;; | |
41952 | * ) | |
41953 | srcfile=${D}arg | |
41954 | ;; | |
41955 | esac | |
41956 | fi | |
41957 | prevarg="${D}arg" | |
41958 | done | |
41959 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
41960 | exit 0 | |
a848cd7e | 41961 | else |
473276a9 VS |
41962 | ${D}* |
41963 | exit ${D}? | |
a848cd7e SC |
41964 | fi |
41965 | EOF | |
473276a9 | 41966 | |
a848cd7e SC |
41967 | chmod +x bk-deps |
41968 | fi | |
41969 | ||
41970 | ||
41971 | ||
41972 | ||
41973 | RESCOMP= | |
41974 | SETFILE= | |
41975 | ||
41976 | case ${BAKEFILE_HOST} in | |
41977 | *-*-cygwin* | *-*-mingw32* ) | |
41978 | if test "$build" != "$host" ; then | |
41979 | RESCOMP=$host_alias-windres | |
41980 | else | |
41981 | # Extract the first word of "windres", so it can be a program name with args. | |
41982 | set dummy windres; ac_word=$2 | |
41983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41985 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41987 | else | |
41988 | if test -n "$RESCOMP"; then | |
41989 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41990 | else | |
41991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41992 | for as_dir in $PATH | |
41993 | do | |
41994 | IFS=$as_save_IFS | |
41995 | test -z "$as_dir" && as_dir=. | |
41996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41998 | ac_cv_prog_RESCOMP="windres" | |
41999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42000 | break 2 | |
42001 | fi | |
42002 | done | |
42003 | done | |
42004 | ||
42005 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
42006 | fi | |
42007 | fi | |
42008 | RESCOMP=$ac_cv_prog_RESCOMP | |
42009 | if test -n "$RESCOMP"; then | |
42010 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42011 | echo "${ECHO_T}$RESCOMP" >&6 | |
42012 | else | |
42013 | echo "$as_me:$LINENO: result: no" >&5 | |
42014 | echo "${ECHO_T}no" >&6 | |
42015 | fi | |
42016 | ||
42017 | fi | |
42018 | ;; | |
42019 | ||
1e9e8aba | 42020 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
42021 | # Extract the first word of "Rez", so it can be a program name with args. |
42022 | set dummy Rez; ac_word=$2 | |
42023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42025 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
42026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42027 | else | |
42028 | if test -n "$RESCOMP"; then | |
42029 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
42030 | else | |
42031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42032 | for as_dir in $PATH | |
42033 | do | |
42034 | IFS=$as_save_IFS | |
42035 | test -z "$as_dir" && as_dir=. | |
42036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42038 | ac_cv_prog_RESCOMP="Rez" | |
42039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42040 | break 2 | |
42041 | fi | |
42042 | done | |
42043 | done | |
42044 | ||
42045 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
42046 | fi | |
42047 | fi | |
42048 | RESCOMP=$ac_cv_prog_RESCOMP | |
42049 | if test -n "$RESCOMP"; then | |
42050 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
42051 | echo "${ECHO_T}$RESCOMP" >&6 | |
42052 | else | |
42053 | echo "$as_me:$LINENO: result: no" >&5 | |
42054 | echo "${ECHO_T}no" >&6 | |
42055 | fi | |
42056 | ||
42057 | # Extract the first word of "SetFile", so it can be a program name with args. | |
42058 | set dummy SetFile; ac_word=$2 | |
42059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42061 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
42062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42063 | else | |
42064 | if test -n "$SETFILE"; then | |
42065 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
42066 | else | |
42067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42068 | for as_dir in $PATH | |
42069 | do | |
42070 | IFS=$as_save_IFS | |
42071 | test -z "$as_dir" && as_dir=. | |
42072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42074 | ac_cv_prog_SETFILE="SetFile" | |
42075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42076 | break 2 | |
42077 | fi | |
42078 | done | |
42079 | done | |
42080 | ||
42081 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
42082 | fi | |
42083 | fi | |
42084 | SETFILE=$ac_cv_prog_SETFILE | |
42085 | if test -n "$SETFILE"; then | |
42086 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
42087 | echo "${ECHO_T}$SETFILE" >&6 | |
42088 | else | |
42089 | echo "$as_me:$LINENO: result: no" >&5 | |
42090 | echo "${ECHO_T}no" >&6 | |
42091 | fi | |
42092 | ||
42093 | ;; | |
42094 | esac | |
42095 | ||
42096 | ||
42097 | ||
42098 | ||
42099 | ||
94acd38e | 42100 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.7" |
a848cd7e | 42101 | |
dcc1b6ad | 42102 | |
94acd38e | 42103 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7" |
a848cd7e | 42104 | |
646b6ec1 | 42105 | |
74b84332 | 42106 | |
a848cd7e SC |
42107 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
42108 | if test "${enable_precomp_headers+set}" = set; then | |
42109 | enableval="$enable_precomp_headers" | |
42110 | bk_use_pch="$enableval" | |
42111 | fi; | |
42112 | ||
42113 | GCC_PCH=0 | |
42114 | ||
42115 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
42116 | if test "x$GCC" = "xyes"; then | |
42117 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
42118 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
42119 | cat >conftest.$ac_ext <<_ACEOF | |
42120 | /* confdefs.h. */ | |
42121 | _ACEOF | |
42122 | cat confdefs.h >>conftest.$ac_ext | |
42123 | cat >>conftest.$ac_ext <<_ACEOF | |
42124 | /* end confdefs.h. */ | |
42125 | ||
42126 | int | |
42127 | main () | |
42128 | { | |
42129 | ||
42130 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
42131 | #error "no pch support" | |
42132 | #endif | |
42133 | #if (__GNUC__ < 3) | |
42134 | #error "no pch support" | |
42135 | #endif | |
42136 | #if (__GNUC__ == 3) && \ | |
42137 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
42138 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
42139 | #error "no pch support" | |
42140 | #endif | |
42141 | ||
42142 | ; | |
42143 | return 0; | |
42144 | } | |
42145 | _ACEOF | |
42146 | rm -f conftest.$ac_objext | |
42147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42148 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42149 | ac_status=$? |
ac1cb8d3 VS |
42150 | grep -v '^ *+' conftest.er1 >conftest.err |
42151 | rm -f conftest.er1 | |
42152 | cat conftest.err >&5 | |
a848cd7e SC |
42153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42154 | (exit $ac_status); } && | |
07158944 | 42155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42157 | (eval $ac_try) 2>&5 | |
42158 | ac_status=$? | |
42159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42160 | (exit $ac_status); }; } && | |
42161 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42163 | (eval $ac_try) 2>&5 | |
42164 | ac_status=$? | |
42165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42166 | (exit $ac_status); }; }; then | |
42167 | ||
42168 | echo "$as_me:$LINENO: result: yes" >&5 | |
42169 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
42170 | GCC_PCH=1 |
42171 | ||
42172 | else | |
42173 | echo "$as_me: failed program was:" >&5 | |
42174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42175 | ||
42176 | ||
42177 | echo "$as_me:$LINENO: result: no" >&5 | |
42178 | echo "${ECHO_T}no" >&6 | |
42179 | ||
42180 | fi | |
ac1cb8d3 | 42181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42182 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
42183 | |
42184 | D='$' | |
42185 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
42186 | #!/bin/sh |
42187 | ||
42188 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
42189 | # script. It is used to generated precompiled headers. | |
42190 | # | |
42191 | # Permission is given to use this file in any way. | |
42192 | ||
1e9e8aba DE |
42193 | outfile="${D}{1}" |
42194 | header="${D}{2}" | |
a848cd7e SC |
42195 | shift |
42196 | shift | |
42197 | ||
42198 | compiler= | |
42199 | headerfile= | |
1e9e8aba DE |
42200 | while test ${D}{#} -gt 0; do |
42201 | case "${D}{1}" in | |
a848cd7e | 42202 | -I* ) |
1e9e8aba DE |
42203 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
42204 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
42205 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
42206 | fi |
42207 | ;; | |
42208 | esac | |
1e9e8aba | 42209 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
42210 | shift |
42211 | done | |
42212 | ||
1e9e8aba DE |
42213 | if test "x${D}{headerfile}" = "x" ; then |
42214 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 42215 | else |
1e9e8aba DE |
42216 | if test -f ${D}{outfile} ; then |
42217 | rm -f ${D}{outfile} | |
a848cd7e | 42218 | else |
1e9e8aba | 42219 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 42220 | fi |
1e9e8aba | 42221 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
42222 | mkdir -p .deps |
42223 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
42224 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
42225 | exit ${D}{?} | |
a848cd7e SC |
42226 | fi |
42227 | EOF | |
1e9e8aba | 42228 | |
a848cd7e SC |
42229 | chmod +x bk-make-pch |
42230 | fi | |
42231 | fi | |
42232 | fi | |
42233 | ||
42234 | ||
42235 | ||
a848cd7e SC |
42236 | COND_BUILD_DEBUG="#" |
42237 | if test "x$BUILD" = "xdebug" ; then | |
42238 | COND_BUILD_DEBUG="" | |
42239 | fi | |
42240 | ||
42241 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
42242 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
42243 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
42244 | fi | |
42245 | ||
42246 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
42247 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42248 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
42249 | fi | |
42250 | ||
42251 | COND_BUILD_DEBUG_UNICODE_0="#" | |
42252 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
42253 | COND_BUILD_DEBUG_UNICODE_0="" | |
42254 | fi | |
42255 | ||
42256 | COND_BUILD_DEBUG_UNICODE_1="#" | |
42257 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
42258 | COND_BUILD_DEBUG_UNICODE_1="" | |
42259 | fi | |
42260 | ||
42261 | COND_BUILD_RELEASE="#" | |
42262 | if test "x$BUILD" = "xrelease" ; then | |
42263 | COND_BUILD_RELEASE="" | |
42264 | fi | |
42265 | ||
42266 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
42267 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
42268 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
42269 | fi | |
42270 | ||
42271 | COND_BUILD_RELEASE_UNICODE_0="#" | |
42272 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
42273 | COND_BUILD_RELEASE_UNICODE_0="" | |
42274 | fi | |
42275 | ||
42276 | COND_BUILD_RELEASE_UNICODE_1="#" | |
42277 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
42278 | COND_BUILD_RELEASE_UNICODE_1="" | |
42279 | fi | |
42280 | ||
42281 | COND_DEBUG_FLAG_1="#" | |
42282 | if test "x$DEBUG_FLAG" = "x1" ; then | |
42283 | COND_DEBUG_FLAG_1="" | |
42284 | fi | |
42285 | ||
42286 | COND_DEBUG_INFO_0="#" | |
42287 | if test "x$DEBUG_INFO" = "x0" ; then | |
42288 | COND_DEBUG_INFO_0="" | |
42289 | fi | |
42290 | ||
42291 | COND_DEBUG_INFO_1="#" | |
42292 | if test "x$DEBUG_INFO" = "x1" ; then | |
42293 | COND_DEBUG_INFO_1="" | |
42294 | fi | |
42295 | ||
42296 | COND_DEPS_TRACKING_0="#" | |
42297 | if test "x$DEPS_TRACKING" = "x0" ; then | |
42298 | COND_DEPS_TRACKING_0="" | |
42299 | fi | |
42300 | ||
42301 | COND_DEPS_TRACKING_1="#" | |
42302 | if test "x$DEPS_TRACKING" = "x1" ; then | |
42303 | COND_DEPS_TRACKING_1="" | |
42304 | fi | |
42305 | ||
42306 | COND_GCC_PCH_1="#" | |
42307 | if test "x$GCC_PCH" = "x1" ; then | |
42308 | COND_GCC_PCH_1="" | |
42309 | fi | |
42310 | ||
42311 | COND_MONOLITHIC_0="#" | |
42312 | if test "x$MONOLITHIC" = "x0" ; then | |
42313 | COND_MONOLITHIC_0="" | |
42314 | fi | |
42315 | ||
42316 | COND_MONOLITHIC_0_SHARED_0="#" | |
42317 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
42318 | COND_MONOLITHIC_0_SHARED_0="" | |
42319 | fi | |
42320 | ||
42321 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
42322 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
42323 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
42324 | fi | |
42325 | ||
90970d69 DE |
42326 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
42327 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42328 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
42329 | fi | |
42330 | ||
a848cd7e SC |
42331 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
42332 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42333 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
42334 | fi | |
42335 | ||
a848cd7e SC |
42336 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
42337 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42338 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
42339 | fi | |
42340 | ||
ceec2216 RL |
42341 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
42342 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
42343 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
42344 | fi | |
42345 | ||
a848cd7e SC |
42346 | COND_MONOLITHIC_0_SHARED_1="#" |
42347 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
42348 | COND_MONOLITHIC_0_SHARED_1="" | |
42349 | fi | |
42350 | ||
42351 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
42352 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42353 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
42354 | fi | |
42355 | ||
90970d69 DE |
42356 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
42357 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
42358 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
42359 | fi | |
42360 | ||
a848cd7e SC |
42361 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
42362 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42363 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
42364 | fi | |
42365 | ||
a848cd7e SC |
42366 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
42367 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
42368 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
42369 | fi | |
42370 | ||
ceec2216 RL |
42371 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
42372 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
42373 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
42374 | fi | |
42375 | ||
a848cd7e SC |
42376 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
42377 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
42378 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
42379 | fi | |
42380 | ||
42381 | COND_MONOLITHIC_1="#" | |
42382 | if test "x$MONOLITHIC" = "x1" ; then | |
42383 | COND_MONOLITHIC_1="" | |
42384 | fi | |
42385 | ||
42386 | COND_MONOLITHIC_1_SHARED_0="#" | |
42387 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
42388 | COND_MONOLITHIC_1_SHARED_0="" | |
42389 | fi | |
42390 | ||
42391 | COND_MONOLITHIC_1_SHARED_1="#" | |
42392 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
42393 | COND_MONOLITHIC_1_SHARED_1="" | |
42394 | fi | |
42395 | ||
42396 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
42397 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42398 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
42399 | fi | |
42400 | ||
42401 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
42402 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42403 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
42404 | fi | |
42405 | ||
42406 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
42407 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
42408 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
42409 | fi | |
42410 | ||
42411 | COND_PLATFORM_MACOSX_1="#" | |
42412 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
42413 | COND_PLATFORM_MACOSX_1="" | |
42414 | fi | |
42415 | ||
a30f955f VS |
42416 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
42417 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
42418 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
42419 | fi | |
42420 | ||
a848cd7e SC |
42421 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
42422 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
42423 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
42424 | fi | |
42425 | ||
42426 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
42427 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
42428 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
42429 | fi | |
42430 | ||
42431 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
42432 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
42433 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
42434 | fi | |
42435 | ||
fc480dc1 DE |
42436 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
42437 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42438 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
42439 | fi | |
42440 | ||
1e9e8aba DE |
42441 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
42442 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42443 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42444 | fi | |
42445 | ||
ebee3cd0 VS |
42446 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
42447 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
42448 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
42449 | fi | |
42450 | ||
42451 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
42452 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
42453 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
42454 | fi | |
42455 | ||
a848cd7e SC |
42456 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
42457 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42458 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
42459 | fi | |
42460 | ||
42461 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
42462 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
42463 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
42464 | fi | |
42465 | ||
b48a2016 DE |
42466 | COND_PLATFORM_MACOS_1="#" |
42467 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
42468 | COND_PLATFORM_MACOS_1="" | |
42469 | fi | |
42470 | ||
a848cd7e SC |
42471 | COND_PLATFORM_MAC_1="#" |
42472 | if test "x$PLATFORM_MAC" = "x1" ; then | |
42473 | COND_PLATFORM_MAC_1="" | |
42474 | fi | |
42475 | ||
42476 | COND_PLATFORM_OS2_1="#" | |
42477 | if test "x$PLATFORM_OS2" = "x1" ; then | |
42478 | COND_PLATFORM_OS2_1="" | |
42479 | fi | |
42480 | ||
42481 | COND_PLATFORM_UNIX_0="#" | |
42482 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
42483 | COND_PLATFORM_UNIX_0="" | |
42484 | fi | |
42485 | ||
42486 | COND_PLATFORM_UNIX_1="#" | |
42487 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
42488 | COND_PLATFORM_UNIX_1="" | |
42489 | fi | |
42490 | ||
42491 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
42492 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42493 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
42494 | fi | |
42495 | ||
42496 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
42497 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
42498 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
42499 | fi | |
42500 | ||
42501 | COND_PLATFORM_WIN32_0="#" | |
42502 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
42503 | COND_PLATFORM_WIN32_0="" | |
42504 | fi | |
42505 | ||
42506 | COND_PLATFORM_WIN32_1="#" | |
42507 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
42508 | COND_PLATFORM_WIN32_1="" | |
42509 | fi | |
42510 | ||
42511 | COND_SHARED_0="#" | |
42512 | if test "x$SHARED" = "x0" ; then | |
42513 | COND_SHARED_0="" | |
42514 | fi | |
42515 | ||
ceec2216 RL |
42516 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
42517 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
42518 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
42519 | fi | |
42520 | ||
42521 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
42522 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
42523 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
42524 | fi | |
42525 | ||
42526 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
42527 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
42528 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
42529 | fi | |
42530 | ||
a848cd7e SC |
42531 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
42532 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
42533 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
42534 | fi | |
42535 | ||
42536 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
42537 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42538 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
42539 | fi | |
42540 | ||
42541 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
42542 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42543 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
42544 | fi | |
42545 | ||
42546 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
42547 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42548 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
42549 | fi | |
42550 | ||
42551 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
42552 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42553 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
42554 | fi | |
42555 | ||
42556 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
42557 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42558 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
42559 | fi | |
42560 | ||
42561 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
42562 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42563 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
42564 | fi | |
42565 | ||
42566 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
42567 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42568 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
42569 | fi | |
42570 | ||
42571 | COND_SHARED_1="#" | |
42572 | if test "x$SHARED" = "x1" ; then | |
42573 | COND_SHARED_1="" | |
42574 | fi | |
42575 | ||
42576 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
42577 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
42578 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
42579 | fi | |
42580 | ||
a30f955f VS |
42581 | COND_TOOLKIT_="#" |
42582 | if test "x$TOOLKIT" = "x" ; then | |
42583 | COND_TOOLKIT_="" | |
42584 | fi | |
42585 | ||
a848cd7e SC |
42586 | COND_TOOLKIT_COCOA="#" |
42587 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
42588 | COND_TOOLKIT_COCOA="" | |
42589 | fi | |
42590 | ||
a49baeab DE |
42591 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
42592 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
42593 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
42594 | fi | |
42595 | ||
a848cd7e SC |
42596 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
42597 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42598 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
42599 | fi | |
42600 | ||
42601 | COND_TOOLKIT_GTK="#" | |
42602 | if test "x$TOOLKIT" = "xGTK" ; then | |
42603 | COND_TOOLKIT_GTK="" | |
42604 | fi | |
42605 | ||
42606 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
42607 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
42608 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
42609 | fi | |
42610 | ||
42611 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
42612 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42613 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
42614 | fi | |
42615 | ||
42616 | COND_TOOLKIT_MAC="#" | |
42617 | if test "x$TOOLKIT" = "xMAC" ; then | |
42618 | COND_TOOLKIT_MAC="" | |
42619 | fi | |
42620 | ||
42621 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
42622 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42623 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
42624 | fi | |
42625 | ||
42626 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
42627 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42628 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42629 | fi | |
42630 | ||
42631 | COND_TOOLKIT_MGL="#" | |
42632 | if test "x$TOOLKIT" = "xMGL" ; then | |
42633 | COND_TOOLKIT_MGL="" | |
42634 | fi | |
42635 | ||
42636 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
42637 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
42638 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
42639 | fi | |
42640 | ||
42641 | COND_TOOLKIT_MOTIF="#" | |
42642 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
42643 | COND_TOOLKIT_MOTIF="" | |
42644 | fi | |
42645 | ||
42646 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
42647 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
42648 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
42649 | fi | |
42650 | ||
42651 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
42652 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42653 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
42654 | fi | |
42655 | ||
42656 | COND_TOOLKIT_MSW="#" | |
42657 | if test "x$TOOLKIT" = "xMSW" ; then | |
42658 | COND_TOOLKIT_MSW="" | |
42659 | fi | |
42660 | ||
42661 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
42662 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
42663 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
42664 | fi | |
42665 | ||
42666 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
42667 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42668 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
42669 | fi | |
42670 | ||
42671 | COND_TOOLKIT_PM="#" | |
42672 | if test "x$TOOLKIT" = "xPM" ; then | |
42673 | COND_TOOLKIT_PM="" | |
42674 | fi | |
42675 | ||
42676 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
42677 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
42678 | COND_TOOLKIT_PM_USE_GUI_1="" | |
42679 | fi | |
42680 | ||
42681 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
42682 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42683 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
42684 | fi | |
42685 | ||
3fd9c298 DE |
42686 | COND_TOOLKIT_WINCE="#" |
42687 | if test "x$TOOLKIT" = "xWINCE" ; then | |
42688 | COND_TOOLKIT_WINCE="" | |
42689 | fi | |
42690 | ||
42691 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
42692 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
42693 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
42694 | fi | |
42695 | ||
42696 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
42697 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42698 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
42699 | fi | |
42700 | ||
a848cd7e SC |
42701 | COND_TOOLKIT_X11="#" |
42702 | if test "x$TOOLKIT" = "xX11" ; then | |
42703 | COND_TOOLKIT_X11="" | |
42704 | fi | |
42705 | ||
42706 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
42707 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
42708 | COND_TOOLKIT_X11_USE_GUI_1="" | |
42709 | fi | |
42710 | ||
42711 | COND_UNICODE_1="#" | |
42712 | if test "x$UNICODE" = "x1" ; then | |
42713 | COND_UNICODE_1="" | |
42714 | fi | |
42715 | ||
42716 | COND_USE_EXCEPTIONS_0="#" | |
42717 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
42718 | COND_USE_EXCEPTIONS_0="" | |
42719 | fi | |
42720 | ||
42721 | COND_USE_EXCEPTIONS_1="#" | |
42722 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
42723 | COND_USE_EXCEPTIONS_1="" | |
42724 | fi | |
42725 | ||
42726 | COND_USE_GUI_0="#" | |
42727 | if test "x$USE_GUI" = "x0" ; then | |
42728 | COND_USE_GUI_0="" | |
42729 | fi | |
42730 | ||
42731 | COND_USE_GUI_1="#" | |
42732 | if test "x$USE_GUI" = "x1" ; then | |
42733 | COND_USE_GUI_1="" | |
42734 | fi | |
42735 | ||
42736 | COND_USE_GUI_1_WXUNIV_0="#" | |
42737 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42738 | COND_USE_GUI_1_WXUNIV_0="" | |
42739 | fi | |
42740 | ||
42741 | COND_USE_GUI_1_WXUNIV_1="#" | |
42742 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
42743 | COND_USE_GUI_1_WXUNIV_1="" | |
42744 | fi | |
42745 | ||
42746 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
42747 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42748 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
42749 | fi | |
42750 | ||
42751 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
42752 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42753 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
42754 | fi | |
42755 | ||
42756 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
42757 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42758 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
42759 | fi | |
42760 | ||
ceec2216 RL |
42761 | COND_USE_ODBC_1="#" |
42762 | if test "x$USE_ODBC" = "x1" ; then | |
42763 | COND_USE_ODBC_1="" | |
42764 | fi | |
42765 | ||
ffa0583f RL |
42766 | COND_USE_OPENGL_1="#" |
42767 | if test "x$USE_OPENGL" = "x1" ; then | |
42768 | COND_USE_OPENGL_1="" | |
42769 | fi | |
42770 | ||
a848cd7e SC |
42771 | COND_USE_PLUGINS_0="#" |
42772 | if test "x$USE_PLUGINS" = "x0" ; then | |
42773 | COND_USE_PLUGINS_0="" | |
42774 | fi | |
42775 | ||
0b78747f MW |
42776 | COND_USE_RTTI_0="#" |
42777 | if test "x$USE_RTTI" = "x0" ; then | |
42778 | COND_USE_RTTI_0="" | |
42779 | fi | |
42780 | ||
42781 | COND_USE_RTTI_1="#" | |
42782 | if test "x$USE_RTTI" = "x1" ; then | |
42783 | COND_USE_RTTI_1="" | |
42784 | fi | |
42785 | ||
a848cd7e SC |
42786 | COND_USE_SOSYMLINKS_1="#" |
42787 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
42788 | COND_USE_SOSYMLINKS_1="" | |
42789 | fi | |
42790 | ||
42791 | COND_USE_SOVERLINUX_1="#" | |
42792 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
42793 | COND_USE_SOVERLINUX_1="" | |
42794 | fi | |
42795 | ||
42796 | COND_USE_SOVERSION_0="#" | |
42797 | if test "x$USE_SOVERSION" = "x0" ; then | |
42798 | COND_USE_SOVERSION_0="" | |
42799 | fi | |
42800 | ||
42801 | COND_USE_SOVERSOLARIS_1="#" | |
42802 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
42803 | COND_USE_SOVERSOLARIS_1="" | |
42804 | fi | |
42805 | ||
0b78747f MW |
42806 | COND_USE_THREADS_0="#" |
42807 | if test "x$USE_THREADS" = "x0" ; then | |
42808 | COND_USE_THREADS_0="" | |
42809 | fi | |
42810 | ||
42811 | COND_USE_THREADS_1="#" | |
42812 | if test "x$USE_THREADS" = "x1" ; then | |
42813 | COND_USE_THREADS_1="" | |
42814 | fi | |
42815 | ||
a13a7f89 RL |
42816 | COND_USE_XRC_1="#" |
42817 | if test "x$USE_XRC" = "x1" ; then | |
42818 | COND_USE_XRC_1="" | |
42819 | fi | |
42820 | ||
a848cd7e SC |
42821 | COND_WITH_PLUGIN_SDL_1="#" |
42822 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
42823 | COND_WITH_PLUGIN_SDL_1="" | |
42824 | fi | |
42825 | ||
1e6eb025 VZ |
42826 | COND_WXUNIV_0="#" |
42827 | if test "x$WXUNIV" = "x0" ; then | |
42828 | COND_WXUNIV_0="" | |
42829 | fi | |
42830 | ||
a848cd7e SC |
42831 | COND_WXUNIV_1="#" |
42832 | if test "x$WXUNIV" = "x1" ; then | |
42833 | COND_WXUNIV_1="" | |
42834 | fi | |
42835 | ||
42836 | COND_WXUSE_EXPAT_BUILTIN="#" | |
42837 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42838 | COND_WXUSE_EXPAT_BUILTIN="" | |
42839 | fi | |
42840 | ||
42841 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
42842 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42843 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
42844 | fi | |
42845 | ||
42846 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
42847 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42848 | COND_WXUSE_LIBPNG_BUILTIN="" | |
42849 | fi | |
42850 | ||
42851 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
42852 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42853 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
42854 | fi | |
42855 | ||
42856 | COND_WXUSE_ODBC_BUILTIN="#" | |
42857 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42858 | COND_WXUSE_ODBC_BUILTIN="" | |
42859 | fi | |
42860 | ||
42861 | COND_WXUSE_REGEX_BUILTIN="#" | |
42862 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42863 | COND_WXUSE_REGEX_BUILTIN="" | |
42864 | fi | |
42865 | ||
42866 | COND_WXUSE_ZLIB_BUILTIN="#" | |
42867 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42868 | COND_WXUSE_ZLIB_BUILTIN="" | |
42869 | fi | |
42870 | ||
42871 | ||
42872 | ||
2057db16 VS |
42873 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
42874 | { { 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 | |
42875 | 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;} | |
42876 | { (exit 1); exit 1; }; } | |
42877 | fi | |
42878 | ||
a848cd7e | 42879 | |
ceec2216 RL |
42880 | if test "$wxUSE_SHARED" = "yes"; then |
42881 | ||
42882 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
42883 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
42884 | ||
5b674b9d DE |
42885 | case "${host}" in |
42886 | *-pc-os2_emx | *-pc-os2-emx ) | |
42887 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42888 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42889 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
42890 | cp -p ${srcdir}/src/os2/dllar.sh . | |
42891 | ;; | |
42892 | esac | |
ceec2216 RL |
42893 | else |
42894 | ||
42895 | EXE_LINKER="$CXX -o" | |
42896 | ||
42897 | fi | |
a848cd7e | 42898 | |
74b84332 | 42899 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
42900 | PCH_FLAGS="" |
42901 | if test $GCC_PCH = 1 ; then | |
42902 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42903 | PCH_FLAGS="-DWX_PRECOMP" | |
42904 | else | |
a848cd7e SC |
42905 | case "${host}" in |
42906 | powerpc-*-darwin* ) | |
74b84332 | 42907 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 42908 | ;; |
bea8e651 | 42909 | *-*-mingw32* ) |
1f344abf VS |
42910 | if test "$wxUSE_STL" = "yes" -o \ |
42911 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
42912 | "$wxUSE_NO_RTTI" != "yes"; then | |
42913 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
42914 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
42915 | cat >conftest.$ac_ext <<_ACEOF |
42916 | /* confdefs.h. */ | |
42917 | _ACEOF | |
42918 | cat confdefs.h >>conftest.$ac_ext | |
42919 | cat >>conftest.$ac_ext <<_ACEOF | |
42920 | /* end confdefs.h. */ | |
42921 | ||
3314e67b RR |
42922 | int |
42923 | main () | |
42924 | { | |
42925 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
42926 | #error "Not GCC 3.2 or greater" | |
42927 | #endif | |
42928 | ||
42929 | ; | |
42930 | return 0; | |
42931 | } | |
42932 | _ACEOF | |
42933 | rm -f conftest.$ac_objext | |
42934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42935 | (eval $ac_compile) 2>conftest.er1 | |
42936 | ac_status=$? | |
42937 | grep -v '^ *+' conftest.er1 >conftest.err | |
42938 | rm -f conftest.er1 | |
42939 | cat conftest.err >&5 | |
42940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42941 | (exit $ac_status); } && | |
07158944 | 42942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3314e67b RR |
42943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42944 | (eval $ac_try) 2>&5 | |
42945 | ac_status=$? | |
42946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42947 | (exit $ac_status); }; } && | |
42948 | { ac_try='test -s conftest.$ac_objext' | |
42949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42950 | (eval $ac_try) 2>&5 | |
42951 | ac_status=$? | |
42952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42953 | (exit $ac_status); }; }; then | |
42954 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42955 | echo "$as_me:$LINENO: result: yes" >&5 | |
42956 | echo "${ECHO_T}yes" >&6 | |
42957 | else | |
42958 | echo "$as_me: failed program was:" >&5 | |
42959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42960 | ||
42961 | echo "$as_me:$LINENO: result: no" >&5 | |
42962 | echo "${ECHO_T}no" >&6 | |
42963 | fi | |
42964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42965 | fi | |
42966 | ;; | |
42967 | *-pc-os2_emx | *-pc-os2-emx ) | |
42968 | if test "$wxUSE_STL" = "yes"; then | |
42969 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
42970 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
42971 | cat >conftest.$ac_ext <<_ACEOF | |
42972 | /* confdefs.h. */ | |
42973 | _ACEOF | |
42974 | cat confdefs.h >>conftest.$ac_ext | |
42975 | cat >>conftest.$ac_ext <<_ACEOF | |
42976 | /* end confdefs.h. */ | |
42977 | ||
bea8e651 MB |
42978 | int |
42979 | main () | |
42980 | { | |
1f344abf | 42981 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
42982 | #error "Not GCC 3.2 or greater" |
42983 | #endif | |
42984 | ||
42985 | ; | |
42986 | return 0; | |
42987 | } | |
42988 | _ACEOF | |
42989 | rm -f conftest.$ac_objext | |
42990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42991 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 42992 | ac_status=$? |
ac1cb8d3 VS |
42993 | grep -v '^ *+' conftest.er1 >conftest.err |
42994 | rm -f conftest.er1 | |
42995 | cat conftest.err >&5 | |
bea8e651 MB |
42996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42997 | (exit $ac_status); } && | |
07158944 | 42998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43000 | (eval $ac_try) 2>&5 | |
43001 | ac_status=$? | |
43002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43003 | (exit $ac_status); }; } && | |
43004 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
43005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43006 | (eval $ac_try) 2>&5 | |
43007 | ac_status=$? | |
43008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43009 | (exit $ac_status); }; }; then | |
74b84332 | 43010 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
43011 | echo "$as_me:$LINENO: result: yes" >&5 |
43012 | echo "${ECHO_T}yes" >&6 | |
43013 | else | |
43014 | echo "$as_me: failed program was:" >&5 | |
43015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43016 | ||
43017 | echo "$as_me:$LINENO: result: no" >&5 | |
43018 | echo "${ECHO_T}no" >&6 | |
43019 | fi | |
ac1cb8d3 | 43020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
43021 | fi |
43022 | ;; | |
a848cd7e SC |
43023 | esac |
43024 | fi | |
d2083416 | 43025 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
43026 | |
43027 | ||
43028 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
43029 | ||
43030 | ||
43031 | ||
43032 | ||
43033 | ||
43034 | ||
43035 | ||
43036 | ||
43037 | ||
43038 | ||
43039 | ||
43040 | ||
43041 | ||
43042 | ||
43043 | ||
43044 | ||
43045 | ||
43046 | ||
43047 | ||
43048 | ||
43049 | ||
43050 | ||
43051 | ||
43052 | ||
43053 | ||
43054 | ||
43055 | ||
43056 | ||
43057 | ||
43058 | ||
43059 | ||
43060 | ||
43061 | ||
43062 | ||
43063 | ||
43064 | ||
43065 | ||
43066 | ||
43067 | ||
43068 | ||
43069 | ||
43070 | ||
a848cd7e SC |
43071 | |
43072 | ||
43073 | ||
43074 | ||
43075 | ||
43076 | ||
43077 | ||
43078 | ||
43079 | ||
43080 | ||
43081 | ||
43082 | ||
43083 | ||
43084 | ||
43085 | ||
43086 | ||
43087 | ||
43088 | ||
74b84332 | 43089 | |
a848cd7e SC |
43090 | |
43091 | ||
43092 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43093 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43094 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43095 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43097 | else | |
43098 | cat >conftest.make <<\_ACEOF | |
43099 | all: | |
43100 | @echo 'ac_maketemp="$(MAKE)"' | |
43101 | _ACEOF | |
43102 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43103 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43104 | if test -n "$ac_maketemp"; then | |
43105 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43106 | else | |
43107 | eval ac_cv_prog_make_${ac_make}_set=no | |
43108 | fi | |
43109 | rm -f conftest.make | |
43110 | fi | |
43111 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43112 | echo "$as_me:$LINENO: result: yes" >&5 | |
43113 | echo "${ECHO_T}yes" >&6 | |
43114 | SET_MAKE= | |
43115 | else | |
43116 | echo "$as_me:$LINENO: result: no" >&5 | |
43117 | echo "${ECHO_T}no" >&6 | |
43118 | SET_MAKE="MAKE=${MAKE-make}" | |
43119 | fi | |
43120 | ||
43121 | ||
a848cd7e | 43122 | |
ceec2216 RL |
43123 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
43124 | ||
a848cd7e | 43125 | |
ceec2216 | 43126 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 43127 | |
a848cd7e | 43128 | |
ceec2216 | 43129 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 43130 | |
ceec2216 RL |
43131 | |
43132 | ac_config_files="$ac_config_files version-script Makefile" | |
43133 | ||
43134 | ||
43135 | ac_config_commands="$ac_config_commands wx-config | |
43136 | " | |
a848cd7e SC |
43137 | |
43138 | ||
9103d280 RL |
43139 | |
43140 | ||
a848cd7e SC |
43141 | if test "$wxUSE_GUI" = "yes"; then |
43142 | SUBDIRS="samples demos utils contrib" | |
43143 | else SUBDIRS="samples utils" | |
43144 | fi | |
43145 | ||
43146 | ||
43147 | ||
43148 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
43149 | if test "${with_cppunit_prefix+set}" = set; then | |
43150 | withval="$with_cppunit_prefix" | |
43151 | cppunit_config_prefix="$withval" | |
43152 | else | |
43153 | cppunit_config_prefix="" | |
43154 | fi; | |
43155 | ||
43156 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
43157 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
43158 | withval="$with_cppunit_exec_prefix" | |
43159 | cppunit_config_exec_prefix="$withval" | |
43160 | else | |
43161 | cppunit_config_exec_prefix="" | |
43162 | fi; | |
43163 | ||
43164 | if test x$cppunit_config_exec_prefix != x ; then | |
43165 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
43166 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43167 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
43168 | fi | |
43169 | fi | |
43170 | if test x$cppunit_config_prefix != x ; then | |
43171 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
43172 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
43173 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
43174 | fi | |
43175 | fi | |
43176 | ||
43177 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
43178 | set dummy cppunit-config; ac_word=$2 | |
43179 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43181 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
43182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43183 | else | |
43184 | case $CPPUNIT_CONFIG in | |
43185 | [\\/]* | ?:[\\/]*) | |
43186 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
43187 | ;; | |
43188 | *) | |
43189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43190 | for as_dir in $PATH | |
43191 | do | |
43192 | IFS=$as_save_IFS | |
43193 | test -z "$as_dir" && as_dir=. | |
43194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43196 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
43197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43198 | break 2 | |
43199 | fi | |
43200 | done | |
43201 | done | |
43202 | ||
43203 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
43204 | ;; | |
43205 | esac | |
43206 | fi | |
43207 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
43208 | ||
43209 | if test -n "$CPPUNIT_CONFIG"; then | |
43210 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
43211 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
43212 | else | |
43213 | echo "$as_me:$LINENO: result: no" >&5 | |
43214 | echo "${ECHO_T}no" >&6 | |
43215 | fi | |
43216 | ||
43217 | cppunit_version_min=1.8.0 | |
43218 | ||
43219 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
43220 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
43221 | no_cppunit="" | |
43222 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
43223 | no_cppunit=yes | |
43224 | else | |
43225 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
43226 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
43227 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
43228 | ||
43229 | cppunit_major_version=`echo $cppunit_version | \ | |
43230 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43231 | cppunit_minor_version=`echo $cppunit_version | \ | |
43232 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43233 | cppunit_micro_version=`echo $cppunit_version | \ | |
43234 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43235 | ||
43236 | cppunit_major_min=`echo $cppunit_version_min | \ | |
43237 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43238 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
43239 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43240 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
43241 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43242 | ||
43243 | cppunit_version_proper=`expr \ | |
43244 | $cppunit_major_version \> $cppunit_major_min \| \ | |
43245 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43246 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
43247 | $cppunit_major_version \= $cppunit_major_min \& \ | |
43248 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
43249 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
43250 | ||
43251 | if test "$cppunit_version_proper" = "1" ; then | |
43252 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
43253 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
43254 | else | |
43255 | echo "$as_me:$LINENO: result: no" >&5 | |
43256 | echo "${ECHO_T}no" >&6 | |
43257 | no_cppunit=yes | |
43258 | fi | |
43259 | fi | |
43260 | ||
43261 | if test "x$no_cppunit" = x ; then | |
c2218763 | 43262 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
43263 | else |
43264 | CPPUNIT_CFLAGS="" | |
43265 | CPPUNIT_LIBS="" | |
c2218763 | 43266 | : |
a848cd7e SC |
43267 | fi |
43268 | ||
43269 | ||
43270 | ||
43271 | ||
43272 | ||
43273 | for subdir in `echo $SUBDIRS`; do | |
43274 | if test -d ${srcdir}/${subdir} ; then | |
43275 | if test "$wxUSE_GUI" = "yes"; then | |
43276 | if test ${subdir} = "samples"; then | |
43277 | makefiles="samples/Makefile.in $makefiles" | |
43278 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
43279 | if test -d $srcdir/samples/$sample; then | |
43280 | makefiles="samples/$sample/Makefile.in $makefiles" | |
43281 | fi | |
43282 | done | |
43283 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
43284 | fi | |
43285 | else if test ${subdir} = "samples"; then | |
43286 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
43287 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
43288 | makefiles="" |
43289 | for util in HelpGen tex2rtf ; do | |
43290 | if test -d $srcdir/utils/$util ; then | |
43291 | makefiles="utils/$util/Makefile.in \ | |
43292 | utils/$util/src/Makefile.in \ | |
43293 | $makefiles" | |
43294 | fi | |
43295 | done | |
a848cd7e SC |
43296 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
43297 | fi | |
43298 | fi | |
43299 | ||
43300 | for mkin in $makefiles ; do | |
43301 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
43302 | ac_config_files="$ac_config_files $mk" | |
43303 | ||
43304 | done | |
43305 | fi | |
43306 | done | |
43307 | ||
43308 | ||
43309 | cat >confcache <<\_ACEOF | |
43310 | # This file is a shell script that caches the results of configure | |
43311 | # tests run on this system so they can be shared between configure | |
43312 | # scripts and configure runs, see configure's option --config-cache. | |
43313 | # It is not useful on other systems. If it contains results you don't | |
43314 | # want to keep, you may remove or edit it. | |
43315 | # | |
43316 | # config.status only pays attention to the cache file if you give it | |
43317 | # the --recheck option to rerun configure. | |
43318 | # | |
43319 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
43320 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
43321 | # following values. | |
43322 | ||
43323 | _ACEOF | |
43324 | ||
43325 | # The following way of writing the cache mishandles newlines in values, | |
43326 | # but we know of no workaround that is simple, portable, and efficient. | |
43327 | # So, don't put newlines in cache variables' values. | |
43328 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
43329 | # and sets the high bit in the cache file unless we assign to the vars. | |
43330 | { | |
43331 | (set) 2>&1 | | |
43332 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
43333 | *ac_space=\ *) | |
43334 | # `set' does not quote correctly, so add quotes (double-quote | |
43335 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
43336 | sed -n \ | |
ac1cb8d3 VS |
43337 | "s/'/'\\\\''/g; |
43338 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
43339 | ;; |
43340 | *) | |
43341 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
43342 | sed -n \ | |
ac1cb8d3 | 43343 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
43344 | ;; |
43345 | esac; | |
43346 | } | | |
43347 | sed ' | |
43348 | t clear | |
43349 | : clear | |
43350 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
43351 | t end | |
43352 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
43353 | : end' >>confcache | |
43354 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
43355 | if test -w $cache_file; then | |
43356 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
43357 | cat confcache >$cache_file | |
43358 | else | |
43359 | echo "not updating unwritable cache $cache_file" | |
43360 | fi | |
43361 | fi | |
43362 | rm -f confcache | |
43363 | ||
43364 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
43365 | # Let make expand exec_prefix. | |
43366 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
43367 | ||
43368 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
43369 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
43370 | # trailing colons and then remove the whole line if VPATH becomes empty | |
43371 | # (actually we leave an empty line to preserve line numbers). | |
43372 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 43373 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
43374 | s/:*\$(srcdir):*/:/; |
43375 | s/:*\${srcdir}:*/:/; | |
43376 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 43377 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 43378 | s/:*$//; |
ac1cb8d3 | 43379 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
43380 | }' |
43381 | fi | |
43382 | ||
43383 | DEFS=-DHAVE_CONFIG_H | |
43384 | ||
43385 | ac_libobjs= | |
43386 | ac_ltlibobjs= | |
43387 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
43388 | # 1. Remove the extension, and $U if already installed. | |
43389 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 43390 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
43391 | # 2. Add them. |
43392 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
43393 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
43394 | done | |
43395 | LIBOBJS=$ac_libobjs | |
43396 | ||
43397 | LTLIBOBJS=$ac_ltlibobjs | |
43398 | ||
43399 | ||
43400 | ||
43401 | : ${CONFIG_STATUS=./config.status} | |
43402 | ac_clean_files_save=$ac_clean_files | |
43403 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
43404 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
43405 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
43406 | cat >$CONFIG_STATUS <<_ACEOF | |
43407 | #! $SHELL | |
43408 | # Generated by $as_me. | |
43409 | # Run this file to recreate the current configuration. | |
43410 | # Compiler output produced by configure, useful for debugging | |
43411 | # configure, is in config.log if it exists. | |
43412 | ||
43413 | debug=false | |
43414 | ac_cs_recheck=false | |
43415 | ac_cs_silent=false | |
43416 | SHELL=\${CONFIG_SHELL-$SHELL} | |
43417 | _ACEOF | |
43418 | ||
43419 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43420 | ## --------------------- ## | |
43421 | ## M4sh Initialization. ## | |
43422 | ## --------------------- ## | |
43423 | ||
43424 | # Be Bourne compatible | |
43425 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
43426 | emulate sh | |
43427 | NULLCMD=: | |
43428 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
43429 | # is contrary to our usage. Disable this feature. | |
43430 | alias -g '${1+"$@"}'='"$@"' | |
43431 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
43432 | set -o posix | |
43433 | fi | |
ac1cb8d3 | 43434 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
43435 | |
43436 | # Support unset when possible. | |
ac1cb8d3 | 43437 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
43438 | as_unset=unset |
43439 | else | |
43440 | as_unset=false | |
43441 | fi | |
43442 | ||
43443 | ||
43444 | # Work around bugs in pre-3.0 UWIN ksh. | |
43445 | $as_unset ENV MAIL MAILPATH | |
43446 | PS1='$ ' | |
43447 | PS2='> ' | |
43448 | PS4='+ ' | |
43449 | ||
43450 | # NLS nuisances. | |
43451 | for as_var in \ | |
43452 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43453 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
43454 | LC_TELEPHONE LC_TIME | |
43455 | do | |
ac1cb8d3 | 43456 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
43457 | eval $as_var=C; export $as_var |
43458 | else | |
43459 | $as_unset $as_var | |
43460 | fi | |
43461 | done | |
43462 | ||
43463 | # Required to use basename. | |
43464 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43465 | as_expr=expr | |
43466 | else | |
43467 | as_expr=false | |
43468 | fi | |
43469 | ||
43470 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
43471 | as_basename=basename | |
43472 | else | |
43473 | as_basename=false | |
43474 | fi | |
43475 | ||
43476 | ||
43477 | # Name of the executable. | |
43478 | as_me=`$as_basename "$0" || | |
43479 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
43480 | X"$0" : 'X\(//\)$' \| \ | |
43481 | X"$0" : 'X\(/\)$' \| \ | |
43482 | . : '\(.\)' 2>/dev/null || | |
43483 | echo X/"$0" | | |
43484 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
43485 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
43486 | /^X\/\(\/\).*/{ s//\1/; q; } | |
43487 | s/.*/./; q'` | |
43488 | ||
43489 | ||
43490 | # PATH needs CR, and LINENO needs CR and PATH. | |
43491 | # Avoid depending upon Character Ranges. | |
43492 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
43493 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
43494 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
43495 | as_cr_digits='0123456789' | |
43496 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
43497 | ||
43498 | # The user is always right. | |
43499 | if test "${PATH_SEPARATOR+set}" != set; then | |
43500 | echo "#! /bin/sh" >conf$$.sh | |
43501 | echo "exit 0" >>conf$$.sh | |
43502 | chmod +x conf$$.sh | |
43503 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
43504 | PATH_SEPARATOR=';' | |
43505 | else | |
43506 | PATH_SEPARATOR=: | |
43507 | fi | |
43508 | rm -f conf$$.sh | |
43509 | fi | |
43510 | ||
43511 | ||
43512 | as_lineno_1=$LINENO | |
43513 | as_lineno_2=$LINENO | |
43514 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43515 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43516 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
43517 | # Find who we are. Look in the path if we contain no path at all | |
43518 | # relative or not. | |
43519 | case $0 in | |
43520 | *[\\/]* ) as_myself=$0 ;; | |
43521 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43522 | for as_dir in $PATH | |
43523 | do | |
43524 | IFS=$as_save_IFS | |
43525 | test -z "$as_dir" && as_dir=. | |
43526 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
43527 | done | |
43528 | ||
43529 | ;; | |
43530 | esac | |
43531 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
43532 | # in which case we are not to be found in the path. | |
43533 | if test "x$as_myself" = x; then | |
43534 | as_myself=$0 | |
43535 | fi | |
43536 | if test ! -f "$as_myself"; then | |
43537 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
43538 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
43539 | { (exit 1); exit 1; }; } | |
43540 | fi | |
43541 | case $CONFIG_SHELL in | |
43542 | '') | |
43543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43544 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
43545 | do | |
43546 | IFS=$as_save_IFS | |
43547 | test -z "$as_dir" && as_dir=. | |
43548 | for as_base in sh bash ksh sh5; do | |
43549 | case $as_dir in | |
43550 | /*) | |
43551 | if ("$as_dir/$as_base" -c ' | |
43552 | as_lineno_1=$LINENO | |
43553 | as_lineno_2=$LINENO | |
43554 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43555 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43556 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
43557 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
43558 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
43559 | CONFIG_SHELL=$as_dir/$as_base | |
43560 | export CONFIG_SHELL | |
43561 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
43562 | fi;; | |
43563 | esac | |
43564 | done | |
43565 | done | |
43566 | ;; | |
43567 | esac | |
43568 | ||
43569 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
43570 | # uniformly replaced by the line number. The first 'sed' inserts a | |
43571 | # line-number line before each line; the second 'sed' does the real | |
43572 | # work. The second script uses 'N' to pair each line-number line | |
43573 | # with the numbered line, and appends trailing '-' during | |
43574 | # substitution so that $LINENO is not a special case at line end. | |
43575 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
43576 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
43577 | sed '=' <$as_myself | | |
43578 | sed ' | |
43579 | N | |
43580 | s,$,-, | |
43581 | : loop | |
43582 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
43583 | t loop | |
43584 | s,-$,, | |
43585 | s,^['$as_cr_digits']*\n,, | |
43586 | ' >$as_me.lineno && | |
43587 | chmod +x $as_me.lineno || | |
43588 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
43589 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
43590 | { (exit 1); exit 1; }; } | |
43591 | ||
43592 | # Don't try to exec as it changes $[0], causing all sort of problems | |
43593 | # (the dirname of $[0] is not the place where we might find the | |
43594 | # original and so on. Autoconf is especially sensible to this). | |
43595 | . ./$as_me.lineno | |
43596 | # Exit status is that of the last command. | |
43597 | exit | |
43598 | } | |
43599 | ||
43600 | ||
43601 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
43602 | *c*,-n*) ECHO_N= ECHO_C=' | |
43603 | ' ECHO_T=' ' ;; | |
43604 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
43605 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
43606 | esac | |
43607 | ||
43608 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43609 | as_expr=expr | |
43610 | else | |
43611 | as_expr=false | |
43612 | fi | |
43613 | ||
43614 | rm -f conf$$ conf$$.exe conf$$.file | |
43615 | echo >conf$$.file | |
43616 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
43617 | # We could just check for DJGPP; but this test a) works b) is more generic | |
43618 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
43619 | if test -f conf$$.exe; then | |
43620 | # Don't use ln at all; we don't have any links | |
43621 | as_ln_s='cp -p' | |
43622 | else | |
43623 | as_ln_s='ln -s' | |
43624 | fi | |
43625 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
43626 | as_ln_s=ln | |
43627 | else | |
43628 | as_ln_s='cp -p' | |
43629 | fi | |
43630 | rm -f conf$$ conf$$.exe conf$$.file | |
43631 | ||
43632 | if mkdir -p . 2>/dev/null; then | |
43633 | as_mkdir_p=: | |
43634 | else | |
ac1cb8d3 | 43635 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
43636 | as_mkdir_p=false |
43637 | fi | |
43638 | ||
43639 | as_executable_p="test -f" | |
43640 | ||
43641 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 43642 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
43643 | |
43644 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 43645 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
43646 | |
43647 | ||
43648 | # IFS | |
43649 | # We need space, tab and new line, in precisely that order. | |
43650 | as_nl=' | |
43651 | ' | |
43652 | IFS=" $as_nl" | |
43653 | ||
43654 | # CDPATH. | |
43655 | $as_unset CDPATH | |
43656 | ||
43657 | exec 6>&1 | |
43658 | ||
43659 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
43660 | # report actual input values of CONFIG_FILES etc. instead of their | |
43661 | # values after options handling. Logging --version etc. is OK. | |
43662 | exec 5>>config.log | |
43663 | { | |
43664 | echo | |
43665 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
43666 | ## Running $as_me. ## | |
43667 | _ASBOX | |
43668 | } >&5 | |
43669 | cat >&5 <<_CSEOF | |
43670 | ||
81f90336 | 43671 | This file was extended by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 43672 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
43673 | |
43674 | CONFIG_FILES = $CONFIG_FILES | |
43675 | CONFIG_HEADERS = $CONFIG_HEADERS | |
43676 | CONFIG_LINKS = $CONFIG_LINKS | |
43677 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
43678 | $ $0 $@ | |
43679 | ||
43680 | _CSEOF | |
43681 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
43682 | echo >&5 | |
43683 | _ACEOF | |
43684 | ||
43685 | # Files that config.status was made for. | |
43686 | if test -n "$ac_config_files"; then | |
43687 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
43688 | fi | |
43689 | ||
43690 | if test -n "$ac_config_headers"; then | |
43691 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
43692 | fi | |
43693 | ||
43694 | if test -n "$ac_config_links"; then | |
43695 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
43696 | fi | |
43697 | ||
43698 | if test -n "$ac_config_commands"; then | |
43699 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
43700 | fi | |
43701 | ||
43702 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43703 | ||
43704 | ac_cs_usage="\ | |
43705 | \`$as_me' instantiates files from templates according to the | |
43706 | current configuration. | |
43707 | ||
43708 | Usage: $0 [OPTIONS] [FILE]... | |
43709 | ||
43710 | -h, --help print this help, then exit | |
43711 | -V, --version print version number, then exit | |
43712 | -q, --quiet do not print progress messages | |
43713 | -d, --debug don't remove temporary files | |
43714 | --recheck update $as_me by reconfiguring in the same conditions | |
43715 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 43716 | instantiate the configuration file FILE |
a848cd7e | 43717 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 43718 | instantiate the configuration header FILE |
a848cd7e SC |
43719 | |
43720 | Configuration files: | |
43721 | $config_files | |
43722 | ||
43723 | Configuration headers: | |
43724 | $config_headers | |
43725 | ||
43726 | Configuration commands: | |
43727 | $config_commands | |
43728 | ||
43729 | Report bugs to <bug-autoconf@gnu.org>." | |
43730 | _ACEOF | |
43731 | ||
43732 | cat >>$CONFIG_STATUS <<_ACEOF | |
43733 | ac_cs_version="\\ | |
81f90336 | 43734 | wxWidgets config.status 2.5.4 |
ac1cb8d3 | 43735 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
43736 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
43737 | ||
ac1cb8d3 | 43738 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
43739 | This config.status script is free software; the Free Software Foundation |
43740 | gives unlimited permission to copy, distribute and modify it." | |
43741 | srcdir=$srcdir | |
43742 | INSTALL="$INSTALL" | |
43743 | _ACEOF | |
43744 | ||
43745 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43746 | # If no file are specified by the user, then we need to provide default | |
43747 | # value. By we need to know if files were specified by the user. | |
43748 | ac_need_defaults=: | |
43749 | while test $# != 0 | |
43750 | do | |
43751 | case $1 in | |
43752 | --*=*) | |
43753 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
43754 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
43755 | ac_shift=: | |
43756 | ;; | |
43757 | -*) | |
43758 | ac_option=$1 | |
43759 | ac_optarg=$2 | |
43760 | ac_shift=shift | |
43761 | ;; | |
43762 | *) # This is not an option, so the user has probably given explicit | |
43763 | # arguments. | |
43764 | ac_option=$1 | |
43765 | ac_need_defaults=false;; | |
43766 | esac | |
43767 | ||
43768 | case $ac_option in | |
43769 | # Handling of the options. | |
43770 | _ACEOF | |
43771 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43772 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
43773 | ac_cs_recheck=: ;; | |
43774 | --version | --vers* | -V ) | |
43775 | echo "$ac_cs_version"; exit 0 ;; | |
43776 | --he | --h) | |
43777 | # Conflict between --help and --header | |
43778 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
43779 | Try \`$0 --help' for more information." >&5 | |
43780 | echo "$as_me: error: ambiguous option: $1 | |
43781 | Try \`$0 --help' for more information." >&2;} | |
43782 | { (exit 1); exit 1; }; };; | |
43783 | --help | --hel | -h ) | |
43784 | echo "$ac_cs_usage"; exit 0 ;; | |
43785 | --debug | --d* | -d ) | |
43786 | debug=: ;; | |
43787 | --file | --fil | --fi | --f ) | |
43788 | $ac_shift | |
43789 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
43790 | ac_need_defaults=false;; | |
43791 | --header | --heade | --head | --hea ) | |
43792 | $ac_shift | |
43793 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
43794 | ac_need_defaults=false;; | |
43795 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
43796 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
43797 | ac_cs_silent=: ;; | |
43798 | ||
43799 | # This is an error. | |
43800 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
43801 | Try \`$0 --help' for more information." >&5 | |
43802 | echo "$as_me: error: unrecognized option: $1 | |
43803 | Try \`$0 --help' for more information." >&2;} | |
43804 | { (exit 1); exit 1; }; } ;; | |
43805 | ||
43806 | *) ac_config_targets="$ac_config_targets $1" ;; | |
43807 | ||
43808 | esac | |
43809 | shift | |
43810 | done | |
43811 | ||
43812 | ac_configure_extra_args= | |
43813 | ||
43814 | if $ac_cs_silent; then | |
43815 | exec 6>/dev/null | |
43816 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
43817 | fi | |
43818 | ||
43819 | _ACEOF | |
43820 | cat >>$CONFIG_STATUS <<_ACEOF | |
43821 | if \$ac_cs_recheck; then | |
43822 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
43823 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
43824 | fi | |
43825 | ||
43826 | _ACEOF | |
43827 | ||
43828 | cat >>$CONFIG_STATUS <<_ACEOF | |
43829 | # | |
43830 | # INIT-COMMANDS section. | |
43831 | # | |
43832 | ||
ceec2216 RL |
43833 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
43834 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43835 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43836 | LN_S="${LN_S}" | |
a848cd7e SC |
43837 | |
43838 | ||
43839 | _ACEOF | |
43840 | ||
43841 | ||
43842 | ||
43843 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43844 | for ac_config_target in $ac_config_targets | |
43845 | do | |
43846 | case "$ac_config_target" in | |
43847 | # Handling of arguments. | |
ceec2216 RL |
43848 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
43849 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
43850 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
43851 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
43852 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
43853 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
43854 | "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 |
43855 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
43856 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
43857 | { (exit 1); exit 1; }; };; | |
43858 | esac | |
43859 | done | |
43860 | ||
43861 | # If the user did not use the arguments to specify the items to instantiate, | |
43862 | # then the envvar interface is used. Set only those that are not. | |
43863 | # We use the long form for the default assignment because of an extremely | |
43864 | # bizarre bug on SunOS 4.1.3. | |
43865 | if $ac_need_defaults; then | |
43866 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
43867 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
43868 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
43869 | fi | |
43870 | ||
43871 | # Have a temporary directory for convenience. Make it in the build tree | |
43872 | # simply because there is no reason to put it here, and in addition, | |
43873 | # creating and moving files from /tmp can sometimes cause problems. | |
43874 | # Create a temporary directory, and hook for its removal unless debugging. | |
43875 | $debug || | |
43876 | { | |
43877 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
43878 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
43879 | } | |
43880 | ||
43881 | # Create a (secure) tmp directory for tmp files. | |
43882 | ||
43883 | { | |
43884 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
43885 | test -n "$tmp" && test -d "$tmp" | |
43886 | } || | |
43887 | { | |
43888 | tmp=./confstat$$-$RANDOM | |
43889 | (umask 077 && mkdir $tmp) | |
43890 | } || | |
43891 | { | |
43892 | echo "$me: cannot create a temporary directory in ." >&2 | |
43893 | { (exit 1); exit 1; } | |
43894 | } | |
43895 | ||
43896 | _ACEOF | |
43897 | ||
43898 | cat >>$CONFIG_STATUS <<_ACEOF | |
43899 | ||
43900 | # | |
43901 | # CONFIG_FILES section. | |
43902 | # | |
43903 | ||
43904 | # No need to generate the scripts if there are no CONFIG_FILES. | |
43905 | # This happens for instance when ./config.status config.h | |
43906 | if test -n "\$CONFIG_FILES"; then | |
43907 | # Protect against being on the right side of a sed subst in config.status. | |
43908 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
43909 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
43910 | s,@SHELL@,$SHELL,;t t | |
43911 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
43912 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
43913 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
43914 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
43915 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
43916 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
43917 | s,@exec_prefix@,$exec_prefix,;t t | |
43918 | s,@prefix@,$prefix,;t t | |
43919 | s,@program_transform_name@,$program_transform_name,;t t | |
43920 | s,@bindir@,$bindir,;t t | |
43921 | s,@sbindir@,$sbindir,;t t | |
43922 | s,@libexecdir@,$libexecdir,;t t | |
43923 | s,@datadir@,$datadir,;t t | |
43924 | s,@sysconfdir@,$sysconfdir,;t t | |
43925 | s,@sharedstatedir@,$sharedstatedir,;t t | |
43926 | s,@localstatedir@,$localstatedir,;t t | |
43927 | s,@libdir@,$libdir,;t t | |
43928 | s,@includedir@,$includedir,;t t | |
43929 | s,@oldincludedir@,$oldincludedir,;t t | |
43930 | s,@infodir@,$infodir,;t t | |
43931 | s,@mandir@,$mandir,;t t | |
43932 | s,@build_alias@,$build_alias,;t t | |
43933 | s,@host_alias@,$host_alias,;t t | |
43934 | s,@target_alias@,$target_alias,;t t | |
43935 | s,@DEFS@,$DEFS,;t t | |
43936 | s,@ECHO_C@,$ECHO_C,;t t | |
43937 | s,@ECHO_N@,$ECHO_N,;t t | |
43938 | s,@ECHO_T@,$ECHO_T,;t t | |
43939 | s,@LIBS@,$LIBS,;t t | |
43940 | s,@build@,$build,;t t | |
43941 | s,@build_cpu@,$build_cpu,;t t | |
43942 | s,@build_vendor@,$build_vendor,;t t | |
43943 | s,@build_os@,$build_os,;t t | |
43944 | s,@host@,$host,;t t | |
43945 | s,@host_cpu@,$host_cpu,;t t | |
43946 | s,@host_vendor@,$host_vendor,;t t | |
43947 | s,@host_os@,$host_os,;t t | |
43948 | s,@target@,$target,;t t | |
43949 | s,@target_cpu@,$target_cpu,;t t | |
43950 | s,@target_vendor@,$target_vendor,;t t | |
43951 | s,@target_os@,$target_os,;t t | |
43952 | s,@CC@,$CC,;t t | |
43953 | s,@CFLAGS@,$CFLAGS,;t t | |
43954 | s,@LDFLAGS@,$LDFLAGS,;t t | |
43955 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
43956 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
43957 | s,@EXEEXT@,$EXEEXT,;t t | |
43958 | s,@OBJEXT@,$OBJEXT,;t t | |
43959 | s,@CPP@,$CPP,;t t | |
43960 | s,@EGREP@,$EGREP,;t t | |
43961 | s,@CXX@,$CXX,;t t | |
43962 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
43963 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
43964 | s,@RANLIB@,$RANLIB,;t t | |
43965 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
43966 | s,@AR@,$AR,;t t | |
43967 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
43968 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
43969 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
43970 | s,@STRIP@,$STRIP,;t t | |
43971 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
43972 | s,@LN_S@,$LN_S,;t t | |
43973 | s,@CXXCPP@,$CXXCPP,;t t | |
43974 | s,@subdirs@,$subdirs,;t t | |
43975 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
43976 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
43977 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
43978 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
43979 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
43980 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
43981 | s,@X_LIBS@,$X_LIBS,;t t | |
43982 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
43983 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
43984 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
43985 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
43986 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
43987 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
43988 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
43989 | s,@RESCOMP@,$RESCOMP,;t t | |
43990 | s,@DEREZ@,$DEREZ,;t t | |
43991 | s,@SETFILE@,$SETFILE,;t t | |
43992 | s,@LIBICONV@,$LIBICONV,;t t | |
43993 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
43994 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
43995 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
43996 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
43997 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
43998 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
43999 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
44000 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
44001 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
44002 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
44003 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
44004 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
44005 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
44006 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
44007 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
44008 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
44009 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
44010 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
44011 | s,@VENDOR@,$VENDOR,;t t | |
44012 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
44013 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
44014 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
44015 | s,@WXUNIV@,$WXUNIV,;t t |
44016 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
44017 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
44018 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
44019 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
44020 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
44021 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
44022 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
44023 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
44024 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
44025 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 44026 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
44027 | s,@UNICODE@,$UNICODE,;t t |
44028 | s,@BUILD@,$BUILD,;t t | |
44029 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
44030 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
44031 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
44032 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
44033 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
44034 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
44035 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
44036 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
44037 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
44038 | s,@SET_MAKE@,$SET_MAKE,;t t | |
44039 | s,@MAKE_SET@,$MAKE_SET,;t t | |
44040 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
44041 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
44042 | s,@NM@,$NM,;t t | |
44043 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
44044 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
44045 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
44046 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
44047 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
44048 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
44049 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 44050 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
44051 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
44052 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 44053 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
44054 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
44055 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
44056 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
44057 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
44058 | s,@LIBEXT@,$LIBEXT,;t t | |
44059 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
44060 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
44061 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
44062 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
44063 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
44064 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
44065 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
44066 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
44067 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
44068 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
44069 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
44070 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
44071 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
44072 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
44073 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
44074 | s,@GCC_PCH@,$GCC_PCH,;t t | |
44075 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
44076 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
44077 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
44078 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
44079 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
44080 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
44081 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
44082 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
44083 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
44084 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
44085 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
44086 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
44087 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
44088 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
44089 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
44090 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
44091 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
44092 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 44093 | 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 | 44094 | 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 |
a848cd7e | 44095 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 44096 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
44097 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
44098 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 44099 | 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 | 44100 | 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 |
a848cd7e | 44101 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 44102 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
44103 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
44104 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
44105 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
44106 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
44107 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
44108 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
44109 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
44110 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 44111 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
44112 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
44113 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
44114 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 44115 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 44116 | 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 |
44117 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
44118 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
44119 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
44120 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 44121 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
44122 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
44123 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
44124 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
44125 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
44126 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
44127 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
44128 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
44129 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
44130 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
44131 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
44132 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
44133 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
44134 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
44135 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44136 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44137 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
44138 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
44139 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
44140 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
44141 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
44142 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
44143 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 44144 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 44145 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 44146 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
44147 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
44148 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
44149 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
44150 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
44151 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
44152 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
44153 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
44154 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
44155 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
44156 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
44157 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
44158 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
44159 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
44160 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
44161 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
44162 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
44163 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
44164 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
44165 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
44166 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
44167 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
44168 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
44169 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
44170 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
44171 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
44172 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
44173 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
44174 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
44175 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
44176 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
44177 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
44178 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
44179 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 44180 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 44181 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e | 44182 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
44183 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
44184 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e SC |
44185 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
44186 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
44187 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
44188 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
44189 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
44190 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 44191 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 44192 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 44193 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
44194 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
44195 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
44196 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
44197 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
44198 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
44199 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
44200 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
44201 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 44202 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
44203 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
44204 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
44205 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
44206 | s,@USE_GUI@,$USE_GUI,;t t | |
44207 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
44208 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
44209 | s,@TOOLKIT@,$TOOLKIT,;t t | |
44210 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 44211 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 44212 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
44213 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
44214 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 44215 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
44216 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
44217 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
44218 | s,@WX_VERSION@,$WX_VERSION,;t t | |
44219 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
44220 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
44221 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 44222 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
44223 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
44224 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
44225 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
44226 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 44227 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
44228 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
44229 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 44230 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 44231 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
44232 | s,@DISTDIR@,$DISTDIR,;t t |
44233 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
44234 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
44235 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
44236 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
44237 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
44238 | s,@RESFLAGS@,$RESFLAGS,;t t | |
44239 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
44240 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
44241 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
44242 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
44243 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
44244 | s,@MACSETFILE@,$MACSETFILE,;t t | |
44245 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
44246 | s,@GCC@,$GCC,;t t | |
a848cd7e | 44247 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
44248 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
44249 | s,@LIBOBJS@,$LIBOBJS,;t t | |
44250 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
44251 | CEOF | |
44252 | ||
44253 | _ACEOF | |
44254 | ||
44255 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44256 | # Split the substitutions into bite-sized pieces for seds with | |
44257 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
44258 | ac_max_sed_lines=48 | |
44259 | ac_sed_frag=1 # Number of current file. | |
44260 | ac_beg=1 # First line for current file. | |
44261 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
44262 | ac_more_lines=: | |
44263 | ac_sed_cmds= | |
44264 | while $ac_more_lines; do | |
44265 | if test $ac_beg -gt 1; then | |
44266 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44267 | else | |
44268 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
44269 | fi | |
44270 | if test ! -s $tmp/subs.frag; then | |
44271 | ac_more_lines=false | |
44272 | else | |
44273 | # The purpose of the label and of the branching condition is to | |
44274 | # speed up the sed processing (if there are no `@' at all, there | |
44275 | # is no need to browse any of the substitutions). | |
44276 | # These are the two extra sed commands mentioned above. | |
44277 | (echo ':t | |
44278 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
44279 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 44280 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 44281 | else |
ac1cb8d3 | 44282 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
44283 | fi |
44284 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
44285 | ac_beg=$ac_end | |
44286 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
44287 | fi | |
44288 | done | |
44289 | if test -z "$ac_sed_cmds"; then | |
44290 | ac_sed_cmds=cat | |
44291 | fi | |
44292 | fi # test -n "$CONFIG_FILES" | |
44293 | ||
44294 | _ACEOF | |
44295 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44296 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
44297 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44298 | case $ac_file in | |
44299 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44300 | cat >$tmp/stdin |
44301 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44302 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44303 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44304 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44305 | * ) ac_file_in=$ac_file.in ;; |
44306 | esac | |
44307 | ||
44308 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
44309 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44310 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44311 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44312 | X"$ac_file" : 'X\(//\)$' \| \ | |
44313 | X"$ac_file" : 'X\(/\)' \| \ | |
44314 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44315 | echo X"$ac_file" | |
44316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44317 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44318 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44319 | /^X\(\/\).*/{ s//\1/; q; } | |
44320 | s/.*/./; q'` | |
44321 | { if $as_mkdir_p; then | |
44322 | mkdir -p "$ac_dir" | |
44323 | else | |
44324 | as_dir="$ac_dir" | |
44325 | as_dirs= | |
44326 | while test ! -d "$as_dir"; do | |
44327 | as_dirs="$as_dir $as_dirs" | |
44328 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44329 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44330 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44331 | X"$as_dir" : 'X\(//\)$' \| \ | |
44332 | X"$as_dir" : 'X\(/\)' \| \ | |
44333 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44334 | echo X"$as_dir" | |
44335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44336 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44337 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44338 | /^X\(\/\).*/{ s//\1/; q; } | |
44339 | s/.*/./; q'` | |
44340 | done | |
44341 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44342 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44343 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44344 | { (exit 1); exit 1; }; }; } | |
44345 | ||
44346 | ac_builddir=. | |
44347 | ||
44348 | if test "$ac_dir" != .; then | |
44349 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44350 | # A "../" for each directory in $ac_dir_suffix. | |
44351 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44352 | else | |
44353 | ac_dir_suffix= ac_top_builddir= | |
44354 | fi | |
44355 | ||
44356 | case $srcdir in | |
44357 | .) # No --srcdir option. We are building in place. | |
44358 | ac_srcdir=. | |
44359 | if test -z "$ac_top_builddir"; then | |
44360 | ac_top_srcdir=. | |
44361 | else | |
44362 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44363 | fi ;; | |
44364 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44365 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44366 | ac_top_srcdir=$srcdir ;; | |
44367 | *) # Relative path. | |
44368 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44369 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44370 | esac | |
ac1cb8d3 VS |
44371 | |
44372 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44373 | # the directories may not exist. | |
44374 | case `pwd` in | |
44375 | .) ac_abs_builddir="$ac_dir";; | |
44376 | *) | |
44377 | case "$ac_dir" in | |
44378 | .) ac_abs_builddir=`pwd`;; | |
44379 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44380 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44381 | esac;; | |
44382 | esac | |
44383 | case $ac_abs_builddir in | |
44384 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44385 | *) | |
44386 | case ${ac_top_builddir}. in | |
44387 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44388 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44389 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44390 | esac;; | |
44391 | esac | |
44392 | case $ac_abs_builddir in | |
44393 | .) ac_abs_srcdir=$ac_srcdir;; | |
44394 | *) | |
44395 | case $ac_srcdir in | |
44396 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44397 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44398 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44399 | esac;; | |
44400 | esac | |
44401 | case $ac_abs_builddir in | |
44402 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44403 | *) | |
44404 | case $ac_top_srcdir in | |
44405 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44406 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44407 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44408 | esac;; | |
44409 | esac | |
a848cd7e SC |
44410 | |
44411 | ||
44412 | case $INSTALL in | |
44413 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44414 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
44415 | esac | |
44416 | ||
a848cd7e SC |
44417 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
44418 | # use $as_me), people would be surprised to read: | |
44419 | # /* config.h. Generated by config.status. */ | |
44420 | if test x"$ac_file" = x-; then | |
44421 | configure_input= | |
44422 | else | |
44423 | configure_input="$ac_file. " | |
44424 | fi | |
44425 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 44426 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
44427 | |
44428 | # First look for the input files in the build tree, otherwise in the | |
44429 | # src tree. | |
44430 | ac_file_inputs=`IFS=: | |
44431 | for f in $ac_file_in; do | |
44432 | case $f in | |
44433 | -) echo $tmp/stdin ;; | |
44434 | [\\/$]*) | |
ac1cb8d3 VS |
44435 | # Absolute (can't be DOS-style, as IFS=:) |
44436 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44437 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44438 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44439 | echo "$f";; |
a848cd7e | 44440 | *) # Relative |
ac1cb8d3 VS |
44441 | if test -f "$f"; then |
44442 | # Build tree | |
44443 | echo "$f" | |
44444 | elif test -f "$srcdir/$f"; then | |
44445 | # Source tree | |
44446 | echo "$srcdir/$f" | |
44447 | else | |
44448 | # /dev/null tree | |
44449 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44450 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44451 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44452 | fi;; |
a848cd7e SC |
44453 | esac |
44454 | done` || { (exit 1); exit 1; } | |
07158944 VZ |
44455 | |
44456 | if test x"$ac_file" != x-; then | |
44457 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44458 | echo "$as_me: creating $ac_file" >&6;} | |
44459 | rm -f "$ac_file" | |
44460 | fi | |
a848cd7e SC |
44461 | _ACEOF |
44462 | cat >>$CONFIG_STATUS <<_ACEOF | |
44463 | sed "$ac_vpsub | |
44464 | $extrasub | |
44465 | _ACEOF | |
44466 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44467 | :t | |
44468 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
44469 | s,@configure_input@,$configure_input,;t t | |
44470 | s,@srcdir@,$ac_srcdir,;t t | |
44471 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
44472 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
44473 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
44474 | s,@builddir@,$ac_builddir,;t t | |
44475 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
44476 | s,@top_builddir@,$ac_top_builddir,;t t | |
44477 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
44478 | s,@INSTALL@,$ac_INSTALL,;t t | |
44479 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
44480 | rm -f $tmp/stdin | |
44481 | if test x"$ac_file" != x-; then | |
44482 | mv $tmp/out $ac_file | |
44483 | else | |
44484 | cat $tmp/out | |
44485 | rm -f $tmp/out | |
44486 | fi | |
44487 | ||
ceec2216 RL |
44488 | # Run the commands associated with the file. |
44489 | case $ac_file in | |
44490 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
44491 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
44492 | esac | |
a848cd7e SC |
44493 | done |
44494 | _ACEOF | |
44495 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44496 | ||
44497 | # | |
44498 | # CONFIG_HEADER section. | |
44499 | # | |
44500 | ||
44501 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
44502 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
44503 | # | |
44504 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
44505 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
44506 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
44507 | ac_dC=' ' |
44508 | ac_dD=',;t' | |
44509 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 44510 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
44511 | ac_uB='$,\1#\2define\3' |
44512 | ac_uC=' ' | |
44513 | ac_uD=',;t' | |
44514 | ||
44515 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
44516 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44517 | case $ac_file in | |
44518 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44519 | cat >$tmp/stdin |
44520 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44521 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44522 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44523 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44524 | * ) ac_file_in=$ac_file.in ;; |
44525 | esac | |
44526 | ||
44527 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44528 | echo "$as_me: creating $ac_file" >&6;} | |
44529 | ||
44530 | # First look for the input files in the build tree, otherwise in the | |
44531 | # src tree. | |
44532 | ac_file_inputs=`IFS=: | |
44533 | for f in $ac_file_in; do | |
44534 | case $f in | |
44535 | -) echo $tmp/stdin ;; | |
44536 | [\\/$]*) | |
ac1cb8d3 VS |
44537 | # Absolute (can't be DOS-style, as IFS=:) |
44538 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44539 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44540 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
44541 | # Do quote $f, to prevent DOS paths from being IFS'd. |
44542 | echo "$f";; | |
a848cd7e | 44543 | *) # Relative |
ac1cb8d3 VS |
44544 | if test -f "$f"; then |
44545 | # Build tree | |
44546 | echo "$f" | |
44547 | elif test -f "$srcdir/$f"; then | |
44548 | # Source tree | |
44549 | echo "$srcdir/$f" | |
44550 | else | |
44551 | # /dev/null tree | |
44552 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44553 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44554 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44555 | fi;; |
a848cd7e SC |
44556 | esac |
44557 | done` || { (exit 1); exit 1; } | |
44558 | # Remove the trailing spaces. | |
ac1cb8d3 | 44559 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
44560 | |
44561 | _ACEOF | |
44562 | ||
44563 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
44564 | # `conftest.undefs', that substitutes the proper values into | |
44565 | # config.h.in to produce config.h. The first handles `#define' | |
44566 | # templates, and the second `#undef' templates. | |
44567 | # And first: Protect against being on the right side of a sed subst in | |
44568 | # config.status. Protect against being in an unquoted here document | |
44569 | # in config.status. | |
44570 | rm -f conftest.defines conftest.undefs | |
44571 | # Using a here document instead of a string reduces the quoting nightmare. | |
44572 | # Putting comments in sed scripts is not portable. | |
44573 | # | |
44574 | # `end' is used to avoid that the second main sed command (meant for | |
44575 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
44576 | # See the Autoconf documentation for `clear'. | |
44577 | cat >confdef2sed.sed <<\_ACEOF | |
44578 | s/[\\&,]/\\&/g | |
44579 | s,[\\$`],\\&,g | |
44580 | t clear | |
44581 | : clear | |
ac1cb8d3 | 44582 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 44583 | t end |
ac1cb8d3 | 44584 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
44585 | : end |
44586 | _ACEOF | |
44587 | # If some macros were called several times there might be several times | |
44588 | # the same #defines, which is useless. Nevertheless, we may not want to | |
44589 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
44590 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
44591 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
44592 | rm -f confdef2sed.sed | |
44593 | ||
44594 | # This sed command replaces #undef with comments. This is necessary, for | |
44595 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
44596 | # on some systems where configure will not decide to define it. | |
44597 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 44598 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
44599 | _ACEOF |
44600 | ||
44601 | # Break up conftest.defines because some shells have a limit on the size | |
44602 | # of here documents, and old seds have small limits too (100 cmds). | |
44603 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 44604 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
44605 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
44606 | echo ' :' >>$CONFIG_STATUS | |
44607 | rm -f conftest.tail | |
44608 | while grep . conftest.defines >/dev/null | |
44609 | do | |
44610 | # Write a limited-size here document to $tmp/defines.sed. | |
44611 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
44612 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 44613 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
44614 | # Work around the forget-to-reset-the-flag bug. |
44615 | echo 't clr' >>$CONFIG_STATUS | |
44616 | echo ': clr' >>$CONFIG_STATUS | |
44617 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
44618 | echo 'CEOF | |
44619 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
44620 | rm -f $tmp/in | |
44621 | mv $tmp/out $tmp/in | |
44622 | ' >>$CONFIG_STATUS | |
44623 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
44624 | rm -f conftest.defines | |
44625 | mv conftest.tail conftest.defines | |
44626 | done | |
44627 | rm -f conftest.defines | |
44628 | echo ' fi # grep' >>$CONFIG_STATUS | |
44629 | echo >>$CONFIG_STATUS | |
44630 | ||
44631 | # Break up conftest.undefs because some shells have a limit on the size | |
44632 | # of here documents, and old seds have small limits too (100 cmds). | |
44633 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
44634 | rm -f conftest.tail | |
44635 | while grep . conftest.undefs >/dev/null | |
44636 | do | |
44637 | # Write a limited-size here document to $tmp/undefs.sed. | |
44638 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
44639 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 44640 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
44641 | # Work around the forget-to-reset-the-flag bug. |
44642 | echo 't clr' >>$CONFIG_STATUS | |
44643 | echo ': clr' >>$CONFIG_STATUS | |
44644 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
44645 | echo 'CEOF | |
44646 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
44647 | rm -f $tmp/in | |
44648 | mv $tmp/out $tmp/in | |
44649 | ' >>$CONFIG_STATUS | |
44650 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
44651 | rm -f conftest.undefs | |
44652 | mv conftest.tail conftest.undefs | |
44653 | done | |
44654 | rm -f conftest.undefs | |
44655 | ||
44656 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44657 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
44658 | # use $as_me), people would be surprised to read: | |
44659 | # /* config.h. Generated by config.status. */ | |
44660 | if test x"$ac_file" = x-; then | |
44661 | echo "/* Generated by configure. */" >$tmp/config.h | |
44662 | else | |
44663 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
44664 | fi | |
44665 | cat $tmp/in >>$tmp/config.h | |
44666 | rm -f $tmp/in | |
44667 | if test x"$ac_file" != x-; then | |
44668 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
44669 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
44670 | echo "$as_me: $ac_file is unchanged" >&6;} | |
44671 | else | |
44672 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44673 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44674 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44675 | X"$ac_file" : 'X\(//\)$' \| \ | |
44676 | X"$ac_file" : 'X\(/\)' \| \ | |
44677 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44678 | echo X"$ac_file" | |
44679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44681 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44682 | /^X\(\/\).*/{ s//\1/; q; } | |
44683 | s/.*/./; q'` | |
44684 | { if $as_mkdir_p; then | |
44685 | mkdir -p "$ac_dir" | |
44686 | else | |
44687 | as_dir="$ac_dir" | |
44688 | as_dirs= | |
44689 | while test ! -d "$as_dir"; do | |
44690 | as_dirs="$as_dir $as_dirs" | |
44691 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44692 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44693 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44694 | X"$as_dir" : 'X\(//\)$' \| \ | |
44695 | X"$as_dir" : 'X\(/\)' \| \ | |
44696 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44697 | echo X"$as_dir" | |
44698 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44699 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44700 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44701 | /^X\(\/\).*/{ s//\1/; q; } | |
44702 | s/.*/./; q'` | |
44703 | done | |
44704 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44705 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44706 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44707 | { (exit 1); exit 1; }; }; } | |
44708 | ||
44709 | rm -f $ac_file | |
44710 | mv $tmp/config.h $ac_file | |
44711 | fi | |
44712 | else | |
44713 | cat $tmp/config.h | |
44714 | rm -f $tmp/config.h | |
44715 | fi | |
44716 | done | |
44717 | _ACEOF | |
44718 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44719 | ||
44720 | # | |
44721 | # CONFIG_COMMANDS section. | |
44722 | # | |
44723 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
44724 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
44725 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44726 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
44727 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44728 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
44729 | X"$ac_dest" : 'X\(//\)$' \| \ | |
44730 | X"$ac_dest" : 'X\(/\)' \| \ | |
44731 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44732 | echo X"$ac_dest" | |
44733 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44734 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44735 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44736 | /^X\(\/\).*/{ s//\1/; q; } | |
44737 | s/.*/./; q'` | |
ac1cb8d3 VS |
44738 | { if $as_mkdir_p; then |
44739 | mkdir -p "$ac_dir" | |
44740 | else | |
44741 | as_dir="$ac_dir" | |
44742 | as_dirs= | |
44743 | while test ! -d "$as_dir"; do | |
44744 | as_dirs="$as_dir $as_dirs" | |
44745 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44746 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
44747 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
44748 | X"$as_dir" : 'X\(//\)$' \| \ | |
44749 | X"$as_dir" : 'X\(/\)' \| \ | |
44750 | . : '\(.\)' 2>/dev/null || | |
44751 | echo X"$as_dir" | | |
44752 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44753 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44754 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44755 | /^X\(\/\).*/{ s//\1/; q; } | |
44756 | s/.*/./; q'` | |
44757 | done | |
44758 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44759 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44760 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44761 | { (exit 1); exit 1; }; }; } | |
44762 | ||
a848cd7e SC |
44763 | ac_builddir=. |
44764 | ||
44765 | if test "$ac_dir" != .; then | |
44766 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44767 | # A "../" for each directory in $ac_dir_suffix. | |
44768 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44769 | else | |
44770 | ac_dir_suffix= ac_top_builddir= | |
44771 | fi | |
44772 | ||
44773 | case $srcdir in | |
44774 | .) # No --srcdir option. We are building in place. | |
44775 | ac_srcdir=. | |
44776 | if test -z "$ac_top_builddir"; then | |
44777 | ac_top_srcdir=. | |
44778 | else | |
44779 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44780 | fi ;; | |
44781 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44782 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44783 | ac_top_srcdir=$srcdir ;; | |
44784 | *) # Relative path. | |
44785 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44786 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44787 | esac | |
ac1cb8d3 VS |
44788 | |
44789 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44790 | # the directories may not exist. | |
44791 | case `pwd` in | |
44792 | .) ac_abs_builddir="$ac_dir";; | |
44793 | *) | |
44794 | case "$ac_dir" in | |
44795 | .) ac_abs_builddir=`pwd`;; | |
44796 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44797 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44798 | esac;; | |
44799 | esac | |
44800 | case $ac_abs_builddir in | |
44801 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44802 | *) | |
44803 | case ${ac_top_builddir}. in | |
44804 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44805 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44806 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44807 | esac;; | |
44808 | esac | |
44809 | case $ac_abs_builddir in | |
44810 | .) ac_abs_srcdir=$ac_srcdir;; | |
44811 | *) | |
44812 | case $ac_srcdir in | |
44813 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44814 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44815 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44816 | esac;; | |
44817 | esac | |
44818 | case $ac_abs_builddir in | |
44819 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44820 | *) | |
44821 | case $ac_top_srcdir in | |
44822 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44823 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44824 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44825 | esac;; | |
44826 | esac | |
a848cd7e SC |
44827 | |
44828 | ||
44829 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
44830 | echo "$as_me: executing $ac_dest commands" >&6;} | |
44831 | case $ac_dest in | |
ceec2216 RL |
44832 | wx-config ) rm -f wx-config |
44833 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
44834 | ;; | |
a848cd7e SC |
44835 | esac |
44836 | done | |
44837 | _ACEOF | |
44838 | ||
44839 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44840 | ||
44841 | { (exit 0); exit 0; } | |
44842 | _ACEOF | |
44843 | chmod +x $CONFIG_STATUS | |
44844 | ac_clean_files=$ac_clean_files_save | |
44845 | ||
44846 | ||
44847 | # configure is writing to config.log, and then calls config.status. | |
44848 | # config.status does its own redirection, appending to config.log. | |
44849 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
44850 | # by configure, so config.status won't be able to write to it; its | |
44851 | # output is simply discarded. So we exec the FD to /dev/null, | |
44852 | # effectively closing config.log, so it can be properly (re)opened and | |
44853 | # appended to by config.status. When coming back to configure, we | |
44854 | # need to make the FD available again. | |
44855 | if test "$no_create" != yes; then | |
44856 | ac_cs_success=: | |
44857 | ac_config_status_args= | |
44858 | test "$silent" = yes && | |
44859 | ac_config_status_args="$ac_config_status_args --quiet" | |
44860 | exec 5>/dev/null | |
44861 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
44862 | exec 5>>config.log | |
44863 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
44864 | # would make configure fail if this is the last instruction. | |
44865 | $ac_cs_success || { (exit 1); exit 1; } | |
44866 | fi | |
44867 | ||
44868 | # | |
44869 | # CONFIG_SUBDIRS section. | |
44870 | # | |
44871 | if test "$no_recursion" != yes; then | |
44872 | ||
44873 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
44874 | ac_sub_configure_args= | |
44875 | ac_prev= | |
44876 | for ac_arg in $ac_configure_args; do | |
44877 | if test -n "$ac_prev"; then | |
44878 | ac_prev= | |
44879 | continue | |
44880 | fi | |
44881 | case $ac_arg in | |
44882 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
44883 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
44884 | ac_prev=cache_file ;; | |
44885 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
44886 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
44887 | | --c=*) | |
44888 | ;; | |
44889 | --config-cache | -C) | |
44890 | ;; | |
44891 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
44892 | ac_prev=srcdir ;; | |
44893 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
44894 | ;; | |
44895 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
44896 | ac_prev=prefix ;; | |
44897 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
44898 | ;; | |
44899 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
44900 | esac | |
44901 | done | |
44902 | ||
44903 | # Always prepend --prefix to ensure using the same prefix | |
44904 | # in subdir configurations. | |
44905 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
44906 | ||
44907 | ac_popdir=`pwd` | |
44908 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
44909 | ||
44910 | # Do not complain, so a configure script can configure whichever | |
44911 | # parts of a large source tree are present. | |
44912 | test -d $srcdir/$ac_dir || continue | |
44913 | ||
44914 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
44915 | echo "$as_me: configuring in $ac_dir" >&6;} | |
44916 | { if $as_mkdir_p; then | |
44917 | mkdir -p "$ac_dir" | |
44918 | else | |
44919 | as_dir="$ac_dir" | |
44920 | as_dirs= | |
44921 | while test ! -d "$as_dir"; do | |
44922 | as_dirs="$as_dir $as_dirs" | |
44923 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44924 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44925 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44926 | X"$as_dir" : 'X\(//\)$' \| \ | |
44927 | X"$as_dir" : 'X\(/\)' \| \ | |
44928 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44929 | echo X"$as_dir" | |
44930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44931 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44932 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44933 | /^X\(\/\).*/{ s//\1/; q; } | |
44934 | s/.*/./; q'` | |
44935 | done | |
44936 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44937 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44938 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44939 | { (exit 1); exit 1; }; }; } | |
44940 | ||
44941 | ac_builddir=. | |
44942 | ||
44943 | if test "$ac_dir" != .; then | |
44944 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44945 | # A "../" for each directory in $ac_dir_suffix. | |
44946 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44947 | else | |
44948 | ac_dir_suffix= ac_top_builddir= | |
44949 | fi | |
44950 | ||
44951 | case $srcdir in | |
44952 | .) # No --srcdir option. We are building in place. | |
44953 | ac_srcdir=. | |
44954 | if test -z "$ac_top_builddir"; then | |
44955 | ac_top_srcdir=. | |
44956 | else | |
44957 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44958 | fi ;; | |
44959 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44960 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44961 | ac_top_srcdir=$srcdir ;; | |
44962 | *) # Relative path. | |
44963 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44964 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44965 | esac | |
ac1cb8d3 VS |
44966 | |
44967 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44968 | # the directories may not exist. | |
44969 | case `pwd` in | |
44970 | .) ac_abs_builddir="$ac_dir";; | |
44971 | *) | |
44972 | case "$ac_dir" in | |
44973 | .) ac_abs_builddir=`pwd`;; | |
44974 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44975 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44976 | esac;; | |
44977 | esac | |
44978 | case $ac_abs_builddir in | |
44979 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44980 | *) | |
44981 | case ${ac_top_builddir}. in | |
44982 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44983 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44984 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44985 | esac;; | |
44986 | esac | |
44987 | case $ac_abs_builddir in | |
44988 | .) ac_abs_srcdir=$ac_srcdir;; | |
44989 | *) | |
44990 | case $ac_srcdir in | |
44991 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44992 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44993 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44994 | esac;; | |
44995 | esac | |
44996 | case $ac_abs_builddir in | |
44997 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44998 | *) | |
44999 | case $ac_top_srcdir in | |
45000 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45001 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45002 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45003 | esac;; | |
45004 | esac | |
a848cd7e SC |
45005 | |
45006 | ||
45007 | cd $ac_dir | |
45008 | ||
45009 | # Check for guested configure; otherwise get Cygnus style configure. | |
45010 | if test -f $ac_srcdir/configure.gnu; then | |
45011 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
45012 | elif test -f $ac_srcdir/configure; then | |
45013 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
45014 | elif test -f $ac_srcdir/configure.in; then | |
45015 | ac_sub_configure=$ac_configure | |
45016 | else | |
45017 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
45018 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
45019 | ac_sub_configure= | |
45020 | fi | |
45021 | ||
45022 | # The recursion is here. | |
45023 | if test -n "$ac_sub_configure"; then | |
45024 | # Make the cache file name correct relative to the subdirectory. | |
45025 | case $cache_file in | |
45026 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
45027 | *) # Relative path. | |
ac1cb8d3 | 45028 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
45029 | esac |
45030 | ||
45031 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
45032 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
45033 | # The eval makes quoting arguments work. | |
45034 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
45035 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
45036 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
45037 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
45038 | { (exit 1); exit 1; }; } | |
45039 | fi | |
45040 | ||
07158944 | 45041 | cd "$ac_popdir" |
a848cd7e SC |
45042 | done |
45043 | fi | |
45044 | ||
45045 | ||
45046 | echo | |
77ffb593 | 45047 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 45048 | echo "" |
4d4ff94c | 45049 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 45050 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 45051 | |
77ffb593 JS |
45052 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
45053 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
45054 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 45055 | |
77ffb593 JS |
45056 | echo " What level of wxWidgets compatibility should be enabled?" |
45057 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
45058 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 45059 | |
77ffb593 | 45060 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
45061 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
45062 | echo " png ${wxUSE_LIBPNG-none}" | |
45063 | echo " regex ${wxUSE_REGEX}" | |
45064 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
45065 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
45066 | echo " xpm ${wxUSE_LIBXPM-none}" | |
45067 | fi | |
45068 | echo " zlib ${wxUSE_ZLIB}" | |
45069 | echo " odbc ${wxUSE_ODBC}" | |
45070 | echo " expat ${wxUSE_EXPAT}" | |
45071 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
45072 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 45073 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
45074 | |
45075 | echo "" | |
45076 |