]>
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. | |
7714864e | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3. |
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' | |
7714864e RL |
273 | PACKAGE_VERSION='2.5.3' |
274 | PACKAGE_STRING='wxWidgets 2.5.3' | |
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" | |
1e6eb025 | 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 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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_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 | |
7714864e | 797 | \`configure' configures wxWidgets 2.5.3 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 | |
7714864e | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.3:";; |
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 | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
a848cd7e SC |
908 | --enable-cmdline use wxCmdLineParser class |
909 | --enable-datetime use wxDateTime class | |
910 | --enable-dialupman use dialup network classes | |
911 | --enable-dynlib use wxLibrary class for DLL loading | |
912 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
913 | --enable-exceptions build exception-safe library | |
914 | --enable-ffile use wxFFile class | |
915 | --enable-file use wxFile class | |
916 | --enable-filesystem use virtual file systems classes | |
917 | --enable-fontmap use font encodings conversion classes | |
918 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
919 | --enable-fs_zip use virtual ZIP filesystems | |
920 | --enable-geometry use geometry class | |
921 | --enable-log use logging system | |
922 | --enable-longlong use wxLongLong class | |
923 | --enable-mimetype use wxMimeTypesManager | |
924 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
925 | --enable-snglinst use wxSingleInstanceChecker class | |
926 | --enable-streams use wxStream etc classes | |
927 | --enable-std_iostreams use standard C++ stream classes | |
928 | --enable-stopwatch use wxStopWatch class | |
929 | --enable-sysoptions use wxSystemOptions | |
930 | --enable-textbuf use wxTextBuffer class | |
931 | --enable-textfile use wxTextFile class | |
932 | --enable-timer use wxTimer class | |
933 | --enable-unicode compile wxString with Unicode support | |
934 | --enable-sound use wxSound class | |
3b57de8b | 935 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 936 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 937 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
938 | --enable-url use wxURL class |
939 | --enable-protocol use wxProtocol class | |
940 | --enable-protocol-http HTTP support in wxProtocol | |
941 | --enable-protocol-ftp FTP support in wxProtocol | |
942 | --enable-protocol-file FILE support in wxProtocol | |
943 | --enable-threads use threads | |
944 | --enable-docview use document view architecture | |
945 | --enable-help use help subsystem | |
946 | --enable-mshtmlhelp use MS HTML Help (win32) | |
947 | --enable-html use wxHTML sub-library | |
948 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 949 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
950 | --enable-constraints use layout-constraints system |
951 | --enable-printarch use printing architecture | |
952 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 953 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
954 | --enable-loggui use standard GUI logger |
955 | --enable-logwin use wxLogWindow | |
956 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 957 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
958 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
959 | --enable-prologio not available; see contrib | |
960 | --enable-resources not available; see contrib | |
961 | --enable-clipboard use wxClipboard class | |
962 | --enable-dnd use Drag'n'Drop classes | |
963 | --enable-metafile use win32 metafiles | |
964 | --enable-controls use all usual controls | |
965 | --enable-accel use accelerators | |
966 | --enable-button use wxButton class | |
967 | --enable-bmpbutton use wxBitmapButton class | |
968 | --enable-calendar use wxCalendarCtrl class | |
969 | --enable-caret use wxCaret class | |
970 | --enable-checkbox use wxCheckBox class | |
971 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
972 | --enable-choice use wxChoice class | |
92bbdbcd | 973 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
974 | --enable-combobox use wxComboBox class |
975 | --enable-display use wxDisplay class | |
976 | --enable-gauge use wxGauge class | |
977 | --enable-grid use wxGrid class | |
978 | --enable-imaglist use wxImageList class | |
979 | --enable-listbook use wxListbook class | |
980 | --enable-listbox use wxListBox class | |
981 | --enable-listctrl use wxListCtrl class | |
982 | --enable-notebook use wxNotebook class | |
983 | --enable-radiobox use wxRadioBox class | |
984 | --enable-radiobtn use wxRadioButton class | |
985 | --enable-sash use wxSashWindow class | |
986 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
987 | --enable-slider use wxSlider class | |
988 | --enable-spinbtn use wxSpinButton class | |
989 | --enable-spinctrl use wxSpinCtrl class | |
990 | --enable-splitter use wxSplitterWindow class | |
991 | --enable-statbmp use wxStaticBitmap class | |
992 | --enable-statbox use wxStaticBox class | |
993 | --enable-statline use wxStaticLine class | |
994 | --enable-stattext use wxStaticText class | |
995 | --enable-statusbar use wxStatusBar class | |
996 | --enable-tabdialog use wxTabControl class | |
997 | --enable-textctrl use wxTextCtrl class | |
998 | --enable-togglebtn use wxToggleButton class | |
999 | --enable-toolbar use wxToolBar class | |
1000 | --enable-tbarnative use native wxToolBar class | |
1001 | --enable-tbarsmpl use wxToolBarSimple class | |
1002 | --enable-treectrl use wxTreeCtrl class | |
1003 | --enable-tipwindow use wxTipWindow class | |
1004 | --enable-popupwin use wxPopUpWindow class | |
1005 | --enable-commondlg use all common dialogs | |
1006 | --enable-choicedlg use wxChoiceDialog | |
1007 | --enable-coldlg use wxColourDialog | |
1008 | --enable-filedlg use wxFileDialog | |
1009 | --enable-finddlg use wxFindReplaceDialog | |
1010 | --enable-fontdlg use wxFontDialog | |
1011 | --enable-dirdlg use wxDirDialog | |
1012 | --enable-msgdlg use wxMessageDialog | |
1013 | --enable-numberdlg use wxNumberEntryDialog | |
1014 | --enable-splash use wxSplashScreen | |
1015 | --enable-textdlg use wxTextDialog | |
1016 | --enable-tipdlg use startup tips | |
1017 | --enable-progressdlg use wxProgressDialog | |
1018 | --enable-wizarddlg use wxWizard | |
1019 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1020 | --enable-miniframe use wxMiniFrame class | |
1021 | --enable-tooltips use wxToolTip class | |
1022 | --enable-splines use spline drawing code | |
1023 | --enable-validators use wxValidator and derived classes | |
1024 | --enable-busyinfo use wxBusyInfo | |
1025 | --enable-joystick use wxJoystick (Linux only) | |
1026 | --enable-metafiles use wxMetaFile (Windows only) | |
1027 | --enable-dragimage use wxDragImage | |
1028 | --enable-accessibility enable accessibility support | |
1029 | --enable-palette use wxPalette class | |
1030 | --enable-image use wxImage class | |
1031 | --enable-gif use gif images (GIF file format) | |
1032 | --enable-pcx use pcx images (PCX file format) | |
1033 | --enable-iff use iff images (IFF file format) | |
1034 | --enable-pnm use pnm images (PNM file format) | |
1035 | --enable-xpm use xpm images (XPM file format) | |
1036 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1037 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1038 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1039 | --disable-largefile omit support for large files | |
1040 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1041 | --disable-gtktest Do not try to compile and run a test GTK program | |
1042 | --disable-sdltest Do not try to compile and run a test SDL program | |
1043 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1044 | --disable-precomp-headers |
1045 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1046 | |
1047 | Optional Packages: | |
1048 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1049 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1050 | --with-gtk use GTK+ | |
1051 | --with-motif use Motif/Lesstif | |
1052 | --with-mac use Mac OS X | |
1053 | --with-cocoa use Cocoa | |
1054 | --with-wine use Wine | |
1055 | --with-msw use MS-Windows | |
1056 | --with-pm use OS/2 Presentation Manager | |
1057 | --with-mgl use SciTech MGL | |
1058 | --with-microwin use MicroWindows | |
1059 | --with-x11 use X11 | |
1060 | --with-libpng use libpng (PNG image format) | |
1061 | --with-libjpeg use libjpeg (JPEG file format) | |
1062 | --with-libtiff use libtiff (TIFF file format) | |
1063 | --with-libxpm use libxpm (XPM file format) | |
1064 | --with-libmspack use libmspack (CHM help files loading) | |
1065 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1066 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1067 | --with-opengl use OpenGL (or Mesa) |
1068 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1069 | --with-regex enable support for wxRegEx class | |
1070 | --with-zlib use zlib for LZW compression | |
1071 | --with-odbc use the IODBC and wxODBC classes | |
1072 | --with-expat enable XML support using expat parser | |
ceec2216 | 1073 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1074 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1075 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1076 | --with-x use the X Window System | |
1077 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1078 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1079 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1080 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1081 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1082 | ||
1083 | Some influential environment variables: | |
dcc1b6ad VS |
1084 | CC C compiler command |
1085 | CFLAGS C compiler flags | |
1086 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1087 | nonstandard directory <lib dir> | |
1088 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1089 | headers in a nonstandard directory <include dir> | |
1090 | CPP C preprocessor | |
1091 | CXX C++ compiler command | |
1092 | CXXFLAGS C++ compiler flags | |
1093 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1094 | |
1095 | Use these variables to override the choices made by `configure' or to help | |
1096 | it to find libraries and programs with nonstandard names/locations. | |
1097 | ||
77ffb593 | 1098 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1099 | _ACEOF |
1100 | fi | |
1101 | ||
1102 | if test "$ac_init_help" = "recursive"; then | |
1103 | # If there are subdirs, report their specific --help. | |
1104 | ac_popdir=`pwd` | |
1105 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1106 | test -d $ac_dir || continue | |
1107 | ac_builddir=. | |
1108 | ||
1109 | if test "$ac_dir" != .; then | |
1110 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1111 | # A "../" for each directory in $ac_dir_suffix. | |
1112 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1113 | else | |
1114 | ac_dir_suffix= ac_top_builddir= | |
1115 | fi | |
1116 | ||
1117 | case $srcdir in | |
1118 | .) # No --srcdir option. We are building in place. | |
1119 | ac_srcdir=. | |
1120 | if test -z "$ac_top_builddir"; then | |
1121 | ac_top_srcdir=. | |
1122 | else | |
1123 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1124 | fi ;; | |
1125 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1126 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1127 | ac_top_srcdir=$srcdir ;; | |
1128 | *) # Relative path. | |
1129 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1130 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1131 | esac | |
ac1cb8d3 VS |
1132 | |
1133 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1134 | # the directories may not exist. | |
1135 | case `pwd` in | |
1136 | .) ac_abs_builddir="$ac_dir";; | |
1137 | *) | |
1138 | case "$ac_dir" in | |
1139 | .) ac_abs_builddir=`pwd`;; | |
1140 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1141 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1142 | esac;; | |
1143 | esac | |
1144 | case $ac_abs_builddir in | |
1145 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1146 | *) | |
1147 | case ${ac_top_builddir}. in | |
1148 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1149 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1150 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1151 | esac;; | |
1152 | esac | |
1153 | case $ac_abs_builddir in | |
1154 | .) ac_abs_srcdir=$ac_srcdir;; | |
1155 | *) | |
1156 | case $ac_srcdir in | |
1157 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1158 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1159 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1160 | esac;; | |
1161 | esac | |
1162 | case $ac_abs_builddir in | |
1163 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1164 | *) | |
1165 | case $ac_top_srcdir in | |
1166 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1167 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1168 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1169 | esac;; | |
1170 | esac | |
a848cd7e SC |
1171 | |
1172 | cd $ac_dir | |
1173 | # Check for guested configure; otherwise get Cygnus style configure. | |
1174 | if test -f $ac_srcdir/configure.gnu; then | |
1175 | echo | |
1176 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1177 | elif test -f $ac_srcdir/configure; then | |
1178 | echo | |
1179 | $SHELL $ac_srcdir/configure --help=recursive | |
1180 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1181 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1182 | echo |
1183 | $ac_configure --help | |
1184 | else | |
1185 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1186 | fi | |
04840eaa | 1187 | cd $ac_popdir |
a848cd7e SC |
1188 | done |
1189 | fi | |
1190 | ||
1191 | test -n "$ac_init_help" && exit 0 | |
1192 | if $ac_init_version; then | |
1193 | cat <<\_ACEOF | |
7714864e | 1194 | wxWidgets configure 2.5.3 |
ac1cb8d3 | 1195 | generated by GNU Autoconf 2.59 |
a848cd7e | 1196 | |
ac1cb8d3 | 1197 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1198 | This configure script is free software; the Free Software Foundation |
1199 | gives unlimited permission to copy, distribute and modify it. | |
1200 | _ACEOF | |
1201 | exit 0 | |
1202 | fi | |
1203 | exec 5>config.log | |
1204 | cat >&5 <<_ACEOF | |
1205 | This file contains any messages produced by compilers while | |
1206 | running configure, to aid debugging if configure makes a mistake. | |
1207 | ||
7714864e | 1208 | It was created by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 1209 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1210 | |
1211 | $ $0 $@ | |
1212 | ||
1213 | _ACEOF | |
1214 | { | |
1215 | cat <<_ASUNAME | |
1216 | ## --------- ## | |
1217 | ## Platform. ## | |
1218 | ## --------- ## | |
1219 | ||
1220 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1221 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1222 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1223 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1224 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1225 | ||
1226 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1227 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1228 | ||
1229 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1230 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1231 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1232 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1233 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1234 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1235 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1236 | ||
1237 | _ASUNAME | |
1238 | ||
1239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1240 | for as_dir in $PATH | |
1241 | do | |
1242 | IFS=$as_save_IFS | |
1243 | test -z "$as_dir" && as_dir=. | |
1244 | echo "PATH: $as_dir" | |
1245 | done | |
1246 | ||
1247 | } >&5 | |
1248 | ||
1249 | cat >&5 <<_ACEOF | |
1250 | ||
1251 | ||
1252 | ## ----------- ## | |
1253 | ## Core tests. ## | |
1254 | ## ----------- ## | |
1255 | ||
1256 | _ACEOF | |
1257 | ||
1258 | ||
1259 | # Keep a trace of the command line. | |
1260 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1261 | # Strip out --silent because we don't want to record it for future runs. | |
1262 | # Also quote any args containing shell meta-characters. | |
1263 | # Make two passes to allow for proper duplicate-argument suppression. | |
1264 | ac_configure_args= | |
1265 | ac_configure_args0= | |
1266 | ac_configure_args1= | |
1267 | ac_sep= | |
1268 | ac_must_keep_next=false | |
1269 | for ac_pass in 1 2 | |
1270 | do | |
1271 | for ac_arg | |
1272 | do | |
1273 | case $ac_arg in | |
1274 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1275 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1276 | | -silent | --silent | --silen | --sile | --sil) | |
1277 | continue ;; | |
1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1279 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1280 | esac | |
1281 | case $ac_pass in | |
1282 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1283 | 2) | |
1284 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1285 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1286 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1287 | else |
ac1cb8d3 VS |
1288 | case $ac_arg in |
1289 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1290 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1291 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1292 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1293 | case "$ac_configure_args0 " in | |
1294 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1295 | esac | |
1296 | ;; | |
1297 | -* ) ac_must_keep_next=true ;; | |
1298 | esac | |
a848cd7e SC |
1299 | fi |
1300 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1301 | # Get rid of the leading space. | |
1302 | ac_sep=" " | |
1303 | ;; | |
1304 | esac | |
1305 | done | |
1306 | done | |
1307 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1308 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1309 | ||
1310 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1311 | # config.log. We remove comments because anyway the quotes in there | |
1312 | # would cause problems or look ugly. | |
1313 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1314 | # such as our DU 5.0 friend, will then `close' the trap. | |
1315 | trap 'exit_status=$? | |
1316 | # Save into config.log some information that might help in debugging. | |
1317 | { | |
1318 | echo | |
1319 | ||
1320 | cat <<\_ASBOX | |
1321 | ## ---------------- ## | |
1322 | ## Cache variables. ## | |
1323 | ## ---------------- ## | |
1324 | _ASBOX | |
1325 | echo | |
1326 | # The following way of writing the cache mishandles newlines in values, | |
1327 | { | |
1328 | (set) 2>&1 | | |
1329 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1330 | *ac_space=\ *) | |
1331 | sed -n \ | |
ac1cb8d3 VS |
1332 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1333 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1334 | ;; |
1335 | *) | |
1336 | sed -n \ | |
ac1cb8d3 | 1337 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1338 | ;; |
1339 | esac; | |
1340 | } | |
1341 | echo | |
1342 | ||
1343 | cat <<\_ASBOX | |
1344 | ## ----------------- ## | |
1345 | ## Output variables. ## | |
1346 | ## ----------------- ## | |
1347 | _ASBOX | |
1348 | echo | |
1349 | for ac_var in $ac_subst_vars | |
1350 | do | |
1351 | eval ac_val=$`echo $ac_var` | |
1352 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1353 | done | sort | |
1354 | echo | |
1355 | ||
1356 | if test -n "$ac_subst_files"; then | |
1357 | cat <<\_ASBOX | |
1358 | ## ------------- ## | |
1359 | ## Output files. ## | |
1360 | ## ------------- ## | |
1361 | _ASBOX | |
1362 | echo | |
1363 | for ac_var in $ac_subst_files | |
1364 | do | |
1365 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1366 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1367 | done | sort |
1368 | echo | |
1369 | fi | |
1370 | ||
1371 | if test -s confdefs.h; then | |
1372 | cat <<\_ASBOX | |
1373 | ## ----------- ## | |
1374 | ## confdefs.h. ## | |
1375 | ## ----------- ## | |
1376 | _ASBOX | |
1377 | echo | |
1378 | sed "/^$/d" confdefs.h | sort | |
1379 | echo | |
1380 | fi | |
1381 | test "$ac_signal" != 0 && | |
1382 | echo "$as_me: caught signal $ac_signal" | |
1383 | echo "$as_me: exit $exit_status" | |
1384 | } >&5 | |
ac1cb8d3 | 1385 | rm -f core *.core && |
a848cd7e SC |
1386 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1387 | exit $exit_status | |
1388 | ' 0 | |
1389 | for ac_signal in 1 2 13 15; do | |
1390 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1391 | done | |
1392 | ac_signal=0 | |
1393 | ||
1394 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1395 | rm -rf conftest* confdefs.h | |
1396 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1397 | echo >confdefs.h | |
1398 | ||
1399 | # Predefined preprocessor variables. | |
1400 | ||
1401 | cat >>confdefs.h <<_ACEOF | |
1402 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1403 | _ACEOF | |
1404 | ||
1405 | ||
1406 | cat >>confdefs.h <<_ACEOF | |
1407 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1408 | _ACEOF | |
1409 | ||
1410 | ||
1411 | cat >>confdefs.h <<_ACEOF | |
1412 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1413 | _ACEOF | |
1414 | ||
1415 | ||
1416 | cat >>confdefs.h <<_ACEOF | |
1417 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1418 | _ACEOF | |
1419 | ||
1420 | ||
1421 | cat >>confdefs.h <<_ACEOF | |
1422 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1423 | _ACEOF | |
1424 | ||
1425 | ||
1426 | # Let the site file select an alternate cache file if it wants to. | |
1427 | # Prefer explicitly selected file to automatically selected ones. | |
1428 | if test -z "$CONFIG_SITE"; then | |
1429 | if test "x$prefix" != xNONE; then | |
1430 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1431 | else | |
1432 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1433 | fi | |
1434 | fi | |
1435 | for ac_site_file in $CONFIG_SITE; do | |
1436 | if test -r "$ac_site_file"; then | |
1437 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1438 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1439 | sed 's/^/| /' "$ac_site_file" >&5 | |
1440 | . "$ac_site_file" | |
1441 | fi | |
1442 | done | |
1443 | ||
1444 | if test -r "$cache_file"; then | |
1445 | # Some versions of bash will fail to source /dev/null (special | |
1446 | # files actually), so we avoid doing that. | |
1447 | if test -f "$cache_file"; then | |
1448 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1449 | echo "$as_me: loading cache $cache_file" >&6;} | |
1450 | case $cache_file in | |
1451 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1452 | *) . ./$cache_file;; | |
1453 | esac | |
1454 | fi | |
1455 | else | |
1456 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1457 | echo "$as_me: creating cache $cache_file" >&6;} | |
1458 | >$cache_file | |
1459 | fi | |
1460 | ||
1461 | # Check that the precious variables saved in the cache have kept the same | |
1462 | # value. | |
1463 | ac_cache_corrupted=false | |
1464 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1465 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1466 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1467 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1468 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1469 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1470 | case $ac_old_set,$ac_new_set in | |
1471 | set,) | |
1472 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1473 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1474 | ac_cache_corrupted=: ;; | |
1475 | ,set) | |
1476 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1477 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1478 | ac_cache_corrupted=: ;; | |
1479 | ,);; | |
1480 | *) | |
1481 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1482 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1483 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1484 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1485 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1486 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1487 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1488 | ac_cache_corrupted=: |
a848cd7e SC |
1489 | fi;; |
1490 | esac | |
1491 | # Pass precious variables to config.status. | |
1492 | if test "$ac_new_set" = set; then | |
1493 | case $ac_new_val in | |
1494 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1495 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1496 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1497 | esac | |
1498 | case " $ac_configure_args " in | |
1499 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1500 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1501 | esac | |
1502 | fi | |
1503 | done | |
1504 | if $ac_cache_corrupted; then | |
1505 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1506 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1507 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1508 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1509 | { (exit 1); exit 1; }; } | |
1510 | fi | |
1511 | ||
1512 | ac_ext=c | |
1513 | ac_cpp='$CPP $CPPFLAGS' | |
1514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1517 | ||
1518 | ||
1519 | ||
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 | ac_aux_dir= | |
1548 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1549 | if test -f $ac_dir/install-sh; then | |
1550 | ac_aux_dir=$ac_dir | |
1551 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1552 | break | |
1553 | elif test -f $ac_dir/install.sh; then | |
1554 | ac_aux_dir=$ac_dir | |
1555 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1556 | break | |
1557 | elif test -f $ac_dir/shtool; then | |
1558 | ac_aux_dir=$ac_dir | |
1559 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1560 | break | |
1561 | fi | |
1562 | done | |
1563 | if test -z "$ac_aux_dir"; then | |
1564 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1565 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1566 | { (exit 1); exit 1; }; } | |
1567 | fi | |
1568 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1569 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1570 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1571 | ||
1572 | # Make sure we can run config.sub. | |
1573 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1574 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1575 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1576 | { (exit 1); exit 1; }; } | |
1577 | ||
1578 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1579 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1580 | if test "${ac_cv_build+set}" = set; then | |
1581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1582 | else | |
1583 | ac_cv_build_alias=$build_alias | |
1584 | test -z "$ac_cv_build_alias" && | |
1585 | ac_cv_build_alias=`$ac_config_guess` | |
1586 | test -z "$ac_cv_build_alias" && | |
1587 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1588 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1589 | { (exit 1); exit 1; }; } | |
1590 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1591 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1592 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1593 | { (exit 1); exit 1; }; } | |
1594 | ||
1595 | fi | |
1596 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1597 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1598 | build=$ac_cv_build | |
1599 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1600 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1601 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1602 | ||
1603 | ||
1604 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1605 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1606 | if test "${ac_cv_host+set}" = set; then | |
1607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1608 | else | |
1609 | ac_cv_host_alias=$host_alias | |
1610 | test -z "$ac_cv_host_alias" && | |
1611 | ac_cv_host_alias=$ac_cv_build_alias | |
1612 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1613 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1614 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1615 | { (exit 1); exit 1; }; } | |
1616 | ||
1617 | fi | |
1618 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1619 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1620 | host=$ac_cv_host | |
1621 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1622 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1623 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1624 | ||
1625 | ||
1626 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1627 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1628 | if test "${ac_cv_target+set}" = set; then | |
1629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1630 | else | |
1631 | ac_cv_target_alias=$target_alias | |
1632 | test "x$ac_cv_target_alias" = "x" && | |
1633 | ac_cv_target_alias=$ac_cv_host_alias | |
1634 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1635 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1636 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1637 | { (exit 1); exit 1; }; } | |
1638 | ||
1639 | fi | |
1640 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1641 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1642 | target=$ac_cv_target | |
1643 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1644 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1645 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1646 | ||
1647 | ||
1648 | # The aliases save the names the user supplied, while $host etc. | |
1649 | # will get canonicalized. | |
1650 | test -n "$target_alias" && | |
1651 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1652 | NONENONEs,x,x, && | |
1653 | program_prefix=${target_alias}- | |
1654 | ||
1655 | ||
1656 | ||
ceec2216 RL |
1657 | wx_major_version_number=2 |
1658 | wx_minor_version_number=5 | |
7714864e | 1659 | wx_release_number=3 |
0210f373 | 1660 | wx_subrelease_number=3 |
a848cd7e | 1661 | |
ceec2216 RL |
1662 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1663 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1664 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1665 | |
ceec2216 | 1666 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1667 | |
e653e181 | 1668 | WX_CURRENT=3 |
a848cd7e | 1669 | WX_REVISION=0 |
0210f373 | 1670 | WX_AGE=3 |
a848cd7e SC |
1671 | |
1672 | ||
1673 | ||
1674 | USE_UNIX=1 | |
1675 | USE_OS2=0 | |
1676 | USE_WIN32=0 | |
1677 | USE_DOS=0 | |
1678 | USE_BEOS=0 | |
1679 | USE_MAC=0 | |
1680 | ||
1681 | USE_AIX= | |
1682 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1683 | USE_GNU= USE_HPUX= | |
1684 | USE_LINUX= | |
1685 | USE_NETBSD= | |
1686 | USE_OPENBSD= | |
1687 | USE_OSF= USE_SGI= | |
1688 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1689 | USE_ULTRIX= | |
1690 | USE_UNIXWARE= | |
1691 | ||
1692 | USE_ALPHA= | |
1693 | ||
1694 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1695 | ||
1696 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1697 | ||
1698 | DEFAULT_wxUSE_COCOA=0 | |
1699 | DEFAULT_wxUSE_GTK=0 | |
1700 | DEFAULT_wxUSE_MAC=0 | |
1701 | DEFAULT_wxUSE_MGL=0 | |
1702 | DEFAULT_wxUSE_MICROWIN=0 | |
1703 | DEFAULT_wxUSE_MOTIF=0 | |
1704 | DEFAULT_wxUSE_MSW=0 | |
1705 | DEFAULT_wxUSE_PM=0 | |
1706 | DEFAULT_wxUSE_X11=0 | |
1707 | ||
1708 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1717 | ||
1718 | PROGRAM_EXT= | |
1719 | SO_SUFFIX=so | |
1720 | SAMPLES_RPATH_FLAG= | |
1721 | SAMPLES_RPATH_POSTLINK= | |
1722 | ||
1723 | case "${host}" in | |
1724 | *-hp-hpux* ) | |
1725 | USE_HPUX=1 | |
1726 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1727 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1728 | SO_SUFFIX=sl | |
1729 | cat >>confdefs.h <<\_ACEOF | |
1730 | #define __HPUX__ 1 | |
1731 | _ACEOF | |
1732 | ||
1733 | ;; | |
1734 | *-*-linux* ) | |
1735 | USE_LINUX=1 | |
1736 | cat >>confdefs.h <<\_ACEOF | |
1737 | #define __LINUX__ 1 | |
1738 | _ACEOF | |
1739 | ||
1740 | TMP=`uname -m` | |
1741 | if test "x$TMP" = "xalpha"; then | |
1742 | USE_ALPHA=1 | |
1743 | cat >>confdefs.h <<\_ACEOF | |
1744 | #define __ALPHA__ 1 | |
1745 | _ACEOF | |
1746 | ||
1747 | fi | |
1748 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1749 | ;; | |
1750 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1751 | USE_GNU=1 | |
1752 | TMP=`uname -m` | |
1753 | if test "x$TMP" = "xalpha"; then | |
1754 | USE_ALPHA=1 | |
1755 | cat >>confdefs.h <<\_ACEOF | |
1756 | #define __ALPHA__ 1 | |
1757 | _ACEOF | |
1758 | ||
1759 | fi | |
1760 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1761 | ;; | |
1762 | *-*-irix5* | *-*-irix6* ) | |
1763 | USE_SGI=1 | |
1764 | USE_SVR4=1 | |
1765 | cat >>confdefs.h <<\_ACEOF | |
1766 | #define __SGI__ 1 | |
1767 | _ACEOF | |
1768 | ||
1769 | cat >>confdefs.h <<\_ACEOF | |
1770 | #define __SVR4__ 1 | |
1771 | _ACEOF | |
1772 | ||
1773 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1774 | ;; | |
1775 | *-*-solaris2* ) | |
1776 | USE_SUN=1 | |
1777 | USE_SOLARIS=1 | |
1778 | USE_SVR4=1 | |
1779 | cat >>confdefs.h <<\_ACEOF | |
1780 | #define __SUN__ 1 | |
1781 | _ACEOF | |
1782 | ||
1783 | cat >>confdefs.h <<\_ACEOF | |
1784 | #define __SOLARIS__ 1 | |
1785 | _ACEOF | |
1786 | ||
1787 | cat >>confdefs.h <<\_ACEOF | |
1788 | #define __SVR4__ 1 | |
1789 | _ACEOF | |
1790 | ||
1791 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1792 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1793 | ;; | |
1794 | *-*-sunos4* ) | |
1795 | USE_SUN=1 | |
1796 | USE_SUNOS=1 | |
1797 | USE_BSD=1 | |
1798 | cat >>confdefs.h <<\_ACEOF | |
1799 | #define __SUN__ 1 | |
1800 | _ACEOF | |
1801 | ||
1802 | cat >>confdefs.h <<\_ACEOF | |
1803 | #define __SUNOS__ 1 | |
1804 | _ACEOF | |
1805 | ||
1806 | cat >>confdefs.h <<\_ACEOF | |
1807 | #define __BSD__ 1 | |
1808 | _ACEOF | |
1809 | ||
1810 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1811 | ;; | |
1812 | *-*-freebsd*) | |
1813 | USE_BSD=1 | |
1814 | USE_FREEBSD=1 | |
1815 | cat >>confdefs.h <<\_ACEOF | |
1816 | #define __FREEBSD__ 1 | |
1817 | _ACEOF | |
1818 | ||
1819 | cat >>confdefs.h <<\_ACEOF | |
1820 | #define __BSD__ 1 | |
1821 | _ACEOF | |
1822 | ||
1823 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1824 | ;; | |
1825 | *-*-openbsd*) | |
1826 | USE_BSD=1 | |
1827 | USE_OPENBSD=1 | |
1828 | cat >>confdefs.h <<\_ACEOF | |
1829 | #define __OPENBSD__ 1 | |
1830 | _ACEOF | |
1831 | ||
1832 | cat >>confdefs.h <<\_ACEOF | |
1833 | #define __BSD__ 1 | |
1834 | _ACEOF | |
1835 | ||
1836 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1837 | ;; | |
1838 | *-*-netbsd*) | |
1839 | USE_BSD=1 | |
1840 | USE_NETBSD=1 | |
1841 | cat >>confdefs.h <<\_ACEOF | |
1842 | #define __NETBSD__ 1 | |
1843 | _ACEOF | |
1844 | ||
1845 | cat >>confdefs.h <<\_ACEOF | |
1846 | #define __BSD__ 1 | |
1847 | _ACEOF | |
1848 | ||
1849 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1850 | ;; | |
1851 | *-*-osf* ) | |
1852 | USE_ALPHA=1 | |
1853 | USE_OSF=1 | |
1854 | cat >>confdefs.h <<\_ACEOF | |
1855 | #define __ALPHA__ 1 | |
1856 | _ACEOF | |
1857 | ||
1858 | cat >>confdefs.h <<\_ACEOF | |
1859 | #define __OSF__ 1 | |
1860 | _ACEOF | |
1861 | ||
1862 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1863 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1864 | ;; | |
1865 | *-*-dgux5* ) | |
1866 | USE_ALPHA=1 | |
1867 | USE_SVR4=1 | |
1868 | cat >>confdefs.h <<\_ACEOF | |
1869 | #define __ALPHA__ 1 | |
1870 | _ACEOF | |
1871 | ||
1872 | cat >>confdefs.h <<\_ACEOF | |
1873 | #define __SVR4__ 1 | |
1874 | _ACEOF | |
1875 | ||
1876 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1877 | ;; | |
1878 | *-*-sysv5* ) | |
1879 | USE_SYSV=1 | |
1880 | USE_SVR4=1 | |
1881 | cat >>confdefs.h <<\_ACEOF | |
1882 | #define __SYSV__ 1 | |
1883 | _ACEOF | |
1884 | ||
1885 | cat >>confdefs.h <<\_ACEOF | |
1886 | #define __SVR4__ 1 | |
1887 | _ACEOF | |
1888 | ||
1889 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1890 | ;; | |
1891 | *-*-aix* ) | |
1892 | USE_AIX=1 | |
1893 | USE_SYSV=1 | |
1894 | USE_SVR4=1 | |
1895 | SO_SUFFIX=a | |
1896 | cat >>confdefs.h <<\_ACEOF | |
1897 | #define __AIX__ 1 | |
1898 | _ACEOF | |
1899 | ||
1900 | cat >>confdefs.h <<\_ACEOF | |
1901 | #define __SYSV__ 1 | |
1902 | _ACEOF | |
1903 | ||
1904 | cat >>confdefs.h <<\_ACEOF | |
1905 | #define __SVR4__ 1 | |
1906 | _ACEOF | |
1907 | ||
1908 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1909 | ;; | |
1910 | ||
1911 | *-*-*UnixWare*) | |
1912 | USE_SYSV=1 | |
1913 | USE_SVR4=1 | |
1914 | USE_UNIXWARE=1 | |
1915 | cat >>confdefs.h <<\_ACEOF | |
1916 | #define __UNIXWARE__ 1 | |
1917 | _ACEOF | |
1918 | ||
1919 | ;; | |
1920 | ||
1921 | *-*-cygwin* | *-*-mingw32* ) | |
1922 | SO_SUFFIX=dll | |
1923 | PROGRAM_EXT=".exe" | |
1924 | RESCOMP=windres | |
1925 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1926 | ;; | |
1927 | ||
1928 | *-pc-msdosdjgpp ) | |
1929 | USE_UNIX=0 | |
1930 | USE_DOS=1 | |
1931 | cat >>confdefs.h <<\_ACEOF | |
1932 | #define __DOS__ 1 | |
1933 | _ACEOF | |
1934 | ||
1935 | PROGRAM_EXT=".exe" | |
1936 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1937 | LIBS="$LIBS -lstdc++" | |
1938 | ;; | |
1939 | ||
1940 | *-pc-os2_emx | *-pc-os2-emx ) | |
1941 | cat >>confdefs.h <<\_ACEOF | |
1942 | #define __EMX__ 1 | |
1943 | _ACEOF | |
1944 | ||
1945 | USE_OS2=1 | |
1946 | cat >>confdefs.h <<\_ACEOF | |
1947 | #define __OS2__ 1 | |
1948 | _ACEOF | |
1949 | ||
1950 | PROGRAM_EXT=".exe" | |
1951 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1952 | CXX=gcc | |
1953 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1954 | ac_executable_extensions=".exe" | |
1955 | export ac_executable_extensions | |
1956 | ac_save_IFS="$IFS" | |
1957 | IFS='\\' | |
1958 | ac_TEMP_PATH= | |
1959 | for ac_dir in $PATH; do | |
1960 | IFS=$ac_save_IFS | |
1961 | if test -z "$ac_TEMP_PATH"; then | |
1962 | ac_TEMP_PATH="$ac_dir" | |
1963 | else | |
1964 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1965 | fi | |
1966 | done | |
1967 | export PATH="$ac_TEMP_PATH" | |
1968 | unset ac_TEMP_PATH | |
1969 | ;; | |
1970 | ||
1971 | powerpc-*-darwin* ) | |
1972 | USE_BSD=1 | |
1973 | USE_DARWIN=1 | |
1974 | SO_SUFFIX=dylib | |
1975 | cat >>confdefs.h <<\_ACEOF | |
1976 | #define __BSD__ 1 | |
1977 | _ACEOF | |
1978 | ||
1979 | cat >>confdefs.h <<\_ACEOF | |
1980 | #define __DARWIN__ 1 | |
1981 | _ACEOF | |
1982 | ||
1983 | cat >>confdefs.h <<\_ACEOF | |
1984 | #define __POWERPC__ 1 | |
1985 | _ACEOF | |
1986 | ||
1987 | cat >>confdefs.h <<\_ACEOF | |
1988 | #define TARGET_CARBON 1 | |
1989 | _ACEOF | |
1990 | ||
1991 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1992 | ;; | |
1e9e8aba DE |
1993 | powerpc-apple-macos* ) |
1994 | USE_UNIX=0 | |
1995 | ac_cv_c_bigendian=yes | |
1996 | SO_SUFFIX=shlib | |
1997 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1998 | ;; | |
a848cd7e SC |
1999 | |
2000 | *-*-beos* ) | |
2001 | USE_BEOS=1 | |
2002 | cat >>confdefs.h <<\_ACEOF | |
2003 | #define __BEOS__ 1 | |
2004 | _ACEOF | |
2005 | ||
2006 | ;; | |
2007 | ||
2008 | *) | |
2009 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2010 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2011 | { (exit 1); exit 1; }; } | |
2012 | esac | |
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | wx_arg_cache_file="configarg.cache" | |
2018 | echo "loading argument cache $wx_arg_cache_file" | |
2019 | rm -f ${wx_arg_cache_file}.tmp | |
2020 | touch ${wx_arg_cache_file}.tmp | |
2021 | touch ${wx_arg_cache_file} | |
2022 | ||
2023 | ||
2024 | DEBUG_CONFIGURE=0 | |
2025 | if test $DEBUG_CONFIGURE = 1; then | |
2026 | DEFAULT_wxUSE_UNIVERSAL=no | |
2027 | DEFAULT_wxUSE_STL=no | |
2028 | ||
2029 | DEFAULT_wxUSE_NANOX=no | |
2030 | ||
2031 | DEFAULT_wxUSE_THREADS=yes | |
2032 | ||
2033 | DEFAULT_wxUSE_SHARED=yes | |
2034 | DEFAULT_wxUSE_OPTIMISE=no | |
2035 | DEFAULT_wxUSE_PROFILE=no | |
2036 | DEFAULT_wxUSE_NO_DEPS=no | |
2037 | DEFAULT_wxUSE_NO_RTTI=no | |
2038 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2039 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2040 | DEFAULT_wxUSE_PERMISSIVE=no |
2041 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2042 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2043 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2044 | DEFAULT_wxUSE_MEM_TRACING=no | |
2045 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2046 | DEFAULT_wxUSE_DMALLOC=no | |
2047 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2048 | ||
2049 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2050 | DEFAULT_wxUSE_LOG=yes | |
2051 | DEFAULT_wxUSE_LOGWINDOW=no | |
2052 | DEFAULT_wxUSE_LOGGUI=no | |
2053 | DEFAULT_wxUSE_LOGDIALOG=no | |
2054 | ||
2055 | DEFAULT_wxUSE_GUI=yes | |
2056 | DEFAULT_wxUSE_CONTROLS=no | |
2057 | ||
2058 | DEFAULT_wxUSE_REGEX=no | |
2059 | DEFAULT_wxUSE_XML=no | |
2060 | DEFAULT_wxUSE_EXPAT=no | |
2061 | DEFAULT_wxUSE_ZLIB=no | |
2062 | DEFAULT_wxUSE_LIBPNG=no | |
2063 | DEFAULT_wxUSE_LIBJPEG=no | |
2064 | DEFAULT_wxUSE_LIBTIFF=no | |
2065 | DEFAULT_wxUSE_LIBXPM=no | |
2066 | DEFAULT_wxUSE_LIBMSPACK=no | |
2067 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2068 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2069 | DEFAULT_wxUSE_ODBC=no |
2070 | DEFAULT_wxUSE_OPENGL=no | |
2071 | ||
2072 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2073 | DEFAULT_wxUSE_STACKWALKER=no |
a848cd7e SC |
2074 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2075 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2076 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2077 | DEFAULT_wxUSE_DATETIME=no | |
2078 | DEFAULT_wxUSE_TIMER=no | |
2079 | DEFAULT_wxUSE_STOPWATCH=no | |
2080 | DEFAULT_wxUSE_FILE=no | |
2081 | DEFAULT_wxUSE_FFILE=no | |
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 | |
2156 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2157 | DEFAULT_wxUSE_VALIDATORS=no |
2158 | ||
2159 | DEFAULT_wxUSE_ACCEL=no | |
2160 | DEFAULT_wxUSE_BUTTON=no | |
2161 | DEFAULT_wxUSE_BMPBUTTON=no | |
2162 | DEFAULT_wxUSE_CALCTRL=no | |
2163 | DEFAULT_wxUSE_CARET=no | |
2164 | DEFAULT_wxUSE_CHECKBOX=no | |
2165 | DEFAULT_wxUSE_CHECKLST=no | |
2166 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2167 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2168 | DEFAULT_wxUSE_COMBOBOX=no |
2169 | DEFAULT_wxUSE_DISPLAY=no | |
2170 | DEFAULT_wxUSE_GAUGE=no | |
2171 | DEFAULT_wxUSE_GRID=no | |
2172 | DEFAULT_wxUSE_IMAGLIST=no | |
2173 | DEFAULT_wxUSE_LISTBOOK=no | |
2174 | DEFAULT_wxUSE_LISTBOX=no | |
2175 | DEFAULT_wxUSE_LISTCTRL=no | |
2176 | DEFAULT_wxUSE_NOTEBOOK=no | |
2177 | DEFAULT_wxUSE_RADIOBOX=no | |
2178 | DEFAULT_wxUSE_RADIOBTN=no | |
2179 | DEFAULT_wxUSE_SASH=no | |
2180 | DEFAULT_wxUSE_SCROLLBAR=no | |
2181 | DEFAULT_wxUSE_SLIDER=no | |
2182 | DEFAULT_wxUSE_SPINBTN=no | |
2183 | DEFAULT_wxUSE_SPINCTRL=no | |
2184 | DEFAULT_wxUSE_SPLITTER=no | |
2185 | DEFAULT_wxUSE_STATBMP=no | |
2186 | DEFAULT_wxUSE_STATBOX=no | |
2187 | DEFAULT_wxUSE_STATLINE=no | |
2188 | DEFAULT_wxUSE_STATTEXT=no | |
2189 | DEFAULT_wxUSE_STATUSBAR=yes | |
2190 | DEFAULT_wxUSE_TABDIALOG=no | |
2191 | DEFAULT_wxUSE_TEXTCTRL=no | |
2192 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2193 | DEFAULT_wxUSE_TOOLBAR=no | |
2194 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2195 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2196 | DEFAULT_wxUSE_TREECTRL=no | |
2197 | DEFAULT_wxUSE_POPUPWIN=no | |
2198 | DEFAULT_wxUSE_TIPWINDOW=no | |
2199 | ||
2200 | DEFAULT_wxUSE_UNICODE=no | |
2201 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2202 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2203 | ||
2204 | DEFAULT_wxUSE_PALETTE=no | |
2205 | DEFAULT_wxUSE_IMAGE=no | |
2206 | DEFAULT_wxUSE_GIF=no | |
2207 | DEFAULT_wxUSE_PCX=no | |
2208 | DEFAULT_wxUSE_PNM=no | |
2209 | DEFAULT_wxUSE_IFF=no | |
2210 | DEFAULT_wxUSE_XPM=no | |
2211 | DEFAULT_wxUSE_ICO_CUR=no | |
2212 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2213 | ||
2214 | DEFAULT_wxUSE_MONOLITHIC=no | |
2215 | DEFAULT_wxUSE_PLUGINS=no | |
2216 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2217 | else | |
2218 | DEFAULT_wxUSE_UNIVERSAL=no | |
2219 | DEFAULT_wxUSE_STL=no | |
2220 | ||
2221 | DEFAULT_wxUSE_NANOX=no | |
2222 | ||
2223 | DEFAULT_wxUSE_THREADS=yes | |
2224 | ||
2225 | DEFAULT_wxUSE_SHARED=yes | |
2226 | DEFAULT_wxUSE_OPTIMISE=yes | |
2227 | DEFAULT_wxUSE_PROFILE=no | |
2228 | DEFAULT_wxUSE_NO_DEPS=no | |
2229 | DEFAULT_wxUSE_NO_RTTI=no | |
2230 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2231 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2232 | DEFAULT_wxUSE_PERMISSIVE=no |
2233 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2234 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2235 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2236 | DEFAULT_wxUSE_MEM_TRACING=no | |
2237 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2238 | DEFAULT_wxUSE_DMALLOC=no | |
2239 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2240 | ||
2241 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2242 | DEFAULT_wxUSE_LOG=yes | |
2243 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2244 | DEFAULT_wxUSE_LOGGUI=yes | |
2245 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2246 | ||
2247 | DEFAULT_wxUSE_GUI=yes | |
2248 | ||
2249 | DEFAULT_wxUSE_REGEX=yes | |
2250 | DEFAULT_wxUSE_XML=yes | |
2251 | DEFAULT_wxUSE_EXPAT=yes | |
2252 | DEFAULT_wxUSE_ZLIB=yes | |
2253 | DEFAULT_wxUSE_LIBPNG=yes | |
2254 | DEFAULT_wxUSE_LIBJPEG=yes | |
2255 | DEFAULT_wxUSE_LIBTIFF=yes | |
2256 | DEFAULT_wxUSE_LIBXPM=yes | |
2257 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2258 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2259 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2260 | DEFAULT_wxUSE_ODBC=no |
2261 | DEFAULT_wxUSE_OPENGL=no | |
2262 | ||
2263 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2264 | DEFAULT_wxUSE_STACKWALKER=yes |
a848cd7e SC |
2265 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
2266 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2267 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2268 | DEFAULT_wxUSE_DATETIME=yes | |
2269 | DEFAULT_wxUSE_TIMER=yes | |
2270 | DEFAULT_wxUSE_STOPWATCH=yes | |
2271 | DEFAULT_wxUSE_FILE=yes | |
2272 | DEFAULT_wxUSE_FFILE=yes | |
2273 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2274 | DEFAULT_wxUSE_TEXTFILE=yes | |
2275 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2276 | DEFAULT_wxUSE_MEDIACTRL=no |
2277 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2278 | DEFAULT_wxUSE_INTL=yes |
2279 | DEFAULT_wxUSE_CONFIG=yes | |
2280 | DEFAULT_wxUSE_FONTMAP=yes | |
2281 | DEFAULT_wxUSE_STREAMS=yes | |
2282 | DEFAULT_wxUSE_SOCKETS=yes | |
2283 | DEFAULT_wxUSE_OLE=yes | |
2284 | DEFAULT_wxUSE_DATAOBJ=yes | |
2285 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2286 | DEFAULT_wxUSE_JOYSTICK=yes | |
2287 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2288 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2289 | DEFAULT_wxUSE_LONGLONG=yes | |
2290 | DEFAULT_wxUSE_GEOMETRY=yes | |
2291 | ||
2292 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2293 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2294 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2295 | ||
2296 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2297 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2298 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2299 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2300 | DEFAULT_wxUSE_SPLINES=yes | |
2301 | ||
8a7b1113 | 2302 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2303 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2304 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2305 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2306 | ||
2307 | DEFAULT_wxUSE_RESOURCES=no | |
2308 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2309 | DEFAULT_wxUSE_IPC=yes | |
2310 | DEFAULT_wxUSE_HELP=yes | |
2311 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2312 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2313 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2314 | DEFAULT_wxUSE_METAFILE=yes | |
2315 | DEFAULT_wxUSE_MIMETYPE=yes | |
2316 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2317 | DEFAULT_wxUSE_PROTOCOL=yes | |
2318 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2319 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2320 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2321 | DEFAULT_wxUSE_URL=yes | |
2322 | ||
2323 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2324 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2325 | DEFAULT_wxUSE_COLOURDLG=yes | |
2326 | DEFAULT_wxUSE_DIRDLG=yes | |
2327 | DEFAULT_wxUSE_FILEDLG=yes | |
2328 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2329 | DEFAULT_wxUSE_FONTDLG=yes | |
2330 | DEFAULT_wxUSE_MSGDLG=yes | |
2331 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2332 | DEFAULT_wxUSE_TEXTDLG=yes | |
2333 | DEFAULT_wxUSE_SPLASH=yes | |
2334 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2335 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2336 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2337 | ||
2338 | DEFAULT_wxUSE_MENUS=yes | |
2339 | DEFAULT_wxUSE_MINIFRAME=yes | |
2340 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2341 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2342 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2343 | DEFAULT_wxUSE_FILESYSTEM=yes |
2344 | DEFAULT_wxUSE_FS_INET=yes | |
2345 | DEFAULT_wxUSE_FS_ZIP=yes | |
2346 | DEFAULT_wxUSE_BUSYINFO=yes | |
2347 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2348 | DEFAULT_wxUSE_VALIDATORS=yes |
2349 | ||
2350 | DEFAULT_wxUSE_ACCEL=yes | |
2351 | DEFAULT_wxUSE_BUTTON=yes | |
2352 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2353 | DEFAULT_wxUSE_CALCTRL=yes | |
2354 | DEFAULT_wxUSE_CARET=yes | |
2355 | DEFAULT_wxUSE_CHECKBOX=yes | |
2356 | DEFAULT_wxUSE_CHECKLST=yes | |
2357 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2358 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2359 | DEFAULT_wxUSE_COMBOBOX=yes |
2360 | DEFAULT_wxUSE_DISPLAY=yes | |
2361 | DEFAULT_wxUSE_GAUGE=yes | |
2362 | DEFAULT_wxUSE_GRID=yes | |
2363 | DEFAULT_wxUSE_IMAGLIST=yes | |
2364 | DEFAULT_wxUSE_LISTBOOK=yes | |
2365 | DEFAULT_wxUSE_LISTBOX=yes | |
2366 | DEFAULT_wxUSE_LISTCTRL=yes | |
2367 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2368 | DEFAULT_wxUSE_RADIOBOX=yes | |
2369 | DEFAULT_wxUSE_RADIOBTN=yes | |
2370 | DEFAULT_wxUSE_SASH=yes | |
2371 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2372 | DEFAULT_wxUSE_SLIDER=yes | |
2373 | DEFAULT_wxUSE_SPINBTN=yes | |
2374 | DEFAULT_wxUSE_SPINCTRL=yes | |
2375 | DEFAULT_wxUSE_SPLITTER=yes | |
2376 | DEFAULT_wxUSE_STATBMP=yes | |
2377 | DEFAULT_wxUSE_STATBOX=yes | |
2378 | DEFAULT_wxUSE_STATLINE=yes | |
2379 | DEFAULT_wxUSE_STATTEXT=yes | |
2380 | DEFAULT_wxUSE_STATUSBAR=yes | |
2381 | DEFAULT_wxUSE_TABDIALOG=no | |
2382 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2383 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2384 | DEFAULT_wxUSE_TOOLBAR=yes | |
2385 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2386 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2387 | DEFAULT_wxUSE_TREECTRL=yes | |
2388 | DEFAULT_wxUSE_POPUPWIN=yes | |
2389 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2390 | ||
2391 | DEFAULT_wxUSE_UNICODE=no | |
2392 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2393 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2394 | ||
2395 | DEFAULT_wxUSE_PALETTE=yes | |
2396 | DEFAULT_wxUSE_IMAGE=yes | |
2397 | DEFAULT_wxUSE_GIF=yes | |
2398 | DEFAULT_wxUSE_PCX=yes | |
2399 | DEFAULT_wxUSE_IFF=no | |
2400 | DEFAULT_wxUSE_PNM=yes | |
2401 | DEFAULT_wxUSE_XPM=yes | |
2402 | DEFAULT_wxUSE_ICO_CUR=yes | |
2403 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2404 | ||
2405 | DEFAULT_wxUSE_MONOLITHIC=no | |
2406 | DEFAULT_wxUSE_PLUGINS=no | |
2407 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2408 | |
2409 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2410 | fi |
2411 | ||
2412 | ||
2413 | ||
2414 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2415 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2416 | if test "x$LINE" != "x" ; then | |
2417 | has_toolkit_in_cache=1 | |
2418 | eval "DEFAULT_$LINE" | |
2419 | eval "CACHE_$toolkit=1" | |
2420 | fi | |
2421 | done | |
2422 | ||
2423 | ||
2424 | ||
2425 | enablestring= | |
2426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2427 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2428 | no_cache=0 | |
2429 | # Check whether --enable-gui or --disable-gui was given. | |
2430 | if test "${enable_gui+set}" = set; then | |
2431 | enableval="$enable_gui" | |
2432 | ||
2433 | if test "$enableval" = yes; then | |
2434 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2435 | else | |
2436 | ac_cv_use_gui='wxUSE_GUI=no' | |
2437 | fi | |
2438 | ||
2439 | else | |
2440 | ||
2441 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2442 | if test "x$LINE" != x ; then | |
2443 | eval "DEFAULT_$LINE" | |
2444 | else | |
2445 | no_cache=1 | |
2446 | fi | |
2447 | ||
2448 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2449 | ||
2450 | fi; | |
2451 | ||
2452 | eval "$ac_cv_use_gui" | |
2453 | if test "$no_cache" != 1; then | |
2454 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2455 | fi | |
2456 | ||
2457 | if test "$wxUSE_GUI" = yes; then | |
2458 | echo "$as_me:$LINENO: result: yes" >&5 | |
2459 | echo "${ECHO_T}yes" >&6 | |
2460 | else | |
2461 | echo "$as_me:$LINENO: result: no" >&5 | |
2462 | echo "${ECHO_T}no" >&6 | |
2463 | fi | |
2464 | ||
2465 | ||
2466 | enablestring= | |
2467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2468 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2469 | no_cache=0 | |
2470 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2471 | if test "${enable_monolithic+set}" = set; then | |
2472 | enableval="$enable_monolithic" | |
2473 | ||
2474 | if test "$enableval" = yes; then | |
2475 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2476 | else | |
2477 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2478 | fi | |
2479 | ||
2480 | else | |
2481 | ||
2482 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2483 | if test "x$LINE" != x ; then | |
2484 | eval "DEFAULT_$LINE" | |
2485 | else | |
2486 | no_cache=1 | |
2487 | fi | |
2488 | ||
2489 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2490 | ||
2491 | fi; | |
2492 | ||
2493 | eval "$ac_cv_use_monolithic" | |
2494 | if test "$no_cache" != 1; then | |
2495 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2496 | fi | |
2497 | ||
2498 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2499 | echo "$as_me:$LINENO: result: yes" >&5 | |
2500 | echo "${ECHO_T}yes" >&6 | |
2501 | else | |
2502 | echo "$as_me:$LINENO: result: no" >&5 | |
2503 | echo "${ECHO_T}no" >&6 | |
2504 | fi | |
2505 | ||
2506 | ||
2507 | enablestring= | |
2508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2509 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2510 | no_cache=0 | |
2511 | # Check whether --enable-plugins or --disable-plugins was given. | |
2512 | if test "${enable_plugins+set}" = set; then | |
2513 | enableval="$enable_plugins" | |
2514 | ||
2515 | if test "$enableval" = yes; then | |
2516 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2517 | else | |
2518 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2519 | fi | |
2520 | ||
2521 | else | |
2522 | ||
2523 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2524 | if test "x$LINE" != x ; then | |
2525 | eval "DEFAULT_$LINE" | |
2526 | else | |
2527 | no_cache=1 | |
2528 | fi | |
2529 | ||
2530 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2531 | ||
2532 | fi; | |
2533 | ||
2534 | eval "$ac_cv_use_plugins" | |
2535 | if test "$no_cache" != 1; then | |
2536 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2537 | fi | |
2538 | ||
2539 | if test "$wxUSE_PLUGINS" = yes; then | |
2540 | echo "$as_me:$LINENO: result: yes" >&5 | |
2541 | echo "${ECHO_T}yes" >&6 | |
2542 | else | |
2543 | echo "$as_me:$LINENO: result: no" >&5 | |
2544 | echo "${ECHO_T}no" >&6 | |
2545 | fi | |
2546 | ||
2547 | ||
2548 | if test "$wxUSE_GUI" = "yes"; then | |
2549 | ||
2550 | ||
2551 | enablestring= | |
2552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2553 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2554 | no_cache=0 | |
2555 | # Check whether --enable-universal or --disable-universal was given. | |
2556 | if test "${enable_universal+set}" = set; then | |
2557 | enableval="$enable_universal" | |
2558 | ||
2559 | if test "$enableval" = yes; then | |
2560 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2561 | else | |
2562 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2563 | fi | |
2564 | ||
2565 | else | |
2566 | ||
2567 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2568 | if test "x$LINE" != x ; then | |
2569 | eval "DEFAULT_$LINE" | |
2570 | else | |
2571 | no_cache=1 | |
2572 | fi | |
2573 | ||
2574 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2575 | ||
2576 | fi; | |
2577 | ||
2578 | eval "$ac_cv_use_universal" | |
2579 | if test "$no_cache" != 1; then | |
2580 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2581 | fi | |
2582 | ||
2583 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2584 | echo "$as_me:$LINENO: result: yes" >&5 | |
2585 | echo "${ECHO_T}yes" >&6 | |
2586 | else | |
2587 | echo "$as_me:$LINENO: result: no" >&5 | |
2588 | echo "${ECHO_T}no" >&6 | |
2589 | fi | |
2590 | ||
2591 | ||
2592 | # Check whether --with-gtk or --without-gtk was given. | |
2593 | if test "${with_gtk+set}" = set; then | |
2594 | withval="$with_gtk" | |
2595 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2596 | fi; | |
2597 | ||
2598 | # Check whether --with-motif or --without-motif was given. | |
2599 | if test "${with_motif+set}" = set; then | |
2600 | withval="$with_motif" | |
2601 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2602 | fi; | |
2603 | ||
2604 | # Check whether --with-mac or --without-mac was given. | |
2605 | if test "${with_mac+set}" = set; then | |
2606 | withval="$with_mac" | |
c228d3a4 | 2607 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2608 | fi; |
2609 | ||
2610 | # Check whether --with-cocoa or --without-cocoa was given. | |
2611 | if test "${with_cocoa+set}" = set; then | |
2612 | withval="$with_cocoa" | |
c228d3a4 | 2613 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2614 | fi; |
2615 | ||
2616 | # Check whether --with-wine or --without-wine was given. | |
2617 | if test "${with_wine+set}" = set; then | |
2618 | withval="$with_wine" | |
2619 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2620 | fi; | |
2621 | ||
2622 | # Check whether --with-msw or --without-msw was given. | |
2623 | if test "${with_msw+set}" = set; then | |
2624 | withval="$with_msw" | |
2625 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2626 | fi; | |
2627 | ||
2628 | # Check whether --with-pm or --without-pm was given. | |
2629 | if test "${with_pm+set}" = set; then | |
2630 | withval="$with_pm" | |
2631 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2632 | fi; | |
2633 | ||
2634 | # Check whether --with-mgl or --without-mgl was given. | |
2635 | if test "${with_mgl+set}" = set; then | |
2636 | withval="$with_mgl" | |
2637 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2638 | fi; | |
2639 | ||
2640 | # Check whether --with-microwin or --without-microwin was given. | |
2641 | if test "${with_microwin+set}" = set; then | |
2642 | withval="$with_microwin" | |
2643 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2644 | fi; | |
2645 | ||
2646 | # Check whether --with-x11 or --without-x11 was given. | |
2647 | if test "${with_x11+set}" = set; then | |
2648 | withval="$with_x11" | |
2649 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2650 | fi; | |
2651 | ||
2652 | enablestring= | |
2653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2654 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2655 | no_cache=0 | |
2656 | # Check whether --enable-nanox or --disable-nanox was given. | |
2657 | if test "${enable_nanox+set}" = set; then | |
2658 | enableval="$enable_nanox" | |
2659 | ||
2660 | if test "$enableval" = yes; then | |
2661 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2662 | else | |
2663 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2664 | fi | |
2665 | ||
2666 | else | |
2667 | ||
2668 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2669 | if test "x$LINE" != x ; then | |
2670 | eval "DEFAULT_$LINE" | |
2671 | else | |
2672 | no_cache=1 | |
2673 | fi | |
2674 | ||
2675 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2676 | ||
2677 | fi; | |
2678 | ||
2679 | eval "$ac_cv_use_nanox" | |
2680 | if test "$no_cache" != 1; then | |
2681 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2682 | fi | |
2683 | ||
2684 | if test "$wxUSE_NANOX" = yes; then | |
2685 | echo "$as_me:$LINENO: result: yes" >&5 | |
2686 | echo "${ECHO_T}yes" >&6 | |
2687 | else | |
2688 | echo "$as_me:$LINENO: result: no" >&5 | |
2689 | echo "${ECHO_T}no" >&6 | |
2690 | fi | |
2691 | ||
2692 | ||
2693 | ||
2694 | enablestring= | |
2695 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2696 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2697 | no_cache=0 | |
2698 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2699 | if test "${enable_gtk2+set}" = set; then | |
2700 | enableval="$enable_gtk2" | |
2701 | ||
2702 | if test "$enableval" = yes; then | |
2703 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2704 | else | |
2705 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2706 | fi | |
2707 | ||
2708 | else | |
2709 | ||
2710 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2711 | if test "x$LINE" != x ; then | |
2712 | eval "DEFAULT_$LINE" | |
2713 | else | |
2714 | no_cache=1 | |
2715 | fi | |
2716 | ||
2717 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2718 | ||
2719 | fi; | |
2720 | ||
2721 | eval "$ac_cv_use_gtk2" | |
2722 | if test "$no_cache" != 1; then | |
2723 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2724 | fi | |
2725 | ||
2726 | if test "$wxUSE_GTK2" = yes; then | |
2727 | echo "$as_me:$LINENO: result: yes" >&5 | |
2728 | echo "${ECHO_T}yes" >&6 | |
2729 | else | |
2730 | echo "$as_me:$LINENO: result: no" >&5 | |
2731 | echo "${ECHO_T}no" >&6 | |
2732 | fi | |
2733 | ||
2734 | ||
2735 | enablestring= | |
2736 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2737 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2738 | no_cache=0 | |
2739 | # Check whether --enable-gpe or --disable-gpe was given. | |
2740 | if test "${enable_gpe+set}" = set; then | |
2741 | enableval="$enable_gpe" | |
2742 | ||
2743 | if test "$enableval" = yes; then | |
2744 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2745 | else | |
2746 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2747 | fi | |
2748 | ||
2749 | else | |
2750 | ||
2751 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2752 | if test "x$LINE" != x ; then | |
2753 | eval "DEFAULT_$LINE" | |
2754 | else | |
2755 | no_cache=1 | |
2756 | fi | |
2757 | ||
2758 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2759 | ||
2760 | fi; | |
2761 | ||
2762 | eval "$ac_cv_use_gpe" | |
2763 | if test "$no_cache" != 1; then | |
2764 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2765 | fi | |
2766 | ||
2767 | if test "$wxUSE_GPE" = yes; then | |
2768 | echo "$as_me:$LINENO: result: yes" >&5 | |
2769 | echo "${ECHO_T}yes" >&6 | |
2770 | else | |
2771 | echo "$as_me:$LINENO: result: no" >&5 | |
2772 | echo "${ECHO_T}no" >&6 | |
2773 | fi | |
2774 | ||
2775 | ||
2776 | ||
2777 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2778 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2779 | no_cache=0 | |
2780 | ||
2781 | # Check whether --with-libpng or --without-libpng was given. | |
2782 | if test "${with_libpng+set}" = set; then | |
2783 | withval="$with_libpng" | |
2784 | ||
2785 | if test "$withval" = yes; then | |
2786 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2787 | elif test "$withval" = no; then | |
2788 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2789 | elif test "$withval" = sys; then | |
2790 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2791 | elif test "$withval" = builtin; then | |
2792 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2793 | else | |
2794 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2795 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2796 | { (exit 1); exit 1; }; } | |
2797 | fi | |
2798 | ||
2799 | else | |
2800 | ||
2801 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2802 | if test "x$LINE" != x ; then | |
2803 | eval "DEFAULT_$LINE" | |
2804 | else | |
2805 | no_cache=1 | |
2806 | fi | |
2807 | ||
2808 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2809 | ||
2810 | fi; | |
2811 | ||
2812 | eval "$ac_cv_use_libpng" | |
2813 | if test "$no_cache" != 1; then | |
2814 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2815 | fi | |
2816 | ||
2817 | if test "$wxUSE_LIBPNG" = yes; then | |
2818 | echo "$as_me:$LINENO: result: yes" >&5 | |
2819 | echo "${ECHO_T}yes" >&6 | |
2820 | elif test "$wxUSE_LIBPNG" = no; then | |
2821 | echo "$as_me:$LINENO: result: no" >&5 | |
2822 | echo "${ECHO_T}no" >&6 | |
2823 | elif test "$wxUSE_LIBPNG" = sys; then | |
2824 | echo "$as_me:$LINENO: result: system version" >&5 | |
2825 | echo "${ECHO_T}system version" >&6 | |
2826 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2827 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2828 | echo "${ECHO_T}builtin version" >&6 | |
2829 | else | |
2830 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2831 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2832 | { (exit 1); exit 1; }; } | |
2833 | fi | |
2834 | ||
2835 | ||
2836 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2837 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2838 | no_cache=0 | |
2839 | ||
2840 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2841 | if test "${with_libjpeg+set}" = set; then | |
2842 | withval="$with_libjpeg" | |
2843 | ||
2844 | if test "$withval" = yes; then | |
2845 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2846 | elif test "$withval" = no; then | |
2847 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2848 | elif test "$withval" = sys; then | |
2849 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2850 | elif test "$withval" = builtin; then | |
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2852 | else | |
2853 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2854 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2855 | { (exit 1); exit 1; }; } | |
2856 | fi | |
2857 | ||
2858 | else | |
2859 | ||
2860 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2861 | if test "x$LINE" != x ; then | |
2862 | eval "DEFAULT_$LINE" | |
2863 | else | |
2864 | no_cache=1 | |
2865 | fi | |
2866 | ||
2867 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2868 | ||
2869 | fi; | |
2870 | ||
2871 | eval "$ac_cv_use_libjpeg" | |
2872 | if test "$no_cache" != 1; then | |
2873 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2874 | fi | |
2875 | ||
2876 | if test "$wxUSE_LIBJPEG" = yes; then | |
2877 | echo "$as_me:$LINENO: result: yes" >&5 | |
2878 | echo "${ECHO_T}yes" >&6 | |
2879 | elif test "$wxUSE_LIBJPEG" = no; then | |
2880 | echo "$as_me:$LINENO: result: no" >&5 | |
2881 | echo "${ECHO_T}no" >&6 | |
2882 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2883 | echo "$as_me:$LINENO: result: system version" >&5 | |
2884 | echo "${ECHO_T}system version" >&6 | |
2885 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2886 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2887 | echo "${ECHO_T}builtin version" >&6 | |
2888 | else | |
2889 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2890 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2891 | { (exit 1); exit 1; }; } | |
2892 | fi | |
2893 | ||
2894 | ||
2895 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2896 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2897 | no_cache=0 | |
2898 | ||
2899 | # Check whether --with-libtiff or --without-libtiff was given. | |
2900 | if test "${with_libtiff+set}" = set; then | |
2901 | withval="$with_libtiff" | |
2902 | ||
2903 | if test "$withval" = yes; then | |
2904 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2905 | elif test "$withval" = no; then | |
2906 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2907 | elif test "$withval" = sys; then | |
2908 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2909 | elif test "$withval" = builtin; then | |
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2911 | else | |
2912 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2913 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2914 | { (exit 1); exit 1; }; } | |
2915 | fi | |
2916 | ||
2917 | else | |
2918 | ||
2919 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2920 | if test "x$LINE" != x ; then | |
2921 | eval "DEFAULT_$LINE" | |
2922 | else | |
2923 | no_cache=1 | |
2924 | fi | |
2925 | ||
2926 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2927 | ||
2928 | fi; | |
2929 | ||
2930 | eval "$ac_cv_use_libtiff" | |
2931 | if test "$no_cache" != 1; then | |
2932 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2933 | fi | |
2934 | ||
2935 | if test "$wxUSE_LIBTIFF" = yes; then | |
2936 | echo "$as_me:$LINENO: result: yes" >&5 | |
2937 | echo "${ECHO_T}yes" >&6 | |
2938 | elif test "$wxUSE_LIBTIFF" = no; then | |
2939 | echo "$as_me:$LINENO: result: no" >&5 | |
2940 | echo "${ECHO_T}no" >&6 | |
2941 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2942 | echo "$as_me:$LINENO: result: system version" >&5 | |
2943 | echo "${ECHO_T}system version" >&6 | |
2944 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2945 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2946 | echo "${ECHO_T}builtin version" >&6 | |
2947 | else | |
2948 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2949 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2950 | { (exit 1); exit 1; }; } | |
2951 | fi | |
2952 | ||
2953 | ||
2954 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2955 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2956 | no_cache=0 | |
2957 | ||
2958 | # Check whether --with-libxpm or --without-libxpm was given. | |
2959 | if test "${with_libxpm+set}" = set; then | |
2960 | withval="$with_libxpm" | |
2961 | ||
2962 | if test "$withval" = yes; then | |
2963 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2964 | elif test "$withval" = no; then | |
2965 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2966 | elif test "$withval" = sys; then | |
2967 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2968 | elif test "$withval" = builtin; then | |
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2970 | else | |
2971 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2972 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2973 | { (exit 1); exit 1; }; } | |
2974 | fi | |
2975 | ||
2976 | else | |
2977 | ||
2978 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2979 | if test "x$LINE" != x ; then | |
2980 | eval "DEFAULT_$LINE" | |
2981 | else | |
2982 | no_cache=1 | |
2983 | fi | |
2984 | ||
2985 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2986 | ||
2987 | fi; | |
2988 | ||
2989 | eval "$ac_cv_use_libxpm" | |
2990 | if test "$no_cache" != 1; then | |
2991 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2992 | fi | |
2993 | ||
2994 | if test "$wxUSE_LIBXPM" = yes; then | |
2995 | echo "$as_me:$LINENO: result: yes" >&5 | |
2996 | echo "${ECHO_T}yes" >&6 | |
2997 | elif test "$wxUSE_LIBXPM" = no; then | |
2998 | echo "$as_me:$LINENO: result: no" >&5 | |
2999 | echo "${ECHO_T}no" >&6 | |
3000 | elif test "$wxUSE_LIBXPM" = sys; then | |
3001 | echo "$as_me:$LINENO: result: system version" >&5 | |
3002 | echo "${ECHO_T}system version" >&6 | |
3003 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3004 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3005 | echo "${ECHO_T}builtin version" >&6 | |
3006 | else | |
3007 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3008 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3009 | { (exit 1); exit 1; }; } | |
3010 | fi | |
3011 | ||
3012 | ||
3013 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3014 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3015 | no_cache=0 | |
3016 | ||
3017 | # Check whether --with-libmspack or --without-libmspack was given. | |
3018 | if test "${with_libmspack+set}" = set; then | |
3019 | withval="$with_libmspack" | |
3020 | ||
3021 | if test "$withval" = yes; then | |
3022 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3023 | else | |
3024 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3025 | fi | |
3026 | ||
3027 | else | |
3028 | ||
3029 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3030 | if test "x$LINE" != x ; then | |
3031 | eval "DEFAULT_$LINE" | |
3032 | else | |
3033 | no_cache=1 | |
3034 | fi | |
3035 | ||
3036 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3037 | ||
3038 | fi; | |
3039 | ||
3040 | eval "$ac_cv_use_libmspack" | |
3041 | if test "$no_cache" != 1; then | |
3042 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3043 | fi | |
3044 | ||
3045 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3046 | echo "$as_me:$LINENO: result: yes" >&5 | |
3047 | echo "${ECHO_T}yes" >&6 | |
3048 | else | |
3049 | echo "$as_me:$LINENO: result: no" >&5 | |
3050 | echo "${ECHO_T}no" >&6 | |
3051 | fi | |
3052 | ||
3053 | ||
3054 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3055 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3056 | no_cache=0 | |
3057 | ||
3058 | # Check whether --with-sdl or --without-sdl was given. | |
3059 | if test "${with_sdl+set}" = set; then | |
3060 | withval="$with_sdl" | |
3061 | ||
3062 | if test "$withval" = yes; then | |
3063 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3064 | else | |
3065 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3066 | fi | |
3067 | ||
3068 | else | |
3069 | ||
3070 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3071 | if test "x$LINE" != x ; then | |
3072 | eval "DEFAULT_$LINE" | |
3073 | else | |
3074 | no_cache=1 | |
3075 | fi | |
3076 | ||
3077 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3078 | ||
3079 | fi; | |
3080 | ||
3081 | eval "$ac_cv_use_sdl" | |
3082 | if test "$no_cache" != 1; then | |
3083 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3084 | fi | |
3085 | ||
3086 | if test "$wxUSE_LIBSDL" = yes; then | |
3087 | echo "$as_me:$LINENO: result: yes" >&5 | |
3088 | echo "${ECHO_T}yes" >&6 | |
3089 | else | |
3090 | echo "$as_me:$LINENO: result: no" >&5 | |
3091 | echo "${ECHO_T}no" >&6 | |
3092 | fi | |
3093 | ||
3094 | ||
d1c38808 VZ |
3095 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3096 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3097 | no_cache=0 | |
3098 | ||
3099 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3100 | if test "${with_gnomeprint+set}" = set; then | |
3101 | withval="$with_gnomeprint" | |
3102 | ||
3103 | if test "$withval" = yes; then | |
3104 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3105 | else | |
3106 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3107 | fi | |
3108 | ||
3109 | else | |
3110 | ||
3111 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3112 | if test "x$LINE" != x ; then | |
3113 | eval "DEFAULT_$LINE" | |
3114 | else | |
3115 | no_cache=1 | |
3116 | fi | |
3117 | ||
3118 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3119 | ||
3120 | fi; | |
3121 | ||
3122 | eval "$ac_cv_use_gnomeprint" | |
3123 | if test "$no_cache" != 1; then | |
3124 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3125 | fi | |
3126 | ||
3127 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3128 | echo "$as_me:$LINENO: result: yes" >&5 | |
3129 | echo "${ECHO_T}yes" >&6 | |
3130 | else | |
3131 | echo "$as_me:$LINENO: result: no" >&5 | |
3132 | echo "${ECHO_T}no" >&6 | |
3133 | fi | |
3134 | ||
3135 | ||
a848cd7e SC |
3136 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3137 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3138 | no_cache=0 | |
3139 | ||
3140 | # Check whether --with-opengl or --without-opengl was given. | |
3141 | if test "${with_opengl+set}" = set; then | |
3142 | withval="$with_opengl" | |
3143 | ||
3144 | if test "$withval" = yes; then | |
3145 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3146 | else | |
3147 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3148 | fi | |
3149 | ||
3150 | else | |
3151 | ||
3152 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3153 | if test "x$LINE" != x ; then | |
3154 | eval "DEFAULT_$LINE" | |
3155 | else | |
3156 | no_cache=1 | |
3157 | fi | |
3158 | ||
3159 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3160 | ||
3161 | fi; | |
3162 | ||
3163 | eval "$ac_cv_use_opengl" | |
3164 | if test "$no_cache" != 1; then | |
3165 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3166 | fi | |
3167 | ||
3168 | if test "$wxUSE_OPENGL" = yes; then | |
3169 | echo "$as_me:$LINENO: result: yes" >&5 | |
3170 | echo "${ECHO_T}yes" >&6 | |
3171 | else | |
3172 | echo "$as_me:$LINENO: result: no" >&5 | |
3173 | echo "${ECHO_T}no" >&6 | |
3174 | fi | |
3175 | ||
3176 | ||
3177 | fi | |
3178 | ||
3179 | ||
3180 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3181 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3182 | no_cache=0 | |
3183 | ||
3184 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3185 | if test "${with_dmalloc+set}" = set; then | |
3186 | withval="$with_dmalloc" | |
3187 | ||
3188 | if test "$withval" = yes; then | |
3189 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3190 | else | |
3191 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3192 | fi | |
3193 | ||
3194 | else | |
3195 | ||
3196 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3197 | if test "x$LINE" != x ; then | |
3198 | eval "DEFAULT_$LINE" | |
3199 | else | |
3200 | no_cache=1 | |
3201 | fi | |
3202 | ||
3203 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3204 | ||
3205 | fi; | |
3206 | ||
3207 | eval "$ac_cv_use_dmalloc" | |
3208 | if test "$no_cache" != 1; then | |
3209 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3210 | fi | |
3211 | ||
3212 | if test "$wxUSE_DMALLOC" = yes; then | |
3213 | echo "$as_me:$LINENO: result: yes" >&5 | |
3214 | echo "${ECHO_T}yes" >&6 | |
3215 | else | |
3216 | echo "$as_me:$LINENO: result: no" >&5 | |
3217 | echo "${ECHO_T}no" >&6 | |
3218 | fi | |
3219 | ||
3220 | ||
3221 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3222 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3223 | no_cache=0 | |
3224 | ||
3225 | # Check whether --with-regex or --without-regex was given. | |
3226 | if test "${with_regex+set}" = set; then | |
3227 | withval="$with_regex" | |
3228 | ||
3229 | if test "$withval" = yes; then | |
3230 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3231 | elif test "$withval" = no; then | |
3232 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3233 | elif test "$withval" = sys; then | |
3234 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3235 | elif test "$withval" = builtin; then | |
3236 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3237 | else | |
3238 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3239 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3240 | { (exit 1); exit 1; }; } | |
3241 | fi | |
3242 | ||
3243 | else | |
3244 | ||
3245 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3246 | if test "x$LINE" != x ; then | |
3247 | eval "DEFAULT_$LINE" | |
3248 | else | |
3249 | no_cache=1 | |
3250 | fi | |
3251 | ||
3252 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3253 | ||
3254 | fi; | |
3255 | ||
3256 | eval "$ac_cv_use_regex" | |
3257 | if test "$no_cache" != 1; then | |
3258 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3259 | fi | |
3260 | ||
3261 | if test "$wxUSE_REGEX" = yes; then | |
3262 | echo "$as_me:$LINENO: result: yes" >&5 | |
3263 | echo "${ECHO_T}yes" >&6 | |
3264 | elif test "$wxUSE_REGEX" = no; then | |
3265 | echo "$as_me:$LINENO: result: no" >&5 | |
3266 | echo "${ECHO_T}no" >&6 | |
3267 | elif test "$wxUSE_REGEX" = sys; then | |
3268 | echo "$as_me:$LINENO: result: system version" >&5 | |
3269 | echo "${ECHO_T}system version" >&6 | |
3270 | elif test "$wxUSE_REGEX" = builtin; then | |
3271 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3272 | echo "${ECHO_T}builtin version" >&6 | |
3273 | else | |
3274 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3275 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3276 | { (exit 1); exit 1; }; } | |
3277 | fi | |
3278 | ||
3279 | ||
3280 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3281 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3282 | no_cache=0 | |
3283 | ||
3284 | # Check whether --with-zlib or --without-zlib was given. | |
3285 | if test "${with_zlib+set}" = set; then | |
3286 | withval="$with_zlib" | |
3287 | ||
3288 | if test "$withval" = yes; then | |
3289 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3290 | elif test "$withval" = no; then | |
3291 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3292 | elif test "$withval" = sys; then | |
3293 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3294 | elif test "$withval" = builtin; then | |
3295 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3296 | else | |
3297 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3298 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3299 | { (exit 1); exit 1; }; } | |
3300 | fi | |
3301 | ||
3302 | else | |
3303 | ||
3304 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3305 | if test "x$LINE" != x ; then | |
3306 | eval "DEFAULT_$LINE" | |
3307 | else | |
3308 | no_cache=1 | |
3309 | fi | |
3310 | ||
3311 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3312 | ||
3313 | fi; | |
3314 | ||
3315 | eval "$ac_cv_use_zlib" | |
3316 | if test "$no_cache" != 1; then | |
3317 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3318 | fi | |
3319 | ||
3320 | if test "$wxUSE_ZLIB" = yes; then | |
3321 | echo "$as_me:$LINENO: result: yes" >&5 | |
3322 | echo "${ECHO_T}yes" >&6 | |
3323 | elif test "$wxUSE_ZLIB" = no; then | |
3324 | echo "$as_me:$LINENO: result: no" >&5 | |
3325 | echo "${ECHO_T}no" >&6 | |
3326 | elif test "$wxUSE_ZLIB" = sys; then | |
3327 | echo "$as_me:$LINENO: result: system version" >&5 | |
3328 | echo "${ECHO_T}system version" >&6 | |
3329 | elif test "$wxUSE_ZLIB" = builtin; then | |
3330 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3331 | echo "${ECHO_T}builtin version" >&6 | |
3332 | else | |
3333 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3334 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3335 | { (exit 1); exit 1; }; } | |
3336 | fi | |
3337 | ||
3338 | ||
3339 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3340 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3341 | no_cache=0 | |
3342 | ||
3343 | # Check whether --with-odbc or --without-odbc was given. | |
3344 | if test "${with_odbc+set}" = set; then | |
3345 | withval="$with_odbc" | |
3346 | ||
3347 | if test "$withval" = yes; then | |
3348 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3349 | elif test "$withval" = no; then | |
3350 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3351 | elif test "$withval" = sys; then | |
3352 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3353 | elif test "$withval" = builtin; then | |
3354 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3355 | else | |
3356 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3357 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3358 | { (exit 1); exit 1; }; } | |
3359 | fi | |
3360 | ||
3361 | else | |
3362 | ||
3363 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3364 | if test "x$LINE" != x ; then | |
3365 | eval "DEFAULT_$LINE" | |
3366 | else | |
3367 | no_cache=1 | |
3368 | fi | |
3369 | ||
3370 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3371 | ||
3372 | fi; | |
3373 | ||
3374 | eval "$ac_cv_use_odbc" | |
3375 | if test "$no_cache" != 1; then | |
3376 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3377 | fi | |
3378 | ||
3379 | if test "$wxUSE_ODBC" = yes; then | |
3380 | echo "$as_me:$LINENO: result: yes" >&5 | |
3381 | echo "${ECHO_T}yes" >&6 | |
3382 | elif test "$wxUSE_ODBC" = no; then | |
3383 | echo "$as_me:$LINENO: result: no" >&5 | |
3384 | echo "${ECHO_T}no" >&6 | |
3385 | elif test "$wxUSE_ODBC" = sys; then | |
3386 | echo "$as_me:$LINENO: result: system version" >&5 | |
3387 | echo "${ECHO_T}system version" >&6 | |
3388 | elif test "$wxUSE_ODBC" = builtin; then | |
3389 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3390 | echo "${ECHO_T}builtin version" >&6 | |
3391 | else | |
3392 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3393 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3394 | { (exit 1); exit 1; }; } | |
3395 | fi | |
3396 | ||
3397 | ||
3398 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3399 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3400 | no_cache=0 | |
3401 | ||
3402 | # Check whether --with-expat or --without-expat was given. | |
3403 | if test "${with_expat+set}" = set; then | |
3404 | withval="$with_expat" | |
3405 | ||
3406 | if test "$withval" = yes; then | |
3407 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3408 | elif test "$withval" = no; then | |
3409 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3410 | elif test "$withval" = sys; then | |
3411 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3412 | elif test "$withval" = builtin; then | |
3413 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3414 | else | |
3415 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3416 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3417 | { (exit 1); exit 1; }; } | |
3418 | fi | |
3419 | ||
3420 | else | |
3421 | ||
3422 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3423 | if test "x$LINE" != x ; then | |
3424 | eval "DEFAULT_$LINE" | |
3425 | else | |
3426 | no_cache=1 | |
3427 | fi | |
3428 | ||
3429 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3430 | ||
3431 | fi; | |
3432 | ||
3433 | eval "$ac_cv_use_expat" | |
3434 | if test "$no_cache" != 1; then | |
3435 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3436 | fi | |
3437 | ||
3438 | if test "$wxUSE_EXPAT" = yes; then | |
3439 | echo "$as_me:$LINENO: result: yes" >&5 | |
3440 | echo "${ECHO_T}yes" >&6 | |
3441 | elif test "$wxUSE_EXPAT" = no; then | |
3442 | echo "$as_me:$LINENO: result: no" >&5 | |
3443 | echo "${ECHO_T}no" >&6 | |
3444 | elif test "$wxUSE_EXPAT" = sys; then | |
3445 | echo "$as_me:$LINENO: result: system version" >&5 | |
3446 | echo "${ECHO_T}system version" >&6 | |
3447 | elif test "$wxUSE_EXPAT" = builtin; then | |
3448 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3449 | echo "${ECHO_T}builtin version" >&6 | |
3450 | else | |
3451 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3452 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3453 | { (exit 1); exit 1; }; } | |
3454 | fi | |
3455 | ||
3456 | ||
3457 | ||
3458 | ||
3459 | enablestring= | |
3460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3461 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3462 | no_cache=0 | |
3463 | # Check whether --enable-shared or --disable-shared was given. | |
3464 | if test "${enable_shared+set}" = set; then | |
3465 | enableval="$enable_shared" | |
3466 | ||
3467 | if test "$enableval" = yes; then | |
3468 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3469 | else | |
3470 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3471 | fi | |
3472 | ||
3473 | else | |
3474 | ||
3475 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3476 | if test "x$LINE" != x ; then | |
3477 | eval "DEFAULT_$LINE" | |
3478 | else | |
3479 | no_cache=1 | |
3480 | fi | |
3481 | ||
3482 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3483 | ||
3484 | fi; | |
3485 | ||
3486 | eval "$ac_cv_use_shared" | |
3487 | if test "$no_cache" != 1; then | |
3488 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3489 | fi | |
3490 | ||
3491 | if test "$wxUSE_SHARED" = yes; then | |
3492 | echo "$as_me:$LINENO: result: yes" >&5 | |
3493 | echo "${ECHO_T}yes" >&6 | |
3494 | else | |
3495 | echo "$as_me:$LINENO: result: no" >&5 | |
3496 | echo "${ECHO_T}no" >&6 | |
3497 | fi | |
3498 | ||
3499 | ||
3500 | enablestring= | |
3501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3502 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3503 | no_cache=0 | |
3504 | # Check whether --enable-optimise or --disable-optimise was given. | |
3505 | if test "${enable_optimise+set}" = set; then | |
3506 | enableval="$enable_optimise" | |
3507 | ||
3508 | if test "$enableval" = yes; then | |
3509 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3510 | else | |
3511 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3512 | fi | |
3513 | ||
3514 | else | |
3515 | ||
3516 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3517 | if test "x$LINE" != x ; then | |
3518 | eval "DEFAULT_$LINE" | |
3519 | else | |
3520 | no_cache=1 | |
3521 | fi | |
3522 | ||
3523 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3524 | ||
3525 | fi; | |
3526 | ||
3527 | eval "$ac_cv_use_optimise" | |
3528 | if test "$no_cache" != 1; then | |
3529 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3530 | fi | |
3531 | ||
3532 | if test "$wxUSE_OPTIMISE" = yes; then | |
3533 | echo "$as_me:$LINENO: result: yes" >&5 | |
3534 | echo "${ECHO_T}yes" >&6 | |
3535 | else | |
3536 | echo "$as_me:$LINENO: result: no" >&5 | |
3537 | echo "${ECHO_T}no" >&6 | |
3538 | fi | |
3539 | ||
3540 | ||
3541 | enablestring= | |
3542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3543 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3544 | no_cache=0 | |
3545 | # Check whether --enable-debug or --disable-debug was given. | |
3546 | if test "${enable_debug+set}" = set; then | |
3547 | enableval="$enable_debug" | |
3548 | ||
3549 | if test "$enableval" = yes; then | |
3550 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3551 | else | |
3552 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3553 | fi | |
3554 | ||
3555 | else | |
3556 | ||
3557 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3558 | if test "x$LINE" != x ; then | |
3559 | eval "DEFAULT_$LINE" | |
3560 | else | |
3561 | no_cache=1 | |
3562 | fi | |
3563 | ||
3564 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3565 | ||
3566 | fi; | |
3567 | ||
3568 | eval "$ac_cv_use_debug" | |
3569 | if test "$no_cache" != 1; then | |
3570 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3571 | fi | |
3572 | ||
3573 | if test "$wxUSE_DEBUG" = yes; then | |
3574 | echo "$as_me:$LINENO: result: yes" >&5 | |
3575 | echo "${ECHO_T}yes" >&6 | |
3576 | else | |
3577 | echo "$as_me:$LINENO: result: no" >&5 | |
3578 | echo "${ECHO_T}no" >&6 | |
3579 | fi | |
3580 | ||
3581 | ||
3582 | enablestring= | |
3583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3584 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3585 | no_cache=0 | |
3586 | # Check whether --enable-stl or --disable-stl was given. | |
3587 | if test "${enable_stl+set}" = set; then | |
3588 | enableval="$enable_stl" | |
3589 | ||
3590 | if test "$enableval" = yes; then | |
3591 | ac_cv_use_stl='wxUSE_STL=yes' | |
3592 | else | |
3593 | ac_cv_use_stl='wxUSE_STL=no' | |
3594 | fi | |
3595 | ||
3596 | else | |
3597 | ||
3598 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3599 | if test "x$LINE" != x ; then | |
3600 | eval "DEFAULT_$LINE" | |
3601 | else | |
3602 | no_cache=1 | |
3603 | fi | |
3604 | ||
3605 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3606 | ||
3607 | fi; | |
3608 | ||
3609 | eval "$ac_cv_use_stl" | |
3610 | if test "$no_cache" != 1; then | |
3611 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3612 | fi | |
3613 | ||
3614 | if test "$wxUSE_STL" = yes; then | |
3615 | echo "$as_me:$LINENO: result: yes" >&5 | |
3616 | echo "${ECHO_T}yes" >&6 | |
3617 | else | |
3618 | echo "$as_me:$LINENO: result: no" >&5 | |
3619 | echo "${ECHO_T}no" >&6 | |
3620 | fi | |
3621 | ||
3622 | if test "$USE_OS2" = "1"; then | |
3623 | ||
3624 | enablestring= | |
3625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3626 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3627 | no_cache=0 | |
3628 | # Check whether --enable-omf or --disable-omf was given. | |
3629 | if test "${enable_omf+set}" = set; then | |
3630 | enableval="$enable_omf" | |
3631 | ||
3632 | if test "$enableval" = yes; then | |
3633 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3634 | else | |
3635 | ac_cv_use_omf='wxUSE_OMF=no' | |
3636 | fi | |
3637 | ||
3638 | else | |
3639 | ||
3640 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3641 | if test "x$LINE" != x ; then | |
3642 | eval "DEFAULT_$LINE" | |
3643 | else | |
3644 | no_cache=1 | |
3645 | fi | |
3646 | ||
3647 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3648 | ||
3649 | fi; | |
3650 | ||
3651 | eval "$ac_cv_use_omf" | |
3652 | if test "$no_cache" != 1; then | |
3653 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3654 | fi | |
3655 | ||
3656 | if test "$wxUSE_OMF" = yes; then | |
3657 | echo "$as_me:$LINENO: result: yes" >&5 | |
3658 | echo "${ECHO_T}yes" >&6 | |
3659 | else | |
3660 | echo "$as_me:$LINENO: result: no" >&5 | |
3661 | echo "${ECHO_T}no" >&6 | |
3662 | fi | |
3663 | ||
3664 | fi | |
3665 | ||
3666 | if test "$wxUSE_DEBUG" = "yes"; then | |
3667 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3668 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3669 | BUILD=debug | |
3670 | elif test "$wxUSE_DEBUG" = "no"; then | |
3671 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3672 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3673 | BUILD=release | |
3674 | fi | |
3675 | ||
3676 | ||
3677 | enablestring= | |
3678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3679 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3680 | no_cache=0 | |
3681 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3682 | if test "${enable_debug_flag+set}" = set; then | |
3683 | enableval="$enable_debug_flag" | |
3684 | ||
3685 | if test "$enableval" = yes; then | |
3686 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3687 | else | |
3688 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3689 | fi | |
3690 | ||
3691 | else | |
3692 | ||
3693 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3694 | if test "x$LINE" != x ; then | |
3695 | eval "DEFAULT_$LINE" | |
3696 | else | |
3697 | no_cache=1 | |
3698 | fi | |
3699 | ||
3700 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3701 | ||
3702 | fi; | |
3703 | ||
3704 | eval "$ac_cv_use_debug_flag" | |
3705 | if test "$no_cache" != 1; then | |
3706 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3707 | fi | |
3708 | ||
3709 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3710 | echo "$as_me:$LINENO: result: yes" >&5 | |
3711 | echo "${ECHO_T}yes" >&6 | |
3712 | else | |
3713 | echo "$as_me:$LINENO: result: no" >&5 | |
3714 | echo "${ECHO_T}no" >&6 | |
3715 | fi | |
3716 | ||
3717 | ||
3718 | enablestring= | |
3719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3720 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3721 | no_cache=0 | |
3722 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3723 | if test "${enable_debug_info+set}" = set; then | |
3724 | enableval="$enable_debug_info" | |
3725 | ||
3726 | if test "$enableval" = yes; then | |
3727 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3728 | else | |
3729 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3730 | fi | |
3731 | ||
3732 | else | |
3733 | ||
3734 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3735 | if test "x$LINE" != x ; then | |
3736 | eval "DEFAULT_$LINE" | |
3737 | else | |
3738 | no_cache=1 | |
3739 | fi | |
3740 | ||
3741 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3742 | ||
3743 | fi; | |
3744 | ||
3745 | eval "$ac_cv_use_debug_info" | |
3746 | if test "$no_cache" != 1; then | |
3747 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3748 | fi | |
3749 | ||
3750 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3751 | echo "$as_me:$LINENO: result: yes" >&5 | |
3752 | echo "${ECHO_T}yes" >&6 | |
3753 | else | |
3754 | echo "$as_me:$LINENO: result: no" >&5 | |
3755 | echo "${ECHO_T}no" >&6 | |
3756 | fi | |
3757 | ||
3758 | ||
3759 | enablestring= | |
3760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3761 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3762 | no_cache=0 | |
3763 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3764 | if test "${enable_debug_gdb+set}" = set; then | |
3765 | enableval="$enable_debug_gdb" | |
3766 | ||
3767 | if test "$enableval" = yes; then | |
3768 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3769 | else | |
3770 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3771 | fi | |
3772 | ||
3773 | else | |
3774 | ||
3775 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3776 | if test "x$LINE" != x ; then | |
3777 | eval "DEFAULT_$LINE" | |
3778 | else | |
3779 | no_cache=1 | |
3780 | fi | |
3781 | ||
3782 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3783 | ||
3784 | fi; | |
3785 | ||
3786 | eval "$ac_cv_use_debug_gdb" | |
3787 | if test "$no_cache" != 1; then | |
3788 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3789 | fi | |
3790 | ||
3791 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3792 | echo "$as_me:$LINENO: result: yes" >&5 | |
3793 | echo "${ECHO_T}yes" >&6 | |
3794 | else | |
3795 | echo "$as_me:$LINENO: result: no" >&5 | |
3796 | echo "${ECHO_T}no" >&6 | |
3797 | fi | |
3798 | ||
3799 | ||
3800 | enablestring= | |
3801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3802 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3803 | no_cache=0 | |
3804 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3805 | if test "${enable_debug_cntxt+set}" = set; then | |
3806 | enableval="$enable_debug_cntxt" | |
3807 | ||
3808 | if test "$enableval" = yes; then | |
3809 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3810 | else | |
3811 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3812 | fi | |
3813 | ||
3814 | else | |
3815 | ||
3816 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3817 | if test "x$LINE" != x ; then | |
3818 | eval "DEFAULT_$LINE" | |
3819 | else | |
3820 | no_cache=1 | |
3821 | fi | |
3822 | ||
3823 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3824 | ||
3825 | fi; | |
3826 | ||
3827 | eval "$ac_cv_use_debug_cntxt" | |
3828 | if test "$no_cache" != 1; then | |
3829 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3830 | fi | |
3831 | ||
3832 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3833 | echo "$as_me:$LINENO: result: yes" >&5 | |
3834 | echo "${ECHO_T}yes" >&6 | |
3835 | else | |
3836 | echo "$as_me:$LINENO: result: no" >&5 | |
3837 | echo "${ECHO_T}no" >&6 | |
3838 | fi | |
3839 | ||
3840 | ||
3841 | enablestring= | |
3842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3843 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3844 | no_cache=0 | |
3845 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3846 | if test "${enable_mem_tracing+set}" = set; then | |
3847 | enableval="$enable_mem_tracing" | |
3848 | ||
3849 | if test "$enableval" = yes; then | |
3850 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3851 | else | |
3852 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3853 | fi | |
3854 | ||
3855 | else | |
3856 | ||
3857 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3858 | if test "x$LINE" != x ; then | |
3859 | eval "DEFAULT_$LINE" | |
3860 | else | |
3861 | no_cache=1 | |
3862 | fi | |
3863 | ||
3864 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3865 | ||
3866 | fi; | |
3867 | ||
3868 | eval "$ac_cv_use_mem_tracing" | |
3869 | if test "$no_cache" != 1; then | |
3870 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3871 | fi | |
3872 | ||
3873 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3874 | echo "$as_me:$LINENO: result: yes" >&5 | |
3875 | echo "${ECHO_T}yes" >&6 | |
3876 | else | |
3877 | echo "$as_me:$LINENO: result: no" >&5 | |
3878 | echo "${ECHO_T}no" >&6 | |
3879 | fi | |
3880 | ||
3881 | ||
3882 | enablestring= | |
3883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3884 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3885 | no_cache=0 | |
3886 | # Check whether --enable-profile or --disable-profile was given. | |
3887 | if test "${enable_profile+set}" = set; then | |
3888 | enableval="$enable_profile" | |
3889 | ||
3890 | if test "$enableval" = yes; then | |
3891 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3892 | else | |
3893 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3894 | fi | |
3895 | ||
3896 | else | |
3897 | ||
3898 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3899 | if test "x$LINE" != x ; then | |
3900 | eval "DEFAULT_$LINE" | |
3901 | else | |
3902 | no_cache=1 | |
3903 | fi | |
3904 | ||
3905 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3906 | ||
3907 | fi; | |
3908 | ||
3909 | eval "$ac_cv_use_profile" | |
3910 | if test "$no_cache" != 1; then | |
3911 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3912 | fi | |
3913 | ||
3914 | if test "$wxUSE_PROFILE" = yes; then | |
3915 | echo "$as_me:$LINENO: result: yes" >&5 | |
3916 | echo "${ECHO_T}yes" >&6 | |
3917 | else | |
3918 | echo "$as_me:$LINENO: result: no" >&5 | |
3919 | echo "${ECHO_T}no" >&6 | |
3920 | fi | |
3921 | ||
3922 | ||
3923 | enablestring= | |
3924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3925 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3926 | no_cache=0 | |
3927 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3928 | if test "${enable_no_rtti+set}" = set; then | |
3929 | enableval="$enable_no_rtti" | |
3930 | ||
3931 | if test "$enableval" = yes; then | |
3932 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3933 | else | |
3934 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3935 | fi | |
3936 | ||
3937 | else | |
3938 | ||
3939 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3940 | if test "x$LINE" != x ; then | |
3941 | eval "DEFAULT_$LINE" | |
3942 | else | |
3943 | no_cache=1 | |
3944 | fi | |
3945 | ||
3946 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3947 | ||
3948 | fi; | |
3949 | ||
3950 | eval "$ac_cv_use_no_rtti" | |
3951 | if test "$no_cache" != 1; then | |
3952 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3953 | fi | |
3954 | ||
3955 | if test "$wxUSE_NO_RTTI" = yes; then | |
3956 | echo "$as_me:$LINENO: result: yes" >&5 | |
3957 | echo "${ECHO_T}yes" >&6 | |
3958 | else | |
3959 | echo "$as_me:$LINENO: result: no" >&5 | |
3960 | echo "${ECHO_T}no" >&6 | |
3961 | fi | |
3962 | ||
3963 | ||
3964 | enablestring= | |
3965 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3966 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3967 | no_cache=0 | |
3968 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3969 | if test "${enable_no_exceptions+set}" = set; then | |
3970 | enableval="$enable_no_exceptions" | |
3971 | ||
3972 | if test "$enableval" = yes; then | |
3973 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3974 | else | |
3975 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3976 | fi | |
3977 | ||
3978 | else | |
3979 | ||
3980 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3981 | if test "x$LINE" != x ; then | |
3982 | eval "DEFAULT_$LINE" | |
3983 | else | |
3984 | no_cache=1 | |
3985 | fi | |
3986 | ||
3987 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3988 | ||
3989 | fi; | |
3990 | ||
3991 | eval "$ac_cv_use_no_exceptions" | |
3992 | if test "$no_cache" != 1; then | |
3993 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3994 | fi | |
3995 | ||
3996 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3997 | echo "$as_me:$LINENO: result: yes" >&5 | |
3998 | echo "${ECHO_T}yes" >&6 | |
3999 | else | |
4000 | echo "$as_me:$LINENO: result: no" >&5 | |
4001 | echo "${ECHO_T}no" >&6 | |
4002 | fi | |
4003 | ||
4004 | ||
4005 | enablestring= | |
4006 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4007 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4008 | no_cache=0 | |
4009 | # Check whether --enable-permissive or --disable-permissive was given. | |
4010 | if test "${enable_permissive+set}" = set; then | |
4011 | enableval="$enable_permissive" | |
4012 | ||
4013 | if test "$enableval" = yes; then | |
4014 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4015 | else | |
4016 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4017 | fi | |
4018 | ||
4019 | else | |
4020 | ||
4021 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4022 | if test "x$LINE" != x ; then | |
4023 | eval "DEFAULT_$LINE" | |
4024 | else | |
4025 | no_cache=1 | |
4026 | fi | |
4027 | ||
4028 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4029 | ||
4030 | fi; | |
4031 | ||
4032 | eval "$ac_cv_use_permissive" | |
4033 | if test "$no_cache" != 1; then | |
4034 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4035 | fi | |
4036 | ||
4037 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4038 | echo "$as_me:$LINENO: result: yes" >&5 | |
4039 | echo "${ECHO_T}yes" >&6 | |
4040 | else | |
4041 | echo "$as_me:$LINENO: result: no" >&5 | |
4042 | echo "${ECHO_T}no" >&6 | |
4043 | fi | |
4044 | ||
4045 | ||
4046 | enablestring= | |
4047 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4048 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4049 | no_cache=0 | |
4050 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4051 | if test "${enable_no_deps+set}" = set; then | |
4052 | enableval="$enable_no_deps" | |
4053 | ||
4054 | if test "$enableval" = yes; then | |
4055 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4056 | else | |
4057 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4058 | fi | |
4059 | ||
4060 | else | |
4061 | ||
4062 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4063 | if test "x$LINE" != x ; then | |
4064 | eval "DEFAULT_$LINE" | |
4065 | else | |
4066 | no_cache=1 | |
4067 | fi | |
4068 | ||
4069 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4070 | ||
4071 | fi; | |
4072 | ||
4073 | eval "$ac_cv_use_no_deps" | |
4074 | if test "$no_cache" != 1; then | |
4075 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4076 | fi | |
4077 | ||
4078 | if test "$wxUSE_NO_DEPS" = yes; then | |
4079 | echo "$as_me:$LINENO: result: yes" >&5 | |
4080 | echo "${ECHO_T}yes" >&6 | |
4081 | else | |
4082 | echo "$as_me:$LINENO: result: no" >&5 | |
4083 | echo "${ECHO_T}no" >&6 | |
4084 | fi | |
4085 | ||
4086 | ||
4087 | ||
4088 | enablestring= | |
4089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4090 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4091 | no_cache=0 | |
4092 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4093 | if test "${enable_compat22+set}" = set; then | |
4094 | enableval="$enable_compat22" | |
4095 | ||
4096 | if test "$enableval" = yes; then | |
4097 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4098 | else | |
4099 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4100 | fi | |
4101 | ||
4102 | else | |
4103 | ||
4104 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4105 | if test "x$LINE" != x ; then | |
4106 | eval "DEFAULT_$LINE" | |
4107 | else | |
4108 | no_cache=1 | |
4109 | fi | |
4110 | ||
4111 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4112 | ||
4113 | fi; | |
4114 | ||
4115 | eval "$ac_cv_use_compat22" | |
4116 | if test "$no_cache" != 1; then | |
4117 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4118 | fi | |
4119 | ||
4120 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4121 | echo "$as_me:$LINENO: result: yes" >&5 | |
4122 | echo "${ECHO_T}yes" >&6 | |
4123 | else | |
4124 | echo "$as_me:$LINENO: result: no" >&5 | |
4125 | echo "${ECHO_T}no" >&6 | |
4126 | fi | |
4127 | ||
4128 | ||
4129 | enablestring=disable | |
4130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4131 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4132 | no_cache=0 | |
4133 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4134 | if test "${enable_compat24+set}" = set; then | |
4135 | enableval="$enable_compat24" | |
4136 | ||
4137 | if test "$enableval" = yes; then | |
4138 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4139 | else | |
4140 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4141 | fi | |
4142 | ||
4143 | else | |
4144 | ||
4145 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4146 | if test "x$LINE" != x ; then | |
4147 | eval "DEFAULT_$LINE" | |
4148 | else | |
4149 | no_cache=1 | |
4150 | fi | |
4151 | ||
4152 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4153 | ||
4154 | fi; | |
4155 | ||
4156 | eval "$ac_cv_use_compat24" | |
4157 | if test "$no_cache" != 1; then | |
4158 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4159 | fi | |
4160 | ||
4161 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4162 | echo "$as_me:$LINENO: result: yes" >&5 | |
4163 | echo "${ECHO_T}yes" >&6 | |
4164 | else | |
4165 | echo "$as_me:$LINENO: result: no" >&5 | |
4166 | echo "${ECHO_T}no" >&6 | |
4167 | fi | |
4168 | ||
4169 | ||
ffa0583f RL |
4170 | |
4171 | enablestring= | |
4172 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4173 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4174 | no_cache=0 | |
4175 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4176 | if test "${enable_rpath+set}" = set; then |
4177 | enableval="$enable_rpath" | |
ffa0583f RL |
4178 | |
4179 | if test "$enableval" = yes; then | |
4180 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4181 | else | |
4182 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4183 | fi | |
4184 | ||
4185 | else | |
4186 | ||
4187 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4188 | if test "x$LINE" != x ; then | |
4189 | eval "DEFAULT_$LINE" | |
4190 | else | |
4191 | no_cache=1 | |
4192 | fi | |
4193 | ||
4194 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4195 | ||
a848cd7e SC |
4196 | fi; |
4197 | ||
ffa0583f RL |
4198 | eval "$ac_cv_use_rpath" |
4199 | if test "$no_cache" != 1; then | |
4200 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4201 | fi | |
4202 | ||
4203 | if test "$wxUSE_RPATH" = yes; then | |
4204 | echo "$as_me:$LINENO: result: yes" >&5 | |
4205 | echo "${ECHO_T}yes" >&6 | |
4206 | else | |
4207 | echo "$as_me:$LINENO: result: no" >&5 | |
4208 | echo "${ECHO_T}no" >&6 | |
4209 | fi | |
4210 | ||
a848cd7e SC |
4211 | |
4212 | ||
4213 | ||
4214 | ||
4215 | enablestring= | |
4216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4217 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4218 | no_cache=0 | |
4219 | # Check whether --enable-intl or --disable-intl was given. | |
4220 | if test "${enable_intl+set}" = set; then | |
4221 | enableval="$enable_intl" | |
4222 | ||
4223 | if test "$enableval" = yes; then | |
4224 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4225 | else | |
4226 | ac_cv_use_intl='wxUSE_INTL=no' | |
4227 | fi | |
4228 | ||
4229 | else | |
4230 | ||
4231 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4232 | if test "x$LINE" != x ; then | |
4233 | eval "DEFAULT_$LINE" | |
4234 | else | |
4235 | no_cache=1 | |
4236 | fi | |
4237 | ||
4238 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4239 | ||
4240 | fi; | |
4241 | ||
4242 | eval "$ac_cv_use_intl" | |
4243 | if test "$no_cache" != 1; then | |
4244 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4245 | fi | |
4246 | ||
4247 | if test "$wxUSE_INTL" = yes; then | |
4248 | echo "$as_me:$LINENO: result: yes" >&5 | |
4249 | echo "${ECHO_T}yes" >&6 | |
4250 | else | |
4251 | echo "$as_me:$LINENO: result: no" >&5 | |
4252 | echo "${ECHO_T}no" >&6 | |
4253 | fi | |
4254 | ||
4255 | ||
4256 | enablestring= | |
4257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4258 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4259 | no_cache=0 | |
4260 | # Check whether --enable-config or --disable-config was given. | |
4261 | if test "${enable_config+set}" = set; then | |
4262 | enableval="$enable_config" | |
4263 | ||
4264 | if test "$enableval" = yes; then | |
4265 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4266 | else | |
4267 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4268 | fi | |
4269 | ||
4270 | else | |
4271 | ||
4272 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4273 | if test "x$LINE" != x ; then | |
4274 | eval "DEFAULT_$LINE" | |
4275 | else | |
4276 | no_cache=1 | |
4277 | fi | |
4278 | ||
4279 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4280 | ||
4281 | fi; | |
4282 | ||
4283 | eval "$ac_cv_use_config" | |
4284 | if test "$no_cache" != 1; then | |
4285 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4286 | fi | |
4287 | ||
4288 | if test "$wxUSE_CONFIG" = yes; then | |
4289 | echo "$as_me:$LINENO: result: yes" >&5 | |
4290 | echo "${ECHO_T}yes" >&6 | |
4291 | else | |
4292 | echo "$as_me:$LINENO: result: no" >&5 | |
4293 | echo "${ECHO_T}no" >&6 | |
4294 | fi | |
4295 | ||
4296 | ||
4297 | ||
4298 | enablestring= | |
4299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4300 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4301 | no_cache=0 | |
4302 | # Check whether --enable-protocols or --disable-protocols was given. | |
4303 | if test "${enable_protocols+set}" = set; then | |
4304 | enableval="$enable_protocols" | |
4305 | ||
4306 | if test "$enableval" = yes; then | |
4307 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4308 | else | |
4309 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4310 | fi | |
4311 | ||
4312 | else | |
4313 | ||
4314 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4315 | if test "x$LINE" != x ; then | |
4316 | eval "DEFAULT_$LINE" | |
4317 | else | |
4318 | no_cache=1 | |
4319 | fi | |
4320 | ||
4321 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4322 | ||
4323 | fi; | |
4324 | ||
4325 | eval "$ac_cv_use_protocols" | |
4326 | if test "$no_cache" != 1; then | |
4327 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4328 | fi | |
4329 | ||
4330 | if test "$wxUSE_PROTOCOL" = yes; then | |
4331 | echo "$as_me:$LINENO: result: yes" >&5 | |
4332 | echo "${ECHO_T}yes" >&6 | |
4333 | else | |
4334 | echo "$as_me:$LINENO: result: no" >&5 | |
4335 | echo "${ECHO_T}no" >&6 | |
4336 | fi | |
4337 | ||
4338 | ||
4339 | enablestring= | |
4340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4341 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4342 | no_cache=0 | |
4343 | # Check whether --enable-ftp or --disable-ftp was given. | |
4344 | if test "${enable_ftp+set}" = set; then | |
4345 | enableval="$enable_ftp" | |
4346 | ||
4347 | if test "$enableval" = yes; then | |
4348 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4349 | else | |
4350 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4351 | fi | |
4352 | ||
4353 | else | |
4354 | ||
4355 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4356 | if test "x$LINE" != x ; then | |
4357 | eval "DEFAULT_$LINE" | |
4358 | else | |
4359 | no_cache=1 | |
4360 | fi | |
4361 | ||
4362 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4363 | ||
4364 | fi; | |
4365 | ||
4366 | eval "$ac_cv_use_ftp" | |
4367 | if test "$no_cache" != 1; then | |
4368 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4369 | fi | |
4370 | ||
4371 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4372 | echo "$as_me:$LINENO: result: yes" >&5 | |
4373 | echo "${ECHO_T}yes" >&6 | |
4374 | else | |
4375 | echo "$as_me:$LINENO: result: no" >&5 | |
4376 | echo "${ECHO_T}no" >&6 | |
4377 | fi | |
4378 | ||
4379 | ||
4380 | enablestring= | |
4381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4382 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4383 | no_cache=0 | |
4384 | # Check whether --enable-http or --disable-http was given. | |
4385 | if test "${enable_http+set}" = set; then | |
4386 | enableval="$enable_http" | |
4387 | ||
4388 | if test "$enableval" = yes; then | |
4389 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4390 | else | |
4391 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4392 | fi | |
4393 | ||
4394 | else | |
4395 | ||
4396 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4397 | if test "x$LINE" != x ; then | |
4398 | eval "DEFAULT_$LINE" | |
4399 | else | |
4400 | no_cache=1 | |
4401 | fi | |
4402 | ||
4403 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4404 | ||
4405 | fi; | |
4406 | ||
4407 | eval "$ac_cv_use_http" | |
4408 | if test "$no_cache" != 1; then | |
4409 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4410 | fi | |
4411 | ||
4412 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4413 | echo "$as_me:$LINENO: result: yes" >&5 | |
4414 | echo "${ECHO_T}yes" >&6 | |
4415 | else | |
4416 | echo "$as_me:$LINENO: result: no" >&5 | |
4417 | echo "${ECHO_T}no" >&6 | |
4418 | fi | |
4419 | ||
4420 | ||
4421 | enablestring= | |
4422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4423 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4424 | no_cache=0 | |
4425 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4426 | if test "${enable_fileproto+set}" = set; then | |
4427 | enableval="$enable_fileproto" | |
4428 | ||
4429 | if test "$enableval" = yes; then | |
4430 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4431 | else | |
4432 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4433 | fi | |
4434 | ||
4435 | else | |
4436 | ||
4437 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4438 | if test "x$LINE" != x ; then | |
4439 | eval "DEFAULT_$LINE" | |
4440 | else | |
4441 | no_cache=1 | |
4442 | fi | |
4443 | ||
4444 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4445 | ||
4446 | fi; | |
4447 | ||
4448 | eval "$ac_cv_use_fileproto" | |
4449 | if test "$no_cache" != 1; then | |
4450 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4451 | fi | |
4452 | ||
4453 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4454 | echo "$as_me:$LINENO: result: yes" >&5 | |
4455 | echo "${ECHO_T}yes" >&6 | |
4456 | else | |
4457 | echo "$as_me:$LINENO: result: no" >&5 | |
4458 | echo "${ECHO_T}no" >&6 | |
4459 | fi | |
4460 | ||
4461 | ||
4462 | enablestring= | |
4463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4464 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4465 | no_cache=0 | |
4466 | # Check whether --enable-sockets or --disable-sockets was given. | |
4467 | if test "${enable_sockets+set}" = set; then | |
4468 | enableval="$enable_sockets" | |
4469 | ||
4470 | if test "$enableval" = yes; then | |
4471 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4472 | else | |
4473 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4474 | fi | |
4475 | ||
4476 | else | |
4477 | ||
4478 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4479 | if test "x$LINE" != x ; then | |
4480 | eval "DEFAULT_$LINE" | |
4481 | else | |
4482 | no_cache=1 | |
4483 | fi | |
4484 | ||
4485 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4486 | ||
4487 | fi; | |
4488 | ||
4489 | eval "$ac_cv_use_sockets" | |
4490 | if test "$no_cache" != 1; then | |
4491 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4492 | fi | |
4493 | ||
4494 | if test "$wxUSE_SOCKETS" = yes; then | |
4495 | echo "$as_me:$LINENO: result: yes" >&5 | |
4496 | echo "${ECHO_T}yes" >&6 | |
4497 | else | |
4498 | echo "$as_me:$LINENO: result: no" >&5 | |
4499 | echo "${ECHO_T}no" >&6 | |
4500 | fi | |
4501 | ||
4502 | ||
4503 | enablestring= | |
4504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4505 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4506 | no_cache=0 | |
4507 | # Check whether --enable-ole or --disable-ole was given. | |
4508 | if test "${enable_ole+set}" = set; then | |
4509 | enableval="$enable_ole" | |
4510 | ||
4511 | if test "$enableval" = yes; then | |
4512 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4513 | else | |
4514 | ac_cv_use_ole='wxUSE_OLE=no' | |
4515 | fi | |
4516 | ||
4517 | else | |
4518 | ||
4519 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4520 | if test "x$LINE" != x ; then | |
4521 | eval "DEFAULT_$LINE" | |
4522 | else | |
4523 | no_cache=1 | |
4524 | fi | |
4525 | ||
4526 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4527 | ||
4528 | fi; | |
4529 | ||
4530 | eval "$ac_cv_use_ole" | |
4531 | if test "$no_cache" != 1; then | |
4532 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4533 | fi | |
4534 | ||
4535 | if test "$wxUSE_OLE" = yes; then | |
4536 | echo "$as_me:$LINENO: result: yes" >&5 | |
4537 | echo "${ECHO_T}yes" >&6 | |
4538 | else | |
4539 | echo "$as_me:$LINENO: result: no" >&5 | |
4540 | echo "${ECHO_T}no" >&6 | |
4541 | fi | |
4542 | ||
4543 | ||
4544 | enablestring= | |
4545 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4546 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4547 | no_cache=0 | |
4548 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4549 | if test "${enable_dataobj+set}" = set; then | |
4550 | enableval="$enable_dataobj" | |
4551 | ||
4552 | if test "$enableval" = yes; then | |
4553 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4554 | else | |
4555 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4556 | fi | |
4557 | ||
4558 | else | |
4559 | ||
4560 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4561 | if test "x$LINE" != x ; then | |
4562 | eval "DEFAULT_$LINE" | |
4563 | else | |
4564 | no_cache=1 | |
4565 | fi | |
4566 | ||
4567 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4568 | ||
4569 | fi; | |
4570 | ||
4571 | eval "$ac_cv_use_dataobj" | |
4572 | if test "$no_cache" != 1; then | |
4573 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4574 | fi | |
4575 | ||
4576 | if test "$wxUSE_DATAOBJ" = yes; then | |
4577 | echo "$as_me:$LINENO: result: yes" >&5 | |
4578 | echo "${ECHO_T}yes" >&6 | |
4579 | else | |
4580 | echo "$as_me:$LINENO: result: no" >&5 | |
4581 | echo "${ECHO_T}no" >&6 | |
4582 | fi | |
4583 | ||
4584 | ||
4585 | ||
4586 | enablestring= | |
4587 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4588 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4589 | no_cache=0 | |
4590 | # Check whether --enable-ipc or --disable-ipc was given. | |
4591 | if test "${enable_ipc+set}" = set; then | |
4592 | enableval="$enable_ipc" | |
4593 | ||
4594 | if test "$enableval" = yes; then | |
4595 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4596 | else | |
4597 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4598 | fi | |
4599 | ||
4600 | else | |
4601 | ||
4602 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4603 | if test "x$LINE" != x ; then | |
4604 | eval "DEFAULT_$LINE" | |
4605 | else | |
4606 | no_cache=1 | |
4607 | fi | |
4608 | ||
4609 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4610 | ||
4611 | fi; | |
4612 | ||
4613 | eval "$ac_cv_use_ipc" | |
4614 | if test "$no_cache" != 1; then | |
4615 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4616 | fi | |
4617 | ||
4618 | if test "$wxUSE_IPC" = yes; then | |
4619 | echo "$as_me:$LINENO: result: yes" >&5 | |
4620 | echo "${ECHO_T}yes" >&6 | |
4621 | else | |
4622 | echo "$as_me:$LINENO: result: no" >&5 | |
4623 | echo "${ECHO_T}no" >&6 | |
4624 | fi | |
4625 | ||
4626 | ||
4627 | ||
4628 | enablestring= | |
4629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4630 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4631 | no_cache=0 | |
4632 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4633 | if test "${enable_apple_ieee+set}" = set; then | |
4634 | enableval="$enable_apple_ieee" | |
4635 | ||
4636 | if test "$enableval" = yes; then | |
4637 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4638 | else | |
4639 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4640 | fi | |
4641 | ||
4642 | else | |
4643 | ||
4644 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4645 | if test "x$LINE" != x ; then | |
4646 | eval "DEFAULT_$LINE" | |
4647 | else | |
4648 | no_cache=1 | |
4649 | fi | |
4650 | ||
4651 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4652 | ||
4653 | fi; | |
4654 | ||
4655 | eval "$ac_cv_use_apple_ieee" | |
4656 | if test "$no_cache" != 1; then | |
4657 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4658 | fi | |
4659 | ||
4660 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4661 | echo "$as_me:$LINENO: result: yes" >&5 | |
4662 | echo "${ECHO_T}yes" >&6 | |
4663 | else | |
4664 | echo "$as_me:$LINENO: result: no" >&5 | |
4665 | echo "${ECHO_T}no" >&6 | |
4666 | fi | |
4667 | ||
4668 | ||
4669 | enablestring= | |
4670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4671 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4672 | no_cache=0 | |
4673 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4674 | if test "${enable_catch_segvs+set}" = set; then | |
4675 | enableval="$enable_catch_segvs" | |
4676 | ||
4677 | if test "$enableval" = yes; then | |
4678 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4679 | else | |
4680 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4681 | fi | |
4682 | ||
4683 | else | |
4684 | ||
4685 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4686 | if test "x$LINE" != x ; then | |
4687 | eval "DEFAULT_$LINE" | |
4688 | else | |
4689 | no_cache=1 | |
4690 | fi | |
4691 | ||
4692 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4693 | ||
4694 | fi; | |
4695 | ||
4696 | eval "$ac_cv_use_catch_segvs" | |
4697 | if test "$no_cache" != 1; then | |
4698 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4699 | fi | |
4700 | ||
4701 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4702 | echo "$as_me:$LINENO: result: yes" >&5 | |
4703 | echo "${ECHO_T}yes" >&6 | |
4704 | else | |
4705 | echo "$as_me:$LINENO: result: no" >&5 | |
4706 | echo "${ECHO_T}no" >&6 | |
4707 | fi | |
4708 | ||
4709 | ||
eaff0f0d VZ |
4710 | enablestring= |
4711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 | |
4712 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
4713 | no_cache=0 | |
4714 | # Check whether --enable-backtrace or --disable-backtrace was given. | |
4715 | if test "${enable_backtrace+set}" = set; then | |
4716 | enableval="$enable_backtrace" | |
4717 | ||
4718 | if test "$enableval" = yes; then | |
4719 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' | |
4720 | else | |
4721 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' | |
4722 | fi | |
4723 | ||
4724 | else | |
4725 | ||
4726 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` | |
4727 | if test "x$LINE" != x ; then | |
4728 | eval "DEFAULT_$LINE" | |
4729 | else | |
4730 | no_cache=1 | |
4731 | fi | |
4732 | ||
4733 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER | |
4734 | ||
4735 | fi; | |
4736 | ||
4737 | eval "$ac_cv_use_backtrace" | |
4738 | if test "$no_cache" != 1; then | |
4739 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp | |
4740 | fi | |
4741 | ||
4742 | if test "$wxUSE_STACKWALKER" = yes; then | |
4743 | echo "$as_me:$LINENO: result: yes" >&5 | |
4744 | echo "${ECHO_T}yes" >&6 | |
4745 | else | |
4746 | echo "$as_me:$LINENO: result: no" >&5 | |
4747 | echo "${ECHO_T}no" >&6 | |
4748 | fi | |
4749 | ||
4750 | ||
a848cd7e SC |
4751 | enablestring= |
4752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4753 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4754 | no_cache=0 | |
4755 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4756 | if test "${enable_cmdline+set}" = set; then | |
4757 | enableval="$enable_cmdline" | |
4758 | ||
4759 | if test "$enableval" = yes; then | |
4760 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4761 | else | |
4762 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4763 | fi | |
4764 | ||
4765 | else | |
4766 | ||
4767 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4768 | if test "x$LINE" != x ; then | |
4769 | eval "DEFAULT_$LINE" | |
4770 | else | |
4771 | no_cache=1 | |
4772 | fi | |
4773 | ||
4774 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4775 | ||
4776 | fi; | |
4777 | ||
4778 | eval "$ac_cv_use_cmdline" | |
4779 | if test "$no_cache" != 1; then | |
4780 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4781 | fi | |
4782 | ||
4783 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4784 | echo "$as_me:$LINENO: result: yes" >&5 | |
4785 | echo "${ECHO_T}yes" >&6 | |
4786 | else | |
4787 | echo "$as_me:$LINENO: result: no" >&5 | |
4788 | echo "${ECHO_T}no" >&6 | |
4789 | fi | |
4790 | ||
4791 | ||
4792 | enablestring= | |
4793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4794 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4795 | no_cache=0 | |
4796 | # Check whether --enable-datetime or --disable-datetime was given. | |
4797 | if test "${enable_datetime+set}" = set; then | |
4798 | enableval="$enable_datetime" | |
4799 | ||
4800 | if test "$enableval" = yes; then | |
4801 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4802 | else | |
4803 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4804 | fi | |
4805 | ||
4806 | else | |
4807 | ||
4808 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4809 | if test "x$LINE" != x ; then | |
4810 | eval "DEFAULT_$LINE" | |
4811 | else | |
4812 | no_cache=1 | |
4813 | fi | |
4814 | ||
4815 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4816 | ||
4817 | fi; | |
4818 | ||
4819 | eval "$ac_cv_use_datetime" | |
4820 | if test "$no_cache" != 1; then | |
4821 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4822 | fi | |
4823 | ||
4824 | if test "$wxUSE_DATETIME" = yes; then | |
4825 | echo "$as_me:$LINENO: result: yes" >&5 | |
4826 | echo "${ECHO_T}yes" >&6 | |
4827 | else | |
4828 | echo "$as_me:$LINENO: result: no" >&5 | |
4829 | echo "${ECHO_T}no" >&6 | |
4830 | fi | |
4831 | ||
4832 | ||
4833 | enablestring= | |
4834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4835 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4836 | no_cache=0 | |
4837 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4838 | if test "${enable_dialupman+set}" = set; then | |
4839 | enableval="$enable_dialupman" | |
4840 | ||
4841 | if test "$enableval" = yes; then | |
4842 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4843 | else | |
4844 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4845 | fi | |
4846 | ||
4847 | else | |
4848 | ||
4849 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4850 | if test "x$LINE" != x ; then | |
4851 | eval "DEFAULT_$LINE" | |
4852 | else | |
4853 | no_cache=1 | |
4854 | fi | |
4855 | ||
4856 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4857 | ||
4858 | fi; | |
4859 | ||
4860 | eval "$ac_cv_use_dialupman" | |
4861 | if test "$no_cache" != 1; then | |
4862 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4863 | fi | |
4864 | ||
4865 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4866 | echo "$as_me:$LINENO: result: yes" >&5 | |
4867 | echo "${ECHO_T}yes" >&6 | |
4868 | else | |
4869 | echo "$as_me:$LINENO: result: no" >&5 | |
4870 | echo "${ECHO_T}no" >&6 | |
4871 | fi | |
4872 | ||
4873 | ||
4874 | enablestring= | |
4875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4876 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4877 | no_cache=0 | |
4878 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4879 | if test "${enable_dynlib+set}" = set; then | |
4880 | enableval="$enable_dynlib" | |
4881 | ||
4882 | if test "$enableval" = yes; then | |
4883 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4884 | else | |
4885 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4886 | fi | |
4887 | ||
4888 | else | |
4889 | ||
4890 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4891 | if test "x$LINE" != x ; then | |
4892 | eval "DEFAULT_$LINE" | |
4893 | else | |
4894 | no_cache=1 | |
4895 | fi | |
4896 | ||
4897 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4898 | ||
4899 | fi; | |
4900 | ||
4901 | eval "$ac_cv_use_dynlib" | |
4902 | if test "$no_cache" != 1; then | |
4903 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4904 | fi | |
4905 | ||
4906 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4907 | echo "$as_me:$LINENO: result: yes" >&5 | |
4908 | echo "${ECHO_T}yes" >&6 | |
4909 | else | |
4910 | echo "$as_me:$LINENO: result: no" >&5 | |
4911 | echo "${ECHO_T}no" >&6 | |
4912 | fi | |
4913 | ||
4914 | ||
4915 | enablestring= | |
4916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4917 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4918 | no_cache=0 | |
4919 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4920 | if test "${enable_dynamicloader+set}" = set; then | |
4921 | enableval="$enable_dynamicloader" | |
4922 | ||
4923 | if test "$enableval" = yes; then | |
4924 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4925 | else | |
4926 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4927 | fi | |
4928 | ||
4929 | else | |
4930 | ||
4931 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4932 | if test "x$LINE" != x ; then | |
4933 | eval "DEFAULT_$LINE" | |
4934 | else | |
4935 | no_cache=1 | |
4936 | fi | |
4937 | ||
4938 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4939 | ||
4940 | fi; | |
4941 | ||
4942 | eval "$ac_cv_use_dynamicloader" | |
4943 | if test "$no_cache" != 1; then | |
4944 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4945 | fi | |
4946 | ||
4947 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4948 | echo "$as_me:$LINENO: result: yes" >&5 | |
4949 | echo "${ECHO_T}yes" >&6 | |
4950 | else | |
4951 | echo "$as_me:$LINENO: result: no" >&5 | |
4952 | echo "${ECHO_T}no" >&6 | |
4953 | fi | |
4954 | ||
4955 | ||
4956 | enablestring= | |
4957 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4958 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4959 | no_cache=0 | |
4960 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4961 | if test "${enable_exceptions+set}" = set; then | |
4962 | enableval="$enable_exceptions" | |
4963 | ||
4964 | if test "$enableval" = yes; then | |
4965 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4966 | else | |
4967 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4968 | fi | |
4969 | ||
4970 | else | |
4971 | ||
4972 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4973 | if test "x$LINE" != x ; then | |
4974 | eval "DEFAULT_$LINE" | |
4975 | else | |
4976 | no_cache=1 | |
4977 | fi | |
4978 | ||
4979 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4980 | ||
4981 | fi; | |
4982 | ||
4983 | eval "$ac_cv_use_exceptions" | |
4984 | if test "$no_cache" != 1; then | |
4985 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4986 | fi | |
4987 | ||
4988 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4989 | echo "$as_me:$LINENO: result: yes" >&5 | |
4990 | echo "${ECHO_T}yes" >&6 | |
4991 | else | |
4992 | echo "$as_me:$LINENO: result: no" >&5 | |
4993 | echo "${ECHO_T}no" >&6 | |
4994 | fi | |
4995 | ||
4996 | ||
4997 | enablestring= | |
4998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4999 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5000 | no_cache=0 | |
5001 | # Check whether --enable-ffile or --disable-ffile was given. | |
5002 | if test "${enable_ffile+set}" = set; then | |
5003 | enableval="$enable_ffile" | |
5004 | ||
5005 | if test "$enableval" = yes; then | |
5006 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5007 | else | |
5008 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5009 | fi | |
5010 | ||
5011 | else | |
5012 | ||
5013 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5014 | if test "x$LINE" != x ; then | |
5015 | eval "DEFAULT_$LINE" | |
5016 | else | |
5017 | no_cache=1 | |
5018 | fi | |
5019 | ||
5020 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5021 | ||
5022 | fi; | |
5023 | ||
5024 | eval "$ac_cv_use_ffile" | |
5025 | if test "$no_cache" != 1; then | |
5026 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5027 | fi | |
5028 | ||
5029 | if test "$wxUSE_FFILE" = yes; then | |
5030 | echo "$as_me:$LINENO: result: yes" >&5 | |
5031 | echo "${ECHO_T}yes" >&6 | |
5032 | else | |
5033 | echo "$as_me:$LINENO: result: no" >&5 | |
5034 | echo "${ECHO_T}no" >&6 | |
5035 | fi | |
5036 | ||
5037 | ||
5038 | enablestring= | |
5039 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5040 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5041 | no_cache=0 | |
5042 | # Check whether --enable-file or --disable-file was given. | |
5043 | if test "${enable_file+set}" = set; then | |
5044 | enableval="$enable_file" | |
5045 | ||
5046 | if test "$enableval" = yes; then | |
5047 | ac_cv_use_file='wxUSE_FILE=yes' | |
5048 | else | |
5049 | ac_cv_use_file='wxUSE_FILE=no' | |
5050 | fi | |
5051 | ||
5052 | else | |
5053 | ||
5054 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5055 | if test "x$LINE" != x ; then | |
5056 | eval "DEFAULT_$LINE" | |
5057 | else | |
5058 | no_cache=1 | |
5059 | fi | |
5060 | ||
5061 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5062 | ||
5063 | fi; | |
5064 | ||
5065 | eval "$ac_cv_use_file" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_FILE" = yes; then | |
5071 | echo "$as_me:$LINENO: result: yes" >&5 | |
5072 | echo "${ECHO_T}yes" >&6 | |
5073 | else | |
5074 | echo "$as_me:$LINENO: result: no" >&5 | |
5075 | echo "${ECHO_T}no" >&6 | |
5076 | fi | |
5077 | ||
5078 | ||
5079 | enablestring= | |
5080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5081 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5082 | no_cache=0 | |
5083 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5084 | if test "${enable_filesystem+set}" = set; then | |
5085 | enableval="$enable_filesystem" | |
5086 | ||
5087 | if test "$enableval" = yes; then | |
5088 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5089 | else | |
5090 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5091 | fi | |
5092 | ||
5093 | else | |
5094 | ||
5095 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5096 | if test "x$LINE" != x ; then | |
5097 | eval "DEFAULT_$LINE" | |
5098 | else | |
5099 | no_cache=1 | |
5100 | fi | |
5101 | ||
5102 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5103 | ||
5104 | fi; | |
5105 | ||
5106 | eval "$ac_cv_use_filesystem" | |
5107 | if test "$no_cache" != 1; then | |
5108 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5109 | fi | |
5110 | ||
5111 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5112 | echo "$as_me:$LINENO: result: yes" >&5 | |
5113 | echo "${ECHO_T}yes" >&6 | |
5114 | else | |
5115 | echo "$as_me:$LINENO: result: no" >&5 | |
5116 | echo "${ECHO_T}no" >&6 | |
5117 | fi | |
5118 | ||
5119 | ||
5120 | enablestring= | |
5121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5122 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5123 | no_cache=0 | |
5124 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5125 | if test "${enable_fontmap+set}" = set; then | |
5126 | enableval="$enable_fontmap" | |
5127 | ||
5128 | if test "$enableval" = yes; then | |
5129 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5130 | else | |
5131 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5132 | fi | |
5133 | ||
5134 | else | |
5135 | ||
5136 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5137 | if test "x$LINE" != x ; then | |
5138 | eval "DEFAULT_$LINE" | |
5139 | else | |
5140 | no_cache=1 | |
5141 | fi | |
5142 | ||
5143 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5144 | ||
5145 | fi; | |
5146 | ||
5147 | eval "$ac_cv_use_fontmap" | |
5148 | if test "$no_cache" != 1; then | |
5149 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5150 | fi | |
5151 | ||
5152 | if test "$wxUSE_FONTMAP" = yes; then | |
5153 | echo "$as_me:$LINENO: result: yes" >&5 | |
5154 | echo "${ECHO_T}yes" >&6 | |
5155 | else | |
5156 | echo "$as_me:$LINENO: result: no" >&5 | |
5157 | echo "${ECHO_T}no" >&6 | |
5158 | fi | |
5159 | ||
5160 | ||
5161 | enablestring= | |
5162 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5163 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5164 | no_cache=0 | |
5165 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5166 | if test "${enable_fs_inet+set}" = set; then | |
5167 | enableval="$enable_fs_inet" | |
5168 | ||
5169 | if test "$enableval" = yes; then | |
5170 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5171 | else | |
5172 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5173 | fi | |
5174 | ||
5175 | else | |
5176 | ||
5177 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5178 | if test "x$LINE" != x ; then | |
5179 | eval "DEFAULT_$LINE" | |
5180 | else | |
5181 | no_cache=1 | |
5182 | fi | |
5183 | ||
5184 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5185 | ||
5186 | fi; | |
5187 | ||
5188 | eval "$ac_cv_use_fs_inet" | |
5189 | if test "$no_cache" != 1; then | |
5190 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5191 | fi | |
5192 | ||
5193 | if test "$wxUSE_FS_INET" = yes; then | |
5194 | echo "$as_me:$LINENO: result: yes" >&5 | |
5195 | echo "${ECHO_T}yes" >&6 | |
5196 | else | |
5197 | echo "$as_me:$LINENO: result: no" >&5 | |
5198 | echo "${ECHO_T}no" >&6 | |
5199 | fi | |
5200 | ||
5201 | ||
5202 | enablestring= | |
5203 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5204 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5205 | no_cache=0 | |
5206 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5207 | if test "${enable_fs_zip+set}" = set; then | |
5208 | enableval="$enable_fs_zip" | |
5209 | ||
5210 | if test "$enableval" = yes; then | |
5211 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5212 | else | |
5213 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5214 | fi | |
5215 | ||
5216 | else | |
5217 | ||
5218 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5219 | if test "x$LINE" != x ; then | |
5220 | eval "DEFAULT_$LINE" | |
5221 | else | |
5222 | no_cache=1 | |
5223 | fi | |
5224 | ||
5225 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5226 | ||
5227 | fi; | |
5228 | ||
5229 | eval "$ac_cv_use_fs_zip" | |
5230 | if test "$no_cache" != 1; then | |
5231 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5232 | fi | |
5233 | ||
5234 | if test "$wxUSE_FS_ZIP" = yes; then | |
5235 | echo "$as_me:$LINENO: result: yes" >&5 | |
5236 | echo "${ECHO_T}yes" >&6 | |
5237 | else | |
5238 | echo "$as_me:$LINENO: result: no" >&5 | |
5239 | echo "${ECHO_T}no" >&6 | |
5240 | fi | |
5241 | ||
5242 | ||
5243 | enablestring= | |
5244 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5245 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5246 | no_cache=0 | |
5247 | # Check whether --enable-geometry or --disable-geometry was given. | |
5248 | if test "${enable_geometry+set}" = set; then | |
5249 | enableval="$enable_geometry" | |
5250 | ||
5251 | if test "$enableval" = yes; then | |
5252 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5253 | else | |
5254 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5255 | fi | |
5256 | ||
5257 | else | |
5258 | ||
5259 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5260 | if test "x$LINE" != x ; then | |
5261 | eval "DEFAULT_$LINE" | |
5262 | else | |
5263 | no_cache=1 | |
5264 | fi | |
5265 | ||
5266 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5267 | ||
5268 | fi; | |
5269 | ||
5270 | eval "$ac_cv_use_geometry" | |
5271 | if test "$no_cache" != 1; then | |
5272 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5273 | fi | |
5274 | ||
5275 | if test "$wxUSE_GEOMETRY" = yes; then | |
5276 | echo "$as_me:$LINENO: result: yes" >&5 | |
5277 | echo "${ECHO_T}yes" >&6 | |
5278 | else | |
5279 | echo "$as_me:$LINENO: result: no" >&5 | |
5280 | echo "${ECHO_T}no" >&6 | |
5281 | fi | |
5282 | ||
5283 | ||
5284 | enablestring= | |
5285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5286 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5287 | no_cache=0 | |
5288 | # Check whether --enable-log or --disable-log was given. | |
5289 | if test "${enable_log+set}" = set; then | |
5290 | enableval="$enable_log" | |
5291 | ||
5292 | if test "$enableval" = yes; then | |
5293 | ac_cv_use_log='wxUSE_LOG=yes' | |
5294 | else | |
5295 | ac_cv_use_log='wxUSE_LOG=no' | |
5296 | fi | |
5297 | ||
5298 | else | |
5299 | ||
5300 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5301 | if test "x$LINE" != x ; then | |
5302 | eval "DEFAULT_$LINE" | |
5303 | else | |
5304 | no_cache=1 | |
5305 | fi | |
5306 | ||
5307 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5308 | ||
5309 | fi; | |
5310 | ||
5311 | eval "$ac_cv_use_log" | |
5312 | if test "$no_cache" != 1; then | |
5313 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5314 | fi | |
5315 | ||
5316 | if test "$wxUSE_LOG" = yes; then | |
5317 | echo "$as_me:$LINENO: result: yes" >&5 | |
5318 | echo "${ECHO_T}yes" >&6 | |
5319 | else | |
5320 | echo "$as_me:$LINENO: result: no" >&5 | |
5321 | echo "${ECHO_T}no" >&6 | |
5322 | fi | |
5323 | ||
5324 | ||
5325 | enablestring= | |
5326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5327 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5328 | no_cache=0 | |
5329 | # Check whether --enable-longlong or --disable-longlong was given. | |
5330 | if test "${enable_longlong+set}" = set; then | |
5331 | enableval="$enable_longlong" | |
5332 | ||
5333 | if test "$enableval" = yes; then | |
5334 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5335 | else | |
5336 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5337 | fi | |
5338 | ||
5339 | else | |
5340 | ||
5341 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5342 | if test "x$LINE" != x ; then | |
5343 | eval "DEFAULT_$LINE" | |
5344 | else | |
5345 | no_cache=1 | |
5346 | fi | |
5347 | ||
5348 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5349 | ||
5350 | fi; | |
5351 | ||
5352 | eval "$ac_cv_use_longlong" | |
5353 | if test "$no_cache" != 1; then | |
5354 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5355 | fi | |
5356 | ||
5357 | if test "$wxUSE_LONGLONG" = yes; then | |
5358 | echo "$as_me:$LINENO: result: yes" >&5 | |
5359 | echo "${ECHO_T}yes" >&6 | |
5360 | else | |
5361 | echo "$as_me:$LINENO: result: no" >&5 | |
5362 | echo "${ECHO_T}no" >&6 | |
5363 | fi | |
5364 | ||
5365 | ||
5366 | enablestring= | |
5367 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5368 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5369 | no_cache=0 | |
5370 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5371 | if test "${enable_mimetype+set}" = set; then | |
5372 | enableval="$enable_mimetype" | |
5373 | ||
5374 | if test "$enableval" = yes; then | |
5375 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5376 | else | |
5377 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5378 | fi | |
5379 | ||
5380 | else | |
5381 | ||
5382 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5383 | if test "x$LINE" != x ; then | |
5384 | eval "DEFAULT_$LINE" | |
5385 | else | |
5386 | no_cache=1 | |
5387 | fi | |
5388 | ||
5389 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5390 | ||
5391 | fi; | |
5392 | ||
5393 | eval "$ac_cv_use_mimetype" | |
5394 | if test "$no_cache" != 1; then | |
5395 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5396 | fi | |
5397 | ||
5398 | if test "$wxUSE_MIMETYPE" = yes; then | |
5399 | echo "$as_me:$LINENO: result: yes" >&5 | |
5400 | echo "${ECHO_T}yes" >&6 | |
5401 | else | |
5402 | echo "$as_me:$LINENO: result: no" >&5 | |
5403 | echo "${ECHO_T}no" >&6 | |
5404 | fi | |
5405 | ||
5406 | ||
5407 | enablestring= | |
5408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5409 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5410 | no_cache=0 | |
5411 | # Check whether --enable-mslu or --disable-mslu was given. | |
5412 | if test "${enable_mslu+set}" = set; then | |
5413 | enableval="$enable_mslu" | |
5414 | ||
5415 | if test "$enableval" = yes; then | |
5416 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5417 | else | |
5418 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5419 | fi | |
5420 | ||
5421 | else | |
5422 | ||
5423 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5424 | if test "x$LINE" != x ; then | |
5425 | eval "DEFAULT_$LINE" | |
5426 | else | |
5427 | no_cache=1 | |
5428 | fi | |
5429 | ||
5430 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5431 | ||
5432 | fi; | |
5433 | ||
5434 | eval "$ac_cv_use_mslu" | |
5435 | if test "$no_cache" != 1; then | |
5436 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5437 | fi | |
5438 | ||
5439 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5440 | echo "$as_me:$LINENO: result: yes" >&5 | |
5441 | echo "${ECHO_T}yes" >&6 | |
5442 | else | |
5443 | echo "$as_me:$LINENO: result: no" >&5 | |
5444 | echo "${ECHO_T}no" >&6 | |
5445 | fi | |
5446 | ||
5447 | ||
5448 | enablestring= | |
5449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5450 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5451 | no_cache=0 | |
5452 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5453 | if test "${enable_snglinst+set}" = set; then | |
5454 | enableval="$enable_snglinst" | |
5455 | ||
5456 | if test "$enableval" = yes; then | |
5457 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5458 | else | |
5459 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5460 | fi | |
5461 | ||
5462 | else | |
5463 | ||
5464 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5465 | if test "x$LINE" != x ; then | |
5466 | eval "DEFAULT_$LINE" | |
5467 | else | |
5468 | no_cache=1 | |
5469 | fi | |
5470 | ||
5471 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5472 | ||
5473 | fi; | |
5474 | ||
5475 | eval "$ac_cv_use_snglinst" | |
5476 | if test "$no_cache" != 1; then | |
5477 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5478 | fi | |
5479 | ||
5480 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5481 | echo "$as_me:$LINENO: result: yes" >&5 | |
5482 | echo "${ECHO_T}yes" >&6 | |
5483 | else | |
5484 | echo "$as_me:$LINENO: result: no" >&5 | |
5485 | echo "${ECHO_T}no" >&6 | |
5486 | fi | |
5487 | ||
5488 | ||
5489 | enablestring= | |
5490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5491 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5492 | no_cache=0 | |
5493 | # Check whether --enable-streams or --disable-streams was given. | |
5494 | if test "${enable_streams+set}" = set; then | |
5495 | enableval="$enable_streams" | |
5496 | ||
5497 | if test "$enableval" = yes; then | |
5498 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5499 | else | |
5500 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5501 | fi | |
5502 | ||
5503 | else | |
5504 | ||
5505 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5513 | ||
5514 | fi; | |
5515 | ||
5516 | eval "$ac_cv_use_streams" | |
5517 | if test "$no_cache" != 1; then | |
5518 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5519 | fi | |
5520 | ||
5521 | if test "$wxUSE_STREAMS" = yes; then | |
5522 | echo "$as_me:$LINENO: result: yes" >&5 | |
5523 | echo "${ECHO_T}yes" >&6 | |
5524 | else | |
5525 | echo "$as_me:$LINENO: result: no" >&5 | |
5526 | echo "${ECHO_T}no" >&6 | |
5527 | fi | |
5528 | ||
5529 | ||
5530 | enablestring= | |
5531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5532 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5533 | no_cache=0 | |
5534 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5535 | if test "${enable_std_iostreams+set}" = set; then | |
5536 | enableval="$enable_std_iostreams" | |
5537 | ||
5538 | if test "$enableval" = yes; then | |
5539 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5540 | else | |
5541 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5542 | fi | |
5543 | ||
5544 | else | |
5545 | ||
5546 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5547 | if test "x$LINE" != x ; then | |
5548 | eval "DEFAULT_$LINE" | |
5549 | else | |
5550 | no_cache=1 | |
5551 | fi | |
5552 | ||
5553 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5554 | ||
5555 | fi; | |
5556 | ||
5557 | eval "$ac_cv_use_std_iostreams" | |
5558 | if test "$no_cache" != 1; then | |
5559 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5560 | fi | |
5561 | ||
5562 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5563 | echo "$as_me:$LINENO: result: yes" >&5 | |
5564 | echo "${ECHO_T}yes" >&6 | |
5565 | else | |
5566 | echo "$as_me:$LINENO: result: no" >&5 | |
5567 | echo "${ECHO_T}no" >&6 | |
5568 | fi | |
5569 | ||
5570 | ||
5571 | enablestring= | |
5572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5573 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5574 | no_cache=0 | |
5575 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5576 | if test "${enable_stopwatch+set}" = set; then | |
5577 | enableval="$enable_stopwatch" | |
5578 | ||
5579 | if test "$enableval" = yes; then | |
5580 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5581 | else | |
5582 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5583 | fi | |
5584 | ||
5585 | else | |
5586 | ||
5587 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5588 | if test "x$LINE" != x ; then | |
5589 | eval "DEFAULT_$LINE" | |
5590 | else | |
5591 | no_cache=1 | |
5592 | fi | |
5593 | ||
5594 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5595 | ||
5596 | fi; | |
5597 | ||
5598 | eval "$ac_cv_use_stopwatch" | |
5599 | if test "$no_cache" != 1; then | |
5600 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5601 | fi | |
5602 | ||
5603 | if test "$wxUSE_STOPWATCH" = yes; then | |
5604 | echo "$as_me:$LINENO: result: yes" >&5 | |
5605 | echo "${ECHO_T}yes" >&6 | |
5606 | else | |
5607 | echo "$as_me:$LINENO: result: no" >&5 | |
5608 | echo "${ECHO_T}no" >&6 | |
5609 | fi | |
5610 | ||
5611 | ||
5612 | enablestring= | |
5613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5614 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5615 | no_cache=0 | |
5616 | # Check whether --enable-system_options or --disable-system_options was given. | |
5617 | if test "${enable_system_options+set}" = set; then | |
5618 | enableval="$enable_system_options" | |
5619 | ||
5620 | if test "$enableval" = yes; then | |
5621 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5622 | else | |
5623 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5624 | fi | |
5625 | ||
5626 | else | |
5627 | ||
5628 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5629 | if test "x$LINE" != x ; then | |
5630 | eval "DEFAULT_$LINE" | |
5631 | else | |
5632 | no_cache=1 | |
5633 | fi | |
5634 | ||
5635 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5636 | ||
5637 | fi; | |
5638 | ||
5639 | eval "$ac_cv_use_system_options" | |
5640 | if test "$no_cache" != 1; then | |
5641 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5642 | fi | |
5643 | ||
5644 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5645 | echo "$as_me:$LINENO: result: yes" >&5 | |
5646 | echo "${ECHO_T}yes" >&6 | |
5647 | else | |
5648 | echo "$as_me:$LINENO: result: no" >&5 | |
5649 | echo "${ECHO_T}no" >&6 | |
5650 | fi | |
5651 | ||
5652 | ||
5653 | enablestring= | |
5654 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5655 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5656 | no_cache=0 | |
5657 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5658 | if test "${enable_textbuf+set}" = set; then | |
5659 | enableval="$enable_textbuf" | |
5660 | ||
5661 | if test "$enableval" = yes; then | |
5662 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5663 | else | |
5664 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5665 | fi | |
5666 | ||
5667 | else | |
5668 | ||
5669 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5670 | if test "x$LINE" != x ; then | |
5671 | eval "DEFAULT_$LINE" | |
5672 | else | |
5673 | no_cache=1 | |
5674 | fi | |
5675 | ||
5676 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5677 | ||
5678 | fi; | |
5679 | ||
5680 | eval "$ac_cv_use_textbuf" | |
5681 | if test "$no_cache" != 1; then | |
5682 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5683 | fi | |
5684 | ||
5685 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5686 | echo "$as_me:$LINENO: result: yes" >&5 | |
5687 | echo "${ECHO_T}yes" >&6 | |
5688 | else | |
5689 | echo "$as_me:$LINENO: result: no" >&5 | |
5690 | echo "${ECHO_T}no" >&6 | |
5691 | fi | |
5692 | ||
5693 | ||
5694 | enablestring= | |
5695 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5696 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5697 | no_cache=0 | |
5698 | # Check whether --enable-textfile or --disable-textfile was given. | |
5699 | if test "${enable_textfile+set}" = set; then | |
5700 | enableval="$enable_textfile" | |
5701 | ||
5702 | if test "$enableval" = yes; then | |
5703 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5704 | else | |
5705 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5706 | fi | |
5707 | ||
5708 | else | |
5709 | ||
5710 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5711 | if test "x$LINE" != x ; then | |
5712 | eval "DEFAULT_$LINE" | |
5713 | else | |
5714 | no_cache=1 | |
5715 | fi | |
5716 | ||
5717 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5718 | ||
5719 | fi; | |
5720 | ||
5721 | eval "$ac_cv_use_textfile" | |
5722 | if test "$no_cache" != 1; then | |
5723 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5724 | fi | |
5725 | ||
5726 | if test "$wxUSE_TEXTFILE" = yes; then | |
5727 | echo "$as_me:$LINENO: result: yes" >&5 | |
5728 | echo "${ECHO_T}yes" >&6 | |
5729 | else | |
5730 | echo "$as_me:$LINENO: result: no" >&5 | |
5731 | echo "${ECHO_T}no" >&6 | |
5732 | fi | |
5733 | ||
5734 | ||
5735 | enablestring= | |
5736 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5737 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5738 | no_cache=0 | |
5739 | # Check whether --enable-timer or --disable-timer was given. | |
5740 | if test "${enable_timer+set}" = set; then | |
5741 | enableval="$enable_timer" | |
5742 | ||
5743 | if test "$enableval" = yes; then | |
5744 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5745 | else | |
5746 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5747 | fi | |
5748 | ||
5749 | else | |
5750 | ||
5751 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5752 | if test "x$LINE" != x ; then | |
5753 | eval "DEFAULT_$LINE" | |
5754 | else | |
5755 | no_cache=1 | |
5756 | fi | |
5757 | ||
5758 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5759 | ||
5760 | fi; | |
5761 | ||
5762 | eval "$ac_cv_use_timer" | |
5763 | if test "$no_cache" != 1; then | |
5764 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5765 | fi | |
5766 | ||
5767 | if test "$wxUSE_TIMER" = yes; then | |
5768 | echo "$as_me:$LINENO: result: yes" >&5 | |
5769 | echo "${ECHO_T}yes" >&6 | |
5770 | else | |
5771 | echo "$as_me:$LINENO: result: no" >&5 | |
5772 | echo "${ECHO_T}no" >&6 | |
5773 | fi | |
5774 | ||
5775 | ||
5776 | enablestring= | |
5777 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5778 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5779 | no_cache=0 | |
5780 | # Check whether --enable-unicode or --disable-unicode was given. | |
5781 | if test "${enable_unicode+set}" = set; then | |
5782 | enableval="$enable_unicode" | |
5783 | ||
5784 | if test "$enableval" = yes; then | |
5785 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5786 | else | |
5787 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5788 | fi | |
5789 | ||
5790 | else | |
5791 | ||
5792 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5793 | if test "x$LINE" != x ; then | |
5794 | eval "DEFAULT_$LINE" | |
5795 | else | |
5796 | no_cache=1 | |
5797 | fi | |
5798 | ||
5799 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5800 | ||
5801 | fi; | |
5802 | ||
5803 | eval "$ac_cv_use_unicode" | |
5804 | if test "$no_cache" != 1; then | |
5805 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5806 | fi | |
5807 | ||
5808 | if test "$wxUSE_UNICODE" = yes; then | |
5809 | echo "$as_me:$LINENO: result: yes" >&5 | |
5810 | echo "${ECHO_T}yes" >&6 | |
5811 | else | |
5812 | echo "$as_me:$LINENO: result: no" >&5 | |
5813 | echo "${ECHO_T}no" >&6 | |
5814 | fi | |
5815 | ||
5816 | ||
5817 | enablestring= | |
5818 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5819 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5820 | no_cache=0 | |
5821 | # Check whether --enable-sound or --disable-sound was given. | |
5822 | if test "${enable_sound+set}" = set; then | |
5823 | enableval="$enable_sound" | |
5824 | ||
5825 | if test "$enableval" = yes; then | |
5826 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5827 | else | |
5828 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5829 | fi | |
5830 | ||
5831 | else | |
5832 | ||
5833 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5834 | if test "x$LINE" != x ; then | |
5835 | eval "DEFAULT_$LINE" | |
5836 | else | |
5837 | no_cache=1 | |
5838 | fi | |
5839 | ||
5840 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5841 | ||
5842 | fi; | |
5843 | ||
5844 | eval "$ac_cv_use_sound" | |
5845 | if test "$no_cache" != 1; then | |
5846 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5847 | fi | |
5848 | ||
5849 | if test "$wxUSE_SOUND" = yes; then | |
5850 | echo "$as_me:$LINENO: result: yes" >&5 | |
5851 | echo "${ECHO_T}yes" >&6 | |
5852 | else | |
5853 | echo "$as_me:$LINENO: result: no" >&5 | |
5854 | echo "${ECHO_T}no" >&6 | |
5855 | fi | |
5856 | ||
5857 | ||
3b57de8b RL |
5858 | enablestring= |
5859 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5860 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5861 | no_cache=0 | |
5862 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5863 | if test "${enable_mediactrl+set}" = set; then | |
5864 | enableval="$enable_mediactrl" | |
5865 | ||
5866 | if test "$enableval" = yes; then | |
5867 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5868 | else | |
5869 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5870 | fi | |
5871 | ||
5872 | else | |
5873 | ||
5874 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5875 | if test "x$LINE" != x ; then | |
5876 | eval "DEFAULT_$LINE" | |
5877 | else | |
5878 | no_cache=1 | |
5879 | fi | |
5880 | ||
5881 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5882 | ||
5883 | fi; | |
5884 | ||
5885 | eval "$ac_cv_use_mediactrl" | |
5886 | if test "$no_cache" != 1; then | |
5887 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5888 | fi | |
5889 | ||
5890 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5891 | echo "$as_me:$LINENO: result: yes" >&5 | |
5892 | echo "${ECHO_T}yes" >&6 | |
5893 | else | |
5894 | echo "$as_me:$LINENO: result: no" >&5 | |
5895 | echo "${ECHO_T}no" >&6 | |
5896 | fi | |
5897 | ||
5898 | ||
a848cd7e SC |
5899 | enablestring= |
5900 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5901 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5902 | no_cache=0 | |
5903 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5904 | if test "${enable_wxprintfv+set}" = set; then | |
5905 | enableval="$enable_wxprintfv" | |
5906 | ||
5907 | if test "$enableval" = yes; then | |
5908 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5909 | else | |
5910 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5911 | fi | |
5912 | ||
5913 | else | |
5914 | ||
5915 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5916 | if test "x$LINE" != x ; then | |
5917 | eval "DEFAULT_$LINE" | |
5918 | else | |
5919 | no_cache=1 | |
5920 | fi | |
5921 | ||
5922 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5923 | ||
5924 | fi; | |
5925 | ||
5926 | eval "$ac_cv_use_wxprintfv" | |
5927 | if test "$no_cache" != 1; then | |
5928 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5929 | fi | |
5930 | ||
5931 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5932 | echo "$as_me:$LINENO: result: yes" >&5 | |
5933 | echo "${ECHO_T}yes" >&6 | |
5934 | else | |
5935 | echo "$as_me:$LINENO: result: no" >&5 | |
5936 | echo "${ECHO_T}no" >&6 | |
5937 | fi | |
5938 | ||
5939 | ||
5940 | enablestring= | |
5941 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5942 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5943 | no_cache=0 | |
5944 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5945 | if test "${enable_zipstream+set}" = set; then | |
5946 | enableval="$enable_zipstream" | |
5947 | ||
5948 | if test "$enableval" = yes; then | |
5949 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5950 | else | |
5951 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5952 | fi | |
5953 | ||
5954 | else | |
5955 | ||
5956 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5957 | if test "x$LINE" != x ; then | |
5958 | eval "DEFAULT_$LINE" | |
5959 | else | |
5960 | no_cache=1 | |
5961 | fi | |
5962 | ||
5963 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5964 | ||
5965 | fi; | |
5966 | ||
5967 | eval "$ac_cv_use_zipstream" | |
5968 | if test "$no_cache" != 1; then | |
5969 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5970 | fi | |
5971 | ||
5972 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5973 | echo "$as_me:$LINENO: result: yes" >&5 | |
5974 | echo "${ECHO_T}yes" >&6 | |
5975 | else | |
5976 | echo "$as_me:$LINENO: result: no" >&5 | |
5977 | echo "${ECHO_T}no" >&6 | |
5978 | fi | |
5979 | ||
5980 | ||
a848cd7e SC |
5981 | |
5982 | enablestring= | |
5983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5984 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5985 | no_cache=0 | |
5986 | # Check whether --enable-url or --disable-url was given. | |
5987 | if test "${enable_url+set}" = set; then | |
5988 | enableval="$enable_url" | |
5989 | ||
5990 | if test "$enableval" = yes; then | |
5991 | ac_cv_use_url='wxUSE_URL=yes' | |
5992 | else | |
5993 | ac_cv_use_url='wxUSE_URL=no' | |
5994 | fi | |
5995 | ||
5996 | else | |
5997 | ||
5998 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5999 | if test "x$LINE" != x ; then | |
6000 | eval "DEFAULT_$LINE" | |
6001 | else | |
6002 | no_cache=1 | |
6003 | fi | |
6004 | ||
6005 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6006 | ||
6007 | fi; | |
6008 | ||
6009 | eval "$ac_cv_use_url" | |
6010 | if test "$no_cache" != 1; then | |
6011 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6012 | fi | |
6013 | ||
6014 | if test "$wxUSE_URL" = yes; then | |
6015 | echo "$as_me:$LINENO: result: yes" >&5 | |
6016 | echo "${ECHO_T}yes" >&6 | |
6017 | else | |
6018 | echo "$as_me:$LINENO: result: no" >&5 | |
6019 | echo "${ECHO_T}no" >&6 | |
6020 | fi | |
6021 | ||
6022 | ||
6023 | enablestring= | |
6024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6025 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6026 | no_cache=0 | |
6027 | # Check whether --enable-protocol or --disable-protocol was given. | |
6028 | if test "${enable_protocol+set}" = set; then | |
6029 | enableval="$enable_protocol" | |
6030 | ||
6031 | if test "$enableval" = yes; then | |
6032 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6033 | else | |
6034 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6035 | fi | |
6036 | ||
6037 | else | |
6038 | ||
6039 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6040 | if test "x$LINE" != x ; then | |
6041 | eval "DEFAULT_$LINE" | |
6042 | else | |
6043 | no_cache=1 | |
6044 | fi | |
6045 | ||
6046 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6047 | ||
6048 | fi; | |
6049 | ||
6050 | eval "$ac_cv_use_protocol" | |
6051 | if test "$no_cache" != 1; then | |
6052 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6053 | fi | |
6054 | ||
6055 | if test "$wxUSE_PROTOCOL" = yes; then | |
6056 | echo "$as_me:$LINENO: result: yes" >&5 | |
6057 | echo "${ECHO_T}yes" >&6 | |
6058 | else | |
6059 | echo "$as_me:$LINENO: result: no" >&5 | |
6060 | echo "${ECHO_T}no" >&6 | |
6061 | fi | |
6062 | ||
6063 | ||
6064 | enablestring= | |
6065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6066 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6067 | no_cache=0 | |
6068 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6069 | if test "${enable_protocol_http+set}" = set; then | |
6070 | enableval="$enable_protocol_http" | |
6071 | ||
6072 | if test "$enableval" = yes; then | |
6073 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6074 | else | |
6075 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6076 | fi | |
6077 | ||
6078 | else | |
6079 | ||
6080 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6081 | if test "x$LINE" != x ; then | |
6082 | eval "DEFAULT_$LINE" | |
6083 | else | |
6084 | no_cache=1 | |
6085 | fi | |
6086 | ||
6087 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6088 | ||
6089 | fi; | |
6090 | ||
6091 | eval "$ac_cv_use_protocol_http" | |
6092 | if test "$no_cache" != 1; then | |
6093 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6094 | fi | |
6095 | ||
6096 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6097 | echo "$as_me:$LINENO: result: yes" >&5 | |
6098 | echo "${ECHO_T}yes" >&6 | |
6099 | else | |
6100 | echo "$as_me:$LINENO: result: no" >&5 | |
6101 | echo "${ECHO_T}no" >&6 | |
6102 | fi | |
6103 | ||
6104 | ||
6105 | enablestring= | |
6106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6107 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6108 | no_cache=0 | |
6109 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6110 | if test "${enable_protocol_ftp+set}" = set; then | |
6111 | enableval="$enable_protocol_ftp" | |
6112 | ||
6113 | if test "$enableval" = yes; then | |
6114 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6115 | else | |
6116 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6117 | fi | |
6118 | ||
6119 | else | |
6120 | ||
6121 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6122 | if test "x$LINE" != x ; then | |
6123 | eval "DEFAULT_$LINE" | |
6124 | else | |
6125 | no_cache=1 | |
6126 | fi | |
6127 | ||
6128 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6129 | ||
6130 | fi; | |
6131 | ||
6132 | eval "$ac_cv_use_protocol_ftp" | |
6133 | if test "$no_cache" != 1; then | |
6134 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6135 | fi | |
6136 | ||
6137 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6138 | echo "$as_me:$LINENO: result: yes" >&5 | |
6139 | echo "${ECHO_T}yes" >&6 | |
6140 | else | |
6141 | echo "$as_me:$LINENO: result: no" >&5 | |
6142 | echo "${ECHO_T}no" >&6 | |
6143 | fi | |
6144 | ||
6145 | ||
6146 | enablestring= | |
6147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6148 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6149 | no_cache=0 | |
6150 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6151 | if test "${enable_protocol_file+set}" = set; then | |
6152 | enableval="$enable_protocol_file" | |
6153 | ||
6154 | if test "$enableval" = yes; then | |
6155 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6156 | else | |
6157 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6158 | fi | |
6159 | ||
6160 | else | |
6161 | ||
6162 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6163 | if test "x$LINE" != x ; then | |
6164 | eval "DEFAULT_$LINE" | |
6165 | else | |
6166 | no_cache=1 | |
6167 | fi | |
6168 | ||
6169 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6170 | ||
6171 | fi; | |
6172 | ||
6173 | eval "$ac_cv_use_protocol_file" | |
6174 | if test "$no_cache" != 1; then | |
6175 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6176 | fi | |
6177 | ||
6178 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6179 | echo "$as_me:$LINENO: result: yes" >&5 | |
6180 | echo "${ECHO_T}yes" >&6 | |
6181 | else | |
6182 | echo "$as_me:$LINENO: result: no" >&5 | |
6183 | echo "${ECHO_T}no" >&6 | |
6184 | fi | |
6185 | ||
6186 | ||
6187 | ||
6188 | ||
6189 | ||
6190 | enablestring= | |
6191 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6192 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6193 | no_cache=0 | |
6194 | # Check whether --enable-threads or --disable-threads was given. | |
6195 | if test "${enable_threads+set}" = set; then | |
6196 | enableval="$enable_threads" | |
6197 | ||
6198 | if test "$enableval" = yes; then | |
6199 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6200 | else | |
6201 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6202 | fi | |
6203 | ||
6204 | else | |
6205 | ||
6206 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6207 | if test "x$LINE" != x ; then | |
6208 | eval "DEFAULT_$LINE" | |
6209 | else | |
6210 | no_cache=1 | |
6211 | fi | |
6212 | ||
6213 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6214 | ||
6215 | fi; | |
6216 | ||
6217 | eval "$ac_cv_use_threads" | |
6218 | if test "$no_cache" != 1; then | |
6219 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6220 | fi | |
6221 | ||
6222 | if test "$wxUSE_THREADS" = yes; then | |
6223 | echo "$as_me:$LINENO: result: yes" >&5 | |
6224 | echo "${ECHO_T}yes" >&6 | |
6225 | else | |
6226 | echo "$as_me:$LINENO: result: no" >&5 | |
6227 | echo "${ECHO_T}no" >&6 | |
6228 | fi | |
6229 | ||
6230 | ||
6231 | if test "$wxUSE_GUI" = "yes"; then | |
6232 | ||
6233 | ||
6234 | ||
6235 | enablestring= | |
6236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6237 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6238 | no_cache=0 | |
6239 | # Check whether --enable-docview or --disable-docview was given. | |
6240 | if test "${enable_docview+set}" = set; then | |
6241 | enableval="$enable_docview" | |
6242 | ||
6243 | if test "$enableval" = yes; then | |
6244 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6245 | else | |
6246 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6247 | fi | |
6248 | ||
6249 | else | |
6250 | ||
6251 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6252 | if test "x$LINE" != x ; then | |
6253 | eval "DEFAULT_$LINE" | |
6254 | else | |
6255 | no_cache=1 | |
6256 | fi | |
6257 | ||
6258 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6259 | ||
6260 | fi; | |
6261 | ||
6262 | eval "$ac_cv_use_docview" | |
6263 | if test "$no_cache" != 1; then | |
6264 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6265 | fi | |
6266 | ||
6267 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6268 | echo "$as_me:$LINENO: result: yes" >&5 | |
6269 | echo "${ECHO_T}yes" >&6 | |
6270 | else | |
6271 | echo "$as_me:$LINENO: result: no" >&5 | |
6272 | echo "${ECHO_T}no" >&6 | |
6273 | fi | |
6274 | ||
6275 | ||
6276 | enablestring= | |
6277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6278 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6279 | no_cache=0 | |
6280 | # Check whether --enable-help or --disable-help was given. | |
6281 | if test "${enable_help+set}" = set; then | |
6282 | enableval="$enable_help" | |
6283 | ||
6284 | if test "$enableval" = yes; then | |
6285 | ac_cv_use_help='wxUSE_HELP=yes' | |
6286 | else | |
6287 | ac_cv_use_help='wxUSE_HELP=no' | |
6288 | fi | |
6289 | ||
6290 | else | |
6291 | ||
6292 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6293 | if test "x$LINE" != x ; then | |
6294 | eval "DEFAULT_$LINE" | |
6295 | else | |
6296 | no_cache=1 | |
6297 | fi | |
6298 | ||
6299 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6300 | ||
6301 | fi; | |
6302 | ||
6303 | eval "$ac_cv_use_help" | |
6304 | if test "$no_cache" != 1; then | |
6305 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6306 | fi | |
6307 | ||
6308 | if test "$wxUSE_HELP" = yes; then | |
6309 | echo "$as_me:$LINENO: result: yes" >&5 | |
6310 | echo "${ECHO_T}yes" >&6 | |
6311 | else | |
6312 | echo "$as_me:$LINENO: result: no" >&5 | |
6313 | echo "${ECHO_T}no" >&6 | |
6314 | fi | |
6315 | ||
6316 | ||
6317 | enablestring= | |
6318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6319 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6320 | no_cache=0 | |
6321 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6322 | if test "${enable_mshtmlhelp+set}" = set; then | |
6323 | enableval="$enable_mshtmlhelp" | |
6324 | ||
6325 | if test "$enableval" = yes; then | |
6326 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6327 | else | |
6328 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6329 | fi | |
6330 | ||
6331 | else | |
6332 | ||
6333 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6334 | if test "x$LINE" != x ; then | |
6335 | eval "DEFAULT_$LINE" | |
6336 | else | |
6337 | no_cache=1 | |
6338 | fi | |
6339 | ||
6340 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6341 | ||
6342 | fi; | |
6343 | ||
6344 | eval "$ac_cv_use_mshtmlhelp" | |
6345 | if test "$no_cache" != 1; then | |
6346 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6347 | fi | |
6348 | ||
6349 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6350 | echo "$as_me:$LINENO: result: yes" >&5 | |
6351 | echo "${ECHO_T}yes" >&6 | |
6352 | else | |
6353 | echo "$as_me:$LINENO: result: no" >&5 | |
6354 | echo "${ECHO_T}no" >&6 | |
6355 | fi | |
6356 | ||
6357 | ||
6358 | enablestring= | |
6359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6360 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6361 | no_cache=0 | |
6362 | # Check whether --enable-html or --disable-html was given. | |
6363 | if test "${enable_html+set}" = set; then | |
6364 | enableval="$enable_html" | |
6365 | ||
6366 | if test "$enableval" = yes; then | |
6367 | ac_cv_use_html='wxUSE_HTML=yes' | |
6368 | else | |
6369 | ac_cv_use_html='wxUSE_HTML=no' | |
6370 | fi | |
6371 | ||
6372 | else | |
6373 | ||
6374 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6375 | if test "x$LINE" != x ; then | |
6376 | eval "DEFAULT_$LINE" | |
6377 | else | |
6378 | no_cache=1 | |
6379 | fi | |
6380 | ||
6381 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6382 | ||
6383 | fi; | |
6384 | ||
6385 | eval "$ac_cv_use_html" | |
6386 | if test "$no_cache" != 1; then | |
6387 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6388 | fi | |
6389 | ||
6390 | if test "$wxUSE_HTML" = yes; then | |
6391 | echo "$as_me:$LINENO: result: yes" >&5 | |
6392 | echo "${ECHO_T}yes" >&6 | |
6393 | else | |
6394 | echo "$as_me:$LINENO: result: no" >&5 | |
6395 | echo "${ECHO_T}no" >&6 | |
6396 | fi | |
6397 | ||
6398 | ||
6399 | enablestring= | |
6400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6401 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6402 | no_cache=0 | |
6403 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6404 | if test "${enable_htmlhelp+set}" = set; then | |
6405 | enableval="$enable_htmlhelp" | |
6406 | ||
6407 | if test "$enableval" = yes; then | |
6408 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6409 | else | |
6410 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6411 | fi | |
6412 | ||
6413 | else | |
6414 | ||
6415 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6416 | if test "x$LINE" != x ; then | |
6417 | eval "DEFAULT_$LINE" | |
6418 | else | |
6419 | no_cache=1 | |
6420 | fi | |
6421 | ||
6422 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6423 | ||
6424 | fi; | |
6425 | ||
6426 | eval "$ac_cv_use_htmlhelp" | |
6427 | if test "$no_cache" != 1; then | |
6428 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6429 | fi | |
6430 | ||
6431 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6432 | echo "$as_me:$LINENO: result: yes" >&5 | |
6433 | echo "${ECHO_T}yes" >&6 | |
6434 | else | |
6435 | echo "$as_me:$LINENO: result: no" >&5 | |
6436 | echo "${ECHO_T}no" >&6 | |
6437 | fi | |
6438 | ||
6439 | ||
9a8f0513 VS |
6440 | enablestring= |
6441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6442 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6443 | no_cache=0 | |
6444 | # Check whether --enable-xrc or --disable-xrc was given. | |
6445 | if test "${enable_xrc+set}" = set; then | |
6446 | enableval="$enable_xrc" | |
6447 | ||
6448 | if test "$enableval" = yes; then | |
6449 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6450 | else | |
6451 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6452 | fi | |
6453 | ||
6454 | else | |
6455 | ||
6456 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6457 | if test "x$LINE" != x ; then | |
6458 | eval "DEFAULT_$LINE" | |
6459 | else | |
6460 | no_cache=1 | |
6461 | fi | |
6462 | ||
6463 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6464 | ||
6465 | fi; | |
6466 | ||
6467 | eval "$ac_cv_use_xrc" | |
6468 | if test "$no_cache" != 1; then | |
6469 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6470 | fi | |
6471 | ||
6472 | if test "$wxUSE_XRC" = yes; then | |
6473 | echo "$as_me:$LINENO: result: yes" >&5 | |
6474 | echo "${ECHO_T}yes" >&6 | |
6475 | else | |
6476 | echo "$as_me:$LINENO: result: no" >&5 | |
6477 | echo "${ECHO_T}no" >&6 | |
6478 | fi | |
6479 | ||
6480 | ||
a848cd7e SC |
6481 | enablestring= |
6482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6483 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6484 | no_cache=0 | |
6485 | # Check whether --enable-constraints or --disable-constraints was given. | |
6486 | if test "${enable_constraints+set}" = set; then | |
6487 | enableval="$enable_constraints" | |
6488 | ||
6489 | if test "$enableval" = yes; then | |
6490 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6491 | else | |
6492 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6493 | fi | |
6494 | ||
6495 | else | |
6496 | ||
6497 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6498 | if test "x$LINE" != x ; then | |
6499 | eval "DEFAULT_$LINE" | |
6500 | else | |
6501 | no_cache=1 | |
6502 | fi | |
6503 | ||
6504 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6505 | ||
6506 | fi; | |
6507 | ||
6508 | eval "$ac_cv_use_constraints" | |
6509 | if test "$no_cache" != 1; then | |
6510 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6511 | fi | |
6512 | ||
6513 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6514 | echo "$as_me:$LINENO: result: yes" >&5 | |
6515 | echo "${ECHO_T}yes" >&6 | |
6516 | else | |
6517 | echo "$as_me:$LINENO: result: no" >&5 | |
6518 | echo "${ECHO_T}no" >&6 | |
6519 | fi | |
6520 | ||
6521 | ||
6522 | enablestring= | |
6523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6524 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6525 | no_cache=0 | |
6526 | # Check whether --enable-printarch or --disable-printarch was given. | |
6527 | if test "${enable_printarch+set}" = set; then | |
6528 | enableval="$enable_printarch" | |
6529 | ||
6530 | if test "$enableval" = yes; then | |
6531 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6532 | else | |
6533 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6534 | fi | |
6535 | ||
6536 | else | |
6537 | ||
6538 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6539 | if test "x$LINE" != x ; then | |
6540 | eval "DEFAULT_$LINE" | |
6541 | else | |
6542 | no_cache=1 | |
6543 | fi | |
6544 | ||
6545 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6546 | ||
6547 | fi; | |
6548 | ||
6549 | eval "$ac_cv_use_printarch" | |
6550 | if test "$no_cache" != 1; then | |
6551 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6552 | fi | |
6553 | ||
6554 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6555 | echo "$as_me:$LINENO: result: yes" >&5 | |
6556 | echo "${ECHO_T}yes" >&6 | |
6557 | else | |
6558 | echo "$as_me:$LINENO: result: no" >&5 | |
6559 | echo "${ECHO_T}no" >&6 | |
6560 | fi | |
6561 | ||
6562 | ||
6563 | enablestring= | |
6564 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6565 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6566 | no_cache=0 | |
6567 | # Check whether --enable-mdi or --disable-mdi was given. | |
6568 | if test "${enable_mdi+set}" = set; then | |
6569 | enableval="$enable_mdi" | |
6570 | ||
6571 | if test "$enableval" = yes; then | |
8a7b1113 | 6572 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6573 | else |
8a7b1113 | 6574 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6575 | fi |
6576 | ||
6577 | else | |
6578 | ||
8a7b1113 | 6579 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6580 | if test "x$LINE" != x ; then |
6581 | eval "DEFAULT_$LINE" | |
6582 | else | |
6583 | no_cache=1 | |
6584 | fi | |
6585 | ||
8a7b1113 | 6586 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6587 | |
6588 | fi; | |
6589 | ||
6590 | eval "$ac_cv_use_mdi" | |
6591 | if test "$no_cache" != 1; then | |
6592 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6593 | fi | |
6594 | ||
8a7b1113 VZ |
6595 | if test "$wxUSE_MDI" = yes; then |
6596 | echo "$as_me:$LINENO: result: yes" >&5 | |
6597 | echo "${ECHO_T}yes" >&6 | |
6598 | else | |
6599 | echo "$as_me:$LINENO: result: no" >&5 | |
6600 | echo "${ECHO_T}no" >&6 | |
6601 | fi | |
6602 | ||
6603 | ||
6604 | enablestring= | |
6605 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6606 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6607 | no_cache=0 | |
6608 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6609 | if test "${enable_mdidoc+set}" = set; then | |
6610 | enableval="$enable_mdidoc" | |
6611 | ||
6612 | if test "$enableval" = yes; then | |
6613 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6614 | else | |
6615 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6616 | fi | |
6617 | ||
6618 | else | |
6619 | ||
6620 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6621 | if test "x$LINE" != x ; then | |
6622 | eval "DEFAULT_$LINE" | |
6623 | else | |
6624 | no_cache=1 | |
6625 | fi | |
6626 | ||
6627 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6628 | ||
6629 | fi; | |
6630 | ||
6631 | eval "$ac_cv_use_mdidoc" | |
6632 | if test "$no_cache" != 1; then | |
6633 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6634 | fi | |
6635 | ||
a848cd7e SC |
6636 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6637 | echo "$as_me:$LINENO: result: yes" >&5 | |
6638 | echo "${ECHO_T}yes" >&6 | |
6639 | else | |
6640 | echo "$as_me:$LINENO: result: no" >&5 | |
6641 | echo "${ECHO_T}no" >&6 | |
6642 | fi | |
6643 | ||
6644 | ||
6645 | enablestring= | |
6646 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6647 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6648 | no_cache=0 | |
6649 | # Check whether --enable-loggui or --disable-loggui was given. | |
6650 | if test "${enable_loggui+set}" = set; then | |
6651 | enableval="$enable_loggui" | |
6652 | ||
6653 | if test "$enableval" = yes; then | |
6654 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6655 | else | |
6656 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6657 | fi | |
6658 | ||
6659 | else | |
6660 | ||
6661 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6662 | if test "x$LINE" != x ; then | |
6663 | eval "DEFAULT_$LINE" | |
6664 | else | |
6665 | no_cache=1 | |
6666 | fi | |
6667 | ||
6668 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6669 | ||
6670 | fi; | |
6671 | ||
6672 | eval "$ac_cv_use_loggui" | |
6673 | if test "$no_cache" != 1; then | |
6674 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6675 | fi | |
6676 | ||
6677 | if test "$wxUSE_LOGGUI" = yes; then | |
6678 | echo "$as_me:$LINENO: result: yes" >&5 | |
6679 | echo "${ECHO_T}yes" >&6 | |
6680 | else | |
6681 | echo "$as_me:$LINENO: result: no" >&5 | |
6682 | echo "${ECHO_T}no" >&6 | |
6683 | fi | |
6684 | ||
6685 | ||
6686 | enablestring= | |
6687 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6688 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6689 | no_cache=0 | |
6690 | # Check whether --enable-logwin or --disable-logwin was given. | |
6691 | if test "${enable_logwin+set}" = set; then | |
6692 | enableval="$enable_logwin" | |
6693 | ||
6694 | if test "$enableval" = yes; then | |
6695 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6696 | else | |
6697 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6698 | fi | |
6699 | ||
6700 | else | |
6701 | ||
6702 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6703 | if test "x$LINE" != x ; then | |
6704 | eval "DEFAULT_$LINE" | |
6705 | else | |
6706 | no_cache=1 | |
6707 | fi | |
6708 | ||
6709 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6710 | ||
6711 | fi; | |
6712 | ||
6713 | eval "$ac_cv_use_logwin" | |
6714 | if test "$no_cache" != 1; then | |
6715 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6716 | fi | |
6717 | ||
6718 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6719 | echo "$as_me:$LINENO: result: yes" >&5 | |
6720 | echo "${ECHO_T}yes" >&6 | |
6721 | else | |
6722 | echo "$as_me:$LINENO: result: no" >&5 | |
6723 | echo "${ECHO_T}no" >&6 | |
6724 | fi | |
6725 | ||
6726 | ||
6727 | enablestring= | |
6728 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6729 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6730 | no_cache=0 | |
6731 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6732 | if test "${enable_logdialog+set}" = set; then | |
6733 | enableval="$enable_logdialog" | |
6734 | ||
6735 | if test "$enableval" = yes; then | |
6736 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6737 | else | |
6738 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6739 | fi | |
6740 | ||
6741 | else | |
6742 | ||
6743 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6744 | if test "x$LINE" != x ; then | |
6745 | eval "DEFAULT_$LINE" | |
6746 | else | |
6747 | no_cache=1 | |
6748 | fi | |
6749 | ||
6750 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6751 | ||
6752 | fi; | |
6753 | ||
6754 | eval "$ac_cv_use_logdialog" | |
6755 | if test "$no_cache" != 1; then | |
6756 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6757 | fi | |
6758 | ||
6759 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6760 | echo "$as_me:$LINENO: result: yes" >&5 | |
6761 | echo "${ECHO_T}yes" >&6 | |
6762 | else | |
6763 | echo "$as_me:$LINENO: result: no" >&5 | |
6764 | echo "${ECHO_T}no" >&6 | |
6765 | fi | |
6766 | ||
6767 | ||
646b6ec1 VS |
6768 | enablestring= |
6769 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6770 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6771 | no_cache=0 | |
6772 | # Check whether --enable-webkit or --disable-webkit was given. | |
6773 | if test "${enable_webkit+set}" = set; then | |
6774 | enableval="$enable_webkit" | |
6775 | ||
6776 | if test "$enableval" = yes; then | |
6777 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6778 | else | |
6779 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6780 | fi | |
6781 | ||
6782 | else | |
6783 | ||
6784 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6785 | if test "x$LINE" != x ; then | |
6786 | eval "DEFAULT_$LINE" | |
6787 | else | |
6788 | no_cache=1 | |
6789 | fi | |
6790 | ||
6791 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6792 | ||
6793 | fi; | |
6794 | ||
6795 | eval "$ac_cv_use_webkit" | |
6796 | if test "$no_cache" != 1; then | |
6797 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6798 | fi | |
6799 | ||
6800 | if test "$wxUSE_WEBKIT" = yes; then | |
6801 | echo "$as_me:$LINENO: result: yes" >&5 | |
6802 | echo "${ECHO_T}yes" >&6 | |
6803 | else | |
6804 | echo "$as_me:$LINENO: result: no" >&5 | |
6805 | echo "${ECHO_T}no" >&6 | |
6806 | fi | |
6807 | ||
6808 | ||
a848cd7e SC |
6809 | |
6810 | enablestring= | |
6811 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6812 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6813 | no_cache=0 | |
6814 | # Check whether --enable-postscript or --disable-postscript was given. | |
6815 | if test "${enable_postscript+set}" = set; then | |
6816 | enableval="$enable_postscript" | |
6817 | ||
6818 | if test "$enableval" = yes; then | |
6819 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6820 | else | |
6821 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6822 | fi | |
6823 | ||
6824 | else | |
6825 | ||
6826 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6827 | if test "x$LINE" != x ; then | |
6828 | eval "DEFAULT_$LINE" | |
6829 | else | |
6830 | no_cache=1 | |
6831 | fi | |
6832 | ||
6833 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6834 | ||
6835 | fi; | |
6836 | ||
6837 | eval "$ac_cv_use_postscript" | |
6838 | if test "$no_cache" != 1; then | |
6839 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6840 | fi | |
6841 | ||
6842 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6843 | echo "$as_me:$LINENO: result: yes" >&5 | |
6844 | echo "${ECHO_T}yes" >&6 | |
6845 | else | |
6846 | echo "$as_me:$LINENO: result: no" >&5 | |
6847 | echo "${ECHO_T}no" >&6 | |
6848 | fi | |
6849 | ||
6850 | ||
6851 | ||
6852 | ||
6853 | ||
6854 | enablestring= | |
6855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6856 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6857 | no_cache=0 | |
6858 | # Check whether --enable-prologio or --disable-prologio was given. | |
6859 | if test "${enable_prologio+set}" = set; then | |
6860 | enableval="$enable_prologio" | |
6861 | ||
6862 | if test "$enableval" = yes; then | |
6863 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6864 | else | |
6865 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6866 | fi | |
6867 | ||
6868 | else | |
6869 | ||
6870 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6871 | if test "x$LINE" != x ; then | |
6872 | eval "DEFAULT_$LINE" | |
6873 | else | |
6874 | no_cache=1 | |
6875 | fi | |
6876 | ||
6877 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6878 | ||
6879 | fi; | |
6880 | ||
6881 | eval "$ac_cv_use_prologio" | |
6882 | if test "$no_cache" != 1; then | |
6883 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6884 | fi | |
6885 | ||
6886 | if test "$wxUSE_PROLOGIO" = yes; then | |
6887 | echo "$as_me:$LINENO: result: yes" >&5 | |
6888 | echo "${ECHO_T}yes" >&6 | |
6889 | else | |
6890 | echo "$as_me:$LINENO: result: no" >&5 | |
6891 | echo "${ECHO_T}no" >&6 | |
6892 | fi | |
6893 | ||
6894 | ||
6895 | enablestring= | |
6896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6897 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6898 | no_cache=0 | |
6899 | # Check whether --enable-resources or --disable-resources was given. | |
6900 | if test "${enable_resources+set}" = set; then | |
6901 | enableval="$enable_resources" | |
6902 | ||
6903 | if test "$enableval" = yes; then | |
6904 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6905 | else | |
6906 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6907 | fi | |
6908 | ||
6909 | else | |
6910 | ||
6911 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6912 | if test "x$LINE" != x ; then | |
6913 | eval "DEFAULT_$LINE" | |
6914 | else | |
6915 | no_cache=1 | |
6916 | fi | |
6917 | ||
6918 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6919 | ||
6920 | fi; | |
6921 | ||
6922 | eval "$ac_cv_use_resources" | |
6923 | if test "$no_cache" != 1; then | |
6924 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6925 | fi | |
6926 | ||
6927 | if test "$wxUSE_RESOURCES" = yes; then | |
6928 | echo "$as_me:$LINENO: result: yes" >&5 | |
6929 | echo "${ECHO_T}yes" >&6 | |
6930 | else | |
6931 | echo "$as_me:$LINENO: result: no" >&5 | |
6932 | echo "${ECHO_T}no" >&6 | |
6933 | fi | |
6934 | ||
6935 | ||
6936 | ||
6937 | ||
6938 | enablestring= | |
6939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6940 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6941 | no_cache=0 | |
6942 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6943 | if test "${enable_clipboard+set}" = set; then | |
6944 | enableval="$enable_clipboard" | |
6945 | ||
6946 | if test "$enableval" = yes; then | |
6947 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6948 | else | |
6949 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6950 | fi | |
6951 | ||
6952 | else | |
6953 | ||
6954 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6955 | if test "x$LINE" != x ; then | |
6956 | eval "DEFAULT_$LINE" | |
6957 | else | |
6958 | no_cache=1 | |
6959 | fi | |
6960 | ||
6961 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6962 | ||
6963 | fi; | |
6964 | ||
6965 | eval "$ac_cv_use_clipboard" | |
6966 | if test "$no_cache" != 1; then | |
6967 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6968 | fi | |
6969 | ||
6970 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6971 | echo "$as_me:$LINENO: result: yes" >&5 | |
6972 | echo "${ECHO_T}yes" >&6 | |
6973 | else | |
6974 | echo "$as_me:$LINENO: result: no" >&5 | |
6975 | echo "${ECHO_T}no" >&6 | |
6976 | fi | |
6977 | ||
6978 | ||
6979 | enablestring= | |
6980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6981 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6982 | no_cache=0 | |
6983 | # Check whether --enable-dnd or --disable-dnd was given. | |
6984 | if test "${enable_dnd+set}" = set; then | |
6985 | enableval="$enable_dnd" | |
6986 | ||
6987 | if test "$enableval" = yes; then | |
6988 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6989 | else | |
6990 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6991 | fi | |
6992 | ||
6993 | else | |
6994 | ||
6995 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6996 | if test "x$LINE" != x ; then | |
6997 | eval "DEFAULT_$LINE" | |
6998 | else | |
6999 | no_cache=1 | |
7000 | fi | |
7001 | ||
7002 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7003 | ||
7004 | fi; | |
7005 | ||
7006 | eval "$ac_cv_use_dnd" | |
7007 | if test "$no_cache" != 1; then | |
7008 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7009 | fi | |
7010 | ||
7011 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7012 | echo "$as_me:$LINENO: result: yes" >&5 | |
7013 | echo "${ECHO_T}yes" >&6 | |
7014 | else | |
7015 | echo "$as_me:$LINENO: result: no" >&5 | |
7016 | echo "${ECHO_T}no" >&6 | |
7017 | fi | |
7018 | ||
7019 | ||
7020 | enablestring= | |
7021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7022 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7023 | no_cache=0 | |
7024 | # Check whether --enable-metafile or --disable-metafile was given. | |
7025 | if test "${enable_metafile+set}" = set; then | |
7026 | enableval="$enable_metafile" | |
7027 | ||
7028 | if test "$enableval" = yes; then | |
7029 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7030 | else | |
7031 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7032 | fi | |
7033 | ||
7034 | else | |
7035 | ||
7036 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7037 | if test "x$LINE" != x ; then | |
7038 | eval "DEFAULT_$LINE" | |
7039 | else | |
7040 | no_cache=1 | |
7041 | fi | |
7042 | ||
7043 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7044 | ||
7045 | fi; | |
7046 | ||
7047 | eval "$ac_cv_use_metafile" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_METAFILE" = yes; then | |
7053 | echo "$as_me:$LINENO: result: yes" >&5 | |
7054 | echo "${ECHO_T}yes" >&6 | |
7055 | else | |
7056 | echo "$as_me:$LINENO: result: no" >&5 | |
7057 | echo "${ECHO_T}no" >&6 | |
7058 | fi | |
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | enablestring= | |
7065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7066 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7067 | no_cache=0 | |
7068 | # Check whether --enable-controls or --disable-controls was given. | |
7069 | if test "${enable_controls+set}" = set; then | |
7070 | enableval="$enable_controls" | |
7071 | ||
7072 | if test "$enableval" = yes; then | |
7073 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7074 | else | |
7075 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7076 | fi | |
7077 | ||
7078 | else | |
7079 | ||
7080 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7081 | if test "x$LINE" != x ; then | |
7082 | eval "DEFAULT_$LINE" | |
7083 | else | |
7084 | no_cache=1 | |
7085 | fi | |
7086 | ||
7087 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7088 | ||
7089 | fi; | |
7090 | ||
7091 | eval "$ac_cv_use_controls" | |
7092 | if test "$no_cache" != 1; then | |
7093 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7094 | fi | |
7095 | ||
7096 | if test "$wxUSE_CONTROLS" = yes; then | |
7097 | echo "$as_me:$LINENO: result: yes" >&5 | |
7098 | echo "${ECHO_T}yes" >&6 | |
7099 | else | |
7100 | echo "$as_me:$LINENO: result: no" >&5 | |
7101 | echo "${ECHO_T}no" >&6 | |
7102 | fi | |
7103 | ||
7104 | ||
7105 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7106 | DEFAULT_wxUSE_ACCEL=yes | |
7107 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7108 | DEFAULT_wxUSE_BUTTON=yes | |
7109 | DEFAULT_wxUSE_CALCTRL=no | |
7110 | DEFAULT_wxUSE_CARET=yes | |
7111 | DEFAULT_wxUSE_COMBOBOX=yes | |
7112 | DEFAULT_wxUSE_CHECKBOX=yes | |
7113 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7114 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7115 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
7116 | DEFAULT_wxUSE_GAUGE=yes |
7117 | DEFAULT_wxUSE_GRID=yes | |
7118 | DEFAULT_wxUSE_IMAGLIST=yes | |
7119 | DEFAULT_wxUSE_LISTBOOK=yes | |
7120 | DEFAULT_wxUSE_LISTBOX=yes | |
7121 | DEFAULT_wxUSE_LISTCTRL=yes | |
7122 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7123 | DEFAULT_wxUSE_RADIOBOX=yes | |
7124 | DEFAULT_wxUSE_RADIOBTN=yes | |
7125 | DEFAULT_wxUSE_SASH=yes | |
7126 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7127 | DEFAULT_wxUSE_SLIDER=yes | |
7128 | DEFAULT_wxUSE_SPINBTN=yes | |
7129 | DEFAULT_wxUSE_SPINCTRL=yes | |
7130 | DEFAULT_wxUSE_SPLITTER=yes | |
7131 | DEFAULT_wxUSE_STATBMP=yes | |
7132 | DEFAULT_wxUSE_STATBOX=yes | |
7133 | DEFAULT_wxUSE_STATLINE=yes | |
7134 | DEFAULT_wxUSE_STATUSBAR=yes | |
7135 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7136 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7137 | DEFAULT_wxUSE_TOOLBAR=yes | |
7138 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7139 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7140 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7141 | DEFAULT_wxUSE_TREECTRL=yes | |
7142 | DEFAULT_wxUSE_POPUPWIN=yes | |
7143 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7144 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7145 | DEFAULT_wxUSE_ACCEL=no | |
7146 | DEFAULT_wxUSE_BMPBUTTON=no | |
7147 | DEFAULT_wxUSE_BUTTON=no | |
7148 | DEFAULT_wxUSE_CALCTRL=no | |
7149 | DEFAULT_wxUSE_CARET=no | |
7150 | DEFAULT_wxUSE_COMBOBOX=no | |
7151 | DEFAULT_wxUSE_CHECKBOX=no | |
7152 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7153 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7154 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
7155 | DEFAULT_wxUSE_GAUGE=no |
7156 | DEFAULT_wxUSE_GRID=no | |
7157 | DEFAULT_wxUSE_IMAGLIST=no | |
7158 | DEFAULT_wxUSE_LISTBOOK=no | |
7159 | DEFAULT_wxUSE_LISTBOX=no | |
7160 | DEFAULT_wxUSE_LISTCTRL=no | |
7161 | DEFAULT_wxUSE_NOTEBOOK=no | |
7162 | DEFAULT_wxUSE_RADIOBOX=no | |
7163 | DEFAULT_wxUSE_RADIOBTN=no | |
7164 | DEFAULT_wxUSE_SASH=no | |
7165 | DEFAULT_wxUSE_SCROLLBAR=no | |
7166 | DEFAULT_wxUSE_SLIDER=no | |
7167 | DEFAULT_wxUSE_SPINBTN=no | |
7168 | DEFAULT_wxUSE_SPINCTRL=no | |
7169 | DEFAULT_wxUSE_SPLITTER=no | |
7170 | DEFAULT_wxUSE_STATBMP=no | |
7171 | DEFAULT_wxUSE_STATBOX=no | |
7172 | DEFAULT_wxUSE_STATLINE=no | |
7173 | DEFAULT_wxUSE_STATUSBAR=no | |
7174 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7175 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7176 | DEFAULT_wxUSE_TOOLBAR=no | |
7177 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7178 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7179 | DEFAULT_wxUSE_TOOLTIPS=no | |
7180 | DEFAULT_wxUSE_TREECTRL=no | |
7181 | DEFAULT_wxUSE_POPUPWIN=no | |
7182 | DEFAULT_wxUSE_TIPWINDOW=no | |
7183 | fi | |
7184 | ||
a848cd7e SC |
7185 | |
7186 | enablestring= | |
7187 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7188 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7189 | no_cache=0 | |
7190 | # Check whether --enable-accel or --disable-accel was given. | |
7191 | if test "${enable_accel+set}" = set; then | |
7192 | enableval="$enable_accel" | |
7193 | ||
7194 | if test "$enableval" = yes; then | |
7195 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7196 | else | |
7197 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7198 | fi | |
7199 | ||
7200 | else | |
7201 | ||
7202 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7203 | if test "x$LINE" != x ; then | |
7204 | eval "DEFAULT_$LINE" | |
7205 | else | |
7206 | no_cache=1 | |
7207 | fi | |
7208 | ||
7209 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7210 | ||
7211 | fi; | |
7212 | ||
7213 | eval "$ac_cv_use_accel" | |
7214 | if test "$no_cache" != 1; then | |
7215 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7216 | fi | |
7217 | ||
7218 | if test "$wxUSE_ACCEL" = yes; then | |
7219 | echo "$as_me:$LINENO: result: yes" >&5 | |
7220 | echo "${ECHO_T}yes" >&6 | |
7221 | else | |
7222 | echo "$as_me:$LINENO: result: no" >&5 | |
7223 | echo "${ECHO_T}no" >&6 | |
7224 | fi | |
7225 | ||
7226 | ||
7227 | enablestring= | |
7228 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7229 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7230 | no_cache=0 | |
7231 | # Check whether --enable-button or --disable-button was given. | |
7232 | if test "${enable_button+set}" = set; then | |
7233 | enableval="$enable_button" | |
7234 | ||
7235 | if test "$enableval" = yes; then | |
7236 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7237 | else | |
7238 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7239 | fi | |
7240 | ||
7241 | else | |
7242 | ||
7243 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7244 | if test "x$LINE" != x ; then | |
7245 | eval "DEFAULT_$LINE" | |
7246 | else | |
7247 | no_cache=1 | |
7248 | fi | |
7249 | ||
7250 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7251 | ||
7252 | fi; | |
7253 | ||
7254 | eval "$ac_cv_use_button" | |
7255 | if test "$no_cache" != 1; then | |
7256 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7257 | fi | |
7258 | ||
7259 | if test "$wxUSE_BUTTON" = yes; then | |
7260 | echo "$as_me:$LINENO: result: yes" >&5 | |
7261 | echo "${ECHO_T}yes" >&6 | |
7262 | else | |
7263 | echo "$as_me:$LINENO: result: no" >&5 | |
7264 | echo "${ECHO_T}no" >&6 | |
7265 | fi | |
7266 | ||
7267 | ||
7268 | enablestring= | |
7269 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7270 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7271 | no_cache=0 | |
7272 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7273 | if test "${enable_bmpbutton+set}" = set; then | |
7274 | enableval="$enable_bmpbutton" | |
7275 | ||
7276 | if test "$enableval" = yes; then | |
7277 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7278 | else | |
7279 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7280 | fi | |
7281 | ||
7282 | else | |
7283 | ||
7284 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7285 | if test "x$LINE" != x ; then | |
7286 | eval "DEFAULT_$LINE" | |
7287 | else | |
7288 | no_cache=1 | |
7289 | fi | |
7290 | ||
7291 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7292 | ||
7293 | fi; | |
7294 | ||
7295 | eval "$ac_cv_use_bmpbutton" | |
7296 | if test "$no_cache" != 1; then | |
7297 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7298 | fi | |
7299 | ||
7300 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7301 | echo "$as_me:$LINENO: result: yes" >&5 | |
7302 | echo "${ECHO_T}yes" >&6 | |
7303 | else | |
7304 | echo "$as_me:$LINENO: result: no" >&5 | |
7305 | echo "${ECHO_T}no" >&6 | |
7306 | fi | |
7307 | ||
7308 | ||
7309 | enablestring= | |
7310 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7311 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7312 | no_cache=0 | |
7313 | # Check whether --enable-calendar or --disable-calendar was given. | |
7314 | if test "${enable_calendar+set}" = set; then | |
7315 | enableval="$enable_calendar" | |
7316 | ||
7317 | if test "$enableval" = yes; then | |
7318 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7319 | else | |
7320 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7321 | fi | |
7322 | ||
7323 | else | |
7324 | ||
7325 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7326 | if test "x$LINE" != x ; then | |
7327 | eval "DEFAULT_$LINE" | |
7328 | else | |
7329 | no_cache=1 | |
7330 | fi | |
7331 | ||
7332 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7333 | ||
7334 | fi; | |
7335 | ||
7336 | eval "$ac_cv_use_calendar" | |
7337 | if test "$no_cache" != 1; then | |
7338 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7339 | fi | |
7340 | ||
7341 | if test "$wxUSE_CALCTRL" = yes; then | |
7342 | echo "$as_me:$LINENO: result: yes" >&5 | |
7343 | echo "${ECHO_T}yes" >&6 | |
7344 | else | |
7345 | echo "$as_me:$LINENO: result: no" >&5 | |
7346 | echo "${ECHO_T}no" >&6 | |
7347 | fi | |
7348 | ||
7349 | ||
7350 | enablestring= | |
7351 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7352 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7353 | no_cache=0 | |
7354 | # Check whether --enable-caret or --disable-caret was given. | |
7355 | if test "${enable_caret+set}" = set; then | |
7356 | enableval="$enable_caret" | |
7357 | ||
7358 | if test "$enableval" = yes; then | |
7359 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7360 | else | |
7361 | ac_cv_use_caret='wxUSE_CARET=no' | |
7362 | fi | |
7363 | ||
7364 | else | |
7365 | ||
7366 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7367 | if test "x$LINE" != x ; then | |
7368 | eval "DEFAULT_$LINE" | |
7369 | else | |
7370 | no_cache=1 | |
7371 | fi | |
7372 | ||
7373 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7374 | ||
7375 | fi; | |
7376 | ||
7377 | eval "$ac_cv_use_caret" | |
7378 | if test "$no_cache" != 1; then | |
7379 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7380 | fi | |
7381 | ||
7382 | if test "$wxUSE_CARET" = yes; then | |
7383 | echo "$as_me:$LINENO: result: yes" >&5 | |
7384 | echo "${ECHO_T}yes" >&6 | |
7385 | else | |
7386 | echo "$as_me:$LINENO: result: no" >&5 | |
7387 | echo "${ECHO_T}no" >&6 | |
7388 | fi | |
7389 | ||
7390 | ||
7391 | enablestring= | |
7392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7393 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7394 | no_cache=0 | |
7395 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7396 | if test "${enable_checkbox+set}" = set; then | |
7397 | enableval="$enable_checkbox" | |
7398 | ||
7399 | if test "$enableval" = yes; then | |
7400 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7401 | else | |
7402 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7403 | fi | |
7404 | ||
7405 | else | |
7406 | ||
7407 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7408 | if test "x$LINE" != x ; then | |
7409 | eval "DEFAULT_$LINE" | |
7410 | else | |
7411 | no_cache=1 | |
7412 | fi | |
7413 | ||
7414 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7415 | ||
7416 | fi; | |
7417 | ||
7418 | eval "$ac_cv_use_checkbox" | |
7419 | if test "$no_cache" != 1; then | |
7420 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7421 | fi | |
7422 | ||
7423 | if test "$wxUSE_CHECKBOX" = yes; then | |
7424 | echo "$as_me:$LINENO: result: yes" >&5 | |
7425 | echo "${ECHO_T}yes" >&6 | |
7426 | else | |
7427 | echo "$as_me:$LINENO: result: no" >&5 | |
7428 | echo "${ECHO_T}no" >&6 | |
7429 | fi | |
7430 | ||
7431 | ||
7432 | enablestring= | |
7433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7434 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7435 | no_cache=0 | |
7436 | # Check whether --enable-checklst or --disable-checklst was given. | |
7437 | if test "${enable_checklst+set}" = set; then | |
7438 | enableval="$enable_checklst" | |
7439 | ||
7440 | if test "$enableval" = yes; then | |
7441 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7442 | else | |
7443 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7444 | fi | |
7445 | ||
7446 | else | |
7447 | ||
7448 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7449 | if test "x$LINE" != x ; then | |
7450 | eval "DEFAULT_$LINE" | |
7451 | else | |
7452 | no_cache=1 | |
7453 | fi | |
7454 | ||
7455 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7456 | ||
7457 | fi; | |
7458 | ||
7459 | eval "$ac_cv_use_checklst" | |
7460 | if test "$no_cache" != 1; then | |
7461 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7462 | fi | |
7463 | ||
7464 | if test "$wxUSE_CHECKLST" = yes; then | |
7465 | echo "$as_me:$LINENO: result: yes" >&5 | |
7466 | echo "${ECHO_T}yes" >&6 | |
7467 | else | |
7468 | echo "$as_me:$LINENO: result: no" >&5 | |
7469 | echo "${ECHO_T}no" >&6 | |
7470 | fi | |
7471 | ||
7472 | ||
7473 | enablestring= | |
7474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7475 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7476 | no_cache=0 | |
7477 | # Check whether --enable-choice or --disable-choice was given. | |
7478 | if test "${enable_choice+set}" = set; then | |
7479 | enableval="$enable_choice" | |
7480 | ||
7481 | if test "$enableval" = yes; then | |
7482 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7483 | else | |
7484 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7485 | fi | |
7486 | ||
7487 | else | |
7488 | ||
7489 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7490 | if test "x$LINE" != x ; then | |
7491 | eval "DEFAULT_$LINE" | |
7492 | else | |
7493 | no_cache=1 | |
7494 | fi | |
7495 | ||
7496 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7497 | ||
7498 | fi; | |
7499 | ||
7500 | eval "$ac_cv_use_choice" | |
7501 | if test "$no_cache" != 1; then | |
7502 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7503 | fi | |
7504 | ||
7505 | if test "$wxUSE_CHOICE" = yes; then | |
7506 | echo "$as_me:$LINENO: result: yes" >&5 | |
7507 | echo "${ECHO_T}yes" >&6 | |
7508 | else | |
7509 | echo "$as_me:$LINENO: result: no" >&5 | |
7510 | echo "${ECHO_T}no" >&6 | |
7511 | fi | |
7512 | ||
7513 | ||
92bbdbcd WS |
7514 | enablestring= |
7515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7516 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7517 | no_cache=0 | |
7518 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7519 | if test "${enable_choicebook+set}" = set; then | |
7520 | enableval="$enable_choicebook" | |
7521 | ||
7522 | if test "$enableval" = yes; then | |
7523 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7524 | else | |
7525 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7526 | fi | |
7527 | ||
7528 | else | |
7529 | ||
7530 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7531 | if test "x$LINE" != x ; then | |
7532 | eval "DEFAULT_$LINE" | |
7533 | else | |
7534 | no_cache=1 | |
7535 | fi | |
7536 | ||
7537 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7538 | ||
7539 | fi; | |
7540 | ||
7541 | eval "$ac_cv_use_choicebook" | |
7542 | if test "$no_cache" != 1; then | |
7543 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7544 | fi | |
7545 | ||
7546 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7547 | echo "$as_me:$LINENO: result: yes" >&5 | |
7548 | echo "${ECHO_T}yes" >&6 | |
7549 | else | |
7550 | echo "$as_me:$LINENO: result: no" >&5 | |
7551 | echo "${ECHO_T}no" >&6 | |
7552 | fi | |
7553 | ||
7554 | ||
a848cd7e SC |
7555 | enablestring= |
7556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7557 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7558 | no_cache=0 | |
7559 | # Check whether --enable-combobox or --disable-combobox was given. | |
7560 | if test "${enable_combobox+set}" = set; then | |
7561 | enableval="$enable_combobox" | |
7562 | ||
7563 | if test "$enableval" = yes; then | |
7564 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7565 | else | |
7566 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7567 | fi | |
7568 | ||
7569 | else | |
7570 | ||
7571 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7572 | if test "x$LINE" != x ; then | |
7573 | eval "DEFAULT_$LINE" | |
7574 | else | |
7575 | no_cache=1 | |
7576 | fi | |
7577 | ||
7578 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7579 | ||
7580 | fi; | |
7581 | ||
7582 | eval "$ac_cv_use_combobox" | |
7583 | if test "$no_cache" != 1; then | |
7584 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7585 | fi | |
7586 | ||
7587 | if test "$wxUSE_COMBOBOX" = yes; then | |
7588 | echo "$as_me:$LINENO: result: yes" >&5 | |
7589 | echo "${ECHO_T}yes" >&6 | |
7590 | else | |
7591 | echo "$as_me:$LINENO: result: no" >&5 | |
7592 | echo "${ECHO_T}no" >&6 | |
7593 | fi | |
7594 | ||
7595 | ||
7596 | enablestring= | |
7597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7598 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7599 | no_cache=0 | |
7600 | # Check whether --enable-display or --disable-display was given. | |
7601 | if test "${enable_display+set}" = set; then | |
7602 | enableval="$enable_display" | |
7603 | ||
7604 | if test "$enableval" = yes; then | |
7605 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7606 | else | |
7607 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7608 | fi | |
7609 | ||
7610 | else | |
7611 | ||
7612 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7613 | if test "x$LINE" != x ; then | |
7614 | eval "DEFAULT_$LINE" | |
7615 | else | |
7616 | no_cache=1 | |
7617 | fi | |
7618 | ||
7619 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7620 | ||
7621 | fi; | |
7622 | ||
7623 | eval "$ac_cv_use_display" | |
7624 | if test "$no_cache" != 1; then | |
7625 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7626 | fi | |
7627 | ||
7628 | if test "$wxUSE_DISPLAY" = yes; then | |
7629 | echo "$as_me:$LINENO: result: yes" >&5 | |
7630 | echo "${ECHO_T}yes" >&6 | |
7631 | else | |
7632 | echo "$as_me:$LINENO: result: no" >&5 | |
7633 | echo "${ECHO_T}no" >&6 | |
7634 | fi | |
7635 | ||
7636 | ||
7637 | enablestring= | |
7638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7639 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7640 | no_cache=0 | |
7641 | # Check whether --enable-gauge or --disable-gauge was given. | |
7642 | if test "${enable_gauge+set}" = set; then | |
7643 | enableval="$enable_gauge" | |
7644 | ||
7645 | if test "$enableval" = yes; then | |
7646 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7647 | else | |
7648 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7649 | fi | |
7650 | ||
7651 | else | |
7652 | ||
7653 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7654 | if test "x$LINE" != x ; then | |
7655 | eval "DEFAULT_$LINE" | |
7656 | else | |
7657 | no_cache=1 | |
7658 | fi | |
7659 | ||
7660 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7661 | ||
7662 | fi; | |
7663 | ||
7664 | eval "$ac_cv_use_gauge" | |
7665 | if test "$no_cache" != 1; then | |
7666 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7667 | fi | |
7668 | ||
7669 | if test "$wxUSE_GAUGE" = yes; then | |
7670 | echo "$as_me:$LINENO: result: yes" >&5 | |
7671 | echo "${ECHO_T}yes" >&6 | |
7672 | else | |
7673 | echo "$as_me:$LINENO: result: no" >&5 | |
7674 | echo "${ECHO_T}no" >&6 | |
7675 | fi | |
7676 | ||
7677 | ||
7678 | enablestring= | |
7679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7680 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7681 | no_cache=0 | |
7682 | # Check whether --enable-grid or --disable-grid was given. | |
7683 | if test "${enable_grid+set}" = set; then | |
7684 | enableval="$enable_grid" | |
7685 | ||
7686 | if test "$enableval" = yes; then | |
7687 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7688 | else | |
7689 | ac_cv_use_grid='wxUSE_GRID=no' | |
7690 | fi | |
7691 | ||
7692 | else | |
7693 | ||
7694 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7695 | if test "x$LINE" != x ; then | |
7696 | eval "DEFAULT_$LINE" | |
7697 | else | |
7698 | no_cache=1 | |
7699 | fi | |
7700 | ||
7701 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7702 | ||
7703 | fi; | |
7704 | ||
7705 | eval "$ac_cv_use_grid" | |
7706 | if test "$no_cache" != 1; then | |
7707 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7708 | fi | |
7709 | ||
7710 | if test "$wxUSE_GRID" = yes; then | |
7711 | echo "$as_me:$LINENO: result: yes" >&5 | |
7712 | echo "${ECHO_T}yes" >&6 | |
7713 | else | |
7714 | echo "$as_me:$LINENO: result: no" >&5 | |
7715 | echo "${ECHO_T}no" >&6 | |
7716 | fi | |
7717 | ||
7718 | ||
7719 | enablestring= | |
7720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7721 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7722 | no_cache=0 | |
7723 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7724 | if test "${enable_imaglist+set}" = set; then | |
7725 | enableval="$enable_imaglist" | |
7726 | ||
7727 | if test "$enableval" = yes; then | |
7728 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7729 | else | |
7730 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7731 | fi | |
7732 | ||
7733 | else | |
7734 | ||
7735 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7736 | if test "x$LINE" != x ; then | |
7737 | eval "DEFAULT_$LINE" | |
7738 | else | |
7739 | no_cache=1 | |
7740 | fi | |
7741 | ||
7742 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7743 | ||
7744 | fi; | |
7745 | ||
7746 | eval "$ac_cv_use_imaglist" | |
7747 | if test "$no_cache" != 1; then | |
7748 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7749 | fi | |
7750 | ||
7751 | if test "$wxUSE_IMAGLIST" = yes; then | |
7752 | echo "$as_me:$LINENO: result: yes" >&5 | |
7753 | echo "${ECHO_T}yes" >&6 | |
7754 | else | |
7755 | echo "$as_me:$LINENO: result: no" >&5 | |
7756 | echo "${ECHO_T}no" >&6 | |
7757 | fi | |
7758 | ||
7759 | ||
7760 | enablestring= | |
7761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7762 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7763 | no_cache=0 | |
7764 | # Check whether --enable-listbook or --disable-listbook was given. | |
7765 | if test "${enable_listbook+set}" = set; then | |
7766 | enableval="$enable_listbook" | |
7767 | ||
7768 | if test "$enableval" = yes; then | |
7769 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7770 | else | |
7771 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7772 | fi | |
7773 | ||
7774 | else | |
7775 | ||
7776 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7777 | if test "x$LINE" != x ; then | |
7778 | eval "DEFAULT_$LINE" | |
7779 | else | |
7780 | no_cache=1 | |
7781 | fi | |
7782 | ||
7783 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7784 | ||
7785 | fi; | |
7786 | ||
7787 | eval "$ac_cv_use_listbook" | |
7788 | if test "$no_cache" != 1; then | |
7789 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7790 | fi | |
7791 | ||
7792 | if test "$wxUSE_LISTBOOK" = yes; then | |
7793 | echo "$as_me:$LINENO: result: yes" >&5 | |
7794 | echo "${ECHO_T}yes" >&6 | |
7795 | else | |
7796 | echo "$as_me:$LINENO: result: no" >&5 | |
7797 | echo "${ECHO_T}no" >&6 | |
7798 | fi | |
7799 | ||
7800 | ||
7801 | enablestring= | |
7802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7803 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7804 | no_cache=0 | |
7805 | # Check whether --enable-listbox or --disable-listbox was given. | |
7806 | if test "${enable_listbox+set}" = set; then | |
7807 | enableval="$enable_listbox" | |
7808 | ||
7809 | if test "$enableval" = yes; then | |
7810 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7811 | else | |
7812 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7813 | fi | |
7814 | ||
7815 | else | |
7816 | ||
7817 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7818 | if test "x$LINE" != x ; then | |
7819 | eval "DEFAULT_$LINE" | |
7820 | else | |
7821 | no_cache=1 | |
7822 | fi | |
7823 | ||
7824 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7825 | ||
7826 | fi; | |
7827 | ||
7828 | eval "$ac_cv_use_listbox" | |
7829 | if test "$no_cache" != 1; then | |
7830 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7831 | fi | |
7832 | ||
7833 | if test "$wxUSE_LISTBOX" = yes; then | |
7834 | echo "$as_me:$LINENO: result: yes" >&5 | |
7835 | echo "${ECHO_T}yes" >&6 | |
7836 | else | |
7837 | echo "$as_me:$LINENO: result: no" >&5 | |
7838 | echo "${ECHO_T}no" >&6 | |
7839 | fi | |
7840 | ||
7841 | ||
7842 | enablestring= | |
7843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7844 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7845 | no_cache=0 | |
7846 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7847 | if test "${enable_listctrl+set}" = set; then | |
7848 | enableval="$enable_listctrl" | |
7849 | ||
7850 | if test "$enableval" = yes; then | |
7851 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7852 | else | |
7853 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7854 | fi | |
7855 | ||
7856 | else | |
7857 | ||
7858 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7859 | if test "x$LINE" != x ; then | |
7860 | eval "DEFAULT_$LINE" | |
7861 | else | |
7862 | no_cache=1 | |
7863 | fi | |
7864 | ||
7865 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7866 | ||
7867 | fi; | |
7868 | ||
7869 | eval "$ac_cv_use_listctrl" | |
7870 | if test "$no_cache" != 1; then | |
7871 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7872 | fi | |
7873 | ||
7874 | if test "$wxUSE_LISTCTRL" = yes; then | |
7875 | echo "$as_me:$LINENO: result: yes" >&5 | |
7876 | echo "${ECHO_T}yes" >&6 | |
7877 | else | |
7878 | echo "$as_me:$LINENO: result: no" >&5 | |
7879 | echo "${ECHO_T}no" >&6 | |
7880 | fi | |
7881 | ||
7882 | ||
7883 | enablestring= | |
7884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7885 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7886 | no_cache=0 | |
7887 | # Check whether --enable-notebook or --disable-notebook was given. | |
7888 | if test "${enable_notebook+set}" = set; then | |
7889 | enableval="$enable_notebook" | |
7890 | ||
7891 | if test "$enableval" = yes; then | |
7892 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7893 | else | |
7894 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7895 | fi | |
7896 | ||
7897 | else | |
7898 | ||
7899 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7900 | if test "x$LINE" != x ; then | |
7901 | eval "DEFAULT_$LINE" | |
7902 | else | |
7903 | no_cache=1 | |
7904 | fi | |
7905 | ||
7906 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7907 | ||
7908 | fi; | |
7909 | ||
7910 | eval "$ac_cv_use_notebook" | |
7911 | if test "$no_cache" != 1; then | |
7912 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7913 | fi | |
7914 | ||
7915 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7916 | echo "$as_me:$LINENO: result: yes" >&5 | |
7917 | echo "${ECHO_T}yes" >&6 | |
7918 | else | |
7919 | echo "$as_me:$LINENO: result: no" >&5 | |
7920 | echo "${ECHO_T}no" >&6 | |
7921 | fi | |
7922 | ||
7923 | ||
7924 | enablestring= | |
7925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7926 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7927 | no_cache=0 | |
7928 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7929 | if test "${enable_radiobox+set}" = set; then | |
7930 | enableval="$enable_radiobox" | |
7931 | ||
7932 | if test "$enableval" = yes; then | |
7933 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7934 | else | |
7935 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7936 | fi | |
7937 | ||
7938 | else | |
7939 | ||
7940 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7941 | if test "x$LINE" != x ; then | |
7942 | eval "DEFAULT_$LINE" | |
7943 | else | |
7944 | no_cache=1 | |
7945 | fi | |
7946 | ||
7947 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7948 | ||
7949 | fi; | |
7950 | ||
7951 | eval "$ac_cv_use_radiobox" | |
7952 | if test "$no_cache" != 1; then | |
7953 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7954 | fi | |
7955 | ||
7956 | if test "$wxUSE_RADIOBOX" = yes; then | |
7957 | echo "$as_me:$LINENO: result: yes" >&5 | |
7958 | echo "${ECHO_T}yes" >&6 | |
7959 | else | |
7960 | echo "$as_me:$LINENO: result: no" >&5 | |
7961 | echo "${ECHO_T}no" >&6 | |
7962 | fi | |
7963 | ||
7964 | ||
7965 | enablestring= | |
7966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7967 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7968 | no_cache=0 | |
7969 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7970 | if test "${enable_radiobtn+set}" = set; then | |
7971 | enableval="$enable_radiobtn" | |
7972 | ||
7973 | if test "$enableval" = yes; then | |
7974 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7975 | else | |
7976 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7977 | fi | |
7978 | ||
7979 | else | |
7980 | ||
7981 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7982 | if test "x$LINE" != x ; then | |
7983 | eval "DEFAULT_$LINE" | |
7984 | else | |
7985 | no_cache=1 | |
7986 | fi | |
7987 | ||
7988 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7989 | ||
7990 | fi; | |
7991 | ||
7992 | eval "$ac_cv_use_radiobtn" | |
7993 | if test "$no_cache" != 1; then | |
7994 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7995 | fi | |
7996 | ||
7997 | if test "$wxUSE_RADIOBTN" = yes; then | |
7998 | echo "$as_me:$LINENO: result: yes" >&5 | |
7999 | echo "${ECHO_T}yes" >&6 | |
8000 | else | |
8001 | echo "$as_me:$LINENO: result: no" >&5 | |
8002 | echo "${ECHO_T}no" >&6 | |
8003 | fi | |
8004 | ||
8005 | ||
8006 | enablestring= | |
8007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8008 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8009 | no_cache=0 | |
8010 | # Check whether --enable-sash or --disable-sash was given. | |
8011 | if test "${enable_sash+set}" = set; then | |
8012 | enableval="$enable_sash" | |
8013 | ||
8014 | if test "$enableval" = yes; then | |
8015 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8016 | else | |
8017 | ac_cv_use_sash='wxUSE_SASH=no' | |
8018 | fi | |
8019 | ||
8020 | else | |
8021 | ||
8022 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8023 | if test "x$LINE" != x ; then | |
8024 | eval "DEFAULT_$LINE" | |
8025 | else | |
8026 | no_cache=1 | |
8027 | fi | |
8028 | ||
8029 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8030 | ||
8031 | fi; | |
8032 | ||
8033 | eval "$ac_cv_use_sash" | |
8034 | if test "$no_cache" != 1; then | |
8035 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8036 | fi | |
8037 | ||
8038 | if test "$wxUSE_SASH" = yes; then | |
8039 | echo "$as_me:$LINENO: result: yes" >&5 | |
8040 | echo "${ECHO_T}yes" >&6 | |
8041 | else | |
8042 | echo "$as_me:$LINENO: result: no" >&5 | |
8043 | echo "${ECHO_T}no" >&6 | |
8044 | fi | |
8045 | ||
8046 | ||
8047 | enablestring= | |
8048 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8049 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8050 | no_cache=0 | |
8051 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8052 | if test "${enable_scrollbar+set}" = set; then | |
8053 | enableval="$enable_scrollbar" | |
8054 | ||
8055 | if test "$enableval" = yes; then | |
8056 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8057 | else | |
8058 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8059 | fi | |
8060 | ||
8061 | else | |
8062 | ||
8063 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8064 | if test "x$LINE" != x ; then | |
8065 | eval "DEFAULT_$LINE" | |
8066 | else | |
8067 | no_cache=1 | |
8068 | fi | |
8069 | ||
8070 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8071 | ||
8072 | fi; | |
8073 | ||
8074 | eval "$ac_cv_use_scrollbar" | |
8075 | if test "$no_cache" != 1; then | |
8076 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8077 | fi | |
8078 | ||
8079 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8080 | echo "$as_me:$LINENO: result: yes" >&5 | |
8081 | echo "${ECHO_T}yes" >&6 | |
8082 | else | |
8083 | echo "$as_me:$LINENO: result: no" >&5 | |
8084 | echo "${ECHO_T}no" >&6 | |
8085 | fi | |
8086 | ||
8087 | ||
8088 | enablestring= | |
8089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8090 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8091 | no_cache=0 | |
8092 | # Check whether --enable-slider or --disable-slider was given. | |
8093 | if test "${enable_slider+set}" = set; then | |
8094 | enableval="$enable_slider" | |
8095 | ||
8096 | if test "$enableval" = yes; then | |
8097 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8098 | else | |
8099 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8100 | fi | |
8101 | ||
8102 | else | |
8103 | ||
8104 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8105 | if test "x$LINE" != x ; then | |
8106 | eval "DEFAULT_$LINE" | |
8107 | else | |
8108 | no_cache=1 | |
8109 | fi | |
8110 | ||
8111 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8112 | ||
8113 | fi; | |
8114 | ||
8115 | eval "$ac_cv_use_slider" | |
8116 | if test "$no_cache" != 1; then | |
8117 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8118 | fi | |
8119 | ||
8120 | if test "$wxUSE_SLIDER" = yes; then | |
8121 | echo "$as_me:$LINENO: result: yes" >&5 | |
8122 | echo "${ECHO_T}yes" >&6 | |
8123 | else | |
8124 | echo "$as_me:$LINENO: result: no" >&5 | |
8125 | echo "${ECHO_T}no" >&6 | |
8126 | fi | |
8127 | ||
8128 | ||
8129 | enablestring= | |
8130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8131 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8132 | no_cache=0 | |
8133 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8134 | if test "${enable_spinbtn+set}" = set; then | |
8135 | enableval="$enable_spinbtn" | |
8136 | ||
8137 | if test "$enableval" = yes; then | |
8138 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8139 | else | |
8140 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8141 | fi | |
8142 | ||
8143 | else | |
8144 | ||
8145 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8146 | if test "x$LINE" != x ; then | |
8147 | eval "DEFAULT_$LINE" | |
8148 | else | |
8149 | no_cache=1 | |
8150 | fi | |
8151 | ||
8152 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8153 | ||
8154 | fi; | |
8155 | ||
8156 | eval "$ac_cv_use_spinbtn" | |
8157 | if test "$no_cache" != 1; then | |
8158 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8159 | fi | |
8160 | ||
8161 | if test "$wxUSE_SPINBTN" = yes; then | |
8162 | echo "$as_me:$LINENO: result: yes" >&5 | |
8163 | echo "${ECHO_T}yes" >&6 | |
8164 | else | |
8165 | echo "$as_me:$LINENO: result: no" >&5 | |
8166 | echo "${ECHO_T}no" >&6 | |
8167 | fi | |
8168 | ||
8169 | ||
8170 | enablestring= | |
8171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8172 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8173 | no_cache=0 | |
8174 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8175 | if test "${enable_spinctrl+set}" = set; then | |
8176 | enableval="$enable_spinctrl" | |
8177 | ||
8178 | if test "$enableval" = yes; then | |
8179 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8180 | else | |
8181 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8182 | fi | |
8183 | ||
8184 | else | |
8185 | ||
8186 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8187 | if test "x$LINE" != x ; then | |
8188 | eval "DEFAULT_$LINE" | |
8189 | else | |
8190 | no_cache=1 | |
8191 | fi | |
8192 | ||
8193 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8194 | ||
8195 | fi; | |
8196 | ||
8197 | eval "$ac_cv_use_spinctrl" | |
8198 | if test "$no_cache" != 1; then | |
8199 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8200 | fi | |
8201 | ||
8202 | if test "$wxUSE_SPINCTRL" = yes; then | |
8203 | echo "$as_me:$LINENO: result: yes" >&5 | |
8204 | echo "${ECHO_T}yes" >&6 | |
8205 | else | |
8206 | echo "$as_me:$LINENO: result: no" >&5 | |
8207 | echo "${ECHO_T}no" >&6 | |
8208 | fi | |
8209 | ||
8210 | ||
8211 | enablestring= | |
8212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8213 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8214 | no_cache=0 | |
8215 | # Check whether --enable-splitter or --disable-splitter was given. | |
8216 | if test "${enable_splitter+set}" = set; then | |
8217 | enableval="$enable_splitter" | |
8218 | ||
8219 | if test "$enableval" = yes; then | |
8220 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8221 | else | |
8222 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8223 | fi | |
8224 | ||
8225 | else | |
8226 | ||
8227 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8228 | if test "x$LINE" != x ; then | |
8229 | eval "DEFAULT_$LINE" | |
8230 | else | |
8231 | no_cache=1 | |
8232 | fi | |
8233 | ||
8234 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8235 | ||
8236 | fi; | |
8237 | ||
8238 | eval "$ac_cv_use_splitter" | |
8239 | if test "$no_cache" != 1; then | |
8240 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8241 | fi | |
8242 | ||
8243 | if test "$wxUSE_SPLITTER" = yes; then | |
8244 | echo "$as_me:$LINENO: result: yes" >&5 | |
8245 | echo "${ECHO_T}yes" >&6 | |
8246 | else | |
8247 | echo "$as_me:$LINENO: result: no" >&5 | |
8248 | echo "${ECHO_T}no" >&6 | |
8249 | fi | |
8250 | ||
8251 | ||
8252 | enablestring= | |
8253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8254 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8255 | no_cache=0 | |
8256 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8257 | if test "${enable_statbmp+set}" = set; then | |
8258 | enableval="$enable_statbmp" | |
8259 | ||
8260 | if test "$enableval" = yes; then | |
8261 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8262 | else | |
8263 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8264 | fi | |
8265 | ||
8266 | else | |
8267 | ||
8268 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8269 | if test "x$LINE" != x ; then | |
8270 | eval "DEFAULT_$LINE" | |
8271 | else | |
8272 | no_cache=1 | |
8273 | fi | |
8274 | ||
8275 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8276 | ||
8277 | fi; | |
8278 | ||
8279 | eval "$ac_cv_use_statbmp" | |
8280 | if test "$no_cache" != 1; then | |
8281 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8282 | fi | |
8283 | ||
8284 | if test "$wxUSE_STATBMP" = yes; then | |
8285 | echo "$as_me:$LINENO: result: yes" >&5 | |
8286 | echo "${ECHO_T}yes" >&6 | |
8287 | else | |
8288 | echo "$as_me:$LINENO: result: no" >&5 | |
8289 | echo "${ECHO_T}no" >&6 | |
8290 | fi | |
8291 | ||
8292 | ||
8293 | enablestring= | |
8294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8295 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8296 | no_cache=0 | |
8297 | # Check whether --enable-statbox or --disable-statbox was given. | |
8298 | if test "${enable_statbox+set}" = set; then | |
8299 | enableval="$enable_statbox" | |
8300 | ||
8301 | if test "$enableval" = yes; then | |
8302 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8303 | else | |
8304 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8305 | fi | |
8306 | ||
8307 | else | |
8308 | ||
8309 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8310 | if test "x$LINE" != x ; then | |
8311 | eval "DEFAULT_$LINE" | |
8312 | else | |
8313 | no_cache=1 | |
8314 | fi | |
8315 | ||
8316 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8317 | ||
8318 | fi; | |
8319 | ||
8320 | eval "$ac_cv_use_statbox" | |
8321 | if test "$no_cache" != 1; then | |
8322 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8323 | fi | |
8324 | ||
8325 | if test "$wxUSE_STATBOX" = yes; then | |
8326 | echo "$as_me:$LINENO: result: yes" >&5 | |
8327 | echo "${ECHO_T}yes" >&6 | |
8328 | else | |
8329 | echo "$as_me:$LINENO: result: no" >&5 | |
8330 | echo "${ECHO_T}no" >&6 | |
8331 | fi | |
8332 | ||
8333 | ||
8334 | enablestring= | |
8335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8336 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8337 | no_cache=0 | |
8338 | # Check whether --enable-statline or --disable-statline was given. | |
8339 | if test "${enable_statline+set}" = set; then | |
8340 | enableval="$enable_statline" | |
8341 | ||
8342 | if test "$enableval" = yes; then | |
8343 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8344 | else | |
8345 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8346 | fi | |
8347 | ||
8348 | else | |
8349 | ||
8350 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8351 | if test "x$LINE" != x ; then | |
8352 | eval "DEFAULT_$LINE" | |
8353 | else | |
8354 | no_cache=1 | |
8355 | fi | |
8356 | ||
8357 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8358 | ||
8359 | fi; | |
8360 | ||
8361 | eval "$ac_cv_use_statline" | |
8362 | if test "$no_cache" != 1; then | |
8363 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8364 | fi | |
8365 | ||
8366 | if test "$wxUSE_STATLINE" = yes; then | |
8367 | echo "$as_me:$LINENO: result: yes" >&5 | |
8368 | echo "${ECHO_T}yes" >&6 | |
8369 | else | |
8370 | echo "$as_me:$LINENO: result: no" >&5 | |
8371 | echo "${ECHO_T}no" >&6 | |
8372 | fi | |
8373 | ||
8374 | ||
8375 | enablestring= | |
8376 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8377 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8378 | no_cache=0 | |
8379 | # Check whether --enable-stattext or --disable-stattext was given. | |
8380 | if test "${enable_stattext+set}" = set; then | |
8381 | enableval="$enable_stattext" | |
8382 | ||
8383 | if test "$enableval" = yes; then | |
8384 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8385 | else | |
8386 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8387 | fi | |
8388 | ||
8389 | else | |
8390 | ||
8391 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8392 | if test "x$LINE" != x ; then | |
8393 | eval "DEFAULT_$LINE" | |
8394 | else | |
8395 | no_cache=1 | |
8396 | fi | |
8397 | ||
8398 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8399 | ||
8400 | fi; | |
8401 | ||
8402 | eval "$ac_cv_use_stattext" | |
8403 | if test "$no_cache" != 1; then | |
8404 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8405 | fi | |
8406 | ||
8407 | if test "$wxUSE_STATTEXT" = yes; then | |
8408 | echo "$as_me:$LINENO: result: yes" >&5 | |
8409 | echo "${ECHO_T}yes" >&6 | |
8410 | else | |
8411 | echo "$as_me:$LINENO: result: no" >&5 | |
8412 | echo "${ECHO_T}no" >&6 | |
8413 | fi | |
8414 | ||
8415 | ||
8416 | enablestring= | |
8417 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8418 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8419 | no_cache=0 | |
8420 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8421 | if test "${enable_statusbar+set}" = set; then | |
8422 | enableval="$enable_statusbar" | |
8423 | ||
8424 | if test "$enableval" = yes; then | |
8425 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8426 | else | |
8427 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8428 | fi | |
8429 | ||
8430 | else | |
8431 | ||
8432 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8433 | if test "x$LINE" != x ; then | |
8434 | eval "DEFAULT_$LINE" | |
8435 | else | |
8436 | no_cache=1 | |
8437 | fi | |
8438 | ||
8439 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8440 | ||
8441 | fi; | |
8442 | ||
8443 | eval "$ac_cv_use_statusbar" | |
8444 | if test "$no_cache" != 1; then | |
8445 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8446 | fi | |
8447 | ||
8448 | if test "$wxUSE_STATUSBAR" = yes; then | |
8449 | echo "$as_me:$LINENO: result: yes" >&5 | |
8450 | echo "${ECHO_T}yes" >&6 | |
8451 | else | |
8452 | echo "$as_me:$LINENO: result: no" >&5 | |
8453 | echo "${ECHO_T}no" >&6 | |
8454 | fi | |
8455 | ||
8456 | ||
8457 | enablestring= | |
8458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8459 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8460 | no_cache=0 | |
8461 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8462 | if test "${enable_tabdialog+set}" = set; then | |
8463 | enableval="$enable_tabdialog" | |
8464 | ||
8465 | if test "$enableval" = yes; then | |
8466 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8467 | else | |
8468 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8469 | fi | |
8470 | ||
8471 | else | |
8472 | ||
8473 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8474 | if test "x$LINE" != x ; then | |
8475 | eval "DEFAULT_$LINE" | |
8476 | else | |
8477 | no_cache=1 | |
8478 | fi | |
8479 | ||
8480 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8481 | ||
8482 | fi; | |
8483 | ||
8484 | eval "$ac_cv_use_tabdialog" | |
8485 | if test "$no_cache" != 1; then | |
8486 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8487 | fi | |
8488 | ||
8489 | if test "$wxUSE_TABDIALOG" = yes; then | |
8490 | echo "$as_me:$LINENO: result: yes" >&5 | |
8491 | echo "${ECHO_T}yes" >&6 | |
8492 | else | |
8493 | echo "$as_me:$LINENO: result: no" >&5 | |
8494 | echo "${ECHO_T}no" >&6 | |
8495 | fi | |
8496 | ||
8497 | ||
8498 | enablestring= | |
8499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8500 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8501 | no_cache=0 | |
8502 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8503 | if test "${enable_textctrl+set}" = set; then | |
8504 | enableval="$enable_textctrl" | |
8505 | ||
8506 | if test "$enableval" = yes; then | |
8507 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8508 | else | |
8509 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8510 | fi | |
8511 | ||
8512 | else | |
8513 | ||
8514 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8515 | if test "x$LINE" != x ; then | |
8516 | eval "DEFAULT_$LINE" | |
8517 | else | |
8518 | no_cache=1 | |
8519 | fi | |
8520 | ||
8521 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8522 | ||
8523 | fi; | |
8524 | ||
8525 | eval "$ac_cv_use_textctrl" | |
8526 | if test "$no_cache" != 1; then | |
8527 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8528 | fi | |
8529 | ||
8530 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8531 | echo "$as_me:$LINENO: result: yes" >&5 | |
8532 | echo "${ECHO_T}yes" >&6 | |
8533 | else | |
8534 | echo "$as_me:$LINENO: result: no" >&5 | |
8535 | echo "${ECHO_T}no" >&6 | |
8536 | fi | |
8537 | ||
8538 | ||
8539 | enablestring= | |
8540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8541 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8542 | no_cache=0 | |
8543 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8544 | if test "${enable_togglebtn+set}" = set; then | |
8545 | enableval="$enable_togglebtn" | |
8546 | ||
8547 | if test "$enableval" = yes; then | |
8548 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8549 | else | |
8550 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8551 | fi | |
8552 | ||
8553 | else | |
8554 | ||
8555 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8556 | if test "x$LINE" != x ; then | |
8557 | eval "DEFAULT_$LINE" | |
8558 | else | |
8559 | no_cache=1 | |
8560 | fi | |
8561 | ||
8562 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8563 | ||
8564 | fi; | |
8565 | ||
8566 | eval "$ac_cv_use_togglebtn" | |
8567 | if test "$no_cache" != 1; then | |
8568 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8569 | fi | |
8570 | ||
8571 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8572 | echo "$as_me:$LINENO: result: yes" >&5 | |
8573 | echo "${ECHO_T}yes" >&6 | |
8574 | else | |
8575 | echo "$as_me:$LINENO: result: no" >&5 | |
8576 | echo "${ECHO_T}no" >&6 | |
8577 | fi | |
8578 | ||
8579 | ||
8580 | enablestring= | |
8581 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8582 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8583 | no_cache=0 | |
8584 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8585 | if test "${enable_toolbar+set}" = set; then | |
8586 | enableval="$enable_toolbar" | |
8587 | ||
8588 | if test "$enableval" = yes; then | |
8589 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8590 | else | |
8591 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8592 | fi | |
8593 | ||
8594 | else | |
8595 | ||
8596 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8597 | if test "x$LINE" != x ; then | |
8598 | eval "DEFAULT_$LINE" | |
8599 | else | |
8600 | no_cache=1 | |
8601 | fi | |
8602 | ||
8603 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8604 | ||
8605 | fi; | |
8606 | ||
8607 | eval "$ac_cv_use_toolbar" | |
8608 | if test "$no_cache" != 1; then | |
8609 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8610 | fi | |
8611 | ||
8612 | if test "$wxUSE_TOOLBAR" = yes; then | |
8613 | echo "$as_me:$LINENO: result: yes" >&5 | |
8614 | echo "${ECHO_T}yes" >&6 | |
8615 | else | |
8616 | echo "$as_me:$LINENO: result: no" >&5 | |
8617 | echo "${ECHO_T}no" >&6 | |
8618 | fi | |
8619 | ||
8620 | ||
8621 | enablestring= | |
8622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8623 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8624 | no_cache=0 | |
8625 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8626 | if test "${enable_tbarnative+set}" = set; then | |
8627 | enableval="$enable_tbarnative" | |
8628 | ||
8629 | if test "$enableval" = yes; then | |
8630 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8631 | else | |
8632 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8633 | fi | |
8634 | ||
8635 | else | |
8636 | ||
8637 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8638 | if test "x$LINE" != x ; then | |
8639 | eval "DEFAULT_$LINE" | |
8640 | else | |
8641 | no_cache=1 | |
8642 | fi | |
8643 | ||
8644 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8645 | ||
8646 | fi; | |
8647 | ||
8648 | eval "$ac_cv_use_tbarnative" | |
8649 | if test "$no_cache" != 1; then | |
8650 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8651 | fi | |
8652 | ||
8653 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8654 | echo "$as_me:$LINENO: result: yes" >&5 | |
8655 | echo "${ECHO_T}yes" >&6 | |
8656 | else | |
8657 | echo "$as_me:$LINENO: result: no" >&5 | |
8658 | echo "${ECHO_T}no" >&6 | |
8659 | fi | |
8660 | ||
8661 | ||
8662 | enablestring= | |
8663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8664 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8665 | no_cache=0 | |
8666 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8667 | if test "${enable_tbarsmpl+set}" = set; then | |
8668 | enableval="$enable_tbarsmpl" | |
8669 | ||
8670 | if test "$enableval" = yes; then | |
8671 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8672 | else | |
8673 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8674 | fi | |
8675 | ||
8676 | else | |
8677 | ||
8678 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8679 | if test "x$LINE" != x ; then | |
8680 | eval "DEFAULT_$LINE" | |
8681 | else | |
8682 | no_cache=1 | |
8683 | fi | |
8684 | ||
8685 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8686 | ||
8687 | fi; | |
8688 | ||
8689 | eval "$ac_cv_use_tbarsmpl" | |
8690 | if test "$no_cache" != 1; then | |
8691 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8692 | fi | |
8693 | ||
8694 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8695 | echo "$as_me:$LINENO: result: yes" >&5 | |
8696 | echo "${ECHO_T}yes" >&6 | |
8697 | else | |
8698 | echo "$as_me:$LINENO: result: no" >&5 | |
8699 | echo "${ECHO_T}no" >&6 | |
8700 | fi | |
8701 | ||
8702 | ||
8703 | enablestring= | |
8704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8705 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8706 | no_cache=0 | |
8707 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8708 | if test "${enable_treectrl+set}" = set; then | |
8709 | enableval="$enable_treectrl" | |
8710 | ||
8711 | if test "$enableval" = yes; then | |
8712 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8713 | else | |
8714 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8715 | fi | |
8716 | ||
8717 | else | |
8718 | ||
8719 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8720 | if test "x$LINE" != x ; then | |
8721 | eval "DEFAULT_$LINE" | |
8722 | else | |
8723 | no_cache=1 | |
8724 | fi | |
8725 | ||
8726 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8727 | ||
8728 | fi; | |
8729 | ||
8730 | eval "$ac_cv_use_treectrl" | |
8731 | if test "$no_cache" != 1; then | |
8732 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8733 | fi | |
8734 | ||
8735 | if test "$wxUSE_TREECTRL" = yes; then | |
8736 | echo "$as_me:$LINENO: result: yes" >&5 | |
8737 | echo "${ECHO_T}yes" >&6 | |
8738 | else | |
8739 | echo "$as_me:$LINENO: result: no" >&5 | |
8740 | echo "${ECHO_T}no" >&6 | |
8741 | fi | |
8742 | ||
8743 | ||
8744 | enablestring= | |
8745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8746 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8747 | no_cache=0 | |
8748 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8749 | if test "${enable_tipwindow+set}" = set; then | |
8750 | enableval="$enable_tipwindow" | |
8751 | ||
8752 | if test "$enableval" = yes; then | |
8753 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8754 | else | |
8755 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8756 | fi | |
8757 | ||
8758 | else | |
8759 | ||
8760 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8761 | if test "x$LINE" != x ; then | |
8762 | eval "DEFAULT_$LINE" | |
8763 | else | |
8764 | no_cache=1 | |
8765 | fi | |
8766 | ||
8767 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8768 | ||
8769 | fi; | |
8770 | ||
8771 | eval "$ac_cv_use_tipwindow" | |
8772 | if test "$no_cache" != 1; then | |
8773 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8774 | fi | |
8775 | ||
8776 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8777 | echo "$as_me:$LINENO: result: yes" >&5 | |
8778 | echo "${ECHO_T}yes" >&6 | |
8779 | else | |
8780 | echo "$as_me:$LINENO: result: no" >&5 | |
8781 | echo "${ECHO_T}no" >&6 | |
8782 | fi | |
8783 | ||
8784 | ||
8785 | enablestring= | |
8786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8787 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8788 | no_cache=0 | |
8789 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8790 | if test "${enable_popupwin+set}" = set; then | |
8791 | enableval="$enable_popupwin" | |
8792 | ||
8793 | if test "$enableval" = yes; then | |
8794 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8795 | else | |
8796 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8797 | fi | |
8798 | ||
8799 | else | |
8800 | ||
8801 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8802 | if test "x$LINE" != x ; then | |
8803 | eval "DEFAULT_$LINE" | |
8804 | else | |
8805 | no_cache=1 | |
8806 | fi | |
8807 | ||
8808 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8809 | ||
8810 | fi; | |
8811 | ||
8812 | eval "$ac_cv_use_popupwin" | |
8813 | if test "$no_cache" != 1; then | |
8814 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8815 | fi | |
8816 | ||
8817 | if test "$wxUSE_POPUPWIN" = yes; then | |
8818 | echo "$as_me:$LINENO: result: yes" >&5 | |
8819 | echo "${ECHO_T}yes" >&6 | |
8820 | else | |
8821 | echo "$as_me:$LINENO: result: no" >&5 | |
8822 | echo "${ECHO_T}no" >&6 | |
8823 | fi | |
8824 | ||
8825 | ||
8826 | ||
8827 | ||
8828 | enablestring= | |
8829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8830 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8831 | no_cache=0 | |
8832 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8833 | if test "${enable_commondlg+set}" = set; then | |
8834 | enableval="$enable_commondlg" | |
8835 | ||
8836 | if test "$enableval" = yes; then | |
8837 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8838 | else | |
8839 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8840 | fi | |
8841 | ||
8842 | else | |
8843 | ||
8844 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8845 | if test "x$LINE" != x ; then | |
8846 | eval "DEFAULT_$LINE" | |
8847 | else | |
8848 | no_cache=1 | |
8849 | fi | |
8850 | ||
8851 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8852 | ||
8853 | fi; | |
8854 | ||
8855 | eval "$ac_cv_use_commondlg" | |
8856 | if test "$no_cache" != 1; then | |
8857 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8858 | fi | |
8859 | ||
8860 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8861 | echo "$as_me:$LINENO: result: yes" >&5 | |
8862 | echo "${ECHO_T}yes" >&6 | |
8863 | else | |
8864 | echo "$as_me:$LINENO: result: no" >&5 | |
8865 | echo "${ECHO_T}no" >&6 | |
8866 | fi | |
8867 | ||
8868 | ||
8869 | enablestring= | |
8870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8871 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8872 | no_cache=0 | |
8873 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8874 | if test "${enable_choicedlg+set}" = set; then | |
8875 | enableval="$enable_choicedlg" | |
8876 | ||
8877 | if test "$enableval" = yes; then | |
8878 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8879 | else | |
8880 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8881 | fi | |
8882 | ||
8883 | else | |
8884 | ||
8885 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8886 | if test "x$LINE" != x ; then | |
8887 | eval "DEFAULT_$LINE" | |
8888 | else | |
8889 | no_cache=1 | |
8890 | fi | |
8891 | ||
8892 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8893 | ||
8894 | fi; | |
8895 | ||
8896 | eval "$ac_cv_use_choicedlg" | |
8897 | if test "$no_cache" != 1; then | |
8898 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8899 | fi | |
8900 | ||
8901 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8902 | echo "$as_me:$LINENO: result: yes" >&5 | |
8903 | echo "${ECHO_T}yes" >&6 | |
8904 | else | |
8905 | echo "$as_me:$LINENO: result: no" >&5 | |
8906 | echo "${ECHO_T}no" >&6 | |
8907 | fi | |
8908 | ||
8909 | ||
8910 | enablestring= | |
8911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8912 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8913 | no_cache=0 | |
8914 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8915 | if test "${enable_coldlg+set}" = set; then | |
8916 | enableval="$enable_coldlg" | |
8917 | ||
8918 | if test "$enableval" = yes; then | |
8919 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8920 | else | |
8921 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8922 | fi | |
8923 | ||
8924 | else | |
8925 | ||
8926 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8927 | if test "x$LINE" != x ; then | |
8928 | eval "DEFAULT_$LINE" | |
8929 | else | |
8930 | no_cache=1 | |
8931 | fi | |
8932 | ||
8933 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8934 | ||
8935 | fi; | |
8936 | ||
8937 | eval "$ac_cv_use_coldlg" | |
8938 | if test "$no_cache" != 1; then | |
8939 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8940 | fi | |
8941 | ||
8942 | if test "$wxUSE_COLOURDLG" = yes; then | |
8943 | echo "$as_me:$LINENO: result: yes" >&5 | |
8944 | echo "${ECHO_T}yes" >&6 | |
8945 | else | |
8946 | echo "$as_me:$LINENO: result: no" >&5 | |
8947 | echo "${ECHO_T}no" >&6 | |
8948 | fi | |
8949 | ||
8950 | ||
8951 | enablestring= | |
8952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8953 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8954 | no_cache=0 | |
8955 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8956 | if test "${enable_filedlg+set}" = set; then | |
8957 | enableval="$enable_filedlg" | |
8958 | ||
8959 | if test "$enableval" = yes; then | |
8960 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8961 | else | |
8962 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8963 | fi | |
8964 | ||
8965 | else | |
8966 | ||
8967 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8968 | if test "x$LINE" != x ; then | |
8969 | eval "DEFAULT_$LINE" | |
8970 | else | |
8971 | no_cache=1 | |
8972 | fi | |
8973 | ||
8974 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8975 | ||
8976 | fi; | |
8977 | ||
8978 | eval "$ac_cv_use_filedlg" | |
8979 | if test "$no_cache" != 1; then | |
8980 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8981 | fi | |
8982 | ||
8983 | if test "$wxUSE_FILEDLG" = yes; then | |
8984 | echo "$as_me:$LINENO: result: yes" >&5 | |
8985 | echo "${ECHO_T}yes" >&6 | |
8986 | else | |
8987 | echo "$as_me:$LINENO: result: no" >&5 | |
8988 | echo "${ECHO_T}no" >&6 | |
8989 | fi | |
8990 | ||
8991 | ||
8992 | enablestring= | |
8993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8994 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8995 | no_cache=0 | |
8996 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8997 | if test "${enable_finddlg+set}" = set; then | |
8998 | enableval="$enable_finddlg" | |
8999 | ||
9000 | if test "$enableval" = yes; then | |
9001 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9002 | else | |
9003 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9004 | fi | |
9005 | ||
9006 | else | |
9007 | ||
9008 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9009 | if test "x$LINE" != x ; then | |
9010 | eval "DEFAULT_$LINE" | |
9011 | else | |
9012 | no_cache=1 | |
9013 | fi | |
9014 | ||
9015 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9016 | ||
9017 | fi; | |
9018 | ||
9019 | eval "$ac_cv_use_finddlg" | |
9020 | if test "$no_cache" != 1; then | |
9021 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9022 | fi | |
9023 | ||
9024 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9025 | echo "$as_me:$LINENO: result: yes" >&5 | |
9026 | echo "${ECHO_T}yes" >&6 | |
9027 | else | |
9028 | echo "$as_me:$LINENO: result: no" >&5 | |
9029 | echo "${ECHO_T}no" >&6 | |
9030 | fi | |
9031 | ||
9032 | ||
9033 | enablestring= | |
9034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9035 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9036 | no_cache=0 | |
9037 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9038 | if test "${enable_fontdlg+set}" = set; then | |
9039 | enableval="$enable_fontdlg" | |
9040 | ||
9041 | if test "$enableval" = yes; then | |
9042 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9043 | else | |
9044 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9045 | fi | |
9046 | ||
9047 | else | |
9048 | ||
9049 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9050 | if test "x$LINE" != x ; then | |
9051 | eval "DEFAULT_$LINE" | |
9052 | else | |
9053 | no_cache=1 | |
9054 | fi | |
9055 | ||
9056 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9057 | ||
9058 | fi; | |
9059 | ||
9060 | eval "$ac_cv_use_fontdlg" | |
9061 | if test "$no_cache" != 1; then | |
9062 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9063 | fi | |
9064 | ||
9065 | if test "$wxUSE_FONTDLG" = yes; then | |
9066 | echo "$as_me:$LINENO: result: yes" >&5 | |
9067 | echo "${ECHO_T}yes" >&6 | |
9068 | else | |
9069 | echo "$as_me:$LINENO: result: no" >&5 | |
9070 | echo "${ECHO_T}no" >&6 | |
9071 | fi | |
9072 | ||
9073 | ||
9074 | enablestring= | |
9075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9076 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9077 | no_cache=0 | |
9078 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9079 | if test "${enable_dirdlg+set}" = set; then | |
9080 | enableval="$enable_dirdlg" | |
9081 | ||
9082 | if test "$enableval" = yes; then | |
9083 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9084 | else | |
9085 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9086 | fi | |
9087 | ||
9088 | else | |
9089 | ||
9090 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9091 | if test "x$LINE" != x ; then | |
9092 | eval "DEFAULT_$LINE" | |
9093 | else | |
9094 | no_cache=1 | |
9095 | fi | |
9096 | ||
9097 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9098 | ||
9099 | fi; | |
9100 | ||
9101 | eval "$ac_cv_use_dirdlg" | |
9102 | if test "$no_cache" != 1; then | |
9103 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9104 | fi | |
9105 | ||
9106 | if test "$wxUSE_DIRDLG" = yes; then | |
9107 | echo "$as_me:$LINENO: result: yes" >&5 | |
9108 | echo "${ECHO_T}yes" >&6 | |
9109 | else | |
9110 | echo "$as_me:$LINENO: result: no" >&5 | |
9111 | echo "${ECHO_T}no" >&6 | |
9112 | fi | |
9113 | ||
9114 | ||
9115 | enablestring= | |
9116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9117 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9118 | no_cache=0 | |
9119 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9120 | if test "${enable_msgdlg+set}" = set; then | |
9121 | enableval="$enable_msgdlg" | |
9122 | ||
9123 | if test "$enableval" = yes; then | |
9124 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9125 | else | |
9126 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9127 | fi | |
9128 | ||
9129 | else | |
9130 | ||
9131 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9132 | if test "x$LINE" != x ; then | |
9133 | eval "DEFAULT_$LINE" | |
9134 | else | |
9135 | no_cache=1 | |
9136 | fi | |
9137 | ||
9138 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9139 | ||
9140 | fi; | |
9141 | ||
9142 | eval "$ac_cv_use_msgdlg" | |
9143 | if test "$no_cache" != 1; then | |
9144 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9145 | fi | |
9146 | ||
9147 | if test "$wxUSE_MSGDLG" = yes; then | |
9148 | echo "$as_me:$LINENO: result: yes" >&5 | |
9149 | echo "${ECHO_T}yes" >&6 | |
9150 | else | |
9151 | echo "$as_me:$LINENO: result: no" >&5 | |
9152 | echo "${ECHO_T}no" >&6 | |
9153 | fi | |
9154 | ||
9155 | ||
9156 | enablestring= | |
9157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9158 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9159 | no_cache=0 | |
9160 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9161 | if test "${enable_numberdlg+set}" = set; then | |
9162 | enableval="$enable_numberdlg" | |
9163 | ||
9164 | if test "$enableval" = yes; then | |
9165 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9166 | else | |
9167 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9168 | fi | |
9169 | ||
9170 | else | |
9171 | ||
9172 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9173 | if test "x$LINE" != x ; then | |
9174 | eval "DEFAULT_$LINE" | |
9175 | else | |
9176 | no_cache=1 | |
9177 | fi | |
9178 | ||
9179 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9180 | ||
9181 | fi; | |
9182 | ||
9183 | eval "$ac_cv_use_numberdlg" | |
9184 | if test "$no_cache" != 1; then | |
9185 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9186 | fi | |
9187 | ||
9188 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9189 | echo "$as_me:$LINENO: result: yes" >&5 | |
9190 | echo "${ECHO_T}yes" >&6 | |
9191 | else | |
9192 | echo "$as_me:$LINENO: result: no" >&5 | |
9193 | echo "${ECHO_T}no" >&6 | |
9194 | fi | |
9195 | ||
9196 | ||
9197 | enablestring= | |
9198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9199 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9200 | no_cache=0 | |
9201 | # Check whether --enable-splash or --disable-splash was given. | |
9202 | if test "${enable_splash+set}" = set; then | |
9203 | enableval="$enable_splash" | |
9204 | ||
9205 | if test "$enableval" = yes; then | |
9206 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9207 | else | |
9208 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9209 | fi | |
9210 | ||
9211 | else | |
9212 | ||
9213 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9214 | if test "x$LINE" != x ; then | |
9215 | eval "DEFAULT_$LINE" | |
9216 | else | |
9217 | no_cache=1 | |
9218 | fi | |
9219 | ||
9220 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9221 | ||
9222 | fi; | |
9223 | ||
9224 | eval "$ac_cv_use_splash" | |
9225 | if test "$no_cache" != 1; then | |
9226 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9227 | fi | |
9228 | ||
9229 | if test "$wxUSE_SPLASH" = yes; then | |
9230 | echo "$as_me:$LINENO: result: yes" >&5 | |
9231 | echo "${ECHO_T}yes" >&6 | |
9232 | else | |
9233 | echo "$as_me:$LINENO: result: no" >&5 | |
9234 | echo "${ECHO_T}no" >&6 | |
9235 | fi | |
9236 | ||
9237 | ||
9238 | enablestring= | |
9239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9240 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9241 | no_cache=0 | |
9242 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9243 | if test "${enable_textdlg+set}" = set; then | |
9244 | enableval="$enable_textdlg" | |
9245 | ||
9246 | if test "$enableval" = yes; then | |
9247 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9248 | else | |
9249 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9250 | fi | |
9251 | ||
9252 | else | |
9253 | ||
9254 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9255 | if test "x$LINE" != x ; then | |
9256 | eval "DEFAULT_$LINE" | |
9257 | else | |
9258 | no_cache=1 | |
9259 | fi | |
9260 | ||
9261 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9262 | ||
9263 | fi; | |
9264 | ||
9265 | eval "$ac_cv_use_textdlg" | |
9266 | if test "$no_cache" != 1; then | |
9267 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9268 | fi | |
9269 | ||
9270 | if test "$wxUSE_TEXTDLG" = yes; then | |
9271 | echo "$as_me:$LINENO: result: yes" >&5 | |
9272 | echo "${ECHO_T}yes" >&6 | |
9273 | else | |
9274 | echo "$as_me:$LINENO: result: no" >&5 | |
9275 | echo "${ECHO_T}no" >&6 | |
9276 | fi | |
9277 | ||
9278 | ||
9279 | enablestring= | |
9280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9281 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9282 | no_cache=0 | |
9283 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9284 | if test "${enable_tipdlg+set}" = set; then | |
9285 | enableval="$enable_tipdlg" | |
9286 | ||
9287 | if test "$enableval" = yes; then | |
9288 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9289 | else | |
9290 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9291 | fi | |
9292 | ||
9293 | else | |
9294 | ||
9295 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9296 | if test "x$LINE" != x ; then | |
9297 | eval "DEFAULT_$LINE" | |
9298 | else | |
9299 | no_cache=1 | |
9300 | fi | |
9301 | ||
9302 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9303 | ||
9304 | fi; | |
9305 | ||
9306 | eval "$ac_cv_use_tipdlg" | |
9307 | if test "$no_cache" != 1; then | |
9308 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9309 | fi | |
9310 | ||
9311 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9312 | echo "$as_me:$LINENO: result: yes" >&5 | |
9313 | echo "${ECHO_T}yes" >&6 | |
9314 | else | |
9315 | echo "$as_me:$LINENO: result: no" >&5 | |
9316 | echo "${ECHO_T}no" >&6 | |
9317 | fi | |
9318 | ||
9319 | ||
9320 | enablestring= | |
9321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9322 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9323 | no_cache=0 | |
9324 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9325 | if test "${enable_progressdlg+set}" = set; then | |
9326 | enableval="$enable_progressdlg" | |
9327 | ||
9328 | if test "$enableval" = yes; then | |
9329 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9330 | else | |
9331 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9332 | fi | |
9333 | ||
9334 | else | |
9335 | ||
9336 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9337 | if test "x$LINE" != x ; then | |
9338 | eval "DEFAULT_$LINE" | |
9339 | else | |
9340 | no_cache=1 | |
9341 | fi | |
9342 | ||
9343 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9344 | ||
9345 | fi; | |
9346 | ||
9347 | eval "$ac_cv_use_progressdlg" | |
9348 | if test "$no_cache" != 1; then | |
9349 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9350 | fi | |
9351 | ||
9352 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9353 | echo "$as_me:$LINENO: result: yes" >&5 | |
9354 | echo "${ECHO_T}yes" >&6 | |
9355 | else | |
9356 | echo "$as_me:$LINENO: result: no" >&5 | |
9357 | echo "${ECHO_T}no" >&6 | |
9358 | fi | |
9359 | ||
9360 | ||
9361 | enablestring= | |
9362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9363 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9364 | no_cache=0 | |
9365 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9366 | if test "${enable_wizarddlg+set}" = set; then | |
9367 | enableval="$enable_wizarddlg" | |
9368 | ||
9369 | if test "$enableval" = yes; then | |
9370 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9371 | else | |
9372 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9373 | fi | |
9374 | ||
9375 | else | |
9376 | ||
9377 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9378 | if test "x$LINE" != x ; then | |
9379 | eval "DEFAULT_$LINE" | |
9380 | else | |
9381 | no_cache=1 | |
9382 | fi | |
9383 | ||
9384 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9385 | ||
9386 | fi; | |
9387 | ||
9388 | eval "$ac_cv_use_wizarddlg" | |
9389 | if test "$no_cache" != 1; then | |
9390 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9391 | fi | |
9392 | ||
9393 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9394 | echo "$as_me:$LINENO: result: yes" >&5 | |
9395 | echo "${ECHO_T}yes" >&6 | |
9396 | else | |
9397 | echo "$as_me:$LINENO: result: no" >&5 | |
9398 | echo "${ECHO_T}no" >&6 | |
9399 | fi | |
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | enablestring= | |
9405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9406 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9407 | no_cache=0 | |
9408 | # Check whether --enable-menus or --disable-menus was given. | |
9409 | if test "${enable_menus+set}" = set; then | |
9410 | enableval="$enable_menus" | |
9411 | ||
9412 | if test "$enableval" = yes; then | |
9413 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9414 | else | |
9415 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9416 | fi | |
9417 | ||
9418 | else | |
9419 | ||
9420 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9421 | if test "x$LINE" != x ; then | |
9422 | eval "DEFAULT_$LINE" | |
9423 | else | |
9424 | no_cache=1 | |
9425 | fi | |
9426 | ||
9427 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9428 | ||
9429 | fi; | |
9430 | ||
9431 | eval "$ac_cv_use_menus" | |
9432 | if test "$no_cache" != 1; then | |
9433 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9434 | fi | |
9435 | ||
9436 | if test "$wxUSE_MENUS" = yes; then | |
9437 | echo "$as_me:$LINENO: result: yes" >&5 | |
9438 | echo "${ECHO_T}yes" >&6 | |
9439 | else | |
9440 | echo "$as_me:$LINENO: result: no" >&5 | |
9441 | echo "${ECHO_T}no" >&6 | |
9442 | fi | |
9443 | ||
9444 | ||
9445 | enablestring= | |
9446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9447 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9448 | no_cache=0 | |
9449 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9450 | if test "${enable_miniframe+set}" = set; then | |
9451 | enableval="$enable_miniframe" | |
9452 | ||
9453 | if test "$enableval" = yes; then | |
9454 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9455 | else | |
9456 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9457 | fi | |
9458 | ||
9459 | else | |
9460 | ||
9461 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9462 | if test "x$LINE" != x ; then | |
9463 | eval "DEFAULT_$LINE" | |
9464 | else | |
9465 | no_cache=1 | |
9466 | fi | |
9467 | ||
9468 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9469 | ||
9470 | fi; | |
9471 | ||
9472 | eval "$ac_cv_use_miniframe" | |
9473 | if test "$no_cache" != 1; then | |
9474 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9475 | fi | |
9476 | ||
9477 | if test "$wxUSE_MINIFRAME" = yes; then | |
9478 | echo "$as_me:$LINENO: result: yes" >&5 | |
9479 | echo "${ECHO_T}yes" >&6 | |
9480 | else | |
9481 | echo "$as_me:$LINENO: result: no" >&5 | |
9482 | echo "${ECHO_T}no" >&6 | |
9483 | fi | |
9484 | ||
9485 | ||
9486 | enablestring= | |
9487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9488 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9489 | no_cache=0 | |
9490 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9491 | if test "${enable_tooltips+set}" = set; then | |
9492 | enableval="$enable_tooltips" | |
9493 | ||
9494 | if test "$enableval" = yes; then | |
9495 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9496 | else | |
9497 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9498 | fi | |
9499 | ||
9500 | else | |
9501 | ||
9502 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9503 | if test "x$LINE" != x ; then | |
9504 | eval "DEFAULT_$LINE" | |
9505 | else | |
9506 | no_cache=1 | |
9507 | fi | |
9508 | ||
9509 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9510 | ||
9511 | fi; | |
9512 | ||
9513 | eval "$ac_cv_use_tooltips" | |
9514 | if test "$no_cache" != 1; then | |
9515 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9516 | fi | |
9517 | ||
9518 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9519 | echo "$as_me:$LINENO: result: yes" >&5 | |
9520 | echo "${ECHO_T}yes" >&6 | |
9521 | else | |
9522 | echo "$as_me:$LINENO: result: no" >&5 | |
9523 | echo "${ECHO_T}no" >&6 | |
9524 | fi | |
9525 | ||
9526 | ||
9527 | enablestring= | |
9528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9529 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9530 | no_cache=0 | |
9531 | # Check whether --enable-splines or --disable-splines was given. | |
9532 | if test "${enable_splines+set}" = set; then | |
9533 | enableval="$enable_splines" | |
9534 | ||
9535 | if test "$enableval" = yes; then | |
9536 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9537 | else | |
9538 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9539 | fi | |
9540 | ||
9541 | else | |
9542 | ||
9543 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9544 | if test "x$LINE" != x ; then | |
9545 | eval "DEFAULT_$LINE" | |
9546 | else | |
9547 | no_cache=1 | |
9548 | fi | |
9549 | ||
9550 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9551 | ||
9552 | fi; | |
9553 | ||
9554 | eval "$ac_cv_use_splines" | |
9555 | if test "$no_cache" != 1; then | |
9556 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9557 | fi | |
9558 | ||
9559 | if test "$wxUSE_SPLINES" = yes; then | |
9560 | echo "$as_me:$LINENO: result: yes" >&5 | |
9561 | echo "${ECHO_T}yes" >&6 | |
9562 | else | |
9563 | echo "$as_me:$LINENO: result: no" >&5 | |
9564 | echo "${ECHO_T}no" >&6 | |
9565 | fi | |
9566 | ||
9567 | ||
9568 | enablestring= | |
9569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9570 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9571 | no_cache=0 | |
9572 | # Check whether --enable-validators or --disable-validators was given. | |
9573 | if test "${enable_validators+set}" = set; then | |
9574 | enableval="$enable_validators" | |
9575 | ||
9576 | if test "$enableval" = yes; then | |
9577 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9578 | else | |
9579 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9580 | fi | |
9581 | ||
9582 | else | |
9583 | ||
9584 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9585 | if test "x$LINE" != x ; then | |
9586 | eval "DEFAULT_$LINE" | |
9587 | else | |
9588 | no_cache=1 | |
9589 | fi | |
9590 | ||
9591 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9592 | ||
9593 | fi; | |
9594 | ||
9595 | eval "$ac_cv_use_validators" | |
9596 | if test "$no_cache" != 1; then | |
9597 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9598 | fi | |
9599 | ||
9600 | if test "$wxUSE_VALIDATORS" = yes; then | |
9601 | echo "$as_me:$LINENO: result: yes" >&5 | |
9602 | echo "${ECHO_T}yes" >&6 | |
9603 | else | |
9604 | echo "$as_me:$LINENO: result: no" >&5 | |
9605 | echo "${ECHO_T}no" >&6 | |
9606 | fi | |
9607 | ||
9608 | ||
9609 | enablestring= | |
9610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9611 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9612 | no_cache=0 | |
9613 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9614 | if test "${enable_busyinfo+set}" = set; then | |
9615 | enableval="$enable_busyinfo" | |
9616 | ||
9617 | if test "$enableval" = yes; then | |
9618 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9619 | else | |
9620 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9621 | fi | |
9622 | ||
9623 | else | |
9624 | ||
9625 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9626 | if test "x$LINE" != x ; then | |
9627 | eval "DEFAULT_$LINE" | |
9628 | else | |
9629 | no_cache=1 | |
9630 | fi | |
9631 | ||
9632 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9633 | ||
9634 | fi; | |
9635 | ||
9636 | eval "$ac_cv_use_busyinfo" | |
9637 | if test "$no_cache" != 1; then | |
9638 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9639 | fi | |
9640 | ||
9641 | if test "$wxUSE_BUSYINFO" = yes; then | |
9642 | echo "$as_me:$LINENO: result: yes" >&5 | |
9643 | echo "${ECHO_T}yes" >&6 | |
9644 | else | |
9645 | echo "$as_me:$LINENO: result: no" >&5 | |
9646 | echo "${ECHO_T}no" >&6 | |
9647 | fi | |
9648 | ||
9649 | ||
9650 | enablestring= | |
9651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9652 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9653 | no_cache=0 | |
9654 | # Check whether --enable-joystick or --disable-joystick was given. | |
9655 | if test "${enable_joystick+set}" = set; then | |
9656 | enableval="$enable_joystick" | |
9657 | ||
9658 | if test "$enableval" = yes; then | |
9659 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9660 | else | |
9661 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9662 | fi | |
9663 | ||
9664 | else | |
9665 | ||
9666 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9667 | if test "x$LINE" != x ; then | |
9668 | eval "DEFAULT_$LINE" | |
9669 | else | |
9670 | no_cache=1 | |
9671 | fi | |
9672 | ||
9673 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9674 | ||
9675 | fi; | |
9676 | ||
9677 | eval "$ac_cv_use_joystick" | |
9678 | if test "$no_cache" != 1; then | |
9679 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9680 | fi | |
9681 | ||
9682 | if test "$wxUSE_JOYSTICK" = yes; then | |
9683 | echo "$as_me:$LINENO: result: yes" >&5 | |
9684 | echo "${ECHO_T}yes" >&6 | |
9685 | else | |
9686 | echo "$as_me:$LINENO: result: no" >&5 | |
9687 | echo "${ECHO_T}no" >&6 | |
9688 | fi | |
9689 | ||
9690 | ||
9691 | enablestring= | |
9692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9693 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9694 | no_cache=0 | |
9695 | # Check whether --enable-metafile or --disable-metafile was given. | |
9696 | if test "${enable_metafile+set}" = set; then | |
9697 | enableval="$enable_metafile" | |
9698 | ||
9699 | if test "$enableval" = yes; then | |
9700 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9701 | else | |
9702 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9703 | fi | |
9704 | ||
9705 | else | |
9706 | ||
9707 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9708 | if test "x$LINE" != x ; then | |
9709 | eval "DEFAULT_$LINE" | |
9710 | else | |
9711 | no_cache=1 | |
9712 | fi | |
9713 | ||
9714 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9715 | ||
9716 | fi; | |
9717 | ||
9718 | eval "$ac_cv_use_metafile" | |
9719 | if test "$no_cache" != 1; then | |
9720 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9721 | fi | |
9722 | ||
9723 | if test "$wxUSE_METAFILE" = yes; then | |
9724 | echo "$as_me:$LINENO: result: yes" >&5 | |
9725 | echo "${ECHO_T}yes" >&6 | |
9726 | else | |
9727 | echo "$as_me:$LINENO: result: no" >&5 | |
9728 | echo "${ECHO_T}no" >&6 | |
9729 | fi | |
9730 | ||
9731 | ||
9732 | enablestring= | |
9733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9734 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9735 | no_cache=0 | |
9736 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9737 | if test "${enable_dragimage+set}" = set; then | |
9738 | enableval="$enable_dragimage" | |
9739 | ||
9740 | if test "$enableval" = yes; then | |
9741 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9742 | else | |
9743 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9744 | fi | |
9745 | ||
9746 | else | |
9747 | ||
9748 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9749 | if test "x$LINE" != x ; then | |
9750 | eval "DEFAULT_$LINE" | |
9751 | else | |
9752 | no_cache=1 | |
9753 | fi | |
9754 | ||
9755 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9756 | ||
9757 | fi; | |
9758 | ||
9759 | eval "$ac_cv_use_dragimage" | |
9760 | if test "$no_cache" != 1; then | |
9761 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9762 | fi | |
9763 | ||
9764 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9765 | echo "$as_me:$LINENO: result: yes" >&5 | |
9766 | echo "${ECHO_T}yes" >&6 | |
9767 | else | |
9768 | echo "$as_me:$LINENO: result: no" >&5 | |
9769 | echo "${ECHO_T}no" >&6 | |
9770 | fi | |
9771 | ||
9772 | ||
9773 | enablestring= | |
9774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9775 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9776 | no_cache=0 | |
9777 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9778 | if test "${enable_accessibility+set}" = set; then | |
9779 | enableval="$enable_accessibility" | |
9780 | ||
9781 | if test "$enableval" = yes; then | |
9782 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9783 | else | |
9784 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9785 | fi | |
9786 | ||
9787 | else | |
9788 | ||
9789 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9790 | if test "x$LINE" != x ; then | |
9791 | eval "DEFAULT_$LINE" | |
9792 | else | |
9793 | no_cache=1 | |
9794 | fi | |
9795 | ||
9796 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9797 | ||
9798 | fi; | |
9799 | ||
9800 | eval "$ac_cv_use_accessibility" | |
9801 | if test "$no_cache" != 1; then | |
9802 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9803 | fi | |
9804 | ||
9805 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9806 | echo "$as_me:$LINENO: result: yes" >&5 | |
9807 | echo "${ECHO_T}yes" >&6 | |
9808 | else | |
9809 | echo "$as_me:$LINENO: result: no" >&5 | |
9810 | echo "${ECHO_T}no" >&6 | |
9811 | fi | |
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | enablestring= | |
9817 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9818 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9819 | no_cache=0 | |
9820 | # Check whether --enable-palette or --disable-palette was given. | |
9821 | if test "${enable_palette+set}" = set; then | |
9822 | enableval="$enable_palette" | |
9823 | ||
9824 | if test "$enableval" = yes; then | |
9825 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9826 | else | |
9827 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9828 | fi | |
9829 | ||
9830 | else | |
9831 | ||
9832 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9833 | if test "x$LINE" != x ; then | |
9834 | eval "DEFAULT_$LINE" | |
9835 | else | |
9836 | no_cache=1 | |
9837 | fi | |
9838 | ||
9839 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9840 | ||
9841 | fi; | |
9842 | ||
9843 | eval "$ac_cv_use_palette" | |
9844 | if test "$no_cache" != 1; then | |
9845 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9846 | fi | |
9847 | ||
9848 | if test "$wxUSE_PALETTE" = yes; then | |
9849 | echo "$as_me:$LINENO: result: yes" >&5 | |
9850 | echo "${ECHO_T}yes" >&6 | |
9851 | else | |
9852 | echo "$as_me:$LINENO: result: no" >&5 | |
9853 | echo "${ECHO_T}no" >&6 | |
9854 | fi | |
9855 | ||
9856 | ||
9857 | enablestring= | |
9858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9859 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9860 | no_cache=0 | |
9861 | # Check whether --enable-image or --disable-image was given. | |
9862 | if test "${enable_image+set}" = set; then | |
9863 | enableval="$enable_image" | |
9864 | ||
9865 | if test "$enableval" = yes; then | |
9866 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9867 | else | |
9868 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9869 | fi | |
9870 | ||
9871 | else | |
9872 | ||
9873 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9874 | if test "x$LINE" != x ; then | |
9875 | eval "DEFAULT_$LINE" | |
9876 | else | |
9877 | no_cache=1 | |
9878 | fi | |
9879 | ||
9880 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9881 | ||
9882 | fi; | |
9883 | ||
9884 | eval "$ac_cv_use_image" | |
9885 | if test "$no_cache" != 1; then | |
9886 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9887 | fi | |
9888 | ||
9889 | if test "$wxUSE_IMAGE" = yes; then | |
9890 | echo "$as_me:$LINENO: result: yes" >&5 | |
9891 | echo "${ECHO_T}yes" >&6 | |
9892 | else | |
9893 | echo "$as_me:$LINENO: result: no" >&5 | |
9894 | echo "${ECHO_T}no" >&6 | |
9895 | fi | |
9896 | ||
9897 | ||
9898 | enablestring= | |
9899 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9900 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9901 | no_cache=0 | |
9902 | # Check whether --enable-gif or --disable-gif was given. | |
9903 | if test "${enable_gif+set}" = set; then | |
9904 | enableval="$enable_gif" | |
9905 | ||
9906 | if test "$enableval" = yes; then | |
9907 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9908 | else | |
9909 | ac_cv_use_gif='wxUSE_GIF=no' | |
9910 | fi | |
9911 | ||
9912 | else | |
9913 | ||
9914 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9915 | if test "x$LINE" != x ; then | |
9916 | eval "DEFAULT_$LINE" | |
9917 | else | |
9918 | no_cache=1 | |
9919 | fi | |
9920 | ||
9921 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9922 | ||
9923 | fi; | |
9924 | ||
9925 | eval "$ac_cv_use_gif" | |
9926 | if test "$no_cache" != 1; then | |
9927 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9928 | fi | |
9929 | ||
9930 | if test "$wxUSE_GIF" = yes; then | |
9931 | echo "$as_me:$LINENO: result: yes" >&5 | |
9932 | echo "${ECHO_T}yes" >&6 | |
9933 | else | |
9934 | echo "$as_me:$LINENO: result: no" >&5 | |
9935 | echo "${ECHO_T}no" >&6 | |
9936 | fi | |
9937 | ||
9938 | ||
9939 | enablestring= | |
9940 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9941 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9942 | no_cache=0 | |
9943 | # Check whether --enable-pcx or --disable-pcx was given. | |
9944 | if test "${enable_pcx+set}" = set; then | |
9945 | enableval="$enable_pcx" | |
9946 | ||
9947 | if test "$enableval" = yes; then | |
9948 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9949 | else | |
9950 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9951 | fi | |
9952 | ||
9953 | else | |
9954 | ||
9955 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9956 | if test "x$LINE" != x ; then | |
9957 | eval "DEFAULT_$LINE" | |
9958 | else | |
9959 | no_cache=1 | |
9960 | fi | |
9961 | ||
9962 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9963 | ||
9964 | fi; | |
9965 | ||
9966 | eval "$ac_cv_use_pcx" | |
9967 | if test "$no_cache" != 1; then | |
9968 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9969 | fi | |
9970 | ||
9971 | if test "$wxUSE_PCX" = yes; then | |
9972 | echo "$as_me:$LINENO: result: yes" >&5 | |
9973 | echo "${ECHO_T}yes" >&6 | |
9974 | else | |
9975 | echo "$as_me:$LINENO: result: no" >&5 | |
9976 | echo "${ECHO_T}no" >&6 | |
9977 | fi | |
9978 | ||
9979 | ||
9980 | enablestring= | |
9981 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9982 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9983 | no_cache=0 | |
9984 | # Check whether --enable-iff or --disable-iff was given. | |
9985 | if test "${enable_iff+set}" = set; then | |
9986 | enableval="$enable_iff" | |
9987 | ||
9988 | if test "$enableval" = yes; then | |
9989 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9990 | else | |
9991 | ac_cv_use_iff='wxUSE_IFF=no' | |
9992 | fi | |
9993 | ||
9994 | else | |
9995 | ||
9996 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9997 | if test "x$LINE" != x ; then | |
9998 | eval "DEFAULT_$LINE" | |
9999 | else | |
10000 | no_cache=1 | |
10001 | fi | |
10002 | ||
10003 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10004 | ||
10005 | fi; | |
10006 | ||
10007 | eval "$ac_cv_use_iff" | |
10008 | if test "$no_cache" != 1; then | |
10009 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10010 | fi | |
10011 | ||
10012 | if test "$wxUSE_IFF" = yes; then | |
10013 | echo "$as_me:$LINENO: result: yes" >&5 | |
10014 | echo "${ECHO_T}yes" >&6 | |
10015 | else | |
10016 | echo "$as_me:$LINENO: result: no" >&5 | |
10017 | echo "${ECHO_T}no" >&6 | |
10018 | fi | |
10019 | ||
10020 | ||
10021 | enablestring= | |
10022 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10023 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10024 | no_cache=0 | |
10025 | # Check whether --enable-pnm or --disable-pnm was given. | |
10026 | if test "${enable_pnm+set}" = set; then | |
10027 | enableval="$enable_pnm" | |
10028 | ||
10029 | if test "$enableval" = yes; then | |
10030 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10031 | else | |
10032 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10033 | fi | |
10034 | ||
10035 | else | |
10036 | ||
10037 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10038 | if test "x$LINE" != x ; then | |
10039 | eval "DEFAULT_$LINE" | |
10040 | else | |
10041 | no_cache=1 | |
10042 | fi | |
10043 | ||
10044 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10045 | ||
10046 | fi; | |
10047 | ||
10048 | eval "$ac_cv_use_pnm" | |
10049 | if test "$no_cache" != 1; then | |
10050 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10051 | fi | |
10052 | ||
10053 | if test "$wxUSE_PNM" = yes; then | |
10054 | echo "$as_me:$LINENO: result: yes" >&5 | |
10055 | echo "${ECHO_T}yes" >&6 | |
10056 | else | |
10057 | echo "$as_me:$LINENO: result: no" >&5 | |
10058 | echo "${ECHO_T}no" >&6 | |
10059 | fi | |
10060 | ||
10061 | ||
10062 | enablestring= | |
10063 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10064 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10065 | no_cache=0 | |
10066 | # Check whether --enable-xpm or --disable-xpm was given. | |
10067 | if test "${enable_xpm+set}" = set; then | |
10068 | enableval="$enable_xpm" | |
10069 | ||
10070 | if test "$enableval" = yes; then | |
10071 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10072 | else | |
10073 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10074 | fi | |
10075 | ||
10076 | else | |
10077 | ||
10078 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10079 | if test "x$LINE" != x ; then | |
10080 | eval "DEFAULT_$LINE" | |
10081 | else | |
10082 | no_cache=1 | |
10083 | fi | |
10084 | ||
10085 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10086 | ||
10087 | fi; | |
10088 | ||
10089 | eval "$ac_cv_use_xpm" | |
10090 | if test "$no_cache" != 1; then | |
10091 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10092 | fi | |
10093 | ||
10094 | if test "$wxUSE_XPM" = yes; then | |
10095 | echo "$as_me:$LINENO: result: yes" >&5 | |
10096 | echo "${ECHO_T}yes" >&6 | |
10097 | else | |
10098 | echo "$as_me:$LINENO: result: no" >&5 | |
10099 | echo "${ECHO_T}no" >&6 | |
10100 | fi | |
10101 | ||
10102 | ||
10103 | enablestring= | |
10104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10105 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10106 | no_cache=0 | |
10107 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10108 | if test "${enable_ico_cur+set}" = set; then | |
10109 | enableval="$enable_ico_cur" | |
10110 | ||
10111 | if test "$enableval" = yes; then | |
10112 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10113 | else | |
10114 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10115 | fi | |
10116 | ||
10117 | else | |
10118 | ||
10119 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10120 | if test "x$LINE" != x ; then | |
10121 | eval "DEFAULT_$LINE" | |
10122 | else | |
10123 | no_cache=1 | |
10124 | fi | |
10125 | ||
10126 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10127 | ||
10128 | fi; | |
10129 | ||
10130 | eval "$ac_cv_use_ico_cur" | |
10131 | if test "$no_cache" != 1; then | |
10132 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10133 | fi | |
10134 | ||
10135 | if test "$wxUSE_ICO_CUR" = yes; then | |
10136 | echo "$as_me:$LINENO: result: yes" >&5 | |
10137 | echo "${ECHO_T}yes" >&6 | |
10138 | else | |
10139 | echo "$as_me:$LINENO: result: no" >&5 | |
10140 | echo "${ECHO_T}no" >&6 | |
10141 | fi | |
10142 | ||
10143 | ||
10144 | fi | |
10145 | ||
10146 | ||
10147 | ||
ceec2216 RL |
10148 | # Check whether --with-flavour or --without-flavour was given. |
10149 | if test "${with_flavour+set}" = set; then | |
10150 | withval="$with_flavour" | |
10151 | WX_FLAVOUR="$withval" | |
10152 | fi; | |
10153 | ||
10154 | ||
10155 | ||
a848cd7e SC |
10156 | enablestring= |
10157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10158 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10159 | no_cache=0 | |
10160 | # Check whether --enable-official_build or --disable-official_build was given. | |
10161 | if test "${enable_official_build+set}" = set; then | |
10162 | enableval="$enable_official_build" | |
10163 | ||
10164 | if test "$enableval" = yes; then | |
10165 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10166 | else | |
10167 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10168 | fi | |
10169 | ||
10170 | else | |
10171 | ||
10172 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10173 | if test "x$LINE" != x ; then | |
10174 | eval "DEFAULT_$LINE" | |
10175 | else | |
10176 | no_cache=1 | |
10177 | fi | |
10178 | ||
10179 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10180 | ||
10181 | fi; | |
10182 | ||
10183 | eval "$ac_cv_use_official_build" | |
10184 | if test "$no_cache" != 1; then | |
10185 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10186 | fi | |
10187 | ||
10188 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10189 | echo "$as_me:$LINENO: result: yes" >&5 | |
10190 | echo "${ECHO_T}yes" >&6 | |
10191 | else | |
10192 | echo "$as_me:$LINENO: result: no" >&5 | |
10193 | echo "${ECHO_T}no" >&6 | |
10194 | fi | |
10195 | ||
10196 | # Check whether --enable-vendor or --disable-vendor was given. | |
10197 | if test "${enable_vendor+set}" = set; then | |
10198 | enableval="$enable_vendor" | |
10199 | VENDOR="$enableval" | |
10200 | fi; | |
10201 | if test "x$VENDOR" = "x"; then | |
10202 | VENDOR="custom" | |
10203 | fi | |
10204 | ||
a848cd7e SC |
10205 | |
10206 | ||
10207 | ||
10208 | echo "saving argument cache $wx_arg_cache_file" | |
10209 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10210 | ||
10211 | ||
10212 | ||
10213 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10214 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10215 | ||
10216 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10217 | if test "$wxUSE_WINE" = "yes"; then | |
10218 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10219 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10220 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10221 | wxUSE_SHARED=no | |
10222 | fi | |
10223 | ||
10224 | if test "$wxUSE_GUI" = "yes"; then | |
10225 | ||
10226 | if test "$USE_BEOS" = 1; then | |
10227 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10228 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10229 | { (exit 1); exit 1; }; } | |
10230 | fi | |
10231 | ||
10232 | if test "$TOOLKIT_GIVEN" = 1; then | |
10233 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10234 | var=wxUSE_$toolkit | |
10235 | eval "value=\$${var}" | |
10236 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10237 | done | |
10238 | else | |
10239 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10240 | if test "$has_toolkit_in_cache" != 1; then | |
10241 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10242 | else | |
10243 | var=DEFAULT_wxUSE_$toolkit | |
10244 | fi | |
10245 | eval "wxUSE_$toolkit=\$${var}" | |
10246 | done | |
10247 | fi | |
10248 | ||
10249 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10250 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10251 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10252 | ||
10253 | case "${host}" in | |
10254 | *-pc-os2_emx | *-pc-os2-emx ) | |
10255 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10256 | esac | |
10257 | ||
10258 | case "$NUM_TOOLKITS" in | |
10259 | 1) | |
10260 | ;; | |
10261 | 0) | |
10262 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10263 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10264 | { (exit 1); exit 1; }; } | |
10265 | ;; | |
10266 | *) | |
10267 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10268 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10269 | { (exit 1); exit 1; }; } | |
10270 | esac | |
10271 | ||
10272 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10273 | var=wxUSE_$toolkit | |
10274 | eval "value=\$${var}" | |
10275 | if test "x$value" != x; then | |
10276 | cache_var=CACHE_$toolkit | |
10277 | eval "cache=\$${cache_var}" | |
10278 | if test "$cache" = 1; then | |
10279 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10280 | fi | |
10281 | if test "$value" = 1; then | |
10282 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10283 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10284 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10285 | fi | |
10286 | fi | |
10287 | done | |
10288 | else | |
10289 | if test "x$host_alias" != "x"; then | |
10290 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10291 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10292 | else | |
10293 | echo "$as_me:$LINENO: result: base only" >&5 | |
10294 | echo "${ECHO_T}base only" >&6 | |
10295 | fi | |
10296 | fi | |
10297 | ||
10298 | wants_win32=0 | |
10299 | doesnt_want_win32=0 | |
10300 | case "${host}" in | |
10301 | *-*-cygwin*) | |
10302 | if test "$wxUSE_MSW" = 1 ; then | |
10303 | wants_win32=1 | |
10304 | else | |
10305 | doesnt_want_win32=1 | |
10306 | fi | |
10307 | ;; | |
10308 | *-*-mingw*) | |
10309 | wants_win32=1 | |
10310 | ;; | |
10311 | esac | |
10312 | ||
10313 | if test "$wxUSE_WINE" = "yes"; then | |
10314 | wants_win32=1 | |
10315 | CC=winegcc | |
10316 | CXX=wineg++ | |
10317 | RESCOMP=wrc | |
10318 | LDFLAGS_GUI="-mwindows" | |
10319 | fi | |
10320 | ||
10321 | if test "$wants_win32" = 1 ; then | |
10322 | USE_UNIX=0 | |
10323 | USE_WIN32=1 | |
10324 | cat >>confdefs.h <<\_ACEOF | |
10325 | #define __WIN32__ 1 | |
10326 | _ACEOF | |
10327 | ||
10328 | cat >>confdefs.h <<\_ACEOF | |
10329 | #define __WIN95__ 1 | |
10330 | _ACEOF | |
10331 | ||
10332 | cat >>confdefs.h <<\_ACEOF | |
10333 | #define __WINDOWS__ 1 | |
10334 | _ACEOF | |
10335 | ||
10336 | cat >>confdefs.h <<\_ACEOF | |
10337 | #define __GNUWIN32__ 1 | |
10338 | _ACEOF | |
10339 | ||
10340 | cat >>confdefs.h <<\_ACEOF | |
10341 | #define STRICT 1 | |
10342 | _ACEOF | |
10343 | ||
10344 | cat >>confdefs.h <<\_ACEOF | |
10345 | #define WINVER 0x0400 | |
10346 | _ACEOF | |
10347 | ||
10348 | fi | |
10349 | if test "$doesnt_want_win32" = 1 ; then | |
10350 | USE_UNIX=1 | |
10351 | USE_WIN32=0 | |
10352 | fi | |
10353 | ||
10354 | if test "$USE_UNIX" = 1 ; then | |
10355 | wxUSE_UNIX=yes | |
10356 | cat >>confdefs.h <<\_ACEOF | |
10357 | #define __UNIX__ 1 | |
10358 | _ACEOF | |
10359 | ||
10360 | fi | |
10361 | ||
10362 | ||
10363 | cat >confcache <<\_ACEOF | |
10364 | # This file is a shell script that caches the results of configure | |
10365 | # tests run on this system so they can be shared between configure | |
10366 | # scripts and configure runs, see configure's option --config-cache. | |
10367 | # It is not useful on other systems. If it contains results you don't | |
10368 | # want to keep, you may remove or edit it. | |
10369 | # | |
10370 | # config.status only pays attention to the cache file if you give it | |
10371 | # the --recheck option to rerun configure. | |
10372 | # | |
10373 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10374 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10375 | # following values. | |
10376 | ||
10377 | _ACEOF | |
10378 | ||
10379 | # The following way of writing the cache mishandles newlines in values, | |
10380 | # but we know of no workaround that is simple, portable, and efficient. | |
10381 | # So, don't put newlines in cache variables' values. | |
10382 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10383 | # and sets the high bit in the cache file unless we assign to the vars. | |
10384 | { | |
10385 | (set) 2>&1 | | |
10386 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10387 | *ac_space=\ *) | |
10388 | # `set' does not quote correctly, so add quotes (double-quote | |
10389 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10390 | sed -n \ | |
ac1cb8d3 VS |
10391 | "s/'/'\\\\''/g; |
10392 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10393 | ;; |
10394 | *) | |
10395 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10396 | sed -n \ | |
ac1cb8d3 | 10397 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10398 | ;; |
10399 | esac; | |
10400 | } | | |
10401 | sed ' | |
10402 | t clear | |
10403 | : clear | |
10404 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10405 | t end | |
10406 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10407 | : end' >>confcache | |
10408 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10409 | if test -w $cache_file; then | |
10410 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10411 | cat confcache >$cache_file | |
10412 | else | |
10413 | echo "not updating unwritable cache $cache_file" | |
10414 | fi | |
10415 | fi | |
10416 | rm -f confcache | |
10417 | ||
10418 | if test "$build" != "$host" ; then | |
1e9e8aba | 10419 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10420 | CC=$host_alias-gcc |
10421 | CXX=$host_alias-c++ | |
10422 | AR=$host_alias-ar | |
10423 | RANLIB=$host_alias-ranlib | |
10424 | DLLTOOL=$host_alias-dlltool | |
10425 | RESCOMP=$host_alias-windres | |
a848cd7e | 10426 | STRIP=$host_alias-strip |
1e9e8aba DE |
10427 | elif test "x$CC" '!=' "x"; then |
10428 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10429 | else |
10430 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10431 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10432 | { (exit 1); exit 1; }; } | |
10433 | fi | |
10434 | fi | |
10435 | ||
10436 | CFLAGS=${CFLAGS:=} | |
10437 | ac_ext=c | |
10438 | ac_cpp='$CPP $CPPFLAGS' | |
10439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10442 | if test -n "$ac_tool_prefix"; then | |
10443 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10444 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10447 | if test "${ac_cv_prog_CC+set}" = set; then | |
10448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10449 | else | |
10450 | if test -n "$CC"; then | |
10451 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10452 | else | |
10453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10454 | for as_dir in $PATH | |
10455 | do | |
10456 | IFS=$as_save_IFS | |
10457 | test -z "$as_dir" && as_dir=. | |
10458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10460 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10462 | break 2 | |
10463 | fi | |
10464 | done | |
10465 | done | |
10466 | ||
10467 | fi | |
10468 | fi | |
10469 | CC=$ac_cv_prog_CC | |
10470 | if test -n "$CC"; then | |
10471 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10472 | echo "${ECHO_T}$CC" >&6 | |
10473 | else | |
10474 | echo "$as_me:$LINENO: result: no" >&5 | |
10475 | echo "${ECHO_T}no" >&6 | |
10476 | fi | |
10477 | ||
10478 | fi | |
10479 | if test -z "$ac_cv_prog_CC"; then | |
10480 | ac_ct_CC=$CC | |
10481 | # Extract the first word of "gcc", so it can be a program name with args. | |
10482 | set dummy gcc; ac_word=$2 | |
10483 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10485 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10487 | else | |
10488 | if test -n "$ac_ct_CC"; then | |
10489 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10490 | else | |
10491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10492 | for as_dir in $PATH | |
10493 | do | |
10494 | IFS=$as_save_IFS | |
10495 | test -z "$as_dir" && as_dir=. | |
10496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10497 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10498 | ac_cv_prog_ac_ct_CC="gcc" | |
10499 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10500 | break 2 | |
10501 | fi | |
10502 | done | |
10503 | done | |
10504 | ||
10505 | fi | |
10506 | fi | |
10507 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10508 | if test -n "$ac_ct_CC"; then | |
10509 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10510 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10511 | else | |
10512 | echo "$as_me:$LINENO: result: no" >&5 | |
10513 | echo "${ECHO_T}no" >&6 | |
10514 | fi | |
10515 | ||
10516 | CC=$ac_ct_CC | |
10517 | else | |
10518 | CC="$ac_cv_prog_CC" | |
10519 | fi | |
10520 | ||
10521 | if test -z "$CC"; then | |
10522 | if test -n "$ac_tool_prefix"; then | |
10523 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10524 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10525 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10527 | if test "${ac_cv_prog_CC+set}" = set; then | |
10528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10529 | else | |
10530 | if test -n "$CC"; then | |
10531 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10532 | else | |
10533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10534 | for as_dir in $PATH | |
10535 | do | |
10536 | IFS=$as_save_IFS | |
10537 | test -z "$as_dir" && as_dir=. | |
10538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10539 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10540 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10542 | break 2 | |
10543 | fi | |
10544 | done | |
10545 | done | |
10546 | ||
10547 | fi | |
10548 | fi | |
10549 | CC=$ac_cv_prog_CC | |
10550 | if test -n "$CC"; then | |
10551 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10552 | echo "${ECHO_T}$CC" >&6 | |
10553 | else | |
10554 | echo "$as_me:$LINENO: result: no" >&5 | |
10555 | echo "${ECHO_T}no" >&6 | |
10556 | fi | |
10557 | ||
10558 | fi | |
10559 | if test -z "$ac_cv_prog_CC"; then | |
10560 | ac_ct_CC=$CC | |
10561 | # Extract the first word of "cc", so it can be a program name with args. | |
10562 | set dummy cc; ac_word=$2 | |
10563 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10565 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10567 | else | |
10568 | if test -n "$ac_ct_CC"; then | |
10569 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10570 | else | |
10571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10572 | for as_dir in $PATH | |
10573 | do | |
10574 | IFS=$as_save_IFS | |
10575 | test -z "$as_dir" && as_dir=. | |
10576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10577 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10578 | ac_cv_prog_ac_ct_CC="cc" | |
10579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10580 | break 2 | |
10581 | fi | |
10582 | done | |
10583 | done | |
10584 | ||
10585 | fi | |
10586 | fi | |
10587 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10588 | if test -n "$ac_ct_CC"; then | |
10589 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10590 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10591 | else | |
10592 | echo "$as_me:$LINENO: result: no" >&5 | |
10593 | echo "${ECHO_T}no" >&6 | |
10594 | fi | |
10595 | ||
10596 | CC=$ac_ct_CC | |
10597 | else | |
10598 | CC="$ac_cv_prog_CC" | |
10599 | fi | |
10600 | ||
10601 | fi | |
10602 | if test -z "$CC"; then | |
10603 | # Extract the first word of "cc", so it can be a program name with args. | |
10604 | set dummy cc; ac_word=$2 | |
10605 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10607 | if test "${ac_cv_prog_CC+set}" = set; then | |
10608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10609 | else | |
10610 | if test -n "$CC"; then | |
10611 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10612 | else | |
10613 | ac_prog_rejected=no | |
10614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10615 | for as_dir in $PATH | |
10616 | do | |
10617 | IFS=$as_save_IFS | |
10618 | test -z "$as_dir" && as_dir=. | |
10619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10621 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10622 | ac_prog_rejected=yes | |
10623 | continue | |
10624 | fi | |
10625 | ac_cv_prog_CC="cc" | |
10626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10627 | break 2 | |
10628 | fi | |
10629 | done | |
10630 | done | |
10631 | ||
10632 | if test $ac_prog_rejected = yes; then | |
10633 | # We found a bogon in the path, so make sure we never use it. | |
10634 | set dummy $ac_cv_prog_CC | |
10635 | shift | |
10636 | if test $# != 0; then | |
10637 | # We chose a different compiler from the bogus one. | |
10638 | # However, it has the same basename, so the bogon will be chosen | |
10639 | # first if we set CC to just the basename; use the full file name. | |
10640 | shift | |
10641 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10642 | fi | |
10643 | fi | |
10644 | fi | |
10645 | fi | |
10646 | CC=$ac_cv_prog_CC | |
10647 | if test -n "$CC"; then | |
10648 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10649 | echo "${ECHO_T}$CC" >&6 | |
10650 | else | |
10651 | echo "$as_me:$LINENO: result: no" >&5 | |
10652 | echo "${ECHO_T}no" >&6 | |
10653 | fi | |
10654 | ||
10655 | fi | |
10656 | if test -z "$CC"; then | |
10657 | if test -n "$ac_tool_prefix"; then | |
10658 | for ac_prog in cl | |
10659 | do | |
10660 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10661 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10664 | if test "${ac_cv_prog_CC+set}" = set; then | |
10665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10666 | else | |
10667 | if test -n "$CC"; then | |
10668 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10669 | else | |
10670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10671 | for as_dir in $PATH | |
10672 | do | |
10673 | IFS=$as_save_IFS | |
10674 | test -z "$as_dir" && as_dir=. | |
10675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10677 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10679 | break 2 | |
10680 | fi | |
10681 | done | |
10682 | done | |
10683 | ||
10684 | fi | |
10685 | fi | |
10686 | CC=$ac_cv_prog_CC | |
10687 | if test -n "$CC"; then | |
10688 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10689 | echo "${ECHO_T}$CC" >&6 | |
10690 | else | |
10691 | echo "$as_me:$LINENO: result: no" >&5 | |
10692 | echo "${ECHO_T}no" >&6 | |
10693 | fi | |
10694 | ||
10695 | test -n "$CC" && break | |
10696 | done | |
10697 | fi | |
10698 | if test -z "$CC"; then | |
10699 | ac_ct_CC=$CC | |
10700 | for ac_prog in cl | |
10701 | do | |
10702 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10703 | set dummy $ac_prog; ac_word=$2 | |
10704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10706 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10708 | else | |
10709 | if test -n "$ac_ct_CC"; then | |
10710 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10711 | else | |
10712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10713 | for as_dir in $PATH | |
10714 | do | |
10715 | IFS=$as_save_IFS | |
10716 | test -z "$as_dir" && as_dir=. | |
10717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10719 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10721 | break 2 | |
10722 | fi | |
10723 | done | |
10724 | done | |
10725 | ||
10726 | fi | |
10727 | fi | |
10728 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10729 | if test -n "$ac_ct_CC"; then | |
10730 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10731 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10732 | else | |
10733 | echo "$as_me:$LINENO: result: no" >&5 | |
10734 | echo "${ECHO_T}no" >&6 | |
10735 | fi | |
10736 | ||
10737 | test -n "$ac_ct_CC" && break | |
10738 | done | |
10739 | ||
10740 | CC=$ac_ct_CC | |
10741 | fi | |
10742 | ||
10743 | fi | |
10744 | ||
10745 | ||
10746 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10747 | See \`config.log' for more details." >&5 | |
10748 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10749 | See \`config.log' for more details." >&2;} | |
10750 | { (exit 1); exit 1; }; } | |
10751 | ||
10752 | # Provide some information about the compiler. | |
10753 | echo "$as_me:$LINENO:" \ | |
10754 | "checking for C compiler version" >&5 | |
10755 | ac_compiler=`set X $ac_compile; echo $2` | |
10756 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10757 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10758 | ac_status=$? | |
10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10760 | (exit $ac_status); } | |
10761 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10762 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10763 | ac_status=$? | |
10764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10765 | (exit $ac_status); } | |
10766 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10767 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10768 | ac_status=$? | |
10769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10770 | (exit $ac_status); } | |
10771 | ||
10772 | cat >conftest.$ac_ext <<_ACEOF | |
10773 | /* confdefs.h. */ | |
10774 | _ACEOF | |
10775 | cat confdefs.h >>conftest.$ac_ext | |
10776 | cat >>conftest.$ac_ext <<_ACEOF | |
10777 | /* end confdefs.h. */ | |
10778 | ||
10779 | int | |
10780 | main () | |
10781 | { | |
10782 | ||
10783 | ; | |
10784 | return 0; | |
10785 | } | |
10786 | _ACEOF | |
10787 | ac_clean_files_save=$ac_clean_files | |
10788 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10789 | # Try to create an executable without -o first, disregard a.out. | |
10790 | # It will help us diagnose broken compilers, and finding out an intuition | |
10791 | # of exeext. | |
ac1cb8d3 VS |
10792 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10793 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10794 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10795 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10796 | (eval $ac_link_default) 2>&5 | |
10797 | ac_status=$? | |
10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10799 | (exit $ac_status); }; then | |
10800 | # Find the output, starting from the most likely. This scheme is | |
10801 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10802 | # resort. | |
10803 | ||
10804 | # Be careful to initialize this variable, since it used to be cached. | |
10805 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10806 | ac_cv_exeext= | |
10807 | # b.out is created by i960 compilers. | |
10808 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10809 | do | |
10810 | test -f "$ac_file" || continue | |
10811 | case $ac_file in | |
10812 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10813 | ;; |
a848cd7e | 10814 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10815 | # This is the source file. |
10816 | ;; | |
a848cd7e | 10817 | [ab].out ) |
ac1cb8d3 VS |
10818 | # We found the default executable, but exeext='' is most |
10819 | # certainly right. | |
10820 | break;; | |
a848cd7e | 10821 | *.* ) |
ac1cb8d3 VS |
10822 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10823 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10824 | # but it would be cool to find out if it's true. Does anybody | |
10825 | # maintain Libtool? --akim. | |
10826 | export ac_cv_exeext | |
10827 | break;; | |
a848cd7e | 10828 | * ) |
ac1cb8d3 | 10829 | break;; |
a848cd7e SC |
10830 | esac |
10831 | done | |
10832 | else | |
10833 | echo "$as_me: failed program was:" >&5 | |
10834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10835 | ||
10836 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10837 | See \`config.log' for more details." >&5 | |
10838 | echo "$as_me: error: C compiler cannot create executables | |
10839 | See \`config.log' for more details." >&2;} | |
10840 | { (exit 77); exit 77; }; } | |
10841 | fi | |
10842 | ||
10843 | ac_exeext=$ac_cv_exeext | |
10844 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10845 | echo "${ECHO_T}$ac_file" >&6 | |
10846 | ||
10847 | # Check the compiler produces executables we can run. If not, either | |
10848 | # the compiler is broken, or we cross compile. | |
10849 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10850 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10851 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10852 | # If not cross compiling, check that we can run a simple program. | |
10853 | if test "$cross_compiling" != yes; then | |
10854 | if { ac_try='./$ac_file' | |
10855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10856 | (eval $ac_try) 2>&5 | |
10857 | ac_status=$? | |
10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10859 | (exit $ac_status); }; }; then | |
10860 | cross_compiling=no | |
10861 | else | |
10862 | if test "$cross_compiling" = maybe; then | |
10863 | cross_compiling=yes | |
10864 | else | |
10865 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10866 | If you meant to cross compile, use \`--host'. | |
10867 | See \`config.log' for more details." >&5 | |
10868 | echo "$as_me: error: cannot run C compiled programs. | |
10869 | If you meant to cross compile, use \`--host'. | |
10870 | See \`config.log' for more details." >&2;} | |
10871 | { (exit 1); exit 1; }; } | |
10872 | fi | |
10873 | fi | |
10874 | fi | |
10875 | echo "$as_me:$LINENO: result: yes" >&5 | |
10876 | echo "${ECHO_T}yes" >&6 | |
10877 | ||
10878 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10879 | ac_clean_files=$ac_clean_files_save | |
10880 | # Check the compiler produces executables we can run. If not, either | |
10881 | # the compiler is broken, or we cross compile. | |
10882 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10883 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10884 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10885 | echo "${ECHO_T}$cross_compiling" >&6 | |
10886 | ||
10887 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10888 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10890 | (eval $ac_link) 2>&5 | |
10891 | ac_status=$? | |
10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10893 | (exit $ac_status); }; then | |
10894 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10895 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10896 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10897 | # `rm'. | |
10898 | for ac_file in conftest.exe conftest conftest.*; do | |
10899 | test -f "$ac_file" || continue | |
10900 | case $ac_file in | |
10901 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10902 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10903 | export ac_cv_exeext |
10904 | break;; | |
a848cd7e SC |
10905 | * ) break;; |
10906 | esac | |
10907 | done | |
10908 | else | |
10909 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10910 | See \`config.log' for more details." >&5 | |
10911 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10912 | See \`config.log' for more details." >&2;} | |
10913 | { (exit 1); exit 1; }; } | |
10914 | fi | |
10915 | ||
10916 | rm -f conftest$ac_cv_exeext | |
10917 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10918 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10919 | ||
10920 | rm -f conftest.$ac_ext | |
10921 | EXEEXT=$ac_cv_exeext | |
10922 | ac_exeext=$EXEEXT | |
10923 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10924 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10925 | if test "${ac_cv_objext+set}" = set; then | |
10926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10927 | else | |
10928 | cat >conftest.$ac_ext <<_ACEOF | |
10929 | /* confdefs.h. */ | |
10930 | _ACEOF | |
10931 | cat confdefs.h >>conftest.$ac_ext | |
10932 | cat >>conftest.$ac_ext <<_ACEOF | |
10933 | /* end confdefs.h. */ | |
10934 | ||
10935 | int | |
10936 | main () | |
10937 | { | |
10938 | ||
10939 | ; | |
10940 | return 0; | |
10941 | } | |
10942 | _ACEOF | |
10943 | rm -f conftest.o conftest.obj | |
10944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10945 | (eval $ac_compile) 2>&5 | |
10946 | ac_status=$? | |
10947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10948 | (exit $ac_status); }; then | |
10949 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10950 | case $ac_file in | |
10951 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10952 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10953 | break;; | |
10954 | esac | |
10955 | done | |
10956 | else | |
10957 | echo "$as_me: failed program was:" >&5 | |
10958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10959 | ||
10960 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10961 | See \`config.log' for more details." >&5 | |
10962 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10963 | See \`config.log' for more details." >&2;} | |
10964 | { (exit 1); exit 1; }; } | |
10965 | fi | |
10966 | ||
10967 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10968 | fi | |
10969 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10970 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10971 | OBJEXT=$ac_cv_objext | |
10972 | ac_objext=$OBJEXT | |
10973 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10974 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10975 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10977 | else | |
10978 | cat >conftest.$ac_ext <<_ACEOF | |
10979 | /* confdefs.h. */ | |
10980 | _ACEOF | |
10981 | cat confdefs.h >>conftest.$ac_ext | |
10982 | cat >>conftest.$ac_ext <<_ACEOF | |
10983 | /* end confdefs.h. */ | |
10984 | ||
10985 | int | |
10986 | main () | |
10987 | { | |
10988 | #ifndef __GNUC__ | |
10989 | choke me | |
10990 | #endif | |
10991 | ||
10992 | ; | |
10993 | return 0; | |
10994 | } | |
10995 | _ACEOF | |
10996 | rm -f conftest.$ac_objext | |
10997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10998 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10999 | ac_status=$? |
ac1cb8d3 VS |
11000 | grep -v '^ *+' conftest.er1 >conftest.err |
11001 | rm -f conftest.er1 | |
11002 | cat conftest.err >&5 | |
a848cd7e SC |
11003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11004 | (exit $ac_status); } && | |
04840eaa VS |
11005 | { ac_try='test -z "$ac_c_werror_flag" |
11006 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11008 | (eval $ac_try) 2>&5 | |
11009 | ac_status=$? | |
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11011 | (exit $ac_status); }; } && | |
11012 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11014 | (eval $ac_try) 2>&5 | |
11015 | ac_status=$? | |
11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11017 | (exit $ac_status); }; }; then | |
11018 | ac_compiler_gnu=yes | |
11019 | else | |
11020 | echo "$as_me: failed program was:" >&5 | |
11021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11022 | ||
11023 | ac_compiler_gnu=no | |
11024 | fi | |
ac1cb8d3 | 11025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11026 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11027 | ||
11028 | fi | |
11029 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11030 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11031 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11032 | ac_test_CFLAGS=${CFLAGS+set} | |
11033 | ac_save_CFLAGS=$CFLAGS | |
11034 | CFLAGS="-g" | |
11035 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11036 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11037 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11039 | else | |
11040 | cat >conftest.$ac_ext <<_ACEOF | |
11041 | /* confdefs.h. */ | |
11042 | _ACEOF | |
11043 | cat confdefs.h >>conftest.$ac_ext | |
11044 | cat >>conftest.$ac_ext <<_ACEOF | |
11045 | /* end confdefs.h. */ | |
11046 | ||
11047 | int | |
11048 | main () | |
11049 | { | |
11050 | ||
11051 | ; | |
11052 | return 0; | |
11053 | } | |
11054 | _ACEOF | |
11055 | rm -f conftest.$ac_objext | |
11056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11057 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11058 | ac_status=$? |
ac1cb8d3 VS |
11059 | grep -v '^ *+' conftest.er1 >conftest.err |
11060 | rm -f conftest.er1 | |
11061 | cat conftest.err >&5 | |
a848cd7e SC |
11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11063 | (exit $ac_status); } && | |
04840eaa VS |
11064 | { ac_try='test -z "$ac_c_werror_flag" |
11065 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11067 | (eval $ac_try) 2>&5 | |
11068 | ac_status=$? | |
11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11070 | (exit $ac_status); }; } && | |
11071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11073 | (eval $ac_try) 2>&5 | |
11074 | ac_status=$? | |
11075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11076 | (exit $ac_status); }; }; then | |
11077 | ac_cv_prog_cc_g=yes | |
11078 | else | |
11079 | echo "$as_me: failed program was:" >&5 | |
11080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11081 | ||
11082 | ac_cv_prog_cc_g=no | |
11083 | fi | |
ac1cb8d3 | 11084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11085 | fi |
11086 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11087 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11088 | if test "$ac_test_CFLAGS" = set; then | |
11089 | CFLAGS=$ac_save_CFLAGS | |
11090 | elif test $ac_cv_prog_cc_g = yes; then | |
11091 | if test "$GCC" = yes; then | |
11092 | CFLAGS="-g -O2" | |
11093 | else | |
11094 | CFLAGS="-g" | |
11095 | fi | |
11096 | else | |
11097 | if test "$GCC" = yes; then | |
11098 | CFLAGS="-O2" | |
11099 | else | |
11100 | CFLAGS= | |
11101 | fi | |
11102 | fi | |
11103 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11104 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11105 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11107 | else | |
11108 | ac_cv_prog_cc_stdc=no | |
11109 | ac_save_CC=$CC | |
11110 | cat >conftest.$ac_ext <<_ACEOF | |
11111 | /* confdefs.h. */ | |
11112 | _ACEOF | |
11113 | cat confdefs.h >>conftest.$ac_ext | |
11114 | cat >>conftest.$ac_ext <<_ACEOF | |
11115 | /* end confdefs.h. */ | |
11116 | #include <stdarg.h> | |
11117 | #include <stdio.h> | |
11118 | #include <sys/types.h> | |
11119 | #include <sys/stat.h> | |
11120 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11121 | struct buf { int x; }; | |
11122 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11123 | static char *e (p, i) | |
11124 | char **p; | |
11125 | int i; | |
11126 | { | |
11127 | return p[i]; | |
11128 | } | |
11129 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11130 | { | |
11131 | char *s; | |
11132 | va_list v; | |
11133 | va_start (v,p); | |
11134 | s = g (p, va_arg (v,int)); | |
11135 | va_end (v); | |
11136 | return s; | |
11137 | } | |
ac1cb8d3 VS |
11138 | |
11139 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11140 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11141 | These don't provoke an error unfortunately, instead are silently treated | |
11142 | as 'x'. The following induces an error, until -std1 is added to get | |
11143 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11144 | array size at least. It's necessary to write '\x00'==0 to get something | |
11145 | that's true only with -std1. */ | |
11146 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11147 | ||
a848cd7e SC |
11148 | int test (int i, double x); |
11149 | struct s1 {int (*f) (int a);}; | |
11150 | struct s2 {int (*f) (double a);}; | |
11151 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11152 | int argc; | |
11153 | char **argv; | |
11154 | int | |
11155 | main () | |
11156 | { | |
11157 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11158 | ; | |
11159 | return 0; | |
11160 | } | |
11161 | _ACEOF | |
11162 | # Don't try gcc -ansi; that turns off useful extensions and | |
11163 | # breaks some systems' header files. | |
11164 | # AIX -qlanglvl=ansi | |
11165 | # Ultrix and OSF/1 -std1 | |
11166 | # HP-UX 10.20 and later -Ae | |
11167 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11168 | # SVR4 -Xc -D__EXTENSIONS__ | |
11169 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11170 | do | |
11171 | CC="$ac_save_CC $ac_arg" | |
11172 | rm -f conftest.$ac_objext | |
11173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11174 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11175 | ac_status=$? |
ac1cb8d3 VS |
11176 | grep -v '^ *+' conftest.er1 >conftest.err |
11177 | rm -f conftest.er1 | |
11178 | cat conftest.err >&5 | |
a848cd7e SC |
11179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11180 | (exit $ac_status); } && | |
04840eaa VS |
11181 | { ac_try='test -z "$ac_c_werror_flag" |
11182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11184 | (eval $ac_try) 2>&5 | |
11185 | ac_status=$? | |
11186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11187 | (exit $ac_status); }; } && | |
11188 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11190 | (eval $ac_try) 2>&5 | |
11191 | ac_status=$? | |
11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11193 | (exit $ac_status); }; }; then | |
11194 | ac_cv_prog_cc_stdc=$ac_arg | |
11195 | break | |
11196 | else | |
11197 | echo "$as_me: failed program was:" >&5 | |
11198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11199 | ||
11200 | fi | |
ac1cb8d3 | 11201 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11202 | done |
11203 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11204 | CC=$ac_save_CC | |
11205 | ||
11206 | fi | |
11207 | ||
11208 | case "x$ac_cv_prog_cc_stdc" in | |
11209 | x|xno) | |
11210 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11211 | echo "${ECHO_T}none needed" >&6 ;; | |
11212 | *) | |
11213 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11214 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11215 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11216 | esac | |
11217 | ||
11218 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11219 | # in C++ we need to declare it. In case someone uses the same compiler | |
11220 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11221 | # the declaration of exit, since it's the most demanding environment. | |
11222 | cat >conftest.$ac_ext <<_ACEOF | |
11223 | #ifndef __cplusplus | |
11224 | choke me | |
11225 | #endif | |
11226 | _ACEOF | |
11227 | rm -f conftest.$ac_objext | |
11228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11229 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11230 | ac_status=$? |
ac1cb8d3 VS |
11231 | grep -v '^ *+' conftest.er1 >conftest.err |
11232 | rm -f conftest.er1 | |
11233 | cat conftest.err >&5 | |
a848cd7e SC |
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11235 | (exit $ac_status); } && | |
04840eaa VS |
11236 | { ac_try='test -z "$ac_c_werror_flag" |
11237 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11239 | (eval $ac_try) 2>&5 | |
11240 | ac_status=$? | |
11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11242 | (exit $ac_status); }; } && | |
11243 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11245 | (eval $ac_try) 2>&5 | |
11246 | ac_status=$? | |
11247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11248 | (exit $ac_status); }; }; then | |
11249 | for ac_declaration in \ | |
ac1cb8d3 | 11250 | '' \ |
a848cd7e SC |
11251 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11252 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11253 | 'extern "C" void exit (int) throw ();' \ | |
11254 | 'extern "C" void exit (int);' \ | |
11255 | 'void exit (int);' | |
11256 | do | |
11257 | cat >conftest.$ac_ext <<_ACEOF | |
11258 | /* confdefs.h. */ | |
11259 | _ACEOF | |
11260 | cat confdefs.h >>conftest.$ac_ext | |
11261 | cat >>conftest.$ac_ext <<_ACEOF | |
11262 | /* end confdefs.h. */ | |
de59c161 | 11263 | $ac_declaration |
ac1cb8d3 | 11264 | #include <stdlib.h> |
a848cd7e SC |
11265 | int |
11266 | main () | |
11267 | { | |
11268 | exit (42); | |
11269 | ; | |
11270 | return 0; | |
11271 | } | |
11272 | _ACEOF | |
11273 | rm -f conftest.$ac_objext | |
11274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11276 | ac_status=$? |
ac1cb8d3 VS |
11277 | grep -v '^ *+' conftest.er1 >conftest.err |
11278 | rm -f conftest.er1 | |
11279 | cat conftest.err >&5 | |
a848cd7e SC |
11280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11281 | (exit $ac_status); } && | |
04840eaa VS |
11282 | { ac_try='test -z "$ac_c_werror_flag" |
11283 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11285 | (eval $ac_try) 2>&5 | |
11286 | ac_status=$? | |
11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11288 | (exit $ac_status); }; } && | |
11289 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11291 | (eval $ac_try) 2>&5 | |
11292 | ac_status=$? | |
11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11294 | (exit $ac_status); }; }; then | |
11295 | : | |
11296 | else | |
11297 | echo "$as_me: failed program was:" >&5 | |
11298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11299 | ||
11300 | continue | |
11301 | fi | |
ac1cb8d3 | 11302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11303 | cat >conftest.$ac_ext <<_ACEOF |
11304 | /* confdefs.h. */ | |
11305 | _ACEOF | |
11306 | cat confdefs.h >>conftest.$ac_ext | |
11307 | cat >>conftest.$ac_ext <<_ACEOF | |
11308 | /* end confdefs.h. */ | |
11309 | $ac_declaration | |
11310 | int | |
11311 | main () | |
11312 | { | |
11313 | exit (42); | |
11314 | ; | |
11315 | return 0; | |
11316 | } | |
11317 | _ACEOF | |
11318 | rm -f conftest.$ac_objext | |
11319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11320 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11321 | ac_status=$? |
ac1cb8d3 VS |
11322 | grep -v '^ *+' conftest.er1 >conftest.err |
11323 | rm -f conftest.er1 | |
11324 | cat conftest.err >&5 | |
a848cd7e SC |
11325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11326 | (exit $ac_status); } && | |
04840eaa VS |
11327 | { ac_try='test -z "$ac_c_werror_flag" |
11328 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11330 | (eval $ac_try) 2>&5 | |
11331 | ac_status=$? | |
11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11333 | (exit $ac_status); }; } && | |
11334 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11336 | (eval $ac_try) 2>&5 | |
11337 | ac_status=$? | |
11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11339 | (exit $ac_status); }; }; then | |
11340 | break | |
11341 | else | |
11342 | echo "$as_me: failed program was:" >&5 | |
11343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11344 | ||
11345 | fi | |
ac1cb8d3 | 11346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11347 | done |
11348 | rm -f conftest* | |
11349 | if test -n "$ac_declaration"; then | |
11350 | echo '#ifdef __cplusplus' >>confdefs.h | |
11351 | echo $ac_declaration >>confdefs.h | |
11352 | echo '#endif' >>confdefs.h | |
11353 | fi | |
11354 | ||
11355 | else | |
11356 | echo "$as_me: failed program was:" >&5 | |
11357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11358 | ||
11359 | fi | |
ac1cb8d3 | 11360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11361 | ac_ext=c |
11362 | ac_cpp='$CPP $CPPFLAGS' | |
11363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11366 | ||
11367 | ||
11368 | ||
11369 | ac_ext=c | |
11370 | ac_cpp='$CPP $CPPFLAGS' | |
11371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11374 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11375 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11376 | # On Suns, sometimes $CPP names a directory. | |
11377 | if test -n "$CPP" && test -d "$CPP"; then | |
11378 | CPP= | |
11379 | fi | |
11380 | if test -z "$CPP"; then | |
11381 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11383 | else | |
11384 | # Double quotes because CPP needs to be expanded | |
11385 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11386 | do | |
11387 | ac_preproc_ok=false | |
11388 | for ac_c_preproc_warn_flag in '' yes | |
11389 | do | |
11390 | # Use a header file that comes with gcc, so configuring glibc | |
11391 | # with a fresh cross-compiler works. | |
11392 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11393 | # <limits.h> exists even on freestanding compilers. | |
11394 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11395 | # not just through cpp. "Syntax error" is here to catch this case. | |
11396 | cat >conftest.$ac_ext <<_ACEOF | |
11397 | /* confdefs.h. */ | |
11398 | _ACEOF | |
11399 | cat confdefs.h >>conftest.$ac_ext | |
11400 | cat >>conftest.$ac_ext <<_ACEOF | |
11401 | /* end confdefs.h. */ | |
11402 | #ifdef __STDC__ | |
11403 | # include <limits.h> | |
11404 | #else | |
11405 | # include <assert.h> | |
11406 | #endif | |
ac1cb8d3 | 11407 | Syntax error |
a848cd7e SC |
11408 | _ACEOF |
11409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11411 | ac_status=$? | |
11412 | grep -v '^ *+' conftest.er1 >conftest.err | |
11413 | rm -f conftest.er1 | |
11414 | cat conftest.err >&5 | |
11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11416 | (exit $ac_status); } >/dev/null; then | |
11417 | if test -s conftest.err; then | |
11418 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11419 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11420 | else |
11421 | ac_cpp_err= | |
11422 | fi | |
11423 | else | |
11424 | ac_cpp_err=yes | |
11425 | fi | |
11426 | if test -z "$ac_cpp_err"; then | |
11427 | : | |
11428 | else | |
11429 | echo "$as_me: failed program was:" >&5 | |
11430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11431 | ||
11432 | # Broken: fails on valid input. | |
11433 | continue | |
11434 | fi | |
11435 | rm -f conftest.err conftest.$ac_ext | |
11436 | ||
11437 | # OK, works on sane cases. Now check whether non-existent headers | |
11438 | # can be detected and how. | |
11439 | cat >conftest.$ac_ext <<_ACEOF | |
11440 | /* confdefs.h. */ | |
11441 | _ACEOF | |
11442 | cat confdefs.h >>conftest.$ac_ext | |
11443 | cat >>conftest.$ac_ext <<_ACEOF | |
11444 | /* end confdefs.h. */ | |
11445 | #include <ac_nonexistent.h> | |
11446 | _ACEOF | |
11447 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11448 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11449 | ac_status=$? | |
11450 | grep -v '^ *+' conftest.er1 >conftest.err | |
11451 | rm -f conftest.er1 | |
11452 | cat conftest.err >&5 | |
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11454 | (exit $ac_status); } >/dev/null; then | |
11455 | if test -s conftest.err; then | |
11456 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11457 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11458 | else |
11459 | ac_cpp_err= | |
11460 | fi | |
11461 | else | |
11462 | ac_cpp_err=yes | |
11463 | fi | |
11464 | if test -z "$ac_cpp_err"; then | |
11465 | # Broken: success on invalid input. | |
11466 | continue | |
11467 | else | |
11468 | echo "$as_me: failed program was:" >&5 | |
11469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11470 | ||
11471 | # Passes both tests. | |
11472 | ac_preproc_ok=: | |
11473 | break | |
11474 | fi | |
11475 | rm -f conftest.err conftest.$ac_ext | |
11476 | ||
11477 | done | |
11478 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11479 | rm -f conftest.err conftest.$ac_ext | |
11480 | if $ac_preproc_ok; then | |
11481 | break | |
11482 | fi | |
11483 | ||
11484 | done | |
11485 | ac_cv_prog_CPP=$CPP | |
11486 | ||
11487 | fi | |
11488 | CPP=$ac_cv_prog_CPP | |
11489 | else | |
11490 | ac_cv_prog_CPP=$CPP | |
11491 | fi | |
11492 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11493 | echo "${ECHO_T}$CPP" >&6 | |
11494 | ac_preproc_ok=false | |
11495 | for ac_c_preproc_warn_flag in '' yes | |
11496 | do | |
11497 | # Use a header file that comes with gcc, so configuring glibc | |
11498 | # with a fresh cross-compiler works. | |
11499 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11500 | # <limits.h> exists even on freestanding compilers. | |
11501 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11502 | # not just through cpp. "Syntax error" is here to catch this case. | |
11503 | cat >conftest.$ac_ext <<_ACEOF | |
11504 | /* confdefs.h. */ | |
11505 | _ACEOF | |
11506 | cat confdefs.h >>conftest.$ac_ext | |
11507 | cat >>conftest.$ac_ext <<_ACEOF | |
11508 | /* end confdefs.h. */ | |
11509 | #ifdef __STDC__ | |
11510 | # include <limits.h> | |
11511 | #else | |
11512 | # include <assert.h> | |
11513 | #endif | |
ac1cb8d3 | 11514 | Syntax error |
a848cd7e SC |
11515 | _ACEOF |
11516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11518 | ac_status=$? | |
11519 | grep -v '^ *+' conftest.er1 >conftest.err | |
11520 | rm -f conftest.er1 | |
11521 | cat conftest.err >&5 | |
11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11523 | (exit $ac_status); } >/dev/null; then | |
11524 | if test -s conftest.err; then | |
11525 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11526 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11527 | else |
11528 | ac_cpp_err= | |
11529 | fi | |
11530 | else | |
11531 | ac_cpp_err=yes | |
11532 | fi | |
11533 | if test -z "$ac_cpp_err"; then | |
11534 | : | |
11535 | else | |
11536 | echo "$as_me: failed program was:" >&5 | |
11537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11538 | ||
11539 | # Broken: fails on valid input. | |
11540 | continue | |
11541 | fi | |
11542 | rm -f conftest.err conftest.$ac_ext | |
11543 | ||
11544 | # OK, works on sane cases. Now check whether non-existent headers | |
11545 | # can be detected and how. | |
11546 | cat >conftest.$ac_ext <<_ACEOF | |
11547 | /* confdefs.h. */ | |
11548 | _ACEOF | |
11549 | cat confdefs.h >>conftest.$ac_ext | |
11550 | cat >>conftest.$ac_ext <<_ACEOF | |
11551 | /* end confdefs.h. */ | |
11552 | #include <ac_nonexistent.h> | |
11553 | _ACEOF | |
11554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11556 | ac_status=$? | |
11557 | grep -v '^ *+' conftest.er1 >conftest.err | |
11558 | rm -f conftest.er1 | |
11559 | cat conftest.err >&5 | |
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11561 | (exit $ac_status); } >/dev/null; then | |
11562 | if test -s conftest.err; then | |
11563 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11565 | else |
11566 | ac_cpp_err= | |
11567 | fi | |
11568 | else | |
11569 | ac_cpp_err=yes | |
11570 | fi | |
11571 | if test -z "$ac_cpp_err"; then | |
11572 | # Broken: success on invalid input. | |
11573 | continue | |
11574 | else | |
11575 | echo "$as_me: failed program was:" >&5 | |
11576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11577 | ||
11578 | # Passes both tests. | |
11579 | ac_preproc_ok=: | |
11580 | break | |
11581 | fi | |
11582 | rm -f conftest.err conftest.$ac_ext | |
11583 | ||
11584 | done | |
11585 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11586 | rm -f conftest.err conftest.$ac_ext | |
11587 | if $ac_preproc_ok; then | |
11588 | : | |
11589 | else | |
11590 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11591 | See \`config.log' for more details." >&5 | |
11592 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11593 | See \`config.log' for more details." >&2;} | |
11594 | { (exit 1); exit 1; }; } | |
11595 | fi | |
11596 | ||
11597 | ac_ext=c | |
11598 | ac_cpp='$CPP $CPPFLAGS' | |
11599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11602 | ||
11603 | ||
11604 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11605 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11606 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11608 | else | |
11609 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11610 | then ac_cv_prog_egrep='grep -E' | |
11611 | else ac_cv_prog_egrep='egrep' | |
11612 | fi | |
11613 | fi | |
11614 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11615 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11616 | EGREP=$ac_cv_prog_egrep | |
11617 | ||
11618 | ||
11619 | if test $ac_cv_c_compiler_gnu = yes; then | |
11620 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11621 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11622 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11624 | else | |
11625 | ac_pattern="Autoconf.*'x'" | |
11626 | cat >conftest.$ac_ext <<_ACEOF | |
11627 | /* confdefs.h. */ | |
11628 | _ACEOF | |
11629 | cat confdefs.h >>conftest.$ac_ext | |
11630 | cat >>conftest.$ac_ext <<_ACEOF | |
11631 | /* end confdefs.h. */ | |
11632 | #include <sgtty.h> | |
11633 | Autoconf TIOCGETP | |
11634 | _ACEOF | |
11635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11636 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11637 | ac_cv_prog_gcc_traditional=yes | |
11638 | else | |
11639 | ac_cv_prog_gcc_traditional=no | |
11640 | fi | |
11641 | rm -f conftest* | |
11642 | ||
11643 | ||
11644 | if test $ac_cv_prog_gcc_traditional = no; then | |
11645 | cat >conftest.$ac_ext <<_ACEOF | |
11646 | /* confdefs.h. */ | |
11647 | _ACEOF | |
11648 | cat confdefs.h >>conftest.$ac_ext | |
11649 | cat >>conftest.$ac_ext <<_ACEOF | |
11650 | /* end confdefs.h. */ | |
11651 | #include <termio.h> | |
11652 | Autoconf TCGETA | |
11653 | _ACEOF | |
11654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11655 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11656 | ac_cv_prog_gcc_traditional=yes | |
11657 | fi | |
11658 | rm -f conftest* | |
11659 | ||
11660 | fi | |
11661 | fi | |
11662 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11663 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11664 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11665 | CC="$CC -traditional" | |
11666 | fi | |
11667 | fi | |
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ac_ext=cc | |
11673 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11674 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11675 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11676 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11677 | ||
11678 | ||
11679 | CXXFLAGS=${CXXFLAGS:=} | |
11680 | ac_ext=cc | |
11681 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11682 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11683 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11684 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11685 | if test -n "$ac_tool_prefix"; then | |
11686 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11687 | do | |
11688 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11689 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11692 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11694 | else | |
11695 | if test -n "$CXX"; then | |
11696 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11697 | else | |
11698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11699 | for as_dir in $PATH | |
11700 | do | |
11701 | IFS=$as_save_IFS | |
11702 | test -z "$as_dir" && as_dir=. | |
11703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11705 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11707 | break 2 | |
11708 | fi | |
11709 | done | |
11710 | done | |
11711 | ||
11712 | fi | |
11713 | fi | |
11714 | CXX=$ac_cv_prog_CXX | |
11715 | if test -n "$CXX"; then | |
11716 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11717 | echo "${ECHO_T}$CXX" >&6 | |
11718 | else | |
11719 | echo "$as_me:$LINENO: result: no" >&5 | |
11720 | echo "${ECHO_T}no" >&6 | |
11721 | fi | |
11722 | ||
11723 | test -n "$CXX" && break | |
11724 | done | |
11725 | fi | |
11726 | if test -z "$CXX"; then | |
11727 | ac_ct_CXX=$CXX | |
11728 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11729 | do | |
11730 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11731 | set dummy $ac_prog; ac_word=$2 | |
11732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11734 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11736 | else | |
11737 | if test -n "$ac_ct_CXX"; then | |
11738 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11739 | else | |
11740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11741 | for as_dir in $PATH | |
11742 | do | |
11743 | IFS=$as_save_IFS | |
11744 | test -z "$as_dir" && as_dir=. | |
11745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11747 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11749 | break 2 | |
11750 | fi | |
11751 | done | |
11752 | done | |
11753 | ||
11754 | fi | |
11755 | fi | |
11756 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11757 | if test -n "$ac_ct_CXX"; then | |
11758 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11759 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11760 | else | |
11761 | echo "$as_me:$LINENO: result: no" >&5 | |
11762 | echo "${ECHO_T}no" >&6 | |
11763 | fi | |
11764 | ||
11765 | test -n "$ac_ct_CXX" && break | |
11766 | done | |
11767 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11768 | ||
11769 | CXX=$ac_ct_CXX | |
11770 | fi | |
11771 | ||
11772 | ||
11773 | # Provide some information about the compiler. | |
11774 | echo "$as_me:$LINENO:" \ | |
11775 | "checking for C++ compiler version" >&5 | |
11776 | ac_compiler=`set X $ac_compile; echo $2` | |
11777 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11778 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11779 | ac_status=$? | |
11780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11781 | (exit $ac_status); } | |
11782 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11783 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11784 | ac_status=$? | |
11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11786 | (exit $ac_status); } | |
11787 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11788 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11789 | ac_status=$? | |
11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11791 | (exit $ac_status); } | |
11792 | ||
11793 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11794 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11795 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11797 | else | |
11798 | cat >conftest.$ac_ext <<_ACEOF | |
11799 | /* confdefs.h. */ | |
11800 | _ACEOF | |
11801 | cat confdefs.h >>conftest.$ac_ext | |
11802 | cat >>conftest.$ac_ext <<_ACEOF | |
11803 | /* end confdefs.h. */ | |
11804 | ||
11805 | int | |
11806 | main () | |
11807 | { | |
11808 | #ifndef __GNUC__ | |
11809 | choke me | |
11810 | #endif | |
11811 | ||
11812 | ; | |
11813 | return 0; | |
11814 | } | |
11815 | _ACEOF | |
11816 | rm -f conftest.$ac_objext | |
11817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11818 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11819 | ac_status=$? |
ac1cb8d3 VS |
11820 | grep -v '^ *+' conftest.er1 >conftest.err |
11821 | rm -f conftest.er1 | |
11822 | cat conftest.err >&5 | |
a848cd7e SC |
11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11824 | (exit $ac_status); } && | |
04840eaa VS |
11825 | { ac_try='test -z "$ac_cxx_werror_flag" |
11826 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11828 | (eval $ac_try) 2>&5 | |
11829 | ac_status=$? | |
11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11831 | (exit $ac_status); }; } && | |
11832 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11834 | (eval $ac_try) 2>&5 | |
11835 | ac_status=$? | |
11836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11837 | (exit $ac_status); }; }; then | |
11838 | ac_compiler_gnu=yes | |
11839 | else | |
11840 | echo "$as_me: failed program was:" >&5 | |
11841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11842 | ||
11843 | ac_compiler_gnu=no | |
11844 | fi | |
ac1cb8d3 | 11845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11846 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11847 | ||
11848 | fi | |
11849 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11850 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11851 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11852 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11853 | ac_save_CXXFLAGS=$CXXFLAGS | |
11854 | CXXFLAGS="-g" | |
11855 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11856 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11857 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11859 | else | |
11860 | cat >conftest.$ac_ext <<_ACEOF | |
11861 | /* confdefs.h. */ | |
11862 | _ACEOF | |
11863 | cat confdefs.h >>conftest.$ac_ext | |
11864 | cat >>conftest.$ac_ext <<_ACEOF | |
11865 | /* end confdefs.h. */ | |
11866 | ||
11867 | int | |
11868 | main () | |
11869 | { | |
11870 | ||
11871 | ; | |
11872 | return 0; | |
11873 | } | |
11874 | _ACEOF | |
11875 | rm -f conftest.$ac_objext | |
11876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11878 | ac_status=$? |
ac1cb8d3 VS |
11879 | grep -v '^ *+' conftest.er1 >conftest.err |
11880 | rm -f conftest.er1 | |
11881 | cat conftest.err >&5 | |
a848cd7e SC |
11882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11883 | (exit $ac_status); } && | |
04840eaa VS |
11884 | { ac_try='test -z "$ac_cxx_werror_flag" |
11885 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11887 | (eval $ac_try) 2>&5 | |
11888 | ac_status=$? | |
11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11890 | (exit $ac_status); }; } && | |
11891 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11893 | (eval $ac_try) 2>&5 | |
11894 | ac_status=$? | |
11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11896 | (exit $ac_status); }; }; then | |
11897 | ac_cv_prog_cxx_g=yes | |
11898 | else | |
11899 | echo "$as_me: failed program was:" >&5 | |
11900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11901 | ||
11902 | ac_cv_prog_cxx_g=no | |
11903 | fi | |
ac1cb8d3 | 11904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11905 | fi |
11906 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11907 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11908 | if test "$ac_test_CXXFLAGS" = set; then | |
11909 | CXXFLAGS=$ac_save_CXXFLAGS | |
11910 | elif test $ac_cv_prog_cxx_g = yes; then | |
11911 | if test "$GXX" = yes; then | |
11912 | CXXFLAGS="-g -O2" | |
11913 | else | |
11914 | CXXFLAGS="-g" | |
11915 | fi | |
11916 | else | |
11917 | if test "$GXX" = yes; then | |
11918 | CXXFLAGS="-O2" | |
11919 | else | |
11920 | CXXFLAGS= | |
11921 | fi | |
11922 | fi | |
11923 | for ac_declaration in \ | |
ac1cb8d3 | 11924 | '' \ |
a848cd7e SC |
11925 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11926 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11927 | 'extern "C" void exit (int) throw ();' \ | |
11928 | 'extern "C" void exit (int);' \ | |
11929 | 'void exit (int);' | |
11930 | do | |
11931 | cat >conftest.$ac_ext <<_ACEOF | |
11932 | /* confdefs.h. */ | |
11933 | _ACEOF | |
11934 | cat confdefs.h >>conftest.$ac_ext | |
11935 | cat >>conftest.$ac_ext <<_ACEOF | |
11936 | /* end confdefs.h. */ | |
de59c161 | 11937 | $ac_declaration |
ac1cb8d3 | 11938 | #include <stdlib.h> |
a848cd7e SC |
11939 | int |
11940 | main () | |
11941 | { | |
11942 | exit (42); | |
11943 | ; | |
11944 | return 0; | |
11945 | } | |
11946 | _ACEOF | |
11947 | rm -f conftest.$ac_objext | |
11948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11949 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11950 | ac_status=$? |
ac1cb8d3 VS |
11951 | grep -v '^ *+' conftest.er1 >conftest.err |
11952 | rm -f conftest.er1 | |
11953 | cat conftest.err >&5 | |
a848cd7e SC |
11954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11955 | (exit $ac_status); } && | |
04840eaa VS |
11956 | { ac_try='test -z "$ac_cxx_werror_flag" |
11957 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11959 | (eval $ac_try) 2>&5 | |
11960 | ac_status=$? | |
11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11962 | (exit $ac_status); }; } && | |
11963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11965 | (eval $ac_try) 2>&5 | |
11966 | ac_status=$? | |
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11968 | (exit $ac_status); }; }; then | |
11969 | : | |
11970 | else | |
11971 | echo "$as_me: failed program was:" >&5 | |
11972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11973 | ||
11974 | continue | |
11975 | fi | |
ac1cb8d3 | 11976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11977 | cat >conftest.$ac_ext <<_ACEOF |
11978 | /* confdefs.h. */ | |
11979 | _ACEOF | |
11980 | cat confdefs.h >>conftest.$ac_ext | |
11981 | cat >>conftest.$ac_ext <<_ACEOF | |
11982 | /* end confdefs.h. */ | |
11983 | $ac_declaration | |
11984 | int | |
11985 | main () | |
11986 | { | |
11987 | exit (42); | |
11988 | ; | |
11989 | return 0; | |
11990 | } | |
11991 | _ACEOF | |
11992 | rm -f conftest.$ac_objext | |
11993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11995 | ac_status=$? |
ac1cb8d3 VS |
11996 | grep -v '^ *+' conftest.er1 >conftest.err |
11997 | rm -f conftest.er1 | |
11998 | cat conftest.err >&5 | |
a848cd7e SC |
11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12000 | (exit $ac_status); } && | |
04840eaa VS |
12001 | { ac_try='test -z "$ac_cxx_werror_flag" |
12002 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12004 | (eval $ac_try) 2>&5 | |
12005 | ac_status=$? | |
12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12007 | (exit $ac_status); }; } && | |
12008 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12010 | (eval $ac_try) 2>&5 | |
12011 | ac_status=$? | |
12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12013 | (exit $ac_status); }; }; then | |
12014 | break | |
12015 | else | |
12016 | echo "$as_me: failed program was:" >&5 | |
12017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12018 | ||
12019 | fi | |
ac1cb8d3 | 12020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12021 | done |
12022 | rm -f conftest* | |
12023 | if test -n "$ac_declaration"; then | |
12024 | echo '#ifdef __cplusplus' >>confdefs.h | |
12025 | echo $ac_declaration >>confdefs.h | |
12026 | echo '#endif' >>confdefs.h | |
12027 | fi | |
12028 | ||
12029 | ac_ext=cc | |
12030 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12031 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12032 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12033 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12034 | ||
12035 | ||
12036 | ac_ext=c | |
12037 | ac_cpp='$CPP $CPPFLAGS' | |
12038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12041 | ||
12042 | ||
a848cd7e SC |
12043 | if test -n "$ac_tool_prefix"; then |
12044 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12045 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12046 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12048 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12050 | else | |
12051 | if test -n "$RANLIB"; then | |
12052 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12053 | else | |
12054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12055 | for as_dir in $PATH | |
12056 | do | |
12057 | IFS=$as_save_IFS | |
12058 | test -z "$as_dir" && as_dir=. | |
12059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12061 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12063 | break 2 | |
12064 | fi | |
12065 | done | |
12066 | done | |
12067 | ||
12068 | fi | |
12069 | fi | |
12070 | RANLIB=$ac_cv_prog_RANLIB | |
12071 | if test -n "$RANLIB"; then | |
12072 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12073 | echo "${ECHO_T}$RANLIB" >&6 | |
12074 | else | |
12075 | echo "$as_me:$LINENO: result: no" >&5 | |
12076 | echo "${ECHO_T}no" >&6 | |
12077 | fi | |
12078 | ||
12079 | fi | |
12080 | if test -z "$ac_cv_prog_RANLIB"; then | |
12081 | ac_ct_RANLIB=$RANLIB | |
12082 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12083 | set dummy ranlib; ac_word=$2 | |
12084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12086 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12088 | else | |
12089 | if test -n "$ac_ct_RANLIB"; then | |
12090 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12091 | else | |
12092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12093 | for as_dir in $PATH | |
12094 | do | |
12095 | IFS=$as_save_IFS | |
12096 | test -z "$as_dir" && as_dir=. | |
12097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12099 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12101 | break 2 | |
12102 | fi | |
12103 | done | |
12104 | done | |
12105 | ||
12106 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12107 | fi | |
12108 | fi | |
12109 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12110 | if test -n "$ac_ct_RANLIB"; then | |
12111 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12112 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12113 | else | |
12114 | echo "$as_me:$LINENO: result: no" >&5 | |
12115 | echo "${ECHO_T}no" >&6 | |
12116 | fi | |
12117 | ||
12118 | RANLIB=$ac_ct_RANLIB | |
12119 | else | |
12120 | RANLIB="$ac_cv_prog_RANLIB" | |
12121 | fi | |
12122 | ||
12123 | ||
12124 | # Extract the first word of "ar", so it can be a program name with args. | |
12125 | set dummy ar; ac_word=$2 | |
12126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12128 | if test "${ac_cv_prog_AR+set}" = set; then | |
12129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12130 | else | |
12131 | if test -n "$AR"; then | |
12132 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12133 | else | |
12134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12135 | for as_dir in $PATH | |
12136 | do | |
12137 | IFS=$as_save_IFS | |
12138 | test -z "$as_dir" && as_dir=. | |
12139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12141 | ac_cv_prog_AR="ar" | |
12142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12143 | break 2 | |
12144 | fi | |
12145 | done | |
12146 | done | |
12147 | ||
12148 | fi | |
12149 | fi | |
12150 | AR=$ac_cv_prog_AR | |
12151 | if test -n "$AR"; then | |
12152 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12153 | echo "${ECHO_T}$AR" >&6 | |
12154 | else | |
12155 | echo "$as_me:$LINENO: result: no" >&5 | |
12156 | echo "${ECHO_T}no" >&6 | |
12157 | fi | |
12158 | ||
12159 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12160 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12161 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12162 | { (exit 1); exit 1; }; } |
12163 | fi | |
12164 | ||
12165 | # Find a good install program. We prefer a C program (faster), | |
12166 | # so one script is as good as another. But avoid the broken or | |
12167 | # incompatible versions: | |
12168 | # SysV /etc/install, /usr/sbin/install | |
12169 | # SunOS /usr/etc/install | |
12170 | # IRIX /sbin/install | |
12171 | # AIX /bin/install | |
12172 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12173 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12174 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12175 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12176 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12177 | # ./install, which can be erroneously created by make from ./install.sh. |
12178 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12179 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12180 | if test -z "$INSTALL"; then | |
12181 | if test "${ac_cv_path_install+set}" = set; then | |
12182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12183 | else | |
12184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12185 | for as_dir in $PATH | |
12186 | do | |
12187 | IFS=$as_save_IFS | |
12188 | test -z "$as_dir" && as_dir=. | |
12189 | # Account for people who put trailing slashes in PATH elements. | |
12190 | case $as_dir/ in | |
12191 | ./ | .// | /cC/* | \ | |
12192 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12193 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12194 | /usr/ucb/* ) ;; |
12195 | *) | |
12196 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12197 | # Don't use installbsd from OSF since it installs stuff as root | |
12198 | # by default. | |
12199 | for ac_prog in ginstall scoinst install; do | |
12200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12201 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12202 | if test $ac_prog = install && | |
12203 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12204 | # AIX install. It has an incompatible calling convention. | |
12205 | : | |
12206 | elif test $ac_prog = install && | |
12207 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12208 | # program-specific install script used by HP pwplus--don't use. | |
12209 | : | |
12210 | else | |
12211 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12212 | break 3 | |
12213 | fi | |
12214 | fi | |
a848cd7e SC |
12215 | done |
12216 | done | |
12217 | ;; | |
12218 | esac | |
12219 | done | |
12220 | ||
12221 | ||
12222 | fi | |
12223 | if test "${ac_cv_path_install+set}" = set; then | |
12224 | INSTALL=$ac_cv_path_install | |
12225 | else | |
12226 | # As a last resort, use the slow shell script. We don't cache a | |
12227 | # path for INSTALL within a source directory, because that will | |
12228 | # break other packages using the cache if that directory is | |
12229 | # removed, or if the path is relative. | |
12230 | INSTALL=$ac_install_sh | |
12231 | fi | |
12232 | fi | |
12233 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12234 | echo "${ECHO_T}$INSTALL" >&6 | |
12235 | ||
12236 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12237 | # It thinks the first close brace ends the variable substitution. | |
12238 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12239 | ||
12240 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12241 | ||
12242 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12243 | ||
12244 | ||
12245 | case ${INSTALL} in | |
12246 | /* ) # Absolute | |
12247 | ;; | |
12248 | ?:* ) # Drive letter, considered as absolute. | |
12249 | ;; | |
12250 | *) | |
12251 | INSTALL=`pwd`/${INSTALL} ;; | |
12252 | esac | |
12253 | ||
a848cd7e SC |
12254 | |
12255 | case "${host}" in | |
12256 | ||
12257 | powerpc-*-darwin* ) | |
12258 | INSTALL_PROGRAM="cp -fp" | |
12259 | INSTALL_DATA="cp -fp" | |
12260 | ;; | |
12261 | *) | |
12262 | ;; | |
12263 | esac | |
12264 | ||
12265 | # Extract the first word of "strip", so it can be a program name with args. | |
12266 | set dummy strip; ac_word=$2 | |
12267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12269 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12271 | else | |
12272 | if test -n "$STRIP"; then | |
12273 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12274 | else | |
12275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12276 | for as_dir in $PATH | |
12277 | do | |
12278 | IFS=$as_save_IFS | |
12279 | test -z "$as_dir" && as_dir=. | |
12280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12282 | ac_cv_prog_STRIP="strip" | |
12283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12284 | break 2 | |
12285 | fi | |
12286 | done | |
12287 | done | |
12288 | ||
12289 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12290 | fi | |
12291 | fi | |
12292 | STRIP=$ac_cv_prog_STRIP | |
12293 | if test -n "$STRIP"; then | |
12294 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12295 | echo "${ECHO_T}$STRIP" >&6 | |
12296 | else | |
12297 | echo "$as_me:$LINENO: result: no" >&5 | |
12298 | echo "${ECHO_T}no" >&6 | |
12299 | fi | |
12300 | ||
12301 | ||
12302 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12303 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12304 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12306 | else | |
12307 | ||
12308 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12309 | egrep -s GNU > /dev/null); then | |
12310 | wx_cv_prog_makeisgnu="yes" | |
12311 | else | |
12312 | wx_cv_prog_makeisgnu="no" | |
12313 | fi | |
12314 | ||
12315 | fi | |
12316 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12317 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12318 | ||
12319 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12320 | IF_GNU_MAKE="" | |
12321 | else | |
12322 | IF_GNU_MAKE="#" | |
12323 | fi | |
12324 | ||
12325 | ||
12326 | ||
12327 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12328 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12329 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12330 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12332 | else | |
12333 | ||
12334 | cat - << EOF > confMake | |
12335 | check : file | |
12336 | cp \$? \$@ | |
12337 | cp \$? final_file | |
12338 | EOF | |
12339 | ||
12340 | if test ! -d sub ; then | |
12341 | mkdir sub | |
12342 | fi | |
12343 | echo dummy > sub/file | |
12344 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12345 | RESULT=$? | |
12346 | rm -f sub/file check final_file confMake | |
12347 | rmdir sub | |
12348 | if test "$RESULT" = 0; then | |
12349 | wx_cv_prog_makevpath="yes" | |
12350 | else | |
12351 | wx_cv_prog_makevpath="no" | |
12352 | fi | |
12353 | ||
12354 | fi | |
12355 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12356 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12357 | ||
12358 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12359 | { { echo "$as_me:$LINENO: error: | |
12360 | You need a make-utility that is able to use the variable | |
12361 | VPATH correctly. | |
12362 | If your version of make does not support VPATH correctly, | |
12363 | please install GNU-make (possibly as gmake), and start | |
12364 | configure with the following command: | |
12365 | export MAKE=gmake; ./configure for sh-type shells | |
12366 | setenv MAKE gmake; ./configure for csh-type shells | |
12367 | Also please do remember to use gmake in this case every time | |
12368 | you are trying to compile. | |
12369 | " >&5 | |
12370 | echo "$as_me: error: | |
12371 | You need a make-utility that is able to use the variable | |
12372 | VPATH correctly. | |
12373 | If your version of make does not support VPATH correctly, | |
12374 | please install GNU-make (possibly as gmake), and start | |
12375 | configure with the following command: | |
12376 | export MAKE=gmake; ./configure for sh-type shells | |
12377 | setenv MAKE gmake; ./configure for csh-type shells | |
12378 | Also please do remember to use gmake in this case every time | |
12379 | you are trying to compile. | |
12380 | " >&2;} | |
12381 | { (exit 1); exit 1; }; } | |
12382 | fi fi | |
12383 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12384 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12385 | LN_S=$as_ln_s | |
12386 | if test "$LN_S" = "ln -s"; then | |
12387 | echo "$as_me:$LINENO: result: yes" >&5 | |
12388 | echo "${ECHO_T}yes" >&6 | |
12389 | else | |
12390 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12391 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12392 | fi | |
12393 | ||
12394 | ||
12395 | ||
12396 | case "${host}" in | |
12397 | *-pc-os2_emx | *-pc-os2-emx ) | |
12398 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12399 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12400 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12401 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12403 | else | |
12404 | ac_check_lib_save_LIBS=$LIBS | |
12405 | LIBS="-lcExt $LIBS" | |
12406 | cat >conftest.$ac_ext <<_ACEOF | |
12407 | /* confdefs.h. */ | |
12408 | _ACEOF | |
12409 | cat confdefs.h >>conftest.$ac_ext | |
12410 | cat >>conftest.$ac_ext <<_ACEOF | |
12411 | /* end confdefs.h. */ | |
12412 | ||
12413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12414 | #ifdef __cplusplus | |
12415 | extern "C" | |
12416 | #endif | |
12417 | /* We use char because int might match the return type of a gcc2 | |
12418 | builtin and then its argument prototype would still apply. */ | |
12419 | char drand48 (); | |
12420 | int | |
12421 | main () | |
12422 | { | |
12423 | drand48 (); | |
12424 | ; | |
12425 | return 0; | |
12426 | } | |
12427 | _ACEOF | |
12428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12430 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12431 | ac_status=$? |
ac1cb8d3 VS |
12432 | grep -v '^ *+' conftest.er1 >conftest.err |
12433 | rm -f conftest.er1 | |
12434 | cat conftest.err >&5 | |
a848cd7e SC |
12435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12436 | (exit $ac_status); } && | |
04840eaa VS |
12437 | { ac_try='test -z "$ac_c_werror_flag" |
12438 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12440 | (eval $ac_try) 2>&5 | |
12441 | ac_status=$? | |
12442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12443 | (exit $ac_status); }; } && | |
12444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12446 | (eval $ac_try) 2>&5 | |
12447 | ac_status=$? | |
12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12449 | (exit $ac_status); }; }; then | |
12450 | ac_cv_lib_cExt_drand48=yes | |
12451 | else | |
12452 | echo "$as_me: failed program was:" >&5 | |
12453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12454 | ||
12455 | ac_cv_lib_cExt_drand48=no | |
12456 | fi | |
ac1cb8d3 VS |
12457 | rm -f conftest.err conftest.$ac_objext \ |
12458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12459 | LIBS=$ac_check_lib_save_LIBS |
12460 | fi | |
12461 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12462 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12463 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12464 | LIBS="$LIBS -lcExt" | |
12465 | fi | |
12466 | ||
12467 | else | |
12468 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12469 | fi | |
12470 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12471 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12472 | if test "${wx_cv_gccversion+set}" = set; then | |
12473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12474 | else | |
12475 | ||
12476 | cat >conftest.$ac_ext <<_ACEOF | |
12477 | /* confdefs.h. */ | |
12478 | _ACEOF | |
12479 | cat confdefs.h >>conftest.$ac_ext | |
12480 | cat >>conftest.$ac_ext <<_ACEOF | |
12481 | /* end confdefs.h. */ | |
12482 | ||
12483 | int | |
12484 | main () | |
12485 | { | |
12486 | ||
12487 | #if (__GNUC__ < 3) | |
12488 | #error old gcc | |
12489 | #endif | |
12490 | ||
12491 | ; | |
12492 | return 0; | |
12493 | } | |
12494 | _ACEOF | |
12495 | rm -f conftest.$ac_objext | |
12496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12497 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12498 | ac_status=$? |
ac1cb8d3 VS |
12499 | grep -v '^ *+' conftest.er1 >conftest.err |
12500 | rm -f conftest.er1 | |
12501 | cat conftest.err >&5 | |
a848cd7e SC |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12503 | (exit $ac_status); } && | |
04840eaa VS |
12504 | { ac_try='test -z "$ac_c_werror_flag" |
12505 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12507 | (eval $ac_try) 2>&5 | |
12508 | ac_status=$? | |
12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12510 | (exit $ac_status); }; } && | |
12511 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12513 | (eval $ac_try) 2>&5 | |
12514 | ac_status=$? | |
12515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12516 | (exit $ac_status); }; }; then | |
12517 | ||
12518 | cat >conftest.$ac_ext <<_ACEOF | |
12519 | /* confdefs.h. */ | |
12520 | _ACEOF | |
12521 | cat confdefs.h >>conftest.$ac_ext | |
12522 | cat >>conftest.$ac_ext <<_ACEOF | |
12523 | /* end confdefs.h. */ | |
12524 | ||
12525 | int | |
12526 | main () | |
12527 | { | |
12528 | ||
12529 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12530 | #error intermediate gcc | |
12531 | #endif | |
12532 | ||
12533 | ; | |
12534 | return 0; | |
12535 | } | |
12536 | _ACEOF | |
12537 | rm -f conftest.$ac_objext | |
12538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12539 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12540 | ac_status=$? |
ac1cb8d3 VS |
12541 | grep -v '^ *+' conftest.er1 >conftest.err |
12542 | rm -f conftest.er1 | |
12543 | cat conftest.err >&5 | |
a848cd7e SC |
12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12545 | (exit $ac_status); } && | |
04840eaa VS |
12546 | { ac_try='test -z "$ac_c_werror_flag" |
12547 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12549 | (eval $ac_try) 2>&5 | |
12550 | ac_status=$? | |
12551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12552 | (exit $ac_status); }; } && | |
12553 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12555 | (eval $ac_try) 2>&5 | |
12556 | ac_status=$? | |
12557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12558 | (exit $ac_status); }; }; then | |
12559 | ||
12560 | wx_cv_gccversion=Innotek | |
12561 | ||
12562 | else | |
12563 | echo "$as_me: failed program was:" >&5 | |
12564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12565 | ||
12566 | ||
12567 | wx_cv_gccversion=3 | |
12568 | ||
12569 | ||
12570 | fi | |
ac1cb8d3 | 12571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12572 | |
12573 | else | |
12574 | echo "$as_me: failed program was:" >&5 | |
12575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12576 | ||
12577 | ||
12578 | wx_cv_gccversion=2 | |
12579 | ||
12580 | ||
12581 | fi | |
ac1cb8d3 | 12582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12583 | |
12584 | fi | |
12585 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12586 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12587 | if test "$wx_cv_gccversion" = "2"; then | |
12588 | LIBS="$LIBS -lstdcpp" | |
12589 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12590 | else | |
12591 | if test "$wx_cv_gccversion" = "3"; then | |
12592 | LIBS="$LIBS -lstdcxx" | |
12593 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12594 | else | |
12595 | LIBS="$LIBS -lstdc++" | |
12596 | fi | |
12597 | fi | |
12598 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12599 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12600 | fi |
12601 | ;; | |
12602 | *) | |
12603 | ||
12604 | ||
12605 | ||
12606 | ac_ext=cc | |
12607 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12611 | ||
12612 | ||
12613 | ||
12614 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12615 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12616 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12618 | else | |
12619 | ||
12620 | cat >conftest.$ac_ext <<_ACEOF | |
12621 | /* confdefs.h. */ | |
12622 | _ACEOF | |
12623 | cat confdefs.h >>conftest.$ac_ext | |
12624 | cat >>conftest.$ac_ext <<_ACEOF | |
12625 | /* end confdefs.h. */ | |
12626 | ||
12627 | #include <string.h> | |
12628 | ||
12629 | int | |
12630 | main () | |
12631 | { | |
12632 | ||
12633 | strcasecmp("foo", "bar"); | |
12634 | ||
12635 | ; | |
12636 | return 0; | |
12637 | } | |
12638 | _ACEOF | |
12639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12642 | ac_status=$? |
ac1cb8d3 VS |
12643 | grep -v '^ *+' conftest.er1 >conftest.err |
12644 | rm -f conftest.er1 | |
12645 | cat conftest.err >&5 | |
a848cd7e SC |
12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12647 | (exit $ac_status); } && | |
04840eaa VS |
12648 | { ac_try='test -z "$ac_cxx_werror_flag" |
12649 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12651 | (eval $ac_try) 2>&5 | |
12652 | ac_status=$? | |
12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12654 | (exit $ac_status); }; } && | |
12655 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12657 | (eval $ac_try) 2>&5 | |
12658 | ac_status=$? | |
12659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12660 | (exit $ac_status); }; }; then | |
12661 | ac_cv_string_strcasecmp=yes | |
12662 | else | |
12663 | echo "$as_me: failed program was:" >&5 | |
12664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12665 | ||
12666 | ac_cv_string_strcasecmp=no | |
12667 | ||
12668 | fi | |
ac1cb8d3 VS |
12669 | rm -f conftest.err conftest.$ac_objext \ |
12670 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12671 | |
12672 | fi | |
12673 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12674 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12675 | ||
12676 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12677 | cat >>confdefs.h <<\_ACEOF | |
12678 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12679 | _ACEOF | |
12680 | ||
12681 | else | |
12682 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12683 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12684 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12686 | else | |
12687 | ||
12688 | cat >conftest.$ac_ext <<_ACEOF | |
12689 | /* confdefs.h. */ | |
12690 | _ACEOF | |
12691 | cat confdefs.h >>conftest.$ac_ext | |
12692 | cat >>conftest.$ac_ext <<_ACEOF | |
12693 | /* end confdefs.h. */ | |
12694 | ||
12695 | #include <strings.h> | |
12696 | ||
12697 | int | |
12698 | main () | |
12699 | { | |
12700 | ||
12701 | strcasecmp("foo", "bar"); | |
12702 | ||
12703 | ; | |
12704 | return 0; | |
12705 | } | |
12706 | _ACEOF | |
12707 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12709 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12710 | ac_status=$? |
ac1cb8d3 VS |
12711 | grep -v '^ *+' conftest.er1 >conftest.err |
12712 | rm -f conftest.er1 | |
12713 | cat conftest.err >&5 | |
a848cd7e SC |
12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12715 | (exit $ac_status); } && | |
04840eaa VS |
12716 | { ac_try='test -z "$ac_cxx_werror_flag" |
12717 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12719 | (eval $ac_try) 2>&5 | |
12720 | ac_status=$? | |
12721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12722 | (exit $ac_status); }; } && | |
12723 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12725 | (eval $ac_try) 2>&5 | |
12726 | ac_status=$? | |
12727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12728 | (exit $ac_status); }; }; then | |
12729 | ac_cv_strings_strcasecmp=yes | |
12730 | else | |
12731 | echo "$as_me: failed program was:" >&5 | |
12732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12733 | ||
12734 | ac_cv_strings_strcasecmp=no | |
12735 | ||
12736 | fi | |
ac1cb8d3 VS |
12737 | rm -f conftest.err conftest.$ac_objext \ |
12738 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12739 | |
12740 | fi | |
12741 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12742 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12743 | ||
0c3c69fc | 12744 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12745 | cat >>confdefs.h <<\_ACEOF |
12746 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12747 | _ACEOF | |
12748 | ||
12749 | else | |
12750 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12751 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12752 | { (exit 1); exit 1; }; } | |
12753 | fi | |
12754 | fi | |
12755 | ||
12756 | ac_ext=c | |
12757 | ac_cpp='$CPP $CPPFLAGS' | |
12758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12761 | ||
12762 | ;; | |
12763 | esac | |
12764 | ||
12765 | ||
12766 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12767 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12768 | if test "${ac_cv_header_stdc+set}" = set; then | |
12769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12770 | else | |
12771 | cat >conftest.$ac_ext <<_ACEOF | |
12772 | /* confdefs.h. */ | |
12773 | _ACEOF | |
12774 | cat confdefs.h >>conftest.$ac_ext | |
12775 | cat >>conftest.$ac_ext <<_ACEOF | |
12776 | /* end confdefs.h. */ | |
12777 | #include <stdlib.h> | |
12778 | #include <stdarg.h> | |
12779 | #include <string.h> | |
12780 | #include <float.h> | |
12781 | ||
12782 | int | |
12783 | main () | |
12784 | { | |
12785 | ||
12786 | ; | |
12787 | return 0; | |
12788 | } | |
12789 | _ACEOF | |
12790 | rm -f conftest.$ac_objext | |
12791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12792 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12793 | ac_status=$? |
ac1cb8d3 VS |
12794 | grep -v '^ *+' conftest.er1 >conftest.err |
12795 | rm -f conftest.er1 | |
12796 | cat conftest.err >&5 | |
a848cd7e SC |
12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12798 | (exit $ac_status); } && | |
04840eaa VS |
12799 | { ac_try='test -z "$ac_c_werror_flag" |
12800 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12802 | (eval $ac_try) 2>&5 | |
12803 | ac_status=$? | |
12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12805 | (exit $ac_status); }; } && | |
12806 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12808 | (eval $ac_try) 2>&5 | |
12809 | ac_status=$? | |
12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12811 | (exit $ac_status); }; }; then | |
12812 | ac_cv_header_stdc=yes | |
12813 | else | |
12814 | echo "$as_me: failed program was:" >&5 | |
12815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12816 | ||
12817 | ac_cv_header_stdc=no | |
12818 | fi | |
ac1cb8d3 | 12819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12820 | |
12821 | if test $ac_cv_header_stdc = yes; then | |
12822 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12823 | cat >conftest.$ac_ext <<_ACEOF | |
12824 | /* confdefs.h. */ | |
12825 | _ACEOF | |
12826 | cat confdefs.h >>conftest.$ac_ext | |
12827 | cat >>conftest.$ac_ext <<_ACEOF | |
12828 | /* end confdefs.h. */ | |
12829 | #include <string.h> | |
12830 | ||
12831 | _ACEOF | |
12832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12833 | $EGREP "memchr" >/dev/null 2>&1; then | |
12834 | : | |
12835 | else | |
12836 | ac_cv_header_stdc=no | |
12837 | fi | |
12838 | rm -f conftest* | |
12839 | ||
12840 | fi | |
12841 | ||
12842 | if test $ac_cv_header_stdc = yes; then | |
12843 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12844 | cat >conftest.$ac_ext <<_ACEOF | |
12845 | /* confdefs.h. */ | |
12846 | _ACEOF | |
12847 | cat confdefs.h >>conftest.$ac_ext | |
12848 | cat >>conftest.$ac_ext <<_ACEOF | |
12849 | /* end confdefs.h. */ | |
12850 | #include <stdlib.h> | |
12851 | ||
12852 | _ACEOF | |
12853 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12854 | $EGREP "free" >/dev/null 2>&1; then | |
12855 | : | |
12856 | else | |
12857 | ac_cv_header_stdc=no | |
12858 | fi | |
12859 | rm -f conftest* | |
12860 | ||
12861 | fi | |
12862 | ||
12863 | if test $ac_cv_header_stdc = yes; then | |
12864 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12865 | if test "$cross_compiling" = yes; then | |
12866 | : | |
12867 | else | |
12868 | cat >conftest.$ac_ext <<_ACEOF | |
12869 | /* confdefs.h. */ | |
12870 | _ACEOF | |
12871 | cat confdefs.h >>conftest.$ac_ext | |
12872 | cat >>conftest.$ac_ext <<_ACEOF | |
12873 | /* end confdefs.h. */ | |
12874 | #include <ctype.h> | |
12875 | #if ((' ' & 0x0FF) == 0x020) | |
12876 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12877 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12878 | #else | |
12879 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12880 | (('a' <= (c) && (c) <= 'i') \ |
12881 | || ('j' <= (c) && (c) <= 'r') \ | |
12882 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12883 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12884 | #endif | |
12885 | ||
12886 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12887 | int | |
12888 | main () | |
12889 | { | |
12890 | int i; | |
12891 | for (i = 0; i < 256; i++) | |
12892 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12893 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12894 | exit(2); |
12895 | exit (0); | |
12896 | } | |
12897 | _ACEOF | |
12898 | rm -f conftest$ac_exeext | |
12899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12900 | (eval $ac_link) 2>&5 | |
12901 | ac_status=$? | |
12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12905 | (eval $ac_try) 2>&5 | |
12906 | ac_status=$? | |
12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12908 | (exit $ac_status); }; }; then | |
12909 | : | |
12910 | else | |
12911 | echo "$as_me: program exited with status $ac_status" >&5 | |
12912 | echo "$as_me: failed program was:" >&5 | |
12913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12914 | ||
12915 | ( exit $ac_status ) | |
12916 | ac_cv_header_stdc=no | |
12917 | fi | |
ac1cb8d3 | 12918 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12919 | fi |
12920 | fi | |
12921 | fi | |
12922 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12923 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12924 | if test $ac_cv_header_stdc = yes; then | |
12925 | ||
12926 | cat >>confdefs.h <<\_ACEOF | |
12927 | #define STDC_HEADERS 1 | |
12928 | _ACEOF | |
12929 | ||
12930 | fi | |
12931 | ||
12932 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12933 | ||
12934 | ||
12935 | ||
12936 | ||
12937 | ||
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12943 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12944 | do |
12945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12946 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12947 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12948 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12950 | else | |
12951 | cat >conftest.$ac_ext <<_ACEOF | |
12952 | /* confdefs.h. */ | |
12953 | _ACEOF | |
12954 | cat confdefs.h >>conftest.$ac_ext | |
12955 | cat >>conftest.$ac_ext <<_ACEOF | |
12956 | /* end confdefs.h. */ | |
12957 | $ac_includes_default | |
12958 | ||
12959 | #include <$ac_header> | |
12960 | _ACEOF | |
12961 | rm -f conftest.$ac_objext | |
12962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12963 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12964 | ac_status=$? |
ac1cb8d3 VS |
12965 | grep -v '^ *+' conftest.er1 >conftest.err |
12966 | rm -f conftest.er1 | |
12967 | cat conftest.err >&5 | |
a848cd7e SC |
12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12969 | (exit $ac_status); } && | |
04840eaa VS |
12970 | { ac_try='test -z "$ac_c_werror_flag" |
12971 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12973 | (eval $ac_try) 2>&5 | |
12974 | ac_status=$? | |
12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12976 | (exit $ac_status); }; } && | |
12977 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12979 | (eval $ac_try) 2>&5 | |
12980 | ac_status=$? | |
12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12982 | (exit $ac_status); }; }; then | |
12983 | eval "$as_ac_Header=yes" | |
12984 | else | |
12985 | echo "$as_me: failed program was:" >&5 | |
12986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12987 | ||
12988 | eval "$as_ac_Header=no" | |
12989 | fi | |
ac1cb8d3 | 12990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12991 | fi |
12992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12993 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12994 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12995 | cat >>confdefs.h <<_ACEOF | |
12996 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12997 | _ACEOF | |
12998 | ||
12999 | fi | |
13000 | ||
13001 | done | |
13002 | ||
13003 | ||
13004 | ||
13005 | for ac_header in stdlib.h | |
13006 | do | |
13007 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13009 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13013 | fi | |
13014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13016 | else | |
13017 | # Is the header compilable? | |
13018 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13019 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13020 | cat >conftest.$ac_ext <<_ACEOF | |
13021 | /* confdefs.h. */ | |
13022 | _ACEOF | |
13023 | cat confdefs.h >>conftest.$ac_ext | |
13024 | cat >>conftest.$ac_ext <<_ACEOF | |
13025 | /* end confdefs.h. */ | |
13026 | $ac_includes_default | |
13027 | #include <$ac_header> | |
13028 | _ACEOF | |
13029 | rm -f conftest.$ac_objext | |
13030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13031 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13032 | ac_status=$? |
ac1cb8d3 VS |
13033 | grep -v '^ *+' conftest.er1 >conftest.err |
13034 | rm -f conftest.er1 | |
13035 | cat conftest.err >&5 | |
a848cd7e SC |
13036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13037 | (exit $ac_status); } && | |
04840eaa VS |
13038 | { ac_try='test -z "$ac_c_werror_flag" |
13039 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13041 | (eval $ac_try) 2>&5 | |
13042 | ac_status=$? | |
13043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13044 | (exit $ac_status); }; } && | |
13045 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13047 | (eval $ac_try) 2>&5 | |
13048 | ac_status=$? | |
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13050 | (exit $ac_status); }; }; then | |
13051 | ac_header_compiler=yes | |
13052 | else | |
13053 | echo "$as_me: failed program was:" >&5 | |
13054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13055 | ||
13056 | ac_header_compiler=no | |
13057 | fi | |
ac1cb8d3 | 13058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13059 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13060 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13061 | ||
13062 | # Is the header present? | |
13063 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13064 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13065 | cat >conftest.$ac_ext <<_ACEOF | |
13066 | /* confdefs.h. */ | |
13067 | _ACEOF | |
13068 | cat confdefs.h >>conftest.$ac_ext | |
13069 | cat >>conftest.$ac_ext <<_ACEOF | |
13070 | /* end confdefs.h. */ | |
13071 | #include <$ac_header> | |
13072 | _ACEOF | |
13073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13075 | ac_status=$? | |
13076 | grep -v '^ *+' conftest.er1 >conftest.err | |
13077 | rm -f conftest.er1 | |
13078 | cat conftest.err >&5 | |
13079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13080 | (exit $ac_status); } >/dev/null; then | |
13081 | if test -s conftest.err; then | |
13082 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13084 | else |
13085 | ac_cpp_err= | |
13086 | fi | |
13087 | else | |
13088 | ac_cpp_err=yes | |
13089 | fi | |
13090 | if test -z "$ac_cpp_err"; then | |
13091 | ac_header_preproc=yes | |
13092 | else | |
13093 | echo "$as_me: failed program was:" >&5 | |
13094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13095 | ||
13096 | ac_header_preproc=no | |
13097 | fi | |
13098 | rm -f conftest.err conftest.$ac_ext | |
13099 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13100 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13101 | ||
13102 | # So? What about this header? | |
ac1cb8d3 VS |
13103 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13104 | yes:no: ) | |
a848cd7e SC |
13105 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13106 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13108 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13109 | ac_header_preproc=yes | |
a848cd7e | 13110 | ;; |
ac1cb8d3 | 13111 | no:yes:* ) |
a848cd7e SC |
13112 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13113 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13114 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13115 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13116 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13117 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13118 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13119 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13120 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13121 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13122 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13123 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13124 | ( |
13125 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13126 | ## ----------------------------------------- ## |
13127 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13128 | ## ----------------------------------------- ## | |
a848cd7e SC |
13129 | _ASBOX |
13130 | ) | | |
13131 | sed "s/^/$as_me: WARNING: /" >&2 | |
13132 | ;; | |
13133 | esac | |
13134 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13138 | else | |
ac1cb8d3 | 13139 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13140 | fi |
13141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13143 | ||
13144 | fi | |
13145 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13146 | cat >>confdefs.h <<_ACEOF | |
13147 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13148 | _ACEOF | |
13149 | ||
13150 | fi | |
13151 | ||
13152 | done | |
13153 | ||
13154 | ||
13155 | for ac_header in malloc.h | |
13156 | do | |
13157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13159 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13163 | fi | |
13164 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13165 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13166 | else | |
13167 | # Is the header compilable? | |
13168 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13169 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13170 | cat >conftest.$ac_ext <<_ACEOF | |
13171 | /* confdefs.h. */ | |
13172 | _ACEOF | |
13173 | cat confdefs.h >>conftest.$ac_ext | |
13174 | cat >>conftest.$ac_ext <<_ACEOF | |
13175 | /* end confdefs.h. */ | |
13176 | $ac_includes_default | |
13177 | #include <$ac_header> | |
13178 | _ACEOF | |
13179 | rm -f conftest.$ac_objext | |
13180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13181 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13182 | ac_status=$? |
ac1cb8d3 VS |
13183 | grep -v '^ *+' conftest.er1 >conftest.err |
13184 | rm -f conftest.er1 | |
13185 | cat conftest.err >&5 | |
a848cd7e SC |
13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13187 | (exit $ac_status); } && | |
04840eaa VS |
13188 | { ac_try='test -z "$ac_c_werror_flag" |
13189 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13191 | (eval $ac_try) 2>&5 | |
13192 | ac_status=$? | |
13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13194 | (exit $ac_status); }; } && | |
13195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13197 | (eval $ac_try) 2>&5 | |
13198 | ac_status=$? | |
13199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13200 | (exit $ac_status); }; }; then | |
13201 | ac_header_compiler=yes | |
13202 | else | |
13203 | echo "$as_me: failed program was:" >&5 | |
13204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13205 | ||
13206 | ac_header_compiler=no | |
13207 | fi | |
ac1cb8d3 | 13208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13210 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13211 | ||
13212 | # Is the header present? | |
13213 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13214 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13215 | cat >conftest.$ac_ext <<_ACEOF | |
13216 | /* confdefs.h. */ | |
13217 | _ACEOF | |
13218 | cat confdefs.h >>conftest.$ac_ext | |
13219 | cat >>conftest.$ac_ext <<_ACEOF | |
13220 | /* end confdefs.h. */ | |
13221 | #include <$ac_header> | |
13222 | _ACEOF | |
13223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13225 | ac_status=$? | |
13226 | grep -v '^ *+' conftest.er1 >conftest.err | |
13227 | rm -f conftest.er1 | |
13228 | cat conftest.err >&5 | |
13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13230 | (exit $ac_status); } >/dev/null; then | |
13231 | if test -s conftest.err; then | |
13232 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13234 | else |
13235 | ac_cpp_err= | |
13236 | fi | |
13237 | else | |
13238 | ac_cpp_err=yes | |
13239 | fi | |
13240 | if test -z "$ac_cpp_err"; then | |
13241 | ac_header_preproc=yes | |
13242 | else | |
13243 | echo "$as_me: failed program was:" >&5 | |
13244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13245 | ||
13246 | ac_header_preproc=no | |
13247 | fi | |
13248 | rm -f conftest.err conftest.$ac_ext | |
13249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13250 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13251 | ||
13252 | # So? What about this header? | |
ac1cb8d3 VS |
13253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13254 | yes:no: ) | |
a848cd7e SC |
13255 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13256 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13258 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13259 | ac_header_preproc=yes | |
a848cd7e | 13260 | ;; |
ac1cb8d3 | 13261 | no:yes:* ) |
a848cd7e SC |
13262 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13263 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13264 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13265 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13266 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13267 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13268 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13269 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13270 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13271 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13272 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13273 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13274 | ( |
13275 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13276 | ## ----------------------------------------- ## |
13277 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13278 | ## ----------------------------------------- ## | |
a848cd7e SC |
13279 | _ASBOX |
13280 | ) | | |
13281 | sed "s/^/$as_me: WARNING: /" >&2 | |
13282 | ;; | |
13283 | esac | |
13284 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13285 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13288 | else | |
ac1cb8d3 | 13289 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13290 | fi |
13291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13292 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13293 | ||
13294 | fi | |
13295 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13296 | cat >>confdefs.h <<_ACEOF | |
13297 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13298 | _ACEOF | |
13299 | ||
13300 | fi | |
13301 | ||
13302 | done | |
13303 | ||
13304 | ||
13305 | for ac_header in unistd.h | |
13306 | do | |
13307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13313 | fi | |
13314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13316 | else | |
13317 | # Is the header compilable? | |
13318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13320 | cat >conftest.$ac_ext <<_ACEOF | |
13321 | /* confdefs.h. */ | |
13322 | _ACEOF | |
13323 | cat confdefs.h >>conftest.$ac_ext | |
13324 | cat >>conftest.$ac_ext <<_ACEOF | |
13325 | /* end confdefs.h. */ | |
13326 | $ac_includes_default | |
13327 | #include <$ac_header> | |
13328 | _ACEOF | |
13329 | rm -f conftest.$ac_objext | |
13330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13331 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13332 | ac_status=$? |
ac1cb8d3 VS |
13333 | grep -v '^ *+' conftest.er1 >conftest.err |
13334 | rm -f conftest.er1 | |
13335 | cat conftest.err >&5 | |
a848cd7e SC |
13336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13337 | (exit $ac_status); } && | |
04840eaa VS |
13338 | { ac_try='test -z "$ac_c_werror_flag" |
13339 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13341 | (eval $ac_try) 2>&5 | |
13342 | ac_status=$? | |
13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13344 | (exit $ac_status); }; } && | |
13345 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13347 | (eval $ac_try) 2>&5 | |
13348 | ac_status=$? | |
13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13350 | (exit $ac_status); }; }; then | |
13351 | ac_header_compiler=yes | |
13352 | else | |
13353 | echo "$as_me: failed program was:" >&5 | |
13354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13355 | ||
13356 | ac_header_compiler=no | |
13357 | fi | |
ac1cb8d3 | 13358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13360 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13361 | ||
13362 | # Is the header present? | |
13363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13365 | cat >conftest.$ac_ext <<_ACEOF | |
13366 | /* confdefs.h. */ | |
13367 | _ACEOF | |
13368 | cat confdefs.h >>conftest.$ac_ext | |
13369 | cat >>conftest.$ac_ext <<_ACEOF | |
13370 | /* end confdefs.h. */ | |
13371 | #include <$ac_header> | |
13372 | _ACEOF | |
13373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13375 | ac_status=$? | |
13376 | grep -v '^ *+' conftest.er1 >conftest.err | |
13377 | rm -f conftest.er1 | |
13378 | cat conftest.err >&5 | |
13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13380 | (exit $ac_status); } >/dev/null; then | |
13381 | if test -s conftest.err; then | |
13382 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13384 | else |
13385 | ac_cpp_err= | |
13386 | fi | |
13387 | else | |
13388 | ac_cpp_err=yes | |
13389 | fi | |
13390 | if test -z "$ac_cpp_err"; then | |
13391 | ac_header_preproc=yes | |
13392 | else | |
13393 | echo "$as_me: failed program was:" >&5 | |
13394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13395 | ||
13396 | ac_header_preproc=no | |
13397 | fi | |
13398 | rm -f conftest.err conftest.$ac_ext | |
13399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13400 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13401 | ||
13402 | # So? What about this header? | |
ac1cb8d3 VS |
13403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13404 | yes:no: ) | |
a848cd7e SC |
13405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13409 | ac_header_preproc=yes | |
a848cd7e | 13410 | ;; |
ac1cb8d3 | 13411 | no:yes:* ) |
a848cd7e SC |
13412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13424 | ( |
13425 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13426 | ## ----------------------------------------- ## |
13427 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13428 | ## ----------------------------------------- ## | |
a848cd7e SC |
13429 | _ASBOX |
13430 | ) | | |
13431 | sed "s/^/$as_me: WARNING: /" >&2 | |
13432 | ;; | |
13433 | esac | |
13434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13438 | else | |
ac1cb8d3 | 13439 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13440 | fi |
13441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13443 | ||
13444 | fi | |
13445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13446 | cat >>confdefs.h <<_ACEOF | |
13447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13448 | _ACEOF | |
13449 | ||
13450 | fi | |
13451 | ||
13452 | done | |
13453 | ||
13454 | ||
13455 | for ac_header in wchar.h | |
13456 | do | |
13457 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13459 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13461 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13463 | fi | |
13464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13465 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13466 | else | |
13467 | # Is the header compilable? | |
13468 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13469 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13470 | cat >conftest.$ac_ext <<_ACEOF | |
13471 | /* confdefs.h. */ | |
13472 | _ACEOF | |
13473 | cat confdefs.h >>conftest.$ac_ext | |
13474 | cat >>conftest.$ac_ext <<_ACEOF | |
13475 | /* end confdefs.h. */ | |
13476 | $ac_includes_default | |
13477 | #include <$ac_header> | |
13478 | _ACEOF | |
13479 | rm -f conftest.$ac_objext | |
13480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13481 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13482 | ac_status=$? |
ac1cb8d3 VS |
13483 | grep -v '^ *+' conftest.er1 >conftest.err |
13484 | rm -f conftest.er1 | |
13485 | cat conftest.err >&5 | |
a848cd7e SC |
13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13487 | (exit $ac_status); } && | |
04840eaa VS |
13488 | { ac_try='test -z "$ac_c_werror_flag" |
13489 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13491 | (eval $ac_try) 2>&5 | |
13492 | ac_status=$? | |
13493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13494 | (exit $ac_status); }; } && | |
13495 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13497 | (eval $ac_try) 2>&5 | |
13498 | ac_status=$? | |
13499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13500 | (exit $ac_status); }; }; then | |
13501 | ac_header_compiler=yes | |
13502 | else | |
13503 | echo "$as_me: failed program was:" >&5 | |
13504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13505 | ||
13506 | ac_header_compiler=no | |
13507 | fi | |
ac1cb8d3 | 13508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13509 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13510 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13511 | ||
13512 | # Is the header present? | |
13513 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13514 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13515 | cat >conftest.$ac_ext <<_ACEOF | |
13516 | /* confdefs.h. */ | |
13517 | _ACEOF | |
13518 | cat confdefs.h >>conftest.$ac_ext | |
13519 | cat >>conftest.$ac_ext <<_ACEOF | |
13520 | /* end confdefs.h. */ | |
13521 | #include <$ac_header> | |
13522 | _ACEOF | |
13523 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13524 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13525 | ac_status=$? | |
13526 | grep -v '^ *+' conftest.er1 >conftest.err | |
13527 | rm -f conftest.er1 | |
13528 | cat conftest.err >&5 | |
13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13530 | (exit $ac_status); } >/dev/null; then | |
13531 | if test -s conftest.err; then | |
13532 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13533 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13534 | else |
13535 | ac_cpp_err= | |
13536 | fi | |
13537 | else | |
13538 | ac_cpp_err=yes | |
13539 | fi | |
13540 | if test -z "$ac_cpp_err"; then | |
13541 | ac_header_preproc=yes | |
13542 | else | |
13543 | echo "$as_me: failed program was:" >&5 | |
13544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13545 | ||
13546 | ac_header_preproc=no | |
13547 | fi | |
13548 | rm -f conftest.err conftest.$ac_ext | |
13549 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13550 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13551 | ||
13552 | # So? What about this header? | |
ac1cb8d3 VS |
13553 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13554 | yes:no: ) | |
a848cd7e SC |
13555 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13556 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13558 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13559 | ac_header_preproc=yes | |
a848cd7e | 13560 | ;; |
ac1cb8d3 | 13561 | no:yes:* ) |
a848cd7e SC |
13562 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13563 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13564 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13565 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13566 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13567 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13568 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13569 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13570 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13571 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13572 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13573 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13574 | ( |
13575 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13576 | ## ----------------------------------------- ## |
13577 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13578 | ## ----------------------------------------- ## | |
a848cd7e SC |
13579 | _ASBOX |
13580 | ) | | |
13581 | sed "s/^/$as_me: WARNING: /" >&2 | |
13582 | ;; | |
13583 | esac | |
13584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13588 | else | |
ac1cb8d3 | 13589 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13590 | fi |
13591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13593 | ||
13594 | fi | |
13595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13596 | cat >>confdefs.h <<_ACEOF | |
13597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13598 | _ACEOF | |
13599 | ||
13600 | fi | |
13601 | ||
13602 | done | |
13603 | ||
13604 | ||
13605 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13606 | ||
13607 | for ac_header in wcstr.h | |
13608 | do | |
13609 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13611 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13615 | fi | |
13616 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13617 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13618 | else | |
13619 | # Is the header compilable? | |
13620 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13621 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13622 | cat >conftest.$ac_ext <<_ACEOF | |
13623 | /* confdefs.h. */ | |
13624 | _ACEOF | |
13625 | cat confdefs.h >>conftest.$ac_ext | |
13626 | cat >>conftest.$ac_ext <<_ACEOF | |
13627 | /* end confdefs.h. */ | |
13628 | $ac_includes_default | |
13629 | #include <$ac_header> | |
13630 | _ACEOF | |
13631 | rm -f conftest.$ac_objext | |
13632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13633 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13634 | ac_status=$? |
ac1cb8d3 VS |
13635 | grep -v '^ *+' conftest.er1 >conftest.err |
13636 | rm -f conftest.er1 | |
13637 | cat conftest.err >&5 | |
a848cd7e SC |
13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13639 | (exit $ac_status); } && | |
04840eaa VS |
13640 | { ac_try='test -z "$ac_c_werror_flag" |
13641 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13643 | (eval $ac_try) 2>&5 | |
13644 | ac_status=$? | |
13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13646 | (exit $ac_status); }; } && | |
13647 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13649 | (eval $ac_try) 2>&5 | |
13650 | ac_status=$? | |
13651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13652 | (exit $ac_status); }; }; then | |
13653 | ac_header_compiler=yes | |
13654 | else | |
13655 | echo "$as_me: failed program was:" >&5 | |
13656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13657 | ||
13658 | ac_header_compiler=no | |
13659 | fi | |
ac1cb8d3 | 13660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13661 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13662 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13663 | ||
13664 | # Is the header present? | |
13665 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13666 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13667 | cat >conftest.$ac_ext <<_ACEOF | |
13668 | /* confdefs.h. */ | |
13669 | _ACEOF | |
13670 | cat confdefs.h >>conftest.$ac_ext | |
13671 | cat >>conftest.$ac_ext <<_ACEOF | |
13672 | /* end confdefs.h. */ | |
13673 | #include <$ac_header> | |
13674 | _ACEOF | |
13675 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13676 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13677 | ac_status=$? | |
13678 | grep -v '^ *+' conftest.er1 >conftest.err | |
13679 | rm -f conftest.er1 | |
13680 | cat conftest.err >&5 | |
13681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13682 | (exit $ac_status); } >/dev/null; then | |
13683 | if test -s conftest.err; then | |
13684 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13685 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13686 | else |
13687 | ac_cpp_err= | |
13688 | fi | |
13689 | else | |
13690 | ac_cpp_err=yes | |
13691 | fi | |
13692 | if test -z "$ac_cpp_err"; then | |
13693 | ac_header_preproc=yes | |
13694 | else | |
13695 | echo "$as_me: failed program was:" >&5 | |
13696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13697 | ||
13698 | ac_header_preproc=no | |
13699 | fi | |
13700 | rm -f conftest.err conftest.$ac_ext | |
13701 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13702 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13703 | ||
13704 | # So? What about this header? | |
ac1cb8d3 VS |
13705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13706 | yes:no: ) | |
a848cd7e SC |
13707 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13708 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13710 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13711 | ac_header_preproc=yes | |
a848cd7e | 13712 | ;; |
ac1cb8d3 | 13713 | no:yes:* ) |
a848cd7e SC |
13714 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13715 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13716 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13717 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13718 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13719 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13720 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13721 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13722 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13723 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13724 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13725 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13726 | ( |
13727 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13728 | ## ----------------------------------------- ## |
13729 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13730 | ## ----------------------------------------- ## | |
a848cd7e SC |
13731 | _ASBOX |
13732 | ) | | |
13733 | sed "s/^/$as_me: WARNING: /" >&2 | |
13734 | ;; | |
13735 | esac | |
13736 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13740 | else | |
ac1cb8d3 | 13741 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13742 | fi |
13743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13745 | ||
13746 | fi | |
13747 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13748 | cat >>confdefs.h <<_ACEOF | |
13749 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13750 | _ACEOF | |
13751 | ||
13752 | fi | |
13753 | ||
13754 | done | |
13755 | ||
13756 | fi | |
13757 | ||
13758 | ||
13759 | for ac_header in fnmatch.h | |
13760 | do | |
13761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13767 | fi | |
13768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13770 | else | |
13771 | # Is the header compilable? | |
13772 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13774 | cat >conftest.$ac_ext <<_ACEOF | |
13775 | /* confdefs.h. */ | |
13776 | _ACEOF | |
13777 | cat confdefs.h >>conftest.$ac_ext | |
13778 | cat >>conftest.$ac_ext <<_ACEOF | |
13779 | /* end confdefs.h. */ | |
13780 | $ac_includes_default | |
13781 | #include <$ac_header> | |
13782 | _ACEOF | |
13783 | rm -f conftest.$ac_objext | |
13784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13785 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13786 | ac_status=$? |
ac1cb8d3 VS |
13787 | grep -v '^ *+' conftest.er1 >conftest.err |
13788 | rm -f conftest.er1 | |
13789 | cat conftest.err >&5 | |
a848cd7e SC |
13790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13791 | (exit $ac_status); } && | |
04840eaa VS |
13792 | { ac_try='test -z "$ac_c_werror_flag" |
13793 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13795 | (eval $ac_try) 2>&5 | |
13796 | ac_status=$? | |
13797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13798 | (exit $ac_status); }; } && | |
13799 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13801 | (eval $ac_try) 2>&5 | |
13802 | ac_status=$? | |
13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13804 | (exit $ac_status); }; }; then | |
13805 | ac_header_compiler=yes | |
13806 | else | |
13807 | echo "$as_me: failed program was:" >&5 | |
13808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13809 | ||
13810 | ac_header_compiler=no | |
13811 | fi | |
ac1cb8d3 | 13812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13813 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13814 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13815 | ||
13816 | # Is the header present? | |
13817 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13819 | cat >conftest.$ac_ext <<_ACEOF | |
13820 | /* confdefs.h. */ | |
13821 | _ACEOF | |
13822 | cat confdefs.h >>conftest.$ac_ext | |
13823 | cat >>conftest.$ac_ext <<_ACEOF | |
13824 | /* end confdefs.h. */ | |
13825 | #include <$ac_header> | |
13826 | _ACEOF | |
13827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13829 | ac_status=$? | |
13830 | grep -v '^ *+' conftest.er1 >conftest.err | |
13831 | rm -f conftest.er1 | |
13832 | cat conftest.err >&5 | |
13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13834 | (exit $ac_status); } >/dev/null; then | |
13835 | if test -s conftest.err; then | |
13836 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13838 | else |
13839 | ac_cpp_err= | |
13840 | fi | |
13841 | else | |
13842 | ac_cpp_err=yes | |
13843 | fi | |
13844 | if test -z "$ac_cpp_err"; then | |
13845 | ac_header_preproc=yes | |
13846 | else | |
13847 | echo "$as_me: failed program was:" >&5 | |
13848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13849 | ||
13850 | ac_header_preproc=no | |
13851 | fi | |
13852 | rm -f conftest.err conftest.$ac_ext | |
13853 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13854 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13855 | ||
13856 | # So? What about this header? | |
ac1cb8d3 VS |
13857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13858 | yes:no: ) | |
a848cd7e SC |
13859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13863 | ac_header_preproc=yes | |
a848cd7e | 13864 | ;; |
ac1cb8d3 | 13865 | no:yes:* ) |
a848cd7e SC |
13866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13878 | ( |
13879 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13880 | ## ----------------------------------------- ## |
13881 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13882 | ## ----------------------------------------- ## | |
a848cd7e SC |
13883 | _ASBOX |
13884 | ) | | |
13885 | sed "s/^/$as_me: WARNING: /" >&2 | |
13886 | ;; | |
13887 | esac | |
13888 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13892 | else | |
ac1cb8d3 | 13893 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13894 | fi |
13895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13897 | ||
13898 | fi | |
13899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13900 | cat >>confdefs.h <<_ACEOF | |
13901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13902 | _ACEOF | |
13903 | ||
13904 | fi | |
13905 | ||
13906 | done | |
13907 | ||
13908 | ||
13909 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13910 | ||
13911 | for ac_func in fnmatch | |
13912 | do | |
13913 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13914 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13915 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13916 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13918 | else | |
13919 | cat >conftest.$ac_ext <<_ACEOF | |
13920 | /* confdefs.h. */ | |
13921 | _ACEOF | |
13922 | cat confdefs.h >>conftest.$ac_ext | |
13923 | cat >>conftest.$ac_ext <<_ACEOF | |
13924 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13925 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13927 | #define $ac_func innocuous_$ac_func | |
13928 | ||
a848cd7e SC |
13929 | /* System header to define __stub macros and hopefully few prototypes, |
13930 | which can conflict with char $ac_func (); below. | |
13931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13932 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13933 | |
a848cd7e SC |
13934 | #ifdef __STDC__ |
13935 | # include <limits.h> | |
13936 | #else | |
13937 | # include <assert.h> | |
13938 | #endif | |
ac1cb8d3 VS |
13939 | |
13940 | #undef $ac_func | |
13941 | ||
a848cd7e SC |
13942 | /* Override any gcc2 internal prototype to avoid an error. */ |
13943 | #ifdef __cplusplus | |
13944 | extern "C" | |
13945 | { | |
13946 | #endif | |
13947 | /* We use char because int might match the return type of a gcc2 | |
13948 | builtin and then its argument prototype would still apply. */ | |
13949 | char $ac_func (); | |
13950 | /* The GNU C library defines this for functions which it implements | |
13951 | to always fail with ENOSYS. Some functions are actually named | |
13952 | something starting with __ and the normal name is an alias. */ | |
13953 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13954 | choke me | |
13955 | #else | |
13956 | char (*f) () = $ac_func; | |
13957 | #endif | |
13958 | #ifdef __cplusplus | |
13959 | } | |
13960 | #endif | |
13961 | ||
13962 | int | |
13963 | main () | |
13964 | { | |
13965 | return f != $ac_func; | |
13966 | ; | |
13967 | return 0; | |
13968 | } | |
13969 | _ACEOF | |
13970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13972 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13973 | ac_status=$? |
ac1cb8d3 VS |
13974 | grep -v '^ *+' conftest.er1 >conftest.err |
13975 | rm -f conftest.er1 | |
13976 | cat conftest.err >&5 | |
a848cd7e SC |
13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13978 | (exit $ac_status); } && | |
04840eaa VS |
13979 | { ac_try='test -z "$ac_c_werror_flag" |
13980 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13982 | (eval $ac_try) 2>&5 | |
13983 | ac_status=$? | |
13984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13985 | (exit $ac_status); }; } && | |
13986 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13988 | (eval $ac_try) 2>&5 | |
13989 | ac_status=$? | |
13990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13991 | (exit $ac_status); }; }; then | |
13992 | eval "$as_ac_var=yes" | |
13993 | else | |
13994 | echo "$as_me: failed program was:" >&5 | |
13995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13996 | ||
13997 | eval "$as_ac_var=no" | |
13998 | fi | |
ac1cb8d3 VS |
13999 | rm -f conftest.err conftest.$ac_objext \ |
14000 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14001 | fi |
14002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14003 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14004 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14005 | cat >>confdefs.h <<_ACEOF | |
14006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14007 | _ACEOF | |
14008 | ||
14009 | fi | |
14010 | done | |
14011 | ||
14012 | fi | |
14013 | ||
14014 | ||
14015 | for ac_header in langinfo.h | |
14016 | do | |
14017 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14019 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14020 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14021 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14023 | fi | |
14024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14026 | else | |
14027 | # Is the header compilable? | |
14028 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14029 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14030 | cat >conftest.$ac_ext <<_ACEOF | |
14031 | /* confdefs.h. */ | |
14032 | _ACEOF | |
14033 | cat confdefs.h >>conftest.$ac_ext | |
14034 | cat >>conftest.$ac_ext <<_ACEOF | |
14035 | /* end confdefs.h. */ | |
14036 | $ac_includes_default | |
14037 | #include <$ac_header> | |
14038 | _ACEOF | |
14039 | rm -f conftest.$ac_objext | |
14040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14041 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14042 | ac_status=$? |
ac1cb8d3 VS |
14043 | grep -v '^ *+' conftest.er1 >conftest.err |
14044 | rm -f conftest.er1 | |
14045 | cat conftest.err >&5 | |
a848cd7e SC |
14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14047 | (exit $ac_status); } && | |
04840eaa VS |
14048 | { ac_try='test -z "$ac_c_werror_flag" |
14049 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14051 | (eval $ac_try) 2>&5 | |
14052 | ac_status=$? | |
14053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14054 | (exit $ac_status); }; } && | |
14055 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14057 | (eval $ac_try) 2>&5 | |
14058 | ac_status=$? | |
14059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14060 | (exit $ac_status); }; }; then | |
14061 | ac_header_compiler=yes | |
14062 | else | |
14063 | echo "$as_me: failed program was:" >&5 | |
14064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14065 | ||
14066 | ac_header_compiler=no | |
14067 | fi | |
ac1cb8d3 | 14068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14069 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14070 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14071 | ||
14072 | # Is the header present? | |
14073 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14074 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14075 | cat >conftest.$ac_ext <<_ACEOF | |
14076 | /* confdefs.h. */ | |
14077 | _ACEOF | |
14078 | cat confdefs.h >>conftest.$ac_ext | |
14079 | cat >>conftest.$ac_ext <<_ACEOF | |
14080 | /* end confdefs.h. */ | |
14081 | #include <$ac_header> | |
14082 | _ACEOF | |
14083 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14084 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14085 | ac_status=$? | |
14086 | grep -v '^ *+' conftest.er1 >conftest.err | |
14087 | rm -f conftest.er1 | |
14088 | cat conftest.err >&5 | |
14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14090 | (exit $ac_status); } >/dev/null; then | |
14091 | if test -s conftest.err; then | |
14092 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14093 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14094 | else |
14095 | ac_cpp_err= | |
14096 | fi | |
14097 | else | |
14098 | ac_cpp_err=yes | |
14099 | fi | |
14100 | if test -z "$ac_cpp_err"; then | |
14101 | ac_header_preproc=yes | |
14102 | else | |
14103 | echo "$as_me: failed program was:" >&5 | |
14104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14105 | ||
14106 | ac_header_preproc=no | |
14107 | fi | |
14108 | rm -f conftest.err conftest.$ac_ext | |
14109 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14110 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14111 | ||
14112 | # So? What about this header? | |
ac1cb8d3 VS |
14113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14114 | yes:no: ) | |
a848cd7e SC |
14115 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14116 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14118 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14119 | ac_header_preproc=yes | |
a848cd7e | 14120 | ;; |
ac1cb8d3 | 14121 | no:yes:* ) |
a848cd7e SC |
14122 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14123 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14124 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14125 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14126 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14127 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14128 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14129 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14132 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14133 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14134 | ( |
14135 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14136 | ## ----------------------------------------- ## |
14137 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14138 | ## ----------------------------------------- ## | |
a848cd7e SC |
14139 | _ASBOX |
14140 | ) | | |
14141 | sed "s/^/$as_me: WARNING: /" >&2 | |
14142 | ;; | |
14143 | esac | |
14144 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14148 | else | |
ac1cb8d3 | 14149 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14150 | fi |
14151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14153 | ||
14154 | fi | |
14155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14156 | cat >>confdefs.h <<_ACEOF | |
14157 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14158 | _ACEOF | |
14159 | ||
14160 | fi | |
14161 | ||
14162 | done | |
14163 | ||
14164 | ||
14165 | case "${host}" in | |
14166 | *-pc-os2_emx | *-pc-os2-emx ) | |
14167 | if test $ac_cv_header_langinfo_h = "yes"; then | |
14168 | LIBS="$LIBS -lintl" | |
14169 | fi | |
14170 | ;; | |
14171 | esac | |
14172 | ||
14173 | if test "$wxUSE_GUI" = "yes"; then | |
14174 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14175 | ||
14176 | for ac_header in X11/Xlib.h | |
14177 | do | |
14178 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14184 | fi | |
14185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14187 | else | |
14188 | # Is the header compilable? | |
14189 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14190 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14191 | cat >conftest.$ac_ext <<_ACEOF | |
14192 | /* confdefs.h. */ | |
14193 | _ACEOF | |
14194 | cat confdefs.h >>conftest.$ac_ext | |
14195 | cat >>conftest.$ac_ext <<_ACEOF | |
14196 | /* end confdefs.h. */ | |
14197 | $ac_includes_default | |
14198 | #include <$ac_header> | |
14199 | _ACEOF | |
14200 | rm -f conftest.$ac_objext | |
14201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14202 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14203 | ac_status=$? |
ac1cb8d3 VS |
14204 | grep -v '^ *+' conftest.er1 >conftest.err |
14205 | rm -f conftest.er1 | |
14206 | cat conftest.err >&5 | |
a848cd7e SC |
14207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14208 | (exit $ac_status); } && | |
04840eaa VS |
14209 | { ac_try='test -z "$ac_c_werror_flag" |
14210 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14212 | (eval $ac_try) 2>&5 | |
14213 | ac_status=$? | |
14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14215 | (exit $ac_status); }; } && | |
14216 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14218 | (eval $ac_try) 2>&5 | |
14219 | ac_status=$? | |
14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14221 | (exit $ac_status); }; }; then | |
14222 | ac_header_compiler=yes | |
14223 | else | |
14224 | echo "$as_me: failed program was:" >&5 | |
14225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14226 | ||
14227 | ac_header_compiler=no | |
14228 | fi | |
ac1cb8d3 | 14229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14230 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14231 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14232 | ||
14233 | # Is the header present? | |
14234 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14236 | cat >conftest.$ac_ext <<_ACEOF | |
14237 | /* confdefs.h. */ | |
14238 | _ACEOF | |
14239 | cat confdefs.h >>conftest.$ac_ext | |
14240 | cat >>conftest.$ac_ext <<_ACEOF | |
14241 | /* end confdefs.h. */ | |
14242 | #include <$ac_header> | |
14243 | _ACEOF | |
14244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14246 | ac_status=$? | |
14247 | grep -v '^ *+' conftest.er1 >conftest.err | |
14248 | rm -f conftest.er1 | |
14249 | cat conftest.err >&5 | |
14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14251 | (exit $ac_status); } >/dev/null; then | |
14252 | if test -s conftest.err; then | |
14253 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14254 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14255 | else |
14256 | ac_cpp_err= | |
14257 | fi | |
14258 | else | |
14259 | ac_cpp_err=yes | |
14260 | fi | |
14261 | if test -z "$ac_cpp_err"; then | |
14262 | ac_header_preproc=yes | |
14263 | else | |
14264 | echo "$as_me: failed program was:" >&5 | |
14265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14266 | ||
14267 | ac_header_preproc=no | |
14268 | fi | |
14269 | rm -f conftest.err conftest.$ac_ext | |
14270 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14271 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14272 | ||
14273 | # So? What about this header? | |
ac1cb8d3 VS |
14274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14275 | yes:no: ) | |
a848cd7e SC |
14276 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14277 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14279 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14280 | ac_header_preproc=yes | |
a848cd7e | 14281 | ;; |
ac1cb8d3 | 14282 | no:yes:* ) |
a848cd7e SC |
14283 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14284 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14285 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14286 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14287 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14288 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14289 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14290 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14293 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14294 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14295 | ( |
14296 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14297 | ## ----------------------------------------- ## |
14298 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14299 | ## ----------------------------------------- ## | |
a848cd7e SC |
14300 | _ASBOX |
14301 | ) | | |
14302 | sed "s/^/$as_me: WARNING: /" >&2 | |
14303 | ;; | |
14304 | esac | |
14305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14309 | else | |
ac1cb8d3 | 14310 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14311 | fi |
14312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14314 | ||
14315 | fi | |
14316 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14317 | cat >>confdefs.h <<_ACEOF | |
14318 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14319 | _ACEOF | |
14320 | ||
14321 | fi | |
14322 | ||
14323 | done | |
14324 | ||
14325 | ||
14326 | for ac_header in X11/XKBlib.h | |
14327 | do | |
14328 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14333 | else | |
14334 | cat >conftest.$ac_ext <<_ACEOF | |
14335 | /* confdefs.h. */ | |
14336 | _ACEOF | |
14337 | cat confdefs.h >>conftest.$ac_ext | |
14338 | cat >>conftest.$ac_ext <<_ACEOF | |
14339 | /* end confdefs.h. */ | |
14340 | ||
14341 | #if HAVE_X11_XLIB_H | |
14342 | #include <X11/Xlib.h> | |
14343 | #endif | |
14344 | ||
14345 | ||
14346 | #include <$ac_header> | |
14347 | _ACEOF | |
14348 | rm -f conftest.$ac_objext | |
14349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14350 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14351 | ac_status=$? |
ac1cb8d3 VS |
14352 | grep -v '^ *+' conftest.er1 >conftest.err |
14353 | rm -f conftest.er1 | |
14354 | cat conftest.err >&5 | |
a848cd7e SC |
14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14356 | (exit $ac_status); } && | |
04840eaa VS |
14357 | { ac_try='test -z "$ac_c_werror_flag" |
14358 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14360 | (eval $ac_try) 2>&5 | |
14361 | ac_status=$? | |
14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14363 | (exit $ac_status); }; } && | |
14364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14366 | (eval $ac_try) 2>&5 | |
14367 | ac_status=$? | |
14368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14369 | (exit $ac_status); }; }; then | |
14370 | eval "$as_ac_Header=yes" | |
14371 | else | |
14372 | echo "$as_me: failed program was:" >&5 | |
14373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14374 | ||
14375 | eval "$as_ac_Header=no" | |
14376 | fi | |
ac1cb8d3 | 14377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14378 | fi |
14379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
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 | fi | |
14391 | fi | |
14392 | ||
14393 | ||
14394 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14395 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14396 | if test "${ac_cv_c_const+set}" = set; then | |
14397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14398 | else | |
14399 | cat >conftest.$ac_ext <<_ACEOF | |
14400 | /* confdefs.h. */ | |
14401 | _ACEOF | |
14402 | cat confdefs.h >>conftest.$ac_ext | |
14403 | cat >>conftest.$ac_ext <<_ACEOF | |
14404 | /* end confdefs.h. */ | |
14405 | ||
14406 | int | |
14407 | main () | |
14408 | { | |
14409 | /* FIXME: Include the comments suggested by Paul. */ | |
14410 | #ifndef __cplusplus | |
14411 | /* Ultrix mips cc rejects this. */ | |
14412 | typedef int charset[2]; | |
14413 | const charset x; | |
14414 | /* SunOS 4.1.1 cc rejects this. */ | |
14415 | char const *const *ccp; | |
14416 | char **p; | |
14417 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14418 | struct point {int x, y;}; | |
14419 | static struct point const zero = {0,0}; | |
14420 | /* AIX XL C 1.02.0.0 rejects this. | |
14421 | It does not let you subtract one const X* pointer from another in | |
14422 | an arm of an if-expression whose if-part is not a constant | |
14423 | expression */ | |
14424 | const char *g = "string"; | |
14425 | ccp = &g + (g ? g-g : 0); | |
14426 | /* HPUX 7.0 cc rejects these. */ | |
14427 | ++ccp; | |
14428 | p = (char**) ccp; | |
14429 | ccp = (char const *const *) p; | |
14430 | { /* SCO 3.2v4 cc rejects this. */ | |
14431 | char *t; | |
14432 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14433 | ||
14434 | *t++ = 0; | |
14435 | } | |
14436 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14437 | int x[] = {25, 17}; | |
14438 | const int *foo = &x[0]; | |
14439 | ++foo; | |
14440 | } | |
14441 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14442 | typedef const int *iptr; | |
14443 | iptr p = 0; | |
14444 | ++p; | |
14445 | } | |
14446 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14447 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14448 | struct s { int j; const int *ap[3]; }; | |
14449 | struct s *b; b->j = 5; | |
14450 | } | |
14451 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14452 | const int foo = 10; | |
14453 | } | |
14454 | #endif | |
14455 | ||
14456 | ; | |
14457 | return 0; | |
14458 | } | |
14459 | _ACEOF | |
14460 | rm -f conftest.$ac_objext | |
14461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14462 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14463 | ac_status=$? |
ac1cb8d3 VS |
14464 | grep -v '^ *+' conftest.er1 >conftest.err |
14465 | rm -f conftest.er1 | |
14466 | cat conftest.err >&5 | |
a848cd7e SC |
14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14468 | (exit $ac_status); } && | |
04840eaa VS |
14469 | { ac_try='test -z "$ac_c_werror_flag" |
14470 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14472 | (eval $ac_try) 2>&5 | |
14473 | ac_status=$? | |
14474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14475 | (exit $ac_status); }; } && | |
14476 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14478 | (eval $ac_try) 2>&5 | |
14479 | ac_status=$? | |
14480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14481 | (exit $ac_status); }; }; then | |
14482 | ac_cv_c_const=yes | |
14483 | else | |
14484 | echo "$as_me: failed program was:" >&5 | |
14485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14486 | ||
14487 | ac_cv_c_const=no | |
14488 | fi | |
ac1cb8d3 | 14489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14490 | fi |
14491 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14492 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14493 | if test $ac_cv_c_const = no; then | |
14494 | ||
14495 | cat >>confdefs.h <<\_ACEOF | |
14496 | #define const | |
14497 | _ACEOF | |
14498 | ||
14499 | fi | |
14500 | ||
14501 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14502 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14503 | if test "${ac_cv_c_inline+set}" = set; then | |
14504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14505 | else | |
14506 | ac_cv_c_inline=no | |
14507 | for ac_kw in inline __inline__ __inline; do | |
14508 | cat >conftest.$ac_ext <<_ACEOF | |
14509 | /* confdefs.h. */ | |
14510 | _ACEOF | |
14511 | cat confdefs.h >>conftest.$ac_ext | |
14512 | cat >>conftest.$ac_ext <<_ACEOF | |
14513 | /* end confdefs.h. */ | |
14514 | #ifndef __cplusplus | |
14515 | typedef int foo_t; | |
14516 | static $ac_kw foo_t static_foo () {return 0; } | |
14517 | $ac_kw foo_t foo () {return 0; } | |
14518 | #endif | |
14519 | ||
14520 | _ACEOF | |
14521 | rm -f conftest.$ac_objext | |
14522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14523 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14524 | ac_status=$? |
ac1cb8d3 VS |
14525 | grep -v '^ *+' conftest.er1 >conftest.err |
14526 | rm -f conftest.er1 | |
14527 | cat conftest.err >&5 | |
a848cd7e SC |
14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14529 | (exit $ac_status); } && | |
04840eaa VS |
14530 | { ac_try='test -z "$ac_c_werror_flag" |
14531 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14533 | (eval $ac_try) 2>&5 | |
14534 | ac_status=$? | |
14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14536 | (exit $ac_status); }; } && | |
14537 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14539 | (eval $ac_try) 2>&5 | |
14540 | ac_status=$? | |
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14542 | (exit $ac_status); }; }; then | |
14543 | ac_cv_c_inline=$ac_kw; break | |
14544 | else | |
14545 | echo "$as_me: failed program was:" >&5 | |
14546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14547 | ||
14548 | fi | |
ac1cb8d3 | 14549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14550 | done |
14551 | ||
14552 | fi | |
14553 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14554 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14555 | |
14556 | ||
a848cd7e SC |
14557 | case $ac_cv_c_inline in |
14558 | inline | yes) ;; | |
ac1cb8d3 VS |
14559 | *) |
14560 | case $ac_cv_c_inline in | |
14561 | no) ac_val=;; | |
14562 | *) ac_val=$ac_cv_c_inline;; | |
14563 | esac | |
14564 | cat >>confdefs.h <<_ACEOF | |
14565 | #ifndef __cplusplus | |
14566 | #define inline $ac_val | |
14567 | #endif | |
de59c161 | 14568 | _ACEOF |
ac1cb8d3 | 14569 | ;; |
a848cd7e SC |
14570 | esac |
14571 | ||
14572 | ||
14573 | echo "$as_me:$LINENO: checking for char" >&5 | |
14574 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14575 | if test "${ac_cv_type_char+set}" = set; then | |
14576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14577 | else | |
14578 | cat >conftest.$ac_ext <<_ACEOF | |
14579 | /* confdefs.h. */ | |
14580 | _ACEOF | |
14581 | cat confdefs.h >>conftest.$ac_ext | |
14582 | cat >>conftest.$ac_ext <<_ACEOF | |
14583 | /* end confdefs.h. */ | |
14584 | $ac_includes_default | |
14585 | int | |
14586 | main () | |
14587 | { | |
14588 | if ((char *) 0) | |
14589 | return 0; | |
14590 | if (sizeof (char)) | |
14591 | return 0; | |
14592 | ; | |
14593 | return 0; | |
14594 | } | |
14595 | _ACEOF | |
14596 | rm -f conftest.$ac_objext | |
14597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14598 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14599 | ac_status=$? |
ac1cb8d3 VS |
14600 | grep -v '^ *+' conftest.er1 >conftest.err |
14601 | rm -f conftest.er1 | |
14602 | cat conftest.err >&5 | |
a848cd7e SC |
14603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14604 | (exit $ac_status); } && | |
04840eaa VS |
14605 | { ac_try='test -z "$ac_c_werror_flag" |
14606 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14608 | (eval $ac_try) 2>&5 | |
14609 | ac_status=$? | |
14610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14611 | (exit $ac_status); }; } && | |
14612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14614 | (eval $ac_try) 2>&5 | |
14615 | ac_status=$? | |
14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14617 | (exit $ac_status); }; }; then | |
14618 | ac_cv_type_char=yes | |
14619 | else | |
14620 | echo "$as_me: failed program was:" >&5 | |
14621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14622 | ||
14623 | ac_cv_type_char=no | |
14624 | fi | |
ac1cb8d3 | 14625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14626 | fi |
14627 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14628 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14629 | ||
14630 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14631 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14632 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14634 | else | |
14635 | if test "$ac_cv_type_char" = yes; then | |
14636 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14637 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14638 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14639 | # This bug is HP SR number 8606223364. | |
14640 | if test "$cross_compiling" = yes; then | |
14641 | # Depending upon the size, compute the lo and hi bounds. | |
14642 | cat >conftest.$ac_ext <<_ACEOF | |
14643 | /* confdefs.h. */ | |
14644 | _ACEOF | |
14645 | cat confdefs.h >>conftest.$ac_ext | |
14646 | cat >>conftest.$ac_ext <<_ACEOF | |
14647 | /* end confdefs.h. */ | |
14648 | $ac_includes_default | |
14649 | int | |
14650 | main () | |
14651 | { | |
14652 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14653 | test_array [0] = 0 | |
14654 | ||
14655 | ; | |
14656 | return 0; | |
14657 | } | |
14658 | _ACEOF | |
14659 | rm -f conftest.$ac_objext | |
14660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14661 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14662 | ac_status=$? |
ac1cb8d3 VS |
14663 | grep -v '^ *+' conftest.er1 >conftest.err |
14664 | rm -f conftest.er1 | |
14665 | cat conftest.err >&5 | |
a848cd7e SC |
14666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14667 | (exit $ac_status); } && | |
04840eaa VS |
14668 | { ac_try='test -z "$ac_c_werror_flag" |
14669 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14671 | (eval $ac_try) 2>&5 | |
14672 | ac_status=$? | |
14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14674 | (exit $ac_status); }; } && | |
14675 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14677 | (eval $ac_try) 2>&5 | |
14678 | ac_status=$? | |
14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14680 | (exit $ac_status); }; }; then | |
14681 | ac_lo=0 ac_mid=0 | |
14682 | while :; do | |
14683 | cat >conftest.$ac_ext <<_ACEOF | |
14684 | /* confdefs.h. */ | |
14685 | _ACEOF | |
14686 | cat confdefs.h >>conftest.$ac_ext | |
14687 | cat >>conftest.$ac_ext <<_ACEOF | |
14688 | /* end confdefs.h. */ | |
14689 | $ac_includes_default | |
14690 | int | |
14691 | main () | |
14692 | { | |
14693 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14694 | test_array [0] = 0 | |
14695 | ||
14696 | ; | |
14697 | return 0; | |
14698 | } | |
14699 | _ACEOF | |
14700 | rm -f conftest.$ac_objext | |
14701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14702 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14703 | ac_status=$? |
ac1cb8d3 VS |
14704 | grep -v '^ *+' conftest.er1 >conftest.err |
14705 | rm -f conftest.er1 | |
14706 | cat conftest.err >&5 | |
a848cd7e SC |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14708 | (exit $ac_status); } && | |
04840eaa VS |
14709 | { ac_try='test -z "$ac_c_werror_flag" |
14710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14712 | (eval $ac_try) 2>&5 | |
14713 | ac_status=$? | |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14715 | (exit $ac_status); }; } && | |
14716 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14718 | (eval $ac_try) 2>&5 | |
14719 | ac_status=$? | |
14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14721 | (exit $ac_status); }; }; then | |
14722 | ac_hi=$ac_mid; break | |
14723 | else | |
14724 | echo "$as_me: failed program was:" >&5 | |
14725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14726 | ||
14727 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14728 | if test $ac_lo -le $ac_mid; then |
14729 | ac_lo= ac_hi= | |
14730 | break | |
14731 | fi | |
14732 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14733 | fi |
ac1cb8d3 | 14734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14735 | done |
14736 | else | |
14737 | echo "$as_me: failed program was:" >&5 | |
14738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14739 | ||
14740 | cat >conftest.$ac_ext <<_ACEOF | |
14741 | /* confdefs.h. */ | |
14742 | _ACEOF | |
14743 | cat confdefs.h >>conftest.$ac_ext | |
14744 | cat >>conftest.$ac_ext <<_ACEOF | |
14745 | /* end confdefs.h. */ | |
14746 | $ac_includes_default | |
14747 | int | |
14748 | main () | |
14749 | { | |
14750 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14751 | test_array [0] = 0 | |
14752 | ||
14753 | ; | |
14754 | return 0; | |
14755 | } | |
14756 | _ACEOF | |
14757 | rm -f conftest.$ac_objext | |
14758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14759 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14760 | ac_status=$? |
ac1cb8d3 VS |
14761 | grep -v '^ *+' conftest.er1 >conftest.err |
14762 | rm -f conftest.er1 | |
14763 | cat conftest.err >&5 | |
a848cd7e SC |
14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14765 | (exit $ac_status); } && | |
04840eaa VS |
14766 | { ac_try='test -z "$ac_c_werror_flag" |
14767 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14769 | (eval $ac_try) 2>&5 | |
14770 | ac_status=$? | |
14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14772 | (exit $ac_status); }; } && | |
14773 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14775 | (eval $ac_try) 2>&5 | |
14776 | ac_status=$? | |
14777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14778 | (exit $ac_status); }; }; then | |
14779 | ac_hi=-1 ac_mid=-1 | |
14780 | while :; do | |
14781 | cat >conftest.$ac_ext <<_ACEOF | |
14782 | /* confdefs.h. */ | |
14783 | _ACEOF | |
14784 | cat confdefs.h >>conftest.$ac_ext | |
14785 | cat >>conftest.$ac_ext <<_ACEOF | |
14786 | /* end confdefs.h. */ | |
14787 | $ac_includes_default | |
14788 | int | |
14789 | main () | |
14790 | { | |
14791 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14792 | test_array [0] = 0 | |
14793 | ||
14794 | ; | |
14795 | return 0; | |
14796 | } | |
14797 | _ACEOF | |
14798 | rm -f conftest.$ac_objext | |
14799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14801 | ac_status=$? |
ac1cb8d3 VS |
14802 | grep -v '^ *+' conftest.er1 >conftest.err |
14803 | rm -f conftest.er1 | |
14804 | cat conftest.err >&5 | |
a848cd7e SC |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14806 | (exit $ac_status); } && | |
04840eaa VS |
14807 | { ac_try='test -z "$ac_c_werror_flag" |
14808 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14810 | (eval $ac_try) 2>&5 | |
14811 | ac_status=$? | |
14812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14813 | (exit $ac_status); }; } && | |
14814 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14816 | (eval $ac_try) 2>&5 | |
14817 | ac_status=$? | |
14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14819 | (exit $ac_status); }; }; then | |
14820 | ac_lo=$ac_mid; break | |
14821 | else | |
14822 | echo "$as_me: failed program was:" >&5 | |
14823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14824 | ||
14825 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14826 | if test $ac_mid -le $ac_hi; then |
14827 | ac_lo= ac_hi= | |
14828 | break | |
14829 | fi | |
14830 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14831 | fi |
ac1cb8d3 | 14832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14833 | done |
14834 | else | |
14835 | echo "$as_me: failed program was:" >&5 | |
14836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14837 | ||
14838 | ac_lo= ac_hi= | |
14839 | fi | |
ac1cb8d3 | 14840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14841 | fi |
ac1cb8d3 | 14842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14843 | # Binary search between lo and hi bounds. |
14844 | while test "x$ac_lo" != "x$ac_hi"; do | |
14845 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14846 | cat >conftest.$ac_ext <<_ACEOF | |
14847 | /* confdefs.h. */ | |
14848 | _ACEOF | |
14849 | cat confdefs.h >>conftest.$ac_ext | |
14850 | cat >>conftest.$ac_ext <<_ACEOF | |
14851 | /* end confdefs.h. */ | |
14852 | $ac_includes_default | |
14853 | int | |
14854 | main () | |
14855 | { | |
14856 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14857 | test_array [0] = 0 | |
14858 | ||
14859 | ; | |
14860 | return 0; | |
14861 | } | |
14862 | _ACEOF | |
14863 | rm -f conftest.$ac_objext | |
14864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14866 | ac_status=$? |
ac1cb8d3 VS |
14867 | grep -v '^ *+' conftest.er1 >conftest.err |
14868 | rm -f conftest.er1 | |
14869 | cat conftest.err >&5 | |
a848cd7e SC |
14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14871 | (exit $ac_status); } && | |
04840eaa VS |
14872 | { ac_try='test -z "$ac_c_werror_flag" |
14873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14875 | (eval $ac_try) 2>&5 | |
14876 | ac_status=$? | |
14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14878 | (exit $ac_status); }; } && | |
14879 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14881 | (eval $ac_try) 2>&5 | |
14882 | ac_status=$? | |
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14884 | (exit $ac_status); }; }; then | |
14885 | ac_hi=$ac_mid | |
14886 | else | |
14887 | echo "$as_me: failed program was:" >&5 | |
14888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14889 | ||
14890 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14891 | fi | |
ac1cb8d3 | 14892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14893 | done |
14894 | case $ac_lo in | |
14895 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14896 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14897 | See \`config.log' for more details." >&5 | |
14898 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14899 | See \`config.log' for more details." >&2;} | |
14900 | { (exit 1); exit 1; }; } ;; | |
14901 | esac | |
14902 | else | |
14903 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
14904 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
14905 | See \`config.log' for more details." >&5 | |
14906 | echo "$as_me: error: cannot run test program while cross compiling | |
14907 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
14908 | { (exit 1); exit 1; }; } |
14909 | else | |
14910 | cat >conftest.$ac_ext <<_ACEOF | |
14911 | /* confdefs.h. */ | |
14912 | _ACEOF | |
14913 | cat confdefs.h >>conftest.$ac_ext | |
14914 | cat >>conftest.$ac_ext <<_ACEOF | |
14915 | /* end confdefs.h. */ | |
14916 | $ac_includes_default | |
14917 | long longval () { return (long) (sizeof (char)); } | |
14918 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14919 | #include <stdio.h> | |
14920 | #include <stdlib.h> | |
14921 | int | |
14922 | main () | |
14923 | { | |
14924 | ||
14925 | FILE *f = fopen ("conftest.val", "w"); | |
14926 | if (! f) | |
14927 | exit (1); | |
14928 | if (((long) (sizeof (char))) < 0) | |
14929 | { | |
14930 | long i = longval (); | |
14931 | if (i != ((long) (sizeof (char)))) | |
14932 | exit (1); | |
14933 | fprintf (f, "%ld\n", i); | |
14934 | } | |
14935 | else | |
14936 | { | |
14937 | unsigned long i = ulongval (); | |
14938 | if (i != ((long) (sizeof (char)))) | |
14939 | exit (1); | |
14940 | fprintf (f, "%lu\n", i); | |
14941 | } | |
14942 | exit (ferror (f) || fclose (f) != 0); | |
14943 | ||
14944 | ; | |
14945 | return 0; | |
14946 | } | |
14947 | _ACEOF | |
14948 | rm -f conftest$ac_exeext | |
14949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14950 | (eval $ac_link) 2>&5 | |
14951 | ac_status=$? | |
14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14953 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14955 | (eval $ac_try) 2>&5 | |
14956 | ac_status=$? | |
14957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14958 | (exit $ac_status); }; }; then | |
14959 | ac_cv_sizeof_char=`cat conftest.val` | |
14960 | else | |
14961 | echo "$as_me: program exited with status $ac_status" >&5 | |
14962 | echo "$as_me: failed program was:" >&5 | |
14963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14964 | ||
14965 | ( exit $ac_status ) | |
14966 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14967 | See \`config.log' for more details." >&5 | |
14968 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14969 | See \`config.log' for more details." >&2;} | |
14970 | { (exit 1); exit 1; }; } | |
14971 | fi | |
ac1cb8d3 | 14972 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14973 | fi |
14974 | fi | |
14975 | rm -f conftest.val | |
14976 | else | |
14977 | ac_cv_sizeof_char=0 | |
14978 | fi | |
14979 | fi | |
14980 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14981 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14982 | cat >>confdefs.h <<_ACEOF | |
14983 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14984 | _ACEOF | |
14985 | ||
14986 | ||
14987 | echo "$as_me:$LINENO: checking for short" >&5 | |
14988 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14989 | if test "${ac_cv_type_short+set}" = set; then | |
14990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14991 | else | |
14992 | cat >conftest.$ac_ext <<_ACEOF | |
14993 | /* confdefs.h. */ | |
14994 | _ACEOF | |
14995 | cat confdefs.h >>conftest.$ac_ext | |
14996 | cat >>conftest.$ac_ext <<_ACEOF | |
14997 | /* end confdefs.h. */ | |
14998 | $ac_includes_default | |
14999 | int | |
15000 | main () | |
15001 | { | |
15002 | if ((short *) 0) | |
15003 | return 0; | |
15004 | if (sizeof (short)) | |
15005 | return 0; | |
15006 | ; | |
15007 | return 0; | |
15008 | } | |
15009 | _ACEOF | |
15010 | rm -f conftest.$ac_objext | |
15011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15012 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15013 | ac_status=$? |
ac1cb8d3 VS |
15014 | grep -v '^ *+' conftest.er1 >conftest.err |
15015 | rm -f conftest.er1 | |
15016 | cat conftest.err >&5 | |
a848cd7e SC |
15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15018 | (exit $ac_status); } && | |
04840eaa VS |
15019 | { ac_try='test -z "$ac_c_werror_flag" |
15020 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15022 | (eval $ac_try) 2>&5 | |
15023 | ac_status=$? | |
15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15025 | (exit $ac_status); }; } && | |
15026 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15028 | (eval $ac_try) 2>&5 | |
15029 | ac_status=$? | |
15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15031 | (exit $ac_status); }; }; then | |
15032 | ac_cv_type_short=yes | |
15033 | else | |
15034 | echo "$as_me: failed program was:" >&5 | |
15035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15036 | ||
15037 | ac_cv_type_short=no | |
15038 | fi | |
ac1cb8d3 | 15039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15040 | fi |
15041 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15042 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15043 | ||
15044 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15045 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15046 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15048 | else | |
15049 | if test "$ac_cv_type_short" = yes; then | |
15050 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15051 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15052 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15053 | # This bug is HP SR number 8606223364. | |
15054 | if test "$cross_compiling" = yes; then | |
15055 | # Depending upon the size, compute the lo and hi bounds. | |
15056 | cat >conftest.$ac_ext <<_ACEOF | |
15057 | /* confdefs.h. */ | |
15058 | _ACEOF | |
15059 | cat confdefs.h >>conftest.$ac_ext | |
15060 | cat >>conftest.$ac_ext <<_ACEOF | |
15061 | /* end confdefs.h. */ | |
15062 | $ac_includes_default | |
15063 | int | |
15064 | main () | |
15065 | { | |
15066 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15067 | test_array [0] = 0 | |
15068 | ||
15069 | ; | |
15070 | return 0; | |
15071 | } | |
15072 | _ACEOF | |
15073 | rm -f conftest.$ac_objext | |
15074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15076 | ac_status=$? |
ac1cb8d3 VS |
15077 | grep -v '^ *+' conftest.er1 >conftest.err |
15078 | rm -f conftest.er1 | |
15079 | cat conftest.err >&5 | |
a848cd7e SC |
15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15081 | (exit $ac_status); } && | |
04840eaa VS |
15082 | { ac_try='test -z "$ac_c_werror_flag" |
15083 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15085 | (eval $ac_try) 2>&5 | |
15086 | ac_status=$? | |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15088 | (exit $ac_status); }; } && | |
15089 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15091 | (eval $ac_try) 2>&5 | |
15092 | ac_status=$? | |
15093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15094 | (exit $ac_status); }; }; then | |
15095 | ac_lo=0 ac_mid=0 | |
15096 | while :; do | |
15097 | cat >conftest.$ac_ext <<_ACEOF | |
15098 | /* confdefs.h. */ | |
15099 | _ACEOF | |
15100 | cat confdefs.h >>conftest.$ac_ext | |
15101 | cat >>conftest.$ac_ext <<_ACEOF | |
15102 | /* end confdefs.h. */ | |
15103 | $ac_includes_default | |
15104 | int | |
15105 | main () | |
15106 | { | |
15107 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15108 | test_array [0] = 0 | |
15109 | ||
15110 | ; | |
15111 | return 0; | |
15112 | } | |
15113 | _ACEOF | |
15114 | rm -f conftest.$ac_objext | |
15115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15116 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15117 | ac_status=$? |
ac1cb8d3 VS |
15118 | grep -v '^ *+' conftest.er1 >conftest.err |
15119 | rm -f conftest.er1 | |
15120 | cat conftest.err >&5 | |
a848cd7e SC |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15122 | (exit $ac_status); } && | |
04840eaa VS |
15123 | { ac_try='test -z "$ac_c_werror_flag" |
15124 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15126 | (eval $ac_try) 2>&5 | |
15127 | ac_status=$? | |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 | (exit $ac_status); }; } && | |
15130 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15132 | (eval $ac_try) 2>&5 | |
15133 | ac_status=$? | |
15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15135 | (exit $ac_status); }; }; then | |
15136 | ac_hi=$ac_mid; break | |
15137 | else | |
15138 | echo "$as_me: failed program was:" >&5 | |
15139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15140 | ||
15141 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15142 | if test $ac_lo -le $ac_mid; then |
15143 | ac_lo= ac_hi= | |
15144 | break | |
15145 | fi | |
15146 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15147 | fi |
ac1cb8d3 | 15148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15149 | done |
15150 | else | |
15151 | echo "$as_me: failed program was:" >&5 | |
15152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15153 | ||
15154 | cat >conftest.$ac_ext <<_ACEOF | |
15155 | /* confdefs.h. */ | |
15156 | _ACEOF | |
15157 | cat confdefs.h >>conftest.$ac_ext | |
15158 | cat >>conftest.$ac_ext <<_ACEOF | |
15159 | /* end confdefs.h. */ | |
15160 | $ac_includes_default | |
15161 | int | |
15162 | main () | |
15163 | { | |
15164 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15165 | test_array [0] = 0 | |
15166 | ||
15167 | ; | |
15168 | return 0; | |
15169 | } | |
15170 | _ACEOF | |
15171 | rm -f conftest.$ac_objext | |
15172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15173 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15174 | ac_status=$? |
ac1cb8d3 VS |
15175 | grep -v '^ *+' conftest.er1 >conftest.err |
15176 | rm -f conftest.er1 | |
15177 | cat conftest.err >&5 | |
a848cd7e SC |
15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15179 | (exit $ac_status); } && | |
04840eaa VS |
15180 | { ac_try='test -z "$ac_c_werror_flag" |
15181 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15183 | (eval $ac_try) 2>&5 | |
15184 | ac_status=$? | |
15185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15186 | (exit $ac_status); }; } && | |
15187 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15189 | (eval $ac_try) 2>&5 | |
15190 | ac_status=$? | |
15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15192 | (exit $ac_status); }; }; then | |
15193 | ac_hi=-1 ac_mid=-1 | |
15194 | while :; do | |
15195 | cat >conftest.$ac_ext <<_ACEOF | |
15196 | /* confdefs.h. */ | |
15197 | _ACEOF | |
15198 | cat confdefs.h >>conftest.$ac_ext | |
15199 | cat >>conftest.$ac_ext <<_ACEOF | |
15200 | /* end confdefs.h. */ | |
15201 | $ac_includes_default | |
15202 | int | |
15203 | main () | |
15204 | { | |
15205 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15206 | test_array [0] = 0 | |
15207 | ||
15208 | ; | |
15209 | return 0; | |
15210 | } | |
15211 | _ACEOF | |
15212 | rm -f conftest.$ac_objext | |
15213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15214 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15215 | ac_status=$? |
ac1cb8d3 VS |
15216 | grep -v '^ *+' conftest.er1 >conftest.err |
15217 | rm -f conftest.er1 | |
15218 | cat conftest.err >&5 | |
a848cd7e SC |
15219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15220 | (exit $ac_status); } && | |
04840eaa VS |
15221 | { ac_try='test -z "$ac_c_werror_flag" |
15222 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15224 | (eval $ac_try) 2>&5 | |
15225 | ac_status=$? | |
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15227 | (exit $ac_status); }; } && | |
15228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15230 | (eval $ac_try) 2>&5 | |
15231 | ac_status=$? | |
15232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15233 | (exit $ac_status); }; }; then | |
15234 | ac_lo=$ac_mid; break | |
15235 | else | |
15236 | echo "$as_me: failed program was:" >&5 | |
15237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15238 | ||
15239 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15240 | if test $ac_mid -le $ac_hi; then |
15241 | ac_lo= ac_hi= | |
15242 | break | |
15243 | fi | |
15244 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15245 | fi |
ac1cb8d3 | 15246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15247 | done |
15248 | else | |
15249 | echo "$as_me: failed program was:" >&5 | |
15250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15251 | ||
15252 | ac_lo= ac_hi= | |
15253 | fi | |
ac1cb8d3 | 15254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15255 | fi |
ac1cb8d3 | 15256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15257 | # Binary search between lo and hi bounds. |
15258 | while test "x$ac_lo" != "x$ac_hi"; do | |
15259 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15260 | cat >conftest.$ac_ext <<_ACEOF | |
15261 | /* confdefs.h. */ | |
15262 | _ACEOF | |
15263 | cat confdefs.h >>conftest.$ac_ext | |
15264 | cat >>conftest.$ac_ext <<_ACEOF | |
15265 | /* end confdefs.h. */ | |
15266 | $ac_includes_default | |
15267 | int | |
15268 | main () | |
15269 | { | |
15270 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15271 | test_array [0] = 0 | |
15272 | ||
15273 | ; | |
15274 | return 0; | |
15275 | } | |
15276 | _ACEOF | |
15277 | rm -f conftest.$ac_objext | |
15278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15279 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15280 | ac_status=$? |
ac1cb8d3 VS |
15281 | grep -v '^ *+' conftest.er1 >conftest.err |
15282 | rm -f conftest.er1 | |
15283 | cat conftest.err >&5 | |
a848cd7e SC |
15284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15285 | (exit $ac_status); } && | |
04840eaa VS |
15286 | { ac_try='test -z "$ac_c_werror_flag" |
15287 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15289 | (eval $ac_try) 2>&5 | |
15290 | ac_status=$? | |
15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15292 | (exit $ac_status); }; } && | |
15293 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15295 | (eval $ac_try) 2>&5 | |
15296 | ac_status=$? | |
15297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15298 | (exit $ac_status); }; }; then | |
15299 | ac_hi=$ac_mid | |
15300 | else | |
15301 | echo "$as_me: failed program was:" >&5 | |
15302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15303 | ||
15304 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15305 | fi | |
ac1cb8d3 | 15306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15307 | done |
15308 | case $ac_lo in | |
15309 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15310 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15311 | See \`config.log' for more details." >&5 | |
15312 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15313 | See \`config.log' for more details." >&2;} | |
15314 | { (exit 1); exit 1; }; } ;; | |
15315 | esac | |
15316 | else | |
15317 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
15318 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15319 | See \`config.log' for more details." >&5 | |
15320 | echo "$as_me: error: cannot run test program while cross compiling | |
15321 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15322 | { (exit 1); exit 1; }; } |
15323 | else | |
15324 | cat >conftest.$ac_ext <<_ACEOF | |
15325 | /* confdefs.h. */ | |
15326 | _ACEOF | |
15327 | cat confdefs.h >>conftest.$ac_ext | |
15328 | cat >>conftest.$ac_ext <<_ACEOF | |
15329 | /* end confdefs.h. */ | |
15330 | $ac_includes_default | |
15331 | long longval () { return (long) (sizeof (short)); } | |
15332 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15333 | #include <stdio.h> | |
15334 | #include <stdlib.h> | |
15335 | int | |
15336 | main () | |
15337 | { | |
15338 | ||
15339 | FILE *f = fopen ("conftest.val", "w"); | |
15340 | if (! f) | |
15341 | exit (1); | |
15342 | if (((long) (sizeof (short))) < 0) | |
15343 | { | |
15344 | long i = longval (); | |
15345 | if (i != ((long) (sizeof (short)))) | |
15346 | exit (1); | |
15347 | fprintf (f, "%ld\n", i); | |
15348 | } | |
15349 | else | |
15350 | { | |
15351 | unsigned long i = ulongval (); | |
15352 | if (i != ((long) (sizeof (short)))) | |
15353 | exit (1); | |
15354 | fprintf (f, "%lu\n", i); | |
15355 | } | |
15356 | exit (ferror (f) || fclose (f) != 0); | |
15357 | ||
15358 | ; | |
15359 | return 0; | |
15360 | } | |
15361 | _ACEOF | |
15362 | rm -f conftest$ac_exeext | |
15363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15364 | (eval $ac_link) 2>&5 | |
15365 | ac_status=$? | |
15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15369 | (eval $ac_try) 2>&5 | |
15370 | ac_status=$? | |
15371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15372 | (exit $ac_status); }; }; then | |
15373 | ac_cv_sizeof_short=`cat conftest.val` | |
15374 | else | |
15375 | echo "$as_me: program exited with status $ac_status" >&5 | |
15376 | echo "$as_me: failed program was:" >&5 | |
15377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15378 | ||
15379 | ( exit $ac_status ) | |
15380 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15381 | See \`config.log' for more details." >&5 | |
15382 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15383 | See \`config.log' for more details." >&2;} | |
15384 | { (exit 1); exit 1; }; } | |
15385 | fi | |
ac1cb8d3 | 15386 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15387 | fi |
15388 | fi | |
15389 | rm -f conftest.val | |
15390 | else | |
15391 | ac_cv_sizeof_short=0 | |
15392 | fi | |
15393 | fi | |
15394 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15395 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15396 | cat >>confdefs.h <<_ACEOF | |
15397 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15398 | _ACEOF | |
15399 | ||
15400 | ||
15401 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15402 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15403 | if test "${ac_cv_type_void_p+set}" = set; then | |
15404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15405 | else | |
15406 | cat >conftest.$ac_ext <<_ACEOF | |
15407 | /* confdefs.h. */ | |
15408 | _ACEOF | |
15409 | cat confdefs.h >>conftest.$ac_ext | |
15410 | cat >>conftest.$ac_ext <<_ACEOF | |
15411 | /* end confdefs.h. */ | |
15412 | $ac_includes_default | |
15413 | int | |
15414 | main () | |
15415 | { | |
15416 | if ((void * *) 0) | |
15417 | return 0; | |
15418 | if (sizeof (void *)) | |
15419 | return 0; | |
15420 | ; | |
15421 | return 0; | |
15422 | } | |
15423 | _ACEOF | |
15424 | rm -f conftest.$ac_objext | |
15425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15426 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15427 | ac_status=$? |
ac1cb8d3 VS |
15428 | grep -v '^ *+' conftest.er1 >conftest.err |
15429 | rm -f conftest.er1 | |
15430 | cat conftest.err >&5 | |
a848cd7e SC |
15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15432 | (exit $ac_status); } && | |
04840eaa VS |
15433 | { ac_try='test -z "$ac_c_werror_flag" |
15434 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15436 | (eval $ac_try) 2>&5 | |
15437 | ac_status=$? | |
15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15439 | (exit $ac_status); }; } && | |
15440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15442 | (eval $ac_try) 2>&5 | |
15443 | ac_status=$? | |
15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15445 | (exit $ac_status); }; }; then | |
15446 | ac_cv_type_void_p=yes | |
15447 | else | |
15448 | echo "$as_me: failed program was:" >&5 | |
15449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15450 | ||
15451 | ac_cv_type_void_p=no | |
15452 | fi | |
ac1cb8d3 | 15453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15454 | fi |
15455 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15456 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15457 | ||
15458 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15459 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15460 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15462 | else | |
15463 | if test "$ac_cv_type_void_p" = yes; then | |
15464 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15467 | # This bug is HP SR number 8606223364. | |
15468 | if test "$cross_compiling" = yes; then | |
15469 | # Depending upon the size, compute the lo and hi bounds. | |
15470 | cat >conftest.$ac_ext <<_ACEOF | |
15471 | /* confdefs.h. */ | |
15472 | _ACEOF | |
15473 | cat confdefs.h >>conftest.$ac_ext | |
15474 | cat >>conftest.$ac_ext <<_ACEOF | |
15475 | /* end confdefs.h. */ | |
15476 | $ac_includes_default | |
15477 | int | |
15478 | main () | |
15479 | { | |
15480 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15481 | test_array [0] = 0 | |
15482 | ||
15483 | ; | |
15484 | return 0; | |
15485 | } | |
15486 | _ACEOF | |
15487 | rm -f conftest.$ac_objext | |
15488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15490 | ac_status=$? |
ac1cb8d3 VS |
15491 | grep -v '^ *+' conftest.er1 >conftest.err |
15492 | rm -f conftest.er1 | |
15493 | cat conftest.err >&5 | |
a848cd7e SC |
15494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15495 | (exit $ac_status); } && | |
04840eaa VS |
15496 | { ac_try='test -z "$ac_c_werror_flag" |
15497 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15499 | (eval $ac_try) 2>&5 | |
15500 | ac_status=$? | |
15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15502 | (exit $ac_status); }; } && | |
15503 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15505 | (eval $ac_try) 2>&5 | |
15506 | ac_status=$? | |
15507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15508 | (exit $ac_status); }; }; then | |
15509 | ac_lo=0 ac_mid=0 | |
15510 | while :; do | |
15511 | cat >conftest.$ac_ext <<_ACEOF | |
15512 | /* confdefs.h. */ | |
15513 | _ACEOF | |
15514 | cat confdefs.h >>conftest.$ac_ext | |
15515 | cat >>conftest.$ac_ext <<_ACEOF | |
15516 | /* end confdefs.h. */ | |
15517 | $ac_includes_default | |
15518 | int | |
15519 | main () | |
15520 | { | |
15521 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15522 | test_array [0] = 0 | |
15523 | ||
15524 | ; | |
15525 | return 0; | |
15526 | } | |
15527 | _ACEOF | |
15528 | rm -f conftest.$ac_objext | |
15529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15531 | ac_status=$? |
ac1cb8d3 VS |
15532 | grep -v '^ *+' conftest.er1 >conftest.err |
15533 | rm -f conftest.er1 | |
15534 | cat conftest.err >&5 | |
a848cd7e SC |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15536 | (exit $ac_status); } && | |
04840eaa VS |
15537 | { ac_try='test -z "$ac_c_werror_flag" |
15538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15540 | (eval $ac_try) 2>&5 | |
15541 | ac_status=$? | |
15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15543 | (exit $ac_status); }; } && | |
15544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15550 | ac_hi=$ac_mid; break | |
15551 | else | |
15552 | echo "$as_me: failed program was:" >&5 | |
15553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15554 | ||
15555 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15556 | if test $ac_lo -le $ac_mid; then |
15557 | ac_lo= ac_hi= | |
15558 | break | |
15559 | fi | |
15560 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15561 | fi |
ac1cb8d3 | 15562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15563 | done |
15564 | else | |
15565 | echo "$as_me: failed program was:" >&5 | |
15566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15567 | ||
15568 | cat >conftest.$ac_ext <<_ACEOF | |
15569 | /* confdefs.h. */ | |
15570 | _ACEOF | |
15571 | cat confdefs.h >>conftest.$ac_ext | |
15572 | cat >>conftest.$ac_ext <<_ACEOF | |
15573 | /* end confdefs.h. */ | |
15574 | $ac_includes_default | |
15575 | int | |
15576 | main () | |
15577 | { | |
15578 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15579 | test_array [0] = 0 | |
15580 | ||
15581 | ; | |
15582 | return 0; | |
15583 | } | |
15584 | _ACEOF | |
15585 | rm -f conftest.$ac_objext | |
15586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15588 | ac_status=$? |
ac1cb8d3 VS |
15589 | grep -v '^ *+' conftest.er1 >conftest.err |
15590 | rm -f conftest.er1 | |
15591 | cat conftest.err >&5 | |
a848cd7e SC |
15592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15593 | (exit $ac_status); } && | |
04840eaa VS |
15594 | { ac_try='test -z "$ac_c_werror_flag" |
15595 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15597 | (eval $ac_try) 2>&5 | |
15598 | ac_status=$? | |
15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15600 | (exit $ac_status); }; } && | |
15601 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15603 | (eval $ac_try) 2>&5 | |
15604 | ac_status=$? | |
15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15606 | (exit $ac_status); }; }; then | |
15607 | ac_hi=-1 ac_mid=-1 | |
15608 | while :; do | |
15609 | cat >conftest.$ac_ext <<_ACEOF | |
15610 | /* confdefs.h. */ | |
15611 | _ACEOF | |
15612 | cat confdefs.h >>conftest.$ac_ext | |
15613 | cat >>conftest.$ac_ext <<_ACEOF | |
15614 | /* end confdefs.h. */ | |
15615 | $ac_includes_default | |
15616 | int | |
15617 | main () | |
15618 | { | |
15619 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15620 | test_array [0] = 0 | |
15621 | ||
15622 | ; | |
15623 | return 0; | |
15624 | } | |
15625 | _ACEOF | |
15626 | rm -f conftest.$ac_objext | |
15627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15628 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15629 | ac_status=$? |
ac1cb8d3 VS |
15630 | grep -v '^ *+' conftest.er1 >conftest.err |
15631 | rm -f conftest.er1 | |
15632 | cat conftest.err >&5 | |
a848cd7e SC |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15634 | (exit $ac_status); } && | |
04840eaa VS |
15635 | { ac_try='test -z "$ac_c_werror_flag" |
15636 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15638 | (eval $ac_try) 2>&5 | |
15639 | ac_status=$? | |
15640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15641 | (exit $ac_status); }; } && | |
15642 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15644 | (eval $ac_try) 2>&5 | |
15645 | ac_status=$? | |
15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15647 | (exit $ac_status); }; }; then | |
15648 | ac_lo=$ac_mid; break | |
15649 | else | |
15650 | echo "$as_me: failed program was:" >&5 | |
15651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15652 | ||
15653 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15654 | if test $ac_mid -le $ac_hi; then |
15655 | ac_lo= ac_hi= | |
15656 | break | |
15657 | fi | |
15658 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15659 | fi |
ac1cb8d3 | 15660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15661 | done |
15662 | else | |
15663 | echo "$as_me: failed program was:" >&5 | |
15664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15665 | ||
15666 | ac_lo= ac_hi= | |
15667 | fi | |
ac1cb8d3 | 15668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15669 | fi |
ac1cb8d3 | 15670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15671 | # Binary search between lo and hi bounds. |
15672 | while test "x$ac_lo" != "x$ac_hi"; do | |
15673 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15674 | cat >conftest.$ac_ext <<_ACEOF | |
15675 | /* confdefs.h. */ | |
15676 | _ACEOF | |
15677 | cat confdefs.h >>conftest.$ac_ext | |
15678 | cat >>conftest.$ac_ext <<_ACEOF | |
15679 | /* end confdefs.h. */ | |
15680 | $ac_includes_default | |
15681 | int | |
15682 | main () | |
15683 | { | |
15684 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15685 | test_array [0] = 0 | |
15686 | ||
15687 | ; | |
15688 | return 0; | |
15689 | } | |
15690 | _ACEOF | |
15691 | rm -f conftest.$ac_objext | |
15692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15693 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15694 | ac_status=$? |
ac1cb8d3 VS |
15695 | grep -v '^ *+' conftest.er1 >conftest.err |
15696 | rm -f conftest.er1 | |
15697 | cat conftest.err >&5 | |
a848cd7e SC |
15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15699 | (exit $ac_status); } && | |
04840eaa VS |
15700 | { ac_try='test -z "$ac_c_werror_flag" |
15701 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15703 | (eval $ac_try) 2>&5 | |
15704 | ac_status=$? | |
15705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15706 | (exit $ac_status); }; } && | |
15707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15709 | (eval $ac_try) 2>&5 | |
15710 | ac_status=$? | |
15711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15712 | (exit $ac_status); }; }; then | |
15713 | ac_hi=$ac_mid | |
15714 | else | |
15715 | echo "$as_me: failed program was:" >&5 | |
15716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15717 | ||
15718 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15719 | fi | |
ac1cb8d3 | 15720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15721 | done |
15722 | case $ac_lo in | |
15723 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15724 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15725 | See \`config.log' for more details." >&5 | |
15726 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15727 | See \`config.log' for more details." >&2;} | |
15728 | { (exit 1); exit 1; }; } ;; | |
15729 | esac | |
15730 | else | |
15731 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
15732 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15733 | See \`config.log' for more details." >&5 | |
15734 | echo "$as_me: error: cannot run test program while cross compiling | |
15735 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15736 | { (exit 1); exit 1; }; } |
15737 | else | |
15738 | cat >conftest.$ac_ext <<_ACEOF | |
15739 | /* confdefs.h. */ | |
15740 | _ACEOF | |
15741 | cat confdefs.h >>conftest.$ac_ext | |
15742 | cat >>conftest.$ac_ext <<_ACEOF | |
15743 | /* end confdefs.h. */ | |
15744 | $ac_includes_default | |
15745 | long longval () { return (long) (sizeof (void *)); } | |
15746 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15747 | #include <stdio.h> | |
15748 | #include <stdlib.h> | |
15749 | int | |
15750 | main () | |
15751 | { | |
15752 | ||
15753 | FILE *f = fopen ("conftest.val", "w"); | |
15754 | if (! f) | |
15755 | exit (1); | |
15756 | if (((long) (sizeof (void *))) < 0) | |
15757 | { | |
15758 | long i = longval (); | |
15759 | if (i != ((long) (sizeof (void *)))) | |
15760 | exit (1); | |
15761 | fprintf (f, "%ld\n", i); | |
15762 | } | |
15763 | else | |
15764 | { | |
15765 | unsigned long i = ulongval (); | |
15766 | if (i != ((long) (sizeof (void *)))) | |
15767 | exit (1); | |
15768 | fprintf (f, "%lu\n", i); | |
15769 | } | |
15770 | exit (ferror (f) || fclose (f) != 0); | |
15771 | ||
15772 | ; | |
15773 | return 0; | |
15774 | } | |
15775 | _ACEOF | |
15776 | rm -f conftest$ac_exeext | |
15777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15778 | (eval $ac_link) 2>&5 | |
15779 | ac_status=$? | |
15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15781 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15783 | (eval $ac_try) 2>&5 | |
15784 | ac_status=$? | |
15785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15786 | (exit $ac_status); }; }; then | |
15787 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15788 | else | |
15789 | echo "$as_me: program exited with status $ac_status" >&5 | |
15790 | echo "$as_me: failed program was:" >&5 | |
15791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15792 | ||
15793 | ( exit $ac_status ) | |
15794 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15795 | See \`config.log' for more details." >&5 | |
15796 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15797 | See \`config.log' for more details." >&2;} | |
15798 | { (exit 1); exit 1; }; } | |
15799 | fi | |
ac1cb8d3 | 15800 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15801 | fi |
15802 | fi | |
15803 | rm -f conftest.val | |
15804 | else | |
15805 | ac_cv_sizeof_void_p=0 | |
15806 | fi | |
15807 | fi | |
15808 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15809 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15810 | cat >>confdefs.h <<_ACEOF | |
15811 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15812 | _ACEOF | |
15813 | ||
15814 | ||
15815 | echo "$as_me:$LINENO: checking for int" >&5 | |
15816 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15817 | if test "${ac_cv_type_int+set}" = set; then | |
15818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15819 | else | |
15820 | cat >conftest.$ac_ext <<_ACEOF | |
15821 | /* confdefs.h. */ | |
15822 | _ACEOF | |
15823 | cat confdefs.h >>conftest.$ac_ext | |
15824 | cat >>conftest.$ac_ext <<_ACEOF | |
15825 | /* end confdefs.h. */ | |
15826 | $ac_includes_default | |
15827 | int | |
15828 | main () | |
15829 | { | |
15830 | if ((int *) 0) | |
15831 | return 0; | |
15832 | if (sizeof (int)) | |
15833 | return 0; | |
15834 | ; | |
15835 | return 0; | |
15836 | } | |
15837 | _ACEOF | |
15838 | rm -f conftest.$ac_objext | |
15839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15840 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15841 | ac_status=$? |
ac1cb8d3 VS |
15842 | grep -v '^ *+' conftest.er1 >conftest.err |
15843 | rm -f conftest.er1 | |
15844 | cat conftest.err >&5 | |
a848cd7e SC |
15845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15846 | (exit $ac_status); } && | |
04840eaa VS |
15847 | { ac_try='test -z "$ac_c_werror_flag" |
15848 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15850 | (eval $ac_try) 2>&5 | |
15851 | ac_status=$? | |
15852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15853 | (exit $ac_status); }; } && | |
15854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
15860 | ac_cv_type_int=yes | |
15861 | else | |
15862 | echo "$as_me: failed program was:" >&5 | |
15863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15864 | ||
15865 | ac_cv_type_int=no | |
15866 | fi | |
ac1cb8d3 | 15867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15868 | fi |
15869 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15870 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15871 | ||
15872 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15873 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15874 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15876 | else | |
15877 | if test "$ac_cv_type_int" = yes; then | |
15878 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15879 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15880 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15881 | # This bug is HP SR number 8606223364. | |
15882 | if test "$cross_compiling" = yes; then | |
15883 | # Depending upon the size, compute the lo and hi bounds. | |
15884 | cat >conftest.$ac_ext <<_ACEOF | |
15885 | /* confdefs.h. */ | |
15886 | _ACEOF | |
15887 | cat confdefs.h >>conftest.$ac_ext | |
15888 | cat >>conftest.$ac_ext <<_ACEOF | |
15889 | /* end confdefs.h. */ | |
15890 | $ac_includes_default | |
15891 | int | |
15892 | main () | |
15893 | { | |
15894 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15895 | test_array [0] = 0 | |
15896 | ||
15897 | ; | |
15898 | return 0; | |
15899 | } | |
15900 | _ACEOF | |
15901 | rm -f conftest.$ac_objext | |
15902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15903 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15904 | ac_status=$? |
ac1cb8d3 VS |
15905 | grep -v '^ *+' conftest.er1 >conftest.err |
15906 | rm -f conftest.er1 | |
15907 | cat conftest.err >&5 | |
a848cd7e SC |
15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15909 | (exit $ac_status); } && | |
04840eaa VS |
15910 | { ac_try='test -z "$ac_c_werror_flag" |
15911 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15913 | (eval $ac_try) 2>&5 | |
15914 | ac_status=$? | |
15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15916 | (exit $ac_status); }; } && | |
15917 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15919 | (eval $ac_try) 2>&5 | |
15920 | ac_status=$? | |
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15922 | (exit $ac_status); }; }; then | |
15923 | ac_lo=0 ac_mid=0 | |
15924 | while :; do | |
15925 | cat >conftest.$ac_ext <<_ACEOF | |
15926 | /* confdefs.h. */ | |
15927 | _ACEOF | |
15928 | cat confdefs.h >>conftest.$ac_ext | |
15929 | cat >>conftest.$ac_ext <<_ACEOF | |
15930 | /* end confdefs.h. */ | |
15931 | $ac_includes_default | |
15932 | int | |
15933 | main () | |
15934 | { | |
15935 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15936 | test_array [0] = 0 | |
15937 | ||
15938 | ; | |
15939 | return 0; | |
15940 | } | |
15941 | _ACEOF | |
15942 | rm -f conftest.$ac_objext | |
15943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15945 | ac_status=$? |
ac1cb8d3 VS |
15946 | grep -v '^ *+' conftest.er1 >conftest.err |
15947 | rm -f conftest.er1 | |
15948 | cat conftest.err >&5 | |
a848cd7e SC |
15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15950 | (exit $ac_status); } && | |
04840eaa VS |
15951 | { ac_try='test -z "$ac_c_werror_flag" |
15952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15954 | (eval $ac_try) 2>&5 | |
15955 | ac_status=$? | |
15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15957 | (exit $ac_status); }; } && | |
15958 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15960 | (eval $ac_try) 2>&5 | |
15961 | ac_status=$? | |
15962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15963 | (exit $ac_status); }; }; then | |
15964 | ac_hi=$ac_mid; break | |
15965 | else | |
15966 | echo "$as_me: failed program was:" >&5 | |
15967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15968 | ||
15969 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15970 | if test $ac_lo -le $ac_mid; then |
15971 | ac_lo= ac_hi= | |
15972 | break | |
15973 | fi | |
15974 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15975 | fi |
ac1cb8d3 | 15976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15977 | done |
15978 | else | |
15979 | echo "$as_me: failed program was:" >&5 | |
15980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15981 | ||
15982 | cat >conftest.$ac_ext <<_ACEOF | |
15983 | /* confdefs.h. */ | |
15984 | _ACEOF | |
15985 | cat confdefs.h >>conftest.$ac_ext | |
15986 | cat >>conftest.$ac_ext <<_ACEOF | |
15987 | /* end confdefs.h. */ | |
15988 | $ac_includes_default | |
15989 | int | |
15990 | main () | |
15991 | { | |
15992 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15993 | test_array [0] = 0 | |
15994 | ||
15995 | ; | |
15996 | return 0; | |
15997 | } | |
15998 | _ACEOF | |
15999 | rm -f conftest.$ac_objext | |
16000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16001 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16002 | ac_status=$? |
ac1cb8d3 VS |
16003 | grep -v '^ *+' conftest.er1 >conftest.err |
16004 | rm -f conftest.er1 | |
16005 | cat conftest.err >&5 | |
a848cd7e SC |
16006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16007 | (exit $ac_status); } && | |
04840eaa VS |
16008 | { ac_try='test -z "$ac_c_werror_flag" |
16009 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16011 | (eval $ac_try) 2>&5 | |
16012 | ac_status=$? | |
16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16014 | (exit $ac_status); }; } && | |
16015 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16017 | (eval $ac_try) 2>&5 | |
16018 | ac_status=$? | |
16019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16020 | (exit $ac_status); }; }; then | |
16021 | ac_hi=-1 ac_mid=-1 | |
16022 | while :; do | |
16023 | cat >conftest.$ac_ext <<_ACEOF | |
16024 | /* confdefs.h. */ | |
16025 | _ACEOF | |
16026 | cat confdefs.h >>conftest.$ac_ext | |
16027 | cat >>conftest.$ac_ext <<_ACEOF | |
16028 | /* end confdefs.h. */ | |
16029 | $ac_includes_default | |
16030 | int | |
16031 | main () | |
16032 | { | |
16033 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16034 | test_array [0] = 0 | |
16035 | ||
16036 | ; | |
16037 | return 0; | |
16038 | } | |
16039 | _ACEOF | |
16040 | rm -f conftest.$ac_objext | |
16041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16042 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16043 | ac_status=$? |
ac1cb8d3 VS |
16044 | grep -v '^ *+' conftest.er1 >conftest.err |
16045 | rm -f conftest.er1 | |
16046 | cat conftest.err >&5 | |
a848cd7e SC |
16047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16048 | (exit $ac_status); } && | |
04840eaa VS |
16049 | { ac_try='test -z "$ac_c_werror_flag" |
16050 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16052 | (eval $ac_try) 2>&5 | |
16053 | ac_status=$? | |
16054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16055 | (exit $ac_status); }; } && | |
16056 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16058 | (eval $ac_try) 2>&5 | |
16059 | ac_status=$? | |
16060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16061 | (exit $ac_status); }; }; then | |
16062 | ac_lo=$ac_mid; break | |
16063 | else | |
16064 | echo "$as_me: failed program was:" >&5 | |
16065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16066 | ||
16067 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16068 | if test $ac_mid -le $ac_hi; then |
16069 | ac_lo= ac_hi= | |
16070 | break | |
16071 | fi | |
16072 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16073 | fi |
ac1cb8d3 | 16074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16075 | done |
16076 | else | |
16077 | echo "$as_me: failed program was:" >&5 | |
16078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16079 | ||
16080 | ac_lo= ac_hi= | |
16081 | fi | |
ac1cb8d3 | 16082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16083 | fi |
ac1cb8d3 | 16084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16085 | # Binary search between lo and hi bounds. |
16086 | while test "x$ac_lo" != "x$ac_hi"; do | |
16087 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16088 | cat >conftest.$ac_ext <<_ACEOF | |
16089 | /* confdefs.h. */ | |
16090 | _ACEOF | |
16091 | cat confdefs.h >>conftest.$ac_ext | |
16092 | cat >>conftest.$ac_ext <<_ACEOF | |
16093 | /* end confdefs.h. */ | |
16094 | $ac_includes_default | |
16095 | int | |
16096 | main () | |
16097 | { | |
16098 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16099 | test_array [0] = 0 | |
16100 | ||
16101 | ; | |
16102 | return 0; | |
16103 | } | |
16104 | _ACEOF | |
16105 | rm -f conftest.$ac_objext | |
16106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16107 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16108 | ac_status=$? |
ac1cb8d3 VS |
16109 | grep -v '^ *+' conftest.er1 >conftest.err |
16110 | rm -f conftest.er1 | |
16111 | cat conftest.err >&5 | |
a848cd7e SC |
16112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16113 | (exit $ac_status); } && | |
04840eaa VS |
16114 | { ac_try='test -z "$ac_c_werror_flag" |
16115 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16117 | (eval $ac_try) 2>&5 | |
16118 | ac_status=$? | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); }; } && | |
16121 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16123 | (eval $ac_try) 2>&5 | |
16124 | ac_status=$? | |
16125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16126 | (exit $ac_status); }; }; then | |
16127 | ac_hi=$ac_mid | |
16128 | else | |
16129 | echo "$as_me: failed program was:" >&5 | |
16130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16131 | ||
16132 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16133 | fi | |
ac1cb8d3 | 16134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16135 | done |
16136 | case $ac_lo in | |
16137 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16138 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16139 | See \`config.log' for more details." >&5 | |
16140 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16141 | See \`config.log' for more details." >&2;} | |
16142 | { (exit 1); exit 1; }; } ;; | |
16143 | esac | |
16144 | else | |
16145 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
16146 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16147 | See \`config.log' for more details." >&5 | |
16148 | echo "$as_me: error: cannot run test program while cross compiling | |
16149 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16150 | { (exit 1); exit 1; }; } |
16151 | else | |
16152 | cat >conftest.$ac_ext <<_ACEOF | |
16153 | /* confdefs.h. */ | |
16154 | _ACEOF | |
16155 | cat confdefs.h >>conftest.$ac_ext | |
16156 | cat >>conftest.$ac_ext <<_ACEOF | |
16157 | /* end confdefs.h. */ | |
16158 | $ac_includes_default | |
16159 | long longval () { return (long) (sizeof (int)); } | |
16160 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16161 | #include <stdio.h> | |
16162 | #include <stdlib.h> | |
16163 | int | |
16164 | main () | |
16165 | { | |
16166 | ||
16167 | FILE *f = fopen ("conftest.val", "w"); | |
16168 | if (! f) | |
16169 | exit (1); | |
16170 | if (((long) (sizeof (int))) < 0) | |
16171 | { | |
16172 | long i = longval (); | |
16173 | if (i != ((long) (sizeof (int)))) | |
16174 | exit (1); | |
16175 | fprintf (f, "%ld\n", i); | |
16176 | } | |
16177 | else | |
16178 | { | |
16179 | unsigned long i = ulongval (); | |
16180 | if (i != ((long) (sizeof (int)))) | |
16181 | exit (1); | |
16182 | fprintf (f, "%lu\n", i); | |
16183 | } | |
16184 | exit (ferror (f) || fclose (f) != 0); | |
16185 | ||
16186 | ; | |
16187 | return 0; | |
16188 | } | |
16189 | _ACEOF | |
16190 | rm -f conftest$ac_exeext | |
16191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16192 | (eval $ac_link) 2>&5 | |
16193 | ac_status=$? | |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16197 | (eval $ac_try) 2>&5 | |
16198 | ac_status=$? | |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); }; }; then | |
16201 | ac_cv_sizeof_int=`cat conftest.val` | |
16202 | else | |
16203 | echo "$as_me: program exited with status $ac_status" >&5 | |
16204 | echo "$as_me: failed program was:" >&5 | |
16205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16206 | ||
16207 | ( exit $ac_status ) | |
16208 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16209 | See \`config.log' for more details." >&5 | |
16210 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16211 | See \`config.log' for more details." >&2;} | |
16212 | { (exit 1); exit 1; }; } | |
16213 | fi | |
ac1cb8d3 | 16214 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16215 | fi |
16216 | fi | |
16217 | rm -f conftest.val | |
16218 | else | |
16219 | ac_cv_sizeof_int=0 | |
16220 | fi | |
16221 | fi | |
16222 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16223 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16224 | cat >>confdefs.h <<_ACEOF | |
16225 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16226 | _ACEOF | |
16227 | ||
16228 | ||
16229 | echo "$as_me:$LINENO: checking for long" >&5 | |
16230 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16231 | if test "${ac_cv_type_long+set}" = set; then | |
16232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16233 | else | |
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 | if ((long *) 0) | |
16245 | return 0; | |
16246 | if (sizeof (long)) | |
16247 | return 0; | |
16248 | ; | |
16249 | return 0; | |
16250 | } | |
16251 | _ACEOF | |
16252 | rm -f conftest.$ac_objext | |
16253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16254 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16255 | ac_status=$? |
ac1cb8d3 VS |
16256 | grep -v '^ *+' conftest.er1 >conftest.err |
16257 | rm -f conftest.er1 | |
16258 | cat conftest.err >&5 | |
a848cd7e SC |
16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16260 | (exit $ac_status); } && | |
04840eaa VS |
16261 | { ac_try='test -z "$ac_c_werror_flag" |
16262 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16264 | (eval $ac_try) 2>&5 | |
16265 | ac_status=$? | |
16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16267 | (exit $ac_status); }; } && | |
16268 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16270 | (eval $ac_try) 2>&5 | |
16271 | ac_status=$? | |
16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16273 | (exit $ac_status); }; }; then | |
16274 | ac_cv_type_long=yes | |
16275 | else | |
16276 | echo "$as_me: failed program was:" >&5 | |
16277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16278 | ||
16279 | ac_cv_type_long=no | |
16280 | fi | |
ac1cb8d3 | 16281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16282 | fi |
16283 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16284 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16285 | ||
16286 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16287 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16288 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16290 | else | |
16291 | if test "$ac_cv_type_long" = yes; then | |
16292 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16293 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16294 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16295 | # This bug is HP SR number 8606223364. | |
16296 | if test "$cross_compiling" = yes; then | |
16297 | # Depending upon the size, compute the lo and hi bounds. | |
16298 | cat >conftest.$ac_ext <<_ACEOF | |
16299 | /* confdefs.h. */ | |
16300 | _ACEOF | |
16301 | cat confdefs.h >>conftest.$ac_ext | |
16302 | cat >>conftest.$ac_ext <<_ACEOF | |
16303 | /* end confdefs.h. */ | |
16304 | $ac_includes_default | |
16305 | int | |
16306 | main () | |
16307 | { | |
16308 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16309 | test_array [0] = 0 | |
16310 | ||
16311 | ; | |
16312 | return 0; | |
16313 | } | |
16314 | _ACEOF | |
16315 | rm -f conftest.$ac_objext | |
16316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16318 | ac_status=$? |
ac1cb8d3 VS |
16319 | grep -v '^ *+' conftest.er1 >conftest.err |
16320 | rm -f conftest.er1 | |
16321 | cat conftest.err >&5 | |
a848cd7e SC |
16322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16323 | (exit $ac_status); } && | |
04840eaa VS |
16324 | { ac_try='test -z "$ac_c_werror_flag" |
16325 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16327 | (eval $ac_try) 2>&5 | |
16328 | ac_status=$? | |
16329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16330 | (exit $ac_status); }; } && | |
16331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16333 | (eval $ac_try) 2>&5 | |
16334 | ac_status=$? | |
16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16336 | (exit $ac_status); }; }; then | |
16337 | ac_lo=0 ac_mid=0 | |
16338 | while :; do | |
16339 | cat >conftest.$ac_ext <<_ACEOF | |
16340 | /* confdefs.h. */ | |
16341 | _ACEOF | |
16342 | cat confdefs.h >>conftest.$ac_ext | |
16343 | cat >>conftest.$ac_ext <<_ACEOF | |
16344 | /* end confdefs.h. */ | |
16345 | $ac_includes_default | |
16346 | int | |
16347 | main () | |
16348 | { | |
16349 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16350 | test_array [0] = 0 | |
16351 | ||
16352 | ; | |
16353 | return 0; | |
16354 | } | |
16355 | _ACEOF | |
16356 | rm -f conftest.$ac_objext | |
16357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16359 | ac_status=$? |
ac1cb8d3 VS |
16360 | grep -v '^ *+' conftest.er1 >conftest.err |
16361 | rm -f conftest.er1 | |
16362 | cat conftest.err >&5 | |
a848cd7e SC |
16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16364 | (exit $ac_status); } && | |
04840eaa VS |
16365 | { ac_try='test -z "$ac_c_werror_flag" |
16366 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16368 | (eval $ac_try) 2>&5 | |
16369 | ac_status=$? | |
16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16371 | (exit $ac_status); }; } && | |
16372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16374 | (eval $ac_try) 2>&5 | |
16375 | ac_status=$? | |
16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16377 | (exit $ac_status); }; }; then | |
16378 | ac_hi=$ac_mid; break | |
16379 | else | |
16380 | echo "$as_me: failed program was:" >&5 | |
16381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16382 | ||
16383 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16384 | if test $ac_lo -le $ac_mid; then |
16385 | ac_lo= ac_hi= | |
16386 | break | |
16387 | fi | |
16388 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16389 | fi |
ac1cb8d3 | 16390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16391 | done |
16392 | else | |
16393 | echo "$as_me: failed program was:" >&5 | |
16394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16395 | ||
16396 | cat >conftest.$ac_ext <<_ACEOF | |
16397 | /* confdefs.h. */ | |
16398 | _ACEOF | |
16399 | cat confdefs.h >>conftest.$ac_ext | |
16400 | cat >>conftest.$ac_ext <<_ACEOF | |
16401 | /* end confdefs.h. */ | |
16402 | $ac_includes_default | |
16403 | int | |
16404 | main () | |
16405 | { | |
16406 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16407 | test_array [0] = 0 | |
16408 | ||
16409 | ; | |
16410 | return 0; | |
16411 | } | |
16412 | _ACEOF | |
16413 | rm -f conftest.$ac_objext | |
16414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16415 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16416 | ac_status=$? |
ac1cb8d3 VS |
16417 | grep -v '^ *+' conftest.er1 >conftest.err |
16418 | rm -f conftest.er1 | |
16419 | cat conftest.err >&5 | |
a848cd7e SC |
16420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16421 | (exit $ac_status); } && | |
04840eaa VS |
16422 | { ac_try='test -z "$ac_c_werror_flag" |
16423 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16425 | (eval $ac_try) 2>&5 | |
16426 | ac_status=$? | |
16427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16428 | (exit $ac_status); }; } && | |
16429 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16431 | (eval $ac_try) 2>&5 | |
16432 | ac_status=$? | |
16433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16434 | (exit $ac_status); }; }; then | |
16435 | ac_hi=-1 ac_mid=-1 | |
16436 | while :; do | |
16437 | cat >conftest.$ac_ext <<_ACEOF | |
16438 | /* confdefs.h. */ | |
16439 | _ACEOF | |
16440 | cat confdefs.h >>conftest.$ac_ext | |
16441 | cat >>conftest.$ac_ext <<_ACEOF | |
16442 | /* end confdefs.h. */ | |
16443 | $ac_includes_default | |
16444 | int | |
16445 | main () | |
16446 | { | |
16447 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16448 | test_array [0] = 0 | |
16449 | ||
16450 | ; | |
16451 | return 0; | |
16452 | } | |
16453 | _ACEOF | |
16454 | rm -f conftest.$ac_objext | |
16455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16456 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16457 | ac_status=$? |
ac1cb8d3 VS |
16458 | grep -v '^ *+' conftest.er1 >conftest.err |
16459 | rm -f conftest.er1 | |
16460 | cat conftest.err >&5 | |
a848cd7e SC |
16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16462 | (exit $ac_status); } && | |
04840eaa VS |
16463 | { ac_try='test -z "$ac_c_werror_flag" |
16464 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16466 | (eval $ac_try) 2>&5 | |
16467 | ac_status=$? | |
16468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16469 | (exit $ac_status); }; } && | |
16470 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16472 | (eval $ac_try) 2>&5 | |
16473 | ac_status=$? | |
16474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16475 | (exit $ac_status); }; }; then | |
16476 | ac_lo=$ac_mid; break | |
16477 | else | |
16478 | echo "$as_me: failed program was:" >&5 | |
16479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16480 | ||
16481 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16482 | if test $ac_mid -le $ac_hi; then |
16483 | ac_lo= ac_hi= | |
16484 | break | |
16485 | fi | |
16486 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16487 | fi |
ac1cb8d3 | 16488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16489 | done |
16490 | else | |
16491 | echo "$as_me: failed program was:" >&5 | |
16492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16493 | ||
16494 | ac_lo= ac_hi= | |
16495 | fi | |
ac1cb8d3 | 16496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16497 | fi |
ac1cb8d3 | 16498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16499 | # Binary search between lo and hi bounds. |
16500 | while test "x$ac_lo" != "x$ac_hi"; do | |
16501 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16502 | cat >conftest.$ac_ext <<_ACEOF | |
16503 | /* confdefs.h. */ | |
16504 | _ACEOF | |
16505 | cat confdefs.h >>conftest.$ac_ext | |
16506 | cat >>conftest.$ac_ext <<_ACEOF | |
16507 | /* end confdefs.h. */ | |
16508 | $ac_includes_default | |
16509 | int | |
16510 | main () | |
16511 | { | |
16512 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16513 | test_array [0] = 0 | |
16514 | ||
16515 | ; | |
16516 | return 0; | |
16517 | } | |
16518 | _ACEOF | |
16519 | rm -f conftest.$ac_objext | |
16520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16521 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16522 | ac_status=$? |
ac1cb8d3 VS |
16523 | grep -v '^ *+' conftest.er1 >conftest.err |
16524 | rm -f conftest.er1 | |
16525 | cat conftest.err >&5 | |
a848cd7e SC |
16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16527 | (exit $ac_status); } && | |
04840eaa VS |
16528 | { ac_try='test -z "$ac_c_werror_flag" |
16529 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16531 | (eval $ac_try) 2>&5 | |
16532 | ac_status=$? | |
16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16534 | (exit $ac_status); }; } && | |
16535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); }; }; then | |
16541 | ac_hi=$ac_mid | |
16542 | else | |
16543 | echo "$as_me: failed program was:" >&5 | |
16544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16545 | ||
16546 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16547 | fi | |
ac1cb8d3 | 16548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16549 | done |
16550 | case $ac_lo in | |
16551 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16552 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16553 | See \`config.log' for more details." >&5 | |
16554 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16555 | See \`config.log' for more details." >&2;} | |
16556 | { (exit 1); exit 1; }; } ;; | |
16557 | esac | |
16558 | else | |
16559 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
16560 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16561 | See \`config.log' for more details." >&5 | |
16562 | echo "$as_me: error: cannot run test program while cross compiling | |
16563 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16564 | { (exit 1); exit 1; }; } |
16565 | else | |
16566 | cat >conftest.$ac_ext <<_ACEOF | |
16567 | /* confdefs.h. */ | |
16568 | _ACEOF | |
16569 | cat confdefs.h >>conftest.$ac_ext | |
16570 | cat >>conftest.$ac_ext <<_ACEOF | |
16571 | /* end confdefs.h. */ | |
16572 | $ac_includes_default | |
16573 | long longval () { return (long) (sizeof (long)); } | |
16574 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16575 | #include <stdio.h> | |
16576 | #include <stdlib.h> | |
16577 | int | |
16578 | main () | |
16579 | { | |
16580 | ||
16581 | FILE *f = fopen ("conftest.val", "w"); | |
16582 | if (! f) | |
16583 | exit (1); | |
16584 | if (((long) (sizeof (long))) < 0) | |
16585 | { | |
16586 | long i = longval (); | |
16587 | if (i != ((long) (sizeof (long)))) | |
16588 | exit (1); | |
16589 | fprintf (f, "%ld\n", i); | |
16590 | } | |
16591 | else | |
16592 | { | |
16593 | unsigned long i = ulongval (); | |
16594 | if (i != ((long) (sizeof (long)))) | |
16595 | exit (1); | |
16596 | fprintf (f, "%lu\n", i); | |
16597 | } | |
16598 | exit (ferror (f) || fclose (f) != 0); | |
16599 | ||
16600 | ; | |
16601 | return 0; | |
16602 | } | |
16603 | _ACEOF | |
16604 | rm -f conftest$ac_exeext | |
16605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16606 | (eval $ac_link) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16611 | (eval $ac_try) 2>&5 | |
16612 | ac_status=$? | |
16613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16614 | (exit $ac_status); }; }; then | |
16615 | ac_cv_sizeof_long=`cat conftest.val` | |
16616 | else | |
16617 | echo "$as_me: program exited with status $ac_status" >&5 | |
16618 | echo "$as_me: failed program was:" >&5 | |
16619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16620 | ||
16621 | ( exit $ac_status ) | |
16622 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16623 | See \`config.log' for more details." >&5 | |
16624 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16625 | See \`config.log' for more details." >&2;} | |
16626 | { (exit 1); exit 1; }; } | |
16627 | fi | |
ac1cb8d3 | 16628 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16629 | fi |
16630 | fi | |
16631 | rm -f conftest.val | |
16632 | else | |
16633 | ac_cv_sizeof_long=0 | |
16634 | fi | |
16635 | fi | |
16636 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16637 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16638 | cat >>confdefs.h <<_ACEOF | |
16639 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16640 | _ACEOF | |
16641 | ||
16642 | ||
16643 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16644 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16645 | if test "${ac_cv_type_size_t+set}" = set; then | |
16646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16647 | else | |
16648 | cat >conftest.$ac_ext <<_ACEOF | |
16649 | /* confdefs.h. */ | |
16650 | _ACEOF | |
16651 | cat confdefs.h >>conftest.$ac_ext | |
16652 | cat >>conftest.$ac_ext <<_ACEOF | |
16653 | /* end confdefs.h. */ | |
16654 | $ac_includes_default | |
16655 | int | |
16656 | main () | |
16657 | { | |
16658 | if ((size_t *) 0) | |
16659 | return 0; | |
16660 | if (sizeof (size_t)) | |
16661 | return 0; | |
16662 | ; | |
16663 | return 0; | |
16664 | } | |
16665 | _ACEOF | |
16666 | rm -f conftest.$ac_objext | |
16667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16668 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16669 | ac_status=$? |
ac1cb8d3 VS |
16670 | grep -v '^ *+' conftest.er1 >conftest.err |
16671 | rm -f conftest.er1 | |
16672 | cat conftest.err >&5 | |
a848cd7e SC |
16673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16674 | (exit $ac_status); } && | |
04840eaa VS |
16675 | { ac_try='test -z "$ac_c_werror_flag" |
16676 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16678 | (eval $ac_try) 2>&5 | |
16679 | ac_status=$? | |
16680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16681 | (exit $ac_status); }; } && | |
16682 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16684 | (eval $ac_try) 2>&5 | |
16685 | ac_status=$? | |
16686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16687 | (exit $ac_status); }; }; then | |
16688 | ac_cv_type_size_t=yes | |
16689 | else | |
16690 | echo "$as_me: failed program was:" >&5 | |
16691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16692 | ||
16693 | ac_cv_type_size_t=no | |
16694 | fi | |
ac1cb8d3 | 16695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16696 | fi |
16697 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16698 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16699 | ||
16700 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16701 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16702 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16704 | else | |
16705 | if test "$ac_cv_type_size_t" = yes; then | |
16706 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16707 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16708 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16709 | # This bug is HP SR number 8606223364. | |
16710 | if test "$cross_compiling" = yes; then | |
16711 | # Depending upon the size, compute the lo and hi bounds. | |
16712 | cat >conftest.$ac_ext <<_ACEOF | |
16713 | /* confdefs.h. */ | |
16714 | _ACEOF | |
16715 | cat confdefs.h >>conftest.$ac_ext | |
16716 | cat >>conftest.$ac_ext <<_ACEOF | |
16717 | /* end confdefs.h. */ | |
16718 | $ac_includes_default | |
16719 | int | |
16720 | main () | |
16721 | { | |
16722 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16723 | test_array [0] = 0 | |
16724 | ||
16725 | ; | |
16726 | return 0; | |
16727 | } | |
16728 | _ACEOF | |
16729 | rm -f conftest.$ac_objext | |
16730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16732 | ac_status=$? |
ac1cb8d3 VS |
16733 | grep -v '^ *+' conftest.er1 >conftest.err |
16734 | rm -f conftest.er1 | |
16735 | cat conftest.err >&5 | |
a848cd7e SC |
16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16737 | (exit $ac_status); } && | |
04840eaa VS |
16738 | { ac_try='test -z "$ac_c_werror_flag" |
16739 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16741 | (eval $ac_try) 2>&5 | |
16742 | ac_status=$? | |
16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16744 | (exit $ac_status); }; } && | |
16745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16747 | (eval $ac_try) 2>&5 | |
16748 | ac_status=$? | |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16750 | (exit $ac_status); }; }; then | |
16751 | ac_lo=0 ac_mid=0 | |
16752 | while :; do | |
16753 | cat >conftest.$ac_ext <<_ACEOF | |
16754 | /* confdefs.h. */ | |
16755 | _ACEOF | |
16756 | cat confdefs.h >>conftest.$ac_ext | |
16757 | cat >>conftest.$ac_ext <<_ACEOF | |
16758 | /* end confdefs.h. */ | |
16759 | $ac_includes_default | |
16760 | int | |
16761 | main () | |
16762 | { | |
16763 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16764 | test_array [0] = 0 | |
16765 | ||
16766 | ; | |
16767 | return 0; | |
16768 | } | |
16769 | _ACEOF | |
16770 | rm -f conftest.$ac_objext | |
16771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16773 | ac_status=$? |
ac1cb8d3 VS |
16774 | grep -v '^ *+' conftest.er1 >conftest.err |
16775 | rm -f conftest.er1 | |
16776 | cat conftest.err >&5 | |
a848cd7e SC |
16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16778 | (exit $ac_status); } && | |
04840eaa VS |
16779 | { ac_try='test -z "$ac_c_werror_flag" |
16780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16782 | (eval $ac_try) 2>&5 | |
16783 | ac_status=$? | |
16784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16785 | (exit $ac_status); }; } && | |
16786 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16788 | (eval $ac_try) 2>&5 | |
16789 | ac_status=$? | |
16790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16791 | (exit $ac_status); }; }; then | |
16792 | ac_hi=$ac_mid; break | |
16793 | else | |
16794 | echo "$as_me: failed program was:" >&5 | |
16795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16796 | ||
16797 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16798 | if test $ac_lo -le $ac_mid; then |
16799 | ac_lo= ac_hi= | |
16800 | break | |
16801 | fi | |
16802 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16803 | fi |
ac1cb8d3 | 16804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16805 | done |
16806 | else | |
16807 | echo "$as_me: failed program was:" >&5 | |
16808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16809 | ||
16810 | cat >conftest.$ac_ext <<_ACEOF | |
16811 | /* confdefs.h. */ | |
16812 | _ACEOF | |
16813 | cat confdefs.h >>conftest.$ac_ext | |
16814 | cat >>conftest.$ac_ext <<_ACEOF | |
16815 | /* end confdefs.h. */ | |
16816 | $ac_includes_default | |
16817 | int | |
16818 | main () | |
16819 | { | |
16820 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16821 | test_array [0] = 0 | |
16822 | ||
16823 | ; | |
16824 | return 0; | |
16825 | } | |
16826 | _ACEOF | |
16827 | rm -f conftest.$ac_objext | |
16828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16829 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16830 | ac_status=$? |
ac1cb8d3 VS |
16831 | grep -v '^ *+' conftest.er1 >conftest.err |
16832 | rm -f conftest.er1 | |
16833 | cat conftest.err >&5 | |
a848cd7e SC |
16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16835 | (exit $ac_status); } && | |
04840eaa VS |
16836 | { ac_try='test -z "$ac_c_werror_flag" |
16837 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16839 | (eval $ac_try) 2>&5 | |
16840 | ac_status=$? | |
16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16842 | (exit $ac_status); }; } && | |
16843 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16845 | (eval $ac_try) 2>&5 | |
16846 | ac_status=$? | |
16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16848 | (exit $ac_status); }; }; then | |
16849 | ac_hi=-1 ac_mid=-1 | |
16850 | while :; do | |
16851 | cat >conftest.$ac_ext <<_ACEOF | |
16852 | /* confdefs.h. */ | |
16853 | _ACEOF | |
16854 | cat confdefs.h >>conftest.$ac_ext | |
16855 | cat >>conftest.$ac_ext <<_ACEOF | |
16856 | /* end confdefs.h. */ | |
16857 | $ac_includes_default | |
16858 | int | |
16859 | main () | |
16860 | { | |
16861 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16862 | test_array [0] = 0 | |
16863 | ||
16864 | ; | |
16865 | return 0; | |
16866 | } | |
16867 | _ACEOF | |
16868 | rm -f conftest.$ac_objext | |
16869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16870 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16871 | ac_status=$? |
ac1cb8d3 VS |
16872 | grep -v '^ *+' conftest.er1 >conftest.err |
16873 | rm -f conftest.er1 | |
16874 | cat conftest.err >&5 | |
a848cd7e SC |
16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16876 | (exit $ac_status); } && | |
04840eaa VS |
16877 | { ac_try='test -z "$ac_c_werror_flag" |
16878 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16880 | (eval $ac_try) 2>&5 | |
16881 | ac_status=$? | |
16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16883 | (exit $ac_status); }; } && | |
16884 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16886 | (eval $ac_try) 2>&5 | |
16887 | ac_status=$? | |
16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16889 | (exit $ac_status); }; }; then | |
16890 | ac_lo=$ac_mid; break | |
16891 | else | |
16892 | echo "$as_me: failed program was:" >&5 | |
16893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16894 | ||
16895 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16896 | if test $ac_mid -le $ac_hi; then |
16897 | ac_lo= ac_hi= | |
16898 | break | |
16899 | fi | |
16900 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16901 | fi |
ac1cb8d3 | 16902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16903 | done |
16904 | else | |
16905 | echo "$as_me: failed program was:" >&5 | |
16906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16907 | ||
16908 | ac_lo= ac_hi= | |
16909 | fi | |
ac1cb8d3 | 16910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16911 | fi |
ac1cb8d3 | 16912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16913 | # Binary search between lo and hi bounds. |
16914 | while test "x$ac_lo" != "x$ac_hi"; do | |
16915 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16916 | cat >conftest.$ac_ext <<_ACEOF | |
16917 | /* confdefs.h. */ | |
16918 | _ACEOF | |
16919 | cat confdefs.h >>conftest.$ac_ext | |
16920 | cat >>conftest.$ac_ext <<_ACEOF | |
16921 | /* end confdefs.h. */ | |
16922 | $ac_includes_default | |
16923 | int | |
16924 | main () | |
16925 | { | |
16926 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16927 | test_array [0] = 0 | |
16928 | ||
16929 | ; | |
16930 | return 0; | |
16931 | } | |
16932 | _ACEOF | |
16933 | rm -f conftest.$ac_objext | |
16934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16935 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16936 | ac_status=$? |
ac1cb8d3 VS |
16937 | grep -v '^ *+' conftest.er1 >conftest.err |
16938 | rm -f conftest.er1 | |
16939 | cat conftest.err >&5 | |
a848cd7e SC |
16940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16941 | (exit $ac_status); } && | |
04840eaa VS |
16942 | { ac_try='test -z "$ac_c_werror_flag" |
16943 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16945 | (eval $ac_try) 2>&5 | |
16946 | ac_status=$? | |
16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16948 | (exit $ac_status); }; } && | |
16949 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16951 | (eval $ac_try) 2>&5 | |
16952 | ac_status=$? | |
16953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16954 | (exit $ac_status); }; }; then | |
16955 | ac_hi=$ac_mid | |
16956 | else | |
16957 | echo "$as_me: failed program was:" >&5 | |
16958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16959 | ||
16960 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16961 | fi | |
ac1cb8d3 | 16962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16963 | done |
16964 | case $ac_lo in | |
16965 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16966 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16967 | See \`config.log' for more details." >&5 | |
16968 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16969 | See \`config.log' for more details." >&2;} | |
16970 | { (exit 1); exit 1; }; } ;; | |
16971 | esac | |
16972 | else | |
16973 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
16974 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16975 | See \`config.log' for more details." >&5 | |
16976 | echo "$as_me: error: cannot run test program while cross compiling | |
16977 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16978 | { (exit 1); exit 1; }; } |
16979 | else | |
16980 | cat >conftest.$ac_ext <<_ACEOF | |
16981 | /* confdefs.h. */ | |
16982 | _ACEOF | |
16983 | cat confdefs.h >>conftest.$ac_ext | |
16984 | cat >>conftest.$ac_ext <<_ACEOF | |
16985 | /* end confdefs.h. */ | |
16986 | $ac_includes_default | |
16987 | long longval () { return (long) (sizeof (size_t)); } | |
16988 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16989 | #include <stdio.h> | |
16990 | #include <stdlib.h> | |
16991 | int | |
16992 | main () | |
16993 | { | |
16994 | ||
16995 | FILE *f = fopen ("conftest.val", "w"); | |
16996 | if (! f) | |
16997 | exit (1); | |
16998 | if (((long) (sizeof (size_t))) < 0) | |
16999 | { | |
17000 | long i = longval (); | |
17001 | if (i != ((long) (sizeof (size_t)))) | |
17002 | exit (1); | |
17003 | fprintf (f, "%ld\n", i); | |
17004 | } | |
17005 | else | |
17006 | { | |
17007 | unsigned long i = ulongval (); | |
17008 | if (i != ((long) (sizeof (size_t)))) | |
17009 | exit (1); | |
17010 | fprintf (f, "%lu\n", i); | |
17011 | } | |
17012 | exit (ferror (f) || fclose (f) != 0); | |
17013 | ||
17014 | ; | |
17015 | return 0; | |
17016 | } | |
17017 | _ACEOF | |
17018 | rm -f conftest$ac_exeext | |
17019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17020 | (eval $ac_link) 2>&5 | |
17021 | ac_status=$? | |
17022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17023 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17025 | (eval $ac_try) 2>&5 | |
17026 | ac_status=$? | |
17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17028 | (exit $ac_status); }; }; then | |
17029 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17030 | else | |
17031 | echo "$as_me: program exited with status $ac_status" >&5 | |
17032 | echo "$as_me: failed program was:" >&5 | |
17033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17034 | ||
17035 | ( exit $ac_status ) | |
17036 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17037 | See \`config.log' for more details." >&5 | |
17038 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17039 | See \`config.log' for more details." >&2;} | |
17040 | { (exit 1); exit 1; }; } | |
17041 | fi | |
ac1cb8d3 | 17042 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17043 | fi |
17044 | fi | |
17045 | rm -f conftest.val | |
17046 | else | |
17047 | ac_cv_sizeof_size_t=0 | |
17048 | fi | |
17049 | fi | |
17050 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17051 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17052 | cat >>confdefs.h <<_ACEOF | |
17053 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17054 | _ACEOF | |
17055 | ||
17056 | ||
17057 | ||
17058 | case "${host}" in | |
17059 | arm-*-linux* ) | |
17060 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17061 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17062 | if test "${ac_cv_type_long_long+set}" = set; then | |
17063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17064 | else | |
17065 | cat >conftest.$ac_ext <<_ACEOF | |
17066 | /* confdefs.h. */ | |
17067 | _ACEOF | |
17068 | cat confdefs.h >>conftest.$ac_ext | |
17069 | cat >>conftest.$ac_ext <<_ACEOF | |
17070 | /* end confdefs.h. */ | |
17071 | $ac_includes_default | |
17072 | int | |
17073 | main () | |
17074 | { | |
17075 | if ((long long *) 0) | |
17076 | return 0; | |
17077 | if (sizeof (long long)) | |
17078 | return 0; | |
17079 | ; | |
17080 | return 0; | |
17081 | } | |
17082 | _ACEOF | |
17083 | rm -f conftest.$ac_objext | |
17084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17085 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17086 | ac_status=$? |
ac1cb8d3 VS |
17087 | grep -v '^ *+' conftest.er1 >conftest.err |
17088 | rm -f conftest.er1 | |
17089 | cat conftest.err >&5 | |
a848cd7e SC |
17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17091 | (exit $ac_status); } && | |
04840eaa VS |
17092 | { ac_try='test -z "$ac_c_werror_flag" |
17093 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17095 | (eval $ac_try) 2>&5 | |
17096 | ac_status=$? | |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); }; } && | |
17099 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17101 | (eval $ac_try) 2>&5 | |
17102 | ac_status=$? | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); }; }; then | |
17105 | ac_cv_type_long_long=yes | |
17106 | else | |
17107 | echo "$as_me: failed program was:" >&5 | |
17108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17109 | ||
17110 | ac_cv_type_long_long=no | |
17111 | fi | |
ac1cb8d3 | 17112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17113 | fi |
17114 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17115 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17116 | ||
17117 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17118 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17119 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17121 | else | |
17122 | if test "$ac_cv_type_long_long" = yes; then | |
17123 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17124 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17125 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17126 | # This bug is HP SR number 8606223364. | |
17127 | if test "$cross_compiling" = yes; then | |
17128 | # Depending upon the size, compute the lo and hi bounds. | |
17129 | cat >conftest.$ac_ext <<_ACEOF | |
17130 | /* confdefs.h. */ | |
17131 | _ACEOF | |
17132 | cat confdefs.h >>conftest.$ac_ext | |
17133 | cat >>conftest.$ac_ext <<_ACEOF | |
17134 | /* end confdefs.h. */ | |
17135 | $ac_includes_default | |
17136 | int | |
17137 | main () | |
17138 | { | |
17139 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17140 | test_array [0] = 0 | |
17141 | ||
17142 | ; | |
17143 | return 0; | |
17144 | } | |
17145 | _ACEOF | |
17146 | rm -f conftest.$ac_objext | |
17147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17148 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17149 | ac_status=$? |
ac1cb8d3 VS |
17150 | grep -v '^ *+' conftest.er1 >conftest.err |
17151 | rm -f conftest.er1 | |
17152 | cat conftest.err >&5 | |
a848cd7e SC |
17153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17154 | (exit $ac_status); } && | |
04840eaa VS |
17155 | { ac_try='test -z "$ac_c_werror_flag" |
17156 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17158 | (eval $ac_try) 2>&5 | |
17159 | ac_status=$? | |
17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17161 | (exit $ac_status); }; } && | |
17162 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17164 | (eval $ac_try) 2>&5 | |
17165 | ac_status=$? | |
17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17167 | (exit $ac_status); }; }; then | |
17168 | ac_lo=0 ac_mid=0 | |
17169 | while :; do | |
17170 | cat >conftest.$ac_ext <<_ACEOF | |
17171 | /* confdefs.h. */ | |
17172 | _ACEOF | |
17173 | cat confdefs.h >>conftest.$ac_ext | |
17174 | cat >>conftest.$ac_ext <<_ACEOF | |
17175 | /* end confdefs.h. */ | |
17176 | $ac_includes_default | |
17177 | int | |
17178 | main () | |
17179 | { | |
17180 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17181 | test_array [0] = 0 | |
17182 | ||
17183 | ; | |
17184 | return 0; | |
17185 | } | |
17186 | _ACEOF | |
17187 | rm -f conftest.$ac_objext | |
17188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17190 | ac_status=$? |
ac1cb8d3 VS |
17191 | grep -v '^ *+' conftest.er1 >conftest.err |
17192 | rm -f conftest.er1 | |
17193 | cat conftest.err >&5 | |
a848cd7e SC |
17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17195 | (exit $ac_status); } && | |
04840eaa VS |
17196 | { ac_try='test -z "$ac_c_werror_flag" |
17197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17199 | (eval $ac_try) 2>&5 | |
17200 | ac_status=$? | |
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17202 | (exit $ac_status); }; } && | |
17203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17205 | (eval $ac_try) 2>&5 | |
17206 | ac_status=$? | |
17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17208 | (exit $ac_status); }; }; then | |
17209 | ac_hi=$ac_mid; break | |
17210 | else | |
17211 | echo "$as_me: failed program was:" >&5 | |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17213 | ||
17214 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17215 | if test $ac_lo -le $ac_mid; then |
17216 | ac_lo= ac_hi= | |
17217 | break | |
17218 | fi | |
17219 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17220 | fi |
ac1cb8d3 | 17221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17222 | done |
17223 | else | |
17224 | echo "$as_me: failed program was:" >&5 | |
17225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17226 | ||
17227 | cat >conftest.$ac_ext <<_ACEOF | |
17228 | /* confdefs.h. */ | |
17229 | _ACEOF | |
17230 | cat confdefs.h >>conftest.$ac_ext | |
17231 | cat >>conftest.$ac_ext <<_ACEOF | |
17232 | /* end confdefs.h. */ | |
17233 | $ac_includes_default | |
17234 | int | |
17235 | main () | |
17236 | { | |
17237 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17238 | test_array [0] = 0 | |
17239 | ||
17240 | ; | |
17241 | return 0; | |
17242 | } | |
17243 | _ACEOF | |
17244 | rm -f conftest.$ac_objext | |
17245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17246 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17247 | ac_status=$? |
ac1cb8d3 VS |
17248 | grep -v '^ *+' conftest.er1 >conftest.err |
17249 | rm -f conftest.er1 | |
17250 | cat conftest.err >&5 | |
a848cd7e SC |
17251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17252 | (exit $ac_status); } && | |
04840eaa VS |
17253 | { ac_try='test -z "$ac_c_werror_flag" |
17254 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17256 | (eval $ac_try) 2>&5 | |
17257 | ac_status=$? | |
17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17259 | (exit $ac_status); }; } && | |
17260 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17262 | (eval $ac_try) 2>&5 | |
17263 | ac_status=$? | |
17264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17265 | (exit $ac_status); }; }; then | |
17266 | ac_hi=-1 ac_mid=-1 | |
17267 | while :; do | |
17268 | cat >conftest.$ac_ext <<_ACEOF | |
17269 | /* confdefs.h. */ | |
17270 | _ACEOF | |
17271 | cat confdefs.h >>conftest.$ac_ext | |
17272 | cat >>conftest.$ac_ext <<_ACEOF | |
17273 | /* end confdefs.h. */ | |
17274 | $ac_includes_default | |
17275 | int | |
17276 | main () | |
17277 | { | |
17278 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17279 | test_array [0] = 0 | |
17280 | ||
17281 | ; | |
17282 | return 0; | |
17283 | } | |
17284 | _ACEOF | |
17285 | rm -f conftest.$ac_objext | |
17286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17287 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17288 | ac_status=$? |
ac1cb8d3 VS |
17289 | grep -v '^ *+' conftest.er1 >conftest.err |
17290 | rm -f conftest.er1 | |
17291 | cat conftest.err >&5 | |
a848cd7e SC |
17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17293 | (exit $ac_status); } && | |
04840eaa VS |
17294 | { ac_try='test -z "$ac_c_werror_flag" |
17295 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17297 | (eval $ac_try) 2>&5 | |
17298 | ac_status=$? | |
17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17300 | (exit $ac_status); }; } && | |
17301 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17303 | (eval $ac_try) 2>&5 | |
17304 | ac_status=$? | |
17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17306 | (exit $ac_status); }; }; then | |
17307 | ac_lo=$ac_mid; break | |
17308 | else | |
17309 | echo "$as_me: failed program was:" >&5 | |
17310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17311 | ||
17312 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17313 | if test $ac_mid -le $ac_hi; then |
17314 | ac_lo= ac_hi= | |
17315 | break | |
17316 | fi | |
17317 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17318 | fi |
ac1cb8d3 | 17319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17320 | done |
17321 | else | |
17322 | echo "$as_me: failed program was:" >&5 | |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17324 | ||
17325 | ac_lo= ac_hi= | |
17326 | fi | |
ac1cb8d3 | 17327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17328 | fi |
ac1cb8d3 | 17329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17330 | # Binary search between lo and hi bounds. |
17331 | while test "x$ac_lo" != "x$ac_hi"; do | |
17332 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17333 | cat >conftest.$ac_ext <<_ACEOF | |
17334 | /* confdefs.h. */ | |
17335 | _ACEOF | |
17336 | cat confdefs.h >>conftest.$ac_ext | |
17337 | cat >>conftest.$ac_ext <<_ACEOF | |
17338 | /* end confdefs.h. */ | |
17339 | $ac_includes_default | |
17340 | int | |
17341 | main () | |
17342 | { | |
17343 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17344 | test_array [0] = 0 | |
17345 | ||
17346 | ; | |
17347 | return 0; | |
17348 | } | |
17349 | _ACEOF | |
17350 | rm -f conftest.$ac_objext | |
17351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17352 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17353 | ac_status=$? |
ac1cb8d3 VS |
17354 | grep -v '^ *+' conftest.er1 >conftest.err |
17355 | rm -f conftest.er1 | |
17356 | cat conftest.err >&5 | |
a848cd7e SC |
17357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17358 | (exit $ac_status); } && | |
04840eaa VS |
17359 | { ac_try='test -z "$ac_c_werror_flag" |
17360 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17362 | (eval $ac_try) 2>&5 | |
17363 | ac_status=$? | |
17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17365 | (exit $ac_status); }; } && | |
17366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17368 | (eval $ac_try) 2>&5 | |
17369 | ac_status=$? | |
17370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17371 | (exit $ac_status); }; }; then | |
17372 | ac_hi=$ac_mid | |
17373 | else | |
17374 | echo "$as_me: failed program was:" >&5 | |
17375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17376 | ||
17377 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17378 | fi | |
ac1cb8d3 | 17379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17380 | done |
17381 | case $ac_lo in | |
17382 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17383 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17384 | See \`config.log' for more details." >&5 | |
17385 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17386 | See \`config.log' for more details." >&2;} | |
17387 | { (exit 1); exit 1; }; } ;; | |
17388 | esac | |
17389 | else | |
17390 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
17391 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17392 | See \`config.log' for more details." >&5 | |
17393 | echo "$as_me: error: cannot run test program while cross compiling | |
17394 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17395 | { (exit 1); exit 1; }; } |
17396 | else | |
17397 | cat >conftest.$ac_ext <<_ACEOF | |
17398 | /* confdefs.h. */ | |
17399 | _ACEOF | |
17400 | cat confdefs.h >>conftest.$ac_ext | |
17401 | cat >>conftest.$ac_ext <<_ACEOF | |
17402 | /* end confdefs.h. */ | |
17403 | $ac_includes_default | |
17404 | long longval () { return (long) (sizeof (long long)); } | |
17405 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17406 | #include <stdio.h> | |
17407 | #include <stdlib.h> | |
17408 | int | |
17409 | main () | |
17410 | { | |
17411 | ||
17412 | FILE *f = fopen ("conftest.val", "w"); | |
17413 | if (! f) | |
17414 | exit (1); | |
17415 | if (((long) (sizeof (long long))) < 0) | |
17416 | { | |
17417 | long i = longval (); | |
17418 | if (i != ((long) (sizeof (long long)))) | |
17419 | exit (1); | |
17420 | fprintf (f, "%ld\n", i); | |
17421 | } | |
17422 | else | |
17423 | { | |
17424 | unsigned long i = ulongval (); | |
17425 | if (i != ((long) (sizeof (long long)))) | |
17426 | exit (1); | |
17427 | fprintf (f, "%lu\n", i); | |
17428 | } | |
17429 | exit (ferror (f) || fclose (f) != 0); | |
17430 | ||
17431 | ; | |
17432 | return 0; | |
17433 | } | |
17434 | _ACEOF | |
17435 | rm -f conftest$ac_exeext | |
17436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17437 | (eval $ac_link) 2>&5 | |
17438 | ac_status=$? | |
17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17442 | (eval $ac_try) 2>&5 | |
17443 | ac_status=$? | |
17444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17445 | (exit $ac_status); }; }; then | |
17446 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17447 | else | |
17448 | echo "$as_me: program exited with status $ac_status" >&5 | |
17449 | echo "$as_me: failed program was:" >&5 | |
17450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17451 | ||
17452 | ( exit $ac_status ) | |
17453 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17454 | See \`config.log' for more details." >&5 | |
17455 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17456 | See \`config.log' for more details." >&2;} | |
17457 | { (exit 1); exit 1; }; } | |
17458 | fi | |
ac1cb8d3 | 17459 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17460 | fi |
17461 | fi | |
17462 | rm -f conftest.val | |
17463 | else | |
17464 | ac_cv_sizeof_long_long=0 | |
17465 | fi | |
17466 | fi | |
17467 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17468 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17469 | cat >>confdefs.h <<_ACEOF | |
17470 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17471 | _ACEOF | |
17472 | ||
17473 | ||
17474 | ;; | |
17475 | *-hp-hpux* ) | |
17476 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17477 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17478 | if test "${ac_cv_type_long_long+set}" = set; then | |
17479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17480 | else | |
17481 | cat >conftest.$ac_ext <<_ACEOF | |
17482 | /* confdefs.h. */ | |
17483 | _ACEOF | |
17484 | cat confdefs.h >>conftest.$ac_ext | |
17485 | cat >>conftest.$ac_ext <<_ACEOF | |
17486 | /* end confdefs.h. */ | |
17487 | $ac_includes_default | |
17488 | int | |
17489 | main () | |
17490 | { | |
17491 | if ((long long *) 0) | |
17492 | return 0; | |
17493 | if (sizeof (long long)) | |
17494 | return 0; | |
17495 | ; | |
17496 | return 0; | |
17497 | } | |
17498 | _ACEOF | |
17499 | rm -f conftest.$ac_objext | |
17500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17501 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17502 | ac_status=$? |
ac1cb8d3 VS |
17503 | grep -v '^ *+' conftest.er1 >conftest.err |
17504 | rm -f conftest.er1 | |
17505 | cat conftest.err >&5 | |
a848cd7e SC |
17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17507 | (exit $ac_status); } && | |
04840eaa VS |
17508 | { ac_try='test -z "$ac_c_werror_flag" |
17509 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17511 | (eval $ac_try) 2>&5 | |
17512 | ac_status=$? | |
17513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17514 | (exit $ac_status); }; } && | |
17515 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17517 | (eval $ac_try) 2>&5 | |
17518 | ac_status=$? | |
17519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17520 | (exit $ac_status); }; }; then | |
17521 | ac_cv_type_long_long=yes | |
17522 | else | |
17523 | echo "$as_me: failed program was:" >&5 | |
17524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17525 | ||
17526 | ac_cv_type_long_long=no | |
17527 | fi | |
ac1cb8d3 | 17528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17529 | fi |
17530 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17531 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17532 | ||
17533 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17534 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17535 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17537 | else | |
17538 | if test "$ac_cv_type_long_long" = yes; then | |
17539 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17540 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17541 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17542 | # This bug is HP SR number 8606223364. | |
17543 | if test "$cross_compiling" = yes; then | |
17544 | # Depending upon the size, compute the lo and hi bounds. | |
17545 | cat >conftest.$ac_ext <<_ACEOF | |
17546 | /* confdefs.h. */ | |
17547 | _ACEOF | |
17548 | cat confdefs.h >>conftest.$ac_ext | |
17549 | cat >>conftest.$ac_ext <<_ACEOF | |
17550 | /* end confdefs.h. */ | |
17551 | $ac_includes_default | |
17552 | int | |
17553 | main () | |
17554 | { | |
17555 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17556 | test_array [0] = 0 | |
17557 | ||
17558 | ; | |
17559 | return 0; | |
17560 | } | |
17561 | _ACEOF | |
17562 | rm -f conftest.$ac_objext | |
17563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17564 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17565 | ac_status=$? |
ac1cb8d3 VS |
17566 | grep -v '^ *+' conftest.er1 >conftest.err |
17567 | rm -f conftest.er1 | |
17568 | cat conftest.err >&5 | |
a848cd7e SC |
17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17570 | (exit $ac_status); } && | |
04840eaa VS |
17571 | { ac_try='test -z "$ac_c_werror_flag" |
17572 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17574 | (eval $ac_try) 2>&5 | |
17575 | ac_status=$? | |
17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17577 | (exit $ac_status); }; } && | |
17578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17580 | (eval $ac_try) 2>&5 | |
17581 | ac_status=$? | |
17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17583 | (exit $ac_status); }; }; then | |
17584 | ac_lo=0 ac_mid=0 | |
17585 | while :; do | |
17586 | cat >conftest.$ac_ext <<_ACEOF | |
17587 | /* confdefs.h. */ | |
17588 | _ACEOF | |
17589 | cat confdefs.h >>conftest.$ac_ext | |
17590 | cat >>conftest.$ac_ext <<_ACEOF | |
17591 | /* end confdefs.h. */ | |
17592 | $ac_includes_default | |
17593 | int | |
17594 | main () | |
17595 | { | |
17596 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17597 | test_array [0] = 0 | |
17598 | ||
17599 | ; | |
17600 | return 0; | |
17601 | } | |
17602 | _ACEOF | |
17603 | rm -f conftest.$ac_objext | |
17604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17606 | ac_status=$? |
ac1cb8d3 VS |
17607 | grep -v '^ *+' conftest.er1 >conftest.err |
17608 | rm -f conftest.er1 | |
17609 | cat conftest.err >&5 | |
a848cd7e SC |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17611 | (exit $ac_status); } && | |
04840eaa VS |
17612 | { ac_try='test -z "$ac_c_werror_flag" |
17613 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17615 | (eval $ac_try) 2>&5 | |
17616 | ac_status=$? | |
17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17618 | (exit $ac_status); }; } && | |
17619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17621 | (eval $ac_try) 2>&5 | |
17622 | ac_status=$? | |
17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17624 | (exit $ac_status); }; }; then | |
17625 | ac_hi=$ac_mid; break | |
17626 | else | |
17627 | echo "$as_me: failed program was:" >&5 | |
17628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17629 | ||
17630 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17631 | if test $ac_lo -le $ac_mid; then |
17632 | ac_lo= ac_hi= | |
17633 | break | |
17634 | fi | |
17635 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17636 | fi |
ac1cb8d3 | 17637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17638 | done |
17639 | else | |
17640 | echo "$as_me: failed program was:" >&5 | |
17641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17642 | ||
17643 | cat >conftest.$ac_ext <<_ACEOF | |
17644 | /* confdefs.h. */ | |
17645 | _ACEOF | |
17646 | cat confdefs.h >>conftest.$ac_ext | |
17647 | cat >>conftest.$ac_ext <<_ACEOF | |
17648 | /* end confdefs.h. */ | |
17649 | $ac_includes_default | |
17650 | int | |
17651 | main () | |
17652 | { | |
17653 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17654 | test_array [0] = 0 | |
17655 | ||
17656 | ; | |
17657 | return 0; | |
17658 | } | |
17659 | _ACEOF | |
17660 | rm -f conftest.$ac_objext | |
17661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17662 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17663 | ac_status=$? |
ac1cb8d3 VS |
17664 | grep -v '^ *+' conftest.er1 >conftest.err |
17665 | rm -f conftest.er1 | |
17666 | cat conftest.err >&5 | |
a848cd7e SC |
17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17668 | (exit $ac_status); } && | |
04840eaa VS |
17669 | { ac_try='test -z "$ac_c_werror_flag" |
17670 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17672 | (eval $ac_try) 2>&5 | |
17673 | ac_status=$? | |
17674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17675 | (exit $ac_status); }; } && | |
17676 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17678 | (eval $ac_try) 2>&5 | |
17679 | ac_status=$? | |
17680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17681 | (exit $ac_status); }; }; then | |
17682 | ac_hi=-1 ac_mid=-1 | |
17683 | while :; do | |
17684 | cat >conftest.$ac_ext <<_ACEOF | |
17685 | /* confdefs.h. */ | |
17686 | _ACEOF | |
17687 | cat confdefs.h >>conftest.$ac_ext | |
17688 | cat >>conftest.$ac_ext <<_ACEOF | |
17689 | /* end confdefs.h. */ | |
17690 | $ac_includes_default | |
17691 | int | |
17692 | main () | |
17693 | { | |
17694 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17695 | test_array [0] = 0 | |
17696 | ||
17697 | ; | |
17698 | return 0; | |
17699 | } | |
17700 | _ACEOF | |
17701 | rm -f conftest.$ac_objext | |
17702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17703 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17704 | ac_status=$? |
ac1cb8d3 VS |
17705 | grep -v '^ *+' conftest.er1 >conftest.err |
17706 | rm -f conftest.er1 | |
17707 | cat conftest.err >&5 | |
a848cd7e SC |
17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17709 | (exit $ac_status); } && | |
04840eaa VS |
17710 | { ac_try='test -z "$ac_c_werror_flag" |
17711 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17713 | (eval $ac_try) 2>&5 | |
17714 | ac_status=$? | |
17715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17716 | (exit $ac_status); }; } && | |
17717 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17719 | (eval $ac_try) 2>&5 | |
17720 | ac_status=$? | |
17721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17722 | (exit $ac_status); }; }; then | |
17723 | ac_lo=$ac_mid; break | |
17724 | else | |
17725 | echo "$as_me: failed program was:" >&5 | |
17726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17727 | ||
17728 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17729 | if test $ac_mid -le $ac_hi; then |
17730 | ac_lo= ac_hi= | |
17731 | break | |
17732 | fi | |
17733 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17734 | fi |
ac1cb8d3 | 17735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17736 | done |
17737 | else | |
17738 | echo "$as_me: failed program was:" >&5 | |
17739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17740 | ||
17741 | ac_lo= ac_hi= | |
17742 | fi | |
ac1cb8d3 | 17743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17744 | fi |
ac1cb8d3 | 17745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17746 | # Binary search between lo and hi bounds. |
17747 | while test "x$ac_lo" != "x$ac_hi"; do | |
17748 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17749 | cat >conftest.$ac_ext <<_ACEOF | |
17750 | /* confdefs.h. */ | |
17751 | _ACEOF | |
17752 | cat confdefs.h >>conftest.$ac_ext | |
17753 | cat >>conftest.$ac_ext <<_ACEOF | |
17754 | /* end confdefs.h. */ | |
17755 | $ac_includes_default | |
17756 | int | |
17757 | main () | |
17758 | { | |
17759 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17760 | test_array [0] = 0 | |
17761 | ||
17762 | ; | |
17763 | return 0; | |
17764 | } | |
17765 | _ACEOF | |
17766 | rm -f conftest.$ac_objext | |
17767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17768 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17769 | ac_status=$? |
ac1cb8d3 VS |
17770 | grep -v '^ *+' conftest.er1 >conftest.err |
17771 | rm -f conftest.er1 | |
17772 | cat conftest.err >&5 | |
a848cd7e SC |
17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17774 | (exit $ac_status); } && | |
04840eaa VS |
17775 | { ac_try='test -z "$ac_c_werror_flag" |
17776 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17778 | (eval $ac_try) 2>&5 | |
17779 | ac_status=$? | |
17780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17781 | (exit $ac_status); }; } && | |
17782 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17784 | (eval $ac_try) 2>&5 | |
17785 | ac_status=$? | |
17786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17787 | (exit $ac_status); }; }; then | |
17788 | ac_hi=$ac_mid | |
17789 | else | |
17790 | echo "$as_me: failed program was:" >&5 | |
17791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17792 | ||
17793 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17794 | fi | |
ac1cb8d3 | 17795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17796 | done |
17797 | case $ac_lo in | |
17798 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17799 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17800 | See \`config.log' for more details." >&5 | |
17801 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17802 | See \`config.log' for more details." >&2;} | |
17803 | { (exit 1); exit 1; }; } ;; | |
17804 | esac | |
17805 | else | |
17806 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
17807 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17808 | See \`config.log' for more details." >&5 | |
17809 | echo "$as_me: error: cannot run test program while cross compiling | |
17810 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17811 | { (exit 1); exit 1; }; } |
17812 | else | |
17813 | cat >conftest.$ac_ext <<_ACEOF | |
17814 | /* confdefs.h. */ | |
17815 | _ACEOF | |
17816 | cat confdefs.h >>conftest.$ac_ext | |
17817 | cat >>conftest.$ac_ext <<_ACEOF | |
17818 | /* end confdefs.h. */ | |
17819 | $ac_includes_default | |
17820 | long longval () { return (long) (sizeof (long long)); } | |
17821 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17822 | #include <stdio.h> | |
17823 | #include <stdlib.h> | |
17824 | int | |
17825 | main () | |
17826 | { | |
17827 | ||
17828 | FILE *f = fopen ("conftest.val", "w"); | |
17829 | if (! f) | |
17830 | exit (1); | |
17831 | if (((long) (sizeof (long long))) < 0) | |
17832 | { | |
17833 | long i = longval (); | |
17834 | if (i != ((long) (sizeof (long long)))) | |
17835 | exit (1); | |
17836 | fprintf (f, "%ld\n", i); | |
17837 | } | |
17838 | else | |
17839 | { | |
17840 | unsigned long i = ulongval (); | |
17841 | if (i != ((long) (sizeof (long long)))) | |
17842 | exit (1); | |
17843 | fprintf (f, "%lu\n", i); | |
17844 | } | |
17845 | exit (ferror (f) || fclose (f) != 0); | |
17846 | ||
17847 | ; | |
17848 | return 0; | |
17849 | } | |
17850 | _ACEOF | |
17851 | rm -f conftest$ac_exeext | |
17852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17853 | (eval $ac_link) 2>&5 | |
17854 | ac_status=$? | |
17855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17856 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17858 | (eval $ac_try) 2>&5 | |
17859 | ac_status=$? | |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17861 | (exit $ac_status); }; }; then | |
17862 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17863 | else | |
17864 | echo "$as_me: program exited with status $ac_status" >&5 | |
17865 | echo "$as_me: failed program was:" >&5 | |
17866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17867 | ||
17868 | ( exit $ac_status ) | |
17869 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17870 | See \`config.log' for more details." >&5 | |
17871 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17872 | See \`config.log' for more details." >&2;} | |
17873 | { (exit 1); exit 1; }; } | |
17874 | fi | |
ac1cb8d3 | 17875 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17876 | fi |
17877 | fi | |
17878 | rm -f conftest.val | |
17879 | else | |
17880 | ac_cv_sizeof_long_long=0 | |
17881 | fi | |
17882 | fi | |
17883 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17884 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17885 | cat >>confdefs.h <<_ACEOF | |
17886 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17887 | _ACEOF | |
17888 | ||
17889 | ||
17890 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17891 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17892 | fi | |
17893 | ;; | |
17894 | * ) | |
17895 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17896 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17897 | if test "${ac_cv_type_long_long+set}" = set; then | |
17898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17899 | else | |
17900 | cat >conftest.$ac_ext <<_ACEOF | |
17901 | /* confdefs.h. */ | |
17902 | _ACEOF | |
17903 | cat confdefs.h >>conftest.$ac_ext | |
17904 | cat >>conftest.$ac_ext <<_ACEOF | |
17905 | /* end confdefs.h. */ | |
17906 | $ac_includes_default | |
17907 | int | |
17908 | main () | |
17909 | { | |
17910 | if ((long long *) 0) | |
17911 | return 0; | |
17912 | if (sizeof (long long)) | |
17913 | return 0; | |
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); } && | |
04840eaa VS |
17927 | { ac_try='test -z "$ac_c_werror_flag" |
17928 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17930 | (eval $ac_try) 2>&5 | |
17931 | ac_status=$? | |
17932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17933 | (exit $ac_status); }; } && | |
17934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17936 | (eval $ac_try) 2>&5 | |
17937 | ac_status=$? | |
17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17939 | (exit $ac_status); }; }; then | |
17940 | ac_cv_type_long_long=yes | |
17941 | else | |
17942 | echo "$as_me: failed program was:" >&5 | |
17943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17944 | ||
17945 | ac_cv_type_long_long=no | |
17946 | fi | |
ac1cb8d3 | 17947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17948 | fi |
17949 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17950 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17951 | ||
17952 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17953 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17954 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17956 | else | |
17957 | if test "$ac_cv_type_long_long" = yes; then | |
17958 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17959 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17960 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17961 | # This bug is HP SR number 8606223364. | |
17962 | if test "$cross_compiling" = yes; then | |
17963 | # Depending upon the size, compute the lo and hi bounds. | |
17964 | cat >conftest.$ac_ext <<_ACEOF | |
17965 | /* confdefs.h. */ | |
17966 | _ACEOF | |
17967 | cat confdefs.h >>conftest.$ac_ext | |
17968 | cat >>conftest.$ac_ext <<_ACEOF | |
17969 | /* end confdefs.h. */ | |
17970 | $ac_includes_default | |
17971 | int | |
17972 | main () | |
17973 | { | |
17974 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17975 | test_array [0] = 0 | |
17976 | ||
17977 | ; | |
17978 | return 0; | |
17979 | } | |
17980 | _ACEOF | |
17981 | rm -f conftest.$ac_objext | |
17982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17983 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17984 | ac_status=$? |
ac1cb8d3 VS |
17985 | grep -v '^ *+' conftest.er1 >conftest.err |
17986 | rm -f conftest.er1 | |
17987 | cat conftest.err >&5 | |
a848cd7e SC |
17988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17989 | (exit $ac_status); } && | |
04840eaa VS |
17990 | { ac_try='test -z "$ac_c_werror_flag" |
17991 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17993 | (eval $ac_try) 2>&5 | |
17994 | ac_status=$? | |
17995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17996 | (exit $ac_status); }; } && | |
17997 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17999 | (eval $ac_try) 2>&5 | |
18000 | ac_status=$? | |
18001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18002 | (exit $ac_status); }; }; then | |
18003 | ac_lo=0 ac_mid=0 | |
18004 | while :; do | |
18005 | cat >conftest.$ac_ext <<_ACEOF | |
18006 | /* confdefs.h. */ | |
18007 | _ACEOF | |
18008 | cat confdefs.h >>conftest.$ac_ext | |
18009 | cat >>conftest.$ac_ext <<_ACEOF | |
18010 | /* end confdefs.h. */ | |
18011 | $ac_includes_default | |
18012 | int | |
18013 | main () | |
18014 | { | |
18015 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18016 | test_array [0] = 0 | |
18017 | ||
18018 | ; | |
18019 | return 0; | |
18020 | } | |
18021 | _ACEOF | |
18022 | rm -f conftest.$ac_objext | |
18023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18025 | ac_status=$? |
ac1cb8d3 VS |
18026 | grep -v '^ *+' conftest.er1 >conftest.err |
18027 | rm -f conftest.er1 | |
18028 | cat conftest.err >&5 | |
a848cd7e SC |
18029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18030 | (exit $ac_status); } && | |
04840eaa VS |
18031 | { ac_try='test -z "$ac_c_werror_flag" |
18032 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18034 | (eval $ac_try) 2>&5 | |
18035 | ac_status=$? | |
18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18037 | (exit $ac_status); }; } && | |
18038 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18040 | (eval $ac_try) 2>&5 | |
18041 | ac_status=$? | |
18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18043 | (exit $ac_status); }; }; then | |
18044 | ac_hi=$ac_mid; break | |
18045 | else | |
18046 | echo "$as_me: failed program was:" >&5 | |
18047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18048 | ||
18049 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18050 | if test $ac_lo -le $ac_mid; then |
18051 | ac_lo= ac_hi= | |
18052 | break | |
18053 | fi | |
18054 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18055 | fi |
ac1cb8d3 | 18056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18057 | done |
18058 | else | |
18059 | echo "$as_me: failed program was:" >&5 | |
18060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18061 | ||
18062 | cat >conftest.$ac_ext <<_ACEOF | |
18063 | /* confdefs.h. */ | |
18064 | _ACEOF | |
18065 | cat confdefs.h >>conftest.$ac_ext | |
18066 | cat >>conftest.$ac_ext <<_ACEOF | |
18067 | /* end confdefs.h. */ | |
18068 | $ac_includes_default | |
18069 | int | |
18070 | main () | |
18071 | { | |
18072 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18073 | test_array [0] = 0 | |
18074 | ||
18075 | ; | |
18076 | return 0; | |
18077 | } | |
18078 | _ACEOF | |
18079 | rm -f conftest.$ac_objext | |
18080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18081 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18082 | ac_status=$? |
ac1cb8d3 VS |
18083 | grep -v '^ *+' conftest.er1 >conftest.err |
18084 | rm -f conftest.er1 | |
18085 | cat conftest.err >&5 | |
a848cd7e SC |
18086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18087 | (exit $ac_status); } && | |
04840eaa VS |
18088 | { ac_try='test -z "$ac_c_werror_flag" |
18089 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18091 | (eval $ac_try) 2>&5 | |
18092 | ac_status=$? | |
18093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18094 | (exit $ac_status); }; } && | |
18095 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18097 | (eval $ac_try) 2>&5 | |
18098 | ac_status=$? | |
18099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18100 | (exit $ac_status); }; }; then | |
18101 | ac_hi=-1 ac_mid=-1 | |
18102 | while :; do | |
18103 | cat >conftest.$ac_ext <<_ACEOF | |
18104 | /* confdefs.h. */ | |
18105 | _ACEOF | |
18106 | cat confdefs.h >>conftest.$ac_ext | |
18107 | cat >>conftest.$ac_ext <<_ACEOF | |
18108 | /* end confdefs.h. */ | |
18109 | $ac_includes_default | |
18110 | int | |
18111 | main () | |
18112 | { | |
18113 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18114 | test_array [0] = 0 | |
18115 | ||
18116 | ; | |
18117 | return 0; | |
18118 | } | |
18119 | _ACEOF | |
18120 | rm -f conftest.$ac_objext | |
18121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18122 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18123 | ac_status=$? |
ac1cb8d3 VS |
18124 | grep -v '^ *+' conftest.er1 >conftest.err |
18125 | rm -f conftest.er1 | |
18126 | cat conftest.err >&5 | |
a848cd7e SC |
18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18128 | (exit $ac_status); } && | |
04840eaa VS |
18129 | { ac_try='test -z "$ac_c_werror_flag" |
18130 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18132 | (eval $ac_try) 2>&5 | |
18133 | ac_status=$? | |
18134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18135 | (exit $ac_status); }; } && | |
18136 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18138 | (eval $ac_try) 2>&5 | |
18139 | ac_status=$? | |
18140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18141 | (exit $ac_status); }; }; then | |
18142 | ac_lo=$ac_mid; break | |
18143 | else | |
18144 | echo "$as_me: failed program was:" >&5 | |
18145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18146 | ||
18147 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18148 | if test $ac_mid -le $ac_hi; then |
18149 | ac_lo= ac_hi= | |
18150 | break | |
18151 | fi | |
18152 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18153 | fi |
ac1cb8d3 | 18154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18155 | done |
18156 | else | |
18157 | echo "$as_me: failed program was:" >&5 | |
18158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18159 | ||
18160 | ac_lo= ac_hi= | |
18161 | fi | |
ac1cb8d3 | 18162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18163 | fi |
ac1cb8d3 | 18164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18165 | # Binary search between lo and hi bounds. |
18166 | while test "x$ac_lo" != "x$ac_hi"; do | |
18167 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18168 | cat >conftest.$ac_ext <<_ACEOF | |
18169 | /* confdefs.h. */ | |
18170 | _ACEOF | |
18171 | cat confdefs.h >>conftest.$ac_ext | |
18172 | cat >>conftest.$ac_ext <<_ACEOF | |
18173 | /* end confdefs.h. */ | |
18174 | $ac_includes_default | |
18175 | int | |
18176 | main () | |
18177 | { | |
18178 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18179 | test_array [0] = 0 | |
18180 | ||
18181 | ; | |
18182 | return 0; | |
18183 | } | |
18184 | _ACEOF | |
18185 | rm -f conftest.$ac_objext | |
18186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18188 | ac_status=$? |
ac1cb8d3 VS |
18189 | grep -v '^ *+' conftest.er1 >conftest.err |
18190 | rm -f conftest.er1 | |
18191 | cat conftest.err >&5 | |
a848cd7e SC |
18192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18193 | (exit $ac_status); } && | |
04840eaa VS |
18194 | { ac_try='test -z "$ac_c_werror_flag" |
18195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18197 | (eval $ac_try) 2>&5 | |
18198 | ac_status=$? | |
18199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18200 | (exit $ac_status); }; } && | |
18201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18203 | (eval $ac_try) 2>&5 | |
18204 | ac_status=$? | |
18205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18206 | (exit $ac_status); }; }; then | |
18207 | ac_hi=$ac_mid | |
18208 | else | |
18209 | echo "$as_me: failed program was:" >&5 | |
18210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18211 | ||
18212 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18213 | fi | |
ac1cb8d3 | 18214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18215 | done |
18216 | case $ac_lo in | |
18217 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18218 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18219 | See \`config.log' for more details." >&5 | |
18220 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18221 | See \`config.log' for more details." >&2;} | |
18222 | { (exit 1); exit 1; }; } ;; | |
18223 | esac | |
18224 | else | |
18225 | if test "$cross_compiling" = yes; then | |
04840eaa VS |
18226 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18227 | See \`config.log' for more details." >&5 | |
18228 | echo "$as_me: error: cannot run test program while cross compiling | |
18229 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18230 | { (exit 1); exit 1; }; } |
18231 | else | |
18232 | cat >conftest.$ac_ext <<_ACEOF | |
18233 | /* confdefs.h. */ | |
18234 | _ACEOF | |
18235 | cat confdefs.h >>conftest.$ac_ext | |
18236 | cat >>conftest.$ac_ext <<_ACEOF | |
18237 | /* end confdefs.h. */ | |
18238 | $ac_includes_default | |
18239 | long longval () { return (long) (sizeof (long long)); } | |
18240 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18241 | #include <stdio.h> | |
18242 | #include <stdlib.h> | |
18243 | int | |
18244 | main () | |
18245 | { | |
18246 | ||
18247 | FILE *f = fopen ("conftest.val", "w"); | |
18248 | if (! f) | |
18249 | exit (1); | |
18250 | if (((long) (sizeof (long long))) < 0) | |
18251 | { | |
18252 | long i = longval (); | |
18253 | if (i != ((long) (sizeof (long long)))) | |
18254 | exit (1); | |
18255 | fprintf (f, "%ld\n", i); | |
18256 | } | |
18257 | else | |
18258 | { | |
18259 | unsigned long i = ulongval (); | |
18260 | if (i != ((long) (sizeof (long long)))) | |
18261 | exit (1); | |
18262 | fprintf (f, "%lu\n", i); | |
18263 | } | |
18264 | exit (ferror (f) || fclose (f) != 0); | |
18265 | ||
18266 | ; | |
18267 | return 0; | |
18268 | } | |
18269 | _ACEOF | |
18270 | rm -f conftest$ac_exeext | |
18271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18272 | (eval $ac_link) 2>&5 | |
18273 | ac_status=$? | |
18274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18277 | (eval $ac_try) 2>&5 | |
18278 | ac_status=$? | |
18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18280 | (exit $ac_status); }; }; then | |
18281 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18282 | else | |
18283 | echo "$as_me: program exited with status $ac_status" >&5 | |
18284 | echo "$as_me: failed program was:" >&5 | |
18285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18286 | ||
18287 | ( exit $ac_status ) | |
18288 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18289 | See \`config.log' for more details." >&5 | |
18290 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18291 | See \`config.log' for more details." >&2;} | |
18292 | { (exit 1); exit 1; }; } | |
18293 | fi | |
ac1cb8d3 | 18294 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18295 | fi |
18296 | fi | |
18297 | rm -f conftest.val | |
18298 | else | |
18299 | ac_cv_sizeof_long_long=0 | |
18300 | fi | |
18301 | fi | |
18302 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18303 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18304 | cat >>confdefs.h <<_ACEOF | |
18305 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18306 | _ACEOF | |
18307 | ||
18308 | ||
18309 | esac | |
18310 | ||
18311 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18312 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18313 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18315 | else | |
18316 | ||
18317 | if test "$cross_compiling" = yes; then | |
18318 | ||
18319 | case "${host}" in | |
18320 | *-pc-msdosdjgpp ) | |
18321 | wx_cv_sizeof_wchar_t=0 | |
18322 | ;; | |
18323 | * ) | |
18324 | wx_cv_sizeof_wchar_t=4 | |
18325 | ;; | |
18326 | esac | |
18327 | ||
18328 | ||
18329 | else | |
18330 | cat >conftest.$ac_ext <<_ACEOF | |
18331 | /* confdefs.h. */ | |
18332 | _ACEOF | |
18333 | cat confdefs.h >>conftest.$ac_ext | |
18334 | cat >>conftest.$ac_ext <<_ACEOF | |
18335 | /* end confdefs.h. */ | |
18336 | ||
18337 | /* DJGPP only has fake wchar_t: */ | |
18338 | #ifdef __DJGPP__ | |
18339 | # error "fake wchar_t" | |
18340 | #endif | |
18341 | #ifdef HAVE_WCHAR_H | |
18342 | # ifdef __CYGWIN__ | |
18343 | # include <stddef.h> | |
18344 | # endif | |
18345 | # include <wchar.h> | |
18346 | #endif | |
18347 | #ifdef HAVE_STDLIB_H | |
18348 | # include <stdlib.h> | |
18349 | #endif | |
18350 | #include <stdio.h> | |
18351 | int main() | |
18352 | { | |
18353 | FILE *f=fopen("conftestval", "w"); | |
18354 | if (!f) exit(1); | |
18355 | fprintf(f, "%i", sizeof(wchar_t)); | |
18356 | exit(0); | |
18357 | } | |
18358 | ||
18359 | _ACEOF | |
18360 | rm -f conftest$ac_exeext | |
18361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18362 | (eval $ac_link) 2>&5 | |
18363 | ac_status=$? | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18367 | (eval $ac_try) 2>&5 | |
18368 | ac_status=$? | |
18369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18370 | (exit $ac_status); }; }; then | |
18371 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18372 | else | |
18373 | echo "$as_me: program exited with status $ac_status" >&5 | |
18374 | echo "$as_me: failed program was:" >&5 | |
18375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18376 | ||
18377 | ( exit $ac_status ) | |
18378 | wx_cv_sizeof_wchar_t=0 | |
18379 | fi | |
ac1cb8d3 | 18380 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18381 | fi |
18382 | ||
18383 | fi | |
18384 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18385 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18386 | ||
18387 | cat >>confdefs.h <<_ACEOF | |
18388 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18389 | _ACEOF | |
18390 | ||
18391 | ||
ba3d13e1 VZ |
18392 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18393 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18394 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18396 | else | |
18397 | ||
18398 | cat >conftest.$ac_ext <<_ACEOF | |
18399 | ||
18400 | #include <stdarg.h> | |
18401 | void foo(char *f, ...) | |
18402 | { | |
18403 | va_list ap1, ap2; | |
18404 | va_start(ap1, f); | |
18405 | va_copy(ap2, ap1); | |
18406 | va_end(ap2); | |
18407 | va_end(ap1); | |
18408 | } | |
5886b072 VZ |
18409 | int main() |
18410 | { | |
b902e639 VZ |
18411 | foo("hi", 17); |
18412 | return 0; | |
5886b072 | 18413 | } |
ba3d13e1 VZ |
18414 | _ACEOF |
18415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18417 | (eval $ac_link) 2>conftest.er1 | |
18418 | ac_status=$? | |
18419 | grep -v '^ *+' conftest.er1 >conftest.err | |
18420 | rm -f conftest.er1 | |
18421 | cat conftest.err >&5 | |
18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18423 | (exit $ac_status); } && | |
04840eaa VS |
18424 | { ac_try='test -z "$ac_c_werror_flag" |
18425 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
18426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18427 | (eval $ac_try) 2>&5 | |
18428 | ac_status=$? | |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18430 | (exit $ac_status); }; } && | |
18431 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
18437 | wx_cv_func_va_copy=yes | |
18438 | else | |
18439 | echo "$as_me: failed program was:" >&5 | |
18440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18441 | ||
18442 | wx_cv_func_va_copy=no | |
18443 | ||
18444 | fi | |
18445 | rm -f conftest.err conftest.$ac_objext \ | |
18446 | conftest$ac_exeext conftest.$ac_ext | |
18447 | ||
18448 | ||
18449 | fi | |
18450 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18451 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18452 | ||
18453 | if test $wx_cv_func_va_copy = "yes"; then | |
18454 | cat >>confdefs.h <<\_ACEOF | |
18455 | #define HAVE_VA_COPY 1 | |
18456 | _ACEOF | |
18457 | ||
18458 | else | |
18459 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18460 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18461 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18463 | else | |
18464 | ||
18465 | if test "$cross_compiling" = yes; then | |
18466 | wx_cv_type_va_list_lvalue=yes | |
18467 | ||
18468 | else | |
18469 | cat >conftest.$ac_ext <<_ACEOF | |
18470 | ||
18471 | #include <stdarg.h> | |
18472 | int foo(char *f, ...) | |
18473 | { | |
18474 | va_list ap1, ap2; | |
18475 | va_start(ap1, f); | |
18476 | ap2 = ap1; | |
18477 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18478 | return 1; | |
18479 | va_end(ap2); | |
18480 | va_end(ap1); | |
18481 | return 0; | |
18482 | } | |
18483 | int main() | |
18484 | { | |
18485 | return foo("hi", 17); | |
18486 | } | |
18487 | _ACEOF | |
18488 | rm -f conftest$ac_exeext | |
18489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18490 | (eval $ac_link) 2>&5 | |
18491 | ac_status=$? | |
18492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18495 | (eval $ac_try) 2>&5 | |
18496 | ac_status=$? | |
18497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18498 | (exit $ac_status); }; }; then | |
18499 | wx_cv_type_va_list_lvalue=yes | |
18500 | else | |
18501 | echo "$as_me: program exited with status $ac_status" >&5 | |
18502 | echo "$as_me: failed program was:" >&5 | |
18503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18504 | ||
18505 | ( exit $ac_status ) | |
18506 | wx_cv_type_va_list_lvalue=no | |
18507 | fi | |
18508 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18509 | fi | |
18510 | ||
18511 | ||
18512 | fi | |
18513 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18514 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18515 | ||
18516 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18517 | cat >>confdefs.h <<\_ACEOF | |
18518 | #define VA_LIST_IS_ARRAY 1 | |
18519 | _ACEOF | |
18520 | ||
18521 | fi | |
18522 | fi | |
18523 | ||
a848cd7e SC |
18524 | # Check whether --enable-largefile or --disable-largefile was given. |
18525 | if test "${enable_largefile+set}" = set; then | |
18526 | enableval="$enable_largefile" | |
18527 | ||
18528 | fi; | |
18529 | if test "$enable_largefile" != no; then | |
18530 | wx_largefile=no | |
18531 | ||
18532 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18533 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18534 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18536 | else | |
18537 | ||
18538 | cat >conftest.$ac_ext <<_ACEOF | |
18539 | /* confdefs.h. */ | |
18540 | _ACEOF | |
18541 | cat confdefs.h >>conftest.$ac_ext | |
18542 | cat >>conftest.$ac_ext <<_ACEOF | |
18543 | /* end confdefs.h. */ | |
18544 | #define _FILE_OFFSET_BITS 64 | |
18545 | #include <sys/types.h> | |
18546 | int | |
18547 | main () | |
18548 | { | |
18549 | typedef struct { | |
18550 | unsigned int field: sizeof(off_t) == 8; | |
18551 | } wxlf; | |
18552 | ||
18553 | ; | |
18554 | return 0; | |
18555 | } | |
18556 | _ACEOF | |
18557 | rm -f conftest.$ac_objext | |
18558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18560 | ac_status=$? |
ac1cb8d3 VS |
18561 | grep -v '^ *+' conftest.er1 >conftest.err |
18562 | rm -f conftest.er1 | |
18563 | cat conftest.err >&5 | |
a848cd7e SC |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18565 | (exit $ac_status); } && | |
04840eaa VS |
18566 | { ac_try='test -z "$ac_c_werror_flag" |
18567 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18569 | (eval $ac_try) 2>&5 | |
18570 | ac_status=$? | |
18571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18572 | (exit $ac_status); }; } && | |
18573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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_sys_file_offset_bits=64 | |
18580 | else | |
18581 | echo "$as_me: failed program was:" >&5 | |
18582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18583 | ||
18584 | ac_cv_sys_file_offset_bits=no | |
18585 | fi | |
ac1cb8d3 | 18586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18587 | |
18588 | ||
18589 | fi | |
18590 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18591 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18592 | ||
18593 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18594 | wx_largefile=yes | |
18595 | cat >>confdefs.h <<_ACEOF | |
18596 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18597 | _ACEOF | |
18598 | ||
18599 | fi | |
18600 | ||
18601 | if test "x$wx_largefile" != "xyes"; then | |
18602 | ||
18603 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18604 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18605 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18607 | else | |
18608 | ||
18609 | cat >conftest.$ac_ext <<_ACEOF | |
18610 | /* confdefs.h. */ | |
18611 | _ACEOF | |
18612 | cat confdefs.h >>conftest.$ac_ext | |
18613 | cat >>conftest.$ac_ext <<_ACEOF | |
18614 | /* end confdefs.h. */ | |
18615 | #define _LARGE_FILES 1 | |
18616 | #include <sys/types.h> | |
18617 | int | |
18618 | main () | |
18619 | { | |
18620 | typedef struct { | |
18621 | unsigned int field: sizeof(off_t) == 8; | |
18622 | } wxlf; | |
18623 | ||
18624 | ; | |
18625 | return 0; | |
18626 | } | |
18627 | _ACEOF | |
18628 | rm -f conftest.$ac_objext | |
18629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18631 | ac_status=$? |
ac1cb8d3 VS |
18632 | grep -v '^ *+' conftest.er1 >conftest.err |
18633 | rm -f conftest.er1 | |
18634 | cat conftest.err >&5 | |
a848cd7e SC |
18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18636 | (exit $ac_status); } && | |
04840eaa VS |
18637 | { ac_try='test -z "$ac_c_werror_flag" |
18638 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18640 | (eval $ac_try) 2>&5 | |
18641 | ac_status=$? | |
18642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18643 | (exit $ac_status); }; } && | |
18644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
18650 | ac_cv_sys_large_files=1 | |
18651 | else | |
18652 | echo "$as_me: failed program was:" >&5 | |
18653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18654 | ||
18655 | ac_cv_sys_large_files=no | |
18656 | fi | |
ac1cb8d3 | 18657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18658 | |
18659 | ||
18660 | fi | |
18661 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18662 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18663 | ||
18664 | if test "$ac_cv_sys_large_files" != no; then | |
18665 | wx_largefile=yes | |
18666 | cat >>confdefs.h <<_ACEOF | |
18667 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18668 | _ACEOF | |
18669 | ||
18670 | fi | |
18671 | ||
18672 | fi | |
18673 | ||
18674 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18675 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18676 | if test "x$wx_largefile" = "xyes"; then | |
18677 | cat >>confdefs.h <<\_ACEOF | |
18678 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18679 | _ACEOF | |
18680 | ||
18681 | fi | |
18682 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18683 | echo "${ECHO_T}$wx_largefile" >&6 | |
18684 | fi | |
18685 | ||
5b674b9d DE |
18686 | |
18687 | if test "x$wx_largefile" = "xyes"; then | |
18688 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18689 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18690 | else | |
18691 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18692 | fi | |
18693 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
18694 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
18695 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
18696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18697 | else | |
18698 | while :; do | |
18699 | ac_cv_sys_largefile_source=no | |
18700 | cat >conftest.$ac_ext <<_ACEOF | |
18701 | /* confdefs.h. */ | |
18702 | _ACEOF | |
18703 | cat confdefs.h >>conftest.$ac_ext | |
18704 | cat >>conftest.$ac_ext <<_ACEOF | |
18705 | /* end confdefs.h. */ | |
18706 | #include <stdio.h> | |
18707 | int | |
18708 | main () | |
18709 | { | |
18710 | return !fseeko; | |
18711 | ; | |
18712 | return 0; | |
18713 | } | |
18714 | _ACEOF | |
18715 | rm -f conftest.$ac_objext | |
18716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18717 | (eval $ac_compile) 2>conftest.er1 | |
18718 | ac_status=$? | |
18719 | grep -v '^ *+' conftest.er1 >conftest.err | |
18720 | rm -f conftest.er1 | |
18721 | cat conftest.err >&5 | |
18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18723 | (exit $ac_status); } && | |
04840eaa VS |
18724 | { ac_try='test -z "$ac_c_werror_flag" |
18725 | || test ! -s conftest.err' | |
5294a27e VZ |
18726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18727 | (eval $ac_try) 2>&5 | |
18728 | ac_status=$? | |
18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18730 | (exit $ac_status); }; } && | |
18731 | { ac_try='test -s conftest.$ac_objext' | |
18732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18733 | (eval $ac_try) 2>&5 | |
18734 | ac_status=$? | |
18735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18736 | (exit $ac_status); }; }; then | |
18737 | break | |
18738 | else | |
18739 | echo "$as_me: failed program was:" >&5 | |
18740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18741 | ||
18742 | fi | |
18743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18744 | cat >conftest.$ac_ext <<_ACEOF | |
18745 | /* confdefs.h. */ | |
18746 | _ACEOF | |
18747 | cat confdefs.h >>conftest.$ac_ext | |
18748 | cat >>conftest.$ac_ext <<_ACEOF | |
18749 | /* end confdefs.h. */ | |
18750 | #define _LARGEFILE_SOURCE 1 | |
18751 | #include <stdio.h> | |
18752 | int | |
18753 | main () | |
18754 | { | |
18755 | return !fseeko; | |
18756 | ; | |
18757 | return 0; | |
18758 | } | |
18759 | _ACEOF | |
18760 | rm -f conftest.$ac_objext | |
18761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18762 | (eval $ac_compile) 2>conftest.er1 | |
18763 | ac_status=$? | |
18764 | grep -v '^ *+' conftest.er1 >conftest.err | |
18765 | rm -f conftest.er1 | |
18766 | cat conftest.err >&5 | |
18767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18768 | (exit $ac_status); } && | |
04840eaa VS |
18769 | { ac_try='test -z "$ac_c_werror_flag" |
18770 | || test ! -s conftest.err' | |
5294a27e VZ |
18771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18772 | (eval $ac_try) 2>&5 | |
18773 | ac_status=$? | |
18774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18775 | (exit $ac_status); }; } && | |
18776 | { ac_try='test -s conftest.$ac_objext' | |
18777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18778 | (eval $ac_try) 2>&5 | |
18779 | ac_status=$? | |
18780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18781 | (exit $ac_status); }; }; then | |
18782 | ac_cv_sys_largefile_source=1; break | |
18783 | else | |
18784 | echo "$as_me: failed program was:" >&5 | |
18785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18786 | ||
18787 | fi | |
18788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18789 | break | |
18790 | done | |
18791 | fi | |
18792 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
18793 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
18794 | if test "$ac_cv_sys_largefile_source" != no; then | |
18795 | ||
18796 | cat >>confdefs.h <<_ACEOF | |
18797 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
18798 | _ACEOF | |
18799 | ||
18800 | fi | |
18801 | rm -f conftest* | |
18802 | ||
18803 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
18804 | # in glibc 2.1.3, but that breaks too many other things. | |
18805 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
18806 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
18807 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
18808 | if test "${ac_cv_func_fseeko+set}" = set; then | |
18809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18810 | else | |
18811 | cat >conftest.$ac_ext <<_ACEOF | |
18812 | /* confdefs.h. */ | |
18813 | _ACEOF | |
18814 | cat confdefs.h >>conftest.$ac_ext | |
18815 | cat >>conftest.$ac_ext <<_ACEOF | |
18816 | /* end confdefs.h. */ | |
18817 | #include <stdio.h> | |
18818 | int | |
18819 | main () | |
18820 | { | |
18821 | return fseeko && fseeko (stdin, 0, 0); | |
18822 | ; | |
18823 | return 0; | |
18824 | } | |
18825 | _ACEOF | |
18826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18828 | (eval $ac_link) 2>conftest.er1 | |
18829 | ac_status=$? | |
18830 | grep -v '^ *+' conftest.er1 >conftest.err | |
18831 | rm -f conftest.er1 | |
18832 | cat conftest.err >&5 | |
18833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18834 | (exit $ac_status); } && | |
04840eaa VS |
18835 | { ac_try='test -z "$ac_c_werror_flag" |
18836 | || test ! -s conftest.err' | |
5294a27e VZ |
18837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18838 | (eval $ac_try) 2>&5 | |
18839 | ac_status=$? | |
18840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18841 | (exit $ac_status); }; } && | |
18842 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
18848 | ac_cv_func_fseeko=yes | |
18849 | else | |
18850 | echo "$as_me: failed program was:" >&5 | |
18851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18852 | ||
18853 | ac_cv_func_fseeko=no | |
18854 | fi | |
18855 | rm -f conftest.err conftest.$ac_objext \ | |
18856 | conftest$ac_exeext conftest.$ac_ext | |
18857 | fi | |
18858 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
18859 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
18860 | if test $ac_cv_func_fseeko = yes; then | |
18861 | ||
18862 | cat >>confdefs.h <<\_ACEOF | |
18863 | #define HAVE_FSEEKO 1 | |
18864 | _ACEOF | |
18865 | ||
18866 | fi | |
18867 | ||
5b674b9d DE |
18868 | if test "$ac_cv_sys_largefile_source" != no; then |
18869 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
18870 | fi |
18871 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18872 | fi | |
18873 | ||
18874 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18875 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18876 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18878 | else | |
18879 | ac_cv_c_bigendian=unknown | |
18880 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18881 | cat >conftest.$ac_ext <<_ACEOF | |
18882 | /* confdefs.h. */ | |
18883 | _ACEOF | |
18884 | cat confdefs.h >>conftest.$ac_ext | |
18885 | cat >>conftest.$ac_ext <<_ACEOF | |
18886 | /* end confdefs.h. */ | |
18887 | #include <sys/types.h> | |
18888 | #include <sys/param.h> | |
18889 | int | |
18890 | main () | |
18891 | { | |
18892 | ||
18893 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18894 | bogus endian macros | |
18895 | #endif | |
18896 | ; | |
18897 | return 0; | |
18898 | } | |
18899 | _ACEOF | |
18900 | rm -f conftest.$ac_objext | |
18901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18902 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18903 | ac_status=$? |
ac1cb8d3 VS |
18904 | grep -v '^ *+' conftest.er1 >conftest.err |
18905 | rm -f conftest.er1 | |
18906 | cat conftest.err >&5 | |
a848cd7e SC |
18907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18908 | (exit $ac_status); } && | |
04840eaa VS |
18909 | { ac_try='test -z "$ac_c_werror_flag" |
18910 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18912 | (eval $ac_try) 2>&5 | |
18913 | ac_status=$? | |
18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18915 | (exit $ac_status); }; } && | |
18916 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18918 | (eval $ac_try) 2>&5 | |
18919 | ac_status=$? | |
18920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18921 | (exit $ac_status); }; }; then | |
18922 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18923 | cat >conftest.$ac_ext <<_ACEOF | |
18924 | /* confdefs.h. */ | |
18925 | _ACEOF | |
18926 | cat confdefs.h >>conftest.$ac_ext | |
18927 | cat >>conftest.$ac_ext <<_ACEOF | |
18928 | /* end confdefs.h. */ | |
18929 | #include <sys/types.h> | |
18930 | #include <sys/param.h> | |
18931 | int | |
18932 | main () | |
18933 | { | |
18934 | ||
18935 | #if BYTE_ORDER != BIG_ENDIAN | |
18936 | not big endian | |
18937 | #endif | |
18938 | ; | |
18939 | return 0; | |
18940 | } | |
18941 | _ACEOF | |
18942 | rm -f conftest.$ac_objext | |
18943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18945 | ac_status=$? |
ac1cb8d3 VS |
18946 | grep -v '^ *+' conftest.er1 >conftest.err |
18947 | rm -f conftest.er1 | |
18948 | cat conftest.err >&5 | |
a848cd7e SC |
18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18950 | (exit $ac_status); } && | |
04840eaa VS |
18951 | { ac_try='test -z "$ac_c_werror_flag" |
18952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18954 | (eval $ac_try) 2>&5 | |
18955 | ac_status=$? | |
18956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18957 | (exit $ac_status); }; } && | |
18958 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18960 | (eval $ac_try) 2>&5 | |
18961 | ac_status=$? | |
18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18963 | (exit $ac_status); }; }; then | |
18964 | ac_cv_c_bigendian=yes | |
18965 | else | |
18966 | echo "$as_me: failed program was:" >&5 | |
18967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18968 | ||
18969 | ac_cv_c_bigendian=no | |
18970 | fi | |
ac1cb8d3 | 18971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18972 | else |
18973 | echo "$as_me: failed program was:" >&5 | |
18974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18975 | ||
18976 | fi | |
ac1cb8d3 | 18977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18978 | if test $ac_cv_c_bigendian = unknown; then |
18979 | if test "$cross_compiling" = yes; then | |
18980 | ac_cv_c_bigendian=unknown | |
18981 | else | |
18982 | cat >conftest.$ac_ext <<_ACEOF | |
18983 | /* confdefs.h. */ | |
18984 | _ACEOF | |
18985 | cat confdefs.h >>conftest.$ac_ext | |
18986 | cat >>conftest.$ac_ext <<_ACEOF | |
18987 | /* end confdefs.h. */ | |
18988 | main () { | |
18989 | /* Are we little or big endian? From Harbison&Steele. */ | |
18990 | union | |
18991 | { | |
18992 | long l; | |
18993 | char c[sizeof (long)]; | |
18994 | } u; | |
18995 | u.l = 1; | |
18996 | exit (u.c[sizeof (long) - 1] == 1); | |
18997 | } | |
18998 | _ACEOF | |
18999 | rm -f conftest$ac_exeext | |
19000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19001 | (eval $ac_link) 2>&5 | |
19002 | ac_status=$? | |
19003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19004 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19006 | (eval $ac_try) 2>&5 | |
19007 | ac_status=$? | |
19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19009 | (exit $ac_status); }; }; then | |
19010 | ac_cv_c_bigendian=no | |
19011 | else | |
19012 | echo "$as_me: program exited with status $ac_status" >&5 | |
19013 | echo "$as_me: failed program was:" >&5 | |
19014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19015 | ||
19016 | ( exit $ac_status ) | |
19017 | ac_cv_c_bigendian=yes | |
19018 | fi | |
ac1cb8d3 | 19019 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19020 | fi |
19021 | fi | |
19022 | fi | |
19023 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
19024 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
19025 | if test $ac_cv_c_bigendian = unknown; then | |
19026 | { 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 | |
19027 | 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;} | |
19028 | fi | |
19029 | if test $ac_cv_c_bigendian = yes; then | |
19030 | cat >>confdefs.h <<\_ACEOF | |
19031 | #define WORDS_BIGENDIAN 1 | |
19032 | _ACEOF | |
19033 | ||
19034 | fi | |
19035 | ||
19036 | ||
19037 | ac_ext=cc | |
19038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19042 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
19043 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
19044 | if test -z "$CXXCPP"; then | |
19045 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
19046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19047 | else | |
19048 | # Double quotes because CXXCPP needs to be expanded | |
19049 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
19050 | do | |
19051 | ac_preproc_ok=false | |
19052 | for ac_cxx_preproc_warn_flag in '' yes | |
19053 | do | |
19054 | # Use a header file that comes with gcc, so configuring glibc | |
19055 | # with a fresh cross-compiler works. | |
19056 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19057 | # <limits.h> exists even on freestanding compilers. | |
19058 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19059 | # not just through cpp. "Syntax error" is here to catch this case. | |
19060 | cat >conftest.$ac_ext <<_ACEOF | |
19061 | /* confdefs.h. */ | |
19062 | _ACEOF | |
19063 | cat confdefs.h >>conftest.$ac_ext | |
19064 | cat >>conftest.$ac_ext <<_ACEOF | |
19065 | /* end confdefs.h. */ | |
19066 | #ifdef __STDC__ | |
19067 | # include <limits.h> | |
19068 | #else | |
19069 | # include <assert.h> | |
19070 | #endif | |
ac1cb8d3 | 19071 | Syntax error |
a848cd7e SC |
19072 | _ACEOF |
19073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19075 | ac_status=$? | |
19076 | grep -v '^ *+' conftest.er1 >conftest.err | |
19077 | rm -f conftest.er1 | |
19078 | cat conftest.err >&5 | |
19079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19080 | (exit $ac_status); } >/dev/null; then | |
19081 | if test -s conftest.err; then | |
19082 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19083 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19084 | else |
19085 | ac_cpp_err= | |
19086 | fi | |
19087 | else | |
19088 | ac_cpp_err=yes | |
19089 | fi | |
19090 | if test -z "$ac_cpp_err"; then | |
19091 | : | |
19092 | else | |
19093 | echo "$as_me: failed program was:" >&5 | |
19094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19095 | ||
19096 | # Broken: fails on valid input. | |
19097 | continue | |
19098 | fi | |
19099 | rm -f conftest.err conftest.$ac_ext | |
19100 | ||
19101 | # OK, works on sane cases. Now check whether non-existent headers | |
19102 | # can be detected and how. | |
19103 | cat >conftest.$ac_ext <<_ACEOF | |
19104 | /* confdefs.h. */ | |
19105 | _ACEOF | |
19106 | cat confdefs.h >>conftest.$ac_ext | |
19107 | cat >>conftest.$ac_ext <<_ACEOF | |
19108 | /* end confdefs.h. */ | |
19109 | #include <ac_nonexistent.h> | |
19110 | _ACEOF | |
19111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19113 | ac_status=$? | |
19114 | grep -v '^ *+' conftest.er1 >conftest.err | |
19115 | rm -f conftest.er1 | |
19116 | cat conftest.err >&5 | |
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19118 | (exit $ac_status); } >/dev/null; then | |
19119 | if test -s conftest.err; then | |
19120 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19121 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19122 | else |
19123 | ac_cpp_err= | |
19124 | fi | |
19125 | else | |
19126 | ac_cpp_err=yes | |
19127 | fi | |
19128 | if test -z "$ac_cpp_err"; then | |
19129 | # Broken: success on invalid input. | |
19130 | continue | |
19131 | else | |
19132 | echo "$as_me: failed program was:" >&5 | |
19133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19134 | ||
19135 | # Passes both tests. | |
19136 | ac_preproc_ok=: | |
19137 | break | |
19138 | fi | |
19139 | rm -f conftest.err conftest.$ac_ext | |
19140 | ||
19141 | done | |
19142 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19143 | rm -f conftest.err conftest.$ac_ext | |
19144 | if $ac_preproc_ok; then | |
19145 | break | |
19146 | fi | |
19147 | ||
19148 | done | |
19149 | ac_cv_prog_CXXCPP=$CXXCPP | |
19150 | ||
19151 | fi | |
19152 | CXXCPP=$ac_cv_prog_CXXCPP | |
19153 | else | |
19154 | ac_cv_prog_CXXCPP=$CXXCPP | |
19155 | fi | |
19156 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
19157 | echo "${ECHO_T}$CXXCPP" >&6 | |
19158 | ac_preproc_ok=false | |
19159 | for ac_cxx_preproc_warn_flag in '' yes | |
19160 | do | |
19161 | # Use a header file that comes with gcc, so configuring glibc | |
19162 | # with a fresh cross-compiler works. | |
19163 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19164 | # <limits.h> exists even on freestanding compilers. | |
19165 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19166 | # not just through cpp. "Syntax error" is here to catch this case. | |
19167 | cat >conftest.$ac_ext <<_ACEOF | |
19168 | /* confdefs.h. */ | |
19169 | _ACEOF | |
19170 | cat confdefs.h >>conftest.$ac_ext | |
19171 | cat >>conftest.$ac_ext <<_ACEOF | |
19172 | /* end confdefs.h. */ | |
19173 | #ifdef __STDC__ | |
19174 | # include <limits.h> | |
19175 | #else | |
19176 | # include <assert.h> | |
19177 | #endif | |
ac1cb8d3 | 19178 | Syntax error |
a848cd7e SC |
19179 | _ACEOF |
19180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19182 | ac_status=$? | |
19183 | grep -v '^ *+' conftest.er1 >conftest.err | |
19184 | rm -f conftest.er1 | |
19185 | cat conftest.err >&5 | |
19186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19187 | (exit $ac_status); } >/dev/null; then | |
19188 | if test -s conftest.err; then | |
19189 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19190 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19191 | else |
19192 | ac_cpp_err= | |
19193 | fi | |
19194 | else | |
19195 | ac_cpp_err=yes | |
19196 | fi | |
19197 | if test -z "$ac_cpp_err"; then | |
19198 | : | |
19199 | else | |
19200 | echo "$as_me: failed program was:" >&5 | |
19201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19202 | ||
19203 | # Broken: fails on valid input. | |
19204 | continue | |
19205 | fi | |
19206 | rm -f conftest.err conftest.$ac_ext | |
19207 | ||
19208 | # OK, works on sane cases. Now check whether non-existent headers | |
19209 | # can be detected and how. | |
19210 | cat >conftest.$ac_ext <<_ACEOF | |
19211 | /* confdefs.h. */ | |
19212 | _ACEOF | |
19213 | cat confdefs.h >>conftest.$ac_ext | |
19214 | cat >>conftest.$ac_ext <<_ACEOF | |
19215 | /* end confdefs.h. */ | |
19216 | #include <ac_nonexistent.h> | |
19217 | _ACEOF | |
19218 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19219 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19220 | ac_status=$? | |
19221 | grep -v '^ *+' conftest.er1 >conftest.err | |
19222 | rm -f conftest.er1 | |
19223 | cat conftest.err >&5 | |
19224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19225 | (exit $ac_status); } >/dev/null; then | |
19226 | if test -s conftest.err; then | |
19227 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19228 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19229 | else |
19230 | ac_cpp_err= | |
19231 | fi | |
19232 | else | |
19233 | ac_cpp_err=yes | |
19234 | fi | |
19235 | if test -z "$ac_cpp_err"; then | |
19236 | # Broken: success on invalid input. | |
19237 | continue | |
19238 | else | |
19239 | echo "$as_me: failed program was:" >&5 | |
19240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19241 | ||
19242 | # Passes both tests. | |
19243 | ac_preproc_ok=: | |
19244 | break | |
19245 | fi | |
19246 | rm -f conftest.err conftest.$ac_ext | |
19247 | ||
19248 | done | |
19249 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19250 | rm -f conftest.err conftest.$ac_ext | |
19251 | if $ac_preproc_ok; then | |
19252 | : | |
19253 | else | |
19254 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19255 | See \`config.log' for more details." >&5 | |
19256 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19257 | See \`config.log' for more details." >&2;} | |
19258 | { (exit 1); exit 1; }; } | |
19259 | fi | |
19260 | ||
19261 | ac_ext=cc | |
19262 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19263 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19264 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19265 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19266 | ||
19267 | ||
19268 | ||
19269 | ||
19270 | ||
19271 | ac_ext=cc | |
19272 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19273 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19274 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19275 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19276 | ||
19277 | ||
19278 | ||
19279 | for ac_header in iostream | |
19280 | do | |
19281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19287 | fi | |
19288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19290 | else | |
19291 | # Is the header compilable? | |
19292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19294 | cat >conftest.$ac_ext <<_ACEOF | |
19295 | /* confdefs.h. */ | |
19296 | _ACEOF | |
19297 | cat confdefs.h >>conftest.$ac_ext | |
19298 | cat >>conftest.$ac_ext <<_ACEOF | |
19299 | /* end confdefs.h. */ | |
19300 | $ac_includes_default | |
19301 | #include <$ac_header> | |
19302 | _ACEOF | |
19303 | rm -f conftest.$ac_objext | |
19304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19305 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19306 | ac_status=$? |
ac1cb8d3 VS |
19307 | grep -v '^ *+' conftest.er1 >conftest.err |
19308 | rm -f conftest.er1 | |
19309 | cat conftest.err >&5 | |
a848cd7e SC |
19310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19311 | (exit $ac_status); } && | |
04840eaa VS |
19312 | { ac_try='test -z "$ac_cxx_werror_flag" |
19313 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19315 | (eval $ac_try) 2>&5 | |
19316 | ac_status=$? | |
19317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19318 | (exit $ac_status); }; } && | |
19319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19321 | (eval $ac_try) 2>&5 | |
19322 | ac_status=$? | |
19323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19324 | (exit $ac_status); }; }; then | |
19325 | ac_header_compiler=yes | |
19326 | else | |
19327 | echo "$as_me: failed program was:" >&5 | |
19328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19329 | ||
19330 | ac_header_compiler=no | |
19331 | fi | |
ac1cb8d3 | 19332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19334 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19335 | ||
19336 | # Is the header present? | |
19337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19339 | cat >conftest.$ac_ext <<_ACEOF | |
19340 | /* confdefs.h. */ | |
19341 | _ACEOF | |
19342 | cat confdefs.h >>conftest.$ac_ext | |
19343 | cat >>conftest.$ac_ext <<_ACEOF | |
19344 | /* end confdefs.h. */ | |
19345 | #include <$ac_header> | |
19346 | _ACEOF | |
19347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19349 | ac_status=$? | |
19350 | grep -v '^ *+' conftest.er1 >conftest.err | |
19351 | rm -f conftest.er1 | |
19352 | cat conftest.err >&5 | |
19353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19354 | (exit $ac_status); } >/dev/null; then | |
19355 | if test -s conftest.err; then | |
19356 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19357 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19358 | else |
19359 | ac_cpp_err= | |
19360 | fi | |
19361 | else | |
19362 | ac_cpp_err=yes | |
19363 | fi | |
19364 | if test -z "$ac_cpp_err"; then | |
19365 | ac_header_preproc=yes | |
19366 | else | |
19367 | echo "$as_me: failed program was:" >&5 | |
19368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19369 | ||
19370 | ac_header_preproc=no | |
19371 | fi | |
19372 | rm -f conftest.err conftest.$ac_ext | |
19373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19374 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19375 | ||
19376 | # So? What about this header? | |
ac1cb8d3 VS |
19377 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19378 | yes:no: ) | |
a848cd7e SC |
19379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19383 | ac_header_preproc=yes | |
a848cd7e | 19384 | ;; |
ac1cb8d3 | 19385 | no:yes:* ) |
a848cd7e SC |
19386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19398 | ( |
19399 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19400 | ## ----------------------------------------- ## |
19401 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19402 | ## ----------------------------------------- ## | |
a848cd7e SC |
19403 | _ASBOX |
19404 | ) | | |
19405 | sed "s/^/$as_me: WARNING: /" >&2 | |
19406 | ;; | |
19407 | esac | |
19408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19412 | else | |
ac1cb8d3 | 19413 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19414 | fi |
19415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19417 | ||
19418 | fi | |
19419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19420 | cat >>confdefs.h <<_ACEOF | |
19421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19422 | _ACEOF | |
19423 | ||
19424 | fi | |
19425 | ||
19426 | done | |
19427 | ||
19428 | ||
19429 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19430 | : | |
19431 | else | |
19432 | cat >>confdefs.h <<\_ACEOF | |
19433 | #define wxUSE_IOSTREAMH 1 | |
19434 | _ACEOF | |
19435 | ||
19436 | fi | |
19437 | ||
19438 | ac_ext=c | |
19439 | ac_cpp='$CPP $CPPFLAGS' | |
19440 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19441 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19442 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19443 | ||
19444 | ||
19445 | ||
19446 | ||
19447 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19448 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19449 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19451 | else | |
19452 | ||
19453 | ||
19454 | ||
19455 | ac_ext=cc | |
19456 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19460 | ||
19461 | ||
19462 | cat >conftest.$ac_ext <<_ACEOF | |
19463 | /* confdefs.h. */ | |
19464 | _ACEOF | |
19465 | cat confdefs.h >>conftest.$ac_ext | |
19466 | cat >>conftest.$ac_ext <<_ACEOF | |
19467 | /* end confdefs.h. */ | |
19468 | ||
19469 | ||
19470 | int | |
19471 | main () | |
19472 | { | |
19473 | ||
19474 | bool b = true; | |
19475 | ||
19476 | return 0; | |
19477 | ||
19478 | ; | |
19479 | return 0; | |
19480 | } | |
19481 | _ACEOF | |
19482 | rm -f conftest.$ac_objext | |
19483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19484 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19485 | ac_status=$? |
ac1cb8d3 VS |
19486 | grep -v '^ *+' conftest.er1 >conftest.err |
19487 | rm -f conftest.er1 | |
19488 | cat conftest.err >&5 | |
a848cd7e SC |
19489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19490 | (exit $ac_status); } && | |
04840eaa VS |
19491 | { ac_try='test -z "$ac_cxx_werror_flag" |
19492 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19494 | (eval $ac_try) 2>&5 | |
19495 | ac_status=$? | |
19496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19497 | (exit $ac_status); }; } && | |
19498 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19500 | (eval $ac_try) 2>&5 | |
19501 | ac_status=$? | |
19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19503 | (exit $ac_status); }; }; then | |
19504 | ||
19505 | wx_cv_cpp_bool=yes | |
19506 | ||
19507 | else | |
19508 | echo "$as_me: failed program was:" >&5 | |
19509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19510 | ||
19511 | ||
19512 | wx_cv_cpp_bool=no | |
19513 | ||
19514 | ||
19515 | fi | |
ac1cb8d3 | 19516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19517 | |
19518 | ac_ext=c | |
19519 | ac_cpp='$CPP $CPPFLAGS' | |
19520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19523 | ||
19524 | ||
19525 | fi | |
19526 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19527 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19528 | ||
19529 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19530 | cat >>confdefs.h <<\_ACEOF | |
19531 | #define HAVE_BOOL 1 | |
19532 | _ACEOF | |
19533 | ||
19534 | fi | |
19535 | ||
19536 | ||
19537 | ||
19538 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19539 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19540 | if test "${wx_cv_explicit+set}" = set; then | |
19541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19542 | else | |
19543 | ||
19544 | ||
19545 | ||
19546 | ac_ext=cc | |
19547 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19551 | ||
19552 | ||
19553 | cat >conftest.$ac_ext <<_ACEOF | |
19554 | /* confdefs.h. */ | |
19555 | _ACEOF | |
19556 | cat confdefs.h >>conftest.$ac_ext | |
19557 | cat >>conftest.$ac_ext <<_ACEOF | |
19558 | /* end confdefs.h. */ | |
19559 | ||
19560 | class Foo { public: explicit Foo(int) {} }; | |
19561 | ||
19562 | int | |
19563 | main () | |
19564 | { | |
19565 | ||
19566 | return 0; | |
19567 | ||
19568 | ; | |
19569 | return 0; | |
19570 | } | |
19571 | _ACEOF | |
19572 | rm -f conftest.$ac_objext | |
19573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19574 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19575 | ac_status=$? |
ac1cb8d3 VS |
19576 | grep -v '^ *+' conftest.er1 >conftest.err |
19577 | rm -f conftest.er1 | |
19578 | cat conftest.err >&5 | |
a848cd7e SC |
19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19580 | (exit $ac_status); } && | |
04840eaa VS |
19581 | { ac_try='test -z "$ac_cxx_werror_flag" |
19582 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19584 | (eval $ac_try) 2>&5 | |
19585 | ac_status=$? | |
19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19587 | (exit $ac_status); }; } && | |
19588 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19590 | (eval $ac_try) 2>&5 | |
19591 | ac_status=$? | |
19592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19593 | (exit $ac_status); }; }; then | |
19594 | ||
19595 | cat >conftest.$ac_ext <<_ACEOF | |
19596 | /* confdefs.h. */ | |
19597 | _ACEOF | |
19598 | cat confdefs.h >>conftest.$ac_ext | |
19599 | cat >>conftest.$ac_ext <<_ACEOF | |
19600 | /* end confdefs.h. */ | |
19601 | ||
19602 | class Foo { public: explicit Foo(int) {} }; | |
19603 | static void TakeFoo(const Foo& foo) { } | |
19604 | ||
19605 | int | |
19606 | main () | |
19607 | { | |
19608 | ||
19609 | TakeFoo(17); | |
19610 | return 0; | |
19611 | ||
19612 | ; | |
19613 | return 0; | |
19614 | } | |
19615 | _ACEOF | |
19616 | rm -f conftest.$ac_objext | |
19617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19618 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19619 | ac_status=$? |
ac1cb8d3 VS |
19620 | grep -v '^ *+' conftest.er1 >conftest.err |
19621 | rm -f conftest.er1 | |
19622 | cat conftest.err >&5 | |
a848cd7e SC |
19623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19624 | (exit $ac_status); } && | |
04840eaa VS |
19625 | { ac_try='test -z "$ac_cxx_werror_flag" |
19626 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19628 | (eval $ac_try) 2>&5 | |
19629 | ac_status=$? | |
19630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19631 | (exit $ac_status); }; } && | |
19632 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19634 | (eval $ac_try) 2>&5 | |
19635 | ac_status=$? | |
19636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19637 | (exit $ac_status); }; }; then | |
19638 | wx_cv_explicit=no | |
19639 | else | |
19640 | echo "$as_me: failed program was:" >&5 | |
19641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19642 | ||
19643 | wx_cv_explicit=yes | |
19644 | ||
19645 | fi | |
ac1cb8d3 | 19646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19647 | |
19648 | else | |
19649 | echo "$as_me: failed program was:" >&5 | |
19650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19651 | ||
19652 | wx_cv_explicit=no | |
19653 | ||
19654 | fi | |
ac1cb8d3 | 19655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19656 | |
19657 | ac_ext=c | |
19658 | ac_cpp='$CPP $CPPFLAGS' | |
19659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19662 | ||
19663 | ||
19664 | fi | |
19665 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19666 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19667 | ||
19668 | if test "$wx_cv_explicit" = "yes"; then | |
19669 | cat >>confdefs.h <<\_ACEOF | |
19670 | #define HAVE_EXPLICIT 1 | |
19671 | _ACEOF | |
19672 | ||
19673 | fi | |
19674 | ||
19675 | ||
19676 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19677 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19678 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19680 | else | |
19681 | ||
19682 | ||
19683 | ac_ext=cc | |
19684 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19685 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19686 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19687 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19688 | ||
19689 | cat >conftest.$ac_ext <<_ACEOF | |
19690 | /* confdefs.h. */ | |
19691 | _ACEOF | |
19692 | cat confdefs.h >>conftest.$ac_ext | |
19693 | cat >>conftest.$ac_ext <<_ACEOF | |
19694 | /* end confdefs.h. */ | |
19695 | ||
19696 | int | |
19697 | main () | |
19698 | { | |
19699 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19700 | ; | |
19701 | return 0; | |
19702 | } | |
19703 | _ACEOF | |
19704 | rm -f conftest.$ac_objext | |
19705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19706 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19707 | ac_status=$? |
ac1cb8d3 VS |
19708 | grep -v '^ *+' conftest.er1 >conftest.err |
19709 | rm -f conftest.er1 | |
19710 | cat conftest.err >&5 | |
a848cd7e SC |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19712 | (exit $ac_status); } && | |
04840eaa VS |
19713 | { ac_try='test -z "$ac_cxx_werror_flag" |
19714 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19716 | (eval $ac_try) 2>&5 | |
19717 | ac_status=$? | |
19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19719 | (exit $ac_status); }; } && | |
19720 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19722 | (eval $ac_try) 2>&5 | |
19723 | ac_status=$? | |
19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19725 | (exit $ac_status); }; }; then | |
19726 | ac_cv_cxx_const_cast=yes | |
19727 | else | |
19728 | echo "$as_me: failed program was:" >&5 | |
19729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19730 | ||
19731 | ac_cv_cxx_const_cast=no | |
19732 | fi | |
ac1cb8d3 | 19733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19734 | ac_ext=c |
19735 | ac_cpp='$CPP $CPPFLAGS' | |
19736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19739 | ||
19740 | ||
19741 | fi | |
19742 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19743 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19744 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19745 | ||
19746 | cat >>confdefs.h <<\_ACEOF | |
19747 | #define HAVE_CONST_CAST | |
19748 | _ACEOF | |
19749 | ||
19750 | fi | |
19751 | ||
7714864e RL |
19752 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19753 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19754 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19756 | else | |
19757 | ||
19758 | ||
19759 | ac_ext=cc | |
19760 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19761 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19762 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19763 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19764 | ||
19765 | cat >conftest.$ac_ext <<_ACEOF | |
19766 | /* confdefs.h. */ | |
19767 | _ACEOF | |
19768 | cat confdefs.h >>conftest.$ac_ext | |
19769 | cat >>conftest.$ac_ext <<_ACEOF | |
19770 | /* end confdefs.h. */ | |
19771 | #include <typeinfo> | |
19772 | class Base { public : Base () {} virtual void f () = 0;}; | |
19773 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19774 | class Unrelated { public : Unrelated () {} }; | |
19775 | int g (Unrelated&) { return 0; } | |
19776 | int | |
19777 | main () | |
19778 | { | |
19779 | ||
19780 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19781 | ; | |
19782 | return 0; | |
19783 | } | |
19784 | _ACEOF | |
19785 | rm -f conftest.$ac_objext | |
19786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19787 | (eval $ac_compile) 2>conftest.er1 | |
19788 | ac_status=$? | |
19789 | grep -v '^ *+' conftest.er1 >conftest.err | |
19790 | rm -f conftest.er1 | |
19791 | cat conftest.err >&5 | |
19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19793 | (exit $ac_status); } && | |
04840eaa VS |
19794 | { ac_try='test -z "$ac_cxx_werror_flag" |
19795 | || test ! -s conftest.err' | |
7714864e RL |
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); }; } && | |
19801 | { ac_try='test -s conftest.$ac_objext' | |
19802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19803 | (eval $ac_try) 2>&5 | |
19804 | ac_status=$? | |
19805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19806 | (exit $ac_status); }; }; then | |
19807 | ac_cv_cxx_reinterpret_cast=yes | |
19808 | else | |
19809 | echo "$as_me: failed program was:" >&5 | |
19810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19811 | ||
19812 | ac_cv_cxx_reinterpret_cast=no | |
19813 | fi | |
19814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19815 | ac_ext=c | |
19816 | ac_cpp='$CPP $CPPFLAGS' | |
19817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19820 | ||
19821 | ||
19822 | fi | |
19823 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
19824 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
19825 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
19826 | ||
19827 | cat >>confdefs.h <<\_ACEOF | |
19828 | #define HAVE_REINTERPRET_CAST | |
19829 | _ACEOF | |
19830 | ||
19831 | fi | |
19832 | ||
a848cd7e SC |
19833 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19834 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19835 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19837 | else | |
19838 | ||
19839 | ||
19840 | ac_ext=cc | |
19841 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19842 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19843 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19844 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19845 | ||
19846 | cat >conftest.$ac_ext <<_ACEOF | |
19847 | /* confdefs.h. */ | |
19848 | _ACEOF | |
19849 | cat confdefs.h >>conftest.$ac_ext | |
19850 | cat >>conftest.$ac_ext <<_ACEOF | |
19851 | /* end confdefs.h. */ | |
19852 | #include <typeinfo> | |
19853 | class Base { public : Base () {} virtual void f () = 0; }; | |
19854 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19855 | int g (Derived&) { return 0; } | |
19856 | int | |
19857 | main () | |
19858 | { | |
19859 | ||
19860 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19861 | ; | |
19862 | return 0; | |
19863 | } | |
19864 | _ACEOF | |
19865 | rm -f conftest.$ac_objext | |
19866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19867 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19868 | ac_status=$? |
ac1cb8d3 VS |
19869 | grep -v '^ *+' conftest.er1 >conftest.err |
19870 | rm -f conftest.er1 | |
19871 | cat conftest.err >&5 | |
a848cd7e SC |
19872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19873 | (exit $ac_status); } && | |
04840eaa VS |
19874 | { ac_try='test -z "$ac_cxx_werror_flag" |
19875 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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' | |
a848cd7e SC |
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 | ac_cv_cxx_static_cast=yes | |
19888 | else | |
19889 | echo "$as_me: failed program was:" >&5 | |
19890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19891 | ||
19892 | ac_cv_cxx_static_cast=no | |
19893 | fi | |
ac1cb8d3 | 19894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19895 | ac_ext=c |
19896 | ac_cpp='$CPP $CPPFLAGS' | |
19897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19900 | ||
19901 | ||
19902 | fi | |
19903 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19904 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19905 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19906 | ||
19907 | cat >>confdefs.h <<\_ACEOF | |
19908 | #define HAVE_STATIC_CAST | |
19909 | _ACEOF | |
19910 | ||
19911 | fi | |
19912 | ||
19913 | ||
19914 | if test "$wxUSE_STL" = "yes"; then | |
19915 | ac_ext=cc | |
19916 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19917 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19918 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19919 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19920 | ||
19921 | ||
19922 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19923 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19924 | cat >conftest.$ac_ext <<_ACEOF | |
19925 | /* confdefs.h. */ | |
19926 | _ACEOF | |
19927 | cat confdefs.h >>conftest.$ac_ext | |
19928 | cat >>conftest.$ac_ext <<_ACEOF | |
19929 | /* end confdefs.h. */ | |
19930 | #include <string> | |
19931 | #include <functional> | |
19932 | #include <algorithm> | |
19933 | #include <vector> | |
19934 | #include <list> | |
19935 | int | |
19936 | main () | |
19937 | { | |
19938 | std::vector<int> moo; | |
19939 | std::list<int> foo; | |
19940 | std::vector<int>::iterator it = | |
19941 | std::find_if(moo.begin(), moo.end(), | |
19942 | std::bind2nd(std::less<int>(), 3)); | |
19943 | ; | |
19944 | return 0; | |
19945 | } | |
19946 | _ACEOF | |
19947 | rm -f conftest.$ac_objext | |
19948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19949 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19950 | ac_status=$? |
ac1cb8d3 VS |
19951 | grep -v '^ *+' conftest.er1 >conftest.err |
19952 | rm -f conftest.er1 | |
19953 | cat conftest.err >&5 | |
a848cd7e SC |
19954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19955 | (exit $ac_status); } && | |
04840eaa VS |
19956 | { ac_try='test -z "$ac_cxx_werror_flag" |
19957 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19959 | (eval $ac_try) 2>&5 | |
19960 | ac_status=$? | |
19961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19962 | (exit $ac_status); }; } && | |
19963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19965 | (eval $ac_try) 2>&5 | |
19966 | ac_status=$? | |
19967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19968 | (exit $ac_status); }; }; then | |
19969 | echo "$as_me:$LINENO: result: yes" >&5 | |
19970 | echo "${ECHO_T}yes" >&6 | |
19971 | else | |
19972 | echo "$as_me: failed program was:" >&5 | |
19973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19974 | ||
19975 | echo "$as_me:$LINENO: result: no" >&5 | |
19976 | echo "${ECHO_T}no" >&6 | |
19977 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19978 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19979 | { (exit 1); exit 1; }; } | |
19980 | fi | |
ac1cb8d3 | 19981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19982 | |
19983 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19984 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19985 | cat >conftest.$ac_ext <<_ACEOF | |
19986 | /* confdefs.h. */ | |
19987 | _ACEOF | |
19988 | cat confdefs.h >>conftest.$ac_ext | |
19989 | cat >>conftest.$ac_ext <<_ACEOF | |
19990 | /* end confdefs.h. */ | |
19991 | #include <string> | |
19992 | int | |
19993 | main () | |
19994 | { | |
19995 | std::wstring foo; | |
19996 | ; | |
19997 | return 0; | |
19998 | } | |
19999 | _ACEOF | |
20000 | rm -f conftest.$ac_objext | |
20001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20002 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20003 | ac_status=$? |
ac1cb8d3 VS |
20004 | grep -v '^ *+' conftest.er1 >conftest.err |
20005 | rm -f conftest.er1 | |
20006 | cat conftest.err >&5 | |
a848cd7e SC |
20007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20008 | (exit $ac_status); } && | |
04840eaa VS |
20009 | { ac_try='test -z "$ac_cxx_werror_flag" |
20010 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20012 | (eval $ac_try) 2>&5 | |
20013 | ac_status=$? | |
20014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20015 | (exit $ac_status); }; } && | |
20016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20018 | (eval $ac_try) 2>&5 | |
20019 | ac_status=$? | |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20021 | (exit $ac_status); }; }; then | |
20022 | echo "$as_me:$LINENO: result: yes" >&5 | |
20023 | echo "${ECHO_T}yes" >&6 | |
20024 | cat >>confdefs.h <<\_ACEOF | |
20025 | #define HAVE_STD_WSTRING 1 | |
20026 | _ACEOF | |
20027 | ||
20028 | else | |
20029 | echo "$as_me: failed program was:" >&5 | |
20030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20031 | ||
20032 | echo "$as_me:$LINENO: result: no" >&5 | |
20033 | echo "${ECHO_T}no" >&6 | |
20034 | fi | |
ac1cb8d3 | 20035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20036 | |
20037 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
20038 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
20039 | cat >conftest.$ac_ext <<_ACEOF | |
20040 | /* confdefs.h. */ | |
20041 | _ACEOF | |
20042 | cat confdefs.h >>conftest.$ac_ext | |
20043 | cat >>conftest.$ac_ext <<_ACEOF | |
20044 | /* end confdefs.h. */ | |
20045 | #include <string> | |
20046 | int | |
20047 | main () | |
20048 | { | |
20049 | std::string foo, bar; | |
20050 | foo.compare(bar); | |
20051 | foo.compare(1, 1, bar); | |
20052 | foo.compare(1, 1, bar, 1, 1); | |
20053 | foo.compare(""); | |
20054 | foo.compare(1, 1, ""); | |
20055 | foo.compare(1, 1, "", 2); | |
20056 | ; | |
20057 | return 0; | |
20058 | } | |
20059 | _ACEOF | |
20060 | rm -f conftest.$ac_objext | |
20061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20062 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20063 | ac_status=$? |
ac1cb8d3 VS |
20064 | grep -v '^ *+' conftest.er1 >conftest.err |
20065 | rm -f conftest.er1 | |
20066 | cat conftest.err >&5 | |
a848cd7e SC |
20067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20068 | (exit $ac_status); } && | |
04840eaa VS |
20069 | { ac_try='test -z "$ac_cxx_werror_flag" |
20070 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20072 | (eval $ac_try) 2>&5 | |
20073 | ac_status=$? | |
20074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20075 | (exit $ac_status); }; } && | |
20076 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20078 | (eval $ac_try) 2>&5 | |
20079 | ac_status=$? | |
20080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20081 | (exit $ac_status); }; }; then | |
20082 | echo "$as_me:$LINENO: result: yes" >&5 | |
20083 | echo "${ECHO_T}yes" >&6 | |
20084 | cat >>confdefs.h <<\_ACEOF | |
20085 | #define HAVE_STD_STRING_COMPARE 1 | |
20086 | _ACEOF | |
20087 | ||
20088 | else | |
20089 | echo "$as_me: failed program was:" >&5 | |
20090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20091 | ||
20092 | echo "$as_me:$LINENO: result: no" >&5 | |
20093 | echo "${ECHO_T}no" >&6 | |
20094 | fi | |
ac1cb8d3 | 20095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20096 | |
20097 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20098 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20099 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20100 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20102 | fi | |
20103 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20104 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20105 | else | |
20106 | # Is the header compilable? | |
20107 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
20108 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
20109 | cat >conftest.$ac_ext <<_ACEOF | |
20110 | /* confdefs.h. */ | |
20111 | _ACEOF | |
20112 | cat confdefs.h >>conftest.$ac_ext | |
20113 | cat >>conftest.$ac_ext <<_ACEOF | |
20114 | /* end confdefs.h. */ | |
20115 | $ac_includes_default | |
20116 | #include <hash_map> | |
20117 | _ACEOF | |
20118 | rm -f conftest.$ac_objext | |
20119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20120 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20121 | ac_status=$? |
ac1cb8d3 VS |
20122 | grep -v '^ *+' conftest.er1 >conftest.err |
20123 | rm -f conftest.er1 | |
20124 | cat conftest.err >&5 | |
bdcade0a MB |
20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20126 | (exit $ac_status); } && | |
04840eaa VS |
20127 | { ac_try='test -z "$ac_cxx_werror_flag" |
20128 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20130 | (eval $ac_try) 2>&5 | |
20131 | ac_status=$? | |
20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20133 | (exit $ac_status); }; } && | |
20134 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20136 | (eval $ac_try) 2>&5 | |
20137 | ac_status=$? | |
20138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20139 | (exit $ac_status); }; }; then | |
20140 | ac_header_compiler=yes | |
20141 | else | |
20142 | echo "$as_me: failed program was:" >&5 | |
20143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20144 | ||
20145 | ac_header_compiler=no | |
20146 | fi | |
ac1cb8d3 | 20147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20148 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20149 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20150 | ||
20151 | # Is the header present? | |
20152 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
20153 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
20154 | cat >conftest.$ac_ext <<_ACEOF | |
20155 | /* confdefs.h. */ | |
20156 | _ACEOF | |
20157 | cat confdefs.h >>conftest.$ac_ext | |
20158 | cat >>conftest.$ac_ext <<_ACEOF | |
20159 | /* end confdefs.h. */ | |
20160 | #include <hash_map> | |
20161 | _ACEOF | |
20162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20164 | ac_status=$? | |
20165 | grep -v '^ *+' conftest.er1 >conftest.err | |
20166 | rm -f conftest.er1 | |
20167 | cat conftest.err >&5 | |
20168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20169 | (exit $ac_status); } >/dev/null; then | |
20170 | if test -s conftest.err; then | |
20171 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20172 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20173 | else |
20174 | ac_cpp_err= | |
20175 | fi | |
20176 | else | |
20177 | ac_cpp_err=yes | |
20178 | fi | |
20179 | if test -z "$ac_cpp_err"; then | |
20180 | ac_header_preproc=yes | |
20181 | else | |
20182 | echo "$as_me: failed program was:" >&5 | |
20183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20184 | ||
20185 | ac_header_preproc=no | |
20186 | fi | |
20187 | rm -f conftest.err conftest.$ac_ext | |
20188 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20189 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20190 | ||
20191 | # So? What about this header? | |
ac1cb8d3 VS |
20192 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20193 | yes:no: ) | |
bdcade0a MB |
20194 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20195 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20196 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
20197 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
20198 | ac_header_preproc=yes | |
bdcade0a | 20199 | ;; |
ac1cb8d3 | 20200 | no:yes:* ) |
bdcade0a MB |
20201 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
20202 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20203 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
20204 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
20205 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
20206 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
20207 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20208 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20209 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
20210 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20211 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
20212 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20213 | ( |
20214 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20215 | ## ----------------------------------------- ## |
20216 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20217 | ## ----------------------------------------- ## | |
bdcade0a MB |
20218 | _ASBOX |
20219 | ) | | |
20220 | sed "s/^/$as_me: WARNING: /" >&2 | |
20221 | ;; | |
20222 | esac | |
20223 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20224 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20225 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20227 | else | |
20228 | ac_cv_header_hash_map=$ac_header_preproc | |
20229 | fi | |
20230 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20231 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20232 | ||
20233 | fi | |
20234 | if test $ac_cv_header_hash_map = yes; then | |
20235 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20236 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20237 | cat >conftest.$ac_ext <<_ACEOF | |
20238 | /* confdefs.h. */ | |
20239 | _ACEOF | |
20240 | cat confdefs.h >>conftest.$ac_ext | |
20241 | cat >>conftest.$ac_ext <<_ACEOF | |
20242 | /* end confdefs.h. */ | |
20243 | #include <hash_map> | |
20244 | #include <hash_set> | |
20245 | int | |
20246 | main () | |
20247 | { | |
20248 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
20249 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
20250 | ; | |
20251 | return 0; | |
20252 | } | |
20253 | _ACEOF | |
20254 | rm -f conftest.$ac_objext | |
20255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20256 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20257 | ac_status=$? |
ac1cb8d3 VS |
20258 | grep -v '^ *+' conftest.er1 >conftest.err |
20259 | rm -f conftest.er1 | |
20260 | cat conftest.err >&5 | |
bdcade0a MB |
20261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20262 | (exit $ac_status); } && | |
04840eaa VS |
20263 | { ac_try='test -z "$ac_cxx_werror_flag" |
20264 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20266 | (eval $ac_try) 2>&5 | |
20267 | ac_status=$? | |
20268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20269 | (exit $ac_status); }; } && | |
20270 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20272 | (eval $ac_try) 2>&5 | |
20273 | ac_status=$? | |
20274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20275 | (exit $ac_status); }; }; then | |
20276 | echo "$as_me:$LINENO: result: yes" >&5 | |
20277 | echo "${ECHO_T}yes" >&6 | |
20278 | cat >>confdefs.h <<\_ACEOF | |
20279 | #define HAVE_HASH_MAP 1 | |
20280 | _ACEOF | |
20281 | ||
20282 | cat >>confdefs.h <<\_ACEOF | |
20283 | #define HAVE_STD_HASH_MAP 1 | |
20284 | _ACEOF | |
20285 | ||
20286 | else | |
20287 | echo "$as_me: failed program was:" >&5 | |
20288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20289 | ||
20290 | echo "$as_me:$LINENO: result: no" >&5 | |
20291 | echo "${ECHO_T}no" >&6 | |
20292 | fi | |
ac1cb8d3 | 20293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20294 | |
20295 | fi | |
20296 | ||
20297 | ||
20298 | ||
20299 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20300 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20301 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20302 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20304 | fi | |
20305 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20306 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20307 | else | |
20308 | # Is the header compilable? | |
20309 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
20310 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
20311 | cat >conftest.$ac_ext <<_ACEOF | |
20312 | /* confdefs.h. */ | |
20313 | _ACEOF | |
20314 | cat confdefs.h >>conftest.$ac_ext | |
20315 | cat >>conftest.$ac_ext <<_ACEOF | |
20316 | /* end confdefs.h. */ | |
20317 | $ac_includes_default | |
20318 | #include <ext/hash_map> | |
20319 | _ACEOF | |
20320 | rm -f conftest.$ac_objext | |
20321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20322 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20323 | ac_status=$? |
ac1cb8d3 VS |
20324 | grep -v '^ *+' conftest.er1 >conftest.err |
20325 | rm -f conftest.er1 | |
20326 | cat conftest.err >&5 | |
bdcade0a MB |
20327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20328 | (exit $ac_status); } && | |
04840eaa VS |
20329 | { ac_try='test -z "$ac_cxx_werror_flag" |
20330 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20332 | (eval $ac_try) 2>&5 | |
20333 | ac_status=$? | |
20334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20335 | (exit $ac_status); }; } && | |
20336 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20338 | (eval $ac_try) 2>&5 | |
20339 | ac_status=$? | |
20340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20341 | (exit $ac_status); }; }; then | |
20342 | ac_header_compiler=yes | |
20343 | else | |
20344 | echo "$as_me: failed program was:" >&5 | |
20345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20346 | ||
20347 | ac_header_compiler=no | |
20348 | fi | |
ac1cb8d3 | 20349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20350 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20351 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20352 | ||
20353 | # Is the header present? | |
20354 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
20355 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
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 <ext/hash_map> | |
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 |
bdcade0a MB |
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 | ac_header_preproc=yes | |
20383 | else | |
20384 | echo "$as_me: failed program was:" >&5 | |
20385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20386 | ||
20387 | ac_header_preproc=no | |
20388 | fi | |
20389 | rm -f conftest.err conftest.$ac_ext | |
20390 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20391 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20392 | ||
20393 | # So? What about this header? | |
ac1cb8d3 VS |
20394 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20395 | yes:no: ) | |
bdcade0a MB |
20396 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20397 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20398 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
20399 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20400 | ac_header_preproc=yes | |
bdcade0a | 20401 | ;; |
ac1cb8d3 | 20402 | no:yes:* ) |
bdcade0a MB |
20403 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20404 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20405 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20406 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20407 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20408 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20409 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20410 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20411 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20412 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20413 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20414 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20415 | ( |
20416 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20417 | ## ----------------------------------------- ## |
20418 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20419 | ## ----------------------------------------- ## | |
bdcade0a MB |
20420 | _ASBOX |
20421 | ) | | |
20422 | sed "s/^/$as_me: WARNING: /" >&2 | |
20423 | ;; | |
20424 | esac | |
20425 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20426 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20427 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20429 | else | |
20430 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20431 | fi | |
20432 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20433 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20434 | ||
20435 | fi | |
20436 | if test $ac_cv_header_ext_hash_map = yes; then | |
20437 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20438 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20439 | cat >conftest.$ac_ext <<_ACEOF | |
20440 | /* confdefs.h. */ | |
20441 | _ACEOF | |
20442 | cat confdefs.h >>conftest.$ac_ext | |
20443 | cat >>conftest.$ac_ext <<_ACEOF | |
20444 | /* end confdefs.h. */ | |
20445 | #include <ext/hash_map> | |
20446 | #include <ext/hash_set> | |
20447 | int | |
20448 | main () | |
20449 | { | |
20450 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20451 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20452 | ; | |
20453 | return 0; | |
20454 | } | |
20455 | _ACEOF | |
20456 | rm -f conftest.$ac_objext | |
20457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20458 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20459 | ac_status=$? |
ac1cb8d3 VS |
20460 | grep -v '^ *+' conftest.er1 >conftest.err |
20461 | rm -f conftest.er1 | |
20462 | cat conftest.err >&5 | |
bdcade0a MB |
20463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20464 | (exit $ac_status); } && | |
04840eaa VS |
20465 | { ac_try='test -z "$ac_cxx_werror_flag" |
20466 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20468 | (eval $ac_try) 2>&5 | |
20469 | ac_status=$? | |
20470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20471 | (exit $ac_status); }; } && | |
20472 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20474 | (eval $ac_try) 2>&5 | |
20475 | ac_status=$? | |
20476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20477 | (exit $ac_status); }; }; then | |
20478 | echo "$as_me:$LINENO: result: yes" >&5 | |
20479 | echo "${ECHO_T}yes" >&6 | |
20480 | cat >>confdefs.h <<\_ACEOF | |
20481 | #define HAVE_EXT_HASH_MAP 1 | |
20482 | _ACEOF | |
20483 | ||
20484 | cat >>confdefs.h <<\_ACEOF | |
20485 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20486 | _ACEOF | |
20487 | ||
20488 | else | |
20489 | echo "$as_me: failed program was:" >&5 | |
20490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20491 | ||
20492 | echo "$as_me:$LINENO: result: no" >&5 | |
20493 | echo "${ECHO_T}no" >&6 | |
20494 | fi | |
ac1cb8d3 | 20495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20496 | |
20497 | fi | |
20498 | ||
20499 | ||
a848cd7e SC |
20500 | |
20501 | ac_ext=c | |
20502 | ac_cpp='$CPP $CPPFLAGS' | |
20503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20506 | ||
20507 | fi | |
20508 | ||
20509 | ||
20510 | SEARCH_INCLUDE="\ | |
20511 | /usr/local/include \ | |
20512 | \ | |
20513 | /usr/Motif-2.1/include \ | |
20514 | /usr/Motif-1.2/include \ | |
20515 | /usr/include/Motif1.2 \ | |
20516 | /opt/xpm/include/X11 \ | |
20517 | /opt/GBxpm/include/ \ | |
20518 | /opt/GBxpm/X11/include/ \ | |
20519 | \ | |
20520 | /usr/dt/include \ | |
20521 | /usr/openwin/include \ | |
20522 | \ | |
20523 | /usr/include/Xm \ | |
20524 | \ | |
20525 | /usr/X11R6/include \ | |
20526 | /usr/X11R6.4/include \ | |
20527 | /usr/X11R5/include \ | |
20528 | /usr/X11R4/include \ | |
20529 | \ | |
20530 | /usr/include/X11R6 \ | |
20531 | /usr/include/X11R5 \ | |
20532 | /usr/include/X11R4 \ | |
20533 | \ | |
20534 | /usr/local/X11R6/include \ | |
20535 | /usr/local/X11R5/include \ | |
20536 | /usr/local/X11R4/include \ | |
20537 | \ | |
20538 | /usr/local/include/X11R6 \ | |
20539 | /usr/local/include/X11R5 \ | |
20540 | /usr/local/include/X11R4 \ | |
20541 | \ | |
20542 | /usr/X11/include \ | |
20543 | /usr/include/X11 \ | |
20544 | /usr/local/X11/include \ | |
20545 | /usr/local/include/X11 \ | |
20546 | \ | |
20547 | /usr/X386/include \ | |
20548 | /usr/x386/include \ | |
20549 | /usr/XFree86/include/X11 \ | |
20550 | \ | |
20551 | X:/XFree86/include \ | |
20552 | X:/XFree86/include/X11 \ | |
20553 | \ | |
20554 | /usr/include/gtk \ | |
20555 | /usr/local/include/gtk \ | |
20556 | /usr/include/glib \ | |
20557 | /usr/local/include/glib \ | |
20558 | \ | |
20559 | /usr/include/qt \ | |
20560 | /usr/local/include/qt \ | |
20561 | \ | |
20562 | /usr/local/arm/3.3.2/include \ | |
20563 | \ | |
20564 | /usr/include/windows \ | |
20565 | /usr/include/wine \ | |
20566 | /usr/local/include/wine \ | |
20567 | \ | |
20568 | /usr/unsupported/include \ | |
20569 | /usr/athena/include \ | |
20570 | /usr/local/x11r5/include \ | |
20571 | /usr/lpp/Xamples/include \ | |
20572 | \ | |
20573 | /usr/openwin/share/include" | |
20574 | ||
20575 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20576 | ||
20577 | ||
20578 | cat >confcache <<\_ACEOF | |
20579 | # This file is a shell script that caches the results of configure | |
20580 | # tests run on this system so they can be shared between configure | |
20581 | # scripts and configure runs, see configure's option --config-cache. | |
20582 | # It is not useful on other systems. If it contains results you don't | |
20583 | # want to keep, you may remove or edit it. | |
20584 | # | |
20585 | # config.status only pays attention to the cache file if you give it | |
20586 | # the --recheck option to rerun configure. | |
20587 | # | |
20588 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20589 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20590 | # following values. | |
20591 | ||
20592 | _ACEOF | |
20593 | ||
20594 | # The following way of writing the cache mishandles newlines in values, | |
20595 | # but we know of no workaround that is simple, portable, and efficient. | |
20596 | # So, don't put newlines in cache variables' values. | |
20597 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20598 | # and sets the high bit in the cache file unless we assign to the vars. | |
20599 | { | |
20600 | (set) 2>&1 | | |
20601 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20602 | *ac_space=\ *) | |
20603 | # `set' does not quote correctly, so add quotes (double-quote | |
20604 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20605 | sed -n \ | |
ac1cb8d3 VS |
20606 | "s/'/'\\\\''/g; |
20607 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20608 | ;; |
20609 | *) | |
20610 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20611 | sed -n \ | |
ac1cb8d3 | 20612 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20613 | ;; |
20614 | esac; | |
20615 | } | | |
20616 | sed ' | |
20617 | t clear | |
20618 | : clear | |
20619 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20620 | t end | |
20621 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20622 | : end' >>confcache | |
20623 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20624 | if test -w $cache_file; then | |
20625 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20626 | cat confcache >$cache_file | |
20627 | else | |
20628 | echo "not updating unwritable cache $cache_file" | |
20629 | fi | |
20630 | fi | |
20631 | rm -f confcache | |
20632 | ||
20633 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20634 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20635 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20636 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20638 | else | |
20639 | ||
20640 | cat >conftest.$ac_ext <<_ACEOF | |
20641 | /* confdefs.h. */ | |
20642 | _ACEOF | |
20643 | cat confdefs.h >>conftest.$ac_ext | |
20644 | cat >>conftest.$ac_ext <<_ACEOF | |
20645 | /* end confdefs.h. */ | |
20646 | #include <features.h> | |
20647 | int | |
20648 | main () | |
20649 | { | |
20650 | ||
20651 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20652 | #error not glibc2.1 | |
20653 | #endif | |
20654 | ||
20655 | ; | |
20656 | return 0; | |
20657 | } | |
20658 | _ACEOF | |
20659 | rm -f conftest.$ac_objext | |
20660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20661 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20662 | ac_status=$? |
ac1cb8d3 VS |
20663 | grep -v '^ *+' conftest.er1 >conftest.err |
20664 | rm -f conftest.er1 | |
20665 | cat conftest.err >&5 | |
a848cd7e SC |
20666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20667 | (exit $ac_status); } && | |
04840eaa VS |
20668 | { ac_try='test -z "$ac_c_werror_flag" |
20669 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20671 | (eval $ac_try) 2>&5 | |
20672 | ac_status=$? | |
20673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20674 | (exit $ac_status); }; } && | |
20675 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20677 | (eval $ac_try) 2>&5 | |
20678 | ac_status=$? | |
20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20680 | (exit $ac_status); }; }; then | |
20681 | ||
20682 | wx_cv_lib_glibc21=yes | |
20683 | ||
20684 | else | |
20685 | echo "$as_me: failed program was:" >&5 | |
20686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20687 | ||
20688 | ||
20689 | wx_cv_lib_glibc21=no | |
20690 | ||
20691 | ||
20692 | fi | |
ac1cb8d3 | 20693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20694 | |
20695 | fi | |
20696 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20697 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20698 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20699 | cat >>confdefs.h <<\_ACEOF | |
20700 | #define wxHAVE_GLIBC2 1 | |
20701 | _ACEOF | |
20702 | ||
20703 | fi | |
20704 | fi | |
20705 | ||
20706 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20707 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20708 | cat >>confdefs.h <<\_ACEOF | |
20709 | #define _GNU_SOURCE 1 | |
20710 | _ACEOF | |
20711 | ||
20712 | fi | |
20713 | fi | |
20714 | ||
20715 | ||
20716 | ||
20717 | if test "$wxUSE_REGEX" != "no"; then | |
20718 | cat >>confdefs.h <<\_ACEOF | |
20719 | #define wxUSE_REGEX 1 | |
20720 | _ACEOF | |
20721 | ||
20722 | ||
20723 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20724 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20725 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20726 | wxUSE_REGEX=builtin | |
20727 | fi | |
20728 | ||
20729 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20730 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20731 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20732 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20733 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20735 | fi | |
20736 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20737 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20738 | else | |
20739 | # Is the header compilable? | |
20740 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20741 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20742 | cat >conftest.$ac_ext <<_ACEOF | |
20743 | /* confdefs.h. */ | |
20744 | _ACEOF | |
20745 | cat confdefs.h >>conftest.$ac_ext | |
20746 | cat >>conftest.$ac_ext <<_ACEOF | |
20747 | /* end confdefs.h. */ | |
20748 | $ac_includes_default | |
20749 | #include <regex.h> | |
20750 | _ACEOF | |
20751 | rm -f conftest.$ac_objext | |
20752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20753 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20754 | ac_status=$? |
ac1cb8d3 VS |
20755 | grep -v '^ *+' conftest.er1 >conftest.err |
20756 | rm -f conftest.er1 | |
20757 | cat conftest.err >&5 | |
a848cd7e SC |
20758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20759 | (exit $ac_status); } && | |
04840eaa VS |
20760 | { ac_try='test -z "$ac_c_werror_flag" |
20761 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20763 | (eval $ac_try) 2>&5 | |
20764 | ac_status=$? | |
20765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20766 | (exit $ac_status); }; } && | |
20767 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20769 | (eval $ac_try) 2>&5 | |
20770 | ac_status=$? | |
20771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20772 | (exit $ac_status); }; }; then | |
20773 | ac_header_compiler=yes | |
20774 | else | |
20775 | echo "$as_me: failed program was:" >&5 | |
20776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20777 | ||
20778 | ac_header_compiler=no | |
20779 | fi | |
ac1cb8d3 | 20780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20781 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20782 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20783 | ||
20784 | # Is the header present? | |
20785 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20786 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20787 | cat >conftest.$ac_ext <<_ACEOF | |
20788 | /* confdefs.h. */ | |
20789 | _ACEOF | |
20790 | cat confdefs.h >>conftest.$ac_ext | |
20791 | cat >>conftest.$ac_ext <<_ACEOF | |
20792 | /* end confdefs.h. */ | |
20793 | #include <regex.h> | |
20794 | _ACEOF | |
20795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20797 | ac_status=$? | |
20798 | grep -v '^ *+' conftest.er1 >conftest.err | |
20799 | rm -f conftest.er1 | |
20800 | cat conftest.err >&5 | |
20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20802 | (exit $ac_status); } >/dev/null; then | |
20803 | if test -s conftest.err; then | |
20804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20806 | else |
20807 | ac_cpp_err= | |
20808 | fi | |
20809 | else | |
20810 | ac_cpp_err=yes | |
20811 | fi | |
20812 | if test -z "$ac_cpp_err"; then | |
20813 | ac_header_preproc=yes | |
20814 | else | |
20815 | echo "$as_me: failed program was:" >&5 | |
20816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20817 | ||
20818 | ac_header_preproc=no | |
20819 | fi | |
20820 | rm -f conftest.err conftest.$ac_ext | |
20821 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20822 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20823 | ||
20824 | # So? What about this header? | |
ac1cb8d3 VS |
20825 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20826 | yes:no: ) | |
a848cd7e SC |
20827 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20828 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20829 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20830 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20831 | ac_header_preproc=yes | |
a848cd7e | 20832 | ;; |
ac1cb8d3 | 20833 | no:yes:* ) |
a848cd7e SC |
20834 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20835 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20836 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20837 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20838 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20839 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20840 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20841 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20842 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20843 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20844 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20845 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20846 | ( |
20847 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20848 | ## ----------------------------------------- ## |
20849 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20850 | ## ----------------------------------------- ## | |
a848cd7e SC |
20851 | _ASBOX |
20852 | ) | | |
20853 | sed "s/^/$as_me: WARNING: /" >&2 | |
20854 | ;; | |
20855 | esac | |
20856 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20857 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20858 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20860 | else | |
20861 | ac_cv_header_regex_h=$ac_header_preproc | |
20862 | fi | |
20863 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20864 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20865 | ||
20866 | fi | |
20867 | if test $ac_cv_header_regex_h = yes; then | |
20868 | ||
20869 | for ac_func in regcomp | |
20870 | do | |
20871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20872 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20874 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20876 | else | |
20877 | cat >conftest.$ac_ext <<_ACEOF | |
20878 | /* confdefs.h. */ | |
20879 | _ACEOF | |
20880 | cat confdefs.h >>conftest.$ac_ext | |
20881 | cat >>conftest.$ac_ext <<_ACEOF | |
20882 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20885 | #define $ac_func innocuous_$ac_func | |
20886 | ||
a848cd7e SC |
20887 | /* System header to define __stub macros and hopefully few prototypes, |
20888 | which can conflict with char $ac_func (); below. | |
20889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20890 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20891 | |
a848cd7e SC |
20892 | #ifdef __STDC__ |
20893 | # include <limits.h> | |
20894 | #else | |
20895 | # include <assert.h> | |
20896 | #endif | |
ac1cb8d3 VS |
20897 | |
20898 | #undef $ac_func | |
20899 | ||
a848cd7e SC |
20900 | /* Override any gcc2 internal prototype to avoid an error. */ |
20901 | #ifdef __cplusplus | |
20902 | extern "C" | |
20903 | { | |
20904 | #endif | |
20905 | /* We use char because int might match the return type of a gcc2 | |
20906 | builtin and then its argument prototype would still apply. */ | |
20907 | char $ac_func (); | |
20908 | /* The GNU C library defines this for functions which it implements | |
20909 | to always fail with ENOSYS. Some functions are actually named | |
20910 | something starting with __ and the normal name is an alias. */ | |
20911 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20912 | choke me | |
20913 | #else | |
20914 | char (*f) () = $ac_func; | |
20915 | #endif | |
20916 | #ifdef __cplusplus | |
20917 | } | |
20918 | #endif | |
20919 | ||
20920 | int | |
20921 | main () | |
20922 | { | |
20923 | return f != $ac_func; | |
20924 | ; | |
20925 | return 0; | |
20926 | } | |
20927 | _ACEOF | |
20928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20930 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20931 | ac_status=$? |
ac1cb8d3 VS |
20932 | grep -v '^ *+' conftest.er1 >conftest.err |
20933 | rm -f conftest.er1 | |
20934 | cat conftest.err >&5 | |
a848cd7e SC |
20935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20936 | (exit $ac_status); } && | |
04840eaa VS |
20937 | { ac_try='test -z "$ac_c_werror_flag" |
20938 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20940 | (eval $ac_try) 2>&5 | |
20941 | ac_status=$? | |
20942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20943 | (exit $ac_status); }; } && | |
20944 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20946 | (eval $ac_try) 2>&5 | |
20947 | ac_status=$? | |
20948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20949 | (exit $ac_status); }; }; then | |
20950 | eval "$as_ac_var=yes" | |
20951 | else | |
20952 | echo "$as_me: failed program was:" >&5 | |
20953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20954 | ||
20955 | eval "$as_ac_var=no" | |
20956 | fi | |
ac1cb8d3 VS |
20957 | rm -f conftest.err conftest.$ac_objext \ |
20958 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20959 | fi |
20960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20961 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20963 | cat >>confdefs.h <<_ACEOF | |
20964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20965 | _ACEOF | |
20966 | ||
20967 | fi | |
20968 | done | |
20969 | ||
20970 | fi | |
20971 | ||
20972 | ||
20973 | ||
20974 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20975 | if test "$wxUSE_REGEX" = "sys" ; then | |
20976 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20977 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20978 | { (exit 1); exit 1; }; } | |
20979 | else | |
20980 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20981 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20982 | wxUSE_REGEX=builtin | |
20983 | fi | |
20984 | else | |
20985 | wxUSE_REGEX=sys | |
20986 | cat >>confdefs.h <<\_ACEOF | |
20987 | #define WX_NO_REGEX_ADVANCED 1 | |
20988 | _ACEOF | |
20989 | ||
20990 | fi | |
20991 | fi | |
20992 | fi | |
20993 | ||
20994 | ||
20995 | ZLIB_LINK= | |
20996 | if test "$wxUSE_ZLIB" != "no" ; then | |
20997 | cat >>confdefs.h <<\_ACEOF | |
20998 | #define wxUSE_ZLIB 1 | |
20999 | _ACEOF | |
21000 | ||
21001 | ||
21002 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
21003 | if test "$USE_DARWIN" = 1; then | |
21004 | system_zlib_h_ok="yes" | |
21005 | else | |
21006 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
21007 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
21008 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21010 | else | |
21011 | if test "$cross_compiling" = yes; then | |
21012 | unset ac_cv_header_zlib_h | |
21013 | ||
21014 | else | |
21015 | cat >conftest.$ac_ext <<_ACEOF | |
21016 | /* confdefs.h. */ | |
21017 | _ACEOF | |
21018 | cat confdefs.h >>conftest.$ac_ext | |
21019 | cat >>conftest.$ac_ext <<_ACEOF | |
21020 | /* end confdefs.h. */ | |
21021 | ||
21022 | #include <zlib.h> | |
21023 | #include <stdio.h> | |
21024 | ||
21025 | int main() | |
21026 | { | |
21027 | FILE *f=fopen("conftestval", "w"); | |
21028 | if (!f) exit(1); | |
21029 | fprintf(f, "%s", | |
21030 | ZLIB_VERSION[0] == '1' && | |
21031 | (ZLIB_VERSION[2] > '1' || | |
21032 | (ZLIB_VERSION[2] == '1' && | |
21033 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
21034 | exit(0); | |
21035 | } | |
21036 | ||
21037 | _ACEOF | |
21038 | rm -f conftest$ac_exeext | |
21039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21040 | (eval $ac_link) 2>&5 | |
21041 | ac_status=$? | |
21042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21043 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21045 | (eval $ac_try) 2>&5 | |
21046 | ac_status=$? | |
21047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21048 | (exit $ac_status); }; }; then | |
21049 | ac_cv_header_zlib_h=`cat conftestval` | |
21050 | else | |
21051 | echo "$as_me: program exited with status $ac_status" >&5 | |
21052 | echo "$as_me: failed program was:" >&5 | |
21053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21054 | ||
21055 | ( exit $ac_status ) | |
21056 | ac_cv_header_zlib_h=no | |
21057 | fi | |
ac1cb8d3 | 21058 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21059 | fi |
21060 | ||
21061 | fi | |
21062 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21063 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21064 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21065 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21066 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21067 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21069 | fi | |
21070 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21071 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21072 | else | |
21073 | # Is the header compilable? | |
21074 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
21075 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
21076 | cat >conftest.$ac_ext <<_ACEOF | |
21077 | /* confdefs.h. */ | |
21078 | _ACEOF | |
21079 | cat confdefs.h >>conftest.$ac_ext | |
21080 | cat >>conftest.$ac_ext <<_ACEOF | |
21081 | /* end confdefs.h. */ | |
21082 | $ac_includes_default | |
21083 | #include <zlib.h> | |
21084 | _ACEOF | |
21085 | rm -f conftest.$ac_objext | |
21086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21087 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21088 | ac_status=$? |
ac1cb8d3 VS |
21089 | grep -v '^ *+' conftest.er1 >conftest.err |
21090 | rm -f conftest.er1 | |
21091 | cat conftest.err >&5 | |
a848cd7e SC |
21092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21093 | (exit $ac_status); } && | |
04840eaa VS |
21094 | { ac_try='test -z "$ac_c_werror_flag" |
21095 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21097 | (eval $ac_try) 2>&5 | |
21098 | ac_status=$? | |
21099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21100 | (exit $ac_status); }; } && | |
21101 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21103 | (eval $ac_try) 2>&5 | |
21104 | ac_status=$? | |
21105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21106 | (exit $ac_status); }; }; then | |
21107 | ac_header_compiler=yes | |
21108 | else | |
21109 | echo "$as_me: failed program was:" >&5 | |
21110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21111 | ||
21112 | ac_header_compiler=no | |
21113 | fi | |
ac1cb8d3 | 21114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21115 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21116 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21117 | ||
21118 | # Is the header present? | |
21119 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
21120 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
21121 | cat >conftest.$ac_ext <<_ACEOF | |
21122 | /* confdefs.h. */ | |
21123 | _ACEOF | |
21124 | cat confdefs.h >>conftest.$ac_ext | |
21125 | cat >>conftest.$ac_ext <<_ACEOF | |
21126 | /* end confdefs.h. */ | |
21127 | #include <zlib.h> | |
21128 | _ACEOF | |
21129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21131 | ac_status=$? | |
21132 | grep -v '^ *+' conftest.er1 >conftest.err | |
21133 | rm -f conftest.er1 | |
21134 | cat conftest.err >&5 | |
21135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21136 | (exit $ac_status); } >/dev/null; then | |
21137 | if test -s conftest.err; then | |
21138 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21139 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21140 | else |
21141 | ac_cpp_err= | |
21142 | fi | |
21143 | else | |
21144 | ac_cpp_err=yes | |
21145 | fi | |
21146 | if test -z "$ac_cpp_err"; then | |
21147 | ac_header_preproc=yes | |
21148 | else | |
21149 | echo "$as_me: failed program was:" >&5 | |
21150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21151 | ||
21152 | ac_header_preproc=no | |
21153 | fi | |
21154 | rm -f conftest.err conftest.$ac_ext | |
21155 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21156 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21157 | ||
21158 | # So? What about this header? | |
ac1cb8d3 VS |
21159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21160 | yes:no: ) | |
a848cd7e SC |
21161 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21162 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21163 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
21164 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
21165 | ac_header_preproc=yes | |
a848cd7e | 21166 | ;; |
ac1cb8d3 | 21167 | no:yes:* ) |
a848cd7e SC |
21168 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
21169 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21170 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
21171 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
21172 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
21173 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
21174 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21175 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21176 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
21177 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21178 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
21179 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21180 | ( |
21181 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21182 | ## ----------------------------------------- ## |
21183 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21184 | ## ----------------------------------------- ## | |
a848cd7e SC |
21185 | _ASBOX |
21186 | ) | | |
21187 | sed "s/^/$as_me: WARNING: /" >&2 | |
21188 | ;; | |
21189 | esac | |
21190 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21191 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21192 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21194 | else | |
21195 | ac_cv_header_zlib_h=$ac_header_preproc | |
21196 | fi | |
21197 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21198 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21199 | ||
21200 | fi | |
21201 | ||
21202 | ||
21203 | ||
21204 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
21205 | fi | |
21206 | ||
21207 | if test "$system_zlib_h_ok" = "yes"; then | |
21208 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
21209 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
21210 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
21211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21212 | else | |
21213 | ac_check_lib_save_LIBS=$LIBS | |
21214 | LIBS="-lz $LIBS" | |
21215 | cat >conftest.$ac_ext <<_ACEOF | |
21216 | /* confdefs.h. */ | |
21217 | _ACEOF | |
21218 | cat confdefs.h >>conftest.$ac_ext | |
21219 | cat >>conftest.$ac_ext <<_ACEOF | |
21220 | /* end confdefs.h. */ | |
21221 | ||
21222 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21223 | #ifdef __cplusplus | |
21224 | extern "C" | |
21225 | #endif | |
21226 | /* We use char because int might match the return type of a gcc2 | |
21227 | builtin and then its argument prototype would still apply. */ | |
21228 | char deflate (); | |
21229 | int | |
21230 | main () | |
21231 | { | |
21232 | deflate (); | |
21233 | ; | |
21234 | return 0; | |
21235 | } | |
21236 | _ACEOF | |
21237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21239 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21240 | ac_status=$? |
ac1cb8d3 VS |
21241 | grep -v '^ *+' conftest.er1 >conftest.err |
21242 | rm -f conftest.er1 | |
21243 | cat conftest.err >&5 | |
a848cd7e SC |
21244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21245 | (exit $ac_status); } && | |
04840eaa VS |
21246 | { ac_try='test -z "$ac_c_werror_flag" |
21247 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21249 | (eval $ac_try) 2>&5 | |
21250 | ac_status=$? | |
21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21252 | (exit $ac_status); }; } && | |
21253 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21255 | (eval $ac_try) 2>&5 | |
21256 | ac_status=$? | |
21257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21258 | (exit $ac_status); }; }; then | |
21259 | ac_cv_lib_z_deflate=yes | |
21260 | else | |
21261 | echo "$as_me: failed program was:" >&5 | |
21262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21263 | ||
21264 | ac_cv_lib_z_deflate=no | |
21265 | fi | |
ac1cb8d3 VS |
21266 | rm -f conftest.err conftest.$ac_objext \ |
21267 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21268 | LIBS=$ac_check_lib_save_LIBS |
21269 | fi | |
21270 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
21271 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
21272 | if test $ac_cv_lib_z_deflate = yes; then | |
21273 | ZLIB_LINK=" -lz" | |
21274 | fi | |
21275 | ||
21276 | fi | |
21277 | ||
21278 | if test "x$ZLIB_LINK" = "x" ; then | |
21279 | if test "$wxUSE_ZLIB" = "sys" ; then | |
21280 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
21281 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
21282 | { (exit 1); exit 1; }; } | |
21283 | else | |
21284 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
21285 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21286 | wxUSE_ZLIB=builtin | |
21287 | fi | |
21288 | else | |
21289 | wxUSE_ZLIB=sys | |
21290 | fi | |
21291 | fi | |
21292 | fi | |
21293 | ||
21294 | ||
21295 | PNG_LINK= | |
21296 | if test "$wxUSE_LIBPNG" != "no" ; then | |
21297 | cat >>confdefs.h <<\_ACEOF | |
21298 | #define wxUSE_LIBPNG 1 | |
21299 | _ACEOF | |
21300 | ||
21301 | ||
21302 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
21303 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
21304 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21305 | wxUSE_LIBPNG=sys | |
21306 | fi | |
21307 | ||
21308 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
21309 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
21310 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21311 | wxUSE_LIBPNG=builtin | |
21312 | fi | |
21313 | ||
21314 | if test "$wxUSE_MGL" != 1 ; then | |
21315 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
21316 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
21317 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
21318 | if test "${ac_cv_header_png_h+set}" = set; then | |
21319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21320 | else | |
21321 | if test "$cross_compiling" = yes; then | |
21322 | unset ac_cv_header_png_h | |
21323 | ||
21324 | else | |
21325 | cat >conftest.$ac_ext <<_ACEOF | |
21326 | /* confdefs.h. */ | |
21327 | _ACEOF | |
21328 | cat confdefs.h >>conftest.$ac_ext | |
21329 | cat >>conftest.$ac_ext <<_ACEOF | |
21330 | /* end confdefs.h. */ | |
21331 | ||
21332 | #include <png.h> | |
21333 | #include <stdio.h> | |
21334 | ||
21335 | int main() | |
21336 | { | |
21337 | FILE *f=fopen("conftestval", "w"); | |
21338 | if (!f) exit(1); | |
21339 | fprintf(f, "%s", | |
21340 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
21341 | exit(0); | |
21342 | } | |
21343 | ||
21344 | _ACEOF | |
21345 | rm -f conftest$ac_exeext | |
21346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21347 | (eval $ac_link) 2>&5 | |
21348 | ac_status=$? | |
21349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21350 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21352 | (eval $ac_try) 2>&5 | |
21353 | ac_status=$? | |
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21355 | (exit $ac_status); }; }; then | |
21356 | ac_cv_header_png_h=`cat conftestval` | |
21357 | else | |
21358 | echo "$as_me: program exited with status $ac_status" >&5 | |
21359 | echo "$as_me: failed program was:" >&5 | |
21360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21361 | ||
21362 | ( exit $ac_status ) | |
21363 | ac_cv_header_png_h=no | |
21364 | fi | |
ac1cb8d3 | 21365 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21366 | fi |
21367 | ||
21368 | fi | |
21369 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21370 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21371 | if test "${ac_cv_header_png_h+set}" = set; then | |
21372 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21373 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21374 | if test "${ac_cv_header_png_h+set}" = set; then | |
21375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21376 | fi | |
21377 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21378 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21379 | else | |
21380 | # Is the header compilable? | |
21381 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
21382 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
21383 | cat >conftest.$ac_ext <<_ACEOF | |
21384 | /* confdefs.h. */ | |
21385 | _ACEOF | |
21386 | cat confdefs.h >>conftest.$ac_ext | |
21387 | cat >>conftest.$ac_ext <<_ACEOF | |
21388 | /* end confdefs.h. */ | |
21389 | $ac_includes_default | |
21390 | #include <png.h> | |
21391 | _ACEOF | |
21392 | rm -f conftest.$ac_objext | |
21393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21395 | ac_status=$? |
ac1cb8d3 VS |
21396 | grep -v '^ *+' conftest.er1 >conftest.err |
21397 | rm -f conftest.er1 | |
21398 | cat conftest.err >&5 | |
a848cd7e SC |
21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21400 | (exit $ac_status); } && | |
04840eaa VS |
21401 | { ac_try='test -z "$ac_c_werror_flag" |
21402 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21404 | (eval $ac_try) 2>&5 | |
21405 | ac_status=$? | |
21406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21407 | (exit $ac_status); }; } && | |
21408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21410 | (eval $ac_try) 2>&5 | |
21411 | ac_status=$? | |
21412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21413 | (exit $ac_status); }; }; then | |
21414 | ac_header_compiler=yes | |
21415 | else | |
21416 | echo "$as_me: failed program was:" >&5 | |
21417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21418 | ||
21419 | ac_header_compiler=no | |
21420 | fi | |
ac1cb8d3 | 21421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21422 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21423 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21424 | ||
21425 | # Is the header present? | |
21426 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21427 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21428 | cat >conftest.$ac_ext <<_ACEOF | |
21429 | /* confdefs.h. */ | |
21430 | _ACEOF | |
21431 | cat confdefs.h >>conftest.$ac_ext | |
21432 | cat >>conftest.$ac_ext <<_ACEOF | |
21433 | /* end confdefs.h. */ | |
21434 | #include <png.h> | |
21435 | _ACEOF | |
21436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21438 | ac_status=$? | |
21439 | grep -v '^ *+' conftest.er1 >conftest.err | |
21440 | rm -f conftest.er1 | |
21441 | cat conftest.err >&5 | |
21442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21443 | (exit $ac_status); } >/dev/null; then | |
21444 | if test -s conftest.err; then | |
21445 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21446 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21447 | else |
21448 | ac_cpp_err= | |
21449 | fi | |
21450 | else | |
21451 | ac_cpp_err=yes | |
21452 | fi | |
21453 | if test -z "$ac_cpp_err"; then | |
21454 | ac_header_preproc=yes | |
21455 | else | |
21456 | echo "$as_me: failed program was:" >&5 | |
21457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21458 | ||
21459 | ac_header_preproc=no | |
21460 | fi | |
21461 | rm -f conftest.err conftest.$ac_ext | |
21462 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21463 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21464 | ||
21465 | # So? What about this header? | |
ac1cb8d3 VS |
21466 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21467 | yes:no: ) | |
a848cd7e SC |
21468 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21469 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21470 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21471 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21472 | ac_header_preproc=yes | |
a848cd7e | 21473 | ;; |
ac1cb8d3 | 21474 | no:yes:* ) |
a848cd7e SC |
21475 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21476 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21477 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21478 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21479 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21480 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21481 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21482 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21483 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21484 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21485 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21486 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21487 | ( |
21488 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21489 | ## ----------------------------------------- ## |
21490 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21491 | ## ----------------------------------------- ## | |
a848cd7e SC |
21492 | _ASBOX |
21493 | ) | | |
21494 | sed "s/^/$as_me: WARNING: /" >&2 | |
21495 | ;; | |
21496 | esac | |
21497 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21498 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21499 | if test "${ac_cv_header_png_h+set}" = set; then | |
21500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21501 | else | |
21502 | ac_cv_header_png_h=$ac_header_preproc | |
21503 | fi | |
21504 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21505 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21506 | ||
21507 | fi | |
21508 | ||
21509 | ||
21510 | ||
21511 | if test "$ac_cv_header_png_h" = "yes"; then | |
21512 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21513 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21514 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21516 | else | |
21517 | ac_check_lib_save_LIBS=$LIBS | |
21518 | LIBS="-lpng -lz -lm $LIBS" | |
21519 | cat >conftest.$ac_ext <<_ACEOF | |
21520 | /* confdefs.h. */ | |
21521 | _ACEOF | |
21522 | cat confdefs.h >>conftest.$ac_ext | |
21523 | cat >>conftest.$ac_ext <<_ACEOF | |
21524 | /* end confdefs.h. */ | |
21525 | ||
21526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21527 | #ifdef __cplusplus | |
21528 | extern "C" | |
21529 | #endif | |
21530 | /* We use char because int might match the return type of a gcc2 | |
21531 | builtin and then its argument prototype would still apply. */ | |
21532 | char png_check_sig (); | |
21533 | int | |
21534 | main () | |
21535 | { | |
21536 | png_check_sig (); | |
21537 | ; | |
21538 | return 0; | |
21539 | } | |
21540 | _ACEOF | |
21541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21544 | ac_status=$? |
ac1cb8d3 VS |
21545 | grep -v '^ *+' conftest.er1 >conftest.err |
21546 | rm -f conftest.er1 | |
21547 | cat conftest.err >&5 | |
a848cd7e SC |
21548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21549 | (exit $ac_status); } && | |
04840eaa VS |
21550 | { ac_try='test -z "$ac_c_werror_flag" |
21551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21553 | (eval $ac_try) 2>&5 | |
21554 | ac_status=$? | |
21555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21556 | (exit $ac_status); }; } && | |
21557 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21559 | (eval $ac_try) 2>&5 | |
21560 | ac_status=$? | |
21561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21562 | (exit $ac_status); }; }; then | |
21563 | ac_cv_lib_png_png_check_sig=yes | |
21564 | else | |
21565 | echo "$as_me: failed program was:" >&5 | |
21566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21567 | ||
21568 | ac_cv_lib_png_png_check_sig=no | |
21569 | fi | |
ac1cb8d3 VS |
21570 | rm -f conftest.err conftest.$ac_objext \ |
21571 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21572 | LIBS=$ac_check_lib_save_LIBS |
21573 | fi | |
21574 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21575 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21576 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21577 | PNG_LINK=" -lpng -lz" | |
21578 | fi | |
21579 | ||
21580 | fi | |
21581 | ||
21582 | if test "x$PNG_LINK" = "x" ; then | |
21583 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21584 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21585 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21586 | { (exit 1); exit 1; }; } | |
21587 | else | |
21588 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21589 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21590 | wxUSE_LIBPNG=builtin | |
21591 | fi | |
21592 | else | |
21593 | wxUSE_LIBPNG=sys | |
21594 | fi | |
21595 | fi | |
21596 | fi | |
21597 | ||
21598 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21599 | fi | |
21600 | ||
21601 | ||
21602 | JPEG_LINK= | |
21603 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21604 | cat >>confdefs.h <<\_ACEOF | |
21605 | #define wxUSE_LIBJPEG 1 | |
21606 | _ACEOF | |
21607 | ||
21608 | ||
21609 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21610 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21611 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21612 | wxUSE_LIBJPEG=sys | |
21613 | fi | |
21614 | ||
21615 | if test "$wxUSE_MGL" != 1 ; then | |
21616 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21617 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21618 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21619 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21621 | else | |
21622 | cat >conftest.$ac_ext <<_ACEOF | |
21623 | /* confdefs.h. */ | |
21624 | _ACEOF | |
21625 | cat confdefs.h >>conftest.$ac_ext | |
21626 | cat >>conftest.$ac_ext <<_ACEOF | |
21627 | /* end confdefs.h. */ | |
21628 | ||
21629 | #undef HAVE_STDLIB_H | |
21630 | #include <stdio.h> | |
21631 | #include <jpeglib.h> | |
21632 | ||
21633 | int | |
21634 | main () | |
21635 | { | |
21636 | ||
21637 | ||
21638 | ; | |
21639 | return 0; | |
21640 | } | |
21641 | _ACEOF | |
21642 | rm -f conftest.$ac_objext | |
21643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21644 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21645 | ac_status=$? |
ac1cb8d3 VS |
21646 | grep -v '^ *+' conftest.er1 >conftest.err |
21647 | rm -f conftest.er1 | |
21648 | cat conftest.err >&5 | |
a848cd7e SC |
21649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21650 | (exit $ac_status); } && | |
04840eaa VS |
21651 | { ac_try='test -z "$ac_c_werror_flag" |
21652 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21654 | (eval $ac_try) 2>&5 | |
21655 | ac_status=$? | |
21656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21657 | (exit $ac_status); }; } && | |
21658 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21660 | (eval $ac_try) 2>&5 | |
21661 | ac_status=$? | |
21662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21663 | (exit $ac_status); }; }; then | |
21664 | ac_cv_header_jpeglib_h=yes | |
21665 | else | |
21666 | echo "$as_me: failed program was:" >&5 | |
21667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21668 | ||
21669 | ac_cv_header_jpeglib_h=no | |
21670 | ||
21671 | fi | |
ac1cb8d3 | 21672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21673 | |
21674 | fi | |
21675 | ||
21676 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21677 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21678 | ||
21679 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21680 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21681 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21682 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21684 | else | |
21685 | ac_check_lib_save_LIBS=$LIBS | |
21686 | LIBS="-ljpeg $LIBS" | |
21687 | cat >conftest.$ac_ext <<_ACEOF | |
21688 | /* confdefs.h. */ | |
21689 | _ACEOF | |
21690 | cat confdefs.h >>conftest.$ac_ext | |
21691 | cat >>conftest.$ac_ext <<_ACEOF | |
21692 | /* end confdefs.h. */ | |
21693 | ||
21694 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21695 | #ifdef __cplusplus | |
21696 | extern "C" | |
21697 | #endif | |
21698 | /* We use char because int might match the return type of a gcc2 | |
21699 | builtin and then its argument prototype would still apply. */ | |
21700 | char jpeg_read_header (); | |
21701 | int | |
21702 | main () | |
21703 | { | |
21704 | jpeg_read_header (); | |
21705 | ; | |
21706 | return 0; | |
21707 | } | |
21708 | _ACEOF | |
21709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21711 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21712 | ac_status=$? |
ac1cb8d3 VS |
21713 | grep -v '^ *+' conftest.er1 >conftest.err |
21714 | rm -f conftest.er1 | |
21715 | cat conftest.err >&5 | |
a848cd7e SC |
21716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21717 | (exit $ac_status); } && | |
04840eaa VS |
21718 | { ac_try='test -z "$ac_c_werror_flag" |
21719 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21721 | (eval $ac_try) 2>&5 | |
21722 | ac_status=$? | |
21723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21724 | (exit $ac_status); }; } && | |
21725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21727 | (eval $ac_try) 2>&5 | |
21728 | ac_status=$? | |
21729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21730 | (exit $ac_status); }; }; then | |
21731 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21732 | else | |
21733 | echo "$as_me: failed program was:" >&5 | |
21734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21735 | ||
21736 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21737 | fi | |
ac1cb8d3 VS |
21738 | rm -f conftest.err conftest.$ac_objext \ |
21739 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21740 | LIBS=$ac_check_lib_save_LIBS |
21741 | fi | |
21742 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21743 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21744 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21745 | JPEG_LINK=" -ljpeg" | |
21746 | fi | |
21747 | ||
21748 | fi | |
21749 | ||
21750 | if test "x$JPEG_LINK" = "x" ; then | |
21751 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21752 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21753 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21754 | { (exit 1); exit 1; }; } | |
21755 | else | |
21756 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21757 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21758 | wxUSE_LIBJPEG=builtin | |
21759 | fi | |
21760 | else | |
21761 | wxUSE_LIBJPEG=sys | |
21762 | fi | |
21763 | fi | |
21764 | fi | |
21765 | fi | |
21766 | ||
21767 | ||
21768 | TIFF_LINK= | |
21769 | TIFF_PREREQ_LINKS=-lm | |
21770 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21771 | cat >>confdefs.h <<\_ACEOF | |
21772 | #define wxUSE_LIBTIFF 1 | |
21773 | _ACEOF | |
21774 | ||
21775 | ||
21776 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21777 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21778 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21779 | fi | |
21780 | if test "$wxUSE_ZLIB" = "sys"; then | |
21781 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21782 | fi | |
21783 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21784 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21785 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21786 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21788 | fi | |
21789 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21790 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21791 | else | |
21792 | # Is the header compilable? | |
21793 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21794 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21795 | cat >conftest.$ac_ext <<_ACEOF | |
21796 | /* confdefs.h. */ | |
21797 | _ACEOF | |
21798 | cat confdefs.h >>conftest.$ac_ext | |
21799 | cat >>conftest.$ac_ext <<_ACEOF | |
21800 | /* end confdefs.h. */ | |
21801 | $ac_includes_default | |
21802 | #include <tiffio.h> | |
21803 | _ACEOF | |
21804 | rm -f conftest.$ac_objext | |
21805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21807 | ac_status=$? |
ac1cb8d3 VS |
21808 | grep -v '^ *+' conftest.er1 >conftest.err |
21809 | rm -f conftest.er1 | |
21810 | cat conftest.err >&5 | |
a848cd7e SC |
21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21812 | (exit $ac_status); } && | |
04840eaa VS |
21813 | { ac_try='test -z "$ac_c_werror_flag" |
21814 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21816 | (eval $ac_try) 2>&5 | |
21817 | ac_status=$? | |
21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21819 | (exit $ac_status); }; } && | |
21820 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21822 | (eval $ac_try) 2>&5 | |
21823 | ac_status=$? | |
21824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21825 | (exit $ac_status); }; }; then | |
21826 | ac_header_compiler=yes | |
21827 | else | |
21828 | echo "$as_me: failed program was:" >&5 | |
21829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21830 | ||
21831 | ac_header_compiler=no | |
21832 | fi | |
ac1cb8d3 | 21833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21834 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21835 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21836 | ||
21837 | # Is the header present? | |
21838 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21839 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21840 | cat >conftest.$ac_ext <<_ACEOF | |
21841 | /* confdefs.h. */ | |
21842 | _ACEOF | |
21843 | cat confdefs.h >>conftest.$ac_ext | |
21844 | cat >>conftest.$ac_ext <<_ACEOF | |
21845 | /* end confdefs.h. */ | |
21846 | #include <tiffio.h> | |
21847 | _ACEOF | |
21848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21850 | ac_status=$? | |
21851 | grep -v '^ *+' conftest.er1 >conftest.err | |
21852 | rm -f conftest.er1 | |
21853 | cat conftest.err >&5 | |
21854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21855 | (exit $ac_status); } >/dev/null; then | |
21856 | if test -s conftest.err; then | |
21857 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21858 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21859 | else |
21860 | ac_cpp_err= | |
21861 | fi | |
21862 | else | |
21863 | ac_cpp_err=yes | |
21864 | fi | |
21865 | if test -z "$ac_cpp_err"; then | |
21866 | ac_header_preproc=yes | |
21867 | else | |
21868 | echo "$as_me: failed program was:" >&5 | |
21869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21870 | ||
21871 | ac_header_preproc=no | |
21872 | fi | |
21873 | rm -f conftest.err conftest.$ac_ext | |
21874 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21875 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21876 | ||
21877 | # So? What about this header? | |
ac1cb8d3 VS |
21878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21879 | yes:no: ) | |
a848cd7e SC |
21880 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21881 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21882 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21883 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21884 | ac_header_preproc=yes | |
a848cd7e | 21885 | ;; |
ac1cb8d3 | 21886 | no:yes:* ) |
a848cd7e SC |
21887 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21888 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21889 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21890 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21891 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21892 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21893 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21894 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21895 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21896 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21897 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21898 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21899 | ( |
21900 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21901 | ## ----------------------------------------- ## |
21902 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21903 | ## ----------------------------------------- ## | |
a848cd7e SC |
21904 | _ASBOX |
21905 | ) | | |
21906 | sed "s/^/$as_me: WARNING: /" >&2 | |
21907 | ;; | |
21908 | esac | |
21909 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21910 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21911 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21913 | else | |
21914 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21915 | fi | |
21916 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21917 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21918 | ||
21919 | fi | |
21920 | if test $ac_cv_header_tiffio_h = yes; then | |
21921 | ||
21922 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21923 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21924 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21926 | else | |
21927 | ac_check_lib_save_LIBS=$LIBS | |
21928 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21929 | cat >conftest.$ac_ext <<_ACEOF | |
21930 | /* confdefs.h. */ | |
21931 | _ACEOF | |
21932 | cat confdefs.h >>conftest.$ac_ext | |
21933 | cat >>conftest.$ac_ext <<_ACEOF | |
21934 | /* end confdefs.h. */ | |
21935 | ||
21936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21937 | #ifdef __cplusplus | |
21938 | extern "C" | |
21939 | #endif | |
21940 | /* We use char because int might match the return type of a gcc2 | |
21941 | builtin and then its argument prototype would still apply. */ | |
21942 | char TIFFError (); | |
21943 | int | |
21944 | main () | |
21945 | { | |
21946 | TIFFError (); | |
21947 | ; | |
21948 | return 0; | |
21949 | } | |
21950 | _ACEOF | |
21951 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21953 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21954 | ac_status=$? |
ac1cb8d3 VS |
21955 | grep -v '^ *+' conftest.er1 >conftest.err |
21956 | rm -f conftest.er1 | |
21957 | cat conftest.err >&5 | |
a848cd7e SC |
21958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21959 | (exit $ac_status); } && | |
04840eaa VS |
21960 | { ac_try='test -z "$ac_c_werror_flag" |
21961 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21963 | (eval $ac_try) 2>&5 | |
21964 | ac_status=$? | |
21965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21966 | (exit $ac_status); }; } && | |
21967 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21969 | (eval $ac_try) 2>&5 | |
21970 | ac_status=$? | |
21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21972 | (exit $ac_status); }; }; then | |
21973 | ac_cv_lib_tiff_TIFFError=yes | |
21974 | else | |
21975 | echo "$as_me: failed program was:" >&5 | |
21976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21977 | ||
21978 | ac_cv_lib_tiff_TIFFError=no | |
21979 | fi | |
ac1cb8d3 VS |
21980 | rm -f conftest.err conftest.$ac_objext \ |
21981 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21982 | LIBS=$ac_check_lib_save_LIBS |
21983 | fi | |
21984 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21985 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21986 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21987 | TIFF_LINK=" -ltiff" | |
21988 | fi | |
21989 | ||
21990 | ||
21991 | ||
21992 | fi | |
21993 | ||
21994 | ||
21995 | ||
21996 | if test "x$TIFF_LINK" = "x" ; then | |
21997 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21998 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21999 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
22000 | { (exit 1); exit 1; }; } | |
22001 | else | |
22002 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
22003 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
22004 | wxUSE_LIBTIFF=builtin | |
22005 | fi | |
22006 | else | |
22007 | wxUSE_LIBTIFF=sys | |
22008 | fi | |
22009 | fi | |
22010 | fi | |
22011 | ||
22012 | ||
22013 | if test "$wxUSE_EXPAT" != "no"; then | |
22014 | wxUSE_XML=yes | |
22015 | cat >>confdefs.h <<\_ACEOF | |
22016 | #define wxUSE_EXPAT 1 | |
22017 | _ACEOF | |
22018 | ||
22019 | cat >>confdefs.h <<\_ACEOF | |
22020 | #define wxUSE_XML 1 | |
22021 | _ACEOF | |
22022 | ||
22023 | ||
22024 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
22025 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22026 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22027 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22028 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22030 | fi | |
22031 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22032 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22033 | else | |
22034 | # Is the header compilable? | |
22035 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
22036 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
22037 | cat >conftest.$ac_ext <<_ACEOF | |
22038 | /* confdefs.h. */ | |
22039 | _ACEOF | |
22040 | cat confdefs.h >>conftest.$ac_ext | |
22041 | cat >>conftest.$ac_ext <<_ACEOF | |
22042 | /* end confdefs.h. */ | |
22043 | $ac_includes_default | |
22044 | #include <expat.h> | |
22045 | _ACEOF | |
22046 | rm -f conftest.$ac_objext | |
22047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22048 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22049 | ac_status=$? |
ac1cb8d3 VS |
22050 | grep -v '^ *+' conftest.er1 >conftest.err |
22051 | rm -f conftest.er1 | |
22052 | cat conftest.err >&5 | |
a848cd7e SC |
22053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22054 | (exit $ac_status); } && | |
04840eaa VS |
22055 | { ac_try='test -z "$ac_c_werror_flag" |
22056 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22058 | (eval $ac_try) 2>&5 | |
22059 | ac_status=$? | |
22060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22061 | (exit $ac_status); }; } && | |
22062 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22064 | (eval $ac_try) 2>&5 | |
22065 | ac_status=$? | |
22066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22067 | (exit $ac_status); }; }; then | |
22068 | ac_header_compiler=yes | |
22069 | else | |
22070 | echo "$as_me: failed program was:" >&5 | |
22071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22072 | ||
22073 | ac_header_compiler=no | |
22074 | fi | |
ac1cb8d3 | 22075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22077 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22078 | ||
22079 | # Is the header present? | |
22080 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
22081 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
22082 | cat >conftest.$ac_ext <<_ACEOF | |
22083 | /* confdefs.h. */ | |
22084 | _ACEOF | |
22085 | cat confdefs.h >>conftest.$ac_ext | |
22086 | cat >>conftest.$ac_ext <<_ACEOF | |
22087 | /* end confdefs.h. */ | |
22088 | #include <expat.h> | |
22089 | _ACEOF | |
22090 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22091 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22092 | ac_status=$? | |
22093 | grep -v '^ *+' conftest.er1 >conftest.err | |
22094 | rm -f conftest.er1 | |
22095 | cat conftest.err >&5 | |
22096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22097 | (exit $ac_status); } >/dev/null; then | |
22098 | if test -s conftest.err; then | |
22099 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22100 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22101 | else |
22102 | ac_cpp_err= | |
22103 | fi | |
22104 | else | |
22105 | ac_cpp_err=yes | |
22106 | fi | |
22107 | if test -z "$ac_cpp_err"; then | |
22108 | ac_header_preproc=yes | |
22109 | else | |
22110 | echo "$as_me: failed program was:" >&5 | |
22111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22112 | ||
22113 | ac_header_preproc=no | |
22114 | fi | |
22115 | rm -f conftest.err conftest.$ac_ext | |
22116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22117 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22118 | ||
22119 | # So? What about this header? | |
ac1cb8d3 VS |
22120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22121 | yes:no: ) | |
a848cd7e SC |
22122 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22123 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22124 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
22125 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
22126 | ac_header_preproc=yes | |
a848cd7e | 22127 | ;; |
ac1cb8d3 | 22128 | no:yes:* ) |
a848cd7e SC |
22129 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
22130 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22131 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
22132 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
22133 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
22134 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
22135 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22136 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22137 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
22138 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22139 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
22140 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22141 | ( |
22142 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22143 | ## ----------------------------------------- ## |
22144 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22145 | ## ----------------------------------------- ## | |
a848cd7e SC |
22146 | _ASBOX |
22147 | ) | | |
22148 | sed "s/^/$as_me: WARNING: /" >&2 | |
22149 | ;; | |
22150 | esac | |
22151 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22152 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22153 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22155 | else | |
22156 | ac_cv_header_expat_h=$ac_header_preproc | |
22157 | fi | |
22158 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22159 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22160 | ||
22161 | fi | |
22162 | if test $ac_cv_header_expat_h = yes; then | |
22163 | found_expat_h=1 | |
22164 | fi | |
22165 | ||
22166 | ||
22167 | if test "x$found_expat_h" = "x1"; then | |
22168 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
22169 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
22170 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
22171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22172 | else | |
22173 | ||
22174 | ||
22175 | ||
22176 | ac_ext=cc | |
22177 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22178 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22179 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22180 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22181 | ||
22182 | cat >conftest.$ac_ext <<_ACEOF | |
22183 | /* confdefs.h. */ | |
22184 | _ACEOF | |
22185 | cat confdefs.h >>conftest.$ac_ext | |
22186 | cat >>conftest.$ac_ext <<_ACEOF | |
22187 | /* end confdefs.h. */ | |
22188 | #include <expat.h> | |
22189 | int | |
22190 | main () | |
22191 | { | |
22192 | ||
22193 | ; | |
22194 | return 0; | |
22195 | } | |
22196 | _ACEOF | |
22197 | rm -f conftest.$ac_objext | |
22198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22200 | ac_status=$? |
ac1cb8d3 VS |
22201 | grep -v '^ *+' conftest.er1 >conftest.err |
22202 | rm -f conftest.er1 | |
22203 | cat conftest.err >&5 | |
a848cd7e SC |
22204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22205 | (exit $ac_status); } && | |
04840eaa VS |
22206 | { ac_try='test -z "$ac_cxx_werror_flag" |
22207 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22209 | (eval $ac_try) 2>&5 | |
22210 | ac_status=$? | |
22211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22212 | (exit $ac_status); }; } && | |
22213 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22215 | (eval $ac_try) 2>&5 | |
22216 | ac_status=$? | |
22217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22218 | (exit $ac_status); }; }; then | |
22219 | wx_cv_expat_is_not_broken=yes | |
22220 | else | |
22221 | echo "$as_me: failed program was:" >&5 | |
22222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22223 | ||
22224 | wx_cv_expat_is_not_broken=no | |
22225 | ||
22226 | fi | |
ac1cb8d3 | 22227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22228 | ac_ext=c |
22229 | ac_cpp='$CPP $CPPFLAGS' | |
22230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22233 | ||
22234 | ||
22235 | ||
22236 | fi | |
22237 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
22238 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
22239 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
22240 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
22241 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
22242 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
22243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22244 | else | |
22245 | ac_check_lib_save_LIBS=$LIBS | |
22246 | LIBS="-lexpat $LIBS" | |
22247 | cat >conftest.$ac_ext <<_ACEOF | |
22248 | /* confdefs.h. */ | |
22249 | _ACEOF | |
22250 | cat confdefs.h >>conftest.$ac_ext | |
22251 | cat >>conftest.$ac_ext <<_ACEOF | |
22252 | /* end confdefs.h. */ | |
22253 | ||
22254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22255 | #ifdef __cplusplus | |
22256 | extern "C" | |
22257 | #endif | |
22258 | /* We use char because int might match the return type of a gcc2 | |
22259 | builtin and then its argument prototype would still apply. */ | |
22260 | char XML_ParserCreate (); | |
22261 | int | |
22262 | main () | |
22263 | { | |
22264 | XML_ParserCreate (); | |
22265 | ; | |
22266 | return 0; | |
22267 | } | |
22268 | _ACEOF | |
22269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22271 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22272 | ac_status=$? |
ac1cb8d3 VS |
22273 | grep -v '^ *+' conftest.er1 >conftest.err |
22274 | rm -f conftest.er1 | |
22275 | cat conftest.err >&5 | |
a848cd7e SC |
22276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22277 | (exit $ac_status); } && | |
04840eaa VS |
22278 | { ac_try='test -z "$ac_c_werror_flag" |
22279 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22281 | (eval $ac_try) 2>&5 | |
22282 | ac_status=$? | |
22283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22284 | (exit $ac_status); }; } && | |
22285 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22287 | (eval $ac_try) 2>&5 | |
22288 | ac_status=$? | |
22289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22290 | (exit $ac_status); }; }; then | |
22291 | ac_cv_lib_expat_XML_ParserCreate=yes | |
22292 | else | |
22293 | echo "$as_me: failed program was:" >&5 | |
22294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22295 | ||
22296 | ac_cv_lib_expat_XML_ParserCreate=no | |
22297 | fi | |
ac1cb8d3 VS |
22298 | rm -f conftest.err conftest.$ac_objext \ |
22299 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22300 | LIBS=$ac_check_lib_save_LIBS |
22301 | fi | |
22302 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
22303 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
22304 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
22305 | EXPAT_LINK=" -lexpat" | |
22306 | fi | |
22307 | ||
22308 | fi | |
22309 | fi | |
22310 | if test "x$EXPAT_LINK" = "x" ; then | |
22311 | if test "$wxUSE_EXPAT" = "sys" ; then | |
22312 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
22313 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
22314 | { (exit 1); exit 1; }; } | |
22315 | else | |
22316 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
22317 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
22318 | wxUSE_EXPAT=builtin | |
22319 | fi | |
22320 | else | |
22321 | wxUSE_EXPAT=sys | |
22322 | fi | |
22323 | fi | |
22324 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
22325 | ||
22326 | ||
22327 | subdirs="$subdirs src/expat" | |
22328 | ||
22329 | fi | |
22330 | fi | |
22331 | ||
22332 | ||
22333 | ||
22334 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
22335 | if test "${ac_cv_header_mspack_h+set}" = set; then |
22336 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22337 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22338 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22340 | fi | |
22341 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22342 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22343 | else | |
22344 | # Is the header compilable? | |
22345 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
22346 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
22347 | cat >conftest.$ac_ext <<_ACEOF | |
22348 | /* confdefs.h. */ | |
22349 | _ACEOF | |
22350 | cat confdefs.h >>conftest.$ac_ext | |
22351 | cat >>conftest.$ac_ext <<_ACEOF | |
22352 | /* end confdefs.h. */ | |
22353 | $ac_includes_default | |
22354 | #include <mspack.h> | |
22355 | _ACEOF | |
22356 | rm -f conftest.$ac_objext | |
22357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22359 | ac_status=$? |
ac1cb8d3 VS |
22360 | grep -v '^ *+' conftest.er1 >conftest.err |
22361 | rm -f conftest.er1 | |
22362 | cat conftest.err >&5 | |
a848cd7e SC |
22363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22364 | (exit $ac_status); } && | |
04840eaa VS |
22365 | { ac_try='test -z "$ac_c_werror_flag" |
22366 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22368 | (eval $ac_try) 2>&5 | |
22369 | ac_status=$? | |
22370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22371 | (exit $ac_status); }; } && | |
22372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22374 | (eval $ac_try) 2>&5 | |
22375 | ac_status=$? | |
22376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22377 | (exit $ac_status); }; }; then | |
22378 | ac_header_compiler=yes | |
22379 | else | |
22380 | echo "$as_me: failed program was:" >&5 | |
22381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22382 | ||
22383 | ac_header_compiler=no | |
22384 | fi | |
ac1cb8d3 | 22385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22386 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22387 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22388 | ||
22389 | # Is the header present? | |
22390 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
22391 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
22392 | cat >conftest.$ac_ext <<_ACEOF | |
22393 | /* confdefs.h. */ | |
22394 | _ACEOF | |
22395 | cat confdefs.h >>conftest.$ac_ext | |
22396 | cat >>conftest.$ac_ext <<_ACEOF | |
22397 | /* end confdefs.h. */ | |
22398 | #include <mspack.h> | |
22399 | _ACEOF | |
22400 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22401 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22402 | ac_status=$? | |
22403 | grep -v '^ *+' conftest.er1 >conftest.err | |
22404 | rm -f conftest.er1 | |
22405 | cat conftest.err >&5 | |
22406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22407 | (exit $ac_status); } >/dev/null; then | |
22408 | if test -s conftest.err; then | |
22409 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22410 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22411 | else |
22412 | ac_cpp_err= | |
22413 | fi | |
22414 | else | |
22415 | ac_cpp_err=yes | |
22416 | fi | |
22417 | if test -z "$ac_cpp_err"; then | |
22418 | ac_header_preproc=yes | |
22419 | else | |
22420 | echo "$as_me: failed program was:" >&5 | |
22421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22422 | ||
22423 | ac_header_preproc=no | |
22424 | fi | |
22425 | rm -f conftest.err conftest.$ac_ext | |
22426 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22427 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22428 | ||
22429 | # So? What about this header? | |
ac1cb8d3 VS |
22430 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22431 | yes:no: ) | |
a848cd7e SC |
22432 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22433 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22434 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22435 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22436 | ac_header_preproc=yes | |
a848cd7e | 22437 | ;; |
ac1cb8d3 | 22438 | no:yes:* ) |
a848cd7e SC |
22439 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22440 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22441 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22442 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22443 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22444 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22445 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22446 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22447 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22448 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22449 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22450 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22451 | ( |
22452 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22453 | ## ----------------------------------------- ## |
22454 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22455 | ## ----------------------------------------- ## | |
a848cd7e SC |
22456 | _ASBOX |
22457 | ) | | |
22458 | sed "s/^/$as_me: WARNING: /" >&2 | |
22459 | ;; | |
22460 | esac | |
22461 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22462 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22463 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22465 | else | |
22466 | ac_cv_header_mspack_h=$ac_header_preproc | |
22467 | fi | |
22468 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22469 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22470 | ||
22471 | fi | |
22472 | if test $ac_cv_header_mspack_h = yes; then | |
22473 | found_mspack_h=1 | |
22474 | fi | |
22475 | ||
22476 | ||
22477 | if test "x$found_mspack_h" = "x1"; then | |
22478 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22479 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22480 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22482 | else | |
22483 | ac_check_lib_save_LIBS=$LIBS | |
22484 | LIBS="-lmspack $LIBS" | |
22485 | cat >conftest.$ac_ext <<_ACEOF | |
22486 | /* confdefs.h. */ | |
22487 | _ACEOF | |
22488 | cat confdefs.h >>conftest.$ac_ext | |
22489 | cat >>conftest.$ac_ext <<_ACEOF | |
22490 | /* end confdefs.h. */ | |
22491 | ||
22492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22493 | #ifdef __cplusplus | |
22494 | extern "C" | |
22495 | #endif | |
22496 | /* We use char because int might match the return type of a gcc2 | |
22497 | builtin and then its argument prototype would still apply. */ | |
22498 | char mspack_create_chm_decompressor (); | |
22499 | int | |
22500 | main () | |
22501 | { | |
22502 | mspack_create_chm_decompressor (); | |
22503 | ; | |
22504 | return 0; | |
22505 | } | |
22506 | _ACEOF | |
22507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22509 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22510 | ac_status=$? |
ac1cb8d3 VS |
22511 | grep -v '^ *+' conftest.er1 >conftest.err |
22512 | rm -f conftest.er1 | |
22513 | cat conftest.err >&5 | |
a848cd7e SC |
22514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22515 | (exit $ac_status); } && | |
04840eaa VS |
22516 | { ac_try='test -z "$ac_c_werror_flag" |
22517 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22519 | (eval $ac_try) 2>&5 | |
22520 | ac_status=$? | |
22521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22522 | (exit $ac_status); }; } && | |
22523 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22525 | (eval $ac_try) 2>&5 | |
22526 | ac_status=$? | |
22527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22528 | (exit $ac_status); }; }; then | |
22529 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22530 | else | |
22531 | echo "$as_me: failed program was:" >&5 | |
22532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22533 | ||
22534 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22535 | fi | |
ac1cb8d3 VS |
22536 | rm -f conftest.err conftest.$ac_objext \ |
22537 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22538 | LIBS=$ac_check_lib_save_LIBS |
22539 | fi | |
22540 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22541 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22542 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22543 | MSPACK_LINK=" -lmspack" | |
22544 | fi | |
22545 | ||
22546 | fi | |
22547 | if test "x$MSPACK_LINK" = "x" ; then | |
22548 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
22549 | fi |
22550 | fi | |
22551 | ||
22552 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
22553 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
22554 | #define wxUSE_LIBMSPACK 1 |
22555 | _ACEOF | |
22556 | ||
a848cd7e SC |
22557 | fi |
22558 | ||
22559 | ||
22560 | ||
22561 | AFMINSTALL= | |
22562 | WIN32INSTALL= | |
22563 | ||
22564 | TOOLKIT= | |
22565 | TOOLKIT_INCLUDE= | |
22566 | WIDGET_SET= | |
22567 | ||
22568 | if test "$USE_WIN32" = 1 ; then | |
22569 | ||
22570 | for ac_header in w32api.h | |
22571 | do | |
22572 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22578 | fi | |
22579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22581 | else | |
22582 | # Is the header compilable? | |
22583 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22584 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22585 | cat >conftest.$ac_ext <<_ACEOF | |
22586 | /* confdefs.h. */ | |
22587 | _ACEOF | |
22588 | cat confdefs.h >>conftest.$ac_ext | |
22589 | cat >>conftest.$ac_ext <<_ACEOF | |
22590 | /* end confdefs.h. */ | |
22591 | $ac_includes_default | |
22592 | #include <$ac_header> | |
22593 | _ACEOF | |
22594 | rm -f conftest.$ac_objext | |
22595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22596 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22597 | ac_status=$? |
ac1cb8d3 VS |
22598 | grep -v '^ *+' conftest.er1 >conftest.err |
22599 | rm -f conftest.er1 | |
22600 | cat conftest.err >&5 | |
a848cd7e SC |
22601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22602 | (exit $ac_status); } && | |
04840eaa VS |
22603 | { ac_try='test -z "$ac_c_werror_flag" |
22604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22606 | (eval $ac_try) 2>&5 | |
22607 | ac_status=$? | |
22608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22609 | (exit $ac_status); }; } && | |
22610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22612 | (eval $ac_try) 2>&5 | |
22613 | ac_status=$? | |
22614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22615 | (exit $ac_status); }; }; then | |
22616 | ac_header_compiler=yes | |
22617 | else | |
22618 | echo "$as_me: failed program was:" >&5 | |
22619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22620 | ||
22621 | ac_header_compiler=no | |
22622 | fi | |
ac1cb8d3 | 22623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22624 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22625 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22626 | ||
22627 | # Is the header present? | |
22628 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22630 | cat >conftest.$ac_ext <<_ACEOF | |
22631 | /* confdefs.h. */ | |
22632 | _ACEOF | |
22633 | cat confdefs.h >>conftest.$ac_ext | |
22634 | cat >>conftest.$ac_ext <<_ACEOF | |
22635 | /* end confdefs.h. */ | |
22636 | #include <$ac_header> | |
22637 | _ACEOF | |
22638 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22640 | ac_status=$? | |
22641 | grep -v '^ *+' conftest.er1 >conftest.err | |
22642 | rm -f conftest.er1 | |
22643 | cat conftest.err >&5 | |
22644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22645 | (exit $ac_status); } >/dev/null; then | |
22646 | if test -s conftest.err; then | |
22647 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22648 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22649 | else |
22650 | ac_cpp_err= | |
22651 | fi | |
22652 | else | |
22653 | ac_cpp_err=yes | |
22654 | fi | |
22655 | if test -z "$ac_cpp_err"; then | |
22656 | ac_header_preproc=yes | |
22657 | else | |
22658 | echo "$as_me: failed program was:" >&5 | |
22659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22660 | ||
22661 | ac_header_preproc=no | |
22662 | fi | |
22663 | rm -f conftest.err conftest.$ac_ext | |
22664 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22665 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22666 | ||
22667 | # So? What about this header? | |
ac1cb8d3 VS |
22668 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22669 | yes:no: ) | |
a848cd7e SC |
22670 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22671 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22673 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22674 | ac_header_preproc=yes | |
a848cd7e | 22675 | ;; |
ac1cb8d3 | 22676 | no:yes:* ) |
a848cd7e SC |
22677 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22678 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22679 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22680 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22681 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22682 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22683 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22684 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22686 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22687 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22688 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22689 | ( |
22690 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22691 | ## ----------------------------------------- ## |
22692 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22693 | ## ----------------------------------------- ## | |
a848cd7e SC |
22694 | _ASBOX |
22695 | ) | | |
22696 | sed "s/^/$as_me: WARNING: /" >&2 | |
22697 | ;; | |
22698 | esac | |
22699 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22703 | else | |
ac1cb8d3 | 22704 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22705 | fi |
22706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22707 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22708 | ||
22709 | fi | |
22710 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22711 | cat >>confdefs.h <<_ACEOF | |
22712 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22713 | _ACEOF | |
22714 | ||
22715 | fi | |
22716 | ||
22717 | done | |
22718 | ||
22719 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22720 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22721 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22722 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22724 | fi | |
22725 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22726 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22727 | else | |
22728 | # Is the header compilable? | |
22729 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22730 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22731 | cat >conftest.$ac_ext <<_ACEOF | |
22732 | /* confdefs.h. */ | |
22733 | _ACEOF | |
22734 | cat confdefs.h >>conftest.$ac_ext | |
22735 | cat >>conftest.$ac_ext <<_ACEOF | |
22736 | /* end confdefs.h. */ | |
22737 | $ac_includes_default | |
22738 | #include <windows.h> | |
22739 | _ACEOF | |
22740 | rm -f conftest.$ac_objext | |
22741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22742 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22743 | ac_status=$? |
ac1cb8d3 VS |
22744 | grep -v '^ *+' conftest.er1 >conftest.err |
22745 | rm -f conftest.er1 | |
22746 | cat conftest.err >&5 | |
a848cd7e SC |
22747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22748 | (exit $ac_status); } && | |
04840eaa VS |
22749 | { ac_try='test -z "$ac_c_werror_flag" |
22750 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22752 | (eval $ac_try) 2>&5 | |
22753 | ac_status=$? | |
22754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22755 | (exit $ac_status); }; } && | |
22756 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22758 | (eval $ac_try) 2>&5 | |
22759 | ac_status=$? | |
22760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22761 | (exit $ac_status); }; }; then | |
22762 | ac_header_compiler=yes | |
22763 | else | |
22764 | echo "$as_me: failed program was:" >&5 | |
22765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22766 | ||
22767 | ac_header_compiler=no | |
22768 | fi | |
ac1cb8d3 | 22769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22771 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22772 | ||
22773 | # Is the header present? | |
22774 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22775 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22776 | cat >conftest.$ac_ext <<_ACEOF | |
22777 | /* confdefs.h. */ | |
22778 | _ACEOF | |
22779 | cat confdefs.h >>conftest.$ac_ext | |
22780 | cat >>conftest.$ac_ext <<_ACEOF | |
22781 | /* end confdefs.h. */ | |
22782 | #include <windows.h> | |
22783 | _ACEOF | |
22784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22786 | ac_status=$? | |
22787 | grep -v '^ *+' conftest.er1 >conftest.err | |
22788 | rm -f conftest.er1 | |
22789 | cat conftest.err >&5 | |
22790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22791 | (exit $ac_status); } >/dev/null; then | |
22792 | if test -s conftest.err; then | |
22793 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22795 | else |
22796 | ac_cpp_err= | |
22797 | fi | |
22798 | else | |
22799 | ac_cpp_err=yes | |
22800 | fi | |
22801 | if test -z "$ac_cpp_err"; then | |
22802 | ac_header_preproc=yes | |
22803 | else | |
22804 | echo "$as_me: failed program was:" >&5 | |
22805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22806 | ||
22807 | ac_header_preproc=no | |
22808 | fi | |
22809 | rm -f conftest.err conftest.$ac_ext | |
22810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22811 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22812 | ||
22813 | # So? What about this header? | |
ac1cb8d3 VS |
22814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22815 | yes:no: ) | |
a848cd7e SC |
22816 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22817 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22818 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22819 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22820 | ac_header_preproc=yes | |
a848cd7e | 22821 | ;; |
ac1cb8d3 | 22822 | no:yes:* ) |
a848cd7e SC |
22823 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22824 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22825 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22826 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22827 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22828 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22829 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22830 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22831 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22832 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22833 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22834 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22835 | ( |
22836 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22837 | ## ----------------------------------------- ## |
22838 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22839 | ## ----------------------------------------- ## | |
a848cd7e SC |
22840 | _ASBOX |
22841 | ) | | |
22842 | sed "s/^/$as_me: WARNING: /" >&2 | |
22843 | ;; | |
22844 | esac | |
22845 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22846 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22847 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22849 | else | |
22850 | ac_cv_header_windows_h=$ac_header_preproc | |
22851 | fi | |
22852 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22853 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22854 | ||
22855 | fi | |
22856 | if test $ac_cv_header_windows_h = yes; then | |
22857 | : | |
22858 | else | |
22859 | ||
22860 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22861 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22862 | { (exit 1); exit 1; }; } | |
22863 | ||
22864 | fi | |
22865 | ||
22866 | ||
22867 | ||
22868 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22869 | ||
22870 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22871 | LIBS="$LIBS -loleacc" | |
22872 | fi | |
22873 | ||
22874 | case "${host}" in | |
22875 | *-*-cygwin* ) | |
22876 | LIBS="$LIBS -lkernel32 -luser32" | |
22877 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22878 | esac | |
22879 | ||
22880 | if test "$wxUSE_ODBC" = "sys" ; then | |
22881 | wxUSE_ODBC = "yes" | |
22882 | fi | |
22883 | if test "$wxUSE_ODBC" = "yes" ; then | |
22884 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22885 | cat >>confdefs.h <<\_ACEOF | |
22886 | #define wxUSE_ODBC 1 | |
22887 | _ACEOF | |
22888 | ||
22889 | fi | |
22890 | ||
22891 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22892 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22893 | ||
22894 | WIN32INSTALL=win32install | |
22895 | fi | |
22896 | ||
22897 | if test "$wxUSE_GUI" = "yes"; then | |
22898 | USE_GUI=1 | |
22899 | ||
22900 | GUI_TK_LIBRARY= | |
22901 | ||
22902 | WXGTK12= | |
22903 | WXGTK127= | |
22904 | WXGTK20= | |
22905 | WXGPE= | |
22906 | ||
207bc66c RN |
22907 | if test "$wxUSE_COCOA" = 1 ; then |
22908 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
22909 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
22910 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
22911 | wxUSE_PRINTING_ARCHITECTURE=no | |
22912 | fi | |
22913 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
22914 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
22915 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
22916 | wxUSE_DRAG_AND_DROP=no | |
22917 | fi | |
22918 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
22919 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
22920 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
22921 | wxUSE_DRAGIMAGE=no | |
22922 | fi | |
22923 | fi | |
22924 | ||
a848cd7e SC |
22925 | if test "$wxUSE_MSW" = 1 ; then |
22926 | TOOLKIT=MSW | |
22927 | GUIDIST=MSW_DIST | |
22928 | ||
ceec2216 | 22929 | case "${host}" in |
a848cd7e SC |
22930 | *-*-mingw32* ) |
22931 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22932 | esac | |
22933 | fi | |
22934 | ||
22935 | if test "$wxUSE_GTK" = 1; then | |
22936 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22937 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22938 | ||
22939 | gtk_version_cached=1 | |
22940 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22942 | else | |
22943 | ||
22944 | gtk_version_cached=0 | |
22945 | echo "$as_me:$LINENO: result: " >&5 | |
22946 | echo "${ECHO_T}" >&6 | |
22947 | ||
22948 | GTK_MODULES= | |
22949 | if test "$wxUSE_THREADS" = "yes"; then | |
22950 | GTK_MODULES=gthread | |
22951 | fi | |
22952 | ||
22953 | wx_cv_lib_gtk= | |
22954 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22955 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22956 | if test "${enable_gtktest+set}" = set; then | |
22957 | enableval="$enable_gtktest" | |
22958 | ||
22959 | else | |
22960 | enable_gtktest=yes | |
22961 | fi; | |
22962 | ||
22963 | pkg_config_args=gtk+-2.0 | |
22964 | for module in . $GTK_MODULES | |
22965 | do | |
22966 | case "$module" in | |
22967 | gthread) | |
22968 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22969 | ;; | |
22970 | esac | |
22971 | done | |
22972 | ||
22973 | no_gtk="" | |
22974 | ||
22975 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22976 | set dummy pkg-config; ac_word=$2 | |
22977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22979 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22981 | else | |
22982 | case $PKG_CONFIG in | |
22983 | [\\/]* | ?:[\\/]*) | |
22984 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22985 | ;; | |
22986 | *) | |
22987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22988 | for as_dir in $PATH | |
22989 | do | |
22990 | IFS=$as_save_IFS | |
22991 | test -z "$as_dir" && as_dir=. | |
22992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22993 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22994 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22996 | break 2 | |
22997 | fi | |
22998 | done | |
22999 | done | |
23000 | ||
23001 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23002 | ;; | |
23003 | esac | |
23004 | fi | |
23005 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23006 | ||
23007 | if test -n "$PKG_CONFIG"; then | |
23008 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23009 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23010 | else | |
23011 | echo "$as_me:$LINENO: result: no" >&5 | |
23012 | echo "${ECHO_T}no" >&6 | |
23013 | fi | |
23014 | ||
23015 | ||
23016 | if test x$PKG_CONFIG != xno ; then | |
23017 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
23018 | : | |
23019 | else | |
c2218763 | 23020 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
23021 | no_gtk=yes |
23022 | PKG_CONFIG=no | |
23023 | fi | |
23024 | else | |
23025 | no_gtk=yes | |
23026 | fi | |
23027 | ||
23028 | min_gtk_version=2.0.0 | |
23029 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
23030 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
23031 | ||
23032 | if test x$PKG_CONFIG != xno ; then | |
23033 | ## don't try to run the test against uninstalled libtool libs | |
23034 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
23035 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
23036 | enable_gtktest=no | |
23037 | fi | |
23038 | ||
23039 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
23040 | : | |
23041 | else | |
23042 | no_gtk=yes | |
23043 | fi | |
23044 | fi | |
23045 | ||
23046 | if test x"$no_gtk" = x ; then | |
23047 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
23048 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
23049 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23050 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23051 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23052 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23053 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23054 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23055 | if test "x$enable_gtktest" = "xyes" ; then | |
23056 | ac_save_CFLAGS="$CFLAGS" | |
23057 | ac_save_LIBS="$LIBS" | |
23058 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23059 | LIBS="$GTK_LIBS $LIBS" | |
23060 | rm -f conf.gtktest | |
23061 | if test "$cross_compiling" = yes; then | |
23062 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23063 | else | |
23064 | cat >conftest.$ac_ext <<_ACEOF | |
23065 | /* confdefs.h. */ | |
23066 | _ACEOF | |
23067 | cat confdefs.h >>conftest.$ac_ext | |
23068 | cat >>conftest.$ac_ext <<_ACEOF | |
23069 | /* end confdefs.h. */ | |
23070 | ||
23071 | #include <gtk/gtk.h> | |
23072 | #include <stdio.h> | |
23073 | #include <stdlib.h> | |
23074 | ||
23075 | int | |
23076 | main () | |
23077 | { | |
23078 | int major, minor, micro; | |
23079 | char *tmp_version; | |
23080 | ||
23081 | system ("touch conf.gtktest"); | |
23082 | ||
23083 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23084 | tmp_version = g_strdup("$min_gtk_version"); | |
23085 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23086 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23087 | exit(1); | |
23088 | } | |
23089 | ||
23090 | if ((gtk_major_version != $gtk_config_major_version) || | |
23091 | (gtk_minor_version != $gtk_config_minor_version) || | |
23092 | (gtk_micro_version != $gtk_config_micro_version)) | |
23093 | { | |
23094 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23095 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23096 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23097 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
23098 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23099 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23100 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23101 | printf("*** required on your system.\n"); | |
23102 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
23103 | printf("*** to point to the correct configuration files\n"); | |
23104 | } | |
23105 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23106 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23107 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23108 | { | |
23109 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23110 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23111 | printf("*** library (version %d.%d.%d)\n", | |
23112 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23113 | } | |
23114 | else | |
23115 | { | |
23116 | if ((gtk_major_version > major) || | |
23117 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23118 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23119 | { | |
23120 | return 0; | |
23121 | } | |
23122 | else | |
23123 | { | |
23124 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23125 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23126 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23127 | major, minor, micro); | |
23128 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23129 | printf("***\n"); | |
23130 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23131 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
23132 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23133 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
23134 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
23135 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23136 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23137 | } | |
23138 | } | |
23139 | return 1; | |
23140 | } | |
23141 | ||
23142 | _ACEOF | |
23143 | rm -f conftest$ac_exeext | |
23144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23145 | (eval $ac_link) 2>&5 | |
23146 | ac_status=$? | |
23147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23148 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23150 | (eval $ac_try) 2>&5 | |
23151 | ac_status=$? | |
23152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23153 | (exit $ac_status); }; }; then | |
23154 | : | |
23155 | else | |
23156 | echo "$as_me: program exited with status $ac_status" >&5 | |
23157 | echo "$as_me: failed program was:" >&5 | |
23158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23159 | ||
23160 | ( exit $ac_status ) | |
23161 | no_gtk=yes | |
23162 | fi | |
ac1cb8d3 | 23163 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23164 | fi |
23165 | CFLAGS="$ac_save_CFLAGS" | |
23166 | LIBS="$ac_save_LIBS" | |
23167 | fi | |
23168 | fi | |
23169 | if test "x$no_gtk" = x ; then | |
23170 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
23171 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
23172 | wx_cv_lib_gtk=2.0 | |
23173 | else | |
23174 | echo "$as_me:$LINENO: result: no" >&5 | |
23175 | echo "${ECHO_T}no" >&6 | |
23176 | if test "$PKG_CONFIG" = "no" ; then | |
23177 | echo "*** A new enough version of pkg-config was not found." | |
23178 | echo "*** See http://pkgconfig.sourceforge.net" | |
23179 | else | |
23180 | if test -f conf.gtktest ; then | |
23181 | : | |
23182 | else | |
23183 | echo "*** Could not run GTK+ test program, checking why..." | |
23184 | ac_save_CFLAGS="$CFLAGS" | |
23185 | ac_save_LIBS="$LIBS" | |
23186 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23187 | LIBS="$LIBS $GTK_LIBS" | |
23188 | cat >conftest.$ac_ext <<_ACEOF | |
23189 | /* confdefs.h. */ | |
23190 | _ACEOF | |
23191 | cat confdefs.h >>conftest.$ac_ext | |
23192 | cat >>conftest.$ac_ext <<_ACEOF | |
23193 | /* end confdefs.h. */ | |
23194 | ||
23195 | #include <gtk/gtk.h> | |
23196 | #include <stdio.h> | |
23197 | ||
23198 | int | |
23199 | main () | |
23200 | { | |
23201 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23202 | ; | |
23203 | return 0; | |
23204 | } | |
23205 | _ACEOF | |
23206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23208 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23209 | ac_status=$? |
ac1cb8d3 VS |
23210 | grep -v '^ *+' conftest.er1 >conftest.err |
23211 | rm -f conftest.er1 | |
23212 | cat conftest.err >&5 | |
a848cd7e SC |
23213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23214 | (exit $ac_status); } && | |
04840eaa VS |
23215 | { ac_try='test -z "$ac_c_werror_flag" |
23216 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23218 | (eval $ac_try) 2>&5 | |
23219 | ac_status=$? | |
23220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23221 | (exit $ac_status); }; } && | |
23222 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23224 | (eval $ac_try) 2>&5 | |
23225 | ac_status=$? | |
23226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23227 | (exit $ac_status); }; }; then | |
23228 | echo "*** The test program compiled, but did not run. This usually means" | |
23229 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
23230 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
23231 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23232 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23233 | echo "*** is required on your system" | |
23234 | echo "***" | |
23235 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23236 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23237 | else | |
23238 | echo "$as_me: failed program was:" >&5 | |
23239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23240 | ||
23241 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23242 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
23243 | fi | |
ac1cb8d3 VS |
23244 | rm -f conftest.err conftest.$ac_objext \ |
23245 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23246 | CFLAGS="$ac_save_CFLAGS" |
23247 | LIBS="$ac_save_LIBS" | |
23248 | fi | |
23249 | fi | |
23250 | GTK_CFLAGS="" | |
23251 | GTK_LIBS="" | |
23252 | : | |
23253 | fi | |
23254 | ||
23255 | ||
23256 | rm -f conf.gtktest | |
23257 | ||
23258 | else | |
23259 | ||
23260 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23261 | if test "${with_gtk_prefix+set}" = set; then | |
23262 | withval="$with_gtk_prefix" | |
23263 | gtk_config_prefix="$withval" | |
23264 | else | |
23265 | gtk_config_prefix="" | |
23266 | fi; | |
23267 | ||
23268 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23269 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23270 | withval="$with_gtk_exec_prefix" | |
23271 | gtk_config_exec_prefix="$withval" | |
23272 | else | |
23273 | gtk_config_exec_prefix="" | |
23274 | fi; | |
23275 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23276 | if test "${enable_gtktest+set}" = set; then | |
23277 | enableval="$enable_gtktest" | |
23278 | ||
23279 | else | |
23280 | enable_gtktest=yes | |
23281 | fi; | |
23282 | ||
23283 | for module in . $GTK_MODULES | |
23284 | do | |
23285 | case "$module" in | |
23286 | gthread) | |
23287 | gtk_config_args="$gtk_config_args gthread" | |
23288 | ;; | |
23289 | esac | |
23290 | done | |
23291 | ||
23292 | if test x$gtk_config_exec_prefix != x ; then | |
23293 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23294 | if test x${GTK_CONFIG+set} != xset ; then | |
23295 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23296 | fi | |
23297 | fi | |
23298 | if test x$gtk_config_prefix != x ; then | |
23299 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23300 | if test x${GTK_CONFIG+set} != xset ; then | |
23301 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23302 | fi | |
23303 | fi | |
23304 | ||
23305 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23306 | set dummy gtk-config; ac_word=$2 | |
23307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23309 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23311 | else | |
23312 | case $GTK_CONFIG in | |
23313 | [\\/]* | ?:[\\/]*) | |
23314 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23315 | ;; | |
23316 | *) | |
23317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23318 | for as_dir in $PATH | |
23319 | do | |
23320 | IFS=$as_save_IFS | |
23321 | test -z "$as_dir" && as_dir=. | |
23322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23323 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23324 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23326 | break 2 | |
23327 | fi | |
23328 | done | |
23329 | done | |
23330 | ||
23331 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23332 | ;; | |
23333 | esac | |
23334 | fi | |
23335 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23336 | ||
23337 | if test -n "$GTK_CONFIG"; then | |
23338 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23339 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23340 | else | |
23341 | echo "$as_me:$LINENO: result: no" >&5 | |
23342 | echo "${ECHO_T}no" >&6 | |
23343 | fi | |
23344 | ||
23345 | min_gtk_version=1.2.7 | |
23346 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23347 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23348 | no_gtk="" | |
23349 | if test "$GTK_CONFIG" = "no" ; then | |
23350 | no_gtk=yes | |
23351 | else | |
23352 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23353 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23354 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23355 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23356 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23357 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23358 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23359 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23360 | if test "x$enable_gtktest" = "xyes" ; then | |
23361 | ac_save_CFLAGS="$CFLAGS" | |
23362 | ac_save_LIBS="$LIBS" | |
23363 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23364 | LIBS="$GTK_LIBS $LIBS" | |
23365 | rm -f conf.gtktest | |
23366 | if test "$cross_compiling" = yes; then | |
23367 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23368 | else | |
23369 | cat >conftest.$ac_ext <<_ACEOF | |
23370 | /* confdefs.h. */ | |
23371 | _ACEOF | |
23372 | cat confdefs.h >>conftest.$ac_ext | |
23373 | cat >>conftest.$ac_ext <<_ACEOF | |
23374 | /* end confdefs.h. */ | |
23375 | ||
23376 | #include <gtk/gtk.h> | |
23377 | #include <stdio.h> | |
23378 | #include <stdlib.h> | |
23379 | ||
23380 | int | |
23381 | main () | |
23382 | { | |
23383 | int major, minor, micro; | |
23384 | char *tmp_version; | |
23385 | ||
23386 | system ("touch conf.gtktest"); | |
23387 | ||
23388 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23389 | tmp_version = g_strdup("$min_gtk_version"); | |
23390 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23391 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23392 | exit(1); | |
23393 | } | |
23394 | ||
23395 | if ((gtk_major_version != $gtk_config_major_version) || | |
23396 | (gtk_minor_version != $gtk_config_minor_version) || | |
23397 | (gtk_micro_version != $gtk_config_micro_version)) | |
23398 | { | |
23399 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23400 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23401 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23402 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23403 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23404 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23405 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23406 | printf("*** required on your system.\n"); | |
23407 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23408 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23409 | printf("*** before re-running configure\n"); | |
23410 | } | |
23411 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23412 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23413 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23414 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23415 | { | |
23416 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23417 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23418 | printf("*** library (version %d.%d.%d)\n", | |
23419 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23420 | } | |
23421 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23422 | else | |
23423 | { | |
23424 | if ((gtk_major_version > major) || | |
23425 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23426 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23427 | { | |
23428 | return 0; | |
23429 | } | |
23430 | else | |
23431 | { | |
23432 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23433 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23434 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23435 | major, minor, micro); | |
23436 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23437 | printf("***\n"); | |
23438 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23439 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23440 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23441 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23442 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23443 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23444 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23445 | } | |
23446 | } | |
23447 | return 1; | |
23448 | } | |
23449 | ||
23450 | _ACEOF | |
23451 | rm -f conftest$ac_exeext | |
23452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23453 | (eval $ac_link) 2>&5 | |
23454 | ac_status=$? | |
23455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23458 | (eval $ac_try) 2>&5 | |
23459 | ac_status=$? | |
23460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23461 | (exit $ac_status); }; }; then | |
23462 | : | |
23463 | else | |
23464 | echo "$as_me: program exited with status $ac_status" >&5 | |
23465 | echo "$as_me: failed program was:" >&5 | |
23466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23467 | ||
23468 | ( exit $ac_status ) | |
23469 | no_gtk=yes | |
23470 | fi | |
ac1cb8d3 | 23471 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23472 | fi |
23473 | CFLAGS="$ac_save_CFLAGS" | |
23474 | LIBS="$ac_save_LIBS" | |
23475 | fi | |
23476 | fi | |
23477 | if test "x$no_gtk" = x ; then | |
23478 | echo "$as_me:$LINENO: result: yes" >&5 | |
23479 | echo "${ECHO_T}yes" >&6 | |
23480 | wx_cv_lib_gtk=1.2.7 | |
23481 | else | |
23482 | echo "$as_me:$LINENO: result: no" >&5 | |
23483 | echo "${ECHO_T}no" >&6 | |
23484 | if test "$GTK_CONFIG" = "no" ; then | |
23485 | echo "*** The gtk-config script installed by GTK could not be found" | |
23486 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23487 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23488 | echo "*** full path to gtk-config." | |
23489 | else | |
23490 | if test -f conf.gtktest ; then | |
23491 | : | |
23492 | else | |
23493 | echo "*** Could not run GTK test program, checking why..." | |
23494 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23495 | LIBS="$LIBS $GTK_LIBS" | |
23496 | cat >conftest.$ac_ext <<_ACEOF | |
23497 | /* confdefs.h. */ | |
23498 | _ACEOF | |
23499 | cat confdefs.h >>conftest.$ac_ext | |
23500 | cat >>conftest.$ac_ext <<_ACEOF | |
23501 | /* end confdefs.h. */ | |
23502 | ||
23503 | #include <gtk/gtk.h> | |
23504 | #include <stdio.h> | |
23505 | ||
23506 | int | |
23507 | main () | |
23508 | { | |
23509 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23510 | ; | |
23511 | return 0; | |
23512 | } | |
23513 | _ACEOF | |
23514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23516 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23517 | ac_status=$? |
ac1cb8d3 VS |
23518 | grep -v '^ *+' conftest.er1 >conftest.err |
23519 | rm -f conftest.er1 | |
23520 | cat conftest.err >&5 | |
a848cd7e SC |
23521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23522 | (exit $ac_status); } && | |
04840eaa VS |
23523 | { ac_try='test -z "$ac_c_werror_flag" |
23524 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23526 | (eval $ac_try) 2>&5 | |
23527 | ac_status=$? | |
23528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23529 | (exit $ac_status); }; } && | |
23530 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23532 | (eval $ac_try) 2>&5 | |
23533 | ac_status=$? | |
23534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23535 | (exit $ac_status); }; }; then | |
23536 | echo "*** The test program compiled, but did not run. This usually means" | |
23537 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23538 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23539 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23540 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23541 | echo "*** is required on your system" | |
23542 | echo "***" | |
23543 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23544 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23545 | echo "***" | |
23546 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23547 | echo "*** came with the system with the command" | |
23548 | echo "***" | |
23549 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23550 | else | |
23551 | echo "$as_me: failed program was:" >&5 | |
23552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23553 | ||
23554 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23555 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23556 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23557 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23558 | fi | |
ac1cb8d3 VS |
23559 | rm -f conftest.err conftest.$ac_objext \ |
23560 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23561 | CFLAGS="$ac_save_CFLAGS" |
23562 | LIBS="$ac_save_LIBS" | |
23563 | fi | |
23564 | fi | |
23565 | GTK_CFLAGS="" | |
23566 | GTK_LIBS="" | |
23567 | : | |
23568 | fi | |
23569 | ||
23570 | ||
23571 | rm -f conf.gtktest | |
23572 | ||
23573 | ||
23574 | if test -z "$wx_cv_lib_gtk"; then | |
23575 | ||
23576 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23577 | if test "${with_gtk_prefix+set}" = set; then | |
23578 | withval="$with_gtk_prefix" | |
23579 | gtk_config_prefix="$withval" | |
23580 | else | |
23581 | gtk_config_prefix="" | |
23582 | fi; | |
23583 | ||
23584 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23585 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23586 | withval="$with_gtk_exec_prefix" | |
23587 | gtk_config_exec_prefix="$withval" | |
23588 | else | |
23589 | gtk_config_exec_prefix="" | |
23590 | fi; | |
23591 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23592 | if test "${enable_gtktest+set}" = set; then | |
23593 | enableval="$enable_gtktest" | |
23594 | ||
23595 | else | |
23596 | enable_gtktest=yes | |
23597 | fi; | |
23598 | ||
23599 | for module in . $GTK_MODULES | |
23600 | do | |
23601 | case "$module" in | |
23602 | gthread) | |
23603 | gtk_config_args="$gtk_config_args gthread" | |
23604 | ;; | |
23605 | esac | |
23606 | done | |
23607 | ||
23608 | if test x$gtk_config_exec_prefix != x ; then | |
23609 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23610 | if test x${GTK_CONFIG+set} != xset ; then | |
23611 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23612 | fi | |
23613 | fi | |
23614 | if test x$gtk_config_prefix != x ; then | |
23615 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23616 | if test x${GTK_CONFIG+set} != xset ; then | |
23617 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23618 | fi | |
23619 | fi | |
23620 | ||
23621 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23622 | set dummy gtk-config; ac_word=$2 | |
23623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23625 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23627 | else | |
23628 | case $GTK_CONFIG in | |
23629 | [\\/]* | ?:[\\/]*) | |
23630 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23631 | ;; | |
23632 | *) | |
23633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23634 | for as_dir in $PATH | |
23635 | do | |
23636 | IFS=$as_save_IFS | |
23637 | test -z "$as_dir" && as_dir=. | |
23638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23640 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23642 | break 2 | |
23643 | fi | |
23644 | done | |
23645 | done | |
23646 | ||
23647 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23648 | ;; | |
23649 | esac | |
23650 | fi | |
23651 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23652 | ||
23653 | if test -n "$GTK_CONFIG"; then | |
23654 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23655 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23656 | else | |
23657 | echo "$as_me:$LINENO: result: no" >&5 | |
23658 | echo "${ECHO_T}no" >&6 | |
23659 | fi | |
23660 | ||
23661 | min_gtk_version=1.2.3 | |
23662 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23663 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23664 | no_gtk="" | |
23665 | if test "$GTK_CONFIG" = "no" ; then | |
23666 | no_gtk=yes | |
23667 | else | |
23668 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23669 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23670 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23671 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23672 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23673 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23674 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23675 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23676 | if test "x$enable_gtktest" = "xyes" ; then | |
23677 | ac_save_CFLAGS="$CFLAGS" | |
23678 | ac_save_LIBS="$LIBS" | |
23679 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23680 | LIBS="$GTK_LIBS $LIBS" | |
23681 | rm -f conf.gtktest | |
23682 | if test "$cross_compiling" = yes; then | |
23683 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23684 | else | |
23685 | cat >conftest.$ac_ext <<_ACEOF | |
23686 | /* confdefs.h. */ | |
23687 | _ACEOF | |
23688 | cat confdefs.h >>conftest.$ac_ext | |
23689 | cat >>conftest.$ac_ext <<_ACEOF | |
23690 | /* end confdefs.h. */ | |
23691 | ||
23692 | #include <gtk/gtk.h> | |
23693 | #include <stdio.h> | |
23694 | #include <stdlib.h> | |
23695 | ||
23696 | int | |
23697 | main () | |
23698 | { | |
23699 | int major, minor, micro; | |
23700 | char *tmp_version; | |
23701 | ||
23702 | system ("touch conf.gtktest"); | |
23703 | ||
23704 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23705 | tmp_version = g_strdup("$min_gtk_version"); | |
23706 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23707 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23708 | exit(1); | |
23709 | } | |
23710 | ||
23711 | if ((gtk_major_version != $gtk_config_major_version) || | |
23712 | (gtk_minor_version != $gtk_config_minor_version) || | |
23713 | (gtk_micro_version != $gtk_config_micro_version)) | |
23714 | { | |
23715 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23716 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23717 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23718 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23719 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23720 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23721 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23722 | printf("*** required on your system.\n"); | |
23723 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23724 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23725 | printf("*** before re-running configure\n"); | |
23726 | } | |
23727 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23728 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23729 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23730 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23731 | { | |
23732 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23733 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23734 | printf("*** library (version %d.%d.%d)\n", | |
23735 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23736 | } | |
23737 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23738 | else | |
23739 | { | |
23740 | if ((gtk_major_version > major) || | |
23741 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23742 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23743 | { | |
23744 | return 0; | |
23745 | } | |
23746 | else | |
23747 | { | |
23748 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23749 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23750 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23751 | major, minor, micro); | |
23752 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23753 | printf("***\n"); | |
23754 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23755 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23756 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23757 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23758 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23759 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23760 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23761 | } | |
23762 | } | |
23763 | return 1; | |
23764 | } | |
23765 | ||
23766 | _ACEOF | |
23767 | rm -f conftest$ac_exeext | |
23768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23769 | (eval $ac_link) 2>&5 | |
23770 | ac_status=$? | |
23771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23772 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23774 | (eval $ac_try) 2>&5 | |
23775 | ac_status=$? | |
23776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23777 | (exit $ac_status); }; }; then | |
23778 | : | |
23779 | else | |
23780 | echo "$as_me: program exited with status $ac_status" >&5 | |
23781 | echo "$as_me: failed program was:" >&5 | |
23782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23783 | ||
23784 | ( exit $ac_status ) | |
23785 | no_gtk=yes | |
23786 | fi | |
ac1cb8d3 | 23787 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23788 | fi |
23789 | CFLAGS="$ac_save_CFLAGS" | |
23790 | LIBS="$ac_save_LIBS" | |
23791 | fi | |
23792 | fi | |
23793 | if test "x$no_gtk" = x ; then | |
23794 | echo "$as_me:$LINENO: result: yes" >&5 | |
23795 | echo "${ECHO_T}yes" >&6 | |
23796 | wx_cv_lib_gtk=1.2.3 | |
23797 | else | |
23798 | echo "$as_me:$LINENO: result: no" >&5 | |
23799 | echo "${ECHO_T}no" >&6 | |
23800 | if test "$GTK_CONFIG" = "no" ; then | |
23801 | echo "*** The gtk-config script installed by GTK could not be found" | |
23802 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23803 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23804 | echo "*** full path to gtk-config." | |
23805 | else | |
23806 | if test -f conf.gtktest ; then | |
23807 | : | |
23808 | else | |
23809 | echo "*** Could not run GTK test program, checking why..." | |
23810 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23811 | LIBS="$LIBS $GTK_LIBS" | |
23812 | cat >conftest.$ac_ext <<_ACEOF | |
23813 | /* confdefs.h. */ | |
23814 | _ACEOF | |
23815 | cat confdefs.h >>conftest.$ac_ext | |
23816 | cat >>conftest.$ac_ext <<_ACEOF | |
23817 | /* end confdefs.h. */ | |
23818 | ||
23819 | #include <gtk/gtk.h> | |
23820 | #include <stdio.h> | |
23821 | ||
23822 | int | |
23823 | main () | |
23824 | { | |
23825 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23826 | ; | |
23827 | return 0; | |
23828 | } | |
23829 | _ACEOF | |
23830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23832 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23833 | ac_status=$? |
ac1cb8d3 VS |
23834 | grep -v '^ *+' conftest.er1 >conftest.err |
23835 | rm -f conftest.er1 | |
23836 | cat conftest.err >&5 | |
a848cd7e SC |
23837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23838 | (exit $ac_status); } && | |
04840eaa VS |
23839 | { ac_try='test -z "$ac_c_werror_flag" |
23840 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23842 | (eval $ac_try) 2>&5 | |
23843 | ac_status=$? | |
23844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23845 | (exit $ac_status); }; } && | |
23846 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23848 | (eval $ac_try) 2>&5 | |
23849 | ac_status=$? | |
23850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23851 | (exit $ac_status); }; }; then | |
23852 | echo "*** The test program compiled, but did not run. This usually means" | |
23853 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23854 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23855 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23856 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23857 | echo "*** is required on your system" | |
23858 | echo "***" | |
23859 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23860 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23861 | echo "***" | |
23862 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23863 | echo "*** came with the system with the command" | |
23864 | echo "***" | |
23865 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23866 | else | |
23867 | echo "$as_me: failed program was:" >&5 | |
23868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23869 | ||
23870 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23871 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23872 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23873 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23874 | fi | |
ac1cb8d3 VS |
23875 | rm -f conftest.err conftest.$ac_objext \ |
23876 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23877 | CFLAGS="$ac_save_CFLAGS" |
23878 | LIBS="$ac_save_LIBS" | |
23879 | fi | |
23880 | fi | |
23881 | GTK_CFLAGS="" | |
23882 | GTK_LIBS="" | |
23883 | : | |
23884 | fi | |
23885 | ||
23886 | ||
23887 | rm -f conf.gtktest | |
23888 | ||
23889 | fi | |
23890 | fi | |
23891 | ||
23892 | if test -z "$wx_cv_lib_gtk"; then | |
23893 | wx_cv_lib_gtk=none | |
23894 | else | |
23895 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23896 | wx_cv_libs_gtk=$GTK_LIBS | |
23897 | fi | |
23898 | ||
23899 | ||
23900 | fi | |
23901 | ||
23902 | ||
23903 | if test "$gtk_version_cached" = 1; then | |
23904 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23905 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23906 | fi | |
23907 | ||
23908 | case "$wx_cv_lib_gtk" in | |
23909 | 2.0) WXGTK20=1 | |
23910 | TOOLKIT_VERSION=2 | |
23911 | ;; | |
23912 | 1.2.7) WXGTK127=1 | |
23913 | WXGTK12=1 | |
23914 | ;; | |
23915 | 1.2.3) WXGTK12=1 | |
23916 | ;; | |
23917 | *) { { echo "$as_me:$LINENO: error: | |
23918 | Please check that gtk-config is in path, the directory | |
23919 | where GTK+ libraries are installed (returned by | |
23920 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23921 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23922 | " >&5 | |
23923 | echo "$as_me: error: | |
23924 | Please check that gtk-config is in path, the directory | |
23925 | where GTK+ libraries are installed (returned by | |
23926 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23927 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23928 | " >&2;} | |
23929 | { (exit 1); exit 1; }; } | |
23930 | ;; | |
23931 | esac | |
23932 | ||
23933 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
23934 | save_CFLAGS="$CFLAGS" |
23935 | save_LIBS="$LIBS" | |
23936 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23937 | LIBS="$LIBS $GTK_LIBS" | |
23938 | ||
9755e73b | 23939 | |
304205f1 VS |
23940 | for ac_func in pango_font_family_is_monospace |
23941 | do | |
23942 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23943 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23944 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23945 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23947 | else | |
23948 | cat >conftest.$ac_ext <<_ACEOF | |
23949 | /* confdefs.h. */ | |
23950 | _ACEOF | |
23951 | cat confdefs.h >>conftest.$ac_ext | |
23952 | cat >>conftest.$ac_ext <<_ACEOF | |
23953 | /* end confdefs.h. */ | |
23954 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23955 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23956 | #define $ac_func innocuous_$ac_func | |
23957 | ||
23958 | /* System header to define __stub macros and hopefully few prototypes, | |
23959 | which can conflict with char $ac_func (); below. | |
23960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23961 | <limits.h> exists even on freestanding compilers. */ | |
23962 | ||
23963 | #ifdef __STDC__ | |
23964 | # include <limits.h> | |
23965 | #else | |
23966 | # include <assert.h> | |
23967 | #endif | |
23968 | ||
23969 | #undef $ac_func | |
23970 | ||
23971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23972 | #ifdef __cplusplus | |
23973 | extern "C" | |
23974 | { | |
23975 | #endif | |
23976 | /* We use char because int might match the return type of a gcc2 | |
23977 | builtin and then its argument prototype would still apply. */ | |
23978 | char $ac_func (); | |
23979 | /* The GNU C library defines this for functions which it implements | |
23980 | to always fail with ENOSYS. Some functions are actually named | |
23981 | something starting with __ and the normal name is an alias. */ | |
23982 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23983 | choke me | |
23984 | #else | |
23985 | char (*f) () = $ac_func; | |
23986 | #endif | |
23987 | #ifdef __cplusplus | |
23988 | } | |
23989 | #endif | |
23990 | ||
23991 | int | |
23992 | main () | |
23993 | { | |
23994 | return f != $ac_func; | |
23995 | ; | |
23996 | return 0; | |
23997 | } | |
23998 | _ACEOF | |
23999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24001 | (eval $ac_link) 2>conftest.er1 | |
24002 | ac_status=$? | |
24003 | grep -v '^ *+' conftest.er1 >conftest.err | |
24004 | rm -f conftest.er1 | |
24005 | cat conftest.err >&5 | |
24006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24007 | (exit $ac_status); } && | |
04840eaa VS |
24008 | { ac_try='test -z "$ac_c_werror_flag" |
24009 | || test ! -s conftest.err' | |
304205f1 VS |
24010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24011 | (eval $ac_try) 2>&5 | |
24012 | ac_status=$? | |
24013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24014 | (exit $ac_status); }; } && | |
24015 | { ac_try='test -s conftest$ac_exeext' | |
24016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24017 | (eval $ac_try) 2>&5 | |
24018 | ac_status=$? | |
24019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24020 | (exit $ac_status); }; }; then | |
24021 | eval "$as_ac_var=yes" | |
24022 | else | |
24023 | echo "$as_me: failed program was:" >&5 | |
24024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24025 | ||
24026 | eval "$as_ac_var=no" | |
24027 | fi | |
24028 | rm -f conftest.err conftest.$ac_objext \ | |
24029 | conftest$ac_exeext conftest.$ac_ext | |
24030 | fi | |
24031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24032 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24033 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24034 | cat >>confdefs.h <<_ACEOF | |
24035 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24036 | _ACEOF | |
24037 | ||
24038 | fi | |
24039 | done | |
24040 | ||
9755e73b VS |
24041 | |
24042 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
24043 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
24044 | cat >conftest.$ac_ext <<_ACEOF | |
24045 | /* confdefs.h. */ | |
24046 | _ACEOF | |
24047 | cat confdefs.h >>conftest.$ac_ext | |
24048 | cat >>conftest.$ac_ext <<_ACEOF | |
24049 | /* end confdefs.h. */ | |
24050 | ||
24051 | #include <gtk/gtk.h> | |
24052 | ||
24053 | int | |
24054 | main () | |
24055 | { | |
24056 | ||
24057 | #if !GTK_CHECK_VERSION(2,4,0) | |
24058 | #error "Not GTK+ 2.4" | |
24059 | #endif | |
24060 | ||
24061 | ; | |
24062 | return 0; | |
24063 | } | |
24064 | _ACEOF | |
24065 | rm -f conftest.$ac_objext | |
24066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24067 | (eval $ac_compile) 2>conftest.er1 | |
24068 | ac_status=$? | |
24069 | grep -v '^ *+' conftest.er1 >conftest.err | |
24070 | rm -f conftest.er1 | |
24071 | cat conftest.err >&5 | |
24072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24073 | (exit $ac_status); } && | |
04840eaa VS |
24074 | { ac_try='test -z "$ac_c_werror_flag" |
24075 | || test ! -s conftest.err' | |
9755e73b VS |
24076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24077 | (eval $ac_try) 2>&5 | |
24078 | ac_status=$? | |
24079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24080 | (exit $ac_status); }; } && | |
24081 | { ac_try='test -s conftest.$ac_objext' | |
24082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24083 | (eval $ac_try) 2>&5 | |
24084 | ac_status=$? | |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24086 | (exit $ac_status); }; }; then | |
24087 | ||
24088 | cat >>confdefs.h <<\_ACEOF | |
24089 | #define __WXGTK24__ 1 | |
24090 | _ACEOF | |
24091 | ||
24092 | echo "$as_me:$LINENO: result: yes" >&5 | |
24093 | echo "${ECHO_T}yes" >&6 | |
24094 | ||
24095 | else | |
24096 | echo "$as_me: failed program was:" >&5 | |
24097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24098 | ||
24099 | ||
24100 | echo "$as_me:$LINENO: result: no" >&5 | |
24101 | echo "${ECHO_T}no" >&6 | |
24102 | ||
24103 | fi | |
24104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24105 | ||
304205f1 VS |
24106 | CFLAGS="$save_CFLAGS" |
24107 | LIBS="$save_LIBS" | |
a848cd7e SC |
24108 | else |
24109 | if test "$wxUSE_UNICODE" = "yes"; then | |
24110 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
24111 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
24112 | wxUSE_UNICODE=no | |
24113 | fi | |
24114 | fi | |
24115 | ||
24116 | if test "$USE_DARWIN" != 1; then | |
24117 | ||
24118 | for ac_func in poll | |
24119 | do | |
24120 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24121 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24122 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24123 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24125 | else | |
24126 | cat >conftest.$ac_ext <<_ACEOF | |
24127 | /* confdefs.h. */ | |
24128 | _ACEOF | |
24129 | cat confdefs.h >>conftest.$ac_ext | |
24130 | cat >>conftest.$ac_ext <<_ACEOF | |
24131 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24132 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24133 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24134 | #define $ac_func innocuous_$ac_func | |
24135 | ||
a848cd7e SC |
24136 | /* System header to define __stub macros and hopefully few prototypes, |
24137 | which can conflict with char $ac_func (); below. | |
24138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24139 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24140 | |
a848cd7e SC |
24141 | #ifdef __STDC__ |
24142 | # include <limits.h> | |
24143 | #else | |
24144 | # include <assert.h> | |
24145 | #endif | |
ac1cb8d3 VS |
24146 | |
24147 | #undef $ac_func | |
24148 | ||
a848cd7e SC |
24149 | /* Override any gcc2 internal prototype to avoid an error. */ |
24150 | #ifdef __cplusplus | |
24151 | extern "C" | |
24152 | { | |
24153 | #endif | |
24154 | /* We use char because int might match the return type of a gcc2 | |
24155 | builtin and then its argument prototype would still apply. */ | |
24156 | char $ac_func (); | |
24157 | /* The GNU C library defines this for functions which it implements | |
24158 | to always fail with ENOSYS. Some functions are actually named | |
24159 | something starting with __ and the normal name is an alias. */ | |
24160 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24161 | choke me | |
24162 | #else | |
24163 | char (*f) () = $ac_func; | |
24164 | #endif | |
24165 | #ifdef __cplusplus | |
24166 | } | |
24167 | #endif | |
24168 | ||
24169 | int | |
24170 | main () | |
24171 | { | |
24172 | return f != $ac_func; | |
24173 | ; | |
24174 | return 0; | |
24175 | } | |
24176 | _ACEOF | |
24177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24179 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24180 | ac_status=$? |
ac1cb8d3 VS |
24181 | grep -v '^ *+' conftest.er1 >conftest.err |
24182 | rm -f conftest.er1 | |
24183 | cat conftest.err >&5 | |
a848cd7e SC |
24184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24185 | (exit $ac_status); } && | |
04840eaa VS |
24186 | { ac_try='test -z "$ac_c_werror_flag" |
24187 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24189 | (eval $ac_try) 2>&5 | |
24190 | ac_status=$? | |
24191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24192 | (exit $ac_status); }; } && | |
24193 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24195 | (eval $ac_try) 2>&5 | |
24196 | ac_status=$? | |
24197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24198 | (exit $ac_status); }; }; then | |
24199 | eval "$as_ac_var=yes" | |
24200 | else | |
24201 | echo "$as_me: failed program was:" >&5 | |
24202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24203 | ||
24204 | eval "$as_ac_var=no" | |
24205 | fi | |
ac1cb8d3 VS |
24206 | rm -f conftest.err conftest.$ac_objext \ |
24207 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24208 | fi |
24209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24210 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24211 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24212 | cat >>confdefs.h <<_ACEOF | |
24213 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24214 | _ACEOF | |
24215 | ||
24216 | fi | |
24217 | done | |
24218 | ||
24219 | fi | |
24220 | ||
24221 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
24222 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
24223 | ||
24224 | AFMINSTALL=afminstall | |
24225 | TOOLKIT=GTK | |
24226 | GUIDIST=GTK_DIST | |
24227 | ||
24228 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
24229 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
24230 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
24231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24232 | else | |
24233 | ac_check_lib_save_LIBS=$LIBS | |
24234 | LIBS="-lgdk $LIBS" | |
24235 | cat >conftest.$ac_ext <<_ACEOF | |
24236 | /* confdefs.h. */ | |
24237 | _ACEOF | |
24238 | cat confdefs.h >>conftest.$ac_ext | |
24239 | cat >>conftest.$ac_ext <<_ACEOF | |
24240 | /* end confdefs.h. */ | |
24241 | ||
24242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24243 | #ifdef __cplusplus | |
24244 | extern "C" | |
24245 | #endif | |
24246 | /* We use char because int might match the return type of a gcc2 | |
24247 | builtin and then its argument prototype would still apply. */ | |
24248 | char gdk_im_open (); | |
24249 | int | |
24250 | main () | |
24251 | { | |
24252 | gdk_im_open (); | |
24253 | ; | |
24254 | return 0; | |
24255 | } | |
24256 | _ACEOF | |
24257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24259 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24260 | ac_status=$? |
ac1cb8d3 VS |
24261 | grep -v '^ *+' conftest.er1 >conftest.err |
24262 | rm -f conftest.er1 | |
24263 | cat conftest.err >&5 | |
a848cd7e SC |
24264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24265 | (exit $ac_status); } && | |
04840eaa VS |
24266 | { ac_try='test -z "$ac_c_werror_flag" |
24267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24269 | (eval $ac_try) 2>&5 | |
24270 | ac_status=$? | |
24271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24272 | (exit $ac_status); }; } && | |
24273 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24275 | (eval $ac_try) 2>&5 | |
24276 | ac_status=$? | |
24277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24278 | (exit $ac_status); }; }; then | |
24279 | ac_cv_lib_gdk_gdk_im_open=yes | |
24280 | else | |
24281 | echo "$as_me: failed program was:" >&5 | |
24282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24283 | ||
24284 | ac_cv_lib_gdk_gdk_im_open=no | |
24285 | fi | |
ac1cb8d3 VS |
24286 | rm -f conftest.err conftest.$ac_objext \ |
24287 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24288 | LIBS=$ac_check_lib_save_LIBS |
24289 | fi | |
24290 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
24291 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
24292 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
24293 | cat >>confdefs.h <<\_ACEOF | |
24294 | #define HAVE_XIM 1 | |
24295 | _ACEOF | |
24296 | ||
24297 | fi | |
24298 | ||
24299 | ||
24300 | ||
24301 | if test "$wxUSE_GPE" = "yes"; then | |
24302 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
24303 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
24304 | ||
24305 | ac_find_libraries= | |
24306 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24307 | do | |
24308 | for ac_extension in a so sl dylib; do | |
24309 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
24310 | ac_find_libraries=$ac_dir | |
24311 | break 2 | |
24312 | fi | |
24313 | done | |
24314 | done | |
24315 | ||
24316 | if test "$ac_find_libraries" != "" ; then | |
24317 | ||
24318 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24319 | result=$? | |
24320 | if test $result = 0; then | |
24321 | ac_path_to_link="" | |
24322 | else | |
24323 | ac_path_to_link=" -L$ac_find_libraries" | |
24324 | fi | |
24325 | ||
24326 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
24327 | WXGPE=1 | |
24328 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24329 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24330 | else | |
24331 | echo "$as_me:$LINENO: result: not found" >&5 | |
24332 | echo "${ECHO_T}not found" >&6 | |
24333 | fi | |
24334 | ||
24335 | fi | |
24336 | fi | |
24337 | ||
24338 | if test "$wxUSE_MGL" = 1; then | |
24339 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
24340 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
24341 | if test "x$MGL_ROOT" = x ; then | |
24342 | echo "$as_me:$LINENO: result: not found" >&5 | |
24343 | echo "${ECHO_T}not found" >&6 | |
24344 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
24345 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
24346 | { (exit 1); exit 1; }; } | |
24347 | else | |
24348 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
24349 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
24350 | fi | |
24351 | ||
24352 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
24353 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
24354 | case "${host}" in | |
24355 | *-*-linux* ) | |
24356 | if test "x$wxUSE_SHARED" = xyes ; then | |
24357 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
24358 | else | |
24359 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
24360 | fi | |
24361 | ;; | |
24362 | *-pc-msdosdjgpp ) | |
24363 | mgl_os_candidates="dos32/dj2" | |
24364 | ;; | |
24365 | *) | |
24366 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
24367 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
24368 | { (exit 1); exit 1; }; } | |
24369 | esac | |
24370 | ||
24371 | mgl_lib_type="" | |
24372 | mgl_os="" | |
24373 | ||
24374 | for mgl_os_i in $mgl_os_candidates ; do | |
24375 | if test "x$mgl_os" = x ; then | |
24376 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
24377 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
24378 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
24379 | mgl_lib_type=debug | |
24380 | mgl_os=$mgl_os_i | |
24381 | fi | |
24382 | fi | |
24383 | if test "x$mgl_lib_type" = x ; then | |
24384 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
24385 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
24386 | mgl_lib_type=release | |
24387 | mgl_os=$mgl_os_i | |
24388 | fi | |
24389 | fi | |
24390 | fi | |
24391 | done | |
24392 | ||
24393 | if test "x$mgl_os" = x ; then | |
24394 | echo "$as_me:$LINENO: result: not found" >&5 | |
24395 | echo "${ECHO_T}not found" >&6 | |
24396 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
24397 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
24398 | { (exit 1); exit 1; }; } | |
24399 | fi | |
24400 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
24401 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
24402 | ||
24403 | wxUSE_UNIVERSAL="yes" | |
24404 | ||
24405 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
24406 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
24407 | ||
24408 | AFMINSTALL=afminstall | |
24409 | TOOLKIT=MGL | |
24410 | GUIDIST=MGL_DIST | |
24411 | fi | |
24412 | ||
24413 | if test "$wxUSE_MICROWIN" = 1; then | |
24414 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
24415 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
24416 | if test "x$MICROWINDOWS" = x ; then | |
24417 | echo "$as_me:$LINENO: result: not found" >&5 | |
24418 | echo "${ECHO_T}not found" >&6 | |
24419 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
24420 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
24421 | { (exit 1); exit 1; }; } | |
24422 | else | |
24423 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
24424 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
24425 | fi | |
24426 | ||
24427 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
24428 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
24429 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
24430 | else | |
24431 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
24432 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
24433 | { (exit 1); exit 1; }; } | |
24434 | fi | |
24435 | ||
24436 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
24437 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
24438 | ||
24439 | wxUSE_UNIVERSAL="yes" | |
24440 | ||
24441 | AFMINSTALL=afminstall | |
24442 | TOOLKIT=MICROWIN | |
24443 | GUIDIST=MICROWIN_DIST | |
24444 | ||
24445 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24446 | fi | |
24447 | ||
74b84332 | 24448 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
04840eaa | 24449 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
24450 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
24451 | ||
24452 | ||
24453 | # Check whether --with-x or --without-x was given. | |
24454 | if test "${with_x+set}" = set; then | |
24455 | withval="$with_x" | |
24456 | ||
24457 | fi; | |
24458 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24459 | if test "x$with_x" = xno; then | |
24460 | # The user explicitly disabled X. | |
24461 | have_x=disabled | |
24462 | else | |
24463 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24464 | # Both variables are already set. | |
24465 | have_x=yes | |
24466 | else | |
24467 | if test "${ac_cv_have_x+set}" = set; then | |
24468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24469 | else | |
24470 | # One or both of the vars are not set, and there is no cached value. | |
24471 | ac_x_includes=no ac_x_libraries=no | |
24472 | rm -fr conftest.dir | |
24473 | if mkdir conftest.dir; then | |
24474 | cd conftest.dir | |
24475 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24476 | cat >Imakefile <<'_ACEOF' | |
24477 | acfindx: | |
24478 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24479 | _ACEOF | |
24480 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24481 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24482 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24483 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24484 | for ac_extension in a so sl; do | |
24485 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24486 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24487 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24488 | fi |
24489 | done | |
24490 | # Screen out bogus values from the imake configuration. They are | |
24491 | # bogus both because they are the default anyway, and because | |
24492 | # using them would break gcc on systems where it needs fixed includes. | |
24493 | case $ac_im_incroot in | |
24494 | /usr/include) ;; | |
24495 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24496 | esac | |
24497 | case $ac_im_usrlibdir in | |
24498 | /usr/lib | /lib) ;; | |
24499 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24500 | esac | |
24501 | fi | |
24502 | cd .. | |
24503 | rm -fr conftest.dir | |
24504 | fi | |
24505 | ||
24506 | # Standard set of common directories for X headers. | |
24507 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24508 | ac_x_header_dirs=' | |
24509 | /usr/X11/include | |
24510 | /usr/X11R6/include | |
24511 | /usr/X11R5/include | |
24512 | /usr/X11R4/include | |
24513 | ||
24514 | /usr/include/X11 | |
24515 | /usr/include/X11R6 | |
24516 | /usr/include/X11R5 | |
24517 | /usr/include/X11R4 | |
24518 | ||
24519 | /usr/local/X11/include | |
24520 | /usr/local/X11R6/include | |
24521 | /usr/local/X11R5/include | |
24522 | /usr/local/X11R4/include | |
24523 | ||
24524 | /usr/local/include/X11 | |
24525 | /usr/local/include/X11R6 | |
24526 | /usr/local/include/X11R5 | |
24527 | /usr/local/include/X11R4 | |
24528 | ||
24529 | /usr/X386/include | |
24530 | /usr/x386/include | |
24531 | /usr/XFree86/include/X11 | |
24532 | ||
24533 | /usr/include | |
24534 | /usr/local/include | |
24535 | /usr/unsupported/include | |
24536 | /usr/athena/include | |
24537 | /usr/local/x11r5/include | |
24538 | /usr/lpp/Xamples/include | |
24539 | ||
24540 | /usr/openwin/include | |
24541 | /usr/openwin/share/include' | |
24542 | ||
24543 | if test "$ac_x_includes" = no; then | |
04840eaa | 24544 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
24545 | # First, try using that file with no special directory specified. |
24546 | cat >conftest.$ac_ext <<_ACEOF | |
24547 | /* confdefs.h. */ | |
24548 | _ACEOF | |
24549 | cat confdefs.h >>conftest.$ac_ext | |
24550 | cat >>conftest.$ac_ext <<_ACEOF | |
24551 | /* end confdefs.h. */ | |
24552 | #include <X11/Intrinsic.h> | |
24553 | _ACEOF | |
24554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24556 | ac_status=$? | |
24557 | grep -v '^ *+' conftest.er1 >conftest.err | |
24558 | rm -f conftest.er1 | |
24559 | cat conftest.err >&5 | |
24560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24561 | (exit $ac_status); } >/dev/null; then | |
24562 | if test -s conftest.err; then | |
24563 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24565 | else |
24566 | ac_cpp_err= | |
24567 | fi | |
24568 | else | |
24569 | ac_cpp_err=yes | |
24570 | fi | |
24571 | if test -z "$ac_cpp_err"; then | |
24572 | # We can compile using X headers with no special include directory. | |
24573 | ac_x_includes= | |
24574 | else | |
24575 | echo "$as_me: failed program was:" >&5 | |
24576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24577 | ||
24578 | for ac_dir in $ac_x_header_dirs; do | |
24579 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24580 | ac_x_includes=$ac_dir | |
24581 | break | |
24582 | fi | |
24583 | done | |
24584 | fi | |
24585 | rm -f conftest.err conftest.$ac_ext | |
24586 | fi # $ac_x_includes = no | |
24587 | ||
24588 | if test "$ac_x_libraries" = no; then | |
24589 | # Check for the libraries. | |
24590 | # See if we find them without any special options. | |
24591 | # Don't add to $LIBS permanently. | |
24592 | ac_save_LIBS=$LIBS | |
24593 | LIBS="-lXt $LIBS" | |
24594 | cat >conftest.$ac_ext <<_ACEOF | |
24595 | /* confdefs.h. */ | |
24596 | _ACEOF | |
24597 | cat confdefs.h >>conftest.$ac_ext | |
24598 | cat >>conftest.$ac_ext <<_ACEOF | |
24599 | /* end confdefs.h. */ | |
24600 | #include <X11/Intrinsic.h> | |
24601 | int | |
24602 | main () | |
24603 | { | |
24604 | XtMalloc (0) | |
24605 | ; | |
24606 | return 0; | |
24607 | } | |
24608 | _ACEOF | |
24609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24611 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24612 | ac_status=$? |
ac1cb8d3 VS |
24613 | grep -v '^ *+' conftest.er1 >conftest.err |
24614 | rm -f conftest.er1 | |
24615 | cat conftest.err >&5 | |
a848cd7e SC |
24616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24617 | (exit $ac_status); } && | |
04840eaa VS |
24618 | { ac_try='test -z "$ac_c_werror_flag" |
24619 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24621 | (eval $ac_try) 2>&5 | |
24622 | ac_status=$? | |
24623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24624 | (exit $ac_status); }; } && | |
24625 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24627 | (eval $ac_try) 2>&5 | |
24628 | ac_status=$? | |
24629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24630 | (exit $ac_status); }; }; then | |
24631 | LIBS=$ac_save_LIBS | |
24632 | # We can link X programs with no special library path. | |
24633 | ac_x_libraries= | |
24634 | else | |
24635 | echo "$as_me: failed program was:" >&5 | |
24636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24637 | ||
24638 | LIBS=$ac_save_LIBS | |
24639 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24640 | do | |
24641 | # Don't even attempt the hair of trying to link an X program! | |
24642 | for ac_extension in a so sl; do | |
24643 | if test -r $ac_dir/libXt.$ac_extension; then | |
24644 | ac_x_libraries=$ac_dir | |
24645 | break 2 | |
24646 | fi | |
24647 | done | |
24648 | done | |
24649 | fi | |
ac1cb8d3 VS |
24650 | rm -f conftest.err conftest.$ac_objext \ |
24651 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24652 | fi # $ac_x_libraries = no |
24653 | ||
24654 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24655 | # Didn't find X anywhere. Cache the known absence of X. | |
24656 | ac_cv_have_x="have_x=no" | |
24657 | else | |
24658 | # Record where we found X for the cache. | |
24659 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24660 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24661 | fi |
24662 | fi | |
24663 | ||
24664 | fi | |
24665 | eval "$ac_cv_have_x" | |
24666 | fi # $with_x != no | |
24667 | ||
24668 | if test "$have_x" != yes; then | |
24669 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24670 | echo "${ECHO_T}$have_x" >&6 | |
24671 | no_x=yes | |
24672 | else | |
24673 | # If each of the values was on the command line, it overrides each guess. | |
24674 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24675 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24676 | # Update the cache value to reflect the command line values. | |
24677 | ac_cv_have_x="have_x=yes \ | |
24678 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
04840eaa VS |
24679 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
24680 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
24681 | fi |
24682 | ||
24683 | if test "$no_x" = yes; then | |
24684 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24685 | ||
24686 | cat >>confdefs.h <<\_ACEOF | |
24687 | #define X_DISPLAY_MISSING 1 | |
24688 | _ACEOF | |
24689 | ||
24690 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24691 | else | |
24692 | if test -n "$x_includes"; then | |
24693 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24694 | fi | |
24695 | ||
24696 | # It would also be nice to do this for all -L options, not just this one. | |
24697 | if test -n "$x_libraries"; then | |
24698 | X_LIBS="$X_LIBS -L$x_libraries" | |
24699 | # For Solaris; some versions of Sun CC require a space after -R and | |
24700 | # others require no space. Words are not sufficient . . . . | |
24701 | case `(uname -sr) 2>/dev/null` in | |
24702 | "SunOS 5"*) | |
24703 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24704 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24705 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24706 | cat >conftest.$ac_ext <<_ACEOF | |
24707 | /* confdefs.h. */ | |
24708 | _ACEOF | |
24709 | cat confdefs.h >>conftest.$ac_ext | |
24710 | cat >>conftest.$ac_ext <<_ACEOF | |
24711 | /* end confdefs.h. */ | |
24712 | ||
24713 | int | |
24714 | main () | |
24715 | { | |
24716 | ||
24717 | ; | |
24718 | return 0; | |
24719 | } | |
24720 | _ACEOF | |
24721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24723 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24724 | ac_status=$? |
ac1cb8d3 VS |
24725 | grep -v '^ *+' conftest.er1 >conftest.err |
24726 | rm -f conftest.er1 | |
24727 | cat conftest.err >&5 | |
a848cd7e SC |
24728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24729 | (exit $ac_status); } && | |
04840eaa VS |
24730 | { ac_try='test -z "$ac_c_werror_flag" |
24731 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24733 | (eval $ac_try) 2>&5 | |
24734 | ac_status=$? | |
24735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24736 | (exit $ac_status); }; } && | |
24737 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24739 | (eval $ac_try) 2>&5 | |
24740 | ac_status=$? | |
24741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24742 | (exit $ac_status); }; }; then | |
24743 | ac_R_nospace=yes | |
24744 | else | |
24745 | echo "$as_me: failed program was:" >&5 | |
24746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24747 | ||
24748 | ac_R_nospace=no | |
24749 | fi | |
ac1cb8d3 VS |
24750 | rm -f conftest.err conftest.$ac_objext \ |
24751 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24752 | if test $ac_R_nospace = yes; then |
24753 | echo "$as_me:$LINENO: result: no" >&5 | |
24754 | echo "${ECHO_T}no" >&6 | |
24755 | X_LIBS="$X_LIBS -R$x_libraries" | |
24756 | else | |
24757 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24758 | cat >conftest.$ac_ext <<_ACEOF | |
24759 | /* confdefs.h. */ | |
24760 | _ACEOF | |
24761 | cat confdefs.h >>conftest.$ac_ext | |
24762 | cat >>conftest.$ac_ext <<_ACEOF | |
24763 | /* end confdefs.h. */ | |
24764 | ||
24765 | int | |
24766 | main () | |
24767 | { | |
24768 | ||
24769 | ; | |
24770 | return 0; | |
24771 | } | |
24772 | _ACEOF | |
24773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24775 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24776 | ac_status=$? |
ac1cb8d3 VS |
24777 | grep -v '^ *+' conftest.er1 >conftest.err |
24778 | rm -f conftest.er1 | |
24779 | cat conftest.err >&5 | |
a848cd7e SC |
24780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24781 | (exit $ac_status); } && | |
04840eaa VS |
24782 | { ac_try='test -z "$ac_c_werror_flag" |
24783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24785 | (eval $ac_try) 2>&5 | |
24786 | ac_status=$? | |
24787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24788 | (exit $ac_status); }; } && | |
24789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24791 | (eval $ac_try) 2>&5 | |
24792 | ac_status=$? | |
24793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24794 | (exit $ac_status); }; }; then | |
24795 | ac_R_space=yes | |
24796 | else | |
24797 | echo "$as_me: failed program was:" >&5 | |
24798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24799 | ||
24800 | ac_R_space=no | |
24801 | fi | |
ac1cb8d3 VS |
24802 | rm -f conftest.err conftest.$ac_objext \ |
24803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24804 | if test $ac_R_space = yes; then |
24805 | echo "$as_me:$LINENO: result: yes" >&5 | |
24806 | echo "${ECHO_T}yes" >&6 | |
24807 | X_LIBS="$X_LIBS -R $x_libraries" | |
24808 | else | |
24809 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24810 | echo "${ECHO_T}neither works" >&6 | |
24811 | fi | |
24812 | fi | |
24813 | LIBS=$ac_xsave_LIBS | |
24814 | esac | |
24815 | fi | |
24816 | ||
24817 | # Check for system-dependent libraries X programs must link with. | |
24818 | # Do this before checking for the system-independent R6 libraries | |
24819 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24820 | ||
24821 | if test "$ISC" = yes; then | |
24822 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24823 | else | |
24824 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24825 | # libraries were built with DECnet support. And Karl Berry says | |
24826 | # the Alpha needs dnet_stub (dnet does not exist). | |
24827 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24828 | cat >conftest.$ac_ext <<_ACEOF | |
24829 | /* confdefs.h. */ | |
24830 | _ACEOF | |
24831 | cat confdefs.h >>conftest.$ac_ext | |
24832 | cat >>conftest.$ac_ext <<_ACEOF | |
24833 | /* end confdefs.h. */ | |
24834 | ||
24835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24836 | #ifdef __cplusplus | |
24837 | extern "C" | |
24838 | #endif | |
24839 | /* We use char because int might match the return type of a gcc2 | |
24840 | builtin and then its argument prototype would still apply. */ | |
24841 | char XOpenDisplay (); | |
24842 | int | |
24843 | main () | |
24844 | { | |
24845 | XOpenDisplay (); | |
24846 | ; | |
24847 | return 0; | |
24848 | } | |
24849 | _ACEOF | |
24850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24852 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24853 | ac_status=$? |
ac1cb8d3 VS |
24854 | grep -v '^ *+' conftest.er1 >conftest.err |
24855 | rm -f conftest.er1 | |
24856 | cat conftest.err >&5 | |
a848cd7e SC |
24857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24858 | (exit $ac_status); } && | |
04840eaa VS |
24859 | { ac_try='test -z "$ac_c_werror_flag" |
24860 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24862 | (eval $ac_try) 2>&5 | |
24863 | ac_status=$? | |
24864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24865 | (exit $ac_status); }; } && | |
24866 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24868 | (eval $ac_try) 2>&5 | |
24869 | ac_status=$? | |
24870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24871 | (exit $ac_status); }; }; then | |
24872 | : | |
24873 | else | |
24874 | echo "$as_me: failed program was:" >&5 | |
24875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24876 | ||
24877 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24878 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24879 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24881 | else | |
24882 | ac_check_lib_save_LIBS=$LIBS | |
24883 | LIBS="-ldnet $LIBS" | |
24884 | cat >conftest.$ac_ext <<_ACEOF | |
24885 | /* confdefs.h. */ | |
24886 | _ACEOF | |
24887 | cat confdefs.h >>conftest.$ac_ext | |
24888 | cat >>conftest.$ac_ext <<_ACEOF | |
24889 | /* end confdefs.h. */ | |
24890 | ||
24891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24892 | #ifdef __cplusplus | |
24893 | extern "C" | |
24894 | #endif | |
24895 | /* We use char because int might match the return type of a gcc2 | |
24896 | builtin and then its argument prototype would still apply. */ | |
24897 | char dnet_ntoa (); | |
24898 | int | |
24899 | main () | |
24900 | { | |
24901 | dnet_ntoa (); | |
24902 | ; | |
24903 | return 0; | |
24904 | } | |
24905 | _ACEOF | |
24906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24908 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24909 | ac_status=$? |
ac1cb8d3 VS |
24910 | grep -v '^ *+' conftest.er1 >conftest.err |
24911 | rm -f conftest.er1 | |
24912 | cat conftest.err >&5 | |
a848cd7e SC |
24913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24914 | (exit $ac_status); } && | |
04840eaa VS |
24915 | { ac_try='test -z "$ac_c_werror_flag" |
24916 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24918 | (eval $ac_try) 2>&5 | |
24919 | ac_status=$? | |
24920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24921 | (exit $ac_status); }; } && | |
24922 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24924 | (eval $ac_try) 2>&5 | |
24925 | ac_status=$? | |
24926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24927 | (exit $ac_status); }; }; then | |
24928 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24929 | else | |
24930 | echo "$as_me: failed program was:" >&5 | |
24931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24932 | ||
24933 | ac_cv_lib_dnet_dnet_ntoa=no | |
24934 | fi | |
ac1cb8d3 VS |
24935 | rm -f conftest.err conftest.$ac_objext \ |
24936 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24937 | LIBS=$ac_check_lib_save_LIBS |
24938 | fi | |
24939 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24940 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24941 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24942 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24943 | fi | |
24944 | ||
24945 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24946 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24947 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24948 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24950 | else | |
24951 | ac_check_lib_save_LIBS=$LIBS | |
24952 | LIBS="-ldnet_stub $LIBS" | |
24953 | cat >conftest.$ac_ext <<_ACEOF | |
24954 | /* confdefs.h. */ | |
24955 | _ACEOF | |
24956 | cat confdefs.h >>conftest.$ac_ext | |
24957 | cat >>conftest.$ac_ext <<_ACEOF | |
24958 | /* end confdefs.h. */ | |
24959 | ||
24960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24961 | #ifdef __cplusplus | |
24962 | extern "C" | |
24963 | #endif | |
24964 | /* We use char because int might match the return type of a gcc2 | |
24965 | builtin and then its argument prototype would still apply. */ | |
24966 | char dnet_ntoa (); | |
24967 | int | |
24968 | main () | |
24969 | { | |
24970 | dnet_ntoa (); | |
24971 | ; | |
24972 | return 0; | |
24973 | } | |
24974 | _ACEOF | |
24975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24977 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24978 | ac_status=$? |
ac1cb8d3 VS |
24979 | grep -v '^ *+' conftest.er1 >conftest.err |
24980 | rm -f conftest.er1 | |
24981 | cat conftest.err >&5 | |
a848cd7e SC |
24982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24983 | (exit $ac_status); } && | |
04840eaa VS |
24984 | { ac_try='test -z "$ac_c_werror_flag" |
24985 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24987 | (eval $ac_try) 2>&5 | |
24988 | ac_status=$? | |
24989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24990 | (exit $ac_status); }; } && | |
24991 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24993 | (eval $ac_try) 2>&5 | |
24994 | ac_status=$? | |
24995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24996 | (exit $ac_status); }; }; then | |
24997 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24998 | else | |
24999 | echo "$as_me: failed program was:" >&5 | |
25000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25001 | ||
25002 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25003 | fi | |
ac1cb8d3 VS |
25004 | rm -f conftest.err conftest.$ac_objext \ |
25005 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25006 | LIBS=$ac_check_lib_save_LIBS |
25007 | fi | |
25008 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25009 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25010 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
25011 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
25012 | fi | |
25013 | ||
25014 | fi | |
25015 | fi | |
ac1cb8d3 VS |
25016 | rm -f conftest.err conftest.$ac_objext \ |
25017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25018 | LIBS="$ac_xsave_LIBS" |
25019 | ||
25020 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
25021 | # to get the SysV transport functions. | |
25022 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
25023 | # needs -lnsl. | |
25024 | # The nsl library prevents programs from opening the X display | |
25025 | # on Irix 5.2, according to T.E. Dickey. | |
25026 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25027 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25028 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25029 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25030 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25032 | else | |
25033 | cat >conftest.$ac_ext <<_ACEOF | |
25034 | /* confdefs.h. */ | |
25035 | _ACEOF | |
25036 | cat confdefs.h >>conftest.$ac_ext | |
25037 | cat >>conftest.$ac_ext <<_ACEOF | |
25038 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25039 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25040 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25041 | #define gethostbyname innocuous_gethostbyname | |
25042 | ||
a848cd7e SC |
25043 | /* System header to define __stub macros and hopefully few prototypes, |
25044 | which can conflict with char gethostbyname (); below. | |
25045 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25046 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25047 | |
a848cd7e SC |
25048 | #ifdef __STDC__ |
25049 | # include <limits.h> | |
25050 | #else | |
25051 | # include <assert.h> | |
25052 | #endif | |
ac1cb8d3 VS |
25053 | |
25054 | #undef gethostbyname | |
25055 | ||
a848cd7e SC |
25056 | /* Override any gcc2 internal prototype to avoid an error. */ |
25057 | #ifdef __cplusplus | |
25058 | extern "C" | |
25059 | { | |
25060 | #endif | |
25061 | /* We use char because int might match the return type of a gcc2 | |
25062 | builtin and then its argument prototype would still apply. */ | |
25063 | char gethostbyname (); | |
25064 | /* The GNU C library defines this for functions which it implements | |
25065 | to always fail with ENOSYS. Some functions are actually named | |
25066 | something starting with __ and the normal name is an alias. */ | |
25067 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25068 | choke me | |
25069 | #else | |
25070 | char (*f) () = gethostbyname; | |
25071 | #endif | |
25072 | #ifdef __cplusplus | |
25073 | } | |
25074 | #endif | |
25075 | ||
25076 | int | |
25077 | main () | |
25078 | { | |
25079 | return f != gethostbyname; | |
25080 | ; | |
25081 | return 0; | |
25082 | } | |
25083 | _ACEOF | |
25084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25086 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25087 | ac_status=$? |
ac1cb8d3 VS |
25088 | grep -v '^ *+' conftest.er1 >conftest.err |
25089 | rm -f conftest.er1 | |
25090 | cat conftest.err >&5 | |
a848cd7e SC |
25091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25092 | (exit $ac_status); } && | |
04840eaa VS |
25093 | { ac_try='test -z "$ac_c_werror_flag" |
25094 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25096 | (eval $ac_try) 2>&5 | |
25097 | ac_status=$? | |
25098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25099 | (exit $ac_status); }; } && | |
25100 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25102 | (eval $ac_try) 2>&5 | |
25103 | ac_status=$? | |
25104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25105 | (exit $ac_status); }; }; then | |
25106 | ac_cv_func_gethostbyname=yes | |
25107 | else | |
25108 | echo "$as_me: failed program was:" >&5 | |
25109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25110 | ||
25111 | ac_cv_func_gethostbyname=no | |
25112 | fi | |
ac1cb8d3 VS |
25113 | rm -f conftest.err conftest.$ac_objext \ |
25114 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25115 | fi |
25116 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25117 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
25118 | ||
25119 | if test $ac_cv_func_gethostbyname = no; then | |
25120 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
25121 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25122 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25124 | else | |
25125 | ac_check_lib_save_LIBS=$LIBS | |
25126 | LIBS="-lnsl $LIBS" | |
25127 | cat >conftest.$ac_ext <<_ACEOF | |
25128 | /* confdefs.h. */ | |
25129 | _ACEOF | |
25130 | cat confdefs.h >>conftest.$ac_ext | |
25131 | cat >>conftest.$ac_ext <<_ACEOF | |
25132 | /* end confdefs.h. */ | |
25133 | ||
25134 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25135 | #ifdef __cplusplus | |
25136 | extern "C" | |
25137 | #endif | |
25138 | /* We use char because int might match the return type of a gcc2 | |
25139 | builtin and then its argument prototype would still apply. */ | |
25140 | char gethostbyname (); | |
25141 | int | |
25142 | main () | |
25143 | { | |
25144 | gethostbyname (); | |
25145 | ; | |
25146 | return 0; | |
25147 | } | |
25148 | _ACEOF | |
25149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
25151 | (eval $ac_link) 2>conftest.er1 |
25152 | ac_status=$? | |
25153 | grep -v '^ *+' conftest.er1 >conftest.err | |
25154 | rm -f conftest.er1 | |
25155 | cat conftest.err >&5 | |
25156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25157 | (exit $ac_status); } && | |
04840eaa VS |
25158 | { ac_try='test -z "$ac_c_werror_flag" |
25159 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25161 | (eval $ac_try) 2>&5 | |
25162 | ac_status=$? | |
25163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25164 | (exit $ac_status); }; } && | |
25165 | { ac_try='test -s conftest$ac_exeext' | |
25166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25167 | (eval $ac_try) 2>&5 | |
25168 | ac_status=$? | |
25169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25170 | (exit $ac_status); }; }; then | |
25171 | ac_cv_lib_nsl_gethostbyname=yes | |
25172 | else | |
25173 | echo "$as_me: failed program was:" >&5 | |
25174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25175 | ||
25176 | ac_cv_lib_nsl_gethostbyname=no | |
25177 | fi | |
25178 | rm -f conftest.err conftest.$ac_objext \ | |
25179 | conftest$ac_exeext conftest.$ac_ext | |
25180 | LIBS=$ac_check_lib_save_LIBS | |
25181 | fi | |
25182 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25183 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25184 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25185 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
25186 | fi | |
25187 | ||
25188 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
25189 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
25190 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
25191 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25193 | else | |
25194 | ac_check_lib_save_LIBS=$LIBS | |
25195 | LIBS="-lbsd $LIBS" | |
25196 | cat >conftest.$ac_ext <<_ACEOF | |
25197 | /* confdefs.h. */ | |
25198 | _ACEOF | |
25199 | cat confdefs.h >>conftest.$ac_ext | |
25200 | cat >>conftest.$ac_ext <<_ACEOF | |
25201 | /* end confdefs.h. */ | |
25202 | ||
25203 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25204 | #ifdef __cplusplus | |
25205 | extern "C" | |
25206 | #endif | |
25207 | /* We use char because int might match the return type of a gcc2 | |
25208 | builtin and then its argument prototype would still apply. */ | |
25209 | char gethostbyname (); | |
25210 | int | |
25211 | main () | |
25212 | { | |
25213 | gethostbyname (); | |
25214 | ; | |
25215 | return 0; | |
25216 | } | |
25217 | _ACEOF | |
25218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25220 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 25221 | ac_status=$? |
ac1cb8d3 VS |
25222 | grep -v '^ *+' conftest.er1 >conftest.err |
25223 | rm -f conftest.er1 | |
25224 | cat conftest.err >&5 | |
a848cd7e SC |
25225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25226 | (exit $ac_status); } && | |
04840eaa VS |
25227 | { ac_try='test -z "$ac_c_werror_flag" |
25228 | || test ! -s conftest.err' | |
a848cd7e SC |
25229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25230 | (eval $ac_try) 2>&5 | |
25231 | ac_status=$? | |
25232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
25233 | (exit $ac_status); }; } && |
25234 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25236 | (eval $ac_try) 2>&5 | |
25237 | ac_status=$? | |
25238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25239 | (exit $ac_status); }; }; then | |
25240 | ac_cv_lib_bsd_gethostbyname=yes | |
25241 | else | |
25242 | echo "$as_me: failed program was:" >&5 | |
25243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25244 | ||
25245 | ac_cv_lib_bsd_gethostbyname=no | |
25246 | fi | |
ac1cb8d3 VS |
25247 | rm -f conftest.err conftest.$ac_objext \ |
25248 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25249 | LIBS=$ac_check_lib_save_LIBS |
25250 | fi | |
25251 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25252 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25253 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25254 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
25255 | fi | |
25256 | ||
25257 | fi | |
25258 | fi | |
25259 | ||
25260 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
25261 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25262 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
25263 | # on later versions), says Simon Leinen: it contains gethostby* | |
25264 | # variants that don't use the name server (or something). -lsocket | |
25265 | # must be given before -lnsl if both are needed. We assume that | |
25266 | # if connect needs -lnsl, so does gethostbyname. | |
25267 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25268 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25269 | if test "${ac_cv_func_connect+set}" = set; then | |
25270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25271 | else | |
25272 | cat >conftest.$ac_ext <<_ACEOF | |
25273 | /* confdefs.h. */ | |
25274 | _ACEOF | |
25275 | cat confdefs.h >>conftest.$ac_ext | |
25276 | cat >>conftest.$ac_ext <<_ACEOF | |
25277 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25278 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25279 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25280 | #define connect innocuous_connect | |
25281 | ||
a848cd7e SC |
25282 | /* System header to define __stub macros and hopefully few prototypes, |
25283 | which can conflict with char connect (); below. | |
25284 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25285 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25286 | |
a848cd7e SC |
25287 | #ifdef __STDC__ |
25288 | # include <limits.h> | |
25289 | #else | |
25290 | # include <assert.h> | |
25291 | #endif | |
ac1cb8d3 VS |
25292 | |
25293 | #undef connect | |
25294 | ||
a848cd7e SC |
25295 | /* Override any gcc2 internal prototype to avoid an error. */ |
25296 | #ifdef __cplusplus | |
25297 | extern "C" | |
25298 | { | |
25299 | #endif | |
25300 | /* We use char because int might match the return type of a gcc2 | |
25301 | builtin and then its argument prototype would still apply. */ | |
25302 | char connect (); | |
25303 | /* The GNU C library defines this for functions which it implements | |
25304 | to always fail with ENOSYS. Some functions are actually named | |
25305 | something starting with __ and the normal name is an alias. */ | |
25306 | #if defined (__stub_connect) || defined (__stub___connect) | |
25307 | choke me | |
25308 | #else | |
25309 | char (*f) () = connect; | |
25310 | #endif | |
25311 | #ifdef __cplusplus | |
25312 | } | |
25313 | #endif | |
25314 | ||
25315 | int | |
25316 | main () | |
25317 | { | |
25318 | return f != connect; | |
25319 | ; | |
25320 | return 0; | |
25321 | } | |
25322 | _ACEOF | |
25323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25325 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25326 | ac_status=$? |
ac1cb8d3 VS |
25327 | grep -v '^ *+' conftest.er1 >conftest.err |
25328 | rm -f conftest.er1 | |
25329 | cat conftest.err >&5 | |
a848cd7e SC |
25330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25331 | (exit $ac_status); } && | |
04840eaa VS |
25332 | { ac_try='test -z "$ac_c_werror_flag" |
25333 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25335 | (eval $ac_try) 2>&5 | |
25336 | ac_status=$? | |
25337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25338 | (exit $ac_status); }; } && | |
25339 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25341 | (eval $ac_try) 2>&5 | |
25342 | ac_status=$? | |
25343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25344 | (exit $ac_status); }; }; then | |
25345 | ac_cv_func_connect=yes | |
25346 | else | |
25347 | echo "$as_me: failed program was:" >&5 | |
25348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25349 | ||
25350 | ac_cv_func_connect=no | |
25351 | fi | |
ac1cb8d3 VS |
25352 | rm -f conftest.err conftest.$ac_objext \ |
25353 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25354 | fi |
25355 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25356 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
25357 | ||
25358 | if test $ac_cv_func_connect = no; then | |
25359 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
25360 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25361 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25363 | else | |
25364 | ac_check_lib_save_LIBS=$LIBS | |
25365 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
25366 | cat >conftest.$ac_ext <<_ACEOF | |
25367 | /* confdefs.h. */ | |
25368 | _ACEOF | |
25369 | cat confdefs.h >>conftest.$ac_ext | |
25370 | cat >>conftest.$ac_ext <<_ACEOF | |
25371 | /* end confdefs.h. */ | |
25372 | ||
25373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25374 | #ifdef __cplusplus | |
25375 | extern "C" | |
25376 | #endif | |
25377 | /* We use char because int might match the return type of a gcc2 | |
25378 | builtin and then its argument prototype would still apply. */ | |
25379 | char connect (); | |
25380 | int | |
25381 | main () | |
25382 | { | |
25383 | connect (); | |
25384 | ; | |
25385 | return 0; | |
25386 | } | |
25387 | _ACEOF | |
25388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25390 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25391 | ac_status=$? |
ac1cb8d3 VS |
25392 | grep -v '^ *+' conftest.er1 >conftest.err |
25393 | rm -f conftest.er1 | |
25394 | cat conftest.err >&5 | |
a848cd7e SC |
25395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25396 | (exit $ac_status); } && | |
04840eaa VS |
25397 | { ac_try='test -z "$ac_c_werror_flag" |
25398 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25400 | (eval $ac_try) 2>&5 | |
25401 | ac_status=$? | |
25402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25403 | (exit $ac_status); }; } && | |
25404 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25406 | (eval $ac_try) 2>&5 | |
25407 | ac_status=$? | |
25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25409 | (exit $ac_status); }; }; then | |
25410 | ac_cv_lib_socket_connect=yes | |
25411 | else | |
25412 | echo "$as_me: failed program was:" >&5 | |
25413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25414 | ||
25415 | ac_cv_lib_socket_connect=no | |
25416 | fi | |
ac1cb8d3 VS |
25417 | rm -f conftest.err conftest.$ac_objext \ |
25418 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25419 | LIBS=$ac_check_lib_save_LIBS |
25420 | fi | |
25421 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25422 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25423 | if test $ac_cv_lib_socket_connect = yes; then | |
25424 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
25425 | fi | |
25426 | ||
25427 | fi | |
25428 | ||
25429 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
25430 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25431 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25432 | if test "${ac_cv_func_remove+set}" = set; then | |
25433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25434 | else | |
25435 | cat >conftest.$ac_ext <<_ACEOF | |
25436 | /* confdefs.h. */ | |
25437 | _ACEOF | |
25438 | cat confdefs.h >>conftest.$ac_ext | |
25439 | cat >>conftest.$ac_ext <<_ACEOF | |
25440 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25441 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25442 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25443 | #define remove innocuous_remove | |
25444 | ||
a848cd7e SC |
25445 | /* System header to define __stub macros and hopefully few prototypes, |
25446 | which can conflict with char remove (); below. | |
25447 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25448 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25449 | |
a848cd7e SC |
25450 | #ifdef __STDC__ |
25451 | # include <limits.h> | |
25452 | #else | |
25453 | # include <assert.h> | |
25454 | #endif | |
ac1cb8d3 VS |
25455 | |
25456 | #undef remove | |
25457 | ||
a848cd7e SC |
25458 | /* Override any gcc2 internal prototype to avoid an error. */ |
25459 | #ifdef __cplusplus | |
25460 | extern "C" | |
25461 | { | |
25462 | #endif | |
25463 | /* We use char because int might match the return type of a gcc2 | |
25464 | builtin and then its argument prototype would still apply. */ | |
25465 | char remove (); | |
25466 | /* The GNU C library defines this for functions which it implements | |
25467 | to always fail with ENOSYS. Some functions are actually named | |
25468 | something starting with __ and the normal name is an alias. */ | |
25469 | #if defined (__stub_remove) || defined (__stub___remove) | |
25470 | choke me | |
25471 | #else | |
25472 | char (*f) () = remove; | |
25473 | #endif | |
25474 | #ifdef __cplusplus | |
25475 | } | |
25476 | #endif | |
25477 | ||
25478 | int | |
25479 | main () | |
25480 | { | |
25481 | return f != remove; | |
25482 | ; | |
25483 | return 0; | |
25484 | } | |
25485 | _ACEOF | |
25486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25489 | ac_status=$? |
ac1cb8d3 VS |
25490 | grep -v '^ *+' conftest.er1 >conftest.err |
25491 | rm -f conftest.er1 | |
25492 | cat conftest.err >&5 | |
a848cd7e SC |
25493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25494 | (exit $ac_status); } && | |
04840eaa VS |
25495 | { ac_try='test -z "$ac_c_werror_flag" |
25496 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25498 | (eval $ac_try) 2>&5 | |
25499 | ac_status=$? | |
25500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25501 | (exit $ac_status); }; } && | |
25502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25504 | (eval $ac_try) 2>&5 | |
25505 | ac_status=$? | |
25506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25507 | (exit $ac_status); }; }; then | |
25508 | ac_cv_func_remove=yes | |
25509 | else | |
25510 | echo "$as_me: failed program was:" >&5 | |
25511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25512 | ||
25513 | ac_cv_func_remove=no | |
25514 | fi | |
ac1cb8d3 VS |
25515 | rm -f conftest.err conftest.$ac_objext \ |
25516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25517 | fi |
25518 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25519 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25520 | ||
25521 | if test $ac_cv_func_remove = no; then | |
25522 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25523 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25524 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25526 | else | |
25527 | ac_check_lib_save_LIBS=$LIBS | |
25528 | LIBS="-lposix $LIBS" | |
25529 | cat >conftest.$ac_ext <<_ACEOF | |
25530 | /* confdefs.h. */ | |
25531 | _ACEOF | |
25532 | cat confdefs.h >>conftest.$ac_ext | |
25533 | cat >>conftest.$ac_ext <<_ACEOF | |
25534 | /* end confdefs.h. */ | |
25535 | ||
25536 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25537 | #ifdef __cplusplus | |
25538 | extern "C" | |
25539 | #endif | |
25540 | /* We use char because int might match the return type of a gcc2 | |
25541 | builtin and then its argument prototype would still apply. */ | |
25542 | char remove (); | |
25543 | int | |
25544 | main () | |
25545 | { | |
25546 | remove (); | |
25547 | ; | |
25548 | return 0; | |
25549 | } | |
25550 | _ACEOF | |
25551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25553 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25554 | ac_status=$? |
ac1cb8d3 VS |
25555 | grep -v '^ *+' conftest.er1 >conftest.err |
25556 | rm -f conftest.er1 | |
25557 | cat conftest.err >&5 | |
a848cd7e SC |
25558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25559 | (exit $ac_status); } && | |
04840eaa VS |
25560 | { ac_try='test -z "$ac_c_werror_flag" |
25561 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25563 | (eval $ac_try) 2>&5 | |
25564 | ac_status=$? | |
25565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25566 | (exit $ac_status); }; } && | |
25567 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25569 | (eval $ac_try) 2>&5 | |
25570 | ac_status=$? | |
25571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25572 | (exit $ac_status); }; }; then | |
25573 | ac_cv_lib_posix_remove=yes | |
25574 | else | |
25575 | echo "$as_me: failed program was:" >&5 | |
25576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25577 | ||
25578 | ac_cv_lib_posix_remove=no | |
25579 | fi | |
ac1cb8d3 VS |
25580 | rm -f conftest.err conftest.$ac_objext \ |
25581 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25582 | LIBS=$ac_check_lib_save_LIBS |
25583 | fi | |
25584 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25585 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25586 | if test $ac_cv_lib_posix_remove = yes; then | |
25587 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25588 | fi | |
25589 | ||
25590 | fi | |
25591 | ||
25592 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25593 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25594 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25595 | if test "${ac_cv_func_shmat+set}" = set; then | |
25596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25597 | else | |
25598 | cat >conftest.$ac_ext <<_ACEOF | |
25599 | /* confdefs.h. */ | |
25600 | _ACEOF | |
25601 | cat confdefs.h >>conftest.$ac_ext | |
25602 | cat >>conftest.$ac_ext <<_ACEOF | |
25603 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25604 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25606 | #define shmat innocuous_shmat | |
25607 | ||
a848cd7e SC |
25608 | /* System header to define __stub macros and hopefully few prototypes, |
25609 | which can conflict with char shmat (); below. | |
25610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25611 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25612 | |
a848cd7e SC |
25613 | #ifdef __STDC__ |
25614 | # include <limits.h> | |
25615 | #else | |
25616 | # include <assert.h> | |
25617 | #endif | |
ac1cb8d3 VS |
25618 | |
25619 | #undef shmat | |
25620 | ||
a848cd7e SC |
25621 | /* Override any gcc2 internal prototype to avoid an error. */ |
25622 | #ifdef __cplusplus | |
25623 | extern "C" | |
25624 | { | |
25625 | #endif | |
25626 | /* We use char because int might match the return type of a gcc2 | |
25627 | builtin and then its argument prototype would still apply. */ | |
25628 | char shmat (); | |
25629 | /* The GNU C library defines this for functions which it implements | |
25630 | to always fail with ENOSYS. Some functions are actually named | |
25631 | something starting with __ and the normal name is an alias. */ | |
25632 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25633 | choke me | |
25634 | #else | |
25635 | char (*f) () = shmat; | |
25636 | #endif | |
25637 | #ifdef __cplusplus | |
25638 | } | |
25639 | #endif | |
25640 | ||
25641 | int | |
25642 | main () | |
25643 | { | |
25644 | return f != shmat; | |
25645 | ; | |
25646 | return 0; | |
25647 | } | |
25648 | _ACEOF | |
25649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25651 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25652 | ac_status=$? |
ac1cb8d3 VS |
25653 | grep -v '^ *+' conftest.er1 >conftest.err |
25654 | rm -f conftest.er1 | |
25655 | cat conftest.err >&5 | |
a848cd7e SC |
25656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25657 | (exit $ac_status); } && | |
04840eaa VS |
25658 | { ac_try='test -z "$ac_c_werror_flag" |
25659 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25661 | (eval $ac_try) 2>&5 | |
25662 | ac_status=$? | |
25663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25664 | (exit $ac_status); }; } && | |
25665 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25667 | (eval $ac_try) 2>&5 | |
25668 | ac_status=$? | |
25669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25670 | (exit $ac_status); }; }; then | |
25671 | ac_cv_func_shmat=yes | |
25672 | else | |
25673 | echo "$as_me: failed program was:" >&5 | |
25674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25675 | ||
25676 | ac_cv_func_shmat=no | |
25677 | fi | |
ac1cb8d3 VS |
25678 | rm -f conftest.err conftest.$ac_objext \ |
25679 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25680 | fi |
25681 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25682 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25683 | ||
25684 | if test $ac_cv_func_shmat = no; then | |
25685 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25686 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25687 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25689 | else | |
25690 | ac_check_lib_save_LIBS=$LIBS | |
25691 | LIBS="-lipc $LIBS" | |
25692 | cat >conftest.$ac_ext <<_ACEOF | |
25693 | /* confdefs.h. */ | |
25694 | _ACEOF | |
25695 | cat confdefs.h >>conftest.$ac_ext | |
25696 | cat >>conftest.$ac_ext <<_ACEOF | |
25697 | /* end confdefs.h. */ | |
25698 | ||
25699 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25700 | #ifdef __cplusplus | |
25701 | extern "C" | |
25702 | #endif | |
25703 | /* We use char because int might match the return type of a gcc2 | |
25704 | builtin and then its argument prototype would still apply. */ | |
25705 | char shmat (); | |
25706 | int | |
25707 | main () | |
25708 | { | |
25709 | shmat (); | |
25710 | ; | |
25711 | return 0; | |
25712 | } | |
25713 | _ACEOF | |
25714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25716 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25717 | ac_status=$? |
ac1cb8d3 VS |
25718 | grep -v '^ *+' conftest.er1 >conftest.err |
25719 | rm -f conftest.er1 | |
25720 | cat conftest.err >&5 | |
a848cd7e SC |
25721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25722 | (exit $ac_status); } && | |
04840eaa VS |
25723 | { ac_try='test -z "$ac_c_werror_flag" |
25724 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25726 | (eval $ac_try) 2>&5 | |
25727 | ac_status=$? | |
25728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25729 | (exit $ac_status); }; } && | |
25730 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25732 | (eval $ac_try) 2>&5 | |
25733 | ac_status=$? | |
25734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25735 | (exit $ac_status); }; }; then | |
25736 | ac_cv_lib_ipc_shmat=yes | |
25737 | else | |
25738 | echo "$as_me: failed program was:" >&5 | |
25739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25740 | ||
25741 | ac_cv_lib_ipc_shmat=no | |
25742 | fi | |
ac1cb8d3 VS |
25743 | rm -f conftest.err conftest.$ac_objext \ |
25744 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25745 | LIBS=$ac_check_lib_save_LIBS |
25746 | fi | |
25747 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25748 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25749 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25750 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25751 | fi | |
25752 | ||
25753 | fi | |
25754 | fi | |
25755 | ||
25756 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25757 | ac_save_LDFLAGS=$LDFLAGS | |
25758 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25759 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25760 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25761 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25762 | # These have to be linked with before -lX11, unlike the other | |
25763 | # libraries we check for below, so use a different variable. | |
25764 | # John Interrante, Karl Berry | |
25765 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25766 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25767 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25769 | else | |
25770 | ac_check_lib_save_LIBS=$LIBS | |
25771 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25772 | cat >conftest.$ac_ext <<_ACEOF | |
25773 | /* confdefs.h. */ | |
25774 | _ACEOF | |
25775 | cat confdefs.h >>conftest.$ac_ext | |
25776 | cat >>conftest.$ac_ext <<_ACEOF | |
25777 | /* end confdefs.h. */ | |
25778 | ||
25779 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25780 | #ifdef __cplusplus | |
25781 | extern "C" | |
25782 | #endif | |
25783 | /* We use char because int might match the return type of a gcc2 | |
25784 | builtin and then its argument prototype would still apply. */ | |
25785 | char IceConnectionNumber (); | |
25786 | int | |
25787 | main () | |
25788 | { | |
25789 | IceConnectionNumber (); | |
25790 | ; | |
25791 | return 0; | |
25792 | } | |
25793 | _ACEOF | |
25794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25796 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25797 | ac_status=$? |
ac1cb8d3 VS |
25798 | grep -v '^ *+' conftest.er1 >conftest.err |
25799 | rm -f conftest.er1 | |
25800 | cat conftest.err >&5 | |
a848cd7e SC |
25801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25802 | (exit $ac_status); } && | |
04840eaa VS |
25803 | { ac_try='test -z "$ac_c_werror_flag" |
25804 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25806 | (eval $ac_try) 2>&5 | |
25807 | ac_status=$? | |
25808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25809 | (exit $ac_status); }; } && | |
25810 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25812 | (eval $ac_try) 2>&5 | |
25813 | ac_status=$? | |
25814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25815 | (exit $ac_status); }; }; then | |
25816 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25817 | else | |
25818 | echo "$as_me: failed program was:" >&5 | |
25819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25820 | ||
25821 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25822 | fi | |
ac1cb8d3 VS |
25823 | rm -f conftest.err conftest.$ac_objext \ |
25824 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25825 | LIBS=$ac_check_lib_save_LIBS |
25826 | fi | |
25827 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25828 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25829 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25830 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25831 | fi | |
25832 | ||
25833 | LDFLAGS=$ac_save_LDFLAGS | |
25834 | ||
25835 | fi | |
25836 | ||
25837 | ||
25838 | if test "$no_x" = "yes"; then | |
25839 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25840 | echo "$as_me: error: X11 not found" >&2;} | |
25841 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25842 | fi | |
25843 | ||
74b84332 VS |
25844 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25845 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25846 | AFMINSTALL=afminstall |
25847 | COMPILED_X_PROGRAM=0 | |
25848 | ||
74b84332 VS |
25849 | fi |
25850 | ||
25851 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25852 | if test "$wxUSE_NANOX" = "yes"; then |
25853 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25854 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25855 | if test "x$MICROWIN" = x ; then | |
25856 | echo "$as_me:$LINENO: result: not found" >&5 | |
25857 | echo "${ECHO_T}not found" >&6 | |
25858 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25859 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25860 | { (exit 1); exit 1; }; } | |
25861 | else | |
25862 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25863 | echo "${ECHO_T}$MICROWIN" >&6 | |
25864 | cat >>confdefs.h <<\_ACEOF | |
25865 | #define wxUSE_NANOX 1 | |
25866 | _ACEOF | |
25867 | ||
25868 | fi | |
25869 | fi | |
25870 | ||
25871 | if test "$wxUSE_UNICODE" = "yes"; then | |
25872 | ||
25873 | succeeded=no | |
25874 | ||
25875 | if test -z "$PKG_CONFIG"; then | |
25876 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25877 | set dummy pkg-config; ac_word=$2 | |
25878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25880 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25882 | else | |
25883 | case $PKG_CONFIG in | |
25884 | [\\/]* | ?:[\\/]*) | |
25885 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25886 | ;; | |
25887 | *) | |
25888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25889 | for as_dir in $PATH | |
25890 | do | |
25891 | IFS=$as_save_IFS | |
25892 | test -z "$as_dir" && as_dir=. | |
25893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25895 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25897 | break 2 | |
25898 | fi | |
25899 | done | |
25900 | done | |
25901 | ||
25902 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25903 | ;; | |
25904 | esac | |
25905 | fi | |
25906 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25907 | ||
25908 | if test -n "$PKG_CONFIG"; then | |
25909 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25910 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25911 | else | |
25912 | echo "$as_me:$LINENO: result: no" >&5 | |
25913 | echo "${ECHO_T}no" >&6 | |
25914 | fi | |
25915 | ||
25916 | fi | |
25917 | ||
25918 | if test "$PKG_CONFIG" = "no" ; then | |
25919 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25920 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25921 | echo "*** to the full path to pkg-config." | |
25922 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25923 | else | |
25924 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25925 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25926 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25927 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25928 | ||
25929 | if $PKG_CONFIG --exists "pangox" ; then | |
25930 | echo "$as_me:$LINENO: result: yes" >&5 | |
25931 | echo "${ECHO_T}yes" >&6 | |
25932 | succeeded=yes | |
25933 | ||
25934 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25935 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25936 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25937 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25938 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25939 | ||
25940 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25941 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25942 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25943 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25944 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25945 | else | |
25946 | PANGOX_CFLAGS="" | |
25947 | PANGOX_LIBS="" | |
25948 | ## If we have a custom action on failure, don't print errors, but | |
25949 | ## do set a variable so people can do so. | |
25950 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25951 | ||
25952 | fi | |
25953 | ||
25954 | ||
25955 | ||
25956 | else | |
25957 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25958 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25959 | fi | |
25960 | fi | |
25961 | ||
25962 | if test $succeeded = yes; then | |
25963 | ||
25964 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25965 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25966 | ||
25967 | else | |
25968 | ||
25969 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25970 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25971 | { (exit 1); exit 1; }; } | |
25972 | ||
25973 | ||
25974 | fi | |
25975 | ||
25976 | ||
25977 | succeeded=no | |
25978 | ||
25979 | if test -z "$PKG_CONFIG"; then | |
25980 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25981 | set dummy pkg-config; ac_word=$2 | |
25982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25984 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25986 | else | |
25987 | case $PKG_CONFIG in | |
25988 | [\\/]* | ?:[\\/]*) | |
25989 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25990 | ;; | |
25991 | *) | |
25992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25993 | for as_dir in $PATH | |
25994 | do | |
25995 | IFS=$as_save_IFS | |
25996 | test -z "$as_dir" && as_dir=. | |
25997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25998 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25999 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26001 | break 2 | |
26002 | fi | |
26003 | done | |
26004 | done | |
26005 | ||
26006 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26007 | ;; | |
26008 | esac | |
26009 | fi | |
26010 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26011 | ||
26012 | if test -n "$PKG_CONFIG"; then | |
26013 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26014 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26015 | else | |
26016 | echo "$as_me:$LINENO: result: no" >&5 | |
26017 | echo "${ECHO_T}no" >&6 | |
26018 | fi | |
26019 | ||
26020 | fi | |
26021 | ||
26022 | if test "$PKG_CONFIG" = "no" ; then | |
26023 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26024 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26025 | echo "*** to the full path to pkg-config." | |
26026 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26027 | else | |
26028 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26029 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26030 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
26031 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
26032 | ||
26033 | if $PKG_CONFIG --exists "pangoft2" ; then | |
26034 | echo "$as_me:$LINENO: result: yes" >&5 | |
26035 | echo "${ECHO_T}yes" >&6 | |
26036 | succeeded=yes | |
26037 | ||
26038 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
26039 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
26040 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
26041 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
26042 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
26043 | ||
26044 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
26045 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
26046 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
26047 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
26048 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
26049 | else | |
26050 | PANGOFT2_CFLAGS="" | |
26051 | PANGOFT2_LIBS="" | |
26052 | ## If we have a custom action on failure, don't print errors, but | |
26053 | ## do set a variable so people can do so. | |
26054 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
26055 | ||
26056 | fi | |
26057 | ||
26058 | ||
26059 | ||
26060 | else | |
26061 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26062 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26063 | fi | |
26064 | fi | |
26065 | ||
26066 | if test $succeeded = yes; then | |
26067 | ||
26068 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
26069 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
26070 | ||
26071 | else | |
26072 | ||
26073 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
26074 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
26075 | wxUSE_PRINTING_ARCHITECTURE="no" | |
26076 | ||
26077 | ||
26078 | fi | |
26079 | ||
26080 | ||
26081 | succeeded=no | |
26082 | ||
26083 | if test -z "$PKG_CONFIG"; then | |
26084 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26085 | set dummy pkg-config; ac_word=$2 | |
26086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26088 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26090 | else | |
26091 | case $PKG_CONFIG in | |
26092 | [\\/]* | ?:[\\/]*) | |
26093 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26094 | ;; | |
26095 | *) | |
26096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26097 | for as_dir in $PATH | |
26098 | do | |
26099 | IFS=$as_save_IFS | |
26100 | test -z "$as_dir" && as_dir=. | |
26101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26103 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26105 | break 2 | |
26106 | fi | |
26107 | done | |
26108 | done | |
26109 | ||
26110 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26111 | ;; | |
26112 | esac | |
26113 | fi | |
26114 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26115 | ||
26116 | if test -n "$PKG_CONFIG"; then | |
26117 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26118 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26119 | else | |
26120 | echo "$as_me:$LINENO: result: no" >&5 | |
26121 | echo "${ECHO_T}no" >&6 | |
26122 | fi | |
26123 | ||
26124 | fi | |
26125 | ||
26126 | if test "$PKG_CONFIG" = "no" ; then | |
26127 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26128 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26129 | echo "*** to the full path to pkg-config." | |
26130 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26131 | else | |
26132 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26133 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26134 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
26135 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
26136 | ||
26137 | if $PKG_CONFIG --exists "pangoxft" ; then | |
26138 | echo "$as_me:$LINENO: result: yes" >&5 | |
26139 | echo "${ECHO_T}yes" >&6 | |
26140 | succeeded=yes | |
26141 | ||
26142 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
26143 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
26144 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
26145 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
26146 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
26147 | ||
26148 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
26149 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
26150 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
26151 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
26152 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
26153 | else | |
26154 | PANGOXFT_CFLAGS="" | |
26155 | PANGOXFT_LIBS="" | |
26156 | ## If we have a custom action on failure, don't print errors, but | |
26157 | ## do set a variable so people can do so. | |
26158 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
26159 | ||
26160 | fi | |
26161 | ||
26162 | ||
26163 | ||
26164 | else | |
26165 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26166 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26167 | fi | |
26168 | fi | |
26169 | ||
26170 | if test $succeeded = yes; then | |
26171 | ||
4ae1af05 MB |
26172 | cat >>confdefs.h <<\_ACEOF |
26173 | #define HAVE_PANGO_XFT 1 | |
26174 | _ACEOF | |
26175 | ||
a848cd7e SC |
26176 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
26177 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
26178 | ||
26179 | else | |
26180 | ||
26181 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
26182 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
26183 | ||
26184 | ||
26185 | fi | |
26186 | ||
304205f1 VS |
26187 | save_CFLAGS="$CFLAGS" |
26188 | save_LIBS="$LIBS" | |
26189 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
26190 | LIBS="$LIBS $PANGOX_LIBS" | |
26191 | ||
26192 | for ac_func in pango_font_family_is_monospace | |
26193 | do | |
26194 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26195 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26196 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26197 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26199 | else | |
26200 | cat >conftest.$ac_ext <<_ACEOF | |
26201 | /* confdefs.h. */ | |
26202 | _ACEOF | |
26203 | cat confdefs.h >>conftest.$ac_ext | |
26204 | cat >>conftest.$ac_ext <<_ACEOF | |
26205 | /* end confdefs.h. */ | |
26206 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26207 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26208 | #define $ac_func innocuous_$ac_func | |
26209 | ||
26210 | /* System header to define __stub macros and hopefully few prototypes, | |
26211 | which can conflict with char $ac_func (); below. | |
26212 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26213 | <limits.h> exists even on freestanding compilers. */ | |
26214 | ||
26215 | #ifdef __STDC__ | |
26216 | # include <limits.h> | |
26217 | #else | |
26218 | # include <assert.h> | |
26219 | #endif | |
26220 | ||
26221 | #undef $ac_func | |
26222 | ||
26223 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26224 | #ifdef __cplusplus | |
26225 | extern "C" | |
26226 | { | |
26227 | #endif | |
26228 | /* We use char because int might match the return type of a gcc2 | |
26229 | builtin and then its argument prototype would still apply. */ | |
26230 | char $ac_func (); | |
26231 | /* The GNU C library defines this for functions which it implements | |
26232 | to always fail with ENOSYS. Some functions are actually named | |
26233 | something starting with __ and the normal name is an alias. */ | |
26234 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26235 | choke me | |
26236 | #else | |
26237 | char (*f) () = $ac_func; | |
26238 | #endif | |
26239 | #ifdef __cplusplus | |
26240 | } | |
26241 | #endif | |
26242 | ||
26243 | int | |
26244 | main () | |
26245 | { | |
26246 | return f != $ac_func; | |
26247 | ; | |
26248 | return 0; | |
26249 | } | |
26250 | _ACEOF | |
26251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26253 | (eval $ac_link) 2>conftest.er1 | |
26254 | ac_status=$? | |
26255 | grep -v '^ *+' conftest.er1 >conftest.err | |
26256 | rm -f conftest.er1 | |
26257 | cat conftest.err >&5 | |
26258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26259 | (exit $ac_status); } && | |
04840eaa VS |
26260 | { ac_try='test -z "$ac_c_werror_flag" |
26261 | || test ! -s conftest.err' | |
304205f1 VS |
26262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26263 | (eval $ac_try) 2>&5 | |
26264 | ac_status=$? | |
26265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26266 | (exit $ac_status); }; } && | |
26267 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
26273 | eval "$as_ac_var=yes" | |
26274 | else | |
26275 | echo "$as_me: failed program was:" >&5 | |
26276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26277 | ||
26278 | eval "$as_ac_var=no" | |
26279 | fi | |
26280 | rm -f conftest.err conftest.$ac_objext \ | |
26281 | conftest$ac_exeext conftest.$ac_ext | |
26282 | fi | |
26283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26284 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26285 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26286 | cat >>confdefs.h <<_ACEOF | |
26287 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26288 | _ACEOF | |
26289 | ||
26290 | fi | |
26291 | done | |
26292 | ||
26293 | CFLAGS="$save_CFLAGS" | |
26294 | LIBS="$save_LIBS" | |
a848cd7e SC |
26295 | fi |
26296 | ||
26297 | wxUSE_UNIVERSAL="yes" | |
26298 | ||
26299 | if test "$wxUSE_NANOX" = "yes"; then | |
26300 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
26301 | 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" | |
26302 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
26303 | else | |
26304 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
26305 | fi | |
26306 | ||
a848cd7e SC |
26307 | TOOLKIT=X11 |
26308 | GUIDIST=X11_DIST | |
26309 | fi | |
26310 | ||
26311 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
26312 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
26313 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 26314 | |
74b84332 VS |
26315 | ac_find_includes= |
26316 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26317 | do | |
26318 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26319 | ac_find_includes=$ac_dir | |
26320 | break | |
26321 | fi | |
26322 | done | |
a848cd7e | 26323 | |
74b84332 VS |
26324 | if test "$ac_find_includes" != "" ; then |
26325 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26326 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26327 | ||
26328 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26329 | ac_path_to_include="" | |
26330 | else | |
26331 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
26332 | result=$? | |
26333 | if test $result = 0; then | |
26334 | ac_path_to_include="" | |
26335 | else | |
26336 | ac_path_to_include=" -I$ac_find_includes" | |
26337 | fi | |
a848cd7e SC |
26338 | fi |
26339 | ||
74b84332 VS |
26340 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
26341 | else | |
26342 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26343 | /* confdefs.h. */ |
26344 | _ACEOF | |
26345 | cat confdefs.h >>conftest.$ac_ext | |
26346 | cat >>conftest.$ac_ext <<_ACEOF | |
26347 | /* end confdefs.h. */ | |
26348 | ||
74b84332 VS |
26349 | #include <Xm/Xm.h> |
26350 | ||
a848cd7e SC |
26351 | int |
26352 | main () | |
26353 | { | |
26354 | ||
74b84332 VS |
26355 | int version; |
26356 | version = xmUseVersion; | |
26357 | ||
a848cd7e SC |
26358 | ; |
26359 | return 0; | |
26360 | } | |
26361 | _ACEOF | |
74b84332 VS |
26362 | rm -f conftest.$ac_objext |
26363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26364 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26365 | ac_status=$? |
ac1cb8d3 VS |
26366 | grep -v '^ *+' conftest.er1 >conftest.err |
26367 | rm -f conftest.er1 | |
26368 | cat conftest.err >&5 | |
a848cd7e SC |
26369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26370 | (exit $ac_status); } && | |
04840eaa VS |
26371 | { ac_try='test -z "$ac_c_werror_flag" |
26372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26374 | (eval $ac_try) 2>&5 | |
26375 | ac_status=$? | |
26376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26377 | (exit $ac_status); }; } && | |
74b84332 | 26378 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26380 | (eval $ac_try) 2>&5 | |
26381 | ac_status=$? | |
26382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26383 | (exit $ac_status); }; }; then | |
74b84332 VS |
26384 | |
26385 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26386 | echo "${ECHO_T}found in default search path" >&6 | |
26387 | COMPILED_X_PROGRAM=1 | |
26388 | ||
a848cd7e SC |
26389 | else |
26390 | echo "$as_me: failed program was:" >&5 | |
26391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26392 | ||
a848cd7e | 26393 | |
74b84332 VS |
26394 | echo "$as_me:$LINENO: result: no" >&5 |
26395 | echo "${ECHO_T}no" >&6 | |
26396 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26397 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26398 | { (exit 1); exit 1; }; } | |
a848cd7e | 26399 | |
a848cd7e | 26400 | |
a848cd7e | 26401 | fi |
74b84332 VS |
26402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
26403 | fi | |
26404 | ||
26405 | if test "$COMPILED_X_PROGRAM" = 0; then | |
26406 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
26407 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26408 | ||
26409 | ac_find_libraries= | |
26410 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26411 | do | |
26412 | for ac_extension in a so sl dylib; do | |
26413 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26414 | ac_find_libraries=$ac_dir | |
26415 | break 2 | |
a848cd7e | 26416 | fi |
74b84332 VS |
26417 | done |
26418 | done | |
a848cd7e | 26419 | |
74b84332 VS |
26420 | if test "$ac_find_libraries" != "" ; then |
26421 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26422 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 26423 | |
74b84332 VS |
26424 | |
26425 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26426 | result=$? | |
26427 | if test $result = 0; then | |
26428 | ac_path_to_link="" | |
a848cd7e | 26429 | else |
74b84332 VS |
26430 | ac_path_to_link=" -L$ac_find_libraries" |
26431 | fi | |
26432 | ||
26433 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26434 | else | |
26435 | save_CFLAGS=$CFLAGS | |
26436 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26437 | ||
26438 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26439 | /* confdefs.h. */ |
26440 | _ACEOF | |
26441 | cat confdefs.h >>conftest.$ac_ext | |
26442 | cat >>conftest.$ac_ext <<_ACEOF | |
26443 | /* end confdefs.h. */ | |
26444 | ||
74b84332 VS |
26445 | #include <Xm/Xm.h> |
26446 | ||
a848cd7e SC |
26447 | int |
26448 | main () | |
26449 | { | |
74b84332 VS |
26450 | |
26451 | int version; | |
26452 | version = xmUseVersion; | |
26453 | ||
a848cd7e SC |
26454 | ; |
26455 | return 0; | |
26456 | } | |
26457 | _ACEOF | |
74b84332 VS |
26458 | rm -f conftest.$ac_objext |
26459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26460 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26461 | ac_status=$? |
ac1cb8d3 VS |
26462 | grep -v '^ *+' conftest.er1 >conftest.err |
26463 | rm -f conftest.er1 | |
26464 | cat conftest.err >&5 | |
a848cd7e SC |
26465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26466 | (exit $ac_status); } && | |
04840eaa VS |
26467 | { ac_try='test -z "$ac_c_werror_flag" |
26468 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26470 | (eval $ac_try) 2>&5 | |
26471 | ac_status=$? | |
26472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26473 | (exit $ac_status); }; } && | |
74b84332 | 26474 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26476 | (eval $ac_try) 2>&5 | |
26477 | ac_status=$? | |
26478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26479 | (exit $ac_status); }; }; then | |
74b84332 VS |
26480 | |
26481 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26482 | echo "${ECHO_T}found in default search path" >&6 | |
26483 | COMPILED_X_PROGRAM=1 | |
26484 | ||
a848cd7e SC |
26485 | else |
26486 | echo "$as_me: failed program was:" >&5 | |
26487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26488 | ||
74b84332 VS |
26489 | |
26490 | echo "$as_me:$LINENO: result: no" >&5 | |
26491 | echo "${ECHO_T}no" >&6 | |
26492 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26493 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26494 | { (exit 1); exit 1; }; } | |
26495 | ||
26496 | ||
26497 | fi | |
26498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26499 | ||
26500 | CFLAGS=$save_CFLAGS | |
26501 | fi | |
26502 | fi | |
26503 | ||
26504 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26505 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26506 | libp_link="" | |
26507 | libsm_ice_link="" | |
26508 | libs_found=0 | |
26509 | for libp in "" " -lXp"; do | |
26510 | if test "$libs_found" = "0"; then | |
26511 | for libsm_ice in "" " -lSM -lICE"; do | |
26512 | if test "$libs_found" = "0"; then | |
26513 | save_LIBS="$LIBS" | |
26514 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26515 | save_CFLAGS=$CFLAGS | |
26516 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26517 | ||
26518 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26519 | /* confdefs.h. */ |
26520 | _ACEOF | |
26521 | cat confdefs.h >>conftest.$ac_ext | |
26522 | cat >>conftest.$ac_ext <<_ACEOF | |
26523 | /* end confdefs.h. */ | |
26524 | ||
74b84332 VS |
26525 | #include <Xm/Xm.h> |
26526 | #include <Xm/List.h> | |
26527 | ||
a848cd7e SC |
26528 | int |
26529 | main () | |
26530 | { | |
74b84332 VS |
26531 | |
26532 | XmString string = NULL; | |
26533 | Widget w = NULL; | |
26534 | int position = 0; | |
26535 | XmListAddItem(w, string, position); | |
26536 | ||
a848cd7e SC |
26537 | ; |
26538 | return 0; | |
26539 | } | |
26540 | _ACEOF | |
26541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26544 | ac_status=$? |
ac1cb8d3 VS |
26545 | grep -v '^ *+' conftest.er1 >conftest.err |
26546 | rm -f conftest.er1 | |
26547 | cat conftest.err >&5 | |
a848cd7e SC |
26548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26549 | (exit $ac_status); } && | |
04840eaa VS |
26550 | { ac_try='test -z "$ac_c_werror_flag" |
26551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26553 | (eval $ac_try) 2>&5 | |
26554 | ac_status=$? | |
26555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26556 | (exit $ac_status); }; } && | |
26557 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26559 | (eval $ac_try) 2>&5 | |
26560 | ac_status=$? | |
26561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26562 | (exit $ac_status); }; }; then | |
26563 | ||
26564 | libp_link="$libp" | |
26565 | libsm_ice_link="$libsm_ice" | |
26566 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26567 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26568 | libs_found=1 | |
26569 | ||
26570 | else | |
26571 | echo "$as_me: failed program was:" >&5 | |
26572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26573 | ||
26574 | ||
26575 | ||
26576 | fi | |
ac1cb8d3 VS |
26577 | rm -f conftest.err conftest.$ac_objext \ |
26578 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26579 | |
26580 | LIBS="$save_LIBS" | |
26581 | CFLAGS=$save_CFLAGS | |
26582 | fi | |
26583 | done | |
26584 | fi | |
26585 | done | |
26586 | ||
26587 | if test "$libs_found" = "0"; then | |
26588 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26589 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26590 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26591 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26592 | { (exit 1); exit 1; }; } | |
26593 | fi | |
26594 | ||
26595 | save_CFLAGS=$CFLAGS | |
26596 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26597 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26598 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26599 | cat >conftest.$ac_ext <<_ACEOF | |
26600 | /* confdefs.h. */ | |
26601 | _ACEOF | |
26602 | cat confdefs.h >>conftest.$ac_ext | |
26603 | cat >>conftest.$ac_ext <<_ACEOF | |
26604 | /* end confdefs.h. */ | |
26605 | ||
26606 | #include <Xm/Xm.h> | |
26607 | ||
26608 | int | |
26609 | main () | |
26610 | { | |
26611 | ||
26612 | #if XmVersion < 2000 | |
26613 | #error "Not Motif 2" | |
26614 | #endif | |
26615 | ||
26616 | ; | |
26617 | return 0; | |
26618 | } | |
26619 | _ACEOF | |
26620 | rm -f conftest.$ac_objext | |
26621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26623 | ac_status=$? |
ac1cb8d3 VS |
26624 | grep -v '^ *+' conftest.er1 >conftest.err |
26625 | rm -f conftest.er1 | |
26626 | cat conftest.err >&5 | |
a848cd7e SC |
26627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26628 | (exit $ac_status); } && | |
04840eaa VS |
26629 | { ac_try='test -z "$ac_c_werror_flag" |
26630 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26632 | (eval $ac_try) 2>&5 | |
26633 | ac_status=$? | |
26634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26635 | (exit $ac_status); }; } && | |
26636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26638 | (eval $ac_try) 2>&5 | |
26639 | ac_status=$? | |
26640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26641 | (exit $ac_status); }; }; then | |
26642 | ||
26643 | cat >>confdefs.h <<\_ACEOF | |
26644 | #define __WXMOTIF20__ 1 | |
26645 | _ACEOF | |
26646 | ||
26647 | echo "$as_me:$LINENO: result: found" >&5 | |
26648 | echo "${ECHO_T}found" >&6 | |
26649 | ||
26650 | else | |
26651 | echo "$as_me: failed program was:" >&5 | |
26652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26653 | ||
26654 | ||
26655 | cat >>confdefs.h <<\_ACEOF | |
26656 | #define __WXMOTIF20__ 0 | |
26657 | _ACEOF | |
26658 | ||
26659 | echo "$as_me:$LINENO: result: not found" >&5 | |
26660 | echo "${ECHO_T}not found" >&6 | |
26661 | ||
26662 | fi | |
ac1cb8d3 | 26663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26664 | CFLAGS=$save_CFLAGS |
26665 | ||
26666 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26667 | TOOLKIT=MOTIF |
26668 | GUIDIST=MOTIF_DIST | |
26669 | fi | |
26670 | ||
74b84332 | 26671 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26672 | if test "$wxUSE_LIBXPM" = "sys"; then |
26673 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26674 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26675 | ||
26676 | ac_find_libraries= | |
26677 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26678 | do | |
26679 | for ac_extension in a so sl dylib; do | |
26680 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26681 | ac_find_libraries=$ac_dir | |
26682 | break 2 | |
26683 | fi | |
26684 | done | |
26685 | done | |
26686 | ||
26687 | if test "$ac_find_libraries" != "" ; then | |
26688 | ||
26689 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26690 | result=$? | |
26691 | if test $result = 0; then | |
26692 | ac_path_to_link="" | |
26693 | else | |
26694 | ac_path_to_link=" -L$ac_find_libraries" | |
26695 | fi | |
26696 | ||
26697 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26698 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26699 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26700 | ||
26701 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26702 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26703 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26705 | else | |
26706 | ||
26707 | save_CFLAGS=$CFLAGS | |
26708 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26709 | ||
26710 | cat >conftest.$ac_ext <<_ACEOF | |
26711 | /* confdefs.h. */ | |
26712 | _ACEOF | |
26713 | cat confdefs.h >>conftest.$ac_ext | |
26714 | cat >>conftest.$ac_ext <<_ACEOF | |
26715 | /* end confdefs.h. */ | |
26716 | ||
26717 | #include <X11/xpm.h> | |
26718 | ||
26719 | int | |
26720 | main () | |
26721 | { | |
26722 | ||
26723 | int version; | |
26724 | version = XpmLibraryVersion(); | |
26725 | ||
26726 | ; | |
26727 | return 0; | |
26728 | } | |
26729 | _ACEOF | |
26730 | rm -f conftest.$ac_objext | |
26731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26733 | ac_status=$? |
ac1cb8d3 VS |
26734 | grep -v '^ *+' conftest.er1 >conftest.err |
26735 | rm -f conftest.er1 | |
26736 | cat conftest.err >&5 | |
a848cd7e SC |
26737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26738 | (exit $ac_status); } && | |
04840eaa VS |
26739 | { ac_try='test -z "$ac_c_werror_flag" |
26740 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26742 | (eval $ac_try) 2>&5 | |
26743 | ac_status=$? | |
26744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26745 | (exit $ac_status); }; } && | |
26746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26748 | (eval $ac_try) 2>&5 | |
26749 | ac_status=$? | |
26750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26751 | (exit $ac_status); }; }; then | |
26752 | wx_cv_x11_xpm_h=yes | |
26753 | else | |
26754 | echo "$as_me: failed program was:" >&5 | |
26755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26756 | ||
26757 | wx_cv_x11_xpm_h=no | |
26758 | ||
26759 | fi | |
ac1cb8d3 | 26760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26761 | |
26762 | CFLAGS=$save_CFLAGS | |
26763 | ||
26764 | ||
26765 | fi | |
26766 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26767 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26768 | ||
26769 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26770 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26771 | cat >>confdefs.h <<\_ACEOF | |
26772 | #define wxHAVE_LIB_XPM 1 | |
26773 | _ACEOF | |
26774 | ||
26775 | else | |
26776 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26777 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26778 | fi | |
26779 | fi | |
26780 | ||
26781 | fi | |
26782 | ||
26783 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26784 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26785 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26787 | else | |
26788 | ac_check_lib_save_LIBS=$LIBS | |
26789 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26790 | cat >conftest.$ac_ext <<_ACEOF | |
26791 | /* confdefs.h. */ | |
26792 | _ACEOF | |
26793 | cat confdefs.h >>conftest.$ac_ext | |
26794 | cat >>conftest.$ac_ext <<_ACEOF | |
26795 | /* end confdefs.h. */ | |
26796 | ||
26797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26798 | #ifdef __cplusplus | |
26799 | extern "C" | |
26800 | #endif | |
26801 | /* We use char because int might match the return type of a gcc2 | |
26802 | builtin and then its argument prototype would still apply. */ | |
26803 | char XShapeQueryExtension (); | |
26804 | int | |
26805 | main () | |
26806 | { | |
26807 | XShapeQueryExtension (); | |
26808 | ; | |
26809 | return 0; | |
26810 | } | |
26811 | _ACEOF | |
26812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26814 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26815 | ac_status=$? |
ac1cb8d3 VS |
26816 | grep -v '^ *+' conftest.er1 >conftest.err |
26817 | rm -f conftest.er1 | |
26818 | cat conftest.err >&5 | |
a848cd7e SC |
26819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26820 | (exit $ac_status); } && | |
04840eaa VS |
26821 | { ac_try='test -z "$ac_c_werror_flag" |
26822 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26824 | (eval $ac_try) 2>&5 | |
26825 | ac_status=$? | |
26826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26827 | (exit $ac_status); }; } && | |
26828 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26830 | (eval $ac_try) 2>&5 | |
26831 | ac_status=$? | |
26832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26833 | (exit $ac_status); }; }; then | |
26834 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26835 | else | |
26836 | echo "$as_me: failed program was:" >&5 | |
26837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26838 | ||
26839 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26840 | fi | |
ac1cb8d3 VS |
26841 | rm -f conftest.err conftest.$ac_objext \ |
26842 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26843 | LIBS=$ac_check_lib_save_LIBS |
26844 | fi | |
26845 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26846 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26847 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26848 | ||
26849 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26850 | wxHAVE_XEXT_LIB=1 | |
26851 | ||
26852 | fi | |
26853 | ||
26854 | ||
26855 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26856 | save_CFLAGS="$CFLAGS" | |
26857 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26858 | ||
26859 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26860 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26861 | cat >conftest.$ac_ext <<_ACEOF | |
26862 | /* confdefs.h. */ | |
26863 | _ACEOF | |
26864 | cat confdefs.h >>conftest.$ac_ext | |
26865 | cat >>conftest.$ac_ext <<_ACEOF | |
26866 | /* end confdefs.h. */ | |
26867 | ||
26868 | #include <X11/Xlib.h> | |
26869 | #include <X11/extensions/shape.h> | |
26870 | ||
26871 | int | |
26872 | main () | |
26873 | { | |
26874 | ||
26875 | int dummy1, dummy2; | |
26876 | XShapeQueryExtension((Display*)NULL, | |
26877 | (int*)NULL, (int*)NULL); | |
26878 | ||
26879 | ; | |
26880 | return 0; | |
26881 | } | |
26882 | _ACEOF | |
26883 | rm -f conftest.$ac_objext | |
26884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26885 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26886 | ac_status=$? |
ac1cb8d3 VS |
26887 | grep -v '^ *+' conftest.er1 >conftest.err |
26888 | rm -f conftest.er1 | |
26889 | cat conftest.err >&5 | |
a848cd7e SC |
26890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26891 | (exit $ac_status); } && | |
04840eaa VS |
26892 | { ac_try='test -z "$ac_c_werror_flag" |
26893 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26895 | (eval $ac_try) 2>&5 | |
26896 | ac_status=$? | |
26897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26898 | (exit $ac_status); }; } && | |
26899 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26901 | (eval $ac_try) 2>&5 | |
26902 | ac_status=$? | |
26903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26904 | (exit $ac_status); }; }; then | |
26905 | ||
26906 | cat >>confdefs.h <<\_ACEOF | |
26907 | #define HAVE_XSHAPE 1 | |
26908 | _ACEOF | |
26909 | ||
26910 | echo "$as_me:$LINENO: result: found" >&5 | |
26911 | echo "${ECHO_T}found" >&6 | |
26912 | ||
26913 | else | |
26914 | echo "$as_me: failed program was:" >&5 | |
26915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26916 | ||
26917 | ||
26918 | echo "$as_me:$LINENO: result: not found" >&5 | |
26919 | echo "${ECHO_T}not found" >&6 | |
26920 | ||
26921 | fi | |
ac1cb8d3 | 26922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26923 | CFLAGS="$save_CFLAGS" |
26924 | ||
26925 | fi | |
26926 | fi | |
26927 | ||
26928 | if test "$wxUSE_MAC" = 1; then | |
26929 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26930 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26931 | if test "$GCC" = yes; then | |
26932 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26933 | echo "${ECHO_T}gcc" >&6 | |
26934 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26935 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26936 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26937 | echo "${ECHO_T}xlc" >&6 | |
26938 | CPPFLAGS_PASCAL="-qmacpstr" | |
26939 | else | |
26940 | echo "$as_me:$LINENO: result: none" >&5 | |
26941 | echo "${ECHO_T}none" >&6 | |
26942 | fi | |
26943 | ||
1e9e8aba DE |
26944 | if test "x$wxUSE_UNIX" = "xyes"; then |
26945 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26946 | else | |
26947 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
26948 | fi | |
a848cd7e | 26949 | |
a848cd7e SC |
26950 | TOOLKIT=MAC |
26951 | GUIDIST=MACX_DIST | |
dd21ced8 | 26952 | WXBASEPORT="_carbon" |
a848cd7e SC |
26953 | fi |
26954 | ||
26955 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26956 | TOOLKIT=COCOA |
26957 | GUIDIST=COCOA_DIST | |
26958 | fi | |
26959 | ||
26960 | if test "$wxUSE_PM" = 1; then | |
26961 | TOOLKIT=PM | |
de59c161 RD |
26962 | GUIDIST=PM_DIST |
26963 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26964 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26965 | if test "${wx_cv_spbcdata+set}" = set; then | |
26966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26967 | else | |
26968 | ||
26969 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26970 | /* confdefs.h. */ |
26971 | _ACEOF | |
26972 | cat confdefs.h >>conftest.$ac_ext | |
26973 | cat >>conftest.$ac_ext <<_ACEOF | |
26974 | /* end confdefs.h. */ | |
26975 | ||
26976 | #define INCL_PM | |
26977 | #include <os2.h> | |
26978 | ||
26979 | int | |
26980 | main () | |
26981 | { | |
26982 | ||
26983 | SPBCDATA test; | |
26984 | ||
26985 | ; | |
26986 | return 0; | |
26987 | } | |
26988 | _ACEOF | |
26989 | rm -f conftest.$ac_objext | |
26990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26991 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26992 | ac_status=$? |
ac1cb8d3 VS |
26993 | grep -v '^ *+' conftest.er1 >conftest.err |
26994 | rm -f conftest.er1 | |
26995 | cat conftest.err >&5 | |
de59c161 RD |
26996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26997 | (exit $ac_status); } && | |
04840eaa VS |
26998 | { ac_try='test -z "$ac_c_werror_flag" |
26999 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27001 | (eval $ac_try) 2>&5 | |
27002 | ac_status=$? | |
27003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27004 | (exit $ac_status); }; } && | |
27005 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
27006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27007 | (eval $ac_try) 2>&5 | |
27008 | ac_status=$? | |
27009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27010 | (exit $ac_status); }; }; then | |
27011 | wx_cv_spbcdata=yes | |
27012 | else | |
27013 | echo "$as_me: failed program was:" >&5 | |
27014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27015 | ||
27016 | wx_cv_spbcdata=no | |
27017 | ||
27018 | fi | |
ac1cb8d3 | 27019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
27020 | |
27021 | ||
27022 | fi | |
27023 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
27024 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
27025 | ||
27026 | if test $wx_cv_spbcdata = "yes"; then | |
27027 | cat >>confdefs.h <<\_ACEOF | |
27028 | #define HAVE_SPBCDATA 1 | |
27029 | _ACEOF | |
27030 | ||
27031 | fi | |
a848cd7e SC |
27032 | fi |
27033 | ||
27034 | if test "$TOOLKIT" = "PM" ; then | |
27035 | TOOLKIT_DIR="os2" | |
27036 | else | |
27037 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
27038 | fi | |
27039 | ||
a848cd7e | 27040 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
27041 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
27042 | WIDGET_SET=univ | |
a848cd7e SC |
27043 | fi |
27044 | ||
27045 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
27046 | DISTDIR="wx\$(TOOLKIT)" | |
27047 | else | |
27048 | USE_GUI=0 | |
27049 | ||
27050 | TOOLKIT_DIR="base" | |
27051 | ||
27052 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 27053 | TOOLKIT="MSW" |
a848cd7e SC |
27054 | fi |
27055 | ||
a848cd7e SC |
27056 | GUIDIST="BASE_DIST" |
27057 | DISTDIR="wxBase" | |
27058 | fi | |
27059 | ||
27060 | ||
27061 | ||
27062 | ||
27063 | IODBC_C_SRC="" | |
27064 | ||
27065 | ||
27066 | if test "$TOOLKIT" != "MSW" ; then | |
27067 | ||
27068 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
27069 | ||
27070 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27071 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27072 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27073 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27075 | fi | |
27076 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27077 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27078 | else | |
27079 | # Is the header compilable? | |
27080 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
27081 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
27082 | cat >conftest.$ac_ext <<_ACEOF | |
27083 | /* confdefs.h. */ | |
27084 | _ACEOF | |
27085 | cat confdefs.h >>conftest.$ac_ext | |
27086 | cat >>conftest.$ac_ext <<_ACEOF | |
27087 | /* end confdefs.h. */ | |
27088 | $ac_includes_default | |
27089 | #include <sql.h> | |
27090 | _ACEOF | |
27091 | rm -f conftest.$ac_objext | |
27092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27093 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27094 | ac_status=$? |
ac1cb8d3 VS |
27095 | grep -v '^ *+' conftest.er1 >conftest.err |
27096 | rm -f conftest.er1 | |
27097 | cat conftest.err >&5 | |
a848cd7e SC |
27098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27099 | (exit $ac_status); } && | |
04840eaa VS |
27100 | { ac_try='test -z "$ac_c_werror_flag" |
27101 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27103 | (eval $ac_try) 2>&5 | |
27104 | ac_status=$? | |
27105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27106 | (exit $ac_status); }; } && | |
27107 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27109 | (eval $ac_try) 2>&5 | |
27110 | ac_status=$? | |
27111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27112 | (exit $ac_status); }; }; then | |
27113 | ac_header_compiler=yes | |
27114 | else | |
27115 | echo "$as_me: failed program was:" >&5 | |
27116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27117 | ||
27118 | ac_header_compiler=no | |
27119 | fi | |
ac1cb8d3 | 27120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27122 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27123 | ||
27124 | # Is the header present? | |
27125 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
27126 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
27127 | cat >conftest.$ac_ext <<_ACEOF | |
27128 | /* confdefs.h. */ | |
27129 | _ACEOF | |
27130 | cat confdefs.h >>conftest.$ac_ext | |
27131 | cat >>conftest.$ac_ext <<_ACEOF | |
27132 | /* end confdefs.h. */ | |
27133 | #include <sql.h> | |
27134 | _ACEOF | |
27135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27137 | ac_status=$? | |
27138 | grep -v '^ *+' conftest.er1 >conftest.err | |
27139 | rm -f conftest.er1 | |
27140 | cat conftest.err >&5 | |
27141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27142 | (exit $ac_status); } >/dev/null; then | |
27143 | if test -s conftest.err; then | |
27144 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27146 | else |
27147 | ac_cpp_err= | |
27148 | fi | |
27149 | else | |
27150 | ac_cpp_err=yes | |
27151 | fi | |
27152 | if test -z "$ac_cpp_err"; then | |
27153 | ac_header_preproc=yes | |
27154 | else | |
27155 | echo "$as_me: failed program was:" >&5 | |
27156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27157 | ||
27158 | ac_header_preproc=no | |
27159 | fi | |
27160 | rm -f conftest.err conftest.$ac_ext | |
27161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27162 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27163 | ||
27164 | # So? What about this header? | |
ac1cb8d3 VS |
27165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27166 | yes:no: ) | |
a848cd7e SC |
27167 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27168 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27169 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
27170 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
27171 | ac_header_preproc=yes | |
a848cd7e | 27172 | ;; |
ac1cb8d3 | 27173 | no:yes:* ) |
a848cd7e SC |
27174 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
27175 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27176 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
27177 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
27178 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
27179 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
27180 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27181 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27182 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
27183 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27184 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
27185 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27186 | ( |
27187 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27188 | ## ----------------------------------------- ## |
27189 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27190 | ## ----------------------------------------- ## | |
a848cd7e SC |
27191 | _ASBOX |
27192 | ) | | |
27193 | sed "s/^/$as_me: WARNING: /" >&2 | |
27194 | ;; | |
27195 | esac | |
27196 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27197 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27198 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27200 | else | |
27201 | ac_cv_header_sql_h=$ac_header_preproc | |
27202 | fi | |
27203 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27204 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27205 | ||
27206 | fi | |
27207 | if test $ac_cv_header_sql_h = yes; then | |
27208 | found_sql_h=1 | |
27209 | fi | |
27210 | ||
27211 | ||
27212 | if test "x$found_sql_h" = "x1" ; then | |
27213 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
27214 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27215 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
27216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27217 | else | |
27218 | ac_check_lib_save_LIBS=$LIBS | |
27219 | LIBS="-liodbc $LIBS" | |
27220 | cat >conftest.$ac_ext <<_ACEOF | |
27221 | /* confdefs.h. */ | |
27222 | _ACEOF | |
27223 | cat confdefs.h >>conftest.$ac_ext | |
27224 | cat >>conftest.$ac_ext <<_ACEOF | |
27225 | /* end confdefs.h. */ | |
27226 | ||
27227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27228 | #ifdef __cplusplus | |
27229 | extern "C" | |
27230 | #endif | |
27231 | /* We use char because int might match the return type of a gcc2 | |
27232 | builtin and then its argument prototype would still apply. */ | |
27233 | char SQLAllocEnv (); | |
27234 | int | |
27235 | main () | |
27236 | { | |
27237 | SQLAllocEnv (); | |
27238 | ; | |
27239 | return 0; | |
27240 | } | |
27241 | _ACEOF | |
27242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27244 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27245 | ac_status=$? |
ac1cb8d3 VS |
27246 | grep -v '^ *+' conftest.er1 >conftest.err |
27247 | rm -f conftest.er1 | |
27248 | cat conftest.err >&5 | |
a848cd7e SC |
27249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27250 | (exit $ac_status); } && | |
04840eaa VS |
27251 | { ac_try='test -z "$ac_c_werror_flag" |
27252 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27254 | (eval $ac_try) 2>&5 | |
27255 | ac_status=$? | |
27256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27257 | (exit $ac_status); }; } && | |
27258 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27260 | (eval $ac_try) 2>&5 | |
27261 | ac_status=$? | |
27262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27263 | (exit $ac_status); }; }; then | |
27264 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
27265 | else | |
27266 | echo "$as_me: failed program was:" >&5 | |
27267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27268 | ||
27269 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
27270 | fi | |
ac1cb8d3 VS |
27271 | rm -f conftest.err conftest.$ac_objext \ |
27272 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27273 | LIBS=$ac_check_lib_save_LIBS |
27274 | fi | |
27275 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
27276 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
27277 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
27278 | ODBC_LINK=" -liodbc" | |
27279 | else | |
27280 | ||
27281 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
27282 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
27283 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
27284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27285 | else | |
27286 | ac_check_lib_save_LIBS=$LIBS | |
27287 | LIBS="-lunixodbc $LIBS" | |
27288 | cat >conftest.$ac_ext <<_ACEOF | |
27289 | /* confdefs.h. */ | |
27290 | _ACEOF | |
27291 | cat confdefs.h >>conftest.$ac_ext | |
27292 | cat >>conftest.$ac_ext <<_ACEOF | |
27293 | /* end confdefs.h. */ | |
27294 | ||
27295 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27296 | #ifdef __cplusplus | |
27297 | extern "C" | |
27298 | #endif | |
27299 | /* We use char because int might match the return type of a gcc2 | |
27300 | builtin and then its argument prototype would still apply. */ | |
27301 | char SQLAllocEnv (); | |
27302 | int | |
27303 | main () | |
27304 | { | |
27305 | SQLAllocEnv (); | |
27306 | ; | |
27307 | return 0; | |
27308 | } | |
27309 | _ACEOF | |
27310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27312 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27313 | ac_status=$? |
ac1cb8d3 VS |
27314 | grep -v '^ *+' conftest.er1 >conftest.err |
27315 | rm -f conftest.er1 | |
27316 | cat conftest.err >&5 | |
a848cd7e SC |
27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27318 | (exit $ac_status); } && | |
04840eaa VS |
27319 | { ac_try='test -z "$ac_c_werror_flag" |
27320 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27322 | (eval $ac_try) 2>&5 | |
27323 | ac_status=$? | |
27324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27325 | (exit $ac_status); }; } && | |
27326 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27328 | (eval $ac_try) 2>&5 | |
27329 | ac_status=$? | |
27330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27331 | (exit $ac_status); }; }; then | |
27332 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
27333 | else | |
27334 | echo "$as_me: failed program was:" >&5 | |
27335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27336 | ||
27337 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
27338 | fi | |
ac1cb8d3 VS |
27339 | rm -f conftest.err conftest.$ac_objext \ |
27340 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27341 | LIBS=$ac_check_lib_save_LIBS |
27342 | fi | |
27343 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
27344 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27345 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
27346 | ODBC_LINK=" -lunixodbc" | |
27347 | else | |
27348 | ||
27349 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
27350 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27351 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
27352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27353 | else | |
27354 | ac_check_lib_save_LIBS=$LIBS | |
27355 | LIBS="-lodbc $LIBS" | |
27356 | cat >conftest.$ac_ext <<_ACEOF | |
27357 | /* confdefs.h. */ | |
27358 | _ACEOF | |
27359 | cat confdefs.h >>conftest.$ac_ext | |
27360 | cat >>conftest.$ac_ext <<_ACEOF | |
27361 | /* end confdefs.h. */ | |
27362 | ||
27363 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27364 | #ifdef __cplusplus | |
27365 | extern "C" | |
27366 | #endif | |
27367 | /* We use char because int might match the return type of a gcc2 | |
27368 | builtin and then its argument prototype would still apply. */ | |
27369 | char SQLAllocEnv (); | |
27370 | int | |
27371 | main () | |
27372 | { | |
27373 | SQLAllocEnv (); | |
27374 | ; | |
27375 | return 0; | |
27376 | } | |
27377 | _ACEOF | |
27378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27380 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27381 | ac_status=$? |
ac1cb8d3 VS |
27382 | grep -v '^ *+' conftest.er1 >conftest.err |
27383 | rm -f conftest.er1 | |
27384 | cat conftest.err >&5 | |
a848cd7e SC |
27385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27386 | (exit $ac_status); } && | |
04840eaa VS |
27387 | { ac_try='test -z "$ac_c_werror_flag" |
27388 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27390 | (eval $ac_try) 2>&5 | |
27391 | ac_status=$? | |
27392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27393 | (exit $ac_status); }; } && | |
27394 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27396 | (eval $ac_try) 2>&5 | |
27397 | ac_status=$? | |
27398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27399 | (exit $ac_status); }; }; then | |
27400 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
27401 | else | |
27402 | echo "$as_me: failed program was:" >&5 | |
27403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27404 | ||
27405 | ac_cv_lib_odbc_SQLAllocEnv=no | |
27406 | fi | |
ac1cb8d3 VS |
27407 | rm -f conftest.err conftest.$ac_objext \ |
27408 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27409 | LIBS=$ac_check_lib_save_LIBS |
27410 | fi | |
27411 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
27412 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27413 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
27414 | ODBC_LINK=" -lodbc" | |
27415 | fi | |
27416 | ||
27417 | ||
27418 | fi | |
27419 | ||
27420 | ||
27421 | fi | |
27422 | ||
27423 | fi | |
27424 | if test "x$ODBC_LINK" = "x" ; then | |
27425 | if test "$wxUSE_ODBC" = "sys" ; then | |
27426 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27427 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27428 | { (exit 1); exit 1; }; } | |
27429 | else | |
27430 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27431 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27432 | wxUSE_ODBC=builtin | |
27433 | fi | |
27434 | else | |
27435 | wxUSE_ODBC=sys | |
27436 | fi | |
27437 | fi | |
27438 | if test "$wxUSE_ODBC" != "no" ; then | |
27439 | cat >>confdefs.h <<\_ACEOF | |
27440 | #define wxUSE_ODBC 1 | |
27441 | _ACEOF | |
27442 | ||
27443 | if test "$wxUSE_ODBC" = "builtin" ; then | |
27444 | cat >>confdefs.h <<\_ACEOF | |
27445 | #define wxUSE_BUILTIN_IODBC 1 | |
27446 | _ACEOF | |
27447 | ||
27448 | fi | |
27449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
27450 | ||
27451 | WXODBCFLAG="-D_IODBC_" | |
27452 | fi | |
27453 | fi | |
27454 | ||
a848cd7e | 27455 | |
01cb68df | 27456 | |
a848cd7e | 27457 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 27458 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
27459 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
27460 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27461 | ||
27462 | ac_find_libraries= | |
27463 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27464 | do | |
27465 | for ac_extension in a so sl dylib; do | |
27466 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27467 | ac_find_libraries=$ac_dir | |
27468 | break 2 | |
27469 | fi | |
27470 | done | |
27471 | done | |
27472 | ||
27473 | if test "$ac_find_libraries" != "" ; then | |
27474 | ||
27475 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27476 | result=$? | |
27477 | if test $result = 0; then | |
27478 | ac_path_to_link="" | |
27479 | else | |
27480 | ac_path_to_link=" -L$ac_find_libraries" | |
27481 | fi | |
27482 | ||
27483 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27484 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27485 | fi | |
27486 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27487 | echo "$as_me:$LINENO: result: yes" >&5 | |
27488 | echo "${ECHO_T}yes" >&6 | |
27489 | ||
27490 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27491 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27492 | ||
27493 | ac_find_libraries= | |
27494 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27495 | do | |
27496 | for ac_extension in a so sl dylib; do | |
27497 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27498 | ac_find_libraries=$ac_dir | |
27499 | break 2 | |
27500 | fi | |
27501 | done | |
27502 | done | |
27503 | ||
27504 | if test "$ac_find_libraries" != "" ; then | |
27505 | echo "$as_me:$LINENO: result: yes" >&5 | |
27506 | echo "${ECHO_T}yes" >&6 | |
27507 | ||
27508 | for ac_header in X11/extensions/xf86vmode.h | |
27509 | do | |
27510 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27515 | else | |
27516 | cat >conftest.$ac_ext <<_ACEOF | |
27517 | /* confdefs.h. */ | |
27518 | _ACEOF | |
27519 | cat confdefs.h >>conftest.$ac_ext | |
27520 | cat >>conftest.$ac_ext <<_ACEOF | |
27521 | /* end confdefs.h. */ | |
27522 | ||
27523 | #if HAVE_X11_XLIB_H | |
27524 | #include <X11/Xlib.h> | |
27525 | #endif | |
27526 | ||
27527 | ||
27528 | #include <$ac_header> | |
27529 | _ACEOF | |
27530 | rm -f conftest.$ac_objext | |
27531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27532 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27533 | ac_status=$? |
ac1cb8d3 VS |
27534 | grep -v '^ *+' conftest.er1 >conftest.err |
27535 | rm -f conftest.er1 | |
27536 | cat conftest.err >&5 | |
a848cd7e SC |
27537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27538 | (exit $ac_status); } && | |
04840eaa VS |
27539 | { ac_try='test -z "$ac_c_werror_flag" |
27540 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27542 | (eval $ac_try) 2>&5 | |
27543 | ac_status=$? | |
27544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27545 | (exit $ac_status); }; } && | |
27546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27548 | (eval $ac_try) 2>&5 | |
27549 | ac_status=$? | |
27550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27551 | (exit $ac_status); }; }; then | |
27552 | eval "$as_ac_Header=yes" | |
27553 | else | |
27554 | echo "$as_me: failed program was:" >&5 | |
27555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27556 | ||
27557 | eval "$as_ac_Header=no" | |
27558 | fi | |
ac1cb8d3 | 27559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27560 | fi |
27561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27562 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27564 | cat >>confdefs.h <<_ACEOF | |
27565 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27566 | _ACEOF | |
27567 | ||
27568 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27569 | ||
27570 | fi | |
27571 | ||
27572 | done | |
27573 | ||
27574 | else | |
27575 | echo "$as_me:$LINENO: result: no" >&5 | |
27576 | echo "${ECHO_T}no" >&6 | |
27577 | fi | |
27578 | ||
27579 | else | |
27580 | echo "$as_me:$LINENO: result: no" >&5 | |
27581 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27582 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27583 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27584 | wxUSE_DISPLAY="no" |
27585 | fi | |
01cb68df RG |
27586 | elif test "$wxUSE_MSW" = 1; then |
27587 | ||
27588 | ||
27589 | for ac_header in multimon.h ddraw.h | |
27590 | do | |
27591 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 27592 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
27593 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
27594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 27596 | else |
5294a27e | 27597 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
27598 | /* confdefs.h. */ |
27599 | _ACEOF | |
27600 | cat confdefs.h >>conftest.$ac_ext | |
27601 | cat >>conftest.$ac_ext <<_ACEOF | |
27602 | /* end confdefs.h. */ | |
5294a27e VZ |
27603 | #include <windows.h> |
27604 | ||
01cb68df RG |
27605 | #include <$ac_header> |
27606 | _ACEOF | |
27607 | rm -f conftest.$ac_objext | |
27608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27609 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27610 | ac_status=$? |
ac1cb8d3 VS |
27611 | grep -v '^ *+' conftest.er1 >conftest.err |
27612 | rm -f conftest.er1 | |
27613 | cat conftest.err >&5 | |
01cb68df RG |
27614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27615 | (exit $ac_status); } && | |
04840eaa VS |
27616 | { ac_try='test -z "$ac_c_werror_flag" |
27617 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27619 | (eval $ac_try) 2>&5 | |
27620 | ac_status=$? | |
27621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27622 | (exit $ac_status); }; } && | |
27623 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27625 | (eval $ac_try) 2>&5 | |
27626 | ac_status=$? | |
27627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27628 | (exit $ac_status); }; }; then | |
5294a27e | 27629 | eval "$as_ac_Header=yes" |
01cb68df RG |
27630 | else |
27631 | echo "$as_me: failed program was:" >&5 | |
27632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27633 | ||
5294a27e | 27634 | eval "$as_ac_Header=no" |
01cb68df | 27635 | fi |
ac1cb8d3 | 27636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27637 | fi |
27638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
27640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
27641 | cat >>confdefs.h <<_ACEOF | |
27642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27643 | _ACEOF | |
27644 | ||
27645 | else | |
27646 | ||
5294a27e VZ |
27647 | wxUSE_DISPLAY="no" |
27648 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 27649 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
27650 | |
27651 | fi | |
27652 | ||
27653 | done | |
27654 | ||
a848cd7e SC |
27655 | fi |
27656 | fi | |
27657 | ||
27658 | ||
3b57de8b RL |
27659 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
27660 | if test "$wxUSE_MSW" = 1; then | |
27661 | wxUSE_DIRECTSHOW="yes" | |
27662 | ||
27663 | for ac_header in dshow.h | |
27664 | do | |
27665 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 27666 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3b57de8b RL |
27667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
27668 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3b57de8b | 27670 | else |
5294a27e | 27671 | cat >conftest.$ac_ext <<_ACEOF |
3b57de8b RL |
27672 | /* confdefs.h. */ |
27673 | _ACEOF | |
27674 | cat confdefs.h >>conftest.$ac_ext | |
27675 | cat >>conftest.$ac_ext <<_ACEOF | |
27676 | /* end confdefs.h. */ | |
5294a27e VZ |
27677 | #include <windows.h> |
27678 | ||
3b57de8b RL |
27679 | #include <$ac_header> |
27680 | _ACEOF | |
27681 | rm -f conftest.$ac_objext | |
27682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27683 | (eval $ac_compile) 2>conftest.er1 | |
27684 | ac_status=$? | |
27685 | grep -v '^ *+' conftest.er1 >conftest.err | |
27686 | rm -f conftest.er1 | |
27687 | cat conftest.err >&5 | |
27688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27689 | (exit $ac_status); } && | |
04840eaa VS |
27690 | { ac_try='test -z "$ac_c_werror_flag" |
27691 | || test ! -s conftest.err' | |
3b57de8b RL |
27692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27693 | (eval $ac_try) 2>&5 | |
27694 | ac_status=$? | |
27695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27696 | (exit $ac_status); }; } && | |
27697 | { ac_try='test -s conftest.$ac_objext' | |
27698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27699 | (eval $ac_try) 2>&5 | |
27700 | ac_status=$? | |
27701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27702 | (exit $ac_status); }; }; then | |
5294a27e | 27703 | eval "$as_ac_Header=yes" |
3b57de8b RL |
27704 | else |
27705 | echo "$as_me: failed program was:" >&5 | |
27706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27707 | ||
5294a27e | 27708 | eval "$as_ac_Header=no" |
3b57de8b RL |
27709 | fi |
27710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3b57de8b RL |
27711 | fi |
27712 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27713 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3b57de8b RL |
27714 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
27715 | cat >>confdefs.h <<_ACEOF | |
27716 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27717 | _ACEOF | |
27718 | ||
27719 | else | |
27720 | ||
5294a27e VZ |
27721 | wxUSE_DIRECTSHOW="no" |
27722 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
3b57de8b RL |
27723 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} |
27724 | ||
27725 | fi | |
27726 | ||
27727 | done | |
27728 | ||
27729 | ||
27730 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
5294a27e | 27731 | cat >>confdefs.h <<\_ACEOF |
3b57de8b RL |
27732 | #define wxUSE_DIRECTSHOW 1 |
27733 | _ACEOF | |
27734 | ||
5294a27e | 27735 | LIBS="$LIBS -lstrmiids" |
a98bf0c0 | 27736 | fi |
3b57de8b | 27737 | fi |
7e4a1c28 | 27738 | |
fa9ad408 | 27739 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" |
7e4a1c28 RN |
27740 | cat >>confdefs.h <<\_ACEOF |
27741 | #define wxUSE_MEDIACTRL 1 | |
27742 | _ACEOF | |
27743 | ||
3b57de8b RL |
27744 | fi |
27745 | ||
27746 | ||
a848cd7e SC |
27747 | USE_OPENGL=0 |
27748 | if test "$wxUSE_OPENGL" = "yes"; then | |
27749 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27750 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27751 | elif test "$wxUSE_MSW" = 1; then | |
27752 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27753 | else | |
27754 | ||
27755 | ||
27756 | ac_find_includes= | |
27757 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27758 | do | |
27759 | if test -f "$ac_dir/GL/gl.h"; then | |
27760 | ac_find_includes=$ac_dir | |
27761 | break | |
27762 | fi | |
27763 | done | |
27764 | ||
27765 | if test "$ac_find_includes" != "" ; then | |
27766 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27767 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27768 | ||
27769 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27770 | ac_path_to_include="" | |
27771 | else | |
27772 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27773 | result=$? | |
27774 | if test $result = 0; then | |
27775 | ac_path_to_include="" | |
27776 | else | |
27777 | ac_path_to_include=" -I$ac_find_includes" | |
27778 | fi | |
27779 | fi | |
27780 | ||
27781 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27782 | fi | |
27783 | ||
27784 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27785 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27786 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27787 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27789 | fi | |
27790 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27791 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27792 | else | |
27793 | # Is the header compilable? | |
27794 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27795 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27796 | cat >conftest.$ac_ext <<_ACEOF | |
27797 | /* confdefs.h. */ | |
27798 | _ACEOF | |
27799 | cat confdefs.h >>conftest.$ac_ext | |
27800 | cat >>conftest.$ac_ext <<_ACEOF | |
27801 | /* end confdefs.h. */ | |
27802 | $ac_includes_default | |
27803 | #include <GL/gl.h> | |
27804 | _ACEOF | |
27805 | rm -f conftest.$ac_objext | |
27806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27807 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27808 | ac_status=$? |
ac1cb8d3 VS |
27809 | grep -v '^ *+' conftest.er1 >conftest.err |
27810 | rm -f conftest.er1 | |
27811 | cat conftest.err >&5 | |
a848cd7e SC |
27812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27813 | (exit $ac_status); } && | |
04840eaa VS |
27814 | { ac_try='test -z "$ac_c_werror_flag" |
27815 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27817 | (eval $ac_try) 2>&5 | |
27818 | ac_status=$? | |
27819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27820 | (exit $ac_status); }; } && | |
27821 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27823 | (eval $ac_try) 2>&5 | |
27824 | ac_status=$? | |
27825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27826 | (exit $ac_status); }; }; then | |
27827 | ac_header_compiler=yes | |
27828 | else | |
27829 | echo "$as_me: failed program was:" >&5 | |
27830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27831 | ||
27832 | ac_header_compiler=no | |
27833 | fi | |
ac1cb8d3 | 27834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27835 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27836 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27837 | ||
27838 | # Is the header present? | |
27839 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27840 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27841 | cat >conftest.$ac_ext <<_ACEOF | |
27842 | /* confdefs.h. */ | |
27843 | _ACEOF | |
27844 | cat confdefs.h >>conftest.$ac_ext | |
27845 | cat >>conftest.$ac_ext <<_ACEOF | |
27846 | /* end confdefs.h. */ | |
27847 | #include <GL/gl.h> | |
27848 | _ACEOF | |
27849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27851 | ac_status=$? | |
27852 | grep -v '^ *+' conftest.er1 >conftest.err | |
27853 | rm -f conftest.er1 | |
27854 | cat conftest.err >&5 | |
27855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27856 | (exit $ac_status); } >/dev/null; then | |
27857 | if test -s conftest.err; then | |
27858 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27860 | else |
27861 | ac_cpp_err= | |
27862 | fi | |
27863 | else | |
27864 | ac_cpp_err=yes | |
27865 | fi | |
27866 | if test -z "$ac_cpp_err"; then | |
27867 | ac_header_preproc=yes | |
27868 | else | |
27869 | echo "$as_me: failed program was:" >&5 | |
27870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27871 | ||
27872 | ac_header_preproc=no | |
27873 | fi | |
27874 | rm -f conftest.err conftest.$ac_ext | |
27875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27876 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27877 | ||
27878 | # So? What about this header? | |
ac1cb8d3 VS |
27879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27880 | yes:no: ) | |
a848cd7e SC |
27881 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27882 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27883 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27884 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27885 | ac_header_preproc=yes | |
a848cd7e | 27886 | ;; |
ac1cb8d3 | 27887 | no:yes:* ) |
a848cd7e SC |
27888 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27889 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27890 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27891 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27892 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27893 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27894 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27895 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27896 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27897 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27898 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27899 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27900 | ( |
27901 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27902 | ## ----------------------------------------- ## |
27903 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27904 | ## ----------------------------------------- ## | |
a848cd7e SC |
27905 | _ASBOX |
27906 | ) | | |
27907 | sed "s/^/$as_me: WARNING: /" >&2 | |
27908 | ;; | |
27909 | esac | |
27910 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27911 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27912 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27914 | else | |
27915 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27916 | fi | |
27917 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27918 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27919 | ||
27920 | fi | |
27921 | if test $ac_cv_header_GL_gl_h = yes; then | |
27922 | ||
27923 | found_gl=0 | |
27924 | ||
27925 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27926 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27927 | ||
27928 | ac_find_libraries= | |
27929 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27930 | do | |
27931 | for ac_extension in a so sl dylib; do | |
27932 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27933 | ac_find_libraries=$ac_dir | |
27934 | break 2 | |
27935 | fi | |
27936 | done | |
27937 | done | |
27938 | ||
27939 | if test "$ac_find_libraries" != "" ; then | |
27940 | ||
27941 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27942 | result=$? | |
27943 | if test $result = 0; then | |
27944 | ac_path_to_link="" | |
27945 | else | |
27946 | ac_path_to_link=" -L$ac_find_libraries" | |
27947 | fi | |
27948 | ||
27949 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27950 | LDFLAGS_GL="$ac_path_to_link" | |
27951 | fi | |
27952 | ||
27953 | ||
27954 | ac_find_libraries= | |
27955 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27956 | do | |
27957 | for ac_extension in a so sl dylib; do | |
27958 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27959 | ac_find_libraries=$ac_dir | |
27960 | break 2 | |
27961 | fi | |
27962 | done | |
27963 | done | |
27964 | ||
27965 | if test "$ac_find_libraries" != "" ; then | |
27966 | ||
27967 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27968 | result=$? | |
27969 | if test $result = 0; then | |
27970 | ac_path_to_link="" | |
27971 | else | |
27972 | ac_path_to_link=" -L$ac_find_libraries" | |
27973 | fi | |
27974 | ||
27975 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27976 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27977 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27978 | fi | |
27979 | ||
27980 | found_gl=1 | |
27981 | OPENGL_LIBS="-lGL -lGLU" | |
27982 | echo "$as_me:$LINENO: result: yes" >&5 | |
27983 | echo "${ECHO_T}yes" >&6 | |
27984 | fi | |
27985 | fi | |
27986 | ||
27987 | if test "$found_gl" != 1; then | |
27988 | echo "$as_me:$LINENO: result: no" >&5 | |
27989 | echo "${ECHO_T}no" >&6 | |
27990 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27991 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27992 | ||
27993 | ac_find_libraries= | |
27994 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27995 | do | |
27996 | for ac_extension in a so sl dylib; do | |
27997 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27998 | ac_find_libraries=$ac_dir | |
27999 | break 2 | |
28000 | fi | |
28001 | done | |
28002 | done | |
28003 | ||
28004 | if test "$ac_find_libraries" != "" ; then | |
28005 | ||
28006 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28007 | result=$? | |
28008 | if test $result = 0; then | |
28009 | ac_path_to_link="" | |
28010 | else | |
28011 | ac_path_to_link=" -L$ac_find_libraries" | |
28012 | fi | |
28013 | ||
28014 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
28015 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
28016 | echo "$as_me:$LINENO: result: yes" >&5 | |
28017 | echo "${ECHO_T}yes" >&6 | |
28018 | else | |
28019 | echo "$as_me:$LINENO: result: no" >&5 | |
28020 | echo "${ECHO_T}no" >&6 | |
28021 | fi | |
28022 | fi | |
28023 | ||
28024 | fi | |
28025 | ||
28026 | ||
28027 | ||
28028 | if test "x$OPENGL_LIBS" = "x"; then | |
28029 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
28030 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
28031 | { (exit 1); exit 1; }; } | |
28032 | fi | |
28033 | fi | |
28034 | ||
28035 | if test "$wxUSE_OPENGL" = "yes"; then | |
28036 | USE_OPENGL=1 | |
28037 | cat >>confdefs.h <<\_ACEOF | |
28038 | #define wxUSE_OPENGL 1 | |
28039 | _ACEOF | |
28040 | ||
28041 | cat >>confdefs.h <<\_ACEOF | |
28042 | #define wxUSE_GLCANVAS 1 | |
28043 | _ACEOF | |
28044 | ||
28045 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
28046 | fi | |
28047 | fi | |
28048 | ||
a848cd7e SC |
28049 | |
28050 | if test -n "$TOOLKIT" ; then | |
28051 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
28052 | fi | |
28053 | ||
a848cd7e SC |
28054 | |
28055 | ||
28056 | if test "$wxUSE_SHARED" = "yes"; then | |
28057 | case "${host}" in | |
28058 | *-pc-msdosdjgpp ) | |
28059 | wxUSE_SHARED=no | |
28060 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
28061 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
28062 | ;; | |
28063 | esac | |
28064 | fi | |
28065 | ||
a848cd7e | 28066 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
28067 | |
28068 | ||
28069 | found_versioning=no | |
28070 | ||
28071 | ||
28072 | if test $found_versioning = no ; then | |
28073 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
28074 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
28075 | if test "${wx_cv_version_script+set}" = set; then | |
28076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28077 | else | |
28078 | ||
28079 | echo "VER_1 { *; };" >conftest.sym | |
28080 | echo "int main() { return 0; }" >conftest.cpp | |
28081 | ||
28082 | if { ac_try=' | |
28083 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28084 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
28085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28086 | (eval $ac_try) 2>&5 | |
28087 | ac_status=$? | |
28088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28089 | (exit $ac_status); }; } ; then | |
28090 | if test -s conftest.stderr ; then | |
28091 | wx_cv_version_script=no | |
28092 | else | |
28093 | wx_cv_version_script=yes | |
28094 | fi | |
28095 | else | |
28096 | wx_cv_version_script=no | |
28097 | fi | |
28098 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
28099 | ||
28100 | fi | |
28101 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
28102 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
28103 | if test $wx_cv_version_script = yes ; then | |
28104 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
28105 | fi | |
28106 | fi | |
28107 | ||
28108 | ||
28109 | case "${host}" in | |
28110 | *-*-linux* | *-*-gnu* ) | |
28111 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28112 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28113 | ;; |
28114 | ||
28115 | *-*-solaris2* ) | |
28116 | if test "$GCC" = yes ; then | |
28117 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
28118 | ||
28119 | saveLdflags="$LDFLAGS" | |
28120 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
28121 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
28122 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
28123 | cat >conftest.$ac_ext <<_ACEOF | |
28124 | /* confdefs.h. */ | |
28125 | _ACEOF | |
28126 | cat confdefs.h >>conftest.$ac_ext | |
28127 | cat >>conftest.$ac_ext <<_ACEOF | |
28128 | /* end confdefs.h. */ | |
28129 | ||
28130 | int | |
28131 | main () | |
28132 | { | |
28133 | ||
28134 | ; | |
28135 | return 0; | |
28136 | } | |
28137 | _ACEOF | |
28138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28140 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28141 | ac_status=$? |
ac1cb8d3 VS |
28142 | grep -v '^ *+' conftest.er1 >conftest.err |
28143 | rm -f conftest.er1 | |
28144 | cat conftest.err >&5 | |
a848cd7e SC |
28145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28146 | (exit $ac_status); } && | |
04840eaa VS |
28147 | { ac_try='test -z "$ac_c_werror_flag" |
28148 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28150 | (eval $ac_try) 2>&5 | |
28151 | ac_status=$? | |
28152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28153 | (exit $ac_status); }; } && | |
28154 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28156 | (eval $ac_try) 2>&5 | |
28157 | ac_status=$? | |
28158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28159 | (exit $ac_status); }; }; then | |
28160 | ||
28161 | echo "$as_me:$LINENO: result: yes" >&5 | |
28162 | echo "${ECHO_T}yes" >&6 | |
28163 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28164 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28165 | |
28166 | else | |
28167 | echo "$as_me: failed program was:" >&5 | |
28168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28169 | ||
28170 | ||
28171 | echo "$as_me:$LINENO: result: no" >&5 | |
28172 | echo "${ECHO_T}no" >&6 | |
28173 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
28174 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
28175 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
28176 | cat >conftest.$ac_ext <<_ACEOF | |
28177 | /* confdefs.h. */ | |
28178 | _ACEOF | |
28179 | cat confdefs.h >>conftest.$ac_ext | |
28180 | cat >>conftest.$ac_ext <<_ACEOF | |
28181 | /* end confdefs.h. */ | |
28182 | ||
28183 | int | |
28184 | main () | |
28185 | { | |
28186 | ||
28187 | ; | |
28188 | return 0; | |
28189 | } | |
28190 | _ACEOF | |
28191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28193 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28194 | ac_status=$? |
ac1cb8d3 VS |
28195 | grep -v '^ *+' conftest.er1 >conftest.err |
28196 | rm -f conftest.er1 | |
28197 | cat conftest.err >&5 | |
a848cd7e SC |
28198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28199 | (exit $ac_status); } && | |
04840eaa VS |
28200 | { ac_try='test -z "$ac_c_werror_flag" |
28201 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28203 | (eval $ac_try) 2>&5 | |
28204 | ac_status=$? | |
28205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28206 | (exit $ac_status); }; } && | |
28207 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28209 | (eval $ac_try) 2>&5 | |
28210 | ac_status=$? | |
28211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28212 | (exit $ac_status); }; }; then | |
28213 | ||
ffa0583f | 28214 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 28215 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
28216 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
28217 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
28218 | ||
a848cd7e SC |
28219 | else |
28220 | echo "$as_me: failed program was:" >&5 | |
28221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28222 | ||
28223 | ||
28224 | echo "$as_me:$LINENO: result: no" >&5 | |
28225 | echo "${ECHO_T}no" >&6 | |
28226 | ||
28227 | fi | |
ac1cb8d3 VS |
28228 | rm -f conftest.err conftest.$ac_objext \ |
28229 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28230 | |
28231 | fi | |
ac1cb8d3 VS |
28232 | rm -f conftest.err conftest.$ac_objext \ |
28233 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28234 | LDFLAGS="$saveLdflags" |
28235 | else | |
a848cd7e | 28236 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 28237 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
28238 | fi |
28239 | ;; | |
28240 | ||
28241 | powerpc-*-darwin* ) | |
28242 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
28243 | cat <<EOF >change-install-names | |
28244 | #!/bin/sh | |
28245 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28246 | inst_cmd="install_name_tool " | |
28247 | for i in \${libnames} ; do | |
28248 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28249 | done | |
28250 | \${inst_cmd} \${3} | |
28251 | EOF | |
28252 | chmod +x change-install-names | |
28253 | ;; | |
28254 | ||
28255 | *-*-cygwin* | *-*-mingw32* ) | |
28256 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
28257 | ;; | |
28258 | ||
28259 | esac | |
ceec2216 | 28260 | |
ffa0583f RL |
28261 | if test $wxUSE_RPATH = "no"; then |
28262 | SAMPLES_RPATH_FLAG='' | |
28263 | SAMPLES_RPATH_POSTLINK='' | |
28264 | WXCONFIG_RPATH='' | |
28265 | fi | |
28266 | ||
28267 | SHARED=1 | |
28268 | ||
28269 | else | |
28270 | ||
ceec2216 RL |
28271 | config_linkage_component="-static" |
28272 | SHARED=0 | |
ffa0583f | 28273 | |
ceec2216 | 28274 | fi |
a848cd7e | 28275 | |
a848cd7e | 28276 | |
ceec2216 RL |
28277 | UNICODE=0 |
28278 | lib_unicode_suffix= | |
28279 | WX_CHARTYPE="ansi" | |
28280 | if test "$wxUSE_UNICODE" = "yes"; then | |
28281 | lib_unicode_suffix=u | |
28282 | WX_CHARTYPE="unicode" | |
28283 | UNICODE=1 | |
a848cd7e SC |
28284 | fi |
28285 | ||
ceec2216 RL |
28286 | lib_debug_suffix= |
28287 | WX_DEBUGTYPE="release" | |
28288 | DEBUG_FLAG=0 | |
28289 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
28290 | lib_debug_suffix=d | |
28291 | WX_DEBUGTYPE="debug" | |
28292 | DEBUG_FLAG=1 | |
28293 | fi | |
a848cd7e | 28294 | |
ceec2216 RL |
28295 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
28296 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 28297 | |
ceec2216 RL |
28298 | DEBUG_INFO=0 |
28299 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
28300 | DEBUG_INFO=1 | |
28301 | fi | |
a848cd7e | 28302 | |
ceec2216 | 28303 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 28304 | |
ceec2216 | 28305 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 28306 | |
ceec2216 | 28307 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 28308 | |
ceec2216 RL |
28309 | if test "$cross_compiling" = "yes"; then |
28310 | HOST_SUFFIX="-$host_alias" | |
28311 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
28312 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
28313 | fi |
28314 | ||
dd21ced8 | 28315 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
28316 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
28317 | ||
28318 | ||
28319 | ||
a848cd7e | 28320 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
28321 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
28322 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 28323 | |
a848cd7e | 28324 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
28325 | |
28326 | # Extract the first word of "Rez", so it can be a program name with args. | |
28327 | set dummy Rez; ac_word=$2 | |
28328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28330 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28332 | else | |
28333 | if test -n "$RESCOMP"; then | |
28334 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28335 | else | |
28336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28337 | for as_dir in $PATH | |
28338 | do | |
28339 | IFS=$as_save_IFS | |
28340 | test -z "$as_dir" && as_dir=. | |
28341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28343 | ac_cv_prog_RESCOMP="Rez" | |
28344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28345 | break 2 | |
28346 | fi | |
28347 | done | |
28348 | done | |
28349 | ||
28350 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
28351 | fi | |
28352 | fi | |
28353 | RESCOMP=$ac_cv_prog_RESCOMP | |
28354 | if test -n "$RESCOMP"; then | |
28355 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28356 | echo "${ECHO_T}$RESCOMP" >&6 | |
28357 | else | |
28358 | echo "$as_me:$LINENO: result: no" >&5 | |
28359 | echo "${ECHO_T}no" >&6 | |
28360 | fi | |
28361 | ||
28362 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28363 | set dummy DeRez; ac_word=$2 | |
28364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28366 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28368 | else | |
28369 | if test -n "$DEREZ"; then | |
28370 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28371 | else | |
28372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28373 | for as_dir in $PATH | |
28374 | do | |
28375 | IFS=$as_save_IFS | |
28376 | test -z "$as_dir" && as_dir=. | |
28377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28379 | ac_cv_prog_DEREZ="DeRez" | |
28380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28381 | break 2 | |
28382 | fi | |
28383 | done | |
28384 | done | |
28385 | ||
28386 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28387 | fi | |
28388 | fi | |
28389 | DEREZ=$ac_cv_prog_DEREZ | |
28390 | if test -n "$DEREZ"; then | |
28391 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28392 | echo "${ECHO_T}$DEREZ" >&6 | |
28393 | else | |
28394 | echo "$as_me:$LINENO: result: no" >&5 | |
28395 | echo "${ECHO_T}no" >&6 | |
28396 | fi | |
28397 | ||
28398 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28399 | set dummy SetFile; ac_word=$2 | |
28400 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28402 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28404 | else | |
28405 | if test -n "$SETFILE"; then | |
28406 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28407 | else | |
28408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28409 | for as_dir in $PATH | |
28410 | do | |
28411 | IFS=$as_save_IFS | |
28412 | test -z "$as_dir" && as_dir=. | |
28413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28415 | ac_cv_prog_SETFILE="SetFile" | |
28416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28417 | break 2 | |
28418 | fi | |
28419 | done | |
28420 | done | |
28421 | ||
28422 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28423 | fi | |
28424 | fi | |
28425 | SETFILE=$ac_cv_prog_SETFILE | |
28426 | if test -n "$SETFILE"; then | |
28427 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28428 | echo "${ECHO_T}$SETFILE" >&6 | |
28429 | else | |
28430 | echo "$as_me:$LINENO: result: no" >&5 | |
28431 | echo "${ECHO_T}no" >&6 | |
28432 | fi | |
28433 | ||
28434 | ||
28435 | MACSETFILE="\$(SETFILE)" | |
28436 | ||
28437 | if test "$wxUSE_MAC" = 1; then | |
28438 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28439 | ||
28440 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28441 | else | |
28442 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28443 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28444 | fi | |
28445 | else | |
ffa0583f RL |
28446 | MACSETFILE="@true" |
28447 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
28448 | |
28449 | if test "$wxUSE_PM" = 1; then | |
28450 | MACRESCOMP="emxbind -ep" | |
28451 | else | |
ffa0583f | 28452 | MACRESCOMP="@true" |
a848cd7e SC |
28453 | fi |
28454 | fi | |
28455 | ||
28456 | ||
28457 | ||
28458 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28459 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28460 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28462 | else | |
28463 | cat >conftest.$ac_ext <<_ACEOF | |
28464 | /* confdefs.h. */ | |
28465 | _ACEOF | |
28466 | cat confdefs.h >>conftest.$ac_ext | |
28467 | cat >>conftest.$ac_ext <<_ACEOF | |
28468 | /* end confdefs.h. */ | |
28469 | $ac_includes_default | |
28470 | int | |
28471 | main () | |
28472 | { | |
28473 | if ((mode_t *) 0) | |
28474 | return 0; | |
28475 | if (sizeof (mode_t)) | |
28476 | return 0; | |
28477 | ; | |
28478 | return 0; | |
28479 | } | |
28480 | _ACEOF | |
28481 | rm -f conftest.$ac_objext | |
28482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28484 | ac_status=$? |
ac1cb8d3 VS |
28485 | grep -v '^ *+' conftest.er1 >conftest.err |
28486 | rm -f conftest.er1 | |
28487 | cat conftest.err >&5 | |
a848cd7e SC |
28488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28489 | (exit $ac_status); } && | |
04840eaa VS |
28490 | { ac_try='test -z "$ac_c_werror_flag" |
28491 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28493 | (eval $ac_try) 2>&5 | |
28494 | ac_status=$? | |
28495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28496 | (exit $ac_status); }; } && | |
28497 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28499 | (eval $ac_try) 2>&5 | |
28500 | ac_status=$? | |
28501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28502 | (exit $ac_status); }; }; then | |
28503 | ac_cv_type_mode_t=yes | |
28504 | else | |
28505 | echo "$as_me: failed program was:" >&5 | |
28506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28507 | ||
28508 | ac_cv_type_mode_t=no | |
28509 | fi | |
ac1cb8d3 | 28510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28511 | fi |
28512 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28513 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28514 | if test $ac_cv_type_mode_t = yes; then | |
28515 | : | |
28516 | else | |
28517 | ||
28518 | cat >>confdefs.h <<_ACEOF | |
28519 | #define mode_t int | |
28520 | _ACEOF | |
28521 | ||
28522 | fi | |
28523 | ||
28524 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28525 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28526 | if test "${ac_cv_type_off_t+set}" = set; then | |
28527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28528 | else | |
28529 | cat >conftest.$ac_ext <<_ACEOF | |
28530 | /* confdefs.h. */ | |
28531 | _ACEOF | |
28532 | cat confdefs.h >>conftest.$ac_ext | |
28533 | cat >>conftest.$ac_ext <<_ACEOF | |
28534 | /* end confdefs.h. */ | |
28535 | $ac_includes_default | |
28536 | int | |
28537 | main () | |
28538 | { | |
28539 | if ((off_t *) 0) | |
28540 | return 0; | |
28541 | if (sizeof (off_t)) | |
28542 | return 0; | |
28543 | ; | |
28544 | return 0; | |
28545 | } | |
28546 | _ACEOF | |
28547 | rm -f conftest.$ac_objext | |
28548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28549 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28550 | ac_status=$? |
ac1cb8d3 VS |
28551 | grep -v '^ *+' conftest.er1 >conftest.err |
28552 | rm -f conftest.er1 | |
28553 | cat conftest.err >&5 | |
a848cd7e SC |
28554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28555 | (exit $ac_status); } && | |
04840eaa VS |
28556 | { ac_try='test -z "$ac_c_werror_flag" |
28557 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28559 | (eval $ac_try) 2>&5 | |
28560 | ac_status=$? | |
28561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28562 | (exit $ac_status); }; } && | |
28563 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28565 | (eval $ac_try) 2>&5 | |
28566 | ac_status=$? | |
28567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28568 | (exit $ac_status); }; }; then | |
28569 | ac_cv_type_off_t=yes | |
28570 | else | |
28571 | echo "$as_me: failed program was:" >&5 | |
28572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28573 | ||
28574 | ac_cv_type_off_t=no | |
28575 | fi | |
ac1cb8d3 | 28576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28577 | fi |
28578 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28579 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28580 | if test $ac_cv_type_off_t = yes; then | |
28581 | : | |
28582 | else | |
28583 | ||
28584 | cat >>confdefs.h <<_ACEOF | |
28585 | #define off_t long | |
28586 | _ACEOF | |
28587 | ||
28588 | fi | |
28589 | ||
28590 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28591 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28592 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28594 | else | |
28595 | cat >conftest.$ac_ext <<_ACEOF | |
28596 | /* confdefs.h. */ | |
28597 | _ACEOF | |
28598 | cat confdefs.h >>conftest.$ac_ext | |
28599 | cat >>conftest.$ac_ext <<_ACEOF | |
28600 | /* end confdefs.h. */ | |
28601 | $ac_includes_default | |
28602 | int | |
28603 | main () | |
28604 | { | |
28605 | if ((pid_t *) 0) | |
28606 | return 0; | |
28607 | if (sizeof (pid_t)) | |
28608 | return 0; | |
28609 | ; | |
28610 | return 0; | |
28611 | } | |
28612 | _ACEOF | |
28613 | rm -f conftest.$ac_objext | |
28614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28615 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28616 | ac_status=$? |
ac1cb8d3 VS |
28617 | grep -v '^ *+' conftest.er1 >conftest.err |
28618 | rm -f conftest.er1 | |
28619 | cat conftest.err >&5 | |
a848cd7e SC |
28620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28621 | (exit $ac_status); } && | |
04840eaa VS |
28622 | { ac_try='test -z "$ac_c_werror_flag" |
28623 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28625 | (eval $ac_try) 2>&5 | |
28626 | ac_status=$? | |
28627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28628 | (exit $ac_status); }; } && | |
28629 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28631 | (eval $ac_try) 2>&5 | |
28632 | ac_status=$? | |
28633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28634 | (exit $ac_status); }; }; then | |
28635 | ac_cv_type_pid_t=yes | |
28636 | else | |
28637 | echo "$as_me: failed program was:" >&5 | |
28638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28639 | ||
28640 | ac_cv_type_pid_t=no | |
28641 | fi | |
ac1cb8d3 | 28642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28643 | fi |
28644 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28645 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28646 | if test $ac_cv_type_pid_t = yes; then | |
28647 | : | |
28648 | else | |
28649 | ||
28650 | cat >>confdefs.h <<_ACEOF | |
28651 | #define pid_t int | |
28652 | _ACEOF | |
28653 | ||
28654 | fi | |
28655 | ||
28656 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28657 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28658 | if test "${ac_cv_type_size_t+set}" = set; then | |
28659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28660 | else | |
28661 | cat >conftest.$ac_ext <<_ACEOF | |
28662 | /* confdefs.h. */ | |
28663 | _ACEOF | |
28664 | cat confdefs.h >>conftest.$ac_ext | |
28665 | cat >>conftest.$ac_ext <<_ACEOF | |
28666 | /* end confdefs.h. */ | |
28667 | $ac_includes_default | |
28668 | int | |
28669 | main () | |
28670 | { | |
28671 | if ((size_t *) 0) | |
28672 | return 0; | |
28673 | if (sizeof (size_t)) | |
28674 | return 0; | |
28675 | ; | |
28676 | return 0; | |
28677 | } | |
28678 | _ACEOF | |
28679 | rm -f conftest.$ac_objext | |
28680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28682 | ac_status=$? |
ac1cb8d3 VS |
28683 | grep -v '^ *+' conftest.er1 >conftest.err |
28684 | rm -f conftest.er1 | |
28685 | cat conftest.err >&5 | |
a848cd7e SC |
28686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28687 | (exit $ac_status); } && | |
04840eaa VS |
28688 | { ac_try='test -z "$ac_c_werror_flag" |
28689 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28691 | (eval $ac_try) 2>&5 | |
28692 | ac_status=$? | |
28693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28694 | (exit $ac_status); }; } && | |
28695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28697 | (eval $ac_try) 2>&5 | |
28698 | ac_status=$? | |
28699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28700 | (exit $ac_status); }; }; then | |
28701 | ac_cv_type_size_t=yes | |
28702 | else | |
28703 | echo "$as_me: failed program was:" >&5 | |
28704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28705 | ||
28706 | ac_cv_type_size_t=no | |
28707 | fi | |
ac1cb8d3 | 28708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28709 | fi |
28710 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28711 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28712 | if test $ac_cv_type_size_t = yes; then | |
28713 | : | |
28714 | else | |
28715 | ||
28716 | cat >>confdefs.h <<_ACEOF | |
28717 | #define size_t unsigned | |
28718 | _ACEOF | |
28719 | ||
28720 | fi | |
28721 | ||
28722 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28723 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28724 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28726 | else | |
28727 | cat >conftest.$ac_ext <<_ACEOF | |
28728 | /* confdefs.h. */ | |
28729 | _ACEOF | |
28730 | cat confdefs.h >>conftest.$ac_ext | |
28731 | cat >>conftest.$ac_ext <<_ACEOF | |
28732 | /* end confdefs.h. */ | |
28733 | #include <sys/types.h> | |
28734 | ||
28735 | _ACEOF | |
28736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28737 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28738 | ac_cv_type_uid_t=yes | |
28739 | else | |
28740 | ac_cv_type_uid_t=no | |
28741 | fi | |
28742 | rm -f conftest* | |
28743 | ||
28744 | fi | |
28745 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28746 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28747 | if test $ac_cv_type_uid_t = no; then | |
28748 | ||
28749 | cat >>confdefs.h <<\_ACEOF | |
28750 | #define uid_t int | |
28751 | _ACEOF | |
28752 | ||
28753 | ||
28754 | cat >>confdefs.h <<\_ACEOF | |
28755 | #define gid_t int | |
28756 | _ACEOF | |
28757 | ||
28758 | fi | |
28759 | ||
28760 | ||
d51253e8 RL |
28761 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
28762 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
28763 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
28764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28765 | else | |
28766 | cat >conftest.$ac_ext <<_ACEOF | |
28767 | /* confdefs.h. */ | |
28768 | _ACEOF | |
28769 | cat confdefs.h >>conftest.$ac_ext | |
28770 | cat >>conftest.$ac_ext <<_ACEOF | |
28771 | /* end confdefs.h. */ | |
28772 | $ac_includes_default | |
28773 | int | |
28774 | main () | |
28775 | { | |
28776 | if ((ssize_t *) 0) | |
28777 | return 0; | |
28778 | if (sizeof (ssize_t)) | |
28779 | return 0; | |
28780 | ; | |
28781 | return 0; | |
28782 | } | |
28783 | _ACEOF | |
28784 | rm -f conftest.$ac_objext | |
28785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28786 | (eval $ac_compile) 2>conftest.er1 | |
28787 | ac_status=$? | |
28788 | grep -v '^ *+' conftest.er1 >conftest.err | |
28789 | rm -f conftest.er1 | |
28790 | cat conftest.err >&5 | |
28791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28792 | (exit $ac_status); } && | |
04840eaa VS |
28793 | { ac_try='test -z "$ac_c_werror_flag" |
28794 | || test ! -s conftest.err' | |
d51253e8 RL |
28795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28796 | (eval $ac_try) 2>&5 | |
28797 | ac_status=$? | |
28798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28799 | (exit $ac_status); }; } && | |
28800 | { ac_try='test -s conftest.$ac_objext' | |
28801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28802 | (eval $ac_try) 2>&5 | |
28803 | ac_status=$? | |
28804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28805 | (exit $ac_status); }; }; then | |
28806 | ac_cv_type_ssize_t=yes | |
28807 | else | |
28808 | echo "$as_me: failed program was:" >&5 | |
28809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28810 | ||
28811 | ac_cv_type_ssize_t=no | |
28812 | fi | |
28813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28814 | fi | |
28815 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
28816 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
28817 | if test $ac_cv_type_ssize_t = yes; then | |
28818 | ||
28819 | cat >>confdefs.h <<_ACEOF | |
28820 | #define HAVE_SSIZE_T 1 | |
28821 | _ACEOF | |
28822 | ||
28823 | ||
28824 | fi | |
28825 | ||
28826 | ||
a848cd7e SC |
28827 | |
28828 | ||
28829 | ac_ext=cc | |
28830 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28831 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28832 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28833 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28834 | ||
28835 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28836 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28837 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28839 | else | |
28840 | ||
28841 | cat >conftest.$ac_ext <<_ACEOF | |
28842 | /* confdefs.h. */ | |
28843 | _ACEOF | |
28844 | cat confdefs.h >>conftest.$ac_ext | |
28845 | cat >>conftest.$ac_ext <<_ACEOF | |
28846 | /* end confdefs.h. */ | |
28847 | #include <stddef.h> | |
28848 | int | |
28849 | main () | |
28850 | { | |
28851 | ||
28852 | return 0; } | |
28853 | ||
28854 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28855 | ||
28856 | int bar() { | |
28857 | ||
28858 | ; | |
28859 | return 0; | |
28860 | } | |
28861 | _ACEOF | |
28862 | rm -f conftest.$ac_objext | |
28863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28864 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28865 | ac_status=$? |
ac1cb8d3 VS |
28866 | grep -v '^ *+' conftest.er1 >conftest.err |
28867 | rm -f conftest.er1 | |
28868 | cat conftest.err >&5 | |
a848cd7e SC |
28869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28870 | (exit $ac_status); } && | |
04840eaa VS |
28871 | { ac_try='test -z "$ac_cxx_werror_flag" |
28872 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28874 | (eval $ac_try) 2>&5 | |
28875 | ac_status=$? | |
28876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28877 | (exit $ac_status); }; } && | |
28878 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28880 | (eval $ac_try) 2>&5 | |
28881 | ac_status=$? | |
28882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28883 | (exit $ac_status); }; }; then | |
28884 | wx_cv_size_t_is_uint=no | |
28885 | else | |
28886 | echo "$as_me: failed program was:" >&5 | |
28887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28888 | ||
28889 | wx_cv_size_t_is_uint=yes | |
28890 | ||
28891 | fi | |
ac1cb8d3 | 28892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28893 | |
28894 | ||
28895 | fi | |
28896 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28897 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28898 | ||
28899 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28900 | cat >>confdefs.h <<\_ACEOF | |
28901 | #define wxSIZE_T_IS_UINT 1 | |
28902 | _ACEOF | |
28903 | ||
28904 | else | |
28905 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28906 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28907 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28909 | else | |
28910 | cat >conftest.$ac_ext <<_ACEOF | |
28911 | /* confdefs.h. */ | |
28912 | _ACEOF | |
28913 | cat confdefs.h >>conftest.$ac_ext | |
28914 | cat >>conftest.$ac_ext <<_ACEOF | |
28915 | /* end confdefs.h. */ | |
28916 | #include <stddef.h> | |
28917 | int | |
28918 | main () | |
28919 | { | |
28920 | ||
28921 | return 0; } | |
28922 | ||
28923 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28924 | ||
28925 | int bar() { | |
28926 | ||
28927 | ; | |
28928 | return 0; | |
28929 | } | |
28930 | _ACEOF | |
28931 | rm -f conftest.$ac_objext | |
28932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28934 | ac_status=$? |
ac1cb8d3 VS |
28935 | grep -v '^ *+' conftest.er1 >conftest.err |
28936 | rm -f conftest.er1 | |
28937 | cat conftest.err >&5 | |
a848cd7e SC |
28938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28939 | (exit $ac_status); } && | |
04840eaa VS |
28940 | { ac_try='test -z "$ac_cxx_werror_flag" |
28941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28943 | (eval $ac_try) 2>&5 | |
28944 | ac_status=$? | |
28945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28946 | (exit $ac_status); }; } && | |
28947 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28949 | (eval $ac_try) 2>&5 | |
28950 | ac_status=$? | |
28951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28952 | (exit $ac_status); }; }; then | |
28953 | wx_cv_size_t_is_ulong=no | |
28954 | else | |
28955 | echo "$as_me: failed program was:" >&5 | |
28956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28957 | ||
28958 | wx_cv_size_t_is_ulong=yes | |
28959 | ||
28960 | fi | |
ac1cb8d3 | 28961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28962 | |
28963 | fi | |
28964 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28965 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28966 | ||
28967 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28968 | cat >>confdefs.h <<\_ACEOF | |
28969 | #define wxSIZE_T_IS_ULONG 1 | |
28970 | _ACEOF | |
28971 | ||
28972 | fi | |
28973 | fi | |
28974 | ||
28975 | ac_ext=c | |
28976 | ac_cpp='$CPP $CPPFLAGS' | |
28977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28980 | ||
28981 | ||
28982 | ||
28983 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28984 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28985 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28987 | else | |
28988 | ||
28989 | cat >conftest.$ac_ext <<_ACEOF | |
28990 | /* confdefs.h. */ | |
28991 | _ACEOF | |
28992 | cat confdefs.h >>conftest.$ac_ext | |
28993 | cat >>conftest.$ac_ext <<_ACEOF | |
28994 | /* end confdefs.h. */ | |
28995 | #include <pwd.h> | |
28996 | int | |
28997 | main () | |
28998 | { | |
28999 | ||
29000 | char *p; | |
29001 | struct passwd *pw; | |
29002 | p = pw->pw_gecos; | |
29003 | ||
29004 | ; | |
29005 | return 0; | |
29006 | } | |
29007 | _ACEOF | |
29008 | rm -f conftest.$ac_objext | |
29009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29010 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29011 | ac_status=$? |
ac1cb8d3 VS |
29012 | grep -v '^ *+' conftest.er1 >conftest.err |
29013 | rm -f conftest.er1 | |
29014 | cat conftest.err >&5 | |
a848cd7e SC |
29015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29016 | (exit $ac_status); } && | |
04840eaa VS |
29017 | { ac_try='test -z "$ac_c_werror_flag" |
29018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29020 | (eval $ac_try) 2>&5 | |
29021 | ac_status=$? | |
29022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29023 | (exit $ac_status); }; } && | |
29024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29026 | (eval $ac_try) 2>&5 | |
29027 | ac_status=$? | |
29028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29029 | (exit $ac_status); }; }; then | |
29030 | ||
29031 | wx_cv_struct_pw_gecos=yes | |
29032 | ||
29033 | else | |
29034 | echo "$as_me: failed program was:" >&5 | |
29035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29036 | ||
29037 | ||
29038 | wx_cv_struct_pw_gecos=no | |
29039 | ||
29040 | ||
29041 | fi | |
ac1cb8d3 | 29042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29043 | |
29044 | ||
29045 | fi | |
29046 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
29047 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
29048 | ||
29049 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
29050 | cat >>confdefs.h <<\_ACEOF | |
29051 | #define HAVE_PW_GECOS 1 | |
29052 | _ACEOF | |
29053 | ||
29054 | fi | |
29055 | ||
29056 | ||
29057 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
29058 | cat >>confdefs.h <<\_ACEOF | |
29059 | #define wxUSE_WCHAR_T 1 | |
29060 | _ACEOF | |
29061 | ||
29062 | ||
29063 | WCSLEN_FOUND=0 | |
29064 | WCHAR_LINK= | |
29065 | ||
29066 | for ac_func in wcslen | |
29067 | do | |
29068 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29069 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29070 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29071 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29073 | else | |
29074 | cat >conftest.$ac_ext <<_ACEOF | |
29075 | /* confdefs.h. */ | |
29076 | _ACEOF | |
29077 | cat confdefs.h >>conftest.$ac_ext | |
29078 | cat >>conftest.$ac_ext <<_ACEOF | |
29079 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29082 | #define $ac_func innocuous_$ac_func | |
29083 | ||
a848cd7e SC |
29084 | /* System header to define __stub macros and hopefully few prototypes, |
29085 | which can conflict with char $ac_func (); below. | |
29086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29087 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29088 | |
a848cd7e SC |
29089 | #ifdef __STDC__ |
29090 | # include <limits.h> | |
29091 | #else | |
29092 | # include <assert.h> | |
29093 | #endif | |
ac1cb8d3 VS |
29094 | |
29095 | #undef $ac_func | |
29096 | ||
a848cd7e SC |
29097 | /* Override any gcc2 internal prototype to avoid an error. */ |
29098 | #ifdef __cplusplus | |
29099 | extern "C" | |
29100 | { | |
29101 | #endif | |
29102 | /* We use char because int might match the return type of a gcc2 | |
29103 | builtin and then its argument prototype would still apply. */ | |
29104 | char $ac_func (); | |
29105 | /* The GNU C library defines this for functions which it implements | |
29106 | to always fail with ENOSYS. Some functions are actually named | |
29107 | something starting with __ and the normal name is an alias. */ | |
29108 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29109 | choke me | |
29110 | #else | |
29111 | char (*f) () = $ac_func; | |
29112 | #endif | |
29113 | #ifdef __cplusplus | |
29114 | } | |
29115 | #endif | |
29116 | ||
29117 | int | |
29118 | main () | |
29119 | { | |
29120 | return f != $ac_func; | |
29121 | ; | |
29122 | return 0; | |
29123 | } | |
29124 | _ACEOF | |
29125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29127 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29128 | ac_status=$? |
ac1cb8d3 VS |
29129 | grep -v '^ *+' conftest.er1 >conftest.err |
29130 | rm -f conftest.er1 | |
29131 | cat conftest.err >&5 | |
a848cd7e SC |
29132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29133 | (exit $ac_status); } && | |
04840eaa VS |
29134 | { ac_try='test -z "$ac_c_werror_flag" |
29135 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29137 | (eval $ac_try) 2>&5 | |
29138 | ac_status=$? | |
29139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29140 | (exit $ac_status); }; } && | |
29141 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29143 | (eval $ac_try) 2>&5 | |
29144 | ac_status=$? | |
29145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29146 | (exit $ac_status); }; }; then | |
29147 | eval "$as_ac_var=yes" | |
29148 | else | |
29149 | echo "$as_me: failed program was:" >&5 | |
29150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29151 | ||
29152 | eval "$as_ac_var=no" | |
29153 | fi | |
ac1cb8d3 VS |
29154 | rm -f conftest.err conftest.$ac_objext \ |
29155 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29156 | fi |
29157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29158 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29159 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29160 | cat >>confdefs.h <<_ACEOF | |
29161 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29162 | _ACEOF | |
29163 | WCSLEN_FOUND=1 | |
29164 | fi | |
29165 | done | |
29166 | ||
29167 | ||
29168 | if test "$WCSLEN_FOUND" = 0; then | |
29169 | if test "$TOOLKIT" = "MSW"; then | |
29170 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
29171 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
29172 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
29173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29174 | else | |
29175 | ac_check_lib_save_LIBS=$LIBS | |
29176 | LIBS="-lmsvcrt $LIBS" | |
29177 | cat >conftest.$ac_ext <<_ACEOF | |
29178 | /* confdefs.h. */ | |
29179 | _ACEOF | |
29180 | cat confdefs.h >>conftest.$ac_ext | |
29181 | cat >>conftest.$ac_ext <<_ACEOF | |
29182 | /* end confdefs.h. */ | |
29183 | ||
29184 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29185 | #ifdef __cplusplus | |
29186 | extern "C" | |
29187 | #endif | |
29188 | /* We use char because int might match the return type of a gcc2 | |
29189 | builtin and then its argument prototype would still apply. */ | |
29190 | char wcslen (); | |
29191 | int | |
29192 | main () | |
29193 | { | |
29194 | wcslen (); | |
29195 | ; | |
29196 | return 0; | |
29197 | } | |
29198 | _ACEOF | |
29199 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29201 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29202 | ac_status=$? |
ac1cb8d3 VS |
29203 | grep -v '^ *+' conftest.er1 >conftest.err |
29204 | rm -f conftest.er1 | |
29205 | cat conftest.err >&5 | |
a848cd7e SC |
29206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29207 | (exit $ac_status); } && | |
04840eaa VS |
29208 | { ac_try='test -z "$ac_c_werror_flag" |
29209 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29211 | (eval $ac_try) 2>&5 | |
29212 | ac_status=$? | |
29213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29214 | (exit $ac_status); }; } && | |
29215 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29217 | (eval $ac_try) 2>&5 | |
29218 | ac_status=$? | |
29219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29220 | (exit $ac_status); }; }; then | |
29221 | ac_cv_lib_msvcrt_wcslen=yes | |
29222 | else | |
29223 | echo "$as_me: failed program was:" >&5 | |
29224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29225 | ||
29226 | ac_cv_lib_msvcrt_wcslen=no | |
29227 | fi | |
ac1cb8d3 VS |
29228 | rm -f conftest.err conftest.$ac_objext \ |
29229 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29230 | LIBS=$ac_check_lib_save_LIBS |
29231 | fi | |
29232 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29233 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
29234 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
29235 | WCHAR_OK=1 | |
29236 | fi | |
29237 | ||
29238 | else | |
29239 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
29240 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
29241 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
29242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29243 | else | |
29244 | ac_check_lib_save_LIBS=$LIBS | |
29245 | LIBS="-lw $LIBS" | |
29246 | cat >conftest.$ac_ext <<_ACEOF | |
29247 | /* confdefs.h. */ | |
29248 | _ACEOF | |
29249 | cat confdefs.h >>conftest.$ac_ext | |
29250 | cat >>conftest.$ac_ext <<_ACEOF | |
29251 | /* end confdefs.h. */ | |
29252 | ||
29253 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29254 | #ifdef __cplusplus | |
29255 | extern "C" | |
29256 | #endif | |
29257 | /* We use char because int might match the return type of a gcc2 | |
29258 | builtin and then its argument prototype would still apply. */ | |
29259 | char wcslen (); | |
29260 | int | |
29261 | main () | |
29262 | { | |
29263 | wcslen (); | |
29264 | ; | |
29265 | return 0; | |
29266 | } | |
29267 | _ACEOF | |
29268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29270 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29271 | ac_status=$? |
ac1cb8d3 VS |
29272 | grep -v '^ *+' conftest.er1 >conftest.err |
29273 | rm -f conftest.er1 | |
29274 | cat conftest.err >&5 | |
a848cd7e SC |
29275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29276 | (exit $ac_status); } && | |
04840eaa VS |
29277 | { ac_try='test -z "$ac_c_werror_flag" |
29278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29280 | (eval $ac_try) 2>&5 | |
29281 | ac_status=$? | |
29282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29283 | (exit $ac_status); }; } && | |
29284 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29286 | (eval $ac_try) 2>&5 | |
29287 | ac_status=$? | |
29288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29289 | (exit $ac_status); }; }; then | |
29290 | ac_cv_lib_w_wcslen=yes | |
29291 | else | |
29292 | echo "$as_me: failed program was:" >&5 | |
29293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29294 | ||
29295 | ac_cv_lib_w_wcslen=no | |
29296 | fi | |
ac1cb8d3 VS |
29297 | rm -f conftest.err conftest.$ac_objext \ |
29298 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29299 | LIBS=$ac_check_lib_save_LIBS |
29300 | fi | |
29301 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
29302 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
29303 | if test $ac_cv_lib_w_wcslen = yes; then | |
29304 | ||
29305 | WCHAR_LINK=" -lw" | |
29306 | WCSLEN_FOUND=1 | |
29307 | ||
29308 | fi | |
29309 | ||
29310 | fi | |
29311 | fi | |
29312 | ||
29313 | if test "$WCSLEN_FOUND" = 1; then | |
29314 | cat >>confdefs.h <<\_ACEOF | |
29315 | #define HAVE_WCSLEN 1 | |
29316 | _ACEOF | |
29317 | ||
29318 | fi | |
29319 | ||
473276a9 VS |
29320 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
29321 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
29322 | fi | |
29323 | ||
a848cd7e SC |
29324 | |
29325 | for ac_func in wcsrtombs | |
29326 | do | |
29327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29330 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29332 | else | |
29333 | cat >conftest.$ac_ext <<_ACEOF | |
29334 | /* confdefs.h. */ | |
29335 | _ACEOF | |
29336 | cat confdefs.h >>conftest.$ac_ext | |
29337 | cat >>conftest.$ac_ext <<_ACEOF | |
29338 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29339 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29341 | #define $ac_func innocuous_$ac_func | |
29342 | ||
a848cd7e SC |
29343 | /* System header to define __stub macros and hopefully few prototypes, |
29344 | which can conflict with char $ac_func (); below. | |
29345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29346 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29347 | |
a848cd7e SC |
29348 | #ifdef __STDC__ |
29349 | # include <limits.h> | |
29350 | #else | |
29351 | # include <assert.h> | |
29352 | #endif | |
ac1cb8d3 VS |
29353 | |
29354 | #undef $ac_func | |
29355 | ||
a848cd7e SC |
29356 | /* Override any gcc2 internal prototype to avoid an error. */ |
29357 | #ifdef __cplusplus | |
29358 | extern "C" | |
29359 | { | |
29360 | #endif | |
29361 | /* We use char because int might match the return type of a gcc2 | |
29362 | builtin and then its argument prototype would still apply. */ | |
29363 | char $ac_func (); | |
29364 | /* The GNU C library defines this for functions which it implements | |
29365 | to always fail with ENOSYS. Some functions are actually named | |
29366 | something starting with __ and the normal name is an alias. */ | |
29367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29368 | choke me | |
29369 | #else | |
29370 | char (*f) () = $ac_func; | |
29371 | #endif | |
29372 | #ifdef __cplusplus | |
29373 | } | |
29374 | #endif | |
29375 | ||
29376 | int | |
29377 | main () | |
29378 | { | |
29379 | return f != $ac_func; | |
29380 | ; | |
29381 | return 0; | |
29382 | } | |
29383 | _ACEOF | |
29384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29386 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29387 | ac_status=$? |
ac1cb8d3 VS |
29388 | grep -v '^ *+' conftest.er1 >conftest.err |
29389 | rm -f conftest.er1 | |
29390 | cat conftest.err >&5 | |
a848cd7e SC |
29391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29392 | (exit $ac_status); } && | |
04840eaa VS |
29393 | { ac_try='test -z "$ac_c_werror_flag" |
29394 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29396 | (eval $ac_try) 2>&5 | |
29397 | ac_status=$? | |
29398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29399 | (exit $ac_status); }; } && | |
29400 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29402 | (eval $ac_try) 2>&5 | |
29403 | ac_status=$? | |
29404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29405 | (exit $ac_status); }; }; then | |
29406 | eval "$as_ac_var=yes" | |
29407 | else | |
29408 | echo "$as_me: failed program was:" >&5 | |
29409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29410 | ||
29411 | eval "$as_ac_var=no" | |
29412 | fi | |
ac1cb8d3 VS |
29413 | rm -f conftest.err conftest.$ac_objext \ |
29414 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29415 | fi |
29416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29417 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29418 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29419 | cat >>confdefs.h <<_ACEOF | |
29420 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29421 | _ACEOF | |
29422 | ||
29423 | fi | |
29424 | done | |
29425 | ||
29426 | else | |
29427 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29428 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29429 | fi | |
29430 | ||
29431 | ||
29432 | ||
29433 | ac_ext=cc | |
29434 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29435 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29436 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29437 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29438 | ||
29439 | ||
29440 | ||
29441 | for ac_func in vsnprintf | |
29442 | do | |
29443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29444 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29446 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29448 | else | |
29449 | cat >conftest.$ac_ext <<_ACEOF | |
29450 | /* confdefs.h. */ | |
29451 | _ACEOF | |
29452 | cat confdefs.h >>conftest.$ac_ext | |
29453 | cat >>conftest.$ac_ext <<_ACEOF | |
29454 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29455 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29456 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29457 | #define $ac_func innocuous_$ac_func | |
29458 | ||
a848cd7e SC |
29459 | /* System header to define __stub macros and hopefully few prototypes, |
29460 | which can conflict with char $ac_func (); below. | |
29461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29462 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29463 | |
a848cd7e SC |
29464 | #ifdef __STDC__ |
29465 | # include <limits.h> | |
29466 | #else | |
29467 | # include <assert.h> | |
29468 | #endif | |
ac1cb8d3 VS |
29469 | |
29470 | #undef $ac_func | |
29471 | ||
a848cd7e SC |
29472 | /* Override any gcc2 internal prototype to avoid an error. */ |
29473 | #ifdef __cplusplus | |
29474 | extern "C" | |
29475 | { | |
29476 | #endif | |
29477 | /* We use char because int might match the return type of a gcc2 | |
29478 | builtin and then its argument prototype would still apply. */ | |
29479 | char $ac_func (); | |
29480 | /* The GNU C library defines this for functions which it implements | |
29481 | to always fail with ENOSYS. Some functions are actually named | |
29482 | something starting with __ and the normal name is an alias. */ | |
29483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29484 | choke me | |
29485 | #else | |
29486 | char (*f) () = $ac_func; | |
29487 | #endif | |
29488 | #ifdef __cplusplus | |
29489 | } | |
29490 | #endif | |
29491 | ||
29492 | int | |
29493 | main () | |
29494 | { | |
29495 | return f != $ac_func; | |
29496 | ; | |
29497 | return 0; | |
29498 | } | |
29499 | _ACEOF | |
29500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29502 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29503 | ac_status=$? |
ac1cb8d3 VS |
29504 | grep -v '^ *+' conftest.er1 >conftest.err |
29505 | rm -f conftest.er1 | |
29506 | cat conftest.err >&5 | |
a848cd7e SC |
29507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29508 | (exit $ac_status); } && | |
04840eaa VS |
29509 | { ac_try='test -z "$ac_cxx_werror_flag" |
29510 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29512 | (eval $ac_try) 2>&5 | |
29513 | ac_status=$? | |
29514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29515 | (exit $ac_status); }; } && | |
29516 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29518 | (eval $ac_try) 2>&5 | |
29519 | ac_status=$? | |
29520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29521 | (exit $ac_status); }; }; then | |
29522 | eval "$as_ac_var=yes" | |
29523 | else | |
29524 | echo "$as_me: failed program was:" >&5 | |
29525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29526 | ||
29527 | eval "$as_ac_var=no" | |
29528 | fi | |
ac1cb8d3 VS |
29529 | rm -f conftest.err conftest.$ac_objext \ |
29530 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29531 | fi |
29532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29533 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29534 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29535 | cat >>confdefs.h <<_ACEOF | |
29536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29537 | _ACEOF | |
29538 | ||
29539 | fi | |
29540 | done | |
29541 | ||
29542 | ||
29543 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
29544 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
29545 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29546 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29548 | else | |
29549 | ||
29550 | cat >conftest.$ac_ext <<_ACEOF | |
29551 | /* confdefs.h. */ | |
29552 | _ACEOF | |
29553 | cat confdefs.h >>conftest.$ac_ext | |
29554 | cat >>conftest.$ac_ext <<_ACEOF | |
29555 | /* end confdefs.h. */ | |
29556 | ||
29557 | #include <stdio.h> | |
29558 | #include <stdarg.h> | |
29559 | ||
29560 | int | |
29561 | main () | |
29562 | { | |
29563 | ||
29564 | char *buf; | |
29565 | va_list ap; | |
29566 | vsnprintf(buf, 10u, "%s", ap); | |
29567 | ||
29568 | ; | |
29569 | return 0; | |
29570 | } | |
29571 | _ACEOF | |
29572 | rm -f conftest.$ac_objext | |
29573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29574 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29575 | ac_status=$? |
ac1cb8d3 VS |
29576 | grep -v '^ *+' conftest.er1 >conftest.err |
29577 | rm -f conftest.er1 | |
29578 | cat conftest.err >&5 | |
a848cd7e SC |
29579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29580 | (exit $ac_status); } && | |
04840eaa VS |
29581 | { ac_try='test -z "$ac_cxx_werror_flag" |
29582 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29584 | (eval $ac_try) 2>&5 | |
29585 | ac_status=$? | |
29586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29587 | (exit $ac_status); }; } && | |
29588 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29590 | (eval $ac_try) 2>&5 | |
29591 | ac_status=$? | |
29592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29593 | (exit $ac_status); }; }; then | |
29594 | wx_cv_func_vsnprintf_decl=yes | |
29595 | else | |
29596 | echo "$as_me: failed program was:" >&5 | |
29597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29598 | ||
29599 | wx_cv_func_vsnprintf_decl=no | |
29600 | ||
29601 | fi | |
ac1cb8d3 | 29602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29603 | |
29604 | ||
29605 | fi | |
29606 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29607 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29608 | ||
29609 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29610 | cat >>confdefs.h <<\_ACEOF | |
29611 | #define HAVE_VSNPRINTF_DECL 1 | |
29612 | _ACEOF | |
29613 | ||
29614 | fi | |
29615 | fi | |
29616 | ||
29617 | if test "$wxUSE_UNICODE" = yes; then | |
29618 | ||
29619 | ||
29620 | ||
fbe47c7b VS |
29621 | |
29622 | ||
29623 | ||
29624 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29625 | do |
29626 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29627 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29628 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29629 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29631 | else | |
29632 | cat >conftest.$ac_ext <<_ACEOF | |
29633 | /* confdefs.h. */ | |
29634 | _ACEOF | |
29635 | cat confdefs.h >>conftest.$ac_ext | |
29636 | cat >>conftest.$ac_ext <<_ACEOF | |
29637 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29638 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29639 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29640 | #define $ac_func innocuous_$ac_func | |
29641 | ||
a848cd7e SC |
29642 | /* System header to define __stub macros and hopefully few prototypes, |
29643 | which can conflict with char $ac_func (); below. | |
29644 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29645 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29646 | |
a848cd7e SC |
29647 | #ifdef __STDC__ |
29648 | # include <limits.h> | |
29649 | #else | |
29650 | # include <assert.h> | |
29651 | #endif | |
ac1cb8d3 VS |
29652 | |
29653 | #undef $ac_func | |
29654 | ||
a848cd7e SC |
29655 | /* Override any gcc2 internal prototype to avoid an error. */ |
29656 | #ifdef __cplusplus | |
29657 | extern "C" | |
29658 | { | |
29659 | #endif | |
29660 | /* We use char because int might match the return type of a gcc2 | |
29661 | builtin and then its argument prototype would still apply. */ | |
29662 | char $ac_func (); | |
29663 | /* The GNU C library defines this for functions which it implements | |
29664 | to always fail with ENOSYS. Some functions are actually named | |
29665 | something starting with __ and the normal name is an alias. */ | |
29666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29667 | choke me | |
29668 | #else | |
29669 | char (*f) () = $ac_func; | |
29670 | #endif | |
29671 | #ifdef __cplusplus | |
29672 | } | |
29673 | #endif | |
29674 | ||
29675 | int | |
29676 | main () | |
29677 | { | |
29678 | return f != $ac_func; | |
29679 | ; | |
29680 | return 0; | |
29681 | } | |
29682 | _ACEOF | |
29683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29685 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29686 | ac_status=$? |
ac1cb8d3 VS |
29687 | grep -v '^ *+' conftest.er1 >conftest.err |
29688 | rm -f conftest.er1 | |
29689 | cat conftest.err >&5 | |
a848cd7e SC |
29690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29691 | (exit $ac_status); } && | |
04840eaa VS |
29692 | { ac_try='test -z "$ac_cxx_werror_flag" |
29693 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29695 | (eval $ac_try) 2>&5 | |
29696 | ac_status=$? | |
29697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29698 | (exit $ac_status); }; } && | |
29699 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29701 | (eval $ac_try) 2>&5 | |
29702 | ac_status=$? | |
29703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29704 | (exit $ac_status); }; }; then | |
29705 | eval "$as_ac_var=yes" | |
29706 | else | |
29707 | echo "$as_me: failed program was:" >&5 | |
29708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29709 | ||
29710 | eval "$as_ac_var=no" | |
29711 | fi | |
ac1cb8d3 VS |
29712 | rm -f conftest.err conftest.$ac_objext \ |
29713 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29714 | fi |
29715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29716 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29717 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29718 | cat >>confdefs.h <<_ACEOF | |
29719 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29720 | _ACEOF | |
29721 | ||
29722 | fi | |
29723 | done | |
29724 | ||
29725 | ||
29726 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29727 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29728 | cat >conftest.$ac_ext <<_ACEOF | |
29729 | /* confdefs.h. */ | |
29730 | _ACEOF | |
29731 | cat confdefs.h >>conftest.$ac_ext | |
29732 | cat >>conftest.$ac_ext <<_ACEOF | |
29733 | /* end confdefs.h. */ | |
29734 | #include <wchar.h> | |
29735 | int | |
29736 | main () | |
29737 | { | |
29738 | &_vsnwprintf; | |
29739 | ; | |
29740 | return 0; | |
29741 | } | |
29742 | _ACEOF | |
29743 | rm -f conftest.$ac_objext | |
29744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29745 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29746 | ac_status=$? |
ac1cb8d3 VS |
29747 | grep -v '^ *+' conftest.er1 >conftest.err |
29748 | rm -f conftest.er1 | |
29749 | cat conftest.err >&5 | |
a848cd7e SC |
29750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29751 | (exit $ac_status); } && | |
04840eaa VS |
29752 | { ac_try='test -z "$ac_cxx_werror_flag" |
29753 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29755 | (eval $ac_try) 2>&5 | |
29756 | ac_status=$? | |
29757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29758 | (exit $ac_status); }; } && | |
29759 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29761 | (eval $ac_try) 2>&5 | |
29762 | ac_status=$? | |
29763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29764 | (exit $ac_status); }; }; then | |
29765 | echo "$as_me:$LINENO: result: yes" >&5 | |
29766 | echo "${ECHO_T}yes" >&6 | |
29767 | cat >>confdefs.h <<\_ACEOF | |
29768 | #define HAVE__VSNWPRINTF 1 | |
29769 | _ACEOF | |
29770 | ||
29771 | else | |
29772 | echo "$as_me: failed program was:" >&5 | |
29773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29774 | ||
29775 | echo "$as_me:$LINENO: result: no" >&5 | |
29776 | echo "${ECHO_T}no" >&6 | |
29777 | fi | |
ac1cb8d3 | 29778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29779 | fi |
29780 | ||
29781 | ac_ext=c | |
29782 | ac_cpp='$CPP $CPPFLAGS' | |
29783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29786 | ||
29787 | ||
29788 | ||
29789 | ||
29790 | if test "$TOOLKIT" != "MSW"; then | |
29791 | ||
29792 | ||
29793 | ||
29794 | ||
29795 | ac_ext=cc | |
29796 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29797 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29798 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29799 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29800 | ||
29801 | ||
29802 | ||
29803 | ||
29804 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29805 | if test "${with_libiconv_prefix+set}" = set; then | |
29806 | withval="$with_libiconv_prefix" | |
29807 | ||
29808 | for dir in `echo "$withval" | tr : ' '`; do | |
29809 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29810 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29811 | done | |
29812 | ||
29813 | fi; | |
29814 | ||
29815 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29816 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29817 | if test "${am_cv_func_iconv+set}" = set; then | |
29818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29819 | else | |
29820 | ||
29821 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29822 | am_cv_lib_iconv=no | |
29823 | cat >conftest.$ac_ext <<_ACEOF | |
29824 | /* confdefs.h. */ | |
29825 | _ACEOF | |
29826 | cat confdefs.h >>conftest.$ac_ext | |
29827 | cat >>conftest.$ac_ext <<_ACEOF | |
29828 | /* end confdefs.h. */ | |
29829 | #include <stdlib.h> | |
29830 | #include <iconv.h> | |
29831 | int | |
29832 | main () | |
29833 | { | |
29834 | iconv_t cd = iconv_open("",""); | |
29835 | iconv(cd,NULL,NULL,NULL,NULL); | |
29836 | iconv_close(cd); | |
29837 | ; | |
29838 | return 0; | |
29839 | } | |
29840 | _ACEOF | |
29841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29843 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29844 | ac_status=$? |
ac1cb8d3 VS |
29845 | grep -v '^ *+' conftest.er1 >conftest.err |
29846 | rm -f conftest.er1 | |
29847 | cat conftest.err >&5 | |
a848cd7e SC |
29848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29849 | (exit $ac_status); } && | |
04840eaa VS |
29850 | { ac_try='test -z "$ac_cxx_werror_flag" |
29851 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29853 | (eval $ac_try) 2>&5 | |
29854 | ac_status=$? | |
29855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29856 | (exit $ac_status); }; } && | |
29857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29859 | (eval $ac_try) 2>&5 | |
29860 | ac_status=$? | |
29861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29862 | (exit $ac_status); }; }; then | |
29863 | am_cv_func_iconv=yes | |
29864 | else | |
29865 | echo "$as_me: failed program was:" >&5 | |
29866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29867 | ||
29868 | fi | |
ac1cb8d3 VS |
29869 | rm -f conftest.err conftest.$ac_objext \ |
29870 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29871 | if test "$am_cv_func_iconv" != yes; then |
29872 | am_save_LIBS="$LIBS" | |
29873 | LIBS="$LIBS -liconv" | |
29874 | cat >conftest.$ac_ext <<_ACEOF | |
29875 | /* confdefs.h. */ | |
29876 | _ACEOF | |
29877 | cat confdefs.h >>conftest.$ac_ext | |
29878 | cat >>conftest.$ac_ext <<_ACEOF | |
29879 | /* end confdefs.h. */ | |
29880 | #include <stdlib.h> | |
29881 | #include <iconv.h> | |
29882 | int | |
29883 | main () | |
29884 | { | |
29885 | iconv_t cd = iconv_open("",""); | |
29886 | iconv(cd,NULL,NULL,NULL,NULL); | |
29887 | iconv_close(cd); | |
29888 | ; | |
29889 | return 0; | |
29890 | } | |
29891 | _ACEOF | |
29892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29894 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29895 | ac_status=$? |
ac1cb8d3 VS |
29896 | grep -v '^ *+' conftest.er1 >conftest.err |
29897 | rm -f conftest.er1 | |
29898 | cat conftest.err >&5 | |
a848cd7e SC |
29899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29900 | (exit $ac_status); } && | |
04840eaa VS |
29901 | { ac_try='test -z "$ac_cxx_werror_flag" |
29902 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29904 | (eval $ac_try) 2>&5 | |
29905 | ac_status=$? | |
29906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29907 | (exit $ac_status); }; } && | |
29908 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29910 | (eval $ac_try) 2>&5 | |
29911 | ac_status=$? | |
29912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29913 | (exit $ac_status); }; }; then | |
29914 | am_cv_lib_iconv=yes | |
29915 | am_cv_func_iconv=yes | |
29916 | else | |
29917 | echo "$as_me: failed program was:" >&5 | |
29918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29919 | ||
29920 | fi | |
ac1cb8d3 VS |
29921 | rm -f conftest.err conftest.$ac_objext \ |
29922 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29923 | LIBS="$am_save_LIBS" |
29924 | fi | |
29925 | ||
29926 | fi | |
29927 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29928 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29929 | if test "$am_cv_func_iconv" = yes; then | |
29930 | ||
29931 | cat >>confdefs.h <<\_ACEOF | |
29932 | #define HAVE_ICONV 1 | |
29933 | _ACEOF | |
29934 | ||
29935 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29936 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29937 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29939 | else | |
29940 | cat >conftest.$ac_ext <<_ACEOF | |
29941 | /* confdefs.h. */ | |
29942 | _ACEOF | |
29943 | cat confdefs.h >>conftest.$ac_ext | |
29944 | cat >>conftest.$ac_ext <<_ACEOF | |
29945 | /* end confdefs.h. */ | |
29946 | ||
29947 | #include <stdlib.h> | |
29948 | #include <iconv.h> | |
29949 | extern | |
29950 | #ifdef __cplusplus | |
29951 | "C" | |
29952 | #endif | |
29953 | #if defined(__STDC__) || defined(__cplusplus) | |
29954 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29955 | #else | |
29956 | size_t iconv(); | |
29957 | #endif | |
29958 | ||
29959 | int | |
29960 | main () | |
29961 | { | |
29962 | ||
29963 | ; | |
29964 | return 0; | |
29965 | } | |
29966 | _ACEOF | |
29967 | rm -f conftest.$ac_objext | |
29968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29969 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29970 | ac_status=$? |
ac1cb8d3 VS |
29971 | grep -v '^ *+' conftest.er1 >conftest.err |
29972 | rm -f conftest.er1 | |
29973 | cat conftest.err >&5 | |
a848cd7e SC |
29974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29975 | (exit $ac_status); } && | |
04840eaa VS |
29976 | { ac_try='test -z "$ac_cxx_werror_flag" |
29977 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29979 | (eval $ac_try) 2>&5 | |
29980 | ac_status=$? | |
29981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29982 | (exit $ac_status); }; } && | |
29983 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29985 | (eval $ac_try) 2>&5 | |
29986 | ac_status=$? | |
29987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29988 | (exit $ac_status); }; }; then | |
29989 | wx_cv_func_iconv_const="no" | |
29990 | else | |
29991 | echo "$as_me: failed program was:" >&5 | |
29992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29993 | ||
29994 | wx_cv_func_iconv_const="yes" | |
29995 | ||
29996 | fi | |
ac1cb8d3 | 29997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29998 | |
29999 | fi | |
30000 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
30001 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
30002 | ||
30003 | iconv_const= | |
30004 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
30005 | iconv_const="const" | |
30006 | fi | |
30007 | ||
30008 | ||
30009 | cat >>confdefs.h <<_ACEOF | |
30010 | #define ICONV_CONST $iconv_const | |
30011 | _ACEOF | |
30012 | ||
30013 | fi | |
30014 | LIBICONV= | |
30015 | if test "$am_cv_lib_iconv" = yes; then | |
30016 | LIBICONV="-liconv" | |
30017 | fi | |
30018 | ||
30019 | ||
30020 | LIBS="$LIBICONV $LIBS" | |
30021 | ac_ext=c | |
30022 | ac_cpp='$CPP $CPPFLAGS' | |
30023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30026 | ||
30027 | ||
30028 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
30029 | ||
30030 | for ac_func in sigaction | |
30031 | do | |
30032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30037 | else | |
30038 | cat >conftest.$ac_ext <<_ACEOF | |
30039 | /* confdefs.h. */ | |
30040 | _ACEOF | |
30041 | cat confdefs.h >>conftest.$ac_ext | |
30042 | cat >>conftest.$ac_ext <<_ACEOF | |
30043 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30046 | #define $ac_func innocuous_$ac_func | |
30047 | ||
a848cd7e SC |
30048 | /* System header to define __stub macros and hopefully few prototypes, |
30049 | which can conflict with char $ac_func (); below. | |
30050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30051 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30052 | |
a848cd7e SC |
30053 | #ifdef __STDC__ |
30054 | # include <limits.h> | |
30055 | #else | |
30056 | # include <assert.h> | |
30057 | #endif | |
ac1cb8d3 VS |
30058 | |
30059 | #undef $ac_func | |
30060 | ||
a848cd7e SC |
30061 | /* Override any gcc2 internal prototype to avoid an error. */ |
30062 | #ifdef __cplusplus | |
30063 | extern "C" | |
30064 | { | |
30065 | #endif | |
30066 | /* We use char because int might match the return type of a gcc2 | |
30067 | builtin and then its argument prototype would still apply. */ | |
30068 | char $ac_func (); | |
30069 | /* The GNU C library defines this for functions which it implements | |
30070 | to always fail with ENOSYS. Some functions are actually named | |
30071 | something starting with __ and the normal name is an alias. */ | |
30072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30073 | choke me | |
30074 | #else | |
30075 | char (*f) () = $ac_func; | |
30076 | #endif | |
30077 | #ifdef __cplusplus | |
30078 | } | |
30079 | #endif | |
30080 | ||
30081 | int | |
30082 | main () | |
30083 | { | |
30084 | return f != $ac_func; | |
30085 | ; | |
30086 | return 0; | |
30087 | } | |
30088 | _ACEOF | |
30089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30091 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30092 | ac_status=$? |
ac1cb8d3 VS |
30093 | grep -v '^ *+' conftest.er1 >conftest.err |
30094 | rm -f conftest.er1 | |
30095 | cat conftest.err >&5 | |
a848cd7e SC |
30096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30097 | (exit $ac_status); } && | |
04840eaa VS |
30098 | { ac_try='test -z "$ac_c_werror_flag" |
30099 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30101 | (eval $ac_try) 2>&5 | |
30102 | ac_status=$? | |
30103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30104 | (exit $ac_status); }; } && | |
30105 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30107 | (eval $ac_try) 2>&5 | |
30108 | ac_status=$? | |
30109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30110 | (exit $ac_status); }; }; then | |
30111 | eval "$as_ac_var=yes" | |
30112 | else | |
30113 | echo "$as_me: failed program was:" >&5 | |
30114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30115 | ||
30116 | eval "$as_ac_var=no" | |
30117 | fi | |
ac1cb8d3 VS |
30118 | rm -f conftest.err conftest.$ac_objext \ |
30119 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30120 | fi |
30121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30124 | cat >>confdefs.h <<_ACEOF | |
30125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30126 | _ACEOF | |
30127 | ||
30128 | fi | |
30129 | done | |
30130 | ||
30131 | ||
30132 | if test "$ac_cv_func_sigaction" = "no"; then | |
30133 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
30134 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
30135 | wxUSE_ON_FATAL_EXCEPTION=no | |
30136 | fi | |
30137 | ||
30138 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
30139 | ||
30140 | ||
30141 | ac_ext=cc | |
30142 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30143 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30144 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30145 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30146 | ||
30147 | ||
30148 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
30149 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
30150 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
30151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30152 | else | |
30153 | ||
30154 | cat >conftest.$ac_ext <<_ACEOF | |
30155 | /* confdefs.h. */ | |
30156 | _ACEOF | |
30157 | cat confdefs.h >>conftest.$ac_ext | |
30158 | cat >>conftest.$ac_ext <<_ACEOF | |
30159 | /* end confdefs.h. */ | |
30160 | #include <signal.h> | |
30161 | int | |
30162 | main () | |
30163 | { | |
30164 | ||
30165 | extern void testSigHandler(int); | |
30166 | ||
30167 | struct sigaction sa; | |
30168 | sa.sa_handler = testSigHandler; | |
30169 | ||
30170 | ; | |
30171 | return 0; | |
30172 | } | |
30173 | _ACEOF | |
30174 | rm -f conftest.$ac_objext | |
30175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30176 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30177 | ac_status=$? |
ac1cb8d3 VS |
30178 | grep -v '^ *+' conftest.er1 >conftest.err |
30179 | rm -f conftest.er1 | |
30180 | cat conftest.err >&5 | |
a848cd7e SC |
30181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30182 | (exit $ac_status); } && | |
04840eaa VS |
30183 | { ac_try='test -z "$ac_cxx_werror_flag" |
30184 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30186 | (eval $ac_try) 2>&5 | |
30187 | ac_status=$? | |
30188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30189 | (exit $ac_status); }; } && | |
30190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30192 | (eval $ac_try) 2>&5 | |
30193 | ac_status=$? | |
30194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30195 | (exit $ac_status); }; }; then | |
30196 | ||
30197 | wx_cv_type_sa_handler=int | |
30198 | ||
30199 | else | |
30200 | echo "$as_me: failed program was:" >&5 | |
30201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30202 | ||
30203 | ||
30204 | wx_cv_type_sa_handler=void | |
30205 | ||
30206 | fi | |
ac1cb8d3 | 30207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30208 | |
30209 | fi | |
30210 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
30211 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
30212 | ||
30213 | ac_ext=c | |
30214 | ac_cpp='$CPP $CPPFLAGS' | |
30215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30218 | ||
30219 | ||
30220 | cat >>confdefs.h <<_ACEOF | |
30221 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
30222 | _ACEOF | |
30223 | ||
30224 | fi | |
30225 | fi | |
30226 | ||
eaff0f0d VZ |
30227 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
30228 | ||
30229 | ||
30230 | ac_ext=cc | |
30231 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30232 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30233 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30234 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30235 | ||
30236 | ||
30237 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
30238 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
30239 | if test "${wx_cv_func_backtrace+set}" = set; then | |
30240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30241 | else | |
30242 | ||
30243 | cat >conftest.$ac_ext <<_ACEOF | |
30244 | /* confdefs.h. */ | |
30245 | _ACEOF | |
30246 | cat confdefs.h >>conftest.$ac_ext | |
30247 | cat >>conftest.$ac_ext <<_ACEOF | |
30248 | /* end confdefs.h. */ | |
30249 | #include <execinfo.h> | |
30250 | int | |
30251 | main () | |
30252 | { | |
30253 | ||
30254 | void *trace[1]; | |
30255 | char **messages; | |
30256 | ||
30257 | backtrace(trace, 1); | |
30258 | messages = backtrace_symbols(trace, 1); | |
30259 | ||
30260 | ; | |
30261 | return 0; | |
30262 | } | |
30263 | _ACEOF | |
30264 | rm -f conftest.$ac_objext | |
30265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30266 | (eval $ac_compile) 2>conftest.er1 | |
30267 | ac_status=$? | |
30268 | grep -v '^ *+' conftest.er1 >conftest.err | |
30269 | rm -f conftest.er1 | |
30270 | cat conftest.err >&5 | |
30271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30272 | (exit $ac_status); } && | |
04840eaa VS |
30273 | { ac_try='test -z "$ac_cxx_werror_flag" |
30274 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30276 | (eval $ac_try) 2>&5 | |
30277 | ac_status=$? | |
30278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30279 | (exit $ac_status); }; } && | |
30280 | { ac_try='test -s conftest.$ac_objext' | |
30281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30282 | (eval $ac_try) 2>&5 | |
30283 | ac_status=$? | |
30284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30285 | (exit $ac_status); }; }; then | |
30286 | wx_cv_func_backtrace=yes | |
30287 | else | |
30288 | echo "$as_me: failed program was:" >&5 | |
30289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30290 | ||
30291 | wx_cv_func_backtrace=no | |
30292 | ||
30293 | fi | |
30294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30295 | ||
30296 | ||
30297 | fi | |
30298 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
30299 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
30300 | ||
30301 | ||
30302 | if test "$wx_cv_func_backtrace" = "no"; then | |
30303 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
30304 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
30305 | wxUSE_STACKWALKER=no | |
30306 | else | |
30307 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
30308 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
30309 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
30310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30311 | else | |
30312 | ||
30313 | cat >conftest.$ac_ext <<_ACEOF | |
30314 | /* confdefs.h. */ | |
30315 | _ACEOF | |
30316 | cat confdefs.h >>conftest.$ac_ext | |
30317 | cat >>conftest.$ac_ext <<_ACEOF | |
30318 | /* end confdefs.h. */ | |
30319 | #include <cxxabi.h> | |
30320 | int | |
30321 | main () | |
30322 | { | |
30323 | ||
30324 | int rc; | |
30325 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
30326 | ||
30327 | ; | |
30328 | return 0; | |
30329 | } | |
30330 | _ACEOF | |
30331 | rm -f conftest.$ac_objext | |
30332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30333 | (eval $ac_compile) 2>conftest.er1 | |
30334 | ac_status=$? | |
30335 | grep -v '^ *+' conftest.er1 >conftest.err | |
30336 | rm -f conftest.er1 | |
30337 | cat conftest.err >&5 | |
30338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30339 | (exit $ac_status); } && | |
04840eaa VS |
30340 | { ac_try='test -z "$ac_cxx_werror_flag" |
30341 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30343 | (eval $ac_try) 2>&5 | |
30344 | ac_status=$? | |
30345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30346 | (exit $ac_status); }; } && | |
30347 | { ac_try='test -s conftest.$ac_objext' | |
30348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30349 | (eval $ac_try) 2>&5 | |
30350 | ac_status=$? | |
30351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30352 | (exit $ac_status); }; }; then | |
30353 | wx_cv_func_cxa_demangle=yes | |
30354 | else | |
30355 | echo "$as_me: failed program was:" >&5 | |
30356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30357 | ||
30358 | wx_cv_func_cxa_demangle=no | |
30359 | ||
30360 | fi | |
30361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30362 | ||
30363 | ||
30364 | fi | |
30365 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
30366 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
30367 | ||
30368 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
30369 | cat >>confdefs.h <<\_ACEOF | |
30370 | #define HAVE_CXA_DEMANGLE 1 | |
30371 | _ACEOF | |
30372 | ||
30373 | fi | |
30374 | fi | |
30375 | ||
30376 | ac_ext=c | |
30377 | ac_cpp='$CPP $CPPFLAGS' | |
30378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30381 | ||
30382 | fi | |
30383 | ||
a848cd7e SC |
30384 | |
30385 | ||
30386 | for ac_func in mkstemp mktemp | |
30387 | do | |
30388 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30389 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30390 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30391 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30393 | else | |
30394 | cat >conftest.$ac_ext <<_ACEOF | |
30395 | /* confdefs.h. */ | |
30396 | _ACEOF | |
30397 | cat confdefs.h >>conftest.$ac_ext | |
30398 | cat >>conftest.$ac_ext <<_ACEOF | |
30399 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30400 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30402 | #define $ac_func innocuous_$ac_func | |
30403 | ||
a848cd7e SC |
30404 | /* System header to define __stub macros and hopefully few prototypes, |
30405 | which can conflict with char $ac_func (); below. | |
30406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30407 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30408 | |
a848cd7e SC |
30409 | #ifdef __STDC__ |
30410 | # include <limits.h> | |
30411 | #else | |
30412 | # include <assert.h> | |
30413 | #endif | |
ac1cb8d3 VS |
30414 | |
30415 | #undef $ac_func | |
30416 | ||
a848cd7e SC |
30417 | /* Override any gcc2 internal prototype to avoid an error. */ |
30418 | #ifdef __cplusplus | |
30419 | extern "C" | |
30420 | { | |
30421 | #endif | |
30422 | /* We use char because int might match the return type of a gcc2 | |
30423 | builtin and then its argument prototype would still apply. */ | |
30424 | char $ac_func (); | |
30425 | /* The GNU C library defines this for functions which it implements | |
30426 | to always fail with ENOSYS. Some functions are actually named | |
30427 | something starting with __ and the normal name is an alias. */ | |
30428 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30429 | choke me | |
30430 | #else | |
30431 | char (*f) () = $ac_func; | |
30432 | #endif | |
30433 | #ifdef __cplusplus | |
30434 | } | |
30435 | #endif | |
30436 | ||
30437 | int | |
30438 | main () | |
30439 | { | |
30440 | return f != $ac_func; | |
30441 | ; | |
30442 | return 0; | |
30443 | } | |
30444 | _ACEOF | |
30445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30447 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30448 | ac_status=$? |
ac1cb8d3 VS |
30449 | grep -v '^ *+' conftest.er1 >conftest.err |
30450 | rm -f conftest.er1 | |
30451 | cat conftest.err >&5 | |
a848cd7e SC |
30452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30453 | (exit $ac_status); } && | |
04840eaa VS |
30454 | { ac_try='test -z "$ac_c_werror_flag" |
30455 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30457 | (eval $ac_try) 2>&5 | |
30458 | ac_status=$? | |
30459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30460 | (exit $ac_status); }; } && | |
30461 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30463 | (eval $ac_try) 2>&5 | |
30464 | ac_status=$? | |
30465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30466 | (exit $ac_status); }; }; then | |
30467 | eval "$as_ac_var=yes" | |
30468 | else | |
30469 | echo "$as_me: failed program was:" >&5 | |
30470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30471 | ||
30472 | eval "$as_ac_var=no" | |
30473 | fi | |
ac1cb8d3 VS |
30474 | rm -f conftest.err conftest.$ac_objext \ |
30475 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30476 | fi |
30477 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30478 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30479 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30480 | cat >>confdefs.h <<_ACEOF | |
30481 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30482 | _ACEOF | |
30483 | break | |
30484 | fi | |
30485 | done | |
30486 | ||
30487 | ||
30488 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
30489 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
30490 | if test "${wx_cv_func_statfs+set}" = set; then | |
30491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30492 | else | |
30493 | cat >conftest.$ac_ext <<_ACEOF | |
30494 | /* confdefs.h. */ | |
30495 | _ACEOF | |
30496 | cat confdefs.h >>conftest.$ac_ext | |
30497 | cat >>conftest.$ac_ext <<_ACEOF | |
30498 | /* end confdefs.h. */ | |
30499 | ||
30500 | #if defined(__BSD__) | |
30501 | #include <sys/param.h> | |
30502 | #include <sys/mount.h> | |
30503 | #else | |
30504 | #include <sys/vfs.h> | |
30505 | #endif | |
30506 | ||
30507 | int | |
30508 | main () | |
30509 | { | |
30510 | ||
30511 | long l; | |
30512 | struct statfs fs; | |
30513 | statfs("/", &fs); | |
30514 | l = fs.f_bsize; | |
30515 | l += fs.f_blocks; | |
30516 | l += fs.f_bavail; | |
30517 | ||
30518 | ; | |
30519 | return 0; | |
30520 | } | |
30521 | _ACEOF | |
30522 | rm -f conftest.$ac_objext | |
30523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30524 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30525 | ac_status=$? |
ac1cb8d3 VS |
30526 | grep -v '^ *+' conftest.er1 >conftest.err |
30527 | rm -f conftest.er1 | |
30528 | cat conftest.err >&5 | |
a848cd7e SC |
30529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30530 | (exit $ac_status); } && | |
04840eaa VS |
30531 | { ac_try='test -z "$ac_c_werror_flag" |
30532 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30534 | (eval $ac_try) 2>&5 | |
30535 | ac_status=$? | |
30536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30537 | (exit $ac_status); }; } && | |
30538 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30540 | (eval $ac_try) 2>&5 | |
30541 | ac_status=$? | |
30542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30543 | (exit $ac_status); }; }; then | |
30544 | ||
30545 | wx_cv_func_statfs=yes | |
30546 | ||
30547 | else | |
30548 | echo "$as_me: failed program was:" >&5 | |
30549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30550 | ||
30551 | ||
30552 | wx_cv_func_statfs=no | |
30553 | ||
30554 | ||
30555 | fi | |
ac1cb8d3 | 30556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30557 | |
30558 | fi | |
30559 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30560 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
30561 | ||
30562 | if test "$wx_cv_func_statfs" = "yes"; then | |
30563 | wx_cv_type_statvfs_t="struct statfs" | |
30564 | cat >>confdefs.h <<\_ACEOF | |
30565 | #define HAVE_STATFS 1 | |
30566 | _ACEOF | |
30567 | ||
30568 | else | |
30569 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
30570 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
30571 | if test "${wx_cv_func_statvfs+set}" = set; then | |
30572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30573 | else | |
30574 | cat >conftest.$ac_ext <<_ACEOF | |
30575 | /* confdefs.h. */ | |
30576 | _ACEOF | |
30577 | cat confdefs.h >>conftest.$ac_ext | |
30578 | cat >>conftest.$ac_ext <<_ACEOF | |
30579 | /* end confdefs.h. */ | |
30580 | ||
30581 | #include <stddef.h> | |
30582 | #include <sys/statvfs.h> | |
30583 | ||
30584 | int | |
30585 | main () | |
30586 | { | |
30587 | ||
30588 | statvfs("/", NULL); | |
30589 | ||
30590 | ; | |
30591 | return 0; | |
30592 | } | |
30593 | _ACEOF | |
30594 | rm -f conftest.$ac_objext | |
30595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30596 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30597 | ac_status=$? |
ac1cb8d3 VS |
30598 | grep -v '^ *+' conftest.er1 >conftest.err |
30599 | rm -f conftest.er1 | |
30600 | cat conftest.err >&5 | |
a848cd7e SC |
30601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30602 | (exit $ac_status); } && | |
04840eaa VS |
30603 | { ac_try='test -z "$ac_c_werror_flag" |
30604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30606 | (eval $ac_try) 2>&5 | |
30607 | ac_status=$? | |
30608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30609 | (exit $ac_status); }; } && | |
30610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30612 | (eval $ac_try) 2>&5 | |
30613 | ac_status=$? | |
30614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30615 | (exit $ac_status); }; }; then | |
30616 | wx_cv_func_statvfs=yes | |
30617 | else | |
30618 | echo "$as_me: failed program was:" >&5 | |
30619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30620 | ||
30621 | wx_cv_func_statvfs=no | |
30622 | ||
30623 | fi | |
ac1cb8d3 | 30624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30625 | |
30626 | fi | |
30627 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30628 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
30629 | ||
30630 | if test "$wx_cv_func_statvfs" = "yes"; then | |
30631 | ||
30632 | ||
30633 | ac_ext=cc | |
30634 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30635 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30636 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30637 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30638 | ||
30639 | ||
30640 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
30641 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30642 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30644 | else | |
30645 | cat >conftest.$ac_ext <<_ACEOF | |
30646 | /* confdefs.h. */ | |
30647 | _ACEOF | |
30648 | cat confdefs.h >>conftest.$ac_ext | |
30649 | cat >>conftest.$ac_ext <<_ACEOF | |
30650 | /* end confdefs.h. */ | |
30651 | ||
30652 | #include <sys/statvfs.h> | |
30653 | ||
30654 | int | |
30655 | main () | |
30656 | { | |
30657 | ||
30658 | long l; | |
30659 | statvfs_t fs; | |
30660 | statvfs("/", &fs); | |
30661 | l = fs.f_bsize; | |
30662 | l += fs.f_blocks; | |
30663 | l += fs.f_bavail; | |
30664 | ||
30665 | ; | |
30666 | return 0; | |
30667 | } | |
30668 | _ACEOF | |
30669 | rm -f conftest.$ac_objext | |
30670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30671 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30672 | ac_status=$? |
ac1cb8d3 VS |
30673 | grep -v '^ *+' conftest.er1 >conftest.err |
30674 | rm -f conftest.er1 | |
30675 | cat conftest.err >&5 | |
a848cd7e SC |
30676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30677 | (exit $ac_status); } && | |
04840eaa VS |
30678 | { ac_try='test -z "$ac_cxx_werror_flag" |
30679 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30681 | (eval $ac_try) 2>&5 | |
30682 | ac_status=$? | |
30683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30684 | (exit $ac_status); }; } && | |
30685 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30687 | (eval $ac_try) 2>&5 | |
30688 | ac_status=$? | |
30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30690 | (exit $ac_status); }; }; then | |
30691 | wx_cv_type_statvfs_t=statvfs_t | |
30692 | else | |
30693 | echo "$as_me: failed program was:" >&5 | |
30694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30695 | ||
30696 | ||
30697 | cat >conftest.$ac_ext <<_ACEOF | |
30698 | /* confdefs.h. */ | |
30699 | _ACEOF | |
30700 | cat confdefs.h >>conftest.$ac_ext | |
30701 | cat >>conftest.$ac_ext <<_ACEOF | |
30702 | /* end confdefs.h. */ | |
30703 | ||
30704 | #include <sys/statvfs.h> | |
30705 | ||
30706 | int | |
30707 | main () | |
30708 | { | |
30709 | ||
30710 | long l; | |
30711 | struct statvfs fs; | |
30712 | statvfs("/", &fs); | |
30713 | l = fs.f_bsize; | |
30714 | l += fs.f_blocks; | |
30715 | l += fs.f_bavail; | |
30716 | ||
30717 | ; | |
30718 | return 0; | |
30719 | } | |
30720 | _ACEOF | |
30721 | rm -f conftest.$ac_objext | |
30722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30723 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30724 | ac_status=$? |
ac1cb8d3 VS |
30725 | grep -v '^ *+' conftest.er1 >conftest.err |
30726 | rm -f conftest.er1 | |
30727 | cat conftest.err >&5 | |
a848cd7e SC |
30728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30729 | (exit $ac_status); } && | |
04840eaa VS |
30730 | { ac_try='test -z "$ac_cxx_werror_flag" |
30731 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30733 | (eval $ac_try) 2>&5 | |
30734 | ac_status=$? | |
30735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30736 | (exit $ac_status); }; } && | |
30737 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30739 | (eval $ac_try) 2>&5 | |
30740 | ac_status=$? | |
30741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30742 | (exit $ac_status); }; }; then | |
30743 | wx_cv_type_statvfs_t="struct statvfs" | |
30744 | else | |
30745 | echo "$as_me: failed program was:" >&5 | |
30746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30747 | ||
30748 | wx_cv_type_statvfs_t="unknown" | |
30749 | ||
30750 | fi | |
ac1cb8d3 | 30751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30752 | |
30753 | ||
30754 | fi | |
ac1cb8d3 | 30755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30756 | |
30757 | fi | |
30758 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30759 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30760 | ||
30761 | ac_ext=c | |
30762 | ac_cpp='$CPP $CPPFLAGS' | |
30763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30766 | ||
30767 | ||
30768 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30769 | cat >>confdefs.h <<\_ACEOF | |
30770 | #define HAVE_STATVFS 1 | |
30771 | _ACEOF | |
30772 | ||
30773 | fi | |
30774 | else | |
30775 | wx_cv_type_statvfs_t="unknown" | |
30776 | fi | |
30777 | fi | |
30778 | ||
30779 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30780 | cat >>confdefs.h <<_ACEOF | |
30781 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30782 | _ACEOF | |
30783 | ||
30784 | else | |
30785 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30786 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30787 | fi | |
30788 | ||
30789 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30790 | ||
30791 | ||
30792 | for ac_func in fcntl flock | |
30793 | do | |
30794 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30795 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30796 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30797 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30799 | else | |
30800 | cat >conftest.$ac_ext <<_ACEOF | |
30801 | /* confdefs.h. */ | |
30802 | _ACEOF | |
30803 | cat confdefs.h >>conftest.$ac_ext | |
30804 | cat >>conftest.$ac_ext <<_ACEOF | |
30805 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30806 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30807 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30808 | #define $ac_func innocuous_$ac_func | |
30809 | ||
a848cd7e SC |
30810 | /* System header to define __stub macros and hopefully few prototypes, |
30811 | which can conflict with char $ac_func (); below. | |
30812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30813 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30814 | |
a848cd7e SC |
30815 | #ifdef __STDC__ |
30816 | # include <limits.h> | |
30817 | #else | |
30818 | # include <assert.h> | |
30819 | #endif | |
ac1cb8d3 VS |
30820 | |
30821 | #undef $ac_func | |
30822 | ||
a848cd7e SC |
30823 | /* Override any gcc2 internal prototype to avoid an error. */ |
30824 | #ifdef __cplusplus | |
30825 | extern "C" | |
30826 | { | |
30827 | #endif | |
30828 | /* We use char because int might match the return type of a gcc2 | |
30829 | builtin and then its argument prototype would still apply. */ | |
30830 | char $ac_func (); | |
30831 | /* The GNU C library defines this for functions which it implements | |
30832 | to always fail with ENOSYS. Some functions are actually named | |
30833 | something starting with __ and the normal name is an alias. */ | |
30834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30835 | choke me | |
30836 | #else | |
30837 | char (*f) () = $ac_func; | |
30838 | #endif | |
30839 | #ifdef __cplusplus | |
30840 | } | |
30841 | #endif | |
30842 | ||
30843 | int | |
30844 | main () | |
30845 | { | |
30846 | return f != $ac_func; | |
30847 | ; | |
30848 | return 0; | |
30849 | } | |
30850 | _ACEOF | |
30851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30853 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30854 | ac_status=$? |
ac1cb8d3 VS |
30855 | grep -v '^ *+' conftest.er1 >conftest.err |
30856 | rm -f conftest.er1 | |
30857 | cat conftest.err >&5 | |
a848cd7e SC |
30858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30859 | (exit $ac_status); } && | |
04840eaa VS |
30860 | { ac_try='test -z "$ac_c_werror_flag" |
30861 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30863 | (eval $ac_try) 2>&5 | |
30864 | ac_status=$? | |
30865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30866 | (exit $ac_status); }; } && | |
30867 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30869 | (eval $ac_try) 2>&5 | |
30870 | ac_status=$? | |
30871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30872 | (exit $ac_status); }; }; then | |
30873 | eval "$as_ac_var=yes" | |
30874 | else | |
30875 | echo "$as_me: failed program was:" >&5 | |
30876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30877 | ||
30878 | eval "$as_ac_var=no" | |
30879 | fi | |
ac1cb8d3 VS |
30880 | rm -f conftest.err conftest.$ac_objext \ |
30881 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30882 | fi |
30883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30884 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30885 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30886 | cat >>confdefs.h <<_ACEOF | |
30887 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30888 | _ACEOF | |
30889 | break | |
30890 | fi | |
30891 | done | |
30892 | ||
30893 | ||
30894 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30895 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30896 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30897 | wxUSE_SNGLINST_CHECKER=no | |
30898 | fi | |
30899 | fi | |
30900 | ||
30901 | ||
30902 | for ac_func in timegm | |
30903 | do | |
30904 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30905 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30906 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30907 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30909 | else | |
30910 | cat >conftest.$ac_ext <<_ACEOF | |
30911 | /* confdefs.h. */ | |
30912 | _ACEOF | |
30913 | cat confdefs.h >>conftest.$ac_ext | |
30914 | cat >>conftest.$ac_ext <<_ACEOF | |
30915 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30916 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30917 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30918 | #define $ac_func innocuous_$ac_func | |
30919 | ||
a848cd7e SC |
30920 | /* System header to define __stub macros and hopefully few prototypes, |
30921 | which can conflict with char $ac_func (); below. | |
30922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30923 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30924 | |
a848cd7e SC |
30925 | #ifdef __STDC__ |
30926 | # include <limits.h> | |
30927 | #else | |
30928 | # include <assert.h> | |
30929 | #endif | |
ac1cb8d3 VS |
30930 | |
30931 | #undef $ac_func | |
30932 | ||
a848cd7e SC |
30933 | /* Override any gcc2 internal prototype to avoid an error. */ |
30934 | #ifdef __cplusplus | |
30935 | extern "C" | |
30936 | { | |
30937 | #endif | |
30938 | /* We use char because int might match the return type of a gcc2 | |
30939 | builtin and then its argument prototype would still apply. */ | |
30940 | char $ac_func (); | |
30941 | /* The GNU C library defines this for functions which it implements | |
30942 | to always fail with ENOSYS. Some functions are actually named | |
30943 | something starting with __ and the normal name is an alias. */ | |
30944 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30945 | choke me | |
30946 | #else | |
30947 | char (*f) () = $ac_func; | |
30948 | #endif | |
30949 | #ifdef __cplusplus | |
30950 | } | |
30951 | #endif | |
30952 | ||
30953 | int | |
30954 | main () | |
30955 | { | |
30956 | return f != $ac_func; | |
30957 | ; | |
30958 | return 0; | |
30959 | } | |
30960 | _ACEOF | |
30961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30963 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30964 | ac_status=$? |
ac1cb8d3 VS |
30965 | grep -v '^ *+' conftest.er1 >conftest.err |
30966 | rm -f conftest.er1 | |
30967 | cat conftest.err >&5 | |
a848cd7e SC |
30968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30969 | (exit $ac_status); } && | |
04840eaa VS |
30970 | { ac_try='test -z "$ac_c_werror_flag" |
30971 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30973 | (eval $ac_try) 2>&5 | |
30974 | ac_status=$? | |
30975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30976 | (exit $ac_status); }; } && | |
30977 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30979 | (eval $ac_try) 2>&5 | |
30980 | ac_status=$? | |
30981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30982 | (exit $ac_status); }; }; then | |
30983 | eval "$as_ac_var=yes" | |
30984 | else | |
30985 | echo "$as_me: failed program was:" >&5 | |
30986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30987 | ||
30988 | eval "$as_ac_var=no" | |
30989 | fi | |
ac1cb8d3 VS |
30990 | rm -f conftest.err conftest.$ac_objext \ |
30991 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30992 | fi |
30993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30994 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30995 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30996 | cat >>confdefs.h <<_ACEOF | |
30997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30998 | _ACEOF | |
30999 | ||
31000 | fi | |
31001 | done | |
31002 | ||
31003 | ||
31004 | ||
31005 | ||
31006 | for ac_func in putenv setenv | |
31007 | do | |
31008 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31009 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31010 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31011 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31013 | else | |
31014 | cat >conftest.$ac_ext <<_ACEOF | |
31015 | /* confdefs.h. */ | |
31016 | _ACEOF | |
31017 | cat confdefs.h >>conftest.$ac_ext | |
31018 | cat >>conftest.$ac_ext <<_ACEOF | |
31019 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31020 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31022 | #define $ac_func innocuous_$ac_func | |
31023 | ||
a848cd7e SC |
31024 | /* System header to define __stub macros and hopefully few prototypes, |
31025 | which can conflict with char $ac_func (); below. | |
31026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31027 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31028 | |
a848cd7e SC |
31029 | #ifdef __STDC__ |
31030 | # include <limits.h> | |
31031 | #else | |
31032 | # include <assert.h> | |
31033 | #endif | |
ac1cb8d3 VS |
31034 | |
31035 | #undef $ac_func | |
31036 | ||
a848cd7e SC |
31037 | /* Override any gcc2 internal prototype to avoid an error. */ |
31038 | #ifdef __cplusplus | |
31039 | extern "C" | |
31040 | { | |
31041 | #endif | |
31042 | /* We use char because int might match the return type of a gcc2 | |
31043 | builtin and then its argument prototype would still apply. */ | |
31044 | char $ac_func (); | |
31045 | /* The GNU C library defines this for functions which it implements | |
31046 | to always fail with ENOSYS. Some functions are actually named | |
31047 | something starting with __ and the normal name is an alias. */ | |
31048 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31049 | choke me | |
31050 | #else | |
31051 | char (*f) () = $ac_func; | |
31052 | #endif | |
31053 | #ifdef __cplusplus | |
31054 | } | |
31055 | #endif | |
31056 | ||
31057 | int | |
31058 | main () | |
31059 | { | |
31060 | return f != $ac_func; | |
31061 | ; | |
31062 | return 0; | |
31063 | } | |
31064 | _ACEOF | |
31065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31067 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31068 | ac_status=$? |
ac1cb8d3 VS |
31069 | grep -v '^ *+' conftest.er1 >conftest.err |
31070 | rm -f conftest.er1 | |
31071 | cat conftest.err >&5 | |
a848cd7e SC |
31072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31073 | (exit $ac_status); } && | |
04840eaa VS |
31074 | { ac_try='test -z "$ac_c_werror_flag" |
31075 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31077 | (eval $ac_try) 2>&5 | |
31078 | ac_status=$? | |
31079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31080 | (exit $ac_status); }; } && | |
31081 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31083 | (eval $ac_try) 2>&5 | |
31084 | ac_status=$? | |
31085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31086 | (exit $ac_status); }; }; then | |
31087 | eval "$as_ac_var=yes" | |
31088 | else | |
31089 | echo "$as_me: failed program was:" >&5 | |
31090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31091 | ||
31092 | eval "$as_ac_var=no" | |
31093 | fi | |
ac1cb8d3 VS |
31094 | rm -f conftest.err conftest.$ac_objext \ |
31095 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31096 | fi |
31097 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31098 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31099 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31100 | cat >>confdefs.h <<_ACEOF | |
31101 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31102 | _ACEOF | |
31103 | break | |
31104 | fi | |
31105 | done | |
31106 | ||
31107 | ||
31108 | HAVE_SOME_SLEEP_FUNC=0 | |
31109 | if test "$USE_BEOS" = 1; then | |
31110 | cat >>confdefs.h <<\_ACEOF | |
31111 | #define HAVE_SLEEP 1 | |
31112 | _ACEOF | |
31113 | ||
31114 | HAVE_SOME_SLEEP_FUNC=1 | |
31115 | fi | |
31116 | ||
31117 | if test "$USE_DARWIN" = 1; then | |
31118 | cat >>confdefs.h <<\_ACEOF | |
31119 | #define HAVE_USLEEP 1 | |
31120 | _ACEOF | |
31121 | ||
31122 | HAVE_SOME_SLEEP_FUNC=1 | |
31123 | fi | |
31124 | ||
31125 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
31126 | POSIX4_LINK= | |
31127 | ||
31128 | for ac_func in nanosleep | |
31129 | do | |
31130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31131 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31133 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31135 | else | |
31136 | cat >conftest.$ac_ext <<_ACEOF | |
31137 | /* confdefs.h. */ | |
31138 | _ACEOF | |
31139 | cat confdefs.h >>conftest.$ac_ext | |
31140 | cat >>conftest.$ac_ext <<_ACEOF | |
31141 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31144 | #define $ac_func innocuous_$ac_func | |
31145 | ||
a848cd7e SC |
31146 | /* System header to define __stub macros and hopefully few prototypes, |
31147 | which can conflict with char $ac_func (); below. | |
31148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31149 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31150 | |
a848cd7e SC |
31151 | #ifdef __STDC__ |
31152 | # include <limits.h> | |
31153 | #else | |
31154 | # include <assert.h> | |
31155 | #endif | |
ac1cb8d3 VS |
31156 | |
31157 | #undef $ac_func | |
31158 | ||
a848cd7e SC |
31159 | /* Override any gcc2 internal prototype to avoid an error. */ |
31160 | #ifdef __cplusplus | |
31161 | extern "C" | |
31162 | { | |
31163 | #endif | |
31164 | /* We use char because int might match the return type of a gcc2 | |
31165 | builtin and then its argument prototype would still apply. */ | |
31166 | char $ac_func (); | |
31167 | /* The GNU C library defines this for functions which it implements | |
31168 | to always fail with ENOSYS. Some functions are actually named | |
31169 | something starting with __ and the normal name is an alias. */ | |
31170 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31171 | choke me | |
31172 | #else | |
31173 | char (*f) () = $ac_func; | |
31174 | #endif | |
31175 | #ifdef __cplusplus | |
31176 | } | |
31177 | #endif | |
31178 | ||
31179 | int | |
31180 | main () | |
31181 | { | |
31182 | return f != $ac_func; | |
31183 | ; | |
31184 | return 0; | |
31185 | } | |
31186 | _ACEOF | |
31187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31190 | ac_status=$? |
ac1cb8d3 VS |
31191 | grep -v '^ *+' conftest.er1 >conftest.err |
31192 | rm -f conftest.er1 | |
31193 | cat conftest.err >&5 | |
a848cd7e SC |
31194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31195 | (exit $ac_status); } && | |
04840eaa VS |
31196 | { ac_try='test -z "$ac_c_werror_flag" |
31197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31199 | (eval $ac_try) 2>&5 | |
31200 | ac_status=$? | |
31201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31202 | (exit $ac_status); }; } && | |
31203 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31205 | (eval $ac_try) 2>&5 | |
31206 | ac_status=$? | |
31207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31208 | (exit $ac_status); }; }; then | |
31209 | eval "$as_ac_var=yes" | |
31210 | else | |
31211 | echo "$as_me: failed program was:" >&5 | |
31212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31213 | ||
31214 | eval "$as_ac_var=no" | |
31215 | fi | |
ac1cb8d3 VS |
31216 | rm -f conftest.err conftest.$ac_objext \ |
31217 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31218 | fi |
31219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31220 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31221 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31222 | cat >>confdefs.h <<_ACEOF | |
31223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31224 | _ACEOF | |
31225 | cat >>confdefs.h <<\_ACEOF | |
31226 | #define HAVE_NANOSLEEP 1 | |
31227 | _ACEOF | |
31228 | ||
31229 | else | |
31230 | ||
31231 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
31232 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
31233 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
31234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31235 | else | |
31236 | ac_check_lib_save_LIBS=$LIBS | |
31237 | LIBS="-lposix4 $LIBS" | |
31238 | cat >conftest.$ac_ext <<_ACEOF | |
31239 | /* confdefs.h. */ | |
31240 | _ACEOF | |
31241 | cat confdefs.h >>conftest.$ac_ext | |
31242 | cat >>conftest.$ac_ext <<_ACEOF | |
31243 | /* end confdefs.h. */ | |
31244 | ||
31245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31246 | #ifdef __cplusplus | |
31247 | extern "C" | |
31248 | #endif | |
31249 | /* We use char because int might match the return type of a gcc2 | |
31250 | builtin and then its argument prototype would still apply. */ | |
31251 | char nanosleep (); | |
31252 | int | |
31253 | main () | |
31254 | { | |
31255 | nanosleep (); | |
31256 | ; | |
31257 | return 0; | |
31258 | } | |
31259 | _ACEOF | |
31260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31262 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31263 | ac_status=$? |
ac1cb8d3 VS |
31264 | grep -v '^ *+' conftest.er1 >conftest.err |
31265 | rm -f conftest.er1 | |
31266 | cat conftest.err >&5 | |
a848cd7e SC |
31267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31268 | (exit $ac_status); } && | |
04840eaa VS |
31269 | { ac_try='test -z "$ac_c_werror_flag" |
31270 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31272 | (eval $ac_try) 2>&5 | |
31273 | ac_status=$? | |
31274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31275 | (exit $ac_status); }; } && | |
31276 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31278 | (eval $ac_try) 2>&5 | |
31279 | ac_status=$? | |
31280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31281 | (exit $ac_status); }; }; then | |
31282 | ac_cv_lib_posix4_nanosleep=yes | |
31283 | else | |
31284 | echo "$as_me: failed program was:" >&5 | |
31285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31286 | ||
31287 | ac_cv_lib_posix4_nanosleep=no | |
31288 | fi | |
ac1cb8d3 VS |
31289 | rm -f conftest.err conftest.$ac_objext \ |
31290 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31291 | LIBS=$ac_check_lib_save_LIBS |
31292 | fi | |
31293 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
31294 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
31295 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
31296 | ||
31297 | cat >>confdefs.h <<\_ACEOF | |
31298 | #define HAVE_NANOSLEEP 1 | |
31299 | _ACEOF | |
31300 | ||
31301 | POSIX4_LINK=" -lposix4" | |
31302 | ||
31303 | else | |
31304 | ||
31305 | ||
31306 | for ac_func in usleep | |
31307 | do | |
31308 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31309 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31310 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31311 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31313 | else | |
31314 | cat >conftest.$ac_ext <<_ACEOF | |
31315 | /* confdefs.h. */ | |
31316 | _ACEOF | |
31317 | cat confdefs.h >>conftest.$ac_ext | |
31318 | cat >>conftest.$ac_ext <<_ACEOF | |
31319 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31320 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31322 | #define $ac_func innocuous_$ac_func | |
31323 | ||
a848cd7e SC |
31324 | /* System header to define __stub macros and hopefully few prototypes, |
31325 | which can conflict with char $ac_func (); below. | |
31326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31327 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31328 | |
a848cd7e SC |
31329 | #ifdef __STDC__ |
31330 | # include <limits.h> | |
31331 | #else | |
31332 | # include <assert.h> | |
31333 | #endif | |
ac1cb8d3 VS |
31334 | |
31335 | #undef $ac_func | |
31336 | ||
a848cd7e SC |
31337 | /* Override any gcc2 internal prototype to avoid an error. */ |
31338 | #ifdef __cplusplus | |
31339 | extern "C" | |
31340 | { | |
31341 | #endif | |
31342 | /* We use char because int might match the return type of a gcc2 | |
31343 | builtin and then its argument prototype would still apply. */ | |
31344 | char $ac_func (); | |
31345 | /* The GNU C library defines this for functions which it implements | |
31346 | to always fail with ENOSYS. Some functions are actually named | |
31347 | something starting with __ and the normal name is an alias. */ | |
31348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31349 | choke me | |
31350 | #else | |
31351 | char (*f) () = $ac_func; | |
31352 | #endif | |
31353 | #ifdef __cplusplus | |
31354 | } | |
31355 | #endif | |
31356 | ||
31357 | int | |
31358 | main () | |
31359 | { | |
31360 | return f != $ac_func; | |
31361 | ; | |
31362 | return 0; | |
31363 | } | |
31364 | _ACEOF | |
31365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31367 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31368 | ac_status=$? |
ac1cb8d3 VS |
31369 | grep -v '^ *+' conftest.er1 >conftest.err |
31370 | rm -f conftest.er1 | |
31371 | cat conftest.err >&5 | |
a848cd7e SC |
31372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31373 | (exit $ac_status); } && | |
04840eaa VS |
31374 | { ac_try='test -z "$ac_c_werror_flag" |
31375 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31377 | (eval $ac_try) 2>&5 | |
31378 | ac_status=$? | |
31379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31380 | (exit $ac_status); }; } && | |
31381 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31383 | (eval $ac_try) 2>&5 | |
31384 | ac_status=$? | |
31385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31386 | (exit $ac_status); }; }; then | |
31387 | eval "$as_ac_var=yes" | |
31388 | else | |
31389 | echo "$as_me: failed program was:" >&5 | |
31390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31391 | ||
31392 | eval "$as_ac_var=no" | |
31393 | fi | |
ac1cb8d3 VS |
31394 | rm -f conftest.err conftest.$ac_objext \ |
31395 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31396 | fi |
31397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31398 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31399 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31400 | cat >>confdefs.h <<_ACEOF | |
31401 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31402 | _ACEOF | |
31403 | cat >>confdefs.h <<\_ACEOF | |
31404 | #define HAVE_USLEEP 1 | |
31405 | _ACEOF | |
31406 | ||
31407 | else | |
31408 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
31409 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
31410 | ||
31411 | fi | |
31412 | done | |
31413 | ||
31414 | ||
31415 | ||
31416 | fi | |
31417 | ||
31418 | ||
31419 | ||
31420 | fi | |
31421 | done | |
31422 | ||
31423 | fi | |
31424 | ||
31425 | ||
31426 | ||
31427 | for ac_func in uname gethostname | |
31428 | do | |
31429 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31430 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31431 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31432 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31434 | else | |
31435 | cat >conftest.$ac_ext <<_ACEOF | |
31436 | /* confdefs.h. */ | |
31437 | _ACEOF | |
31438 | cat confdefs.h >>conftest.$ac_ext | |
31439 | cat >>conftest.$ac_ext <<_ACEOF | |
31440 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31441 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31442 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31443 | #define $ac_func innocuous_$ac_func | |
31444 | ||
a848cd7e SC |
31445 | /* System header to define __stub macros and hopefully few prototypes, |
31446 | which can conflict with char $ac_func (); below. | |
31447 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31448 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31449 | |
a848cd7e SC |
31450 | #ifdef __STDC__ |
31451 | # include <limits.h> | |
31452 | #else | |
31453 | # include <assert.h> | |
31454 | #endif | |
ac1cb8d3 VS |
31455 | |
31456 | #undef $ac_func | |
31457 | ||
a848cd7e SC |
31458 | /* Override any gcc2 internal prototype to avoid an error. */ |
31459 | #ifdef __cplusplus | |
31460 | extern "C" | |
31461 | { | |
31462 | #endif | |
31463 | /* We use char because int might match the return type of a gcc2 | |
31464 | builtin and then its argument prototype would still apply. */ | |
31465 | char $ac_func (); | |
31466 | /* The GNU C library defines this for functions which it implements | |
31467 | to always fail with ENOSYS. Some functions are actually named | |
31468 | something starting with __ and the normal name is an alias. */ | |
31469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31470 | choke me | |
31471 | #else | |
31472 | char (*f) () = $ac_func; | |
31473 | #endif | |
31474 | #ifdef __cplusplus | |
31475 | } | |
31476 | #endif | |
31477 | ||
31478 | int | |
31479 | main () | |
31480 | { | |
31481 | return f != $ac_func; | |
31482 | ; | |
31483 | return 0; | |
31484 | } | |
31485 | _ACEOF | |
31486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31489 | ac_status=$? |
ac1cb8d3 VS |
31490 | grep -v '^ *+' conftest.er1 >conftest.err |
31491 | rm -f conftest.er1 | |
31492 | cat conftest.err >&5 | |
a848cd7e SC |
31493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31494 | (exit $ac_status); } && | |
04840eaa VS |
31495 | { ac_try='test -z "$ac_c_werror_flag" |
31496 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31498 | (eval $ac_try) 2>&5 | |
31499 | ac_status=$? | |
31500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31501 | (exit $ac_status); }; } && | |
31502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31504 | (eval $ac_try) 2>&5 | |
31505 | ac_status=$? | |
31506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31507 | (exit $ac_status); }; }; then | |
31508 | eval "$as_ac_var=yes" | |
31509 | else | |
31510 | echo "$as_me: failed program was:" >&5 | |
31511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31512 | ||
31513 | eval "$as_ac_var=no" | |
31514 | fi | |
ac1cb8d3 VS |
31515 | rm -f conftest.err conftest.$ac_objext \ |
31516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31517 | fi |
31518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31520 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31521 | cat >>confdefs.h <<_ACEOF | |
31522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31523 | _ACEOF | |
31524 | break | |
31525 | fi | |
31526 | done | |
31527 | ||
31528 | ||
31529 | ||
31530 | ||
31531 | ac_ext=cc | |
31532 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31533 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31534 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31535 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31536 | ||
31537 | ||
31538 | ||
31539 | for ac_func in strtok_r | |
31540 | do | |
31541 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31542 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31543 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31544 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31546 | else | |
31547 | cat >conftest.$ac_ext <<_ACEOF | |
31548 | /* confdefs.h. */ | |
31549 | _ACEOF | |
31550 | cat confdefs.h >>conftest.$ac_ext | |
31551 | cat >>conftest.$ac_ext <<_ACEOF | |
31552 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31555 | #define $ac_func innocuous_$ac_func | |
31556 | ||
a848cd7e SC |
31557 | /* System header to define __stub macros and hopefully few prototypes, |
31558 | which can conflict with char $ac_func (); below. | |
31559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31560 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31561 | |
a848cd7e SC |
31562 | #ifdef __STDC__ |
31563 | # include <limits.h> | |
31564 | #else | |
31565 | # include <assert.h> | |
31566 | #endif | |
ac1cb8d3 VS |
31567 | |
31568 | #undef $ac_func | |
31569 | ||
a848cd7e SC |
31570 | /* Override any gcc2 internal prototype to avoid an error. */ |
31571 | #ifdef __cplusplus | |
31572 | extern "C" | |
31573 | { | |
31574 | #endif | |
31575 | /* We use char because int might match the return type of a gcc2 | |
31576 | builtin and then its argument prototype would still apply. */ | |
31577 | char $ac_func (); | |
31578 | /* The GNU C library defines this for functions which it implements | |
31579 | to always fail with ENOSYS. Some functions are actually named | |
31580 | something starting with __ and the normal name is an alias. */ | |
31581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31582 | choke me | |
31583 | #else | |
31584 | char (*f) () = $ac_func; | |
31585 | #endif | |
31586 | #ifdef __cplusplus | |
31587 | } | |
31588 | #endif | |
31589 | ||
31590 | int | |
31591 | main () | |
31592 | { | |
31593 | return f != $ac_func; | |
31594 | ; | |
31595 | return 0; | |
31596 | } | |
31597 | _ACEOF | |
31598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31600 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31601 | ac_status=$? |
ac1cb8d3 VS |
31602 | grep -v '^ *+' conftest.er1 >conftest.err |
31603 | rm -f conftest.er1 | |
31604 | cat conftest.err >&5 | |
a848cd7e SC |
31605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31606 | (exit $ac_status); } && | |
04840eaa VS |
31607 | { ac_try='test -z "$ac_cxx_werror_flag" |
31608 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31610 | (eval $ac_try) 2>&5 | |
31611 | ac_status=$? | |
31612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31613 | (exit $ac_status); }; } && | |
31614 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31616 | (eval $ac_try) 2>&5 | |
31617 | ac_status=$? | |
31618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31619 | (exit $ac_status); }; }; then | |
31620 | eval "$as_ac_var=yes" | |
31621 | else | |
31622 | echo "$as_me: failed program was:" >&5 | |
31623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31624 | ||
31625 | eval "$as_ac_var=no" | |
31626 | fi | |
ac1cb8d3 VS |
31627 | rm -f conftest.err conftest.$ac_objext \ |
31628 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31629 | fi |
31630 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31631 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31632 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31633 | cat >>confdefs.h <<_ACEOF | |
31634 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31635 | _ACEOF | |
31636 | ||
31637 | fi | |
31638 | done | |
31639 | ||
31640 | ||
31641 | ac_ext=c | |
31642 | ac_cpp='$CPP $CPPFLAGS' | |
31643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31646 | ||
31647 | ||
31648 | INET_LINK= | |
31649 | ||
31650 | for ac_func in inet_addr | |
31651 | do | |
31652 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31653 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31654 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31655 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31657 | else | |
31658 | cat >conftest.$ac_ext <<_ACEOF | |
31659 | /* confdefs.h. */ | |
31660 | _ACEOF | |
31661 | cat confdefs.h >>conftest.$ac_ext | |
31662 | cat >>conftest.$ac_ext <<_ACEOF | |
31663 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31664 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31665 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31666 | #define $ac_func innocuous_$ac_func | |
31667 | ||
a848cd7e SC |
31668 | /* System header to define __stub macros and hopefully few prototypes, |
31669 | which can conflict with char $ac_func (); below. | |
31670 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31671 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31672 | |
a848cd7e SC |
31673 | #ifdef __STDC__ |
31674 | # include <limits.h> | |
31675 | #else | |
31676 | # include <assert.h> | |
31677 | #endif | |
ac1cb8d3 VS |
31678 | |
31679 | #undef $ac_func | |
31680 | ||
a848cd7e SC |
31681 | /* Override any gcc2 internal prototype to avoid an error. */ |
31682 | #ifdef __cplusplus | |
31683 | extern "C" | |
31684 | { | |
31685 | #endif | |
31686 | /* We use char because int might match the return type of a gcc2 | |
31687 | builtin and then its argument prototype would still apply. */ | |
31688 | char $ac_func (); | |
31689 | /* The GNU C library defines this for functions which it implements | |
31690 | to always fail with ENOSYS. Some functions are actually named | |
31691 | something starting with __ and the normal name is an alias. */ | |
31692 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31693 | choke me | |
31694 | #else | |
31695 | char (*f) () = $ac_func; | |
31696 | #endif | |
31697 | #ifdef __cplusplus | |
31698 | } | |
31699 | #endif | |
31700 | ||
31701 | int | |
31702 | main () | |
31703 | { | |
31704 | return f != $ac_func; | |
31705 | ; | |
31706 | return 0; | |
31707 | } | |
31708 | _ACEOF | |
31709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31711 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31712 | ac_status=$? |
ac1cb8d3 VS |
31713 | grep -v '^ *+' conftest.er1 >conftest.err |
31714 | rm -f conftest.er1 | |
31715 | cat conftest.err >&5 | |
a848cd7e SC |
31716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31717 | (exit $ac_status); } && | |
04840eaa VS |
31718 | { ac_try='test -z "$ac_c_werror_flag" |
31719 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31721 | (eval $ac_try) 2>&5 | |
31722 | ac_status=$? | |
31723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31724 | (exit $ac_status); }; } && | |
31725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31727 | (eval $ac_try) 2>&5 | |
31728 | ac_status=$? | |
31729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31730 | (exit $ac_status); }; }; then | |
31731 | eval "$as_ac_var=yes" | |
31732 | else | |
31733 | echo "$as_me: failed program was:" >&5 | |
31734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31735 | ||
31736 | eval "$as_ac_var=no" | |
31737 | fi | |
ac1cb8d3 VS |
31738 | rm -f conftest.err conftest.$ac_objext \ |
31739 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31740 | fi |
31741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31742 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31743 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31744 | cat >>confdefs.h <<_ACEOF | |
31745 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31746 | _ACEOF | |
31747 | cat >>confdefs.h <<\_ACEOF | |
31748 | #define HAVE_INET_ADDR 1 | |
31749 | _ACEOF | |
31750 | ||
31751 | else | |
31752 | ||
31753 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31754 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31755 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31757 | else | |
31758 | ac_check_lib_save_LIBS=$LIBS | |
31759 | LIBS="-lnsl $LIBS" | |
31760 | cat >conftest.$ac_ext <<_ACEOF | |
31761 | /* confdefs.h. */ | |
31762 | _ACEOF | |
31763 | cat confdefs.h >>conftest.$ac_ext | |
31764 | cat >>conftest.$ac_ext <<_ACEOF | |
31765 | /* end confdefs.h. */ | |
31766 | ||
31767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31768 | #ifdef __cplusplus | |
31769 | extern "C" | |
31770 | #endif | |
31771 | /* We use char because int might match the return type of a gcc2 | |
31772 | builtin and then its argument prototype would still apply. */ | |
31773 | char inet_addr (); | |
31774 | int | |
31775 | main () | |
31776 | { | |
31777 | inet_addr (); | |
31778 | ; | |
31779 | return 0; | |
31780 | } | |
31781 | _ACEOF | |
31782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31784 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31785 | ac_status=$? |
ac1cb8d3 VS |
31786 | grep -v '^ *+' conftest.er1 >conftest.err |
31787 | rm -f conftest.er1 | |
31788 | cat conftest.err >&5 | |
a848cd7e SC |
31789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31790 | (exit $ac_status); } && | |
04840eaa VS |
31791 | { ac_try='test -z "$ac_c_werror_flag" |
31792 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31794 | (eval $ac_try) 2>&5 | |
31795 | ac_status=$? | |
31796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31797 | (exit $ac_status); }; } && | |
31798 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31800 | (eval $ac_try) 2>&5 | |
31801 | ac_status=$? | |
31802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31803 | (exit $ac_status); }; }; then | |
31804 | ac_cv_lib_nsl_inet_addr=yes | |
31805 | else | |
31806 | echo "$as_me: failed program was:" >&5 | |
31807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31808 | ||
31809 | ac_cv_lib_nsl_inet_addr=no | |
31810 | fi | |
ac1cb8d3 VS |
31811 | rm -f conftest.err conftest.$ac_objext \ |
31812 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31813 | LIBS=$ac_check_lib_save_LIBS |
31814 | fi | |
31815 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31816 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31817 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31818 | INET_LINK="nsl" | |
31819 | else | |
31820 | ||
31821 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31822 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31823 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31825 | else | |
31826 | ac_check_lib_save_LIBS=$LIBS | |
31827 | LIBS="-lresolv $LIBS" | |
31828 | cat >conftest.$ac_ext <<_ACEOF | |
31829 | /* confdefs.h. */ | |
31830 | _ACEOF | |
31831 | cat confdefs.h >>conftest.$ac_ext | |
31832 | cat >>conftest.$ac_ext <<_ACEOF | |
31833 | /* end confdefs.h. */ | |
31834 | ||
31835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31836 | #ifdef __cplusplus | |
31837 | extern "C" | |
31838 | #endif | |
31839 | /* We use char because int might match the return type of a gcc2 | |
31840 | builtin and then its argument prototype would still apply. */ | |
31841 | char inet_addr (); | |
31842 | int | |
31843 | main () | |
31844 | { | |
31845 | inet_addr (); | |
31846 | ; | |
31847 | return 0; | |
31848 | } | |
31849 | _ACEOF | |
31850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31852 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31853 | ac_status=$? |
ac1cb8d3 VS |
31854 | grep -v '^ *+' conftest.er1 >conftest.err |
31855 | rm -f conftest.er1 | |
31856 | cat conftest.err >&5 | |
a848cd7e SC |
31857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31858 | (exit $ac_status); } && | |
04840eaa VS |
31859 | { ac_try='test -z "$ac_c_werror_flag" |
31860 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31862 | (eval $ac_try) 2>&5 | |
31863 | ac_status=$? | |
31864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31865 | (exit $ac_status); }; } && | |
31866 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31868 | (eval $ac_try) 2>&5 | |
31869 | ac_status=$? | |
31870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31871 | (exit $ac_status); }; }; then | |
31872 | ac_cv_lib_resolv_inet_addr=yes | |
31873 | else | |
31874 | echo "$as_me: failed program was:" >&5 | |
31875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31876 | ||
31877 | ac_cv_lib_resolv_inet_addr=no | |
31878 | fi | |
ac1cb8d3 VS |
31879 | rm -f conftest.err conftest.$ac_objext \ |
31880 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31881 | LIBS=$ac_check_lib_save_LIBS |
31882 | fi | |
31883 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31884 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31885 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31886 | INET_LINK="resolv" | |
31887 | else | |
31888 | ||
31889 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31890 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31891 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31893 | else | |
31894 | ac_check_lib_save_LIBS=$LIBS | |
31895 | LIBS="-lsocket $LIBS" | |
31896 | cat >conftest.$ac_ext <<_ACEOF | |
31897 | /* confdefs.h. */ | |
31898 | _ACEOF | |
31899 | cat confdefs.h >>conftest.$ac_ext | |
31900 | cat >>conftest.$ac_ext <<_ACEOF | |
31901 | /* end confdefs.h. */ | |
31902 | ||
31903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31904 | #ifdef __cplusplus | |
31905 | extern "C" | |
31906 | #endif | |
31907 | /* We use char because int might match the return type of a gcc2 | |
31908 | builtin and then its argument prototype would still apply. */ | |
31909 | char inet_addr (); | |
31910 | int | |
31911 | main () | |
31912 | { | |
31913 | inet_addr (); | |
31914 | ; | |
31915 | return 0; | |
31916 | } | |
31917 | _ACEOF | |
31918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31920 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31921 | ac_status=$? |
ac1cb8d3 VS |
31922 | grep -v '^ *+' conftest.er1 >conftest.err |
31923 | rm -f conftest.er1 | |
31924 | cat conftest.err >&5 | |
a848cd7e SC |
31925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31926 | (exit $ac_status); } && | |
04840eaa VS |
31927 | { ac_try='test -z "$ac_c_werror_flag" |
31928 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31930 | (eval $ac_try) 2>&5 | |
31931 | ac_status=$? | |
31932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31933 | (exit $ac_status); }; } && | |
31934 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31936 | (eval $ac_try) 2>&5 | |
31937 | ac_status=$? | |
31938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31939 | (exit $ac_status); }; }; then | |
31940 | ac_cv_lib_socket_inet_addr=yes | |
31941 | else | |
31942 | echo "$as_me: failed program was:" >&5 | |
31943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31944 | ||
31945 | ac_cv_lib_socket_inet_addr=no | |
31946 | fi | |
ac1cb8d3 VS |
31947 | rm -f conftest.err conftest.$ac_objext \ |
31948 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31949 | LIBS=$ac_check_lib_save_LIBS |
31950 | fi | |
31951 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31952 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31953 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31954 | INET_LINK="socket" | |
31955 | ||
31956 | fi | |
31957 | ||
31958 | ||
31959 | ||
31960 | fi | |
31961 | ||
31962 | ||
31963 | ||
31964 | fi | |
31965 | ||
31966 | ||
31967 | ||
31968 | fi | |
31969 | done | |
31970 | ||
31971 | ||
31972 | ||
31973 | for ac_func in inet_aton | |
31974 | do | |
31975 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31976 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31977 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31978 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31980 | else | |
31981 | cat >conftest.$ac_ext <<_ACEOF | |
31982 | /* confdefs.h. */ | |
31983 | _ACEOF | |
31984 | cat confdefs.h >>conftest.$ac_ext | |
31985 | cat >>conftest.$ac_ext <<_ACEOF | |
31986 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31987 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31988 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31989 | #define $ac_func innocuous_$ac_func | |
31990 | ||
a848cd7e SC |
31991 | /* System header to define __stub macros and hopefully few prototypes, |
31992 | which can conflict with char $ac_func (); below. | |
31993 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31994 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31995 | |
a848cd7e SC |
31996 | #ifdef __STDC__ |
31997 | # include <limits.h> | |
31998 | #else | |
31999 | # include <assert.h> | |
32000 | #endif | |
ac1cb8d3 VS |
32001 | |
32002 | #undef $ac_func | |
32003 | ||
a848cd7e SC |
32004 | /* Override any gcc2 internal prototype to avoid an error. */ |
32005 | #ifdef __cplusplus | |
32006 | extern "C" | |
32007 | { | |
32008 | #endif | |
32009 | /* We use char because int might match the return type of a gcc2 | |
32010 | builtin and then its argument prototype would still apply. */ | |
32011 | char $ac_func (); | |
32012 | /* The GNU C library defines this for functions which it implements | |
32013 | to always fail with ENOSYS. Some functions are actually named | |
32014 | something starting with __ and the normal name is an alias. */ | |
32015 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32016 | choke me | |
32017 | #else | |
32018 | char (*f) () = $ac_func; | |
32019 | #endif | |
32020 | #ifdef __cplusplus | |
32021 | } | |
32022 | #endif | |
32023 | ||
32024 | int | |
32025 | main () | |
32026 | { | |
32027 | return f != $ac_func; | |
32028 | ; | |
32029 | return 0; | |
32030 | } | |
32031 | _ACEOF | |
32032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32034 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32035 | ac_status=$? |
ac1cb8d3 VS |
32036 | grep -v '^ *+' conftest.er1 >conftest.err |
32037 | rm -f conftest.er1 | |
32038 | cat conftest.err >&5 | |
a848cd7e SC |
32039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32040 | (exit $ac_status); } && | |
04840eaa VS |
32041 | { ac_try='test -z "$ac_c_werror_flag" |
32042 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32044 | (eval $ac_try) 2>&5 | |
32045 | ac_status=$? | |
32046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32047 | (exit $ac_status); }; } && | |
32048 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32050 | (eval $ac_try) 2>&5 | |
32051 | ac_status=$? | |
32052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32053 | (exit $ac_status); }; }; then | |
32054 | eval "$as_ac_var=yes" | |
32055 | else | |
32056 | echo "$as_me: failed program was:" >&5 | |
32057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32058 | ||
32059 | eval "$as_ac_var=no" | |
32060 | fi | |
ac1cb8d3 VS |
32061 | rm -f conftest.err conftest.$ac_objext \ |
32062 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32063 | fi |
32064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32065 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32066 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32067 | cat >>confdefs.h <<_ACEOF | |
32068 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32069 | _ACEOF | |
32070 | cat >>confdefs.h <<\_ACEOF | |
32071 | #define HAVE_INET_ATON 1 | |
32072 | _ACEOF | |
32073 | ||
32074 | else | |
32075 | ||
32076 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
32077 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
32078 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
32079 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
32080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32081 | else | |
32082 | ac_check_lib_save_LIBS=$LIBS | |
32083 | LIBS="-l$INET_LINK $LIBS" | |
32084 | cat >conftest.$ac_ext <<_ACEOF | |
32085 | /* confdefs.h. */ | |
32086 | _ACEOF | |
32087 | cat confdefs.h >>conftest.$ac_ext | |
32088 | cat >>conftest.$ac_ext <<_ACEOF | |
32089 | /* end confdefs.h. */ | |
32090 | ||
32091 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32092 | #ifdef __cplusplus | |
32093 | extern "C" | |
32094 | #endif | |
32095 | /* We use char because int might match the return type of a gcc2 | |
32096 | builtin and then its argument prototype would still apply. */ | |
32097 | char inet_aton (); | |
32098 | int | |
32099 | main () | |
32100 | { | |
32101 | inet_aton (); | |
32102 | ; | |
32103 | return 0; | |
32104 | } | |
32105 | _ACEOF | |
32106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32108 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32109 | ac_status=$? |
ac1cb8d3 VS |
32110 | grep -v '^ *+' conftest.er1 >conftest.err |
32111 | rm -f conftest.er1 | |
32112 | cat conftest.err >&5 | |
a848cd7e SC |
32113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32114 | (exit $ac_status); } && | |
04840eaa VS |
32115 | { ac_try='test -z "$ac_c_werror_flag" |
32116 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32118 | (eval $ac_try) 2>&5 | |
32119 | ac_status=$? | |
32120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32121 | (exit $ac_status); }; } && | |
32122 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32124 | (eval $ac_try) 2>&5 | |
32125 | ac_status=$? | |
32126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32127 | (exit $ac_status); }; }; then | |
32128 | eval "$as_ac_Lib=yes" | |
32129 | else | |
32130 | echo "$as_me: failed program was:" >&5 | |
32131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32132 | ||
32133 | eval "$as_ac_Lib=no" | |
32134 | fi | |
ac1cb8d3 VS |
32135 | rm -f conftest.err conftest.$ac_objext \ |
32136 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32137 | LIBS=$ac_check_lib_save_LIBS |
32138 | fi | |
32139 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
32140 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
32141 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
32142 | cat >>confdefs.h <<\_ACEOF | |
32143 | #define HAVE_INET_ATON 1 | |
32144 | _ACEOF | |
32145 | ||
32146 | fi | |
32147 | ||
32148 | ||
32149 | fi | |
32150 | done | |
32151 | ||
32152 | ||
32153 | if test "x$INET_LINK" != "x"; then | |
32154 | cat >>confdefs.h <<\_ACEOF | |
32155 | #define HAVE_INET_ADDR 1 | |
32156 | _ACEOF | |
32157 | ||
32158 | INET_LINK=" -l$INET_LINK" | |
32159 | fi | |
32160 | ||
32161 | fi | |
32162 | ||
32163 | ||
32164 | ||
32165 | EXTRALIBS_ESD= | |
32166 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
32167 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
32168 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
32169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32170 | else | |
32171 | ac_check_lib_save_LIBS=$LIBS | |
32172 | LIBS="-lesd $LIBS" | |
32173 | cat >conftest.$ac_ext <<_ACEOF | |
32174 | /* confdefs.h. */ | |
32175 | _ACEOF | |
32176 | cat confdefs.h >>conftest.$ac_ext | |
32177 | cat >>conftest.$ac_ext <<_ACEOF | |
32178 | /* end confdefs.h. */ | |
32179 | ||
32180 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32181 | #ifdef __cplusplus | |
32182 | extern "C" | |
32183 | #endif | |
32184 | /* We use char because int might match the return type of a gcc2 | |
32185 | builtin and then its argument prototype would still apply. */ | |
32186 | char esd_close (); | |
32187 | int | |
32188 | main () | |
32189 | { | |
32190 | esd_close (); | |
32191 | ; | |
32192 | return 0; | |
32193 | } | |
32194 | _ACEOF | |
32195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32197 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32198 | ac_status=$? |
ac1cb8d3 VS |
32199 | grep -v '^ *+' conftest.er1 >conftest.err |
32200 | rm -f conftest.er1 | |
32201 | cat conftest.err >&5 | |
a848cd7e SC |
32202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32203 | (exit $ac_status); } && | |
04840eaa VS |
32204 | { ac_try='test -z "$ac_c_werror_flag" |
32205 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32207 | (eval $ac_try) 2>&5 | |
32208 | ac_status=$? | |
32209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32210 | (exit $ac_status); }; } && | |
32211 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32213 | (eval $ac_try) 2>&5 | |
32214 | ac_status=$? | |
32215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32216 | (exit $ac_status); }; }; then | |
32217 | ac_cv_lib_esd_esd_close=yes | |
32218 | else | |
32219 | echo "$as_me: failed program was:" >&5 | |
32220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32221 | ||
32222 | ac_cv_lib_esd_esd_close=no | |
32223 | fi | |
ac1cb8d3 VS |
32224 | rm -f conftest.err conftest.$ac_objext \ |
32225 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32226 | LIBS=$ac_check_lib_save_LIBS |
32227 | fi | |
32228 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
32229 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
32230 | if test $ac_cv_lib_esd_esd_close = yes; then | |
32231 | ||
32232 | ||
32233 | for ac_header in esd.h | |
32234 | do | |
32235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32241 | fi | |
32242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32244 | else | |
32245 | # Is the header compilable? | |
32246 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32247 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32248 | cat >conftest.$ac_ext <<_ACEOF | |
32249 | /* confdefs.h. */ | |
32250 | _ACEOF | |
32251 | cat confdefs.h >>conftest.$ac_ext | |
32252 | cat >>conftest.$ac_ext <<_ACEOF | |
32253 | /* end confdefs.h. */ | |
32254 | $ac_includes_default | |
32255 | #include <$ac_header> | |
32256 | _ACEOF | |
32257 | rm -f conftest.$ac_objext | |
32258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32260 | ac_status=$? |
ac1cb8d3 VS |
32261 | grep -v '^ *+' conftest.er1 >conftest.err |
32262 | rm -f conftest.er1 | |
32263 | cat conftest.err >&5 | |
a848cd7e SC |
32264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32265 | (exit $ac_status); } && | |
04840eaa VS |
32266 | { ac_try='test -z "$ac_c_werror_flag" |
32267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32269 | (eval $ac_try) 2>&5 | |
32270 | ac_status=$? | |
32271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32272 | (exit $ac_status); }; } && | |
32273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32275 | (eval $ac_try) 2>&5 | |
32276 | ac_status=$? | |
32277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32278 | (exit $ac_status); }; }; then | |
32279 | ac_header_compiler=yes | |
32280 | else | |
32281 | echo "$as_me: failed program was:" >&5 | |
32282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32283 | ||
32284 | ac_header_compiler=no | |
32285 | fi | |
ac1cb8d3 | 32286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32287 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32288 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32289 | ||
32290 | # Is the header present? | |
32291 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32292 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32293 | cat >conftest.$ac_ext <<_ACEOF | |
32294 | /* confdefs.h. */ | |
32295 | _ACEOF | |
32296 | cat confdefs.h >>conftest.$ac_ext | |
32297 | cat >>conftest.$ac_ext <<_ACEOF | |
32298 | /* end confdefs.h. */ | |
32299 | #include <$ac_header> | |
32300 | _ACEOF | |
32301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32302 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32303 | ac_status=$? | |
32304 | grep -v '^ *+' conftest.er1 >conftest.err | |
32305 | rm -f conftest.er1 | |
32306 | cat conftest.err >&5 | |
32307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32308 | (exit $ac_status); } >/dev/null; then | |
32309 | if test -s conftest.err; then | |
32310 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32311 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32312 | else |
32313 | ac_cpp_err= | |
32314 | fi | |
32315 | else | |
32316 | ac_cpp_err=yes | |
32317 | fi | |
32318 | if test -z "$ac_cpp_err"; then | |
32319 | ac_header_preproc=yes | |
32320 | else | |
32321 | echo "$as_me: failed program was:" >&5 | |
32322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32323 | ||
32324 | ac_header_preproc=no | |
32325 | fi | |
32326 | rm -f conftest.err conftest.$ac_ext | |
32327 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32328 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32329 | ||
32330 | # So? What about this header? | |
ac1cb8d3 VS |
32331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32332 | yes:no: ) | |
a848cd7e SC |
32333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32334 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32336 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32337 | ac_header_preproc=yes | |
a848cd7e | 32338 | ;; |
ac1cb8d3 | 32339 | no:yes:* ) |
a848cd7e SC |
32340 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32341 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32342 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32343 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32344 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32345 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32346 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32347 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32349 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32350 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32351 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32352 | ( |
32353 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32354 | ## ----------------------------------------- ## |
32355 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32356 | ## ----------------------------------------- ## | |
a848cd7e SC |
32357 | _ASBOX |
32358 | ) | | |
32359 | sed "s/^/$as_me: WARNING: /" >&2 | |
32360 | ;; | |
32361 | esac | |
32362 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32366 | else | |
ac1cb8d3 | 32367 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32368 | fi |
32369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32371 | ||
32372 | fi | |
32373 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32374 | cat >>confdefs.h <<_ACEOF | |
32375 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32376 | _ACEOF | |
32377 | ||
32378 | EXTRALIBS_ESD="-lesd" | |
32379 | ||
32380 | fi | |
32381 | ||
32382 | done | |
32383 | ||
32384 | ||
32385 | fi | |
32386 | ||
32387 | ||
32388 | ||
32389 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
32390 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
32391 | cat >conftest.$ac_ext <<_ACEOF | |
32392 | /* confdefs.h. */ | |
32393 | _ACEOF | |
32394 | cat confdefs.h >>conftest.$ac_ext | |
32395 | cat >>conftest.$ac_ext <<_ACEOF | |
32396 | /* end confdefs.h. */ | |
32397 | #ifdef __linux__ | |
32398 | #include <linux/cdrom.h> | |
32399 | #else | |
32400 | /* For Solaris */ | |
32401 | #include <sys/cdio.h> | |
32402 | #endif | |
32403 | ||
32404 | int | |
32405 | main () | |
32406 | { | |
32407 | struct cdrom_tocentry entry, old_entry; | |
32408 | ; | |
32409 | return 0; | |
32410 | } | |
32411 | _ACEOF | |
32412 | rm -f conftest.$ac_objext | |
32413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32414 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32415 | ac_status=$? |
ac1cb8d3 VS |
32416 | grep -v '^ *+' conftest.er1 >conftest.err |
32417 | rm -f conftest.er1 | |
32418 | cat conftest.err >&5 | |
a848cd7e SC |
32419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32420 | (exit $ac_status); } && | |
04840eaa VS |
32421 | { ac_try='test -z "$ac_c_werror_flag" |
32422 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32424 | (eval $ac_try) 2>&5 | |
32425 | ac_status=$? | |
32426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32427 | (exit $ac_status); }; } && | |
32428 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32430 | (eval $ac_try) 2>&5 | |
32431 | ac_status=$? | |
32432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32433 | (exit $ac_status); }; }; then | |
32434 | echo "$as_me:$LINENO: result: yes" >&5 | |
32435 | echo "${ECHO_T}yes" >&6 | |
32436 | cat >>confdefs.h <<\_ACEOF | |
32437 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
32438 | _ACEOF | |
32439 | ||
32440 | else | |
32441 | echo "$as_me: failed program was:" >&5 | |
32442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32443 | ||
32444 | echo "$as_me:$LINENO: result: no" >&5 | |
32445 | echo "${ECHO_T}no" >&6 | |
32446 | fi | |
ac1cb8d3 | 32447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32448 | |
32449 | ||
32450 | cat >confcache <<\_ACEOF | |
32451 | # This file is a shell script that caches the results of configure | |
32452 | # tests run on this system so they can be shared between configure | |
32453 | # scripts and configure runs, see configure's option --config-cache. | |
32454 | # It is not useful on other systems. If it contains results you don't | |
32455 | # want to keep, you may remove or edit it. | |
32456 | # | |
32457 | # config.status only pays attention to the cache file if you give it | |
32458 | # the --recheck option to rerun configure. | |
32459 | # | |
32460 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
32461 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
32462 | # following values. | |
32463 | ||
32464 | _ACEOF | |
32465 | ||
32466 | # The following way of writing the cache mishandles newlines in values, | |
32467 | # but we know of no workaround that is simple, portable, and efficient. | |
32468 | # So, don't put newlines in cache variables' values. | |
32469 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
32470 | # and sets the high bit in the cache file unless we assign to the vars. | |
32471 | { | |
32472 | (set) 2>&1 | | |
32473 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
32474 | *ac_space=\ *) | |
32475 | # `set' does not quote correctly, so add quotes (double-quote | |
32476 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
32477 | sed -n \ | |
ac1cb8d3 VS |
32478 | "s/'/'\\\\''/g; |
32479 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
32480 | ;; |
32481 | *) | |
32482 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
32483 | sed -n \ | |
ac1cb8d3 | 32484 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
32485 | ;; |
32486 | esac; | |
32487 | } | | |
32488 | sed ' | |
32489 | t clear | |
32490 | : clear | |
32491 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
32492 | t end | |
32493 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
32494 | : end' >>confcache | |
32495 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
32496 | if test -w $cache_file; then | |
32497 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
32498 | cat confcache >$cache_file | |
32499 | else | |
32500 | echo "not updating unwritable cache $cache_file" | |
32501 | fi | |
32502 | fi | |
32503 | rm -f confcache | |
32504 | ||
32505 | ||
32506 | CPP_MT_FLAG= | |
32507 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
32508 | ||
32509 | ||
32510 | THREADS_LINK= | |
32511 | THREADS_CFLAGS= | |
32512 | ||
32513 | if test "$wxUSE_THREADS" = "yes" ; then | |
32514 | if test "$USE_BEOS" = 1; then | |
32515 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
32516 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
32517 | wxUSE_THREADS="no" | |
32518 | fi | |
32519 | fi | |
32520 | ||
32521 | if test "$wxUSE_THREADS" = "yes" ; then | |
32522 | ||
32523 | ||
32524 | THREAD_OPTS="-pthread" | |
32525 | case "${host}" in | |
32526 | *-*-solaris2* | *-*-sunos4* ) | |
32527 | if test "x$GCC" = "xyes"; then | |
32528 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
32529 | else | |
32530 | THREAD_OPTS="-mt $THREAD_OPTS" | |
32531 | fi | |
32532 | ;; | |
32533 | *-*-freebsd*) | |
32534 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
32535 | ;; | |
32536 | *-*-darwin* | *-*-cygwin* ) | |
32537 | THREAD_OPTS="" | |
32538 | ;; | |
32539 | *-*-aix*) | |
32540 | THREAD_OPTS="pthreads" | |
32541 | ;; | |
32542 | *-hp-hpux* ) | |
32543 | if test "x$GCC" != "xyes"; then | |
32544 | THREAD_OPTS="" | |
32545 | fi | |
32546 | ;; | |
32547 | ||
32548 | *-*-irix* ) | |
32549 | if test "x$GCC" = "xyes"; then | |
32550 | THREAD_OPTS="" | |
32551 | fi | |
32552 | ;; | |
32553 | ||
32554 | *-*-*UnixWare*) | |
32555 | if test "x$GCC" != "xyes"; then | |
32556 | THREAD_OPTS="-Ethread" | |
32557 | fi | |
32558 | ;; | |
32559 | esac | |
32560 | ||
32561 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
32562 | ||
32563 | THREADS_OK=no | |
32564 | for flag in $THREAD_OPTS; do | |
32565 | case $flag in | |
32566 | none) | |
32567 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
32568 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
32569 | ;; | |
32570 | ||
32571 | -*) | |
32572 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
32573 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
32574 | THREADS_CFLAGS="$flag" | |
32575 | ;; | |
32576 | ||
32577 | *) | |
32578 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
32579 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
32580 | THREADS_LINK="-l$flag" | |
32581 | ;; | |
32582 | esac | |
32583 | ||
32584 | save_LIBS="$LIBS" | |
32585 | save_CFLAGS="$CFLAGS" | |
32586 | LIBS="$THREADS_LINK $LIBS" | |
32587 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
32588 | ||
32589 | cat >conftest.$ac_ext <<_ACEOF | |
32590 | /* confdefs.h. */ | |
32591 | _ACEOF | |
32592 | cat confdefs.h >>conftest.$ac_ext | |
32593 | cat >>conftest.$ac_ext <<_ACEOF | |
32594 | /* end confdefs.h. */ | |
32595 | #include <pthread.h> | |
32596 | int | |
32597 | main () | |
32598 | { | |
32599 | pthread_create(0,0,0,0); | |
32600 | ; | |
32601 | return 0; | |
32602 | } | |
32603 | _ACEOF | |
32604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32606 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32607 | ac_status=$? |
ac1cb8d3 VS |
32608 | grep -v '^ *+' conftest.er1 >conftest.err |
32609 | rm -f conftest.er1 | |
32610 | cat conftest.err >&5 | |
a848cd7e SC |
32611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32612 | (exit $ac_status); } && | |
04840eaa VS |
32613 | { ac_try='test -z "$ac_c_werror_flag" |
32614 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32616 | (eval $ac_try) 2>&5 | |
32617 | ac_status=$? | |
32618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32619 | (exit $ac_status); }; } && | |
32620 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32622 | (eval $ac_try) 2>&5 | |
32623 | ac_status=$? | |
32624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32625 | (exit $ac_status); }; }; then | |
32626 | THREADS_OK=yes | |
32627 | else | |
32628 | echo "$as_me: failed program was:" >&5 | |
32629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32630 | ||
32631 | fi | |
ac1cb8d3 VS |
32632 | rm -f conftest.err conftest.$ac_objext \ |
32633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32634 | |
32635 | LIBS="$save_LIBS" | |
32636 | CFLAGS="$save_CFLAGS" | |
32637 | ||
32638 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
32639 | echo "${ECHO_T}$THREADS_OK" >&6 | |
32640 | if test "x$THREADS_OK" = "xyes"; then | |
32641 | break; | |
32642 | fi | |
32643 | ||
32644 | THREADS_LINK="" | |
32645 | THREADS_CFLAGS="" | |
32646 | done | |
32647 | ||
32648 | if test "x$THREADS_OK" != "xyes"; then | |
32649 | wxUSE_THREADS=no | |
32650 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
32651 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
32652 | else | |
32653 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
32654 | LIBS="$THREADS_LINK $LIBS" | |
32655 | ||
32656 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
32657 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
32658 | flag=no | |
32659 | case "${host}" in | |
32660 | *-aix*) | |
32661 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32662 | flag="-D_THREAD_SAFE" | |
32663 | ;; | |
32664 | *-freebsd*) | |
32665 | flag="-D_THREAD_SAFE" | |
32666 | ;; | |
32667 | *-hp-hpux* ) | |
32668 | flag="-D_REENTRANT" | |
32669 | if test "x$GCC" != "xyes"; then | |
32670 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
32671 | fi | |
32672 | ;; | |
32673 | *solaris* | alpha*-osf*) | |
32674 | flag="-D_REENTRANT" | |
32675 | ;; | |
32676 | esac | |
32677 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
32678 | echo "${ECHO_T}${flag}" >&6 | |
32679 | if test "x$flag" != xno; then | |
32680 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
32681 | fi | |
32682 | ||
32683 | if test "x$THREADS_CFLAGS" != "x"; then | |
32684 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
32685 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
32686 | fi | |
32687 | fi | |
32688 | fi | |
32689 | ||
32690 | if test "$wxUSE_THREADS" = "yes" ; then | |
32691 | ||
32692 | for ac_func in thr_setconcurrency | |
32693 | do | |
32694 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32695 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32696 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32697 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32699 | else | |
32700 | cat >conftest.$ac_ext <<_ACEOF | |
32701 | /* confdefs.h. */ | |
32702 | _ACEOF | |
32703 | cat confdefs.h >>conftest.$ac_ext | |
32704 | cat >>conftest.$ac_ext <<_ACEOF | |
32705 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32706 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32707 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32708 | #define $ac_func innocuous_$ac_func | |
32709 | ||
a848cd7e SC |
32710 | /* System header to define __stub macros and hopefully few prototypes, |
32711 | which can conflict with char $ac_func (); below. | |
32712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32713 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32714 | |
a848cd7e SC |
32715 | #ifdef __STDC__ |
32716 | # include <limits.h> | |
32717 | #else | |
32718 | # include <assert.h> | |
32719 | #endif | |
ac1cb8d3 VS |
32720 | |
32721 | #undef $ac_func | |
32722 | ||
a848cd7e SC |
32723 | /* Override any gcc2 internal prototype to avoid an error. */ |
32724 | #ifdef __cplusplus | |
32725 | extern "C" | |
32726 | { | |
32727 | #endif | |
32728 | /* We use char because int might match the return type of a gcc2 | |
32729 | builtin and then its argument prototype would still apply. */ | |
32730 | char $ac_func (); | |
32731 | /* The GNU C library defines this for functions which it implements | |
32732 | to always fail with ENOSYS. Some functions are actually named | |
32733 | something starting with __ and the normal name is an alias. */ | |
32734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32735 | choke me | |
32736 | #else | |
32737 | char (*f) () = $ac_func; | |
32738 | #endif | |
32739 | #ifdef __cplusplus | |
32740 | } | |
32741 | #endif | |
32742 | ||
32743 | int | |
32744 | main () | |
32745 | { | |
32746 | return f != $ac_func; | |
32747 | ; | |
32748 | return 0; | |
32749 | } | |
32750 | _ACEOF | |
32751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32753 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32754 | ac_status=$? |
ac1cb8d3 VS |
32755 | grep -v '^ *+' conftest.er1 >conftest.err |
32756 | rm -f conftest.er1 | |
32757 | cat conftest.err >&5 | |
a848cd7e SC |
32758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32759 | (exit $ac_status); } && | |
04840eaa VS |
32760 | { ac_try='test -z "$ac_c_werror_flag" |
32761 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32763 | (eval $ac_try) 2>&5 | |
32764 | ac_status=$? | |
32765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32766 | (exit $ac_status); }; } && | |
32767 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32769 | (eval $ac_try) 2>&5 | |
32770 | ac_status=$? | |
32771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32772 | (exit $ac_status); }; }; then | |
32773 | eval "$as_ac_var=yes" | |
32774 | else | |
32775 | echo "$as_me: failed program was:" >&5 | |
32776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32777 | ||
32778 | eval "$as_ac_var=no" | |
32779 | fi | |
ac1cb8d3 VS |
32780 | rm -f conftest.err conftest.$ac_objext \ |
32781 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32782 | fi |
32783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32784 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32785 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32786 | cat >>confdefs.h <<_ACEOF | |
32787 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32788 | _ACEOF | |
32789 | ||
32790 | fi | |
32791 | done | |
32792 | ||
32793 | ||
32794 | ||
32795 | for ac_header in sched.h | |
32796 | do | |
32797 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32803 | fi | |
32804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32805 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32806 | else | |
32807 | # Is the header compilable? | |
32808 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32809 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32810 | cat >conftest.$ac_ext <<_ACEOF | |
32811 | /* confdefs.h. */ | |
32812 | _ACEOF | |
32813 | cat confdefs.h >>conftest.$ac_ext | |
32814 | cat >>conftest.$ac_ext <<_ACEOF | |
32815 | /* end confdefs.h. */ | |
32816 | $ac_includes_default | |
32817 | #include <$ac_header> | |
32818 | _ACEOF | |
32819 | rm -f conftest.$ac_objext | |
32820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32821 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32822 | ac_status=$? |
ac1cb8d3 VS |
32823 | grep -v '^ *+' conftest.er1 >conftest.err |
32824 | rm -f conftest.er1 | |
32825 | cat conftest.err >&5 | |
a848cd7e SC |
32826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32827 | (exit $ac_status); } && | |
04840eaa VS |
32828 | { ac_try='test -z "$ac_c_werror_flag" |
32829 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32831 | (eval $ac_try) 2>&5 | |
32832 | ac_status=$? | |
32833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32834 | (exit $ac_status); }; } && | |
32835 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32837 | (eval $ac_try) 2>&5 | |
32838 | ac_status=$? | |
32839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32840 | (exit $ac_status); }; }; then | |
32841 | ac_header_compiler=yes | |
32842 | else | |
32843 | echo "$as_me: failed program was:" >&5 | |
32844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32845 | ||
32846 | ac_header_compiler=no | |
32847 | fi | |
ac1cb8d3 | 32848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32849 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32850 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32851 | ||
32852 | # Is the header present? | |
32853 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32854 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32855 | cat >conftest.$ac_ext <<_ACEOF | |
32856 | /* confdefs.h. */ | |
32857 | _ACEOF | |
32858 | cat confdefs.h >>conftest.$ac_ext | |
32859 | cat >>conftest.$ac_ext <<_ACEOF | |
32860 | /* end confdefs.h. */ | |
32861 | #include <$ac_header> | |
32862 | _ACEOF | |
32863 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32864 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32865 | ac_status=$? | |
32866 | grep -v '^ *+' conftest.er1 >conftest.err | |
32867 | rm -f conftest.er1 | |
32868 | cat conftest.err >&5 | |
32869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32870 | (exit $ac_status); } >/dev/null; then | |
32871 | if test -s conftest.err; then | |
32872 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32873 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32874 | else |
32875 | ac_cpp_err= | |
32876 | fi | |
32877 | else | |
32878 | ac_cpp_err=yes | |
32879 | fi | |
32880 | if test -z "$ac_cpp_err"; then | |
32881 | ac_header_preproc=yes | |
32882 | else | |
32883 | echo "$as_me: failed program was:" >&5 | |
32884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32885 | ||
32886 | ac_header_preproc=no | |
32887 | fi | |
32888 | rm -f conftest.err conftest.$ac_ext | |
32889 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32890 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32891 | ||
32892 | # So? What about this header? | |
ac1cb8d3 VS |
32893 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32894 | yes:no: ) | |
a848cd7e SC |
32895 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32896 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32897 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32898 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32899 | ac_header_preproc=yes | |
a848cd7e | 32900 | ;; |
ac1cb8d3 | 32901 | no:yes:* ) |
a848cd7e SC |
32902 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32903 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32904 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32905 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32906 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32907 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32908 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32909 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32911 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32912 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32913 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32914 | ( |
32915 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32916 | ## ----------------------------------------- ## |
32917 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32918 | ## ----------------------------------------- ## | |
a848cd7e SC |
32919 | _ASBOX |
32920 | ) | | |
32921 | sed "s/^/$as_me: WARNING: /" >&2 | |
32922 | ;; | |
32923 | esac | |
32924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32928 | else | |
ac1cb8d3 | 32929 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32930 | fi |
32931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32932 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32933 | ||
32934 | fi | |
32935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32936 | cat >>confdefs.h <<_ACEOF | |
32937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32938 | _ACEOF | |
32939 | ||
32940 | fi | |
32941 | ||
32942 | done | |
32943 | ||
32944 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32945 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32946 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32947 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32949 | else | |
32950 | cat >conftest.$ac_ext <<_ACEOF | |
32951 | /* confdefs.h. */ | |
32952 | _ACEOF | |
32953 | cat confdefs.h >>conftest.$ac_ext | |
32954 | cat >>conftest.$ac_ext <<_ACEOF | |
32955 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32956 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32958 | #define sched_yield innocuous_sched_yield | |
32959 | ||
a848cd7e SC |
32960 | /* System header to define __stub macros and hopefully few prototypes, |
32961 | which can conflict with char sched_yield (); below. | |
32962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32963 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32964 | |
a848cd7e SC |
32965 | #ifdef __STDC__ |
32966 | # include <limits.h> | |
32967 | #else | |
32968 | # include <assert.h> | |
32969 | #endif | |
ac1cb8d3 VS |
32970 | |
32971 | #undef sched_yield | |
32972 | ||
a848cd7e SC |
32973 | /* Override any gcc2 internal prototype to avoid an error. */ |
32974 | #ifdef __cplusplus | |
32975 | extern "C" | |
32976 | { | |
32977 | #endif | |
32978 | /* We use char because int might match the return type of a gcc2 | |
32979 | builtin and then its argument prototype would still apply. */ | |
32980 | char sched_yield (); | |
32981 | /* The GNU C library defines this for functions which it implements | |
32982 | to always fail with ENOSYS. Some functions are actually named | |
32983 | something starting with __ and the normal name is an alias. */ | |
32984 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32985 | choke me | |
32986 | #else | |
32987 | char (*f) () = sched_yield; | |
32988 | #endif | |
32989 | #ifdef __cplusplus | |
32990 | } | |
32991 | #endif | |
32992 | ||
32993 | int | |
32994 | main () | |
32995 | { | |
32996 | return f != sched_yield; | |
32997 | ; | |
32998 | return 0; | |
32999 | } | |
33000 | _ACEOF | |
33001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33003 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33004 | ac_status=$? |
ac1cb8d3 VS |
33005 | grep -v '^ *+' conftest.er1 >conftest.err |
33006 | rm -f conftest.er1 | |
33007 | cat conftest.err >&5 | |
a848cd7e SC |
33008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33009 | (exit $ac_status); } && | |
04840eaa VS |
33010 | { ac_try='test -z "$ac_c_werror_flag" |
33011 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33013 | (eval $ac_try) 2>&5 | |
33014 | ac_status=$? | |
33015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33016 | (exit $ac_status); }; } && | |
33017 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33019 | (eval $ac_try) 2>&5 | |
33020 | ac_status=$? | |
33021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33022 | (exit $ac_status); }; }; then | |
33023 | ac_cv_func_sched_yield=yes | |
33024 | else | |
33025 | echo "$as_me: failed program was:" >&5 | |
33026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33027 | ||
33028 | ac_cv_func_sched_yield=no | |
33029 | fi | |
ac1cb8d3 VS |
33030 | rm -f conftest.err conftest.$ac_objext \ |
33031 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33032 | fi |
33033 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
33034 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
33035 | if test $ac_cv_func_sched_yield = yes; then | |
33036 | cat >>confdefs.h <<\_ACEOF | |
33037 | #define HAVE_SCHED_YIELD 1 | |
33038 | _ACEOF | |
33039 | ||
33040 | else | |
33041 | ||
33042 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
33043 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
33044 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
33045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33046 | else | |
33047 | ac_check_lib_save_LIBS=$LIBS | |
33048 | LIBS="-lposix4 $LIBS" | |
33049 | cat >conftest.$ac_ext <<_ACEOF | |
33050 | /* confdefs.h. */ | |
33051 | _ACEOF | |
33052 | cat confdefs.h >>conftest.$ac_ext | |
33053 | cat >>conftest.$ac_ext <<_ACEOF | |
33054 | /* end confdefs.h. */ | |
33055 | ||
33056 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33057 | #ifdef __cplusplus | |
33058 | extern "C" | |
33059 | #endif | |
33060 | /* We use char because int might match the return type of a gcc2 | |
33061 | builtin and then its argument prototype would still apply. */ | |
33062 | char sched_yield (); | |
33063 | int | |
33064 | main () | |
33065 | { | |
33066 | sched_yield (); | |
33067 | ; | |
33068 | return 0; | |
33069 | } | |
33070 | _ACEOF | |
33071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33073 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33074 | ac_status=$? |
ac1cb8d3 VS |
33075 | grep -v '^ *+' conftest.er1 >conftest.err |
33076 | rm -f conftest.er1 | |
33077 | cat conftest.err >&5 | |
a848cd7e SC |
33078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33079 | (exit $ac_status); } && | |
04840eaa VS |
33080 | { ac_try='test -z "$ac_c_werror_flag" |
33081 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33083 | (eval $ac_try) 2>&5 | |
33084 | ac_status=$? | |
33085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33086 | (exit $ac_status); }; } && | |
33087 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33089 | (eval $ac_try) 2>&5 | |
33090 | ac_status=$? | |
33091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33092 | (exit $ac_status); }; }; then | |
33093 | ac_cv_lib_posix4_sched_yield=yes | |
33094 | else | |
33095 | echo "$as_me: failed program was:" >&5 | |
33096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33097 | ||
33098 | ac_cv_lib_posix4_sched_yield=no | |
33099 | fi | |
ac1cb8d3 VS |
33100 | rm -f conftest.err conftest.$ac_objext \ |
33101 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33102 | LIBS=$ac_check_lib_save_LIBS |
33103 | fi | |
33104 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
33105 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
33106 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
33107 | cat >>confdefs.h <<\_ACEOF | |
33108 | #define HAVE_SCHED_YIELD 1 | |
33109 | _ACEOF | |
33110 | POSIX4_LINK=" -lposix4" | |
33111 | else | |
33112 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
33113 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
33114 | ||
33115 | fi | |
33116 | ||
33117 | ||
33118 | ||
33119 | fi | |
33120 | ||
33121 | fi | |
33122 | ||
33123 | HAVE_PRIOR_FUNCS=0 | |
33124 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
33125 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
33126 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
33127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33128 | else | |
33129 | cat >conftest.$ac_ext <<_ACEOF | |
33130 | /* confdefs.h. */ | |
33131 | _ACEOF | |
33132 | cat confdefs.h >>conftest.$ac_ext | |
33133 | cat >>conftest.$ac_ext <<_ACEOF | |
33134 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33135 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
33136 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33137 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
33138 | ||
a848cd7e SC |
33139 | /* System header to define __stub macros and hopefully few prototypes, |
33140 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
33141 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33142 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33143 | |
a848cd7e SC |
33144 | #ifdef __STDC__ |
33145 | # include <limits.h> | |
33146 | #else | |
33147 | # include <assert.h> | |
33148 | #endif | |
ac1cb8d3 VS |
33149 | |
33150 | #undef pthread_attr_getschedpolicy | |
33151 | ||
a848cd7e SC |
33152 | /* Override any gcc2 internal prototype to avoid an error. */ |
33153 | #ifdef __cplusplus | |
33154 | extern "C" | |
33155 | { | |
33156 | #endif | |
33157 | /* We use char because int might match the return type of a gcc2 | |
33158 | builtin and then its argument prototype would still apply. */ | |
33159 | char pthread_attr_getschedpolicy (); | |
33160 | /* The GNU C library defines this for functions which it implements | |
33161 | to always fail with ENOSYS. Some functions are actually named | |
33162 | something starting with __ and the normal name is an alias. */ | |
33163 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
33164 | choke me | |
33165 | #else | |
33166 | char (*f) () = pthread_attr_getschedpolicy; | |
33167 | #endif | |
33168 | #ifdef __cplusplus | |
33169 | } | |
33170 | #endif | |
33171 | ||
33172 | int | |
33173 | main () | |
33174 | { | |
33175 | return f != pthread_attr_getschedpolicy; | |
33176 | ; | |
33177 | return 0; | |
33178 | } | |
33179 | _ACEOF | |
33180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33182 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33183 | ac_status=$? |
ac1cb8d3 VS |
33184 | grep -v '^ *+' conftest.er1 >conftest.err |
33185 | rm -f conftest.er1 | |
33186 | cat conftest.err >&5 | |
a848cd7e SC |
33187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33188 | (exit $ac_status); } && | |
04840eaa VS |
33189 | { ac_try='test -z "$ac_c_werror_flag" |
33190 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33192 | (eval $ac_try) 2>&5 | |
33193 | ac_status=$? | |
33194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33195 | (exit $ac_status); }; } && | |
33196 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33198 | (eval $ac_try) 2>&5 | |
33199 | ac_status=$? | |
33200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33201 | (exit $ac_status); }; }; then | |
33202 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
33203 | else | |
33204 | echo "$as_me: failed program was:" >&5 | |
33205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33206 | ||
33207 | ac_cv_func_pthread_attr_getschedpolicy=no | |
33208 | fi | |
ac1cb8d3 VS |
33209 | rm -f conftest.err conftest.$ac_objext \ |
33210 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33211 | fi |
33212 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
33213 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
33214 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
33215 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
33216 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
33217 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
33218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33219 | else | |
33220 | cat >conftest.$ac_ext <<_ACEOF | |
33221 | /* confdefs.h. */ | |
33222 | _ACEOF | |
33223 | cat confdefs.h >>conftest.$ac_ext | |
33224 | cat >>conftest.$ac_ext <<_ACEOF | |
33225 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33226 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
33227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33228 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
33229 | ||
a848cd7e SC |
33230 | /* System header to define __stub macros and hopefully few prototypes, |
33231 | which can conflict with char pthread_attr_setschedparam (); below. | |
33232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33233 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33234 | |
a848cd7e SC |
33235 | #ifdef __STDC__ |
33236 | # include <limits.h> | |
33237 | #else | |
33238 | # include <assert.h> | |
33239 | #endif | |
ac1cb8d3 VS |
33240 | |
33241 | #undef pthread_attr_setschedparam | |
33242 | ||
a848cd7e SC |
33243 | /* Override any gcc2 internal prototype to avoid an error. */ |
33244 | #ifdef __cplusplus | |
33245 | extern "C" | |
33246 | { | |
33247 | #endif | |
33248 | /* We use char because int might match the return type of a gcc2 | |
33249 | builtin and then its argument prototype would still apply. */ | |
33250 | char pthread_attr_setschedparam (); | |
33251 | /* The GNU C library defines this for functions which it implements | |
33252 | to always fail with ENOSYS. Some functions are actually named | |
33253 | something starting with __ and the normal name is an alias. */ | |
33254 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
33255 | choke me | |
33256 | #else | |
33257 | char (*f) () = pthread_attr_setschedparam; | |
33258 | #endif | |
33259 | #ifdef __cplusplus | |
33260 | } | |
33261 | #endif | |
33262 | ||
33263 | int | |
33264 | main () | |
33265 | { | |
33266 | return f != pthread_attr_setschedparam; | |
33267 | ; | |
33268 | return 0; | |
33269 | } | |
33270 | _ACEOF | |
33271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33273 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33274 | ac_status=$? |
ac1cb8d3 VS |
33275 | grep -v '^ *+' conftest.er1 >conftest.err |
33276 | rm -f conftest.er1 | |
33277 | cat conftest.err >&5 | |
a848cd7e SC |
33278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33279 | (exit $ac_status); } && | |
04840eaa VS |
33280 | { ac_try='test -z "$ac_c_werror_flag" |
33281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33283 | (eval $ac_try) 2>&5 | |
33284 | ac_status=$? | |
33285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33286 | (exit $ac_status); }; } && | |
33287 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33289 | (eval $ac_try) 2>&5 | |
33290 | ac_status=$? | |
33291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33292 | (exit $ac_status); }; }; then | |
33293 | ac_cv_func_pthread_attr_setschedparam=yes | |
33294 | else | |
33295 | echo "$as_me: failed program was:" >&5 | |
33296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33297 | ||
33298 | ac_cv_func_pthread_attr_setschedparam=no | |
33299 | fi | |
ac1cb8d3 VS |
33300 | rm -f conftest.err conftest.$ac_objext \ |
33301 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33302 | fi |
33303 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
33304 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
33305 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
33306 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
33307 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
33308 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
33309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33310 | else | |
33311 | cat >conftest.$ac_ext <<_ACEOF | |
33312 | /* confdefs.h. */ | |
33313 | _ACEOF | |
33314 | cat confdefs.h >>conftest.$ac_ext | |
33315 | cat >>conftest.$ac_ext <<_ACEOF | |
33316 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33317 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
33318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33319 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
33320 | ||
a848cd7e SC |
33321 | /* System header to define __stub macros and hopefully few prototypes, |
33322 | which can conflict with char sched_get_priority_max (); below. | |
33323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33324 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33325 | |
a848cd7e SC |
33326 | #ifdef __STDC__ |
33327 | # include <limits.h> | |
33328 | #else | |
33329 | # include <assert.h> | |
33330 | #endif | |
ac1cb8d3 VS |
33331 | |
33332 | #undef sched_get_priority_max | |
33333 | ||
a848cd7e SC |
33334 | /* Override any gcc2 internal prototype to avoid an error. */ |
33335 | #ifdef __cplusplus | |
33336 | extern "C" | |
33337 | { | |
33338 | #endif | |
33339 | /* We use char because int might match the return type of a gcc2 | |
33340 | builtin and then its argument prototype would still apply. */ | |
33341 | char sched_get_priority_max (); | |
33342 | /* The GNU C library defines this for functions which it implements | |
33343 | to always fail with ENOSYS. Some functions are actually named | |
33344 | something starting with __ and the normal name is an alias. */ | |
33345 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
33346 | choke me | |
33347 | #else | |
33348 | char (*f) () = sched_get_priority_max; | |
33349 | #endif | |
33350 | #ifdef __cplusplus | |
33351 | } | |
33352 | #endif | |
33353 | ||
33354 | int | |
33355 | main () | |
33356 | { | |
33357 | return f != sched_get_priority_max; | |
33358 | ; | |
33359 | return 0; | |
33360 | } | |
33361 | _ACEOF | |
33362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33365 | ac_status=$? |
ac1cb8d3 VS |
33366 | grep -v '^ *+' conftest.er1 >conftest.err |
33367 | rm -f conftest.er1 | |
33368 | cat conftest.err >&5 | |
a848cd7e SC |
33369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33370 | (exit $ac_status); } && | |
04840eaa VS |
33371 | { ac_try='test -z "$ac_c_werror_flag" |
33372 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33374 | (eval $ac_try) 2>&5 | |
33375 | ac_status=$? | |
33376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33377 | (exit $ac_status); }; } && | |
33378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33380 | (eval $ac_try) 2>&5 | |
33381 | ac_status=$? | |
33382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33383 | (exit $ac_status); }; }; then | |
33384 | ac_cv_func_sched_get_priority_max=yes | |
33385 | else | |
33386 | echo "$as_me: failed program was:" >&5 | |
33387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33388 | ||
33389 | ac_cv_func_sched_get_priority_max=no | |
33390 | fi | |
ac1cb8d3 VS |
33391 | rm -f conftest.err conftest.$ac_objext \ |
33392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33393 | fi |
33394 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
33395 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
33396 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
33397 | HAVE_PRIOR_FUNCS=1 | |
33398 | else | |
33399 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
33400 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
33401 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
33402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33403 | else | |
33404 | ac_check_lib_save_LIBS=$LIBS | |
33405 | LIBS="-lposix4 $LIBS" | |
33406 | cat >conftest.$ac_ext <<_ACEOF | |
33407 | /* confdefs.h. */ | |
33408 | _ACEOF | |
33409 | cat confdefs.h >>conftest.$ac_ext | |
33410 | cat >>conftest.$ac_ext <<_ACEOF | |
33411 | /* end confdefs.h. */ | |
33412 | ||
33413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33414 | #ifdef __cplusplus | |
33415 | extern "C" | |
33416 | #endif | |
33417 | /* We use char because int might match the return type of a gcc2 | |
33418 | builtin and then its argument prototype would still apply. */ | |
33419 | char sched_get_priority_max (); | |
33420 | int | |
33421 | main () | |
33422 | { | |
33423 | sched_get_priority_max (); | |
33424 | ; | |
33425 | return 0; | |
33426 | } | |
33427 | _ACEOF | |
33428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33430 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33431 | ac_status=$? |
ac1cb8d3 VS |
33432 | grep -v '^ *+' conftest.er1 >conftest.err |
33433 | rm -f conftest.er1 | |
33434 | cat conftest.err >&5 | |
a848cd7e SC |
33435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33436 | (exit $ac_status); } && | |
04840eaa VS |
33437 | { ac_try='test -z "$ac_c_werror_flag" |
33438 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33440 | (eval $ac_try) 2>&5 | |
33441 | ac_status=$? | |
33442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33443 | (exit $ac_status); }; } && | |
33444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33446 | (eval $ac_try) 2>&5 | |
33447 | ac_status=$? | |
33448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33449 | (exit $ac_status); }; }; then | |
33450 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
33451 | else | |
33452 | echo "$as_me: failed program was:" >&5 | |
33453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33454 | ||
33455 | ac_cv_lib_posix4_sched_get_priority_max=no | |
33456 | fi | |
ac1cb8d3 VS |
33457 | rm -f conftest.err conftest.$ac_objext \ |
33458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33459 | LIBS=$ac_check_lib_save_LIBS |
33460 | fi | |
33461 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
33462 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
33463 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
33464 | ||
33465 | HAVE_PRIOR_FUNCS=1 | |
33466 | POSIX4_LINK=" -lposix4" | |
33467 | ||
33468 | fi | |
33469 | ||
33470 | ||
33471 | fi | |
33472 | ||
33473 | ||
33474 | fi | |
33475 | ||
33476 | ||
33477 | fi | |
33478 | ||
33479 | ||
33480 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
33481 | cat >>confdefs.h <<\_ACEOF | |
33482 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
33483 | _ACEOF | |
33484 | ||
33485 | else | |
33486 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
33487 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
33488 | fi | |
33489 | ||
33490 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
33491 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
33492 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
33493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33494 | else | |
33495 | cat >conftest.$ac_ext <<_ACEOF | |
33496 | /* confdefs.h. */ | |
33497 | _ACEOF | |
33498 | cat confdefs.h >>conftest.$ac_ext | |
33499 | cat >>conftest.$ac_ext <<_ACEOF | |
33500 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33501 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
33502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33503 | #define pthread_cancel innocuous_pthread_cancel | |
33504 | ||
a848cd7e SC |
33505 | /* System header to define __stub macros and hopefully few prototypes, |
33506 | which can conflict with char pthread_cancel (); below. | |
33507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33508 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33509 | |
a848cd7e SC |
33510 | #ifdef __STDC__ |
33511 | # include <limits.h> | |
33512 | #else | |
33513 | # include <assert.h> | |
33514 | #endif | |
ac1cb8d3 VS |
33515 | |
33516 | #undef pthread_cancel | |
33517 | ||
a848cd7e SC |
33518 | /* Override any gcc2 internal prototype to avoid an error. */ |
33519 | #ifdef __cplusplus | |
33520 | extern "C" | |
33521 | { | |
33522 | #endif | |
33523 | /* We use char because int might match the return type of a gcc2 | |
33524 | builtin and then its argument prototype would still apply. */ | |
33525 | char pthread_cancel (); | |
33526 | /* The GNU C library defines this for functions which it implements | |
33527 | to always fail with ENOSYS. Some functions are actually named | |
33528 | something starting with __ and the normal name is an alias. */ | |
33529 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
33530 | choke me | |
33531 | #else | |
33532 | char (*f) () = pthread_cancel; | |
33533 | #endif | |
33534 | #ifdef __cplusplus | |
33535 | } | |
33536 | #endif | |
33537 | ||
33538 | int | |
33539 | main () | |
33540 | { | |
33541 | return f != pthread_cancel; | |
33542 | ; | |
33543 | return 0; | |
33544 | } | |
33545 | _ACEOF | |
33546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33548 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33549 | ac_status=$? |
ac1cb8d3 VS |
33550 | grep -v '^ *+' conftest.er1 >conftest.err |
33551 | rm -f conftest.er1 | |
33552 | cat conftest.err >&5 | |
a848cd7e SC |
33553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33554 | (exit $ac_status); } && | |
04840eaa VS |
33555 | { ac_try='test -z "$ac_c_werror_flag" |
33556 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33558 | (eval $ac_try) 2>&5 | |
33559 | ac_status=$? | |
33560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33561 | (exit $ac_status); }; } && | |
33562 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33564 | (eval $ac_try) 2>&5 | |
33565 | ac_status=$? | |
33566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33567 | (exit $ac_status); }; }; then | |
33568 | ac_cv_func_pthread_cancel=yes | |
33569 | else | |
33570 | echo "$as_me: failed program was:" >&5 | |
33571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33572 | ||
33573 | ac_cv_func_pthread_cancel=no | |
33574 | fi | |
ac1cb8d3 VS |
33575 | rm -f conftest.err conftest.$ac_objext \ |
33576 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33577 | fi |
33578 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33579 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33580 | if test $ac_cv_func_pthread_cancel = yes; then | |
33581 | cat >>confdefs.h <<\_ACEOF | |
33582 | #define HAVE_PTHREAD_CANCEL 1 | |
33583 | _ACEOF | |
33584 | ||
33585 | else | |
33586 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
33587 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
33588 | fi | |
33589 | ||
33590 | ||
33591 | ||
33592 | ||
33593 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33594 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33595 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33597 | else | |
33598 | ||
33599 | cat >conftest.$ac_ext <<_ACEOF | |
33600 | /* confdefs.h. */ | |
33601 | _ACEOF | |
33602 | cat confdefs.h >>conftest.$ac_ext | |
33603 | cat >>conftest.$ac_ext <<_ACEOF | |
33604 | /* end confdefs.h. */ | |
33605 | #include <pthread.h> | |
33606 | int | |
33607 | main () | |
33608 | { | |
33609 | ||
33610 | pthread_mutexattr_t attr; | |
33611 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
33612 | ||
33613 | ; | |
33614 | return 0; | |
33615 | } | |
33616 | _ACEOF | |
33617 | rm -f conftest.$ac_objext | |
33618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33619 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33620 | ac_status=$? |
ac1cb8d3 VS |
33621 | grep -v '^ *+' conftest.er1 >conftest.err |
33622 | rm -f conftest.er1 | |
33623 | cat conftest.err >&5 | |
a848cd7e SC |
33624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33625 | (exit $ac_status); } && | |
04840eaa VS |
33626 | { ac_try='test -z "$ac_c_werror_flag" |
33627 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33629 | (eval $ac_try) 2>&5 | |
33630 | ac_status=$? | |
33631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33632 | (exit $ac_status); }; } && | |
33633 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33635 | (eval $ac_try) 2>&5 | |
33636 | ac_status=$? | |
33637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33638 | (exit $ac_status); }; }; then | |
33639 | ||
33640 | wx_cv_type_pthread_mutexattr_t=yes | |
33641 | ||
33642 | else | |
33643 | echo "$as_me: failed program was:" >&5 | |
33644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33645 | ||
33646 | ||
33647 | wx_cv_type_pthread_mutexattr_t=no | |
33648 | ||
33649 | ||
33650 | fi | |
ac1cb8d3 | 33651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33652 | |
33653 | fi | |
33654 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33655 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
33656 | ||
33657 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
33658 | cat >>confdefs.h <<\_ACEOF | |
33659 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
33660 | _ACEOF | |
33661 | ||
33662 | else | |
33663 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
33664 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33665 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33667 | else | |
33668 | ||
33669 | cat >conftest.$ac_ext <<_ACEOF | |
33670 | /* confdefs.h. */ | |
33671 | _ACEOF | |
33672 | cat confdefs.h >>conftest.$ac_ext | |
33673 | cat >>conftest.$ac_ext <<_ACEOF | |
33674 | /* end confdefs.h. */ | |
33675 | #include <pthread.h> | |
33676 | int | |
33677 | main () | |
33678 | { | |
33679 | ||
33680 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
33681 | ||
33682 | ; | |
33683 | return 0; | |
33684 | } | |
33685 | _ACEOF | |
33686 | rm -f conftest.$ac_objext | |
33687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33688 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33689 | ac_status=$? |
ac1cb8d3 VS |
33690 | grep -v '^ *+' conftest.er1 >conftest.err |
33691 | rm -f conftest.er1 | |
33692 | cat conftest.err >&5 | |
a848cd7e SC |
33693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33694 | (exit $ac_status); } && | |
04840eaa VS |
33695 | { ac_try='test -z "$ac_c_werror_flag" |
33696 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33698 | (eval $ac_try) 2>&5 | |
33699 | ac_status=$? | |
33700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33701 | (exit $ac_status); }; } && | |
33702 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33704 | (eval $ac_try) 2>&5 | |
33705 | ac_status=$? | |
33706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33707 | (exit $ac_status); }; }; then | |
33708 | ||
33709 | wx_cv_type_pthread_rec_mutex_init=yes | |
33710 | ||
33711 | else | |
33712 | echo "$as_me: failed program was:" >&5 | |
33713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33714 | ||
33715 | ||
33716 | wx_cv_type_pthread_rec_mutex_init=no | |
33717 | ||
33718 | ||
33719 | fi | |
ac1cb8d3 | 33720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33721 | |
33722 | fi | |
33723 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33724 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33725 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33726 | cat >>confdefs.h <<\_ACEOF | |
33727 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33728 | _ACEOF | |
33729 | ||
33730 | else | |
33731 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33732 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33733 | fi | |
33734 | fi | |
33735 | fi | |
33736 | ||
33737 | else | |
33738 | if test "$wxUSE_THREADS" = "yes" ; then | |
33739 | case "${host}" in | |
33740 | *-*-mingw32* ) | |
33741 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33742 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33743 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33745 | else | |
33746 | ||
33747 | CFLAGS_OLD="$CFLAGS" | |
33748 | CFLAGS="$CFLAGS -mthreads" | |
33749 | cat >conftest.$ac_ext <<_ACEOF | |
33750 | /* confdefs.h. */ | |
33751 | _ACEOF | |
33752 | cat confdefs.h >>conftest.$ac_ext | |
33753 | cat >>conftest.$ac_ext <<_ACEOF | |
33754 | /* end confdefs.h. */ | |
33755 | ||
33756 | int | |
33757 | main () | |
33758 | { | |
33759 | ||
33760 | ; | |
33761 | return 0; | |
33762 | } | |
33763 | _ACEOF | |
33764 | rm -f conftest.$ac_objext | |
33765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33766 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33767 | ac_status=$? |
ac1cb8d3 VS |
33768 | grep -v '^ *+' conftest.er1 >conftest.err |
33769 | rm -f conftest.er1 | |
33770 | cat conftest.err >&5 | |
a848cd7e SC |
33771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33772 | (exit $ac_status); } && | |
04840eaa VS |
33773 | { ac_try='test -z "$ac_c_werror_flag" |
33774 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
33780 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33782 | (eval $ac_try) 2>&5 | |
33783 | ac_status=$? | |
33784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33785 | (exit $ac_status); }; }; then | |
33786 | wx_cv_cflags_mthread=yes | |
33787 | else | |
33788 | echo "$as_me: failed program was:" >&5 | |
33789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33790 | ||
33791 | wx_cv_cflags_mthread=no | |
33792 | ||
33793 | fi | |
ac1cb8d3 | 33794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33795 | |
33796 | ||
33797 | fi | |
33798 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33799 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33800 | ||
33801 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33802 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33803 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33804 | LDFLAGS="$LDFLAGS -mthreads" | |
33805 | else | |
33806 | CFLAGS="$CFLAGS_OLD" | |
33807 | fi | |
33808 | ;; | |
33809 | *-pc-os2*emx ) | |
33810 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33811 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33812 | LDFLAGS="$LDFLAGS -Zmt" | |
33813 | ;; | |
33814 | esac | |
33815 | fi | |
33816 | fi | |
33817 | ||
33818 | if test "$wxUSE_THREADS" = "yes"; then | |
33819 | cat >>confdefs.h <<\_ACEOF | |
33820 | #define wxUSE_THREADS 1 | |
33821 | _ACEOF | |
33822 | ||
33823 | ||
33824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33825 | else | |
33826 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33827 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33828 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33829 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33830 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33831 | echo "$as_me:$LINENO: result: yes" >&5 | |
33832 | echo "${ECHO_T}yes" >&6 | |
33833 | else | |
33834 | echo "$as_me:$LINENO: result: no" >&5 | |
33835 | echo "${ECHO_T}no" >&6 | |
33836 | fi | |
33837 | fi | |
33838 | fi | |
33839 | ||
33840 | if test "$WXGTK20" = 1 ; then | |
33841 | cat >>confdefs.h <<_ACEOF | |
33842 | #define __WXGTK20__ $WXGTK20 | |
33843 | _ACEOF | |
33844 | ||
33845 | WXGTK12=1 | |
33846 | fi | |
33847 | ||
33848 | if test "$WXGTK12" = 1 ; then | |
33849 | cat >>confdefs.h <<_ACEOF | |
33850 | #define __WXGTK12__ $WXGTK12 | |
33851 | _ACEOF | |
33852 | ||
33853 | fi | |
33854 | ||
33855 | if test "$WXGTK127" = 1 ; then | |
33856 | cat >>confdefs.h <<_ACEOF | |
33857 | #define __WXGTK127__ $WXGTK127 | |
33858 | _ACEOF | |
33859 | ||
33860 | fi | |
33861 | ||
33862 | if test "$WXGPE" = 1 ; then | |
33863 | cat >>confdefs.h <<_ACEOF | |
33864 | #define __WXGPE__ $WXGPE | |
33865 | _ACEOF | |
33866 | ||
33867 | fi | |
33868 | ||
33869 | WXDEBUG= | |
33870 | ||
33871 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33872 | WXDEBUG="-g" | |
33873 | wxUSE_OPTIMISE=no | |
33874 | fi | |
33875 | ||
33876 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33877 | wxUSE_DEBUG_INFO=yes | |
33878 | WXDEBUG="-ggdb" | |
33879 | fi | |
33880 | ||
33881 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33882 | cat >>confdefs.h <<\_ACEOF | |
33883 | #define WXDEBUG 1 | |
33884 | _ACEOF | |
33885 | ||
33886 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33887 | else | |
33888 | if test "$wxUSE_GTK" = 1 ; then | |
33889 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33890 | fi | |
33891 | fi | |
33892 | ||
33893 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33894 | cat >>confdefs.h <<\_ACEOF | |
33895 | #define wxUSE_MEMORY_TRACING 1 | |
33896 | _ACEOF | |
33897 | ||
33898 | cat >>confdefs.h <<\_ACEOF | |
33899 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33900 | _ACEOF | |
33901 | ||
33902 | cat >>confdefs.h <<\_ACEOF | |
33903 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33904 | _ACEOF | |
33905 | ||
33906 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33907 | fi | |
33908 | ||
33909 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33910 | DMALLOC_LIBS="-ldmalloc" | |
33911 | fi | |
33912 | ||
33913 | PROFILE= | |
33914 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33915 | PROFILE=" -pg" | |
33916 | fi | |
33917 | ||
33918 | CODE_GEN_FLAGS= | |
33919 | CODE_GEN_FLAGS_CXX= | |
33920 | if test "$GCC" = "yes" ; then | |
33921 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33922 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33923 | fi | |
33924 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33925 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33926 | fi | |
33927 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33928 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33929 | fi | |
33930 | ||
33931 | case "${host}" in | |
33932 | powerpc*-*-aix* ) | |
33933 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33934 | ;; | |
33935 | *-hppa* ) | |
33936 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33937 | ;; | |
33938 | esac | |
33939 | fi | |
33940 | ||
33941 | OPTIMISE= | |
33942 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33943 | if test "$GCC" = yes ; then | |
33944 | OPTIMISE="-O0" | |
33945 | fi | |
33946 | else | |
33947 | if test "$GCC" = yes ; then | |
33948 | OPTIMISE="-O2" | |
33949 | ||
33950 | case "${host}" in | |
33951 | i586-*-*|i686-*-* ) | |
33952 | OPTIMISE="${OPTIMISE} " | |
33953 | ;; | |
33954 | esac | |
33955 | else | |
33956 | OPTIMISE="-O" | |
33957 | fi | |
33958 | fi | |
33959 | ||
33960 | ||
33961 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33962 | cat >>confdefs.h <<\_ACEOF | |
33963 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33964 | _ACEOF | |
33965 | ||
33966 | ||
33967 | WXWIN_COMPATIBILITY_2_4="yes" | |
33968 | fi | |
33969 | ||
33970 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33971 | cat >>confdefs.h <<\_ACEOF | |
33972 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33973 | _ACEOF | |
33974 | ||
33975 | fi | |
33976 | ||
33977 | ||
33978 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 33979 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
33980 | #define wxUSE_GUI 1 |
33981 | _ACEOF | |
33982 | ||
33983 | ||
370fd4c2 | 33984 | fi |
a848cd7e SC |
33985 | |
33986 | ||
33987 | if test "$wxUSE_UNIX" = "yes"; then | |
33988 | cat >>confdefs.h <<\_ACEOF | |
33989 | #define wxUSE_UNIX 1 | |
33990 | _ACEOF | |
33991 | ||
33992 | fi | |
33993 | ||
33994 | ||
33995 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33996 | ||
33997 | HAVE_DL_FUNCS=0 | |
33998 | HAVE_SHL_FUNCS=0 | |
33999 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34000 | if test "$USE_DARWIN" = 1; then | |
34001 | HAVE_DL_FUNCS=1 | |
34002 | else | |
34003 | ||
34004 | for ac_func in dlopen | |
34005 | do | |
34006 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34007 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34008 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34009 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34011 | else | |
34012 | cat >conftest.$ac_ext <<_ACEOF | |
34013 | /* confdefs.h. */ | |
34014 | _ACEOF | |
34015 | cat confdefs.h >>conftest.$ac_ext | |
34016 | cat >>conftest.$ac_ext <<_ACEOF | |
34017 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34018 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34020 | #define $ac_func innocuous_$ac_func | |
34021 | ||
a848cd7e SC |
34022 | /* System header to define __stub macros and hopefully few prototypes, |
34023 | which can conflict with char $ac_func (); below. | |
34024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34025 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34026 | |
a848cd7e SC |
34027 | #ifdef __STDC__ |
34028 | # include <limits.h> | |
34029 | #else | |
34030 | # include <assert.h> | |
34031 | #endif | |
ac1cb8d3 VS |
34032 | |
34033 | #undef $ac_func | |
34034 | ||
a848cd7e SC |
34035 | /* Override any gcc2 internal prototype to avoid an error. */ |
34036 | #ifdef __cplusplus | |
34037 | extern "C" | |
34038 | { | |
34039 | #endif | |
34040 | /* We use char because int might match the return type of a gcc2 | |
34041 | builtin and then its argument prototype would still apply. */ | |
34042 | char $ac_func (); | |
34043 | /* The GNU C library defines this for functions which it implements | |
34044 | to always fail with ENOSYS. Some functions are actually named | |
34045 | something starting with __ and the normal name is an alias. */ | |
34046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34047 | choke me | |
34048 | #else | |
34049 | char (*f) () = $ac_func; | |
34050 | #endif | |
34051 | #ifdef __cplusplus | |
34052 | } | |
34053 | #endif | |
34054 | ||
34055 | int | |
34056 | main () | |
34057 | { | |
34058 | return f != $ac_func; | |
34059 | ; | |
34060 | return 0; | |
34061 | } | |
34062 | _ACEOF | |
34063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34065 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34066 | ac_status=$? |
ac1cb8d3 VS |
34067 | grep -v '^ *+' conftest.er1 >conftest.err |
34068 | rm -f conftest.er1 | |
34069 | cat conftest.err >&5 | |
a848cd7e SC |
34070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34071 | (exit $ac_status); } && | |
04840eaa VS |
34072 | { ac_try='test -z "$ac_c_werror_flag" |
34073 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34075 | (eval $ac_try) 2>&5 | |
34076 | ac_status=$? | |
34077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34078 | (exit $ac_status); }; } && | |
34079 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34081 | (eval $ac_try) 2>&5 | |
34082 | ac_status=$? | |
34083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34084 | (exit $ac_status); }; }; then | |
34085 | eval "$as_ac_var=yes" | |
34086 | else | |
34087 | echo "$as_me: failed program was:" >&5 | |
34088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34089 | ||
34090 | eval "$as_ac_var=no" | |
34091 | fi | |
ac1cb8d3 VS |
34092 | rm -f conftest.err conftest.$ac_objext \ |
34093 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34094 | fi |
34095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34096 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34097 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34098 | cat >>confdefs.h <<_ACEOF | |
34099 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34100 | _ACEOF | |
34101 | ||
34102 | cat >>confdefs.h <<\_ACEOF | |
34103 | #define HAVE_DLOPEN 1 | |
34104 | _ACEOF | |
34105 | ||
34106 | HAVE_DL_FUNCS=1 | |
34107 | ||
34108 | else | |
34109 | ||
34110 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34111 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34112 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34114 | else | |
34115 | ac_check_lib_save_LIBS=$LIBS | |
34116 | LIBS="-ldl $LIBS" | |
34117 | cat >conftest.$ac_ext <<_ACEOF | |
34118 | /* confdefs.h. */ | |
34119 | _ACEOF | |
34120 | cat confdefs.h >>conftest.$ac_ext | |
34121 | cat >>conftest.$ac_ext <<_ACEOF | |
34122 | /* end confdefs.h. */ | |
34123 | ||
34124 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34125 | #ifdef __cplusplus | |
34126 | extern "C" | |
34127 | #endif | |
34128 | /* We use char because int might match the return type of a gcc2 | |
34129 | builtin and then its argument prototype would still apply. */ | |
34130 | char dlopen (); | |
34131 | int | |
34132 | main () | |
34133 | { | |
34134 | dlopen (); | |
34135 | ; | |
34136 | return 0; | |
34137 | } | |
34138 | _ACEOF | |
34139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34141 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34142 | ac_status=$? |
ac1cb8d3 VS |
34143 | grep -v '^ *+' conftest.er1 >conftest.err |
34144 | rm -f conftest.er1 | |
34145 | cat conftest.err >&5 | |
a848cd7e SC |
34146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34147 | (exit $ac_status); } && | |
04840eaa VS |
34148 | { ac_try='test -z "$ac_c_werror_flag" |
34149 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34151 | (eval $ac_try) 2>&5 | |
34152 | ac_status=$? | |
34153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34154 | (exit $ac_status); }; } && | |
34155 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34157 | (eval $ac_try) 2>&5 | |
34158 | ac_status=$? | |
34159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34160 | (exit $ac_status); }; }; then | |
34161 | ac_cv_lib_dl_dlopen=yes | |
34162 | else | |
34163 | echo "$as_me: failed program was:" >&5 | |
34164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34165 | ||
34166 | ac_cv_lib_dl_dlopen=no | |
34167 | fi | |
ac1cb8d3 VS |
34168 | rm -f conftest.err conftest.$ac_objext \ |
34169 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34170 | LIBS=$ac_check_lib_save_LIBS |
34171 | fi | |
34172 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34173 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34174 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34175 | ||
34176 | cat >>confdefs.h <<\_ACEOF | |
34177 | #define HAVE_DLOPEN 1 | |
34178 | _ACEOF | |
34179 | ||
34180 | HAVE_DL_FUNCS=1 | |
34181 | DL_LINK=" -ldl$DL_LINK" | |
34182 | ||
34183 | else | |
34184 | ||
34185 | ||
34186 | for ac_func in shl_load | |
34187 | do | |
34188 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34189 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34191 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34193 | else | |
34194 | cat >conftest.$ac_ext <<_ACEOF | |
34195 | /* confdefs.h. */ | |
34196 | _ACEOF | |
34197 | cat confdefs.h >>conftest.$ac_ext | |
34198 | cat >>conftest.$ac_ext <<_ACEOF | |
34199 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34202 | #define $ac_func innocuous_$ac_func | |
34203 | ||
a848cd7e SC |
34204 | /* System header to define __stub macros and hopefully few prototypes, |
34205 | which can conflict with char $ac_func (); below. | |
34206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34207 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34208 | |
a848cd7e SC |
34209 | #ifdef __STDC__ |
34210 | # include <limits.h> | |
34211 | #else | |
34212 | # include <assert.h> | |
34213 | #endif | |
ac1cb8d3 VS |
34214 | |
34215 | #undef $ac_func | |
34216 | ||
a848cd7e SC |
34217 | /* Override any gcc2 internal prototype to avoid an error. */ |
34218 | #ifdef __cplusplus | |
34219 | extern "C" | |
34220 | { | |
34221 | #endif | |
34222 | /* We use char because int might match the return type of a gcc2 | |
34223 | builtin and then its argument prototype would still apply. */ | |
34224 | char $ac_func (); | |
34225 | /* The GNU C library defines this for functions which it implements | |
34226 | to always fail with ENOSYS. Some functions are actually named | |
34227 | something starting with __ and the normal name is an alias. */ | |
34228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34229 | choke me | |
34230 | #else | |
34231 | char (*f) () = $ac_func; | |
34232 | #endif | |
34233 | #ifdef __cplusplus | |
34234 | } | |
34235 | #endif | |
34236 | ||
34237 | int | |
34238 | main () | |
34239 | { | |
34240 | return f != $ac_func; | |
34241 | ; | |
34242 | return 0; | |
34243 | } | |
34244 | _ACEOF | |
34245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34247 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34248 | ac_status=$? |
ac1cb8d3 VS |
34249 | grep -v '^ *+' conftest.er1 >conftest.err |
34250 | rm -f conftest.er1 | |
34251 | cat conftest.err >&5 | |
a848cd7e SC |
34252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34253 | (exit $ac_status); } && | |
04840eaa VS |
34254 | { ac_try='test -z "$ac_c_werror_flag" |
34255 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34257 | (eval $ac_try) 2>&5 | |
34258 | ac_status=$? | |
34259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34260 | (exit $ac_status); }; } && | |
34261 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34263 | (eval $ac_try) 2>&5 | |
34264 | ac_status=$? | |
34265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34266 | (exit $ac_status); }; }; then | |
34267 | eval "$as_ac_var=yes" | |
34268 | else | |
34269 | echo "$as_me: failed program was:" >&5 | |
34270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34271 | ||
34272 | eval "$as_ac_var=no" | |
34273 | fi | |
ac1cb8d3 VS |
34274 | rm -f conftest.err conftest.$ac_objext \ |
34275 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34276 | fi |
34277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34278 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34279 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34280 | cat >>confdefs.h <<_ACEOF | |
34281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34282 | _ACEOF | |
34283 | ||
34284 | cat >>confdefs.h <<\_ACEOF | |
34285 | #define HAVE_SHL_LOAD 1 | |
34286 | _ACEOF | |
34287 | ||
34288 | HAVE_SHL_FUNCS=1 | |
34289 | ||
34290 | else | |
34291 | ||
34292 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
34293 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
34294 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
34295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34296 | else | |
34297 | ac_check_lib_save_LIBS=$LIBS | |
34298 | LIBS="-lshl_load $LIBS" | |
34299 | cat >conftest.$ac_ext <<_ACEOF | |
34300 | /* confdefs.h. */ | |
34301 | _ACEOF | |
34302 | cat confdefs.h >>conftest.$ac_ext | |
34303 | cat >>conftest.$ac_ext <<_ACEOF | |
34304 | /* end confdefs.h. */ | |
34305 | ||
34306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34307 | #ifdef __cplusplus | |
34308 | extern "C" | |
34309 | #endif | |
34310 | /* We use char because int might match the return type of a gcc2 | |
34311 | builtin and then its argument prototype would still apply. */ | |
34312 | char dld (); | |
34313 | int | |
34314 | main () | |
34315 | { | |
34316 | dld (); | |
34317 | ; | |
34318 | return 0; | |
34319 | } | |
34320 | _ACEOF | |
34321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34323 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34324 | ac_status=$? |
ac1cb8d3 VS |
34325 | grep -v '^ *+' conftest.er1 >conftest.err |
34326 | rm -f conftest.er1 | |
34327 | cat conftest.err >&5 | |
a848cd7e SC |
34328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34329 | (exit $ac_status); } && | |
04840eaa VS |
34330 | { ac_try='test -z "$ac_c_werror_flag" |
34331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34333 | (eval $ac_try) 2>&5 | |
34334 | ac_status=$? | |
34335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34336 | (exit $ac_status); }; } && | |
34337 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34339 | (eval $ac_try) 2>&5 | |
34340 | ac_status=$? | |
34341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34342 | (exit $ac_status); }; }; then | |
34343 | ac_cv_lib_shl_load_dld=yes | |
34344 | else | |
34345 | echo "$as_me: failed program was:" >&5 | |
34346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34347 | ||
34348 | ac_cv_lib_shl_load_dld=no | |
34349 | fi | |
ac1cb8d3 VS |
34350 | rm -f conftest.err conftest.$ac_objext \ |
34351 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34352 | LIBS=$ac_check_lib_save_LIBS |
34353 | fi | |
34354 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
34355 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
34356 | if test $ac_cv_lib_shl_load_dld = yes; then | |
34357 | ||
34358 | HAVE_SHL_FUNCS=1 | |
34359 | DL_LINK=" -ldld$DL_LINK" | |
34360 | ||
34361 | fi | |
34362 | ||
34363 | ||
34364 | fi | |
34365 | done | |
34366 | ||
34367 | ||
34368 | fi | |
34369 | ||
34370 | ||
34371 | fi | |
34372 | done | |
34373 | ||
34374 | ||
34375 | if test "$HAVE_DL_FUNCS" = 1; then | |
34376 | ||
34377 | for ac_func in dlerror | |
34378 | do | |
34379 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34380 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34381 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34382 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34384 | else | |
34385 | cat >conftest.$ac_ext <<_ACEOF | |
34386 | /* confdefs.h. */ | |
34387 | _ACEOF | |
34388 | cat confdefs.h >>conftest.$ac_ext | |
34389 | cat >>conftest.$ac_ext <<_ACEOF | |
34390 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34393 | #define $ac_func innocuous_$ac_func | |
34394 | ||
a848cd7e SC |
34395 | /* System header to define __stub macros and hopefully few prototypes, |
34396 | which can conflict with char $ac_func (); below. | |
34397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34398 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34399 | |
a848cd7e SC |
34400 | #ifdef __STDC__ |
34401 | # include <limits.h> | |
34402 | #else | |
34403 | # include <assert.h> | |
34404 | #endif | |
ac1cb8d3 VS |
34405 | |
34406 | #undef $ac_func | |
34407 | ||
a848cd7e SC |
34408 | /* Override any gcc2 internal prototype to avoid an error. */ |
34409 | #ifdef __cplusplus | |
34410 | extern "C" | |
34411 | { | |
34412 | #endif | |
34413 | /* We use char because int might match the return type of a gcc2 | |
34414 | builtin and then its argument prototype would still apply. */ | |
34415 | char $ac_func (); | |
34416 | /* The GNU C library defines this for functions which it implements | |
34417 | to always fail with ENOSYS. Some functions are actually named | |
34418 | something starting with __ and the normal name is an alias. */ | |
34419 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34420 | choke me | |
34421 | #else | |
34422 | char (*f) () = $ac_func; | |
34423 | #endif | |
34424 | #ifdef __cplusplus | |
34425 | } | |
34426 | #endif | |
34427 | ||
34428 | int | |
34429 | main () | |
34430 | { | |
34431 | return f != $ac_func; | |
34432 | ; | |
34433 | return 0; | |
34434 | } | |
34435 | _ACEOF | |
34436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34438 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34439 | ac_status=$? |
ac1cb8d3 VS |
34440 | grep -v '^ *+' conftest.er1 >conftest.err |
34441 | rm -f conftest.er1 | |
34442 | cat conftest.err >&5 | |
a848cd7e SC |
34443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34444 | (exit $ac_status); } && | |
04840eaa VS |
34445 | { ac_try='test -z "$ac_c_werror_flag" |
34446 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34448 | (eval $ac_try) 2>&5 | |
34449 | ac_status=$? | |
34450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34451 | (exit $ac_status); }; } && | |
34452 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34454 | (eval $ac_try) 2>&5 | |
34455 | ac_status=$? | |
34456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34457 | (exit $ac_status); }; }; then | |
34458 | eval "$as_ac_var=yes" | |
34459 | else | |
34460 | echo "$as_me: failed program was:" >&5 | |
34461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34462 | ||
34463 | eval "$as_ac_var=no" | |
34464 | fi | |
ac1cb8d3 VS |
34465 | rm -f conftest.err conftest.$ac_objext \ |
34466 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34467 | fi |
34468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34469 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34470 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34471 | cat >>confdefs.h <<_ACEOF | |
34472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34473 | _ACEOF | |
34474 | cat >>confdefs.h <<\_ACEOF | |
34475 | #define HAVE_DLERROR 1 | |
34476 | _ACEOF | |
34477 | ||
34478 | else | |
34479 | ||
34480 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
34481 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
34482 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
34483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34484 | else | |
34485 | ac_check_lib_save_LIBS=$LIBS | |
34486 | LIBS="-ldl $LIBS" | |
34487 | cat >conftest.$ac_ext <<_ACEOF | |
34488 | /* confdefs.h. */ | |
34489 | _ACEOF | |
34490 | cat confdefs.h >>conftest.$ac_ext | |
34491 | cat >>conftest.$ac_ext <<_ACEOF | |
34492 | /* end confdefs.h. */ | |
34493 | ||
34494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34495 | #ifdef __cplusplus | |
34496 | extern "C" | |
34497 | #endif | |
34498 | /* We use char because int might match the return type of a gcc2 | |
34499 | builtin and then its argument prototype would still apply. */ | |
34500 | char dlerror (); | |
34501 | int | |
34502 | main () | |
34503 | { | |
34504 | dlerror (); | |
34505 | ; | |
34506 | return 0; | |
34507 | } | |
34508 | _ACEOF | |
34509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34511 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34512 | ac_status=$? |
ac1cb8d3 VS |
34513 | grep -v '^ *+' conftest.er1 >conftest.err |
34514 | rm -f conftest.er1 | |
34515 | cat conftest.err >&5 | |
a848cd7e SC |
34516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34517 | (exit $ac_status); } && | |
04840eaa VS |
34518 | { ac_try='test -z "$ac_c_werror_flag" |
34519 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34521 | (eval $ac_try) 2>&5 | |
34522 | ac_status=$? | |
34523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34524 | (exit $ac_status); }; } && | |
34525 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34527 | (eval $ac_try) 2>&5 | |
34528 | ac_status=$? | |
34529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34530 | (exit $ac_status); }; }; then | |
34531 | ac_cv_lib_dl_dlerror=yes | |
34532 | else | |
34533 | echo "$as_me: failed program was:" >&5 | |
34534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34535 | ||
34536 | ac_cv_lib_dl_dlerror=no | |
34537 | fi | |
ac1cb8d3 VS |
34538 | rm -f conftest.err conftest.$ac_objext \ |
34539 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34540 | LIBS=$ac_check_lib_save_LIBS |
34541 | fi | |
34542 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34543 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34544 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34545 | cat >>confdefs.h <<\_ACEOF | |
34546 | #define HAVE_DLERROR 1 | |
34547 | _ACEOF | |
34548 | ||
34549 | fi | |
34550 | ||
34551 | ||
34552 | ||
34553 | fi | |
34554 | done | |
34555 | ||
34556 | fi | |
34557 | fi | |
34558 | ||
34559 | if test "$HAVE_DL_FUNCS" = 0; then | |
34560 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34561 | if test "$USE_UNIX" = 1; then | |
34562 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
34563 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
34564 | wxUSE_DYNAMIC_LOADER=no | |
34565 | wxUSE_DYNLIB_CLASS=no | |
34566 | else | |
34567 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
34568 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
34569 | fi | |
34570 | fi | |
34571 | fi | |
34572 | fi | |
34573 | fi | |
34574 | ||
34575 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34576 | cat >>confdefs.h <<\_ACEOF | |
34577 | #define wxUSE_DYNAMIC_LOADER 1 | |
34578 | _ACEOF | |
34579 | ||
34580 | fi | |
34581 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34582 | cat >>confdefs.h <<\_ACEOF | |
34583 | #define wxUSE_DYNLIB_CLASS 1 | |
34584 | _ACEOF | |
34585 | ||
34586 | fi | |
34587 | ||
34588 | ||
34589 | ||
34590 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34591 | if test "$wxUSE_SHARED" = "no" ; then | |
34592 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34593 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34594 | wxUSE_PLUGINS=no | |
34595 | fi | |
34596 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34597 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34598 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34599 | wxUSE_PLUGINS=no | |
34600 | fi | |
34601 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34602 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34603 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34604 | wxUSE_PLUGINS=no | |
34605 | fi | |
34606 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34607 | cat >>confdefs.h <<\_ACEOF | |
34608 | #define wxUSE_PLUGINS 1 | |
34609 | _ACEOF | |
34610 | ||
34611 | fi | |
34612 | fi | |
34613 | ||
34614 | ||
34615 | if test "$wxUSE_STL" = "yes"; then | |
34616 | cat >>confdefs.h <<\_ACEOF | |
34617 | #define wxUSE_STL 1 | |
34618 | _ACEOF | |
34619 | ||
34620 | fi | |
34621 | ||
34622 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34623 | cat >>confdefs.h <<\_ACEOF | |
34624 | #define wxUSE_APPLE_IEEE 1 | |
34625 | _ACEOF | |
34626 | ||
34627 | fi | |
34628 | ||
34629 | if test "$wxUSE_TIMER" = "yes"; then | |
34630 | cat >>confdefs.h <<\_ACEOF | |
34631 | #define wxUSE_TIMER 1 | |
34632 | _ACEOF | |
34633 | ||
34634 | fi | |
34635 | ||
34636 | WITH_PLUGIN_SDL=0 | |
34637 | if test "$wxUSE_SOUND" = "yes"; then | |
34638 | if test "$USE_UNIX" = "1" ; then | |
34639 | ||
34640 | for ac_header in sys/soundcard.h | |
34641 | do | |
34642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34644 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34648 | fi | |
34649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34650 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34651 | else | |
34652 | # Is the header compilable? | |
34653 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34655 | cat >conftest.$ac_ext <<_ACEOF | |
34656 | /* confdefs.h. */ | |
34657 | _ACEOF | |
34658 | cat confdefs.h >>conftest.$ac_ext | |
34659 | cat >>conftest.$ac_ext <<_ACEOF | |
34660 | /* end confdefs.h. */ | |
34661 | $ac_includes_default | |
34662 | #include <$ac_header> | |
34663 | _ACEOF | |
34664 | rm -f conftest.$ac_objext | |
34665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34666 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34667 | ac_status=$? |
ac1cb8d3 VS |
34668 | grep -v '^ *+' conftest.er1 >conftest.err |
34669 | rm -f conftest.er1 | |
34670 | cat conftest.err >&5 | |
a848cd7e SC |
34671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34672 | (exit $ac_status); } && | |
04840eaa VS |
34673 | { ac_try='test -z "$ac_c_werror_flag" |
34674 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34676 | (eval $ac_try) 2>&5 | |
34677 | ac_status=$? | |
34678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34679 | (exit $ac_status); }; } && | |
34680 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34682 | (eval $ac_try) 2>&5 | |
34683 | ac_status=$? | |
34684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34685 | (exit $ac_status); }; }; then | |
34686 | ac_header_compiler=yes | |
34687 | else | |
34688 | echo "$as_me: failed program was:" >&5 | |
34689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34690 | ||
34691 | ac_header_compiler=no | |
34692 | fi | |
ac1cb8d3 | 34693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34694 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34695 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34696 | ||
34697 | # Is the header present? | |
34698 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34699 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34700 | cat >conftest.$ac_ext <<_ACEOF | |
34701 | /* confdefs.h. */ | |
34702 | _ACEOF | |
34703 | cat confdefs.h >>conftest.$ac_ext | |
34704 | cat >>conftest.$ac_ext <<_ACEOF | |
34705 | /* end confdefs.h. */ | |
34706 | #include <$ac_header> | |
34707 | _ACEOF | |
34708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34710 | ac_status=$? | |
34711 | grep -v '^ *+' conftest.er1 >conftest.err | |
34712 | rm -f conftest.er1 | |
34713 | cat conftest.err >&5 | |
34714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34715 | (exit $ac_status); } >/dev/null; then | |
34716 | if test -s conftest.err; then | |
34717 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34718 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34719 | else |
34720 | ac_cpp_err= | |
34721 | fi | |
34722 | else | |
34723 | ac_cpp_err=yes | |
34724 | fi | |
34725 | if test -z "$ac_cpp_err"; then | |
34726 | ac_header_preproc=yes | |
34727 | else | |
34728 | echo "$as_me: failed program was:" >&5 | |
34729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34730 | ||
34731 | ac_header_preproc=no | |
34732 | fi | |
34733 | rm -f conftest.err conftest.$ac_ext | |
34734 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34735 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34736 | ||
34737 | # So? What about this header? | |
ac1cb8d3 VS |
34738 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34739 | yes:no: ) | |
a848cd7e SC |
34740 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34741 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34742 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34743 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34744 | ac_header_preproc=yes | |
a848cd7e | 34745 | ;; |
ac1cb8d3 | 34746 | no:yes:* ) |
a848cd7e SC |
34747 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34748 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34749 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34750 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34751 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34752 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34753 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34754 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34756 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34757 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34758 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34759 | ( |
34760 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34761 | ## ----------------------------------------- ## |
34762 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34763 | ## ----------------------------------------- ## | |
a848cd7e SC |
34764 | _ASBOX |
34765 | ) | | |
34766 | sed "s/^/$as_me: WARNING: /" >&2 | |
34767 | ;; | |
34768 | esac | |
34769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34773 | else | |
ac1cb8d3 | 34774 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34775 | fi |
34776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34778 | ||
34779 | fi | |
34780 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34781 | cat >>confdefs.h <<_ACEOF | |
34782 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34783 | _ACEOF | |
34784 | ||
34785 | fi | |
34786 | ||
34787 | done | |
34788 | ||
34789 | ||
34790 | if test "$wxUSE_LIBSDL" != "no"; then | |
34791 | ||
34792 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34793 | if test "${with_sdl_prefix+set}" = set; then | |
34794 | withval="$with_sdl_prefix" | |
34795 | sdl_prefix="$withval" | |
34796 | else | |
34797 | sdl_prefix="" | |
34798 | fi; | |
34799 | ||
34800 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34801 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34802 | withval="$with_sdl_exec_prefix" | |
34803 | sdl_exec_prefix="$withval" | |
34804 | else | |
34805 | sdl_exec_prefix="" | |
34806 | fi; | |
34807 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34808 | if test "${enable_sdltest+set}" = set; then | |
34809 | enableval="$enable_sdltest" | |
34810 | ||
34811 | else | |
34812 | enable_sdltest=yes | |
34813 | fi; | |
34814 | ||
34815 | if test x$sdl_exec_prefix != x ; then | |
34816 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34817 | if test x${SDL_CONFIG+set} != xset ; then | |
34818 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34819 | fi | |
34820 | fi | |
34821 | if test x$sdl_prefix != x ; then | |
34822 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34823 | if test x${SDL_CONFIG+set} != xset ; then | |
34824 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34825 | fi | |
34826 | fi | |
34827 | ||
34828 | ||
34829 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34830 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34831 | set dummy sdl-config; ac_word=$2 | |
34832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34834 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34836 | else | |
34837 | case $SDL_CONFIG in | |
34838 | [\\/]* | ?:[\\/]*) | |
34839 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34840 | ;; | |
34841 | *) | |
34842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34843 | for as_dir in $PATH | |
34844 | do | |
34845 | IFS=$as_save_IFS | |
34846 | test -z "$as_dir" && as_dir=. | |
34847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34849 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34851 | break 2 | |
34852 | fi | |
34853 | done | |
34854 | done | |
34855 | ||
34856 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34857 | ;; | |
34858 | esac | |
34859 | fi | |
34860 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34861 | ||
34862 | if test -n "$SDL_CONFIG"; then | |
34863 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34864 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34865 | else | |
34866 | echo "$as_me:$LINENO: result: no" >&5 | |
34867 | echo "${ECHO_T}no" >&6 | |
34868 | fi | |
34869 | ||
34870 | min_sdl_version=1.2.0 | |
34871 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34872 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34873 | no_sdl="" | |
34874 | if test "$SDL_CONFIG" = "no" ; then | |
34875 | no_sdl=yes | |
34876 | else | |
34877 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34878 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34879 | ||
34880 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34881 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34882 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34883 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34884 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34885 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34886 | if test "x$enable_sdltest" = "xyes" ; then | |
34887 | ac_save_CFLAGS="$CFLAGS" | |
34888 | ac_save_LIBS="$LIBS" | |
34889 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34890 | LIBS="$LIBS $SDL_LIBS" | |
34891 | rm -f conf.sdltest | |
34892 | if test "$cross_compiling" = yes; then | |
34893 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34894 | else | |
34895 | cat >conftest.$ac_ext <<_ACEOF | |
34896 | /* confdefs.h. */ | |
34897 | _ACEOF | |
34898 | cat confdefs.h >>conftest.$ac_ext | |
34899 | cat >>conftest.$ac_ext <<_ACEOF | |
34900 | /* end confdefs.h. */ | |
34901 | ||
34902 | #include <stdio.h> | |
34903 | #include <stdlib.h> | |
34904 | #include <string.h> | |
34905 | #include "SDL.h" | |
34906 | ||
34907 | char* | |
34908 | my_strdup (char *str) | |
34909 | { | |
34910 | char *new_str; | |
34911 | ||
34912 | if (str) | |
34913 | { | |
34914 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34915 | strcpy (new_str, str); | |
34916 | } | |
34917 | else | |
34918 | new_str = NULL; | |
34919 | ||
34920 | return new_str; | |
34921 | } | |
34922 | ||
34923 | int main (int argc, char *argv[]) | |
34924 | { | |
34925 | int major, minor, micro; | |
34926 | char *tmp_version; | |
34927 | ||
34928 | /* This hangs on some systems (?) | |
34929 | system ("touch conf.sdltest"); | |
34930 | */ | |
34931 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34932 | ||
34933 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34934 | tmp_version = my_strdup("$min_sdl_version"); | |
34935 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34936 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34937 | exit(1); | |
34938 | } | |
34939 | ||
34940 | if (($sdl_major_version > major) || | |
34941 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34942 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34943 | { | |
34944 | return 0; | |
34945 | } | |
34946 | else | |
34947 | { | |
34948 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34949 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34950 | printf("*** best to upgrade to the required version.\n"); | |
34951 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34952 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34953 | printf("*** config.cache before re-running configure\n"); | |
34954 | return 1; | |
34955 | } | |
34956 | } | |
34957 | ||
34958 | ||
34959 | _ACEOF | |
34960 | rm -f conftest$ac_exeext | |
34961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34962 | (eval $ac_link) 2>&5 | |
34963 | ac_status=$? | |
34964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34967 | (eval $ac_try) 2>&5 | |
34968 | ac_status=$? | |
34969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34970 | (exit $ac_status); }; }; then | |
34971 | : | |
34972 | else | |
34973 | echo "$as_me: program exited with status $ac_status" >&5 | |
34974 | echo "$as_me: failed program was:" >&5 | |
34975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34976 | ||
34977 | ( exit $ac_status ) | |
34978 | no_sdl=yes | |
34979 | fi | |
ac1cb8d3 | 34980 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34981 | fi |
34982 | CFLAGS="$ac_save_CFLAGS" | |
34983 | LIBS="$ac_save_LIBS" | |
34984 | fi | |
34985 | fi | |
34986 | if test "x$no_sdl" = x ; then | |
34987 | echo "$as_me:$LINENO: result: yes" >&5 | |
34988 | echo "${ECHO_T}yes" >&6 | |
34989 | ||
34990 | EXTRALIBS_SDL="$SDL_LIBS" | |
34991 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34992 | cat >>confdefs.h <<\_ACEOF | |
34993 | #define wxUSE_LIBSDL 1 | |
34994 | _ACEOF | |
34995 | ||
34996 | ||
34997 | else | |
34998 | echo "$as_me:$LINENO: result: no" >&5 | |
34999 | echo "${ECHO_T}no" >&6 | |
35000 | if test "$SDL_CONFIG" = "no" ; then | |
35001 | echo "*** The sdl-config script installed by SDL could not be found" | |
35002 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
35003 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
35004 | echo "*** full path to sdl-config." | |
35005 | else | |
35006 | if test -f conf.sdltest ; then | |
35007 | : | |
35008 | else | |
35009 | echo "*** Could not run SDL test program, checking why..." | |
35010 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
35011 | LIBS="$LIBS $SDL_LIBS" | |
35012 | cat >conftest.$ac_ext <<_ACEOF | |
35013 | /* confdefs.h. */ | |
35014 | _ACEOF | |
35015 | cat confdefs.h >>conftest.$ac_ext | |
35016 | cat >>conftest.$ac_ext <<_ACEOF | |
35017 | /* end confdefs.h. */ | |
35018 | ||
35019 | #include <stdio.h> | |
35020 | #include "SDL.h" | |
35021 | ||
35022 | int main(int argc, char *argv[]) | |
35023 | { return 0; } | |
35024 | #undef main | |
35025 | #define main K_and_R_C_main | |
35026 | ||
35027 | int | |
35028 | main () | |
35029 | { | |
35030 | return 0; | |
35031 | ; | |
35032 | return 0; | |
35033 | } | |
35034 | _ACEOF | |
35035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35037 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35038 | ac_status=$? |
ac1cb8d3 VS |
35039 | grep -v '^ *+' conftest.er1 >conftest.err |
35040 | rm -f conftest.er1 | |
35041 | cat conftest.err >&5 | |
a848cd7e SC |
35042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35043 | (exit $ac_status); } && | |
04840eaa VS |
35044 | { ac_try='test -z "$ac_c_werror_flag" |
35045 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35047 | (eval $ac_try) 2>&5 | |
35048 | ac_status=$? | |
35049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35050 | (exit $ac_status); }; } && | |
35051 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35053 | (eval $ac_try) 2>&5 | |
35054 | ac_status=$? | |
35055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35056 | (exit $ac_status); }; }; then | |
35057 | echo "*** The test program compiled, but did not run. This usually means" | |
35058 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
35059 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
35060 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
35061 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
35062 | echo "*** is required on your system" | |
35063 | echo "***" | |
35064 | echo "*** If you have an old version installed, it is best to remove it, although" | |
35065 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
35066 | else | |
35067 | echo "$as_me: failed program was:" >&5 | |
35068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35069 | ||
35070 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
35071 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
35072 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
35073 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
35074 | fi | |
ac1cb8d3 VS |
35075 | rm -f conftest.err conftest.$ac_objext \ |
35076 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35077 | CFLAGS="$ac_save_CFLAGS" |
35078 | LIBS="$ac_save_LIBS" | |
35079 | fi | |
35080 | fi | |
35081 | SDL_CFLAGS="" | |
35082 | SDL_LIBS="" | |
35083 | wxUSE_LIBSDL="no" | |
35084 | fi | |
35085 | ||
35086 | ||
35087 | rm -f conf.sdltest | |
35088 | ||
35089 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
35090 | WITH_PLUGIN_SDL=1 | |
35091 | fi | |
35092 | fi | |
35093 | fi | |
35094 | ||
35095 | cat >>confdefs.h <<\_ACEOF | |
35096 | #define wxUSE_SOUND 1 | |
35097 | _ACEOF | |
35098 | ||
35099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
35100 | fi | |
35101 | ||
d1c38808 VZ |
35102 | if test "$WXGTK20" = 1; then |
35103 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35104 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
35105 | ||
35106 | ||
35107 | succeeded=no | |
35108 | ||
35109 | if test -z "$PKG_CONFIG"; then | |
35110 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
35111 | set dummy pkg-config; ac_word=$2 | |
35112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35114 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
35115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35116 | else | |
35117 | case $PKG_CONFIG in | |
35118 | [\\/]* | ?:[\\/]*) | |
35119 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
35120 | ;; | |
35121 | *) | |
35122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35123 | for as_dir in $PATH | |
35124 | do | |
35125 | IFS=$as_save_IFS | |
35126 | test -z "$as_dir" && as_dir=. | |
35127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35129 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35131 | break 2 | |
35132 | fi | |
35133 | done | |
35134 | done | |
35135 | ||
35136 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
35137 | ;; | |
35138 | esac | |
35139 | fi | |
35140 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
35141 | ||
35142 | if test -n "$PKG_CONFIG"; then | |
35143 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
35144 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
35145 | else | |
35146 | echo "$as_me:$LINENO: result: no" >&5 | |
35147 | echo "${ECHO_T}no" >&6 | |
35148 | fi | |
35149 | ||
35150 | fi | |
35151 | ||
35152 | if test "$PKG_CONFIG" = "no" ; then | |
35153 | echo "*** The pkg-config script could not be found. Make sure it is" | |
35154 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
35155 | echo "*** to the full path to pkg-config." | |
35156 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
35157 | else | |
35158 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
35159 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
35160 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
35161 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 35162 | |
ffa762ff | 35163 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
35164 | echo "$as_me:$LINENO: result: yes" >&5 |
35165 | echo "${ECHO_T}yes" >&6 | |
35166 | succeeded=yes | |
35167 | ||
35168 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
35169 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 35170 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35171 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
35172 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
35173 | ||
35174 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
35175 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 35176 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35177 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
35178 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
35179 | else | |
35180 | LIBGNOMEPRINTUI_CFLAGS="" | |
35181 | LIBGNOMEPRINTUI_LIBS="" | |
35182 | ## If we have a custom action on failure, don't print errors, but | |
35183 | ## do set a variable so people can do so. | |
ffa762ff | 35184 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35185 | |
35186 | fi | |
35187 | ||
35188 | ||
35189 | ||
35190 | else | |
35191 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
35192 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
35193 | fi | |
35194 | fi | |
35195 | ||
35196 | if test $succeeded = yes; then | |
35197 | ||
d1c38808 VZ |
35198 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
35199 | cat >>confdefs.h <<\_ACEOF | |
35200 | #define wxUSE_LIBGNOMEPRINT 1 | |
35201 | _ACEOF | |
35202 | ||
35203 | ||
35204 | else | |
35205 | ||
35206 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
35207 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
35208 | wxUSE_LIBGNOMEPRINT="no" | |
35209 | ||
35210 | ||
35211 | fi | |
35212 | ||
35213 | fi | |
35214 | fi | |
35215 | fi | |
35216 | ||
35217 | ||
a848cd7e SC |
35218 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
35219 | cat >>confdefs.h <<\_ACEOF | |
35220 | #define wxUSE_CMDLINE_PARSER 1 | |
35221 | _ACEOF | |
35222 | ||
35223 | fi | |
35224 | ||
35225 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
35226 | cat >>confdefs.h <<\_ACEOF | |
35227 | #define wxUSE_STOPWATCH 1 | |
35228 | _ACEOF | |
35229 | ||
35230 | fi | |
35231 | ||
35232 | if test "$wxUSE_DATETIME" = "yes"; then | |
35233 | cat >>confdefs.h <<\_ACEOF | |
35234 | #define wxUSE_DATETIME 1 | |
35235 | _ACEOF | |
35236 | ||
35237 | fi | |
35238 | ||
35239 | if test "$wxUSE_FILE" = "yes"; then | |
35240 | cat >>confdefs.h <<\_ACEOF | |
35241 | #define wxUSE_FILE 1 | |
35242 | _ACEOF | |
35243 | ||
35244 | fi | |
35245 | ||
35246 | if test "$wxUSE_FFILE" = "yes"; then | |
35247 | cat >>confdefs.h <<\_ACEOF | |
35248 | #define wxUSE_FFILE 1 | |
35249 | _ACEOF | |
35250 | ||
35251 | fi | |
35252 | ||
35253 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
35254 | cat >>confdefs.h <<\_ACEOF | |
35255 | #define wxUSE_FILESYSTEM 1 | |
35256 | _ACEOF | |
35257 | ||
35258 | fi | |
35259 | ||
35260 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
35261 | cat >>confdefs.h <<\_ACEOF | |
35262 | #define wxUSE_FS_ZIP 1 | |
35263 | _ACEOF | |
35264 | ||
35265 | fi | |
35266 | ||
35267 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
35268 | cat >>confdefs.h <<\_ACEOF | |
35269 | #define wxUSE_ZIPSTREAM 1 | |
35270 | _ACEOF | |
35271 | ||
35272 | fi | |
35273 | ||
a848cd7e SC |
35274 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
35275 | cat >>confdefs.h <<\_ACEOF | |
35276 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
35277 | _ACEOF | |
35278 | ||
35279 | fi | |
35280 | ||
eaff0f0d VZ |
35281 | if test "$wxUSE_STACKWALKER" = "yes"; then |
35282 | cat >>confdefs.h <<\_ACEOF | |
35283 | #define wxUSE_STACKWALKER 1 | |
35284 | _ACEOF | |
35285 | ||
35286 | fi | |
35287 | ||
a848cd7e SC |
35288 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
35289 | cat >>confdefs.h <<\_ACEOF | |
35290 | #define wxUSE_SNGLINST_CHECKER 1 | |
35291 | _ACEOF | |
35292 | ||
35293 | fi | |
35294 | ||
35295 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
35296 | cat >>confdefs.h <<\_ACEOF | |
35297 | #define wxUSE_BUSYINFO 1 | |
35298 | _ACEOF | |
35299 | ||
35300 | fi | |
35301 | ||
35302 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
35303 | cat >>confdefs.h <<\_ACEOF | |
35304 | #define wxUSE_STD_IOSTREAM 1 | |
35305 | _ACEOF | |
35306 | ||
35307 | fi | |
35308 | ||
35309 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
35310 | cat >>confdefs.h <<\_ACEOF | |
35311 | #define wxUSE_TEXTBUFFER 1 | |
35312 | _ACEOF | |
35313 | ||
35314 | fi | |
35315 | ||
35316 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
35317 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
35318 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
35319 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
35320 | else | |
35321 | cat >>confdefs.h <<\_ACEOF | |
35322 | #define wxUSE_TEXTFILE 1 | |
35323 | _ACEOF | |
35324 | ||
35325 | fi | |
35326 | fi | |
35327 | ||
35328 | if test "$wxUSE_CONFIG" = "yes" ; then | |
35329 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
35330 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
35331 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
35332 | else | |
35333 | cat >>confdefs.h <<\_ACEOF | |
35334 | #define wxUSE_CONFIG 1 | |
35335 | _ACEOF | |
35336 | ||
35337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
35338 | fi | |
35339 | fi | |
35340 | ||
35341 | if test "$wxUSE_INTL" = "yes" ; then | |
35342 | if test "$wxUSE_FILE" != "yes"; then | |
35343 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
35344 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
35345 | else | |
35346 | cat >>confdefs.h <<\_ACEOF | |
35347 | #define wxUSE_INTL 1 | |
35348 | _ACEOF | |
35349 | ||
35350 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
35351 | GUIDIST="$GUIDIST INTL_DIST" | |
35352 | fi | |
35353 | fi | |
35354 | ||
35355 | if test "$wxUSE_LOG" = "yes"; then | |
35356 | cat >>confdefs.h <<\_ACEOF | |
35357 | #define wxUSE_LOG 1 | |
35358 | _ACEOF | |
35359 | ||
35360 | ||
35361 | if test "$wxUSE_LOGGUI" = "yes"; then | |
35362 | cat >>confdefs.h <<\_ACEOF | |
35363 | #define wxUSE_LOGGUI 1 | |
35364 | _ACEOF | |
35365 | ||
35366 | fi | |
35367 | ||
35368 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
35369 | cat >>confdefs.h <<\_ACEOF | |
35370 | #define wxUSE_LOGWINDOW 1 | |
35371 | _ACEOF | |
35372 | ||
35373 | fi | |
35374 | ||
35375 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
35376 | cat >>confdefs.h <<\_ACEOF | |
35377 | #define wxUSE_LOG_DIALOG 1 | |
35378 | _ACEOF | |
35379 | ||
35380 | fi | |
35381 | fi | |
35382 | ||
35383 | if test "$wxUSE_LONGLONG" = "yes"; then | |
35384 | cat >>confdefs.h <<\_ACEOF | |
35385 | #define wxUSE_LONGLONG 1 | |
35386 | _ACEOF | |
35387 | ||
35388 | fi | |
35389 | ||
35390 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
35391 | cat >>confdefs.h <<\_ACEOF | |
35392 | #define wxUSE_GEOMETRY 1 | |
35393 | _ACEOF | |
35394 | ||
35395 | fi | |
35396 | ||
35397 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
35398 | cat >>confdefs.h <<\_ACEOF | |
35399 | #define wxUSE_DIALUP_MANAGER 1 | |
35400 | _ACEOF | |
35401 | ||
35402 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
35403 | fi | |
35404 | ||
35405 | if test "$wxUSE_STREAMS" = "yes" ; then | |
35406 | cat >>confdefs.h <<\_ACEOF | |
35407 | #define wxUSE_STREAMS 1 | |
35408 | _ACEOF | |
35409 | ||
35410 | fi | |
35411 | ||
35412 | ||
35413 | if test "$wxUSE_DATETIME" = "yes"; then | |
35414 | ||
35415 | for ac_func in strptime | |
35416 | do | |
35417 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35418 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35419 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35420 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35422 | else | |
35423 | cat >conftest.$ac_ext <<_ACEOF | |
35424 | /* confdefs.h. */ | |
35425 | _ACEOF | |
35426 | cat confdefs.h >>conftest.$ac_ext | |
35427 | cat >>conftest.$ac_ext <<_ACEOF | |
35428 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35429 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35430 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35431 | #define $ac_func innocuous_$ac_func | |
35432 | ||
a848cd7e SC |
35433 | /* System header to define __stub macros and hopefully few prototypes, |
35434 | which can conflict with char $ac_func (); below. | |
35435 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35436 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35437 | |
a848cd7e SC |
35438 | #ifdef __STDC__ |
35439 | # include <limits.h> | |
35440 | #else | |
35441 | # include <assert.h> | |
35442 | #endif | |
ac1cb8d3 VS |
35443 | |
35444 | #undef $ac_func | |
35445 | ||
a848cd7e SC |
35446 | /* Override any gcc2 internal prototype to avoid an error. */ |
35447 | #ifdef __cplusplus | |
35448 | extern "C" | |
35449 | { | |
35450 | #endif | |
35451 | /* We use char because int might match the return type of a gcc2 | |
35452 | builtin and then its argument prototype would still apply. */ | |
35453 | char $ac_func (); | |
35454 | /* The GNU C library defines this for functions which it implements | |
35455 | to always fail with ENOSYS. Some functions are actually named | |
35456 | something starting with __ and the normal name is an alias. */ | |
35457 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35458 | choke me | |
35459 | #else | |
35460 | char (*f) () = $ac_func; | |
35461 | #endif | |
35462 | #ifdef __cplusplus | |
35463 | } | |
35464 | #endif | |
35465 | ||
35466 | int | |
35467 | main () | |
35468 | { | |
35469 | return f != $ac_func; | |
35470 | ; | |
35471 | return 0; | |
35472 | } | |
35473 | _ACEOF | |
35474 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35476 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35477 | ac_status=$? |
ac1cb8d3 VS |
35478 | grep -v '^ *+' conftest.er1 >conftest.err |
35479 | rm -f conftest.er1 | |
35480 | cat conftest.err >&5 | |
a848cd7e SC |
35481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35482 | (exit $ac_status); } && | |
04840eaa VS |
35483 | { ac_try='test -z "$ac_c_werror_flag" |
35484 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35486 | (eval $ac_try) 2>&5 | |
35487 | ac_status=$? | |
35488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35489 | (exit $ac_status); }; } && | |
35490 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35492 | (eval $ac_try) 2>&5 | |
35493 | ac_status=$? | |
35494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35495 | (exit $ac_status); }; }; then | |
35496 | eval "$as_ac_var=yes" | |
35497 | else | |
35498 | echo "$as_me: failed program was:" >&5 | |
35499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35500 | ||
35501 | eval "$as_ac_var=no" | |
35502 | fi | |
ac1cb8d3 VS |
35503 | rm -f conftest.err conftest.$ac_objext \ |
35504 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35505 | fi |
35506 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35507 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35508 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35509 | cat >>confdefs.h <<_ACEOF | |
35510 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35511 | _ACEOF | |
35512 | ||
35513 | fi | |
35514 | done | |
35515 | ||
35516 | ||
35517 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
35518 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
35519 | if test "${wx_cv_var_timezone+set}" = set; then | |
35520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35521 | else | |
35522 | ||
35523 | cat >conftest.$ac_ext <<_ACEOF | |
35524 | /* confdefs.h. */ | |
35525 | _ACEOF | |
35526 | cat confdefs.h >>conftest.$ac_ext | |
35527 | cat >>conftest.$ac_ext <<_ACEOF | |
35528 | /* end confdefs.h. */ | |
35529 | ||
35530 | #include <time.h> | |
35531 | ||
35532 | int | |
35533 | main () | |
35534 | { | |
35535 | ||
35536 | int tz; | |
35537 | tz = timezone; | |
35538 | ||
35539 | ; | |
35540 | return 0; | |
35541 | } | |
35542 | _ACEOF | |
35543 | rm -f conftest.$ac_objext | |
35544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35545 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35546 | ac_status=$? |
ac1cb8d3 VS |
35547 | grep -v '^ *+' conftest.er1 >conftest.err |
35548 | rm -f conftest.er1 | |
35549 | cat conftest.err >&5 | |
a848cd7e SC |
35550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35551 | (exit $ac_status); } && | |
04840eaa VS |
35552 | { ac_try='test -z "$ac_c_werror_flag" |
35553 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35555 | (eval $ac_try) 2>&5 | |
35556 | ac_status=$? | |
35557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35558 | (exit $ac_status); }; } && | |
35559 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35561 | (eval $ac_try) 2>&5 | |
35562 | ac_status=$? | |
35563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35564 | (exit $ac_status); }; }; then | |
35565 | ||
35566 | wx_cv_var_timezone=timezone | |
35567 | ||
35568 | else | |
35569 | echo "$as_me: failed program was:" >&5 | |
35570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35571 | ||
35572 | ||
35573 | cat >conftest.$ac_ext <<_ACEOF | |
35574 | /* confdefs.h. */ | |
35575 | _ACEOF | |
35576 | cat confdefs.h >>conftest.$ac_ext | |
35577 | cat >>conftest.$ac_ext <<_ACEOF | |
35578 | /* end confdefs.h. */ | |
35579 | ||
35580 | #include <time.h> | |
35581 | ||
35582 | int | |
35583 | main () | |
35584 | { | |
35585 | ||
35586 | int tz; | |
35587 | tz = _timezone; | |
35588 | ||
35589 | ; | |
35590 | return 0; | |
35591 | } | |
35592 | _ACEOF | |
35593 | rm -f conftest.$ac_objext | |
35594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35595 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35596 | ac_status=$? |
ac1cb8d3 VS |
35597 | grep -v '^ *+' conftest.er1 >conftest.err |
35598 | rm -f conftest.er1 | |
35599 | cat conftest.err >&5 | |
a848cd7e SC |
35600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35601 | (exit $ac_status); } && | |
04840eaa VS |
35602 | { ac_try='test -z "$ac_c_werror_flag" |
35603 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35605 | (eval $ac_try) 2>&5 | |
35606 | ac_status=$? | |
35607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35608 | (exit $ac_status); }; } && | |
35609 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35611 | (eval $ac_try) 2>&5 | |
35612 | ac_status=$? | |
35613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35614 | (exit $ac_status); }; }; then | |
35615 | ||
35616 | wx_cv_var_timezone=_timezone | |
35617 | ||
35618 | else | |
35619 | echo "$as_me: failed program was:" >&5 | |
35620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35621 | ||
35622 | ||
35623 | cat >conftest.$ac_ext <<_ACEOF | |
35624 | /* confdefs.h. */ | |
35625 | _ACEOF | |
35626 | cat confdefs.h >>conftest.$ac_ext | |
35627 | cat >>conftest.$ac_ext <<_ACEOF | |
35628 | /* end confdefs.h. */ | |
35629 | ||
35630 | #include <time.h> | |
35631 | ||
35632 | int | |
35633 | main () | |
35634 | { | |
35635 | ||
35636 | int tz; | |
35637 | tz = __timezone; | |
35638 | ||
35639 | ; | |
35640 | return 0; | |
35641 | } | |
35642 | _ACEOF | |
35643 | rm -f conftest.$ac_objext | |
35644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35645 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35646 | ac_status=$? |
ac1cb8d3 VS |
35647 | grep -v '^ *+' conftest.er1 >conftest.err |
35648 | rm -f conftest.er1 | |
35649 | cat conftest.err >&5 | |
a848cd7e SC |
35650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35651 | (exit $ac_status); } && | |
04840eaa VS |
35652 | { ac_try='test -z "$ac_c_werror_flag" |
35653 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35655 | (eval $ac_try) 2>&5 | |
35656 | ac_status=$? | |
35657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35658 | (exit $ac_status); }; } && | |
35659 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35661 | (eval $ac_try) 2>&5 | |
35662 | ac_status=$? | |
35663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35664 | (exit $ac_status); }; }; then | |
35665 | ||
35666 | wx_cv_var_timezone=__timezone | |
35667 | ||
35668 | else | |
35669 | echo "$as_me: failed program was:" >&5 | |
35670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35671 | ||
35672 | ||
35673 | if test "$USE_DOS" = 0 ; then | |
35674 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35675 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35676 | fi | |
35677 | ||
35678 | ||
35679 | fi | |
ac1cb8d3 | 35680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35681 | |
35682 | ||
35683 | fi | |
ac1cb8d3 | 35684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35685 | |
35686 | ||
35687 | fi | |
ac1cb8d3 | 35688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35689 | |
35690 | ||
35691 | fi | |
35692 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
35693 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
35694 | ||
35695 | if test "x$wx_cv_var_timezone" != x ; then | |
35696 | cat >>confdefs.h <<_ACEOF | |
35697 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35698 | _ACEOF | |
35699 | ||
35700 | fi | |
35701 | ||
35702 | ||
35703 | for ac_func in localtime | |
35704 | do | |
35705 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35706 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35707 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35708 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35710 | else | |
35711 | cat >conftest.$ac_ext <<_ACEOF | |
35712 | /* confdefs.h. */ | |
35713 | _ACEOF | |
35714 | cat confdefs.h >>conftest.$ac_ext | |
35715 | cat >>conftest.$ac_ext <<_ACEOF | |
35716 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35717 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35719 | #define $ac_func innocuous_$ac_func | |
35720 | ||
a848cd7e SC |
35721 | /* System header to define __stub macros and hopefully few prototypes, |
35722 | which can conflict with char $ac_func (); below. | |
35723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35724 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35725 | |
a848cd7e SC |
35726 | #ifdef __STDC__ |
35727 | # include <limits.h> | |
35728 | #else | |
35729 | # include <assert.h> | |
35730 | #endif | |
ac1cb8d3 VS |
35731 | |
35732 | #undef $ac_func | |
35733 | ||
a848cd7e SC |
35734 | /* Override any gcc2 internal prototype to avoid an error. */ |
35735 | #ifdef __cplusplus | |
35736 | extern "C" | |
35737 | { | |
35738 | #endif | |
35739 | /* We use char because int might match the return type of a gcc2 | |
35740 | builtin and then its argument prototype would still apply. */ | |
35741 | char $ac_func (); | |
35742 | /* The GNU C library defines this for functions which it implements | |
35743 | to always fail with ENOSYS. Some functions are actually named | |
35744 | something starting with __ and the normal name is an alias. */ | |
35745 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35746 | choke me | |
35747 | #else | |
35748 | char (*f) () = $ac_func; | |
35749 | #endif | |
35750 | #ifdef __cplusplus | |
35751 | } | |
35752 | #endif | |
35753 | ||
35754 | int | |
35755 | main () | |
35756 | { | |
35757 | return f != $ac_func; | |
35758 | ; | |
35759 | return 0; | |
35760 | } | |
35761 | _ACEOF | |
35762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35765 | ac_status=$? |
ac1cb8d3 VS |
35766 | grep -v '^ *+' conftest.er1 >conftest.err |
35767 | rm -f conftest.er1 | |
35768 | cat conftest.err >&5 | |
a848cd7e SC |
35769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35770 | (exit $ac_status); } && | |
04840eaa VS |
35771 | { ac_try='test -z "$ac_c_werror_flag" |
35772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35774 | (eval $ac_try) 2>&5 | |
35775 | ac_status=$? | |
35776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35777 | (exit $ac_status); }; } && | |
35778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35780 | (eval $ac_try) 2>&5 | |
35781 | ac_status=$? | |
35782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35783 | (exit $ac_status); }; }; then | |
35784 | eval "$as_ac_var=yes" | |
35785 | else | |
35786 | echo "$as_me: failed program was:" >&5 | |
35787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35788 | ||
35789 | eval "$as_ac_var=no" | |
35790 | fi | |
ac1cb8d3 VS |
35791 | rm -f conftest.err conftest.$ac_objext \ |
35792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35793 | fi |
35794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35795 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35796 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35797 | cat >>confdefs.h <<_ACEOF | |
35798 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35799 | _ACEOF | |
35800 | ||
35801 | fi | |
35802 | done | |
35803 | ||
35804 | ||
35805 | if test "$ac_cv_func_localtime" = "yes"; then | |
35806 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
35807 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
35808 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
35809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35810 | else | |
35811 | ||
35812 | cat >conftest.$ac_ext <<_ACEOF | |
35813 | /* confdefs.h. */ | |
35814 | _ACEOF | |
35815 | cat confdefs.h >>conftest.$ac_ext | |
35816 | cat >>conftest.$ac_ext <<_ACEOF | |
35817 | /* end confdefs.h. */ | |
35818 | ||
35819 | #include <time.h> | |
35820 | ||
35821 | int | |
35822 | main () | |
35823 | { | |
35824 | ||
35825 | struct tm tm; | |
35826 | tm.tm_gmtoff++; | |
35827 | ||
35828 | ; | |
35829 | return 0; | |
35830 | } | |
35831 | _ACEOF | |
35832 | rm -f conftest.$ac_objext | |
35833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35835 | ac_status=$? |
ac1cb8d3 VS |
35836 | grep -v '^ *+' conftest.er1 >conftest.err |
35837 | rm -f conftest.er1 | |
35838 | cat conftest.err >&5 | |
a848cd7e SC |
35839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35840 | (exit $ac_status); } && | |
04840eaa VS |
35841 | { ac_try='test -z "$ac_c_werror_flag" |
35842 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35844 | (eval $ac_try) 2>&5 | |
35845 | ac_status=$? | |
35846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35847 | (exit $ac_status); }; } && | |
35848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35850 | (eval $ac_try) 2>&5 | |
35851 | ac_status=$? | |
35852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35853 | (exit $ac_status); }; }; then | |
35854 | ||
35855 | wx_cv_struct_tm_has_gmtoff=yes | |
35856 | ||
35857 | else | |
35858 | echo "$as_me: failed program was:" >&5 | |
35859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35860 | ||
35861 | wx_cv_struct_tm_has_gmtoff=no | |
35862 | ||
35863 | fi | |
ac1cb8d3 | 35864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35865 | |
35866 | fi | |
35867 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35868 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35869 | fi | |
35870 | ||
35871 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35872 | cat >>confdefs.h <<\_ACEOF | |
35873 | #define WX_GMTOFF_IN_TM 1 | |
35874 | _ACEOF | |
35875 | ||
35876 | fi | |
35877 | ||
35878 | ||
35879 | ||
35880 | for ac_func in gettimeofday ftime | |
35881 | do | |
35882 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35883 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35884 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35885 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35887 | else | |
35888 | cat >conftest.$ac_ext <<_ACEOF | |
35889 | /* confdefs.h. */ | |
35890 | _ACEOF | |
35891 | cat confdefs.h >>conftest.$ac_ext | |
35892 | cat >>conftest.$ac_ext <<_ACEOF | |
35893 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35894 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35896 | #define $ac_func innocuous_$ac_func | |
35897 | ||
a848cd7e SC |
35898 | /* System header to define __stub macros and hopefully few prototypes, |
35899 | which can conflict with char $ac_func (); below. | |
35900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35901 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35902 | |
a848cd7e SC |
35903 | #ifdef __STDC__ |
35904 | # include <limits.h> | |
35905 | #else | |
35906 | # include <assert.h> | |
35907 | #endif | |
ac1cb8d3 VS |
35908 | |
35909 | #undef $ac_func | |
35910 | ||
a848cd7e SC |
35911 | /* Override any gcc2 internal prototype to avoid an error. */ |
35912 | #ifdef __cplusplus | |
35913 | extern "C" | |
35914 | { | |
35915 | #endif | |
35916 | /* We use char because int might match the return type of a gcc2 | |
35917 | builtin and then its argument prototype would still apply. */ | |
35918 | char $ac_func (); | |
35919 | /* The GNU C library defines this for functions which it implements | |
35920 | to always fail with ENOSYS. Some functions are actually named | |
35921 | something starting with __ and the normal name is an alias. */ | |
35922 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35923 | choke me | |
35924 | #else | |
35925 | char (*f) () = $ac_func; | |
35926 | #endif | |
35927 | #ifdef __cplusplus | |
35928 | } | |
35929 | #endif | |
35930 | ||
35931 | int | |
35932 | main () | |
35933 | { | |
35934 | return f != $ac_func; | |
35935 | ; | |
35936 | return 0; | |
35937 | } | |
35938 | _ACEOF | |
35939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35941 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35942 | ac_status=$? |
ac1cb8d3 VS |
35943 | grep -v '^ *+' conftest.er1 >conftest.err |
35944 | rm -f conftest.er1 | |
35945 | cat conftest.err >&5 | |
a848cd7e SC |
35946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35947 | (exit $ac_status); } && | |
04840eaa VS |
35948 | { ac_try='test -z "$ac_c_werror_flag" |
35949 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35951 | (eval $ac_try) 2>&5 | |
35952 | ac_status=$? | |
35953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35954 | (exit $ac_status); }; } && | |
35955 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35957 | (eval $ac_try) 2>&5 | |
35958 | ac_status=$? | |
35959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35960 | (exit $ac_status); }; }; then | |
35961 | eval "$as_ac_var=yes" | |
35962 | else | |
35963 | echo "$as_me: failed program was:" >&5 | |
35964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35965 | ||
35966 | eval "$as_ac_var=no" | |
35967 | fi | |
ac1cb8d3 VS |
35968 | rm -f conftest.err conftest.$ac_objext \ |
35969 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35970 | fi |
35971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35972 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35973 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35974 | cat >>confdefs.h <<_ACEOF | |
35975 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35976 | _ACEOF | |
35977 | break | |
35978 | fi | |
35979 | done | |
35980 | ||
35981 | ||
35982 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35983 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35984 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35985 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35987 | else | |
35988 | ||
35989 | ||
35990 | ||
35991 | ac_ext=cc | |
35992 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35993 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35994 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35995 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35996 | ||
35997 | ||
35998 | cat >conftest.$ac_ext <<_ACEOF | |
35999 | /* confdefs.h. */ | |
36000 | _ACEOF | |
36001 | cat confdefs.h >>conftest.$ac_ext | |
36002 | cat >>conftest.$ac_ext <<_ACEOF | |
36003 | /* end confdefs.h. */ | |
36004 | ||
36005 | #include <sys/time.h> | |
36006 | #include <unistd.h> | |
36007 | ||
36008 | int | |
36009 | main () | |
36010 | { | |
36011 | ||
36012 | struct timeval tv; | |
36013 | gettimeofday(&tv, NULL); | |
36014 | ||
36015 | ; | |
36016 | return 0; | |
36017 | } | |
36018 | _ACEOF | |
36019 | rm -f conftest.$ac_objext | |
36020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36022 | ac_status=$? |
ac1cb8d3 VS |
36023 | grep -v '^ *+' conftest.er1 >conftest.err |
36024 | rm -f conftest.er1 | |
36025 | cat conftest.err >&5 | |
a848cd7e SC |
36026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36027 | (exit $ac_status); } && | |
04840eaa VS |
36028 | { ac_try='test -z "$ac_cxx_werror_flag" |
36029 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36031 | (eval $ac_try) 2>&5 | |
36032 | ac_status=$? | |
36033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36034 | (exit $ac_status); }; } && | |
36035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36037 | (eval $ac_try) 2>&5 | |
36038 | ac_status=$? | |
36039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36040 | (exit $ac_status); }; }; then | |
36041 | wx_cv_func_gettimeofday_has_2_args=yes | |
36042 | else | |
36043 | echo "$as_me: failed program was:" >&5 | |
36044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36045 | ||
36046 | cat >conftest.$ac_ext <<_ACEOF | |
36047 | /* confdefs.h. */ | |
36048 | _ACEOF | |
36049 | cat confdefs.h >>conftest.$ac_ext | |
36050 | cat >>conftest.$ac_ext <<_ACEOF | |
36051 | /* end confdefs.h. */ | |
36052 | ||
36053 | #include <sys/time.h> | |
36054 | #include <unistd.h> | |
36055 | ||
36056 | int | |
36057 | main () | |
36058 | { | |
36059 | ||
36060 | struct timeval tv; | |
36061 | gettimeofday(&tv); | |
36062 | ||
36063 | ; | |
36064 | return 0; | |
36065 | } | |
36066 | _ACEOF | |
36067 | rm -f conftest.$ac_objext | |
36068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36070 | ac_status=$? |
ac1cb8d3 VS |
36071 | grep -v '^ *+' conftest.er1 >conftest.err |
36072 | rm -f conftest.er1 | |
36073 | cat conftest.err >&5 | |
a848cd7e SC |
36074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36075 | (exit $ac_status); } && | |
04840eaa VS |
36076 | { ac_try='test -z "$ac_cxx_werror_flag" |
36077 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36079 | (eval $ac_try) 2>&5 | |
36080 | ac_status=$? | |
36081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36082 | (exit $ac_status); }; } && | |
36083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36085 | (eval $ac_try) 2>&5 | |
36086 | ac_status=$? | |
36087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36088 | (exit $ac_status); }; }; then | |
36089 | wx_cv_func_gettimeofday_has_2_args=no | |
36090 | else | |
36091 | echo "$as_me: failed program was:" >&5 | |
36092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36093 | ||
36094 | ||
36095 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
36096 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
36097 | wx_cv_func_gettimeofday_has_2_args=unknown | |
36098 | ||
36099 | ||
36100 | fi | |
ac1cb8d3 | 36101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36102 | |
36103 | fi | |
ac1cb8d3 | 36104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36105 | ac_ext=c |
36106 | ac_cpp='$CPP $CPPFLAGS' | |
36107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36110 | ||
36111 | ||
36112 | fi | |
36113 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
36114 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
36115 | ||
36116 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
36117 | cat >>confdefs.h <<\_ACEOF | |
36118 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
36119 | _ACEOF | |
36120 | ||
36121 | fi | |
36122 | fi | |
36123 | ||
36124 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
36125 | fi | |
36126 | ||
36127 | ||
36128 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36129 | if test "$wxUSE_MGL" = "1"; then | |
36130 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
36131 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
36132 | wxUSE_SOCKETS="no" | |
36133 | fi | |
36134 | fi | |
36135 | ||
36136 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36137 | if test "$TOOLKIT" != "MSW"; then | |
36138 | echo "$as_me:$LINENO: checking for socket" >&5 | |
36139 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
36140 | if test "${ac_cv_func_socket+set}" = set; then | |
36141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36142 | else | |
36143 | cat >conftest.$ac_ext <<_ACEOF | |
36144 | /* confdefs.h. */ | |
36145 | _ACEOF | |
36146 | cat confdefs.h >>conftest.$ac_ext | |
36147 | cat >>conftest.$ac_ext <<_ACEOF | |
36148 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36149 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
36150 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36151 | #define socket innocuous_socket | |
36152 | ||
a848cd7e SC |
36153 | /* System header to define __stub macros and hopefully few prototypes, |
36154 | which can conflict with char socket (); below. | |
36155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36156 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36157 | |
a848cd7e SC |
36158 | #ifdef __STDC__ |
36159 | # include <limits.h> | |
36160 | #else | |
36161 | # include <assert.h> | |
36162 | #endif | |
ac1cb8d3 VS |
36163 | |
36164 | #undef socket | |
36165 | ||
a848cd7e SC |
36166 | /* Override any gcc2 internal prototype to avoid an error. */ |
36167 | #ifdef __cplusplus | |
36168 | extern "C" | |
36169 | { | |
36170 | #endif | |
36171 | /* We use char because int might match the return type of a gcc2 | |
36172 | builtin and then its argument prototype would still apply. */ | |
36173 | char socket (); | |
36174 | /* The GNU C library defines this for functions which it implements | |
36175 | to always fail with ENOSYS. Some functions are actually named | |
36176 | something starting with __ and the normal name is an alias. */ | |
36177 | #if defined (__stub_socket) || defined (__stub___socket) | |
36178 | choke me | |
36179 | #else | |
36180 | char (*f) () = socket; | |
36181 | #endif | |
36182 | #ifdef __cplusplus | |
36183 | } | |
36184 | #endif | |
36185 | ||
36186 | int | |
36187 | main () | |
36188 | { | |
36189 | return f != socket; | |
36190 | ; | |
36191 | return 0; | |
36192 | } | |
36193 | _ACEOF | |
36194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36196 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36197 | ac_status=$? |
ac1cb8d3 VS |
36198 | grep -v '^ *+' conftest.er1 >conftest.err |
36199 | rm -f conftest.er1 | |
36200 | cat conftest.err >&5 | |
a848cd7e SC |
36201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36202 | (exit $ac_status); } && | |
04840eaa VS |
36203 | { ac_try='test -z "$ac_c_werror_flag" |
36204 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36206 | (eval $ac_try) 2>&5 | |
36207 | ac_status=$? | |
36208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36209 | (exit $ac_status); }; } && | |
36210 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36212 | (eval $ac_try) 2>&5 | |
36213 | ac_status=$? | |
36214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36215 | (exit $ac_status); }; }; then | |
36216 | ac_cv_func_socket=yes | |
36217 | else | |
36218 | echo "$as_me: failed program was:" >&5 | |
36219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36220 | ||
36221 | ac_cv_func_socket=no | |
36222 | fi | |
ac1cb8d3 VS |
36223 | rm -f conftest.err conftest.$ac_objext \ |
36224 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36225 | fi |
36226 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
36227 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
36228 | if test $ac_cv_func_socket = yes; then | |
36229 | : | |
36230 | else | |
36231 | ||
36232 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
36233 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
36234 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
36235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36236 | else | |
36237 | ac_check_lib_save_LIBS=$LIBS | |
36238 | LIBS="-lsocket $LIBS" | |
36239 | cat >conftest.$ac_ext <<_ACEOF | |
36240 | /* confdefs.h. */ | |
36241 | _ACEOF | |
36242 | cat confdefs.h >>conftest.$ac_ext | |
36243 | cat >>conftest.$ac_ext <<_ACEOF | |
36244 | /* end confdefs.h. */ | |
36245 | ||
36246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36247 | #ifdef __cplusplus | |
36248 | extern "C" | |
36249 | #endif | |
36250 | /* We use char because int might match the return type of a gcc2 | |
36251 | builtin and then its argument prototype would still apply. */ | |
36252 | char socket (); | |
36253 | int | |
36254 | main () | |
36255 | { | |
36256 | socket (); | |
36257 | ; | |
36258 | return 0; | |
36259 | } | |
36260 | _ACEOF | |
36261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36263 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36264 | ac_status=$? |
ac1cb8d3 VS |
36265 | grep -v '^ *+' conftest.er1 >conftest.err |
36266 | rm -f conftest.er1 | |
36267 | cat conftest.err >&5 | |
a848cd7e SC |
36268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36269 | (exit $ac_status); } && | |
04840eaa VS |
36270 | { ac_try='test -z "$ac_c_werror_flag" |
36271 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36273 | (eval $ac_try) 2>&5 | |
36274 | ac_status=$? | |
36275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36276 | (exit $ac_status); }; } && | |
36277 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36279 | (eval $ac_try) 2>&5 | |
36280 | ac_status=$? | |
36281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36282 | (exit $ac_status); }; }; then | |
36283 | ac_cv_lib_socket_socket=yes | |
36284 | else | |
36285 | echo "$as_me: failed program was:" >&5 | |
36286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36287 | ||
36288 | ac_cv_lib_socket_socket=no | |
36289 | fi | |
ac1cb8d3 VS |
36290 | rm -f conftest.err conftest.$ac_objext \ |
36291 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36292 | LIBS=$ac_check_lib_save_LIBS |
36293 | fi | |
36294 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
36295 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
36296 | if test $ac_cv_lib_socket_socket = yes; then | |
36297 | if test "$INET_LINK" != " -lsocket"; then | |
36298 | INET_LINK="$INET_LINK -lsocket" | |
36299 | fi | |
36300 | else | |
36301 | ||
36302 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
36303 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
36304 | wxUSE_SOCKETS=no | |
36305 | ||
36306 | ||
36307 | fi | |
36308 | ||
36309 | ||
36310 | ||
36311 | fi | |
36312 | ||
36313 | fi | |
36314 | fi | |
36315 | ||
36316 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36317 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
36318 | ac_ext=cc |
36319 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36323 | ||
36324 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
36325 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
36326 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
36327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36328 | else | |
36329 | ||
36330 | cat >conftest.$ac_ext <<_ACEOF | |
36331 | /* confdefs.h. */ | |
36332 | _ACEOF | |
36333 | cat confdefs.h >>conftest.$ac_ext | |
36334 | cat >>conftest.$ac_ext <<_ACEOF | |
36335 | /* end confdefs.h. */ | |
36336 | ||
36337 | #include <sys/types.h> | |
36338 | #include <sys/socket.h> | |
36339 | ||
36340 | int | |
36341 | main () | |
36342 | { | |
36343 | ||
36344 | socklen_t len; | |
36345 | getsockname(0, 0, &len); | |
36346 | ||
36347 | ; | |
36348 | return 0; | |
36349 | } | |
36350 | _ACEOF | |
36351 | rm -f conftest.$ac_objext | |
36352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36354 | ac_status=$? |
ac1cb8d3 VS |
36355 | grep -v '^ *+' conftest.er1 >conftest.err |
36356 | rm -f conftest.er1 | |
36357 | cat conftest.err >&5 | |
a848cd7e SC |
36358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36359 | (exit $ac_status); } && | |
04840eaa VS |
36360 | { ac_try='test -z "$ac_cxx_werror_flag" |
36361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36363 | (eval $ac_try) 2>&5 | |
36364 | ac_status=$? | |
36365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36366 | (exit $ac_status); }; } && | |
36367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36369 | (eval $ac_try) 2>&5 | |
36370 | ac_status=$? | |
36371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36372 | (exit $ac_status); }; }; then | |
36373 | wx_cv_type_getsockname3=socklen_t | |
36374 | else | |
36375 | echo "$as_me: failed program was:" >&5 | |
36376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36377 | ||
36378 | ||
36379 | CFLAGS_OLD="$CFLAGS" | |
36380 | if test "$GCC" = yes ; then | |
36381 | CFLAGS="$CFLAGS -Werror" | |
36382 | fi | |
36383 | ||
36384 | cat >conftest.$ac_ext <<_ACEOF | |
36385 | /* confdefs.h. */ | |
36386 | _ACEOF | |
36387 | cat confdefs.h >>conftest.$ac_ext | |
36388 | cat >>conftest.$ac_ext <<_ACEOF | |
36389 | /* end confdefs.h. */ | |
36390 | ||
36391 | #include <sys/types.h> | |
36392 | #include <sys/socket.h> | |
36393 | ||
36394 | int | |
36395 | main () | |
36396 | { | |
36397 | ||
36398 | size_t len; | |
36399 | getsockname(0, 0, &len); | |
36400 | ||
36401 | ; | |
36402 | return 0; | |
36403 | } | |
36404 | _ACEOF | |
36405 | rm -f conftest.$ac_objext | |
36406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36407 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36408 | ac_status=$? |
ac1cb8d3 VS |
36409 | grep -v '^ *+' conftest.er1 >conftest.err |
36410 | rm -f conftest.er1 | |
36411 | cat conftest.err >&5 | |
a848cd7e SC |
36412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36413 | (exit $ac_status); } && | |
04840eaa VS |
36414 | { ac_try='test -z "$ac_cxx_werror_flag" |
36415 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36417 | (eval $ac_try) 2>&5 | |
36418 | ac_status=$? | |
36419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36420 | (exit $ac_status); }; } && | |
36421 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36423 | (eval $ac_try) 2>&5 | |
36424 | ac_status=$? | |
36425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36426 | (exit $ac_status); }; }; then | |
36427 | wx_cv_type_getsockname3=size_t | |
36428 | else | |
36429 | echo "$as_me: failed program was:" >&5 | |
36430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36431 | ||
36432 | cat >conftest.$ac_ext <<_ACEOF | |
36433 | /* confdefs.h. */ | |
36434 | _ACEOF | |
36435 | cat confdefs.h >>conftest.$ac_ext | |
36436 | cat >>conftest.$ac_ext <<_ACEOF | |
36437 | /* end confdefs.h. */ | |
36438 | ||
36439 | #include <sys/types.h> | |
36440 | #include <sys/socket.h> | |
36441 | ||
36442 | int | |
36443 | main () | |
36444 | { | |
36445 | ||
36446 | int len; | |
36447 | getsockname(0, 0, &len); | |
36448 | ||
36449 | ; | |
36450 | return 0; | |
36451 | } | |
36452 | _ACEOF | |
36453 | rm -f conftest.$ac_objext | |
36454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36455 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36456 | ac_status=$? |
ac1cb8d3 VS |
36457 | grep -v '^ *+' conftest.er1 >conftest.err |
36458 | rm -f conftest.er1 | |
36459 | cat conftest.err >&5 | |
a848cd7e SC |
36460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36461 | (exit $ac_status); } && | |
04840eaa VS |
36462 | { ac_try='test -z "$ac_cxx_werror_flag" |
36463 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36465 | (eval $ac_try) 2>&5 | |
36466 | ac_status=$? | |
36467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36468 | (exit $ac_status); }; } && | |
36469 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36471 | (eval $ac_try) 2>&5 | |
36472 | ac_status=$? | |
36473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36474 | (exit $ac_status); }; }; then | |
36475 | wx_cv_type_getsockname3=int | |
36476 | else | |
36477 | echo "$as_me: failed program was:" >&5 | |
36478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36479 | ||
36480 | wx_cv_type_getsockname3=unknown | |
36481 | ||
36482 | fi | |
ac1cb8d3 | 36483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36484 | |
36485 | fi | |
ac1cb8d3 | 36486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36487 | |
36488 | CFLAGS="$CFLAGS_OLD" | |
36489 | ||
36490 | ||
36491 | fi | |
ac1cb8d3 | 36492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36493 | |
36494 | fi | |
36495 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
36496 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
36497 | ||
36498 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
36499 | wxUSE_SOCKETS=no | |
36500 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36501 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36502 | else | |
36503 | cat >>confdefs.h <<_ACEOF | |
36504 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
36505 | _ACEOF |
36506 | ||
36507 | fi | |
36508 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
36509 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
36510 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
36511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36512 | else | |
36513 | ||
36514 | cat >conftest.$ac_ext <<_ACEOF | |
36515 | /* confdefs.h. */ | |
36516 | _ACEOF | |
36517 | cat confdefs.h >>conftest.$ac_ext | |
36518 | cat >>conftest.$ac_ext <<_ACEOF | |
36519 | /* end confdefs.h. */ | |
36520 | ||
36521 | #include <sys/types.h> | |
36522 | #include <sys/socket.h> | |
36523 | ||
36524 | int | |
36525 | main () | |
36526 | { | |
36527 | ||
36528 | socklen_t len; | |
36529 | getsockopt(0, 0, 0, 0, &len); | |
36530 | ||
36531 | ; | |
36532 | return 0; | |
36533 | } | |
36534 | _ACEOF | |
36535 | rm -f conftest.$ac_objext | |
36536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36537 | (eval $ac_compile) 2>conftest.er1 | |
36538 | ac_status=$? | |
36539 | grep -v '^ *+' conftest.er1 >conftest.err | |
36540 | rm -f conftest.er1 | |
36541 | cat conftest.err >&5 | |
36542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36543 | (exit $ac_status); } && | |
04840eaa VS |
36544 | { ac_try='test -z "$ac_cxx_werror_flag" |
36545 | || test ! -s conftest.err' | |
5b674b9d DE |
36546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36547 | (eval $ac_try) 2>&5 | |
36548 | ac_status=$? | |
36549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36550 | (exit $ac_status); }; } && | |
36551 | { ac_try='test -s conftest.$ac_objext' | |
36552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36553 | (eval $ac_try) 2>&5 | |
36554 | ac_status=$? | |
36555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36556 | (exit $ac_status); }; }; then | |
36557 | wx_cv_type_getsockopt5=socklen_t | |
36558 | else | |
36559 | echo "$as_me: failed program was:" >&5 | |
36560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36561 | ||
36562 | ||
36563 | CFLAGS_OLD="$CFLAGS" | |
36564 | if test "$GCC" = yes ; then | |
36565 | CFLAGS="$CFLAGS -Werror" | |
36566 | fi | |
36567 | ||
36568 | cat >conftest.$ac_ext <<_ACEOF | |
36569 | /* confdefs.h. */ | |
36570 | _ACEOF | |
36571 | cat confdefs.h >>conftest.$ac_ext | |
36572 | cat >>conftest.$ac_ext <<_ACEOF | |
36573 | /* end confdefs.h. */ | |
36574 | ||
36575 | #include <sys/types.h> | |
36576 | #include <sys/socket.h> | |
36577 | ||
36578 | int | |
36579 | main () | |
36580 | { | |
36581 | ||
36582 | size_t len; | |
36583 | getsockopt(0, 0, 0, 0, &len); | |
36584 | ||
36585 | ; | |
36586 | return 0; | |
36587 | } | |
36588 | _ACEOF | |
36589 | rm -f conftest.$ac_objext | |
36590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36591 | (eval $ac_compile) 2>conftest.er1 | |
36592 | ac_status=$? | |
36593 | grep -v '^ *+' conftest.er1 >conftest.err | |
36594 | rm -f conftest.er1 | |
36595 | cat conftest.err >&5 | |
36596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36597 | (exit $ac_status); } && | |
04840eaa VS |
36598 | { ac_try='test -z "$ac_cxx_werror_flag" |
36599 | || test ! -s conftest.err' | |
5b674b9d DE |
36600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36601 | (eval $ac_try) 2>&5 | |
36602 | ac_status=$? | |
36603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36604 | (exit $ac_status); }; } && | |
36605 | { ac_try='test -s conftest.$ac_objext' | |
36606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36607 | (eval $ac_try) 2>&5 | |
36608 | ac_status=$? | |
36609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36610 | (exit $ac_status); }; }; then | |
36611 | wx_cv_type_getsockopt5=size_t | |
36612 | else | |
36613 | echo "$as_me: failed program was:" >&5 | |
36614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36615 | ||
36616 | cat >conftest.$ac_ext <<_ACEOF | |
36617 | /* confdefs.h. */ | |
36618 | _ACEOF | |
36619 | cat confdefs.h >>conftest.$ac_ext | |
36620 | cat >>conftest.$ac_ext <<_ACEOF | |
36621 | /* end confdefs.h. */ | |
36622 | ||
36623 | #include <sys/types.h> | |
36624 | #include <sys/socket.h> | |
36625 | ||
36626 | int | |
36627 | main () | |
36628 | { | |
36629 | ||
36630 | int len; | |
36631 | getsockopt(0, 0, 0, 0, &len); | |
36632 | ||
36633 | ; | |
36634 | return 0; | |
36635 | } | |
36636 | _ACEOF | |
36637 | rm -f conftest.$ac_objext | |
36638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36639 | (eval $ac_compile) 2>conftest.er1 | |
36640 | ac_status=$? | |
36641 | grep -v '^ *+' conftest.er1 >conftest.err | |
36642 | rm -f conftest.er1 | |
36643 | cat conftest.err >&5 | |
36644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36645 | (exit $ac_status); } && | |
04840eaa VS |
36646 | { ac_try='test -z "$ac_cxx_werror_flag" |
36647 | || test ! -s conftest.err' | |
5b674b9d DE |
36648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36649 | (eval $ac_try) 2>&5 | |
36650 | ac_status=$? | |
36651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36652 | (exit $ac_status); }; } && | |
36653 | { ac_try='test -s conftest.$ac_objext' | |
36654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36655 | (eval $ac_try) 2>&5 | |
36656 | ac_status=$? | |
36657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36658 | (exit $ac_status); }; }; then | |
36659 | wx_cv_type_getsockopt5=int | |
36660 | else | |
36661 | echo "$as_me: failed program was:" >&5 | |
36662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36663 | ||
36664 | wx_cv_type_getsockopt5=unknown | |
36665 | ||
36666 | fi | |
36667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36668 | ||
36669 | fi | |
36670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36671 | ||
36672 | CFLAGS="$CFLAGS_OLD" | |
36673 | ||
36674 | ||
36675 | fi | |
36676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36677 | ||
36678 | fi | |
36679 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
36680 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
36681 | ||
36682 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
36683 | wxUSE_SOCKETS=no | |
36684 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36685 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36686 | else | |
36687 | cat >>confdefs.h <<_ACEOF | |
36688 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
36689 | _ACEOF |
36690 | ||
36691 | fi | |
4d4ff94c VZ |
36692 | ac_ext=c |
36693 | ac_cpp='$CPP $CPPFLAGS' | |
36694 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36695 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36696 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36697 | ||
a848cd7e SC |
36698 | fi |
36699 | fi | |
36700 | ||
36701 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36702 | cat >>confdefs.h <<\_ACEOF | |
36703 | #define wxUSE_SOCKETS 1 | |
36704 | _ACEOF | |
36705 | ||
36706 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
36707 | fi | |
36708 | ||
36709 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36710 | if test "$wxUSE_SOCKETS" != "yes"; then | |
36711 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
36712 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
36713 | wxUSE_PROTOCOL=no | |
36714 | fi | |
36715 | fi | |
36716 | ||
36717 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36718 | cat >>confdefs.h <<\_ACEOF | |
36719 | #define wxUSE_PROTOCOL 1 | |
36720 | _ACEOF | |
36721 | ||
36722 | ||
36723 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
36724 | cat >>confdefs.h <<\_ACEOF | |
36725 | #define wxUSE_PROTOCOL_HTTP 1 | |
36726 | _ACEOF | |
36727 | ||
36728 | fi | |
36729 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
36730 | cat >>confdefs.h <<\_ACEOF | |
36731 | #define wxUSE_PROTOCOL_FTP 1 | |
36732 | _ACEOF | |
36733 | ||
36734 | fi | |
36735 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
36736 | cat >>confdefs.h <<\_ACEOF | |
36737 | #define wxUSE_PROTOCOL_FILE 1 | |
36738 | _ACEOF | |
36739 | ||
36740 | fi | |
36741 | else | |
36742 | if test "$wxUSE_FS_INET" = "yes"; then | |
36743 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
36744 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
36745 | wxUSE_FS_INET="no" | |
36746 | fi | |
36747 | fi | |
36748 | ||
36749 | if test "$wxUSE_URL" = "yes"; then | |
36750 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
36751 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
36752 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
36753 | wxUSE_URL=no | |
36754 | fi | |
36755 | if test "$wxUSE_URL" = "yes"; then | |
36756 | cat >>confdefs.h <<\_ACEOF | |
36757 | #define wxUSE_URL 1 | |
36758 | _ACEOF | |
36759 | ||
36760 | fi | |
36761 | fi | |
36762 | ||
36763 | if test "$wxUSE_FS_INET" = "yes"; then | |
36764 | cat >>confdefs.h <<\_ACEOF | |
36765 | #define wxUSE_FS_INET 1 | |
36766 | _ACEOF | |
36767 | ||
36768 | fi | |
36769 | ||
36770 | ||
36771 | if test "$wxUSE_GUI" = "yes"; then | |
36772 | ||
36773 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
36774 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
36775 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
36776 | wxUSE_JOYSTICK=no | |
36777 | fi | |
36778 | ||
36779 | if test "$TOOLKIT" != "MSW"; then | |
36780 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36781 | ||
36782 | for ac_header in linux/joystick.h | |
36783 | do | |
36784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36790 | fi | |
36791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36792 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36793 | else | |
36794 | # Is the header compilable? | |
36795 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36796 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36797 | cat >conftest.$ac_ext <<_ACEOF | |
36798 | /* confdefs.h. */ | |
36799 | _ACEOF | |
36800 | cat confdefs.h >>conftest.$ac_ext | |
36801 | cat >>conftest.$ac_ext <<_ACEOF | |
36802 | /* end confdefs.h. */ | |
36803 | $ac_includes_default | |
36804 | #include <$ac_header> | |
36805 | _ACEOF | |
36806 | rm -f conftest.$ac_objext | |
36807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36808 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36809 | ac_status=$? |
ac1cb8d3 VS |
36810 | grep -v '^ *+' conftest.er1 >conftest.err |
36811 | rm -f conftest.er1 | |
36812 | cat conftest.err >&5 | |
a848cd7e SC |
36813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36814 | (exit $ac_status); } && | |
04840eaa VS |
36815 | { ac_try='test -z "$ac_c_werror_flag" |
36816 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36818 | (eval $ac_try) 2>&5 | |
36819 | ac_status=$? | |
36820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36821 | (exit $ac_status); }; } && | |
36822 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36824 | (eval $ac_try) 2>&5 | |
36825 | ac_status=$? | |
36826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36827 | (exit $ac_status); }; }; then | |
36828 | ac_header_compiler=yes | |
36829 | else | |
36830 | echo "$as_me: failed program was:" >&5 | |
36831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36832 | ||
36833 | ac_header_compiler=no | |
36834 | fi | |
ac1cb8d3 | 36835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36836 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36837 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36838 | ||
36839 | # Is the header present? | |
36840 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36841 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36842 | cat >conftest.$ac_ext <<_ACEOF | |
36843 | /* confdefs.h. */ | |
36844 | _ACEOF | |
36845 | cat confdefs.h >>conftest.$ac_ext | |
36846 | cat >>conftest.$ac_ext <<_ACEOF | |
36847 | /* end confdefs.h. */ | |
36848 | #include <$ac_header> | |
36849 | _ACEOF | |
36850 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36851 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36852 | ac_status=$? | |
36853 | grep -v '^ *+' conftest.er1 >conftest.err | |
36854 | rm -f conftest.er1 | |
36855 | cat conftest.err >&5 | |
36856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36857 | (exit $ac_status); } >/dev/null; then | |
36858 | if test -s conftest.err; then | |
36859 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36860 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36861 | else |
36862 | ac_cpp_err= | |
36863 | fi | |
36864 | else | |
36865 | ac_cpp_err=yes | |
36866 | fi | |
36867 | if test -z "$ac_cpp_err"; then | |
36868 | ac_header_preproc=yes | |
36869 | else | |
36870 | echo "$as_me: failed program was:" >&5 | |
36871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36872 | ||
36873 | ac_header_preproc=no | |
36874 | fi | |
36875 | rm -f conftest.err conftest.$ac_ext | |
36876 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36877 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36878 | ||
36879 | # So? What about this header? | |
ac1cb8d3 VS |
36880 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36881 | yes:no: ) | |
a848cd7e SC |
36882 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36883 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36884 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36885 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36886 | ac_header_preproc=yes | |
a848cd7e | 36887 | ;; |
ac1cb8d3 | 36888 | no:yes:* ) |
a848cd7e SC |
36889 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36890 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36891 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36892 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36893 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36894 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36895 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36896 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36897 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36898 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36899 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36900 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36901 | ( |
36902 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36903 | ## ----------------------------------------- ## |
36904 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36905 | ## ----------------------------------------- ## | |
a848cd7e SC |
36906 | _ASBOX |
36907 | ) | | |
36908 | sed "s/^/$as_me: WARNING: /" >&2 | |
36909 | ;; | |
36910 | esac | |
36911 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36912 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36913 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36915 | else | |
ac1cb8d3 | 36916 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36917 | fi |
36918 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36919 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36920 | ||
36921 | fi | |
36922 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36923 | cat >>confdefs.h <<_ACEOF | |
36924 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36925 | _ACEOF | |
36926 | ||
36927 | fi | |
36928 | ||
36929 | done | |
36930 | ||
36931 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
36932 | wxUSE_JOYSTICK=no | |
36933 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
36934 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
36935 | fi | |
36936 | fi | |
36937 | fi | |
36938 | ||
36939 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36940 | cat >>confdefs.h <<\_ACEOF | |
36941 | #define wxUSE_JOYSTICK 1 | |
36942 | _ACEOF | |
36943 | ||
36944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
36945 | fi | |
36946 | fi | |
36947 | ||
36948 | ||
36949 | ||
36950 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
36951 | cat >>confdefs.h <<\_ACEOF | |
36952 | #define wxUSE_FONTMAP 1 | |
36953 | _ACEOF | |
36954 | ||
36955 | fi | |
36956 | ||
36957 | if test "$wxUSE_UNICODE" = "yes" ; then | |
36958 | cat >>confdefs.h <<\_ACEOF | |
36959 | #define wxUSE_UNICODE 1 | |
36960 | _ACEOF | |
36961 | ||
36962 | ||
36963 | if test "$USE_WIN32" != 1; then | |
36964 | wxUSE_UNICODE_MSLU=no | |
36965 | fi | |
36966 | ||
36967 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
36968 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
36969 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
36970 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
36971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36972 | else | |
36973 | ac_check_lib_save_LIBS=$LIBS | |
36974 | LIBS="-lunicows $LIBS" | |
36975 | cat >conftest.$ac_ext <<_ACEOF | |
36976 | /* confdefs.h. */ | |
36977 | _ACEOF | |
36978 | cat confdefs.h >>conftest.$ac_ext | |
36979 | cat >>conftest.$ac_ext <<_ACEOF | |
36980 | /* end confdefs.h. */ | |
36981 | ||
36982 | ||
36983 | int | |
36984 | main () | |
36985 | { | |
36986 | main (); | |
36987 | ; | |
36988 | return 0; | |
36989 | } | |
36990 | _ACEOF | |
36991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36993 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36994 | ac_status=$? |
ac1cb8d3 VS |
36995 | grep -v '^ *+' conftest.er1 >conftest.err |
36996 | rm -f conftest.er1 | |
36997 | cat conftest.err >&5 | |
a848cd7e SC |
36998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36999 | (exit $ac_status); } && | |
04840eaa VS |
37000 | { ac_try='test -z "$ac_c_werror_flag" |
37001 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37003 | (eval $ac_try) 2>&5 | |
37004 | ac_status=$? | |
37005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37006 | (exit $ac_status); }; } && | |
37007 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37009 | (eval $ac_try) 2>&5 | |
37010 | ac_status=$? | |
37011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37012 | (exit $ac_status); }; }; then | |
37013 | ac_cv_lib_unicows_main=yes | |
37014 | else | |
37015 | echo "$as_me: failed program was:" >&5 | |
37016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37017 | ||
37018 | ac_cv_lib_unicows_main=no | |
37019 | fi | |
ac1cb8d3 VS |
37020 | rm -f conftest.err conftest.$ac_objext \ |
37021 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37022 | LIBS=$ac_check_lib_save_LIBS |
37023 | fi | |
37024 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
37025 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
37026 | if test $ac_cv_lib_unicows_main = yes; then | |
37027 | ||
37028 | cat >>confdefs.h <<\_ACEOF | |
37029 | #define wxUSE_UNICODE_MSLU 1 | |
37030 | _ACEOF | |
37031 | ||
37032 | ||
37033 | else | |
37034 | ||
37035 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37036 | Applications will only run on Windows NT/2000/XP!" >&5 | |
37037 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37038 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
37039 | wxUSE_UNICODE_MSLU=no | |
37040 | ||
37041 | fi | |
37042 | ||
37043 | fi | |
37044 | fi | |
37045 | ||
37046 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
37047 | cat >>confdefs.h <<\_ACEOF | |
37048 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
37049 | _ACEOF | |
37050 | ||
37051 | fi | |
37052 | ||
37053 | ||
37054 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
37055 | cat >>confdefs.h <<\_ACEOF | |
37056 | #define wxUSE_POSTSCRIPT 1 | |
37057 | _ACEOF | |
37058 | ||
37059 | fi | |
37060 | ||
37061 | cat >>confdefs.h <<\_ACEOF | |
37062 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
37063 | _ACEOF | |
37064 | ||
37065 | ||
37066 | cat >>confdefs.h <<\_ACEOF | |
37067 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
37068 | _ACEOF | |
37069 | ||
37070 | ||
37071 | ||
37072 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
37073 | cat >>confdefs.h <<\_ACEOF | |
37074 | #define wxUSE_CONSTRAINTS 1 | |
37075 | _ACEOF | |
37076 | ||
37077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
37078 | fi | |
37079 | ||
8a7b1113 VZ |
37080 | if test "$wxUSE_MDI" = "yes"; then |
37081 | cat >>confdefs.h <<\_ACEOF | |
37082 | #define wxUSE_MDI 1 | |
37083 | _ACEOF | |
37084 | ||
37085 | ||
37086 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37087 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37088 | #define wxUSE_MDI_ARCHITECTURE 1 |
37089 | _ACEOF | |
37090 | ||
8a7b1113 VZ |
37091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
37092 | fi | |
a848cd7e SC |
37093 | fi |
37094 | ||
37095 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
37096 | cat >>confdefs.h <<\_ACEOF | |
37097 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
37098 | _ACEOF | |
37099 | ||
37100 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
37101 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37102 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
37103 | fi | |
37104 | fi | |
37105 | ||
37106 | if test "$wxUSE_HELP" = "yes"; then | |
37107 | cat >>confdefs.h <<\_ACEOF | |
37108 | #define wxUSE_HELP 1 | |
37109 | _ACEOF | |
37110 | ||
37111 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
37112 | ||
37113 | if test "$wxUSE_MSW" = 1; then | |
37114 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
37115 | cat >>confdefs.h <<\_ACEOF | |
37116 | #define wxUSE_MS_HTML_HELP 1 | |
37117 | _ACEOF | |
37118 | ||
37119 | fi | |
37120 | fi | |
37121 | ||
37122 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
37123 | if test "$wxUSE_HTML" = "yes"; then | |
37124 | cat >>confdefs.h <<\_ACEOF | |
37125 | #define wxUSE_WXHTML_HELP 1 | |
37126 | _ACEOF | |
37127 | ||
37128 | else | |
37129 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
37130 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
37131 | wxUSE_WXHTML_HELP=no | |
37132 | fi | |
37133 | fi | |
37134 | fi | |
37135 | ||
37136 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
37137 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37138 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
37139 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
37140 | else | |
37141 | cat >>confdefs.h <<\_ACEOF | |
37142 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
37143 | _ACEOF | |
37144 | ||
37145 | fi | |
37146 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
37147 | fi | |
37148 | ||
37149 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
37150 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
37151 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
37152 | { (exit 1); exit 1; }; } | |
37153 | fi | |
37154 | ||
37155 | ||
37156 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
37157 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
37158 | -o "$wxUSE_OLE" = "yes" \ | |
37159 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
37160 | ||
37161 | for ac_header in ole2.h | |
37162 | do | |
37163 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37165 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37166 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37169 | fi | |
37170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37171 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37172 | else | |
37173 | # Is the header compilable? | |
37174 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37175 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37176 | cat >conftest.$ac_ext <<_ACEOF | |
37177 | /* confdefs.h. */ | |
37178 | _ACEOF | |
37179 | cat confdefs.h >>conftest.$ac_ext | |
37180 | cat >>conftest.$ac_ext <<_ACEOF | |
37181 | /* end confdefs.h. */ | |
37182 | $ac_includes_default | |
37183 | #include <$ac_header> | |
37184 | _ACEOF | |
37185 | rm -f conftest.$ac_objext | |
37186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37188 | ac_status=$? |
ac1cb8d3 VS |
37189 | grep -v '^ *+' conftest.er1 >conftest.err |
37190 | rm -f conftest.er1 | |
37191 | cat conftest.err >&5 | |
a848cd7e SC |
37192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37193 | (exit $ac_status); } && | |
04840eaa VS |
37194 | { ac_try='test -z "$ac_c_werror_flag" |
37195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37197 | (eval $ac_try) 2>&5 | |
37198 | ac_status=$? | |
37199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37200 | (exit $ac_status); }; } && | |
37201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37203 | (eval $ac_try) 2>&5 | |
37204 | ac_status=$? | |
37205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37206 | (exit $ac_status); }; }; then | |
37207 | ac_header_compiler=yes | |
37208 | else | |
37209 | echo "$as_me: failed program was:" >&5 | |
37210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37211 | ||
37212 | ac_header_compiler=no | |
37213 | fi | |
ac1cb8d3 | 37214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37215 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37216 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37217 | ||
37218 | # Is the header present? | |
37219 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37220 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37221 | cat >conftest.$ac_ext <<_ACEOF | |
37222 | /* confdefs.h. */ | |
37223 | _ACEOF | |
37224 | cat confdefs.h >>conftest.$ac_ext | |
37225 | cat >>conftest.$ac_ext <<_ACEOF | |
37226 | /* end confdefs.h. */ | |
37227 | #include <$ac_header> | |
37228 | _ACEOF | |
37229 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37230 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37231 | ac_status=$? | |
37232 | grep -v '^ *+' conftest.er1 >conftest.err | |
37233 | rm -f conftest.er1 | |
37234 | cat conftest.err >&5 | |
37235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37236 | (exit $ac_status); } >/dev/null; then | |
37237 | if test -s conftest.err; then | |
37238 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37239 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37240 | else |
37241 | ac_cpp_err= | |
37242 | fi | |
37243 | else | |
37244 | ac_cpp_err=yes | |
37245 | fi | |
37246 | if test -z "$ac_cpp_err"; then | |
37247 | ac_header_preproc=yes | |
37248 | else | |
37249 | echo "$as_me: failed program was:" >&5 | |
37250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37251 | ||
37252 | ac_header_preproc=no | |
37253 | fi | |
37254 | rm -f conftest.err conftest.$ac_ext | |
37255 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37256 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37257 | ||
37258 | # So? What about this header? | |
ac1cb8d3 VS |
37259 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37260 | yes:no: ) | |
a848cd7e SC |
37261 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37262 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37263 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37264 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37265 | ac_header_preproc=yes | |
a848cd7e | 37266 | ;; |
ac1cb8d3 | 37267 | no:yes:* ) |
a848cd7e SC |
37268 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37269 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37270 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37271 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37272 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37273 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37274 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37275 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37276 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37277 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37278 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37279 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37280 | ( |
37281 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37282 | ## ----------------------------------------- ## |
37283 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37284 | ## ----------------------------------------- ## | |
a848cd7e SC |
37285 | _ASBOX |
37286 | ) | | |
37287 | sed "s/^/$as_me: WARNING: /" >&2 | |
37288 | ;; | |
37289 | esac | |
37290 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37294 | else | |
ac1cb8d3 | 37295 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37296 | fi |
37297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37298 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37299 | ||
37300 | fi | |
37301 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37302 | cat >>confdefs.h <<_ACEOF | |
37303 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37304 | _ACEOF | |
37305 | ||
37306 | fi | |
37307 | ||
37308 | done | |
37309 | ||
37310 | ||
37311 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
37312 | if test "$GCC" = yes ; then | |
37313 | ||
37314 | ||
37315 | ac_ext=cc | |
37316 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37317 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37318 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37319 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37320 | ||
37321 | ||
37322 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
37323 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
37324 | cat >conftest.$ac_ext <<_ACEOF | |
37325 | /* confdefs.h. */ | |
37326 | _ACEOF | |
37327 | cat confdefs.h >>conftest.$ac_ext | |
37328 | cat >>conftest.$ac_ext <<_ACEOF | |
37329 | /* end confdefs.h. */ | |
37330 | #include <windows.h> | |
37331 | #include <ole2.h> | |
37332 | int | |
37333 | main () | |
37334 | { | |
37335 | ||
37336 | ; | |
37337 | return 0; | |
37338 | } | |
37339 | _ACEOF | |
37340 | rm -f conftest.$ac_objext | |
37341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37342 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37343 | ac_status=$? |
ac1cb8d3 VS |
37344 | grep -v '^ *+' conftest.er1 >conftest.err |
37345 | rm -f conftest.er1 | |
37346 | cat conftest.err >&5 | |
a848cd7e SC |
37347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37348 | (exit $ac_status); } && | |
04840eaa VS |
37349 | { ac_try='test -z "$ac_cxx_werror_flag" |
37350 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37352 | (eval $ac_try) 2>&5 | |
37353 | ac_status=$? | |
37354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37355 | (exit $ac_status); }; } && | |
37356 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37358 | (eval $ac_try) 2>&5 | |
37359 | ac_status=$? | |
37360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37361 | (exit $ac_status); }; }; then | |
37362 | echo "$as_me:$LINENO: result: no" >&5 | |
37363 | echo "${ECHO_T}no" >&6 | |
37364 | else | |
37365 | echo "$as_me: failed program was:" >&5 | |
37366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37367 | ||
37368 | echo "$as_me:$LINENO: result: yes" >&5 | |
37369 | echo "${ECHO_T}yes" >&6 | |
37370 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
37371 | fi | |
ac1cb8d3 | 37372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37373 | ac_ext=c |
37374 | ac_cpp='$CPP $CPPFLAGS' | |
37375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37378 | ||
a848cd7e SC |
37379 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
37380 | if test "$wxUSE_OLE" = "yes" ; then | |
37381 | cat >>confdefs.h <<\_ACEOF | |
37382 | #define wxUSE_OLE 1 | |
37383 | _ACEOF | |
37384 | ||
37385 | fi | |
37386 | fi | |
37387 | ||
37388 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
37389 | cat >>confdefs.h <<\_ACEOF | |
37390 | #define wxUSE_DATAOBJ 1 | |
37391 | _ACEOF | |
37392 | ||
37393 | fi | |
37394 | else | |
37395 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
37396 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
37397 | ||
37398 | wxUSE_CLIPBOARD=no | |
37399 | wxUSE_DRAG_AND_DROP=no | |
37400 | wxUSE_DATAOBJ=no | |
37401 | wxUSE_OLE=no | |
37402 | fi | |
37403 | ||
37404 | if test "$wxUSE_METAFILE" = "yes"; then | |
37405 | cat >>confdefs.h <<\_ACEOF | |
37406 | #define wxUSE_METAFILE 1 | |
37407 | _ACEOF | |
37408 | ||
37409 | ||
37410 | cat >>confdefs.h <<\_ACEOF | |
37411 | #define wxUSE_ENH_METAFILE 1 | |
37412 | _ACEOF | |
37413 | ||
37414 | fi | |
37415 | fi | |
37416 | ||
37417 | if test "$wxUSE_IPC" = "yes"; then | |
37418 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
37419 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
37420 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
37421 | fi |
37422 | ||
37423 | cat >>confdefs.h <<\_ACEOF | |
37424 | #define wxUSE_IPC 1 | |
37425 | _ACEOF | |
37426 | ||
37427 | fi | |
37428 | ||
37429 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37430 | if test "$wxUSE_MGL" = 1; then | |
37431 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
37432 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
37433 | wxUSE_CLIPBOARD=no | |
37434 | fi | |
37435 | ||
37436 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
37437 | cat >>confdefs.h <<\_ACEOF | |
37438 | #define wxUSE_CLIPBOARD 1 | |
37439 | _ACEOF | |
37440 | ||
37441 | ||
37442 | cat >>confdefs.h <<\_ACEOF | |
37443 | #define wxUSE_DATAOBJ 1 | |
37444 | _ACEOF | |
37445 | ||
37446 | fi | |
37447 | fi | |
37448 | ||
37449 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
37450 | if test "$wxUSE_GTK" = 1; then | |
37451 | if test "$WXGTK12" != 1; then | |
37452 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
37453 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
37454 | wxUSE_DRAG_AND_DROP=no | |
37455 | fi | |
37456 | fi | |
37457 | ||
37458 | if test "$wxUSE_MOTIF" = 1; then | |
37459 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
37460 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
37461 | wxUSE_DRAG_AND_DROP=no | |
37462 | fi | |
37463 | ||
37464 | if test "$wxUSE_X11" = 1; then | |
37465 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
37466 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
37467 | wxUSE_DRAG_AND_DROP=no | |
37468 | fi | |
37469 | ||
37470 | if test "$wxUSE_MGL" = 1; then | |
37471 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
37472 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
37473 | wxUSE_DRAG_AND_DROP=no | |
37474 | fi | |
37475 | ||
37476 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
37477 | cat >>confdefs.h <<\_ACEOF | |
37478 | #define wxUSE_DRAG_AND_DROP 1 | |
37479 | _ACEOF | |
37480 | ||
37481 | fi | |
37482 | ||
37483 | fi | |
37484 | ||
37485 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
37486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
37487 | fi | |
37488 | ||
37489 | if test "$wxUSE_SPLINES" = "yes" ; then | |
37490 | cat >>confdefs.h <<\_ACEOF | |
37491 | #define wxUSE_SPLINES 1 | |
37492 | _ACEOF | |
37493 | ||
37494 | fi | |
37495 | ||
37496 | ||
37497 | USES_CONTROLS=0 | |
37498 | if test "$wxUSE_CONTROLS" = "yes"; then | |
37499 | USES_CONTROLS=1 | |
37500 | fi | |
37501 | ||
37502 | if test "$wxUSE_ACCEL" = "yes"; then | |
37503 | cat >>confdefs.h <<\_ACEOF | |
37504 | #define wxUSE_ACCEL 1 | |
37505 | _ACEOF | |
37506 | ||
37507 | USES_CONTROLS=1 | |
37508 | fi | |
37509 | ||
37510 | if test "$wxUSE_BUTTON" = "yes"; then | |
37511 | cat >>confdefs.h <<\_ACEOF | |
37512 | #define wxUSE_BUTTON 1 | |
37513 | _ACEOF | |
37514 | ||
37515 | USES_CONTROLS=1 | |
37516 | fi | |
37517 | ||
37518 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
37519 | cat >>confdefs.h <<\_ACEOF | |
37520 | #define wxUSE_BMPBUTTON 1 | |
37521 | _ACEOF | |
37522 | ||
37523 | USES_CONTROLS=1 | |
37524 | fi | |
37525 | ||
37526 | if test "$wxUSE_CALCTRL" = "yes"; then | |
37527 | cat >>confdefs.h <<\_ACEOF | |
37528 | #define wxUSE_CALENDARCTRL 1 | |
37529 | _ACEOF | |
37530 | ||
37531 | USES_CONTROLS=1 | |
37532 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
37533 | fi | |
37534 | ||
37535 | if test "$wxUSE_CARET" = "yes"; then | |
37536 | cat >>confdefs.h <<\_ACEOF | |
37537 | #define wxUSE_CARET 1 | |
37538 | _ACEOF | |
37539 | ||
37540 | USES_CONTROLS=1 | |
37541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
37542 | fi | |
37543 | ||
37544 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
37545 | cat >>confdefs.h <<\_ACEOF | |
37546 | #define wxUSE_COMBOBOX 1 | |
37547 | _ACEOF | |
37548 | ||
37549 | USES_CONTROLS=1 | |
37550 | fi | |
37551 | ||
37552 | if test "$wxUSE_CHOICE" = "yes"; then | |
37553 | cat >>confdefs.h <<\_ACEOF | |
37554 | #define wxUSE_CHOICE 1 | |
37555 | _ACEOF | |
37556 | ||
37557 | USES_CONTROLS=1 | |
37558 | fi | |
37559 | ||
92bbdbcd WS |
37560 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
37561 | cat >>confdefs.h <<\_ACEOF | |
37562 | #define wxUSE_CHOICEBOOK 1 | |
37563 | _ACEOF | |
37564 | ||
37565 | USES_CONTROLS=1 | |
37566 | fi | |
37567 | ||
a848cd7e SC |
37568 | if test "$wxUSE_CHECKBOX" = "yes"; then |
37569 | cat >>confdefs.h <<\_ACEOF | |
37570 | #define wxUSE_CHECKBOX 1 | |
37571 | _ACEOF | |
37572 | ||
37573 | USES_CONTROLS=1 | |
37574 | fi | |
37575 | ||
37576 | if test "$wxUSE_CHECKLST" = "yes"; then | |
37577 | cat >>confdefs.h <<\_ACEOF | |
37578 | #define wxUSE_CHECKLISTBOX 1 | |
37579 | _ACEOF | |
37580 | ||
37581 | USES_CONTROLS=1 | |
37582 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
37583 | fi | |
37584 | ||
37585 | if test "$wxUSE_DISPLAY" = "yes"; then | |
37586 | cat >>confdefs.h <<\_ACEOF | |
37587 | #define wxUSE_DISPLAY 1 | |
37588 | _ACEOF | |
37589 | ||
37590 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
37591 | fi | |
37592 | ||
37593 | if test "$wxUSE_GAUGE" = "yes"; then | |
37594 | cat >>confdefs.h <<\_ACEOF | |
37595 | #define wxUSE_GAUGE 1 | |
37596 | _ACEOF | |
37597 | ||
37598 | USES_CONTROLS=1 | |
37599 | fi | |
37600 | ||
37601 | if test "$wxUSE_GRID" = "yes"; then | |
37602 | cat >>confdefs.h <<\_ACEOF | |
37603 | #define wxUSE_GRID 1 | |
37604 | _ACEOF | |
37605 | ||
37606 | USES_CONTROLS=1 | |
37607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
37608 | fi | |
37609 | ||
37610 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37611 | cat >>confdefs.h <<\_ACEOF | |
37612 | #define wxUSE_IMAGLIST 1 | |
37613 | _ACEOF | |
37614 | ||
37615 | fi | |
37616 | ||
37617 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
37618 | cat >>confdefs.h <<\_ACEOF | |
37619 | #define wxUSE_LISTBOOK 1 | |
37620 | _ACEOF | |
37621 | ||
37622 | USES_CONTROLS=1 | |
37623 | fi | |
37624 | ||
37625 | if test "$wxUSE_LISTBOX" = "yes"; then | |
37626 | cat >>confdefs.h <<\_ACEOF | |
37627 | #define wxUSE_LISTBOX 1 | |
37628 | _ACEOF | |
37629 | ||
37630 | USES_CONTROLS=1 | |
37631 | fi | |
37632 | ||
37633 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
37634 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37635 | cat >>confdefs.h <<\_ACEOF | |
37636 | #define wxUSE_LISTCTRL 1 | |
37637 | _ACEOF | |
37638 | ||
37639 | USES_CONTROLS=1 | |
37640 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
37641 | else | |
37642 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
37643 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37644 | fi | |
37645 | fi | |
37646 | ||
37647 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
37648 | cat >>confdefs.h <<\_ACEOF | |
37649 | #define wxUSE_NOTEBOOK 1 | |
37650 | _ACEOF | |
37651 | ||
37652 | USES_CONTROLS=1 | |
37653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
37654 | fi | |
37655 | ||
37656 | ||
37657 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
37658 | cat >>confdefs.h <<\_ACEOF | |
37659 | #define wxUSE_RADIOBOX 1 | |
37660 | _ACEOF | |
37661 | ||
37662 | USES_CONTROLS=1 | |
37663 | fi | |
37664 | ||
37665 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
37666 | cat >>confdefs.h <<\_ACEOF | |
37667 | #define wxUSE_RADIOBTN 1 | |
37668 | _ACEOF | |
37669 | ||
37670 | USES_CONTROLS=1 | |
37671 | fi | |
37672 | ||
37673 | if test "$wxUSE_SASH" = "yes"; then | |
37674 | cat >>confdefs.h <<\_ACEOF | |
37675 | #define wxUSE_SASH 1 | |
37676 | _ACEOF | |
37677 | ||
37678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
37679 | fi | |
37680 | ||
37681 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
37682 | cat >>confdefs.h <<\_ACEOF | |
37683 | #define wxUSE_SCROLLBAR 1 | |
37684 | _ACEOF | |
37685 | ||
37686 | USES_CONTROLS=1 | |
37687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
37688 | fi | |
37689 | ||
37690 | if test "$wxUSE_SLIDER" = "yes"; then | |
37691 | cat >>confdefs.h <<\_ACEOF | |
37692 | #define wxUSE_SLIDER 1 | |
37693 | _ACEOF | |
37694 | ||
37695 | USES_CONTROLS=1 | |
37696 | fi | |
37697 | ||
37698 | if test "$wxUSE_SPINBTN" = "yes"; then | |
37699 | cat >>confdefs.h <<\_ACEOF | |
37700 | #define wxUSE_SPINBTN 1 | |
37701 | _ACEOF | |
37702 | ||
37703 | USES_CONTROLS=1 | |
37704 | fi | |
37705 | ||
37706 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
37707 | cat >>confdefs.h <<\_ACEOF | |
37708 | #define wxUSE_SPINCTRL 1 | |
37709 | _ACEOF | |
37710 | ||
37711 | USES_CONTROLS=1 | |
37712 | fi | |
37713 | ||
37714 | if test "$wxUSE_SPLITTER" = "yes"; then | |
37715 | cat >>confdefs.h <<\_ACEOF | |
37716 | #define wxUSE_SPLITTER 1 | |
37717 | _ACEOF | |
37718 | ||
37719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
37720 | fi | |
37721 | ||
37722 | if test "$wxUSE_STATBMP" = "yes"; then | |
37723 | cat >>confdefs.h <<\_ACEOF | |
37724 | #define wxUSE_STATBMP 1 | |
37725 | _ACEOF | |
37726 | ||
37727 | USES_CONTROLS=1 | |
37728 | fi | |
37729 | ||
37730 | if test "$wxUSE_STATBOX" = "yes"; then | |
37731 | cat >>confdefs.h <<\_ACEOF | |
37732 | #define wxUSE_STATBOX 1 | |
37733 | _ACEOF | |
37734 | ||
37735 | USES_CONTROLS=1 | |
37736 | fi | |
37737 | ||
37738 | if test "$wxUSE_STATTEXT" = "yes"; then | |
37739 | cat >>confdefs.h <<\_ACEOF | |
37740 | #define wxUSE_STATTEXT 1 | |
37741 | _ACEOF | |
37742 | ||
37743 | USES_CONTROLS=1 | |
37744 | fi | |
37745 | ||
37746 | if test "$wxUSE_STATLINE" = "yes"; then | |
37747 | cat >>confdefs.h <<\_ACEOF | |
37748 | #define wxUSE_STATLINE 1 | |
37749 | _ACEOF | |
37750 | ||
37751 | USES_CONTROLS=1 | |
37752 | fi | |
37753 | ||
37754 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
37755 | cat >>confdefs.h <<\_ACEOF | |
37756 | #define wxUSE_STATUSBAR 1 | |
37757 | _ACEOF | |
37758 | ||
37759 | USES_CONTROLS=1 | |
37760 | ||
37761 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
37762 | fi | |
37763 | ||
37764 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
37765 | cat >>confdefs.h <<\_ACEOF | |
37766 | #define wxUSE_TAB_DIALOG 1 | |
37767 | _ACEOF | |
37768 | ||
37769 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
37770 | fi | |
37771 | ||
37772 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
37773 | cat >>confdefs.h <<\_ACEOF | |
37774 | #define wxUSE_TEXTCTRL 1 | |
37775 | _ACEOF | |
37776 | ||
37777 | USES_CONTROLS=1 | |
37778 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
37779 | fi | |
37780 | ||
37781 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37782 | if test "$wxUSE_COCOA" = 1 ; then | |
37783 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
37784 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
37785 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
37786 | else |
37787 | if test "$wxUSE_PM" = 1; then | |
37788 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
37789 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
37790 | wxUSE_TOGGLEBTN=no | |
37791 | fi | |
a848cd7e SC |
37792 | fi |
37793 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37794 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
37795 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
37796 | wxUSE_TOGGLEBTN=no | |
37797 | fi | |
37798 | ||
37799 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37800 | cat >>confdefs.h <<\_ACEOF | |
37801 | #define wxUSE_TOGGLEBTN 1 | |
37802 | _ACEOF | |
37803 | ||
37804 | USES_CONTROLS=1 | |
37805 | fi | |
37806 | fi | |
37807 | ||
37808 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
37809 | cat >>confdefs.h <<\_ACEOF | |
37810 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
37811 | _ACEOF | |
37812 | ||
37813 | wxUSE_TOOLBAR="yes" | |
37814 | USES_CONTROLS=1 | |
37815 | fi | |
37816 | ||
37817 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
37818 | cat >>confdefs.h <<\_ACEOF | |
37819 | #define wxUSE_TOOLBAR 1 | |
37820 | _ACEOF | |
37821 | ||
37822 | USES_CONTROLS=1 | |
37823 | ||
37824 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
37825 | wxUSE_TOOLBAR_NATIVE="yes" | |
37826 | fi | |
37827 | ||
37828 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
37829 | cat >>confdefs.h <<\_ACEOF | |
37830 | #define wxUSE_TOOLBAR_NATIVE 1 | |
37831 | _ACEOF | |
37832 | ||
37833 | USES_CONTROLS=1 | |
37834 | fi | |
37835 | ||
37836 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
37837 | fi | |
37838 | ||
37839 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
37840 | if test "$wxUSE_MOTIF" = 1; then | |
37841 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
37842 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
37843 | else | |
37844 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37845 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
37846 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
37847 | else | |
37848 | cat >>confdefs.h <<\_ACEOF | |
37849 | #define wxUSE_TOOLTIPS 1 | |
37850 | _ACEOF | |
37851 | ||
37852 | fi | |
37853 | fi | |
37854 | fi | |
37855 | ||
37856 | if test "$wxUSE_TREECTRL" = "yes"; then | |
37857 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37858 | cat >>confdefs.h <<\_ACEOF | |
37859 | #define wxUSE_TREECTRL 1 | |
37860 | _ACEOF | |
37861 | ||
37862 | USES_CONTROLS=1 | |
37863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
37864 | else | |
37865 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
37866 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37867 | fi | |
37868 | fi | |
37869 | ||
37870 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
37871 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
37872 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
37873 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
37874 | else | |
37875 | if test "$wxUSE_PM" = 1; then | |
37876 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
37877 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
37878 | else | |
37879 | cat >>confdefs.h <<\_ACEOF | |
37880 | #define wxUSE_POPUPWIN 1 | |
37881 | _ACEOF | |
37882 | ||
37883 | ||
37884 | USES_CONTROLS=1 | |
37885 | fi | |
37886 | fi | |
37887 | fi | |
37888 | ||
37889 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
37890 | if test "$wxUSE_PM" = 1; then | |
37891 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
37892 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
37893 | else | |
37894 | cat >>confdefs.h <<\_ACEOF | |
37895 | #define wxUSE_TIPWINDOW 1 | |
37896 | _ACEOF | |
37897 | ||
37898 | fi | |
37899 | fi | |
37900 | ||
37901 | if test "$USES_CONTROLS" = 1; then | |
37902 | cat >>confdefs.h <<\_ACEOF | |
37903 | #define wxUSE_CONTROLS 1 | |
37904 | _ACEOF | |
37905 | ||
37906 | fi | |
37907 | ||
37908 | ||
37909 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
37910 | cat >>confdefs.h <<\_ACEOF | |
37911 | #define wxUSE_ACCESSIBILITY 1 | |
37912 | _ACEOF | |
37913 | ||
37914 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
37915 | fi | |
37916 | ||
37917 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
37918 | cat >>confdefs.h <<\_ACEOF | |
37919 | #define wxUSE_DRAGIMAGE 1 | |
37920 | _ACEOF | |
37921 | ||
37922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
37923 | fi | |
37924 | ||
37925 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
37926 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
37927 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
37928 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
37929 | else | |
37930 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37931 | #define wxUSE_EXCEPTIONS 1 |
37932 | _ACEOF | |
37933 | ||
07bea8f0 VS |
37934 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
37935 | fi | |
a848cd7e SC |
37936 | fi |
37937 | ||
37938 | USE_HTML=0 | |
37939 | if test "$wxUSE_HTML" = "yes"; then | |
37940 | cat >>confdefs.h <<\_ACEOF | |
37941 | #define wxUSE_HTML 1 | |
37942 | _ACEOF | |
37943 | ||
37944 | USE_HTML=1 | |
37945 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
37946 | if test "$wxUSE_MAC" = 1; then |
37947 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
37948 | fi | |
a848cd7e | 37949 | fi |
646b6ec1 | 37950 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 37951 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
37952 | old_CPPFLAGS="$CPPFLAGS" |
37953 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
37954 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
37955 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
37956 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
37957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37958 | else | |
37959 | cat >conftest.$ac_ext <<_ACEOF | |
37960 | /* confdefs.h. */ | |
37961 | _ACEOF | |
37962 | cat confdefs.h >>conftest.$ac_ext | |
37963 | cat >>conftest.$ac_ext <<_ACEOF | |
37964 | /* end confdefs.h. */ | |
37965 | #include <Carbon/Carbon.h> | |
37966 | ||
37967 | #include <WebKit/HIWebView.h> | |
37968 | _ACEOF | |
37969 | rm -f conftest.$ac_objext | |
37970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37971 | (eval $ac_compile) 2>conftest.er1 | |
37972 | ac_status=$? | |
37973 | grep -v '^ *+' conftest.er1 >conftest.err | |
37974 | rm -f conftest.er1 | |
37975 | cat conftest.err >&5 | |
37976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37977 | (exit $ac_status); } && | |
04840eaa VS |
37978 | { ac_try='test -z "$ac_c_werror_flag" |
37979 | || test ! -s conftest.err' | |
07bea8f0 VS |
37980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37981 | (eval $ac_try) 2>&5 | |
37982 | ac_status=$? | |
37983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37984 | (exit $ac_status); }; } && | |
37985 | { ac_try='test -s conftest.$ac_objext' | |
37986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37987 | (eval $ac_try) 2>&5 | |
37988 | ac_status=$? | |
37989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37990 | (exit $ac_status); }; }; then | |
37991 | ac_cv_header_WebKit_HIWebView_h=yes | |
37992 | else | |
37993 | echo "$as_me: failed program was:" >&5 | |
37994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37995 | ||
37996 | ac_cv_header_WebKit_HIWebView_h=no | |
37997 | fi | |
37998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37999 | fi | |
38000 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
38001 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
38002 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
38003 | ||
38004 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
38005 | #define wxUSE_WEBKIT 1 |
38006 | _ACEOF | |
38007 | ||
07bea8f0 VS |
38008 | WEBKIT_LINK="-framework WebKit" |
38009 | ||
38010 | else | |
38011 | ||
38012 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
38013 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
38014 | wxUSE_WEBKIT=no | |
38015 | ||
646b6ec1 VS |
38016 | fi |
38017 | ||
07bea8f0 VS |
38018 | |
38019 | CPPFLAGS="$old_CPPFLAGS" | |
38020 | elif test "$wxUSE_COCOA" = 1; then | |
38021 | cat >>confdefs.h <<\_ACEOF | |
38022 | #define wxUSE_WEBKIT 1 | |
38023 | _ACEOF | |
38024 | ||
38025 | else | |
38026 | wxUSE_WEBKIT=no | |
38027 | fi | |
38028 | fi | |
38029 | ||
9a8f0513 VS |
38030 | USE_XRC=0 |
38031 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
38032 | if test "$wxUSE_XML" != "yes"; then |
38033 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
38034 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
38035 | wxUSE_XRC=no | |
38036 | else | |
38037 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
38038 | #define wxUSE_XRC 1 |
38039 | _ACEOF | |
38040 | ||
d2ebf0b7 VS |
38041 | USE_XRC=1 |
38042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
38043 | fi | |
9a8f0513 | 38044 | fi |
07bea8f0 | 38045 | |
a848cd7e SC |
38046 | if test "$wxUSE_MENUS" = "yes"; then |
38047 | cat >>confdefs.h <<\_ACEOF | |
38048 | #define wxUSE_MENUS 1 | |
38049 | _ACEOF | |
38050 | ||
38051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
38052 | fi | |
38053 | ||
38054 | if test "$wxUSE_METAFILE" = "yes"; then | |
38055 | cat >>confdefs.h <<\_ACEOF | |
38056 | #define wxUSE_METAFILE 1 | |
38057 | _ACEOF | |
38058 | ||
38059 | fi | |
38060 | ||
38061 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
38062 | cat >>confdefs.h <<\_ACEOF | |
38063 | #define wxUSE_MIMETYPE 1 | |
38064 | _ACEOF | |
38065 | ||
38066 | fi | |
38067 | ||
38068 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
38069 | cat >>confdefs.h <<\_ACEOF | |
38070 | #define wxUSE_MINIFRAME 1 | |
38071 | _ACEOF | |
38072 | ||
38073 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
38074 | fi | |
38075 | ||
38076 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
38077 | cat >>confdefs.h <<\_ACEOF | |
38078 | #define wxUSE_SYSTEM_OPTIONS 1 | |
38079 | _ACEOF | |
38080 | ||
38081 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 38082 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
38083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
38084 | fi | |
38085 | fi | |
38086 | ||
38087 | ||
38088 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
38089 | cat >>confdefs.h <<\_ACEOF | |
38090 | #define wxUSE_VALIDATORS 1 | |
38091 | _ACEOF | |
38092 | ||
38093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
38094 | fi | |
38095 | ||
38096 | if test "$wxUSE_PALETTE" = "yes" ; then | |
38097 | cat >>confdefs.h <<\_ACEOF | |
38098 | #define wxUSE_PALETTE 1 | |
38099 | _ACEOF | |
38100 | ||
38101 | fi | |
38102 | ||
38103 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
38104 | LIBS=" -lunicows $LIBS" | |
38105 | fi | |
38106 | ||
38107 | ||
38108 | if test "$wxUSE_IMAGE" = "yes" ; then | |
38109 | cat >>confdefs.h <<\_ACEOF | |
38110 | #define wxUSE_IMAGE 1 | |
38111 | _ACEOF | |
38112 | ||
38113 | ||
38114 | if test "$wxUSE_GIF" = "yes" ; then | |
38115 | cat >>confdefs.h <<\_ACEOF | |
38116 | #define wxUSE_GIF 1 | |
38117 | _ACEOF | |
38118 | ||
38119 | fi | |
38120 | ||
38121 | if test "$wxUSE_PCX" = "yes" ; then | |
38122 | cat >>confdefs.h <<\_ACEOF | |
38123 | #define wxUSE_PCX 1 | |
38124 | _ACEOF | |
38125 | ||
38126 | fi | |
38127 | ||
38128 | if test "$wxUSE_IFF" = "yes" ; then | |
38129 | cat >>confdefs.h <<\_ACEOF | |
38130 | #define wxUSE_IFF 1 | |
38131 | _ACEOF | |
38132 | ||
38133 | fi | |
38134 | ||
38135 | if test "$wxUSE_PNM" = "yes" ; then | |
38136 | cat >>confdefs.h <<\_ACEOF | |
38137 | #define wxUSE_PNM 1 | |
38138 | _ACEOF | |
38139 | ||
38140 | fi | |
38141 | ||
38142 | if test "$wxUSE_XPM" = "yes" ; then | |
38143 | cat >>confdefs.h <<\_ACEOF | |
38144 | #define wxUSE_XPM 1 | |
38145 | _ACEOF | |
38146 | ||
38147 | fi | |
38148 | ||
38149 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
38150 | cat >>confdefs.h <<\_ACEOF | |
38151 | #define wxUSE_ICO_CUR 1 | |
38152 | _ACEOF | |
38153 | ||
38154 | fi | |
38155 | fi | |
38156 | ||
38157 | ||
38158 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
38159 | cat >>confdefs.h <<\_ACEOF | |
38160 | #define wxUSE_CHOICEDLG 1 | |
38161 | _ACEOF | |
38162 | ||
38163 | fi | |
38164 | ||
38165 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
38166 | cat >>confdefs.h <<\_ACEOF | |
38167 | #define wxUSE_COLOURDLG 1 | |
38168 | _ACEOF | |
38169 | ||
38170 | fi | |
38171 | ||
38172 | if test "$wxUSE_FILEDLG" = "yes"; then | |
38173 | cat >>confdefs.h <<\_ACEOF | |
38174 | #define wxUSE_FILEDLG 1 | |
38175 | _ACEOF | |
38176 | ||
38177 | fi | |
38178 | ||
38179 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
38180 | cat >>confdefs.h <<\_ACEOF | |
38181 | #define wxUSE_FINDREPLDLG 1 | |
38182 | _ACEOF | |
38183 | ||
38184 | fi | |
38185 | ||
38186 | if test "$wxUSE_FONTDLG" = "yes"; then | |
38187 | cat >>confdefs.h <<\_ACEOF | |
38188 | #define wxUSE_FONTDLG 1 | |
38189 | _ACEOF | |
38190 | ||
38191 | fi | |
38192 | ||
38193 | if test "$wxUSE_DIRDLG" = "yes"; then | |
38194 | if test "$wxUSE_TREECTRL" != "yes"; then | |
38195 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
38196 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
38197 | else | |
38198 | cat >>confdefs.h <<\_ACEOF | |
38199 | #define wxUSE_DIRDLG 1 | |
38200 | _ACEOF | |
38201 | ||
38202 | fi | |
38203 | fi | |
38204 | ||
38205 | if test "$wxUSE_MSGDLG" = "yes"; then | |
38206 | cat >>confdefs.h <<\_ACEOF | |
38207 | #define wxUSE_MSGDLG 1 | |
38208 | _ACEOF | |
38209 | ||
38210 | fi | |
38211 | ||
38212 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
38213 | cat >>confdefs.h <<\_ACEOF | |
38214 | #define wxUSE_NUMBERDLG 1 | |
38215 | _ACEOF | |
38216 | ||
38217 | fi | |
38218 | ||
38219 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
38220 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38221 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
38222 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
38223 | else | |
38224 | cat >>confdefs.h <<\_ACEOF | |
38225 | #define wxUSE_PROGRESSDLG 1 | |
38226 | _ACEOF | |
38227 | ||
38228 | fi | |
38229 | fi | |
38230 | ||
38231 | if test "$wxUSE_SPLASH" = "yes"; then | |
38232 | cat >>confdefs.h <<\_ACEOF | |
38233 | #define wxUSE_SPLASH 1 | |
38234 | _ACEOF | |
38235 | ||
2057db16 | 38236 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
38237 | fi |
38238 | ||
38239 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
38240 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38241 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
38242 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
38243 | else | |
38244 | cat >>confdefs.h <<\_ACEOF | |
38245 | #define wxUSE_STARTUP_TIPS 1 | |
38246 | _ACEOF | |
38247 | ||
38248 | fi | |
38249 | fi | |
38250 | ||
38251 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
38252 | cat >>confdefs.h <<\_ACEOF | |
38253 | #define wxUSE_TEXTDLG 1 | |
38254 | _ACEOF | |
38255 | ||
38256 | fi | |
38257 | ||
38258 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
38259 | cat >>confdefs.h <<\_ACEOF | |
38260 | #define wxUSE_WIZARDDLG 1 | |
38261 | _ACEOF | |
38262 | ||
38263 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
38264 | fi | |
38265 | ||
38266 | ||
38267 | if test "$cross_compiling" = "yes"; then | |
38268 | OSINFO="\"$host\"" | |
38269 | else | |
38270 | OSINFO=`uname -s -r -m` | |
38271 | OSINFO="\"$OSINFO\"" | |
38272 | fi | |
38273 | ||
38274 | cat >>confdefs.h <<_ACEOF | |
38275 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
38276 | _ACEOF | |
38277 | ||
38278 | ||
38279 | ||
38280 | if test "x$prefix" != "xNONE"; then | |
38281 | wxPREFIX=$prefix | |
38282 | else | |
38283 | wxPREFIX=$ac_default_prefix | |
38284 | fi | |
38285 | ||
38286 | cat >>confdefs.h <<_ACEOF | |
38287 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
38288 | _ACEOF | |
38289 | ||
38290 | ||
a848cd7e SC |
38291 | |
38292 | ||
38293 | CORE_BASE_LIBS="net base" | |
38294 | CORE_GUI_LIBS="adv core" | |
38295 | ||
38296 | if test "$wxUSE_XML" = "yes" ; then | |
38297 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
38298 | fi | |
38299 | if test "$wxUSE_ODBC" != "no" ; then | |
38300 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
38301 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
38302 | fi | |
38303 | if test "$wxUSE_HTML" = "yes" ; then | |
38304 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
38305 | fi | |
9a8f0513 VS |
38306 | if test "$wxUSE_XRC" = "yes" ; then |
38307 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
38308 | fi | |
a848cd7e SC |
38309 | |
38310 | if test "$wxUSE_GUI" != "yes"; then | |
38311 | CORE_GUI_LIBS="" | |
38312 | fi | |
38313 | ||
38314 | ||
38315 | ||
38316 | ||
38317 | ||
38318 | ||
38319 | ||
38320 | ||
38321 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 38322 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
38323 | if test "$USE_DARWIN" = 1; then |
38324 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
38325 | else | |
38326 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
38327 | fi | |
07bea8f0 | 38328 | fi |
5dcf30a0 | 38329 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
38330 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
38331 | else | |
38332 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 38333 | fi |
a848cd7e SC |
38334 | fi |
38335 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 38336 | LDFLAGS="$LDFLAGS -framework Cocoa" |
a848cd7e SC |
38337 | fi |
38338 | ||
38339 | ||
38340 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
38341 | ||
38342 | have_cos=0 | |
38343 | have_floor=0 | |
38344 | ||
38345 | for ac_func in cos | |
38346 | do | |
38347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38348 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38350 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38352 | else | |
38353 | cat >conftest.$ac_ext <<_ACEOF | |
38354 | /* confdefs.h. */ | |
38355 | _ACEOF | |
38356 | cat confdefs.h >>conftest.$ac_ext | |
38357 | cat >>conftest.$ac_ext <<_ACEOF | |
38358 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38359 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38361 | #define $ac_func innocuous_$ac_func | |
38362 | ||
a848cd7e SC |
38363 | /* System header to define __stub macros and hopefully few prototypes, |
38364 | which can conflict with char $ac_func (); below. | |
38365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38366 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38367 | |
a848cd7e SC |
38368 | #ifdef __STDC__ |
38369 | # include <limits.h> | |
38370 | #else | |
38371 | # include <assert.h> | |
38372 | #endif | |
ac1cb8d3 VS |
38373 | |
38374 | #undef $ac_func | |
38375 | ||
a848cd7e SC |
38376 | /* Override any gcc2 internal prototype to avoid an error. */ |
38377 | #ifdef __cplusplus | |
38378 | extern "C" | |
38379 | { | |
38380 | #endif | |
38381 | /* We use char because int might match the return type of a gcc2 | |
38382 | builtin and then its argument prototype would still apply. */ | |
38383 | char $ac_func (); | |
38384 | /* The GNU C library defines this for functions which it implements | |
38385 | to always fail with ENOSYS. Some functions are actually named | |
38386 | something starting with __ and the normal name is an alias. */ | |
38387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38388 | choke me | |
38389 | #else | |
38390 | char (*f) () = $ac_func; | |
38391 | #endif | |
38392 | #ifdef __cplusplus | |
38393 | } | |
38394 | #endif | |
38395 | ||
38396 | int | |
38397 | main () | |
38398 | { | |
38399 | return f != $ac_func; | |
38400 | ; | |
38401 | return 0; | |
38402 | } | |
38403 | _ACEOF | |
38404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38406 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38407 | ac_status=$? |
ac1cb8d3 VS |
38408 | grep -v '^ *+' conftest.er1 >conftest.err |
38409 | rm -f conftest.er1 | |
38410 | cat conftest.err >&5 | |
a848cd7e SC |
38411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38412 | (exit $ac_status); } && | |
04840eaa VS |
38413 | { ac_try='test -z "$ac_c_werror_flag" |
38414 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38416 | (eval $ac_try) 2>&5 | |
38417 | ac_status=$? | |
38418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38419 | (exit $ac_status); }; } && | |
38420 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38422 | (eval $ac_try) 2>&5 | |
38423 | ac_status=$? | |
38424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38425 | (exit $ac_status); }; }; then | |
38426 | eval "$as_ac_var=yes" | |
38427 | else | |
38428 | echo "$as_me: failed program was:" >&5 | |
38429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38430 | ||
38431 | eval "$as_ac_var=no" | |
38432 | fi | |
ac1cb8d3 VS |
38433 | rm -f conftest.err conftest.$ac_objext \ |
38434 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38435 | fi |
38436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38437 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38438 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38439 | cat >>confdefs.h <<_ACEOF | |
38440 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38441 | _ACEOF | |
38442 | have_cos=1 | |
38443 | fi | |
38444 | done | |
38445 | ||
38446 | ||
38447 | for ac_func in floor | |
38448 | do | |
38449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38452 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38454 | else | |
38455 | cat >conftest.$ac_ext <<_ACEOF | |
38456 | /* confdefs.h. */ | |
38457 | _ACEOF | |
38458 | cat confdefs.h >>conftest.$ac_ext | |
38459 | cat >>conftest.$ac_ext <<_ACEOF | |
38460 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38461 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38463 | #define $ac_func innocuous_$ac_func | |
38464 | ||
a848cd7e SC |
38465 | /* System header to define __stub macros and hopefully few prototypes, |
38466 | which can conflict with char $ac_func (); below. | |
38467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38468 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38469 | |
a848cd7e SC |
38470 | #ifdef __STDC__ |
38471 | # include <limits.h> | |
38472 | #else | |
38473 | # include <assert.h> | |
38474 | #endif | |
ac1cb8d3 VS |
38475 | |
38476 | #undef $ac_func | |
38477 | ||
a848cd7e SC |
38478 | /* Override any gcc2 internal prototype to avoid an error. */ |
38479 | #ifdef __cplusplus | |
38480 | extern "C" | |
38481 | { | |
38482 | #endif | |
38483 | /* We use char because int might match the return type of a gcc2 | |
38484 | builtin and then its argument prototype would still apply. */ | |
38485 | char $ac_func (); | |
38486 | /* The GNU C library defines this for functions which it implements | |
38487 | to always fail with ENOSYS. Some functions are actually named | |
38488 | something starting with __ and the normal name is an alias. */ | |
38489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38490 | choke me | |
38491 | #else | |
38492 | char (*f) () = $ac_func; | |
38493 | #endif | |
38494 | #ifdef __cplusplus | |
38495 | } | |
38496 | #endif | |
38497 | ||
38498 | int | |
38499 | main () | |
38500 | { | |
38501 | return f != $ac_func; | |
38502 | ; | |
38503 | return 0; | |
38504 | } | |
38505 | _ACEOF | |
38506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38508 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38509 | ac_status=$? |
ac1cb8d3 VS |
38510 | grep -v '^ *+' conftest.er1 >conftest.err |
38511 | rm -f conftest.er1 | |
38512 | cat conftest.err >&5 | |
a848cd7e SC |
38513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38514 | (exit $ac_status); } && | |
04840eaa VS |
38515 | { ac_try='test -z "$ac_c_werror_flag" |
38516 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38518 | (eval $ac_try) 2>&5 | |
38519 | ac_status=$? | |
38520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38521 | (exit $ac_status); }; } && | |
38522 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38524 | (eval $ac_try) 2>&5 | |
38525 | ac_status=$? | |
38526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38527 | (exit $ac_status); }; }; then | |
38528 | eval "$as_ac_var=yes" | |
38529 | else | |
38530 | echo "$as_me: failed program was:" >&5 | |
38531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38532 | ||
38533 | eval "$as_ac_var=no" | |
38534 | fi | |
ac1cb8d3 VS |
38535 | rm -f conftest.err conftest.$ac_objext \ |
38536 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38537 | fi |
38538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38539 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38540 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38541 | cat >>confdefs.h <<_ACEOF | |
38542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38543 | _ACEOF | |
38544 | have_floor=1 | |
38545 | fi | |
38546 | done | |
38547 | ||
38548 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
38549 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
38550 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
38551 | echo "$as_me:$LINENO: result: yes" >&5 | |
38552 | echo "${ECHO_T}yes" >&6 | |
38553 | else | |
38554 | echo "$as_me:$LINENO: result: no" >&5 | |
38555 | echo "${ECHO_T}no" >&6 | |
38556 | LIBS="$LIBS -lm" | |
38557 | # use different functions to avoid configure caching | |
38558 | have_sin=0 | |
38559 | have_ceil=0 | |
38560 | ||
38561 | for ac_func in sin | |
38562 | do | |
38563 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38564 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38565 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38566 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38568 | else | |
38569 | cat >conftest.$ac_ext <<_ACEOF | |
38570 | /* confdefs.h. */ | |
38571 | _ACEOF | |
38572 | cat confdefs.h >>conftest.$ac_ext | |
38573 | cat >>conftest.$ac_ext <<_ACEOF | |
38574 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38575 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38576 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38577 | #define $ac_func innocuous_$ac_func | |
38578 | ||
a848cd7e SC |
38579 | /* System header to define __stub macros and hopefully few prototypes, |
38580 | which can conflict with char $ac_func (); below. | |
38581 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38582 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38583 | |
a848cd7e SC |
38584 | #ifdef __STDC__ |
38585 | # include <limits.h> | |
38586 | #else | |
38587 | # include <assert.h> | |
38588 | #endif | |
ac1cb8d3 VS |
38589 | |
38590 | #undef $ac_func | |
38591 | ||
a848cd7e SC |
38592 | /* Override any gcc2 internal prototype to avoid an error. */ |
38593 | #ifdef __cplusplus | |
38594 | extern "C" | |
38595 | { | |
38596 | #endif | |
38597 | /* We use char because int might match the return type of a gcc2 | |
38598 | builtin and then its argument prototype would still apply. */ | |
38599 | char $ac_func (); | |
38600 | /* The GNU C library defines this for functions which it implements | |
38601 | to always fail with ENOSYS. Some functions are actually named | |
38602 | something starting with __ and the normal name is an alias. */ | |
38603 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38604 | choke me | |
38605 | #else | |
38606 | char (*f) () = $ac_func; | |
38607 | #endif | |
38608 | #ifdef __cplusplus | |
38609 | } | |
38610 | #endif | |
38611 | ||
38612 | int | |
38613 | main () | |
38614 | { | |
38615 | return f != $ac_func; | |
38616 | ; | |
38617 | return 0; | |
38618 | } | |
38619 | _ACEOF | |
38620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38622 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38623 | ac_status=$? |
ac1cb8d3 VS |
38624 | grep -v '^ *+' conftest.er1 >conftest.err |
38625 | rm -f conftest.er1 | |
38626 | cat conftest.err >&5 | |
a848cd7e SC |
38627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38628 | (exit $ac_status); } && | |
04840eaa VS |
38629 | { ac_try='test -z "$ac_c_werror_flag" |
38630 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38632 | (eval $ac_try) 2>&5 | |
38633 | ac_status=$? | |
38634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38635 | (exit $ac_status); }; } && | |
38636 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38638 | (eval $ac_try) 2>&5 | |
38639 | ac_status=$? | |
38640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38641 | (exit $ac_status); }; }; then | |
38642 | eval "$as_ac_var=yes" | |
38643 | else | |
38644 | echo "$as_me: failed program was:" >&5 | |
38645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38646 | ||
38647 | eval "$as_ac_var=no" | |
38648 | fi | |
ac1cb8d3 VS |
38649 | rm -f conftest.err conftest.$ac_objext \ |
38650 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38651 | fi |
38652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38653 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38654 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38655 | cat >>confdefs.h <<_ACEOF | |
38656 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38657 | _ACEOF | |
38658 | have_sin=1 | |
38659 | fi | |
38660 | done | |
38661 | ||
38662 | ||
38663 | for ac_func in ceil | |
38664 | do | |
38665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38668 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38670 | else | |
38671 | cat >conftest.$ac_ext <<_ACEOF | |
38672 | /* confdefs.h. */ | |
38673 | _ACEOF | |
38674 | cat confdefs.h >>conftest.$ac_ext | |
38675 | cat >>conftest.$ac_ext <<_ACEOF | |
38676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38679 | #define $ac_func innocuous_$ac_func | |
38680 | ||
a848cd7e SC |
38681 | /* System header to define __stub macros and hopefully few prototypes, |
38682 | which can conflict with char $ac_func (); below. | |
38683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38685 | |
a848cd7e SC |
38686 | #ifdef __STDC__ |
38687 | # include <limits.h> | |
38688 | #else | |
38689 | # include <assert.h> | |
38690 | #endif | |
ac1cb8d3 VS |
38691 | |
38692 | #undef $ac_func | |
38693 | ||
a848cd7e SC |
38694 | /* Override any gcc2 internal prototype to avoid an error. */ |
38695 | #ifdef __cplusplus | |
38696 | extern "C" | |
38697 | { | |
38698 | #endif | |
38699 | /* We use char because int might match the return type of a gcc2 | |
38700 | builtin and then its argument prototype would still apply. */ | |
38701 | char $ac_func (); | |
38702 | /* The GNU C library defines this for functions which it implements | |
38703 | to always fail with ENOSYS. Some functions are actually named | |
38704 | something starting with __ and the normal name is an alias. */ | |
38705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38706 | choke me | |
38707 | #else | |
38708 | char (*f) () = $ac_func; | |
38709 | #endif | |
38710 | #ifdef __cplusplus | |
38711 | } | |
38712 | #endif | |
38713 | ||
38714 | int | |
38715 | main () | |
38716 | { | |
38717 | return f != $ac_func; | |
38718 | ; | |
38719 | return 0; | |
38720 | } | |
38721 | _ACEOF | |
38722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38725 | ac_status=$? |
ac1cb8d3 VS |
38726 | grep -v '^ *+' conftest.er1 >conftest.err |
38727 | rm -f conftest.er1 | |
38728 | cat conftest.err >&5 | |
a848cd7e SC |
38729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38730 | (exit $ac_status); } && | |
04840eaa VS |
38731 | { ac_try='test -z "$ac_c_werror_flag" |
38732 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38734 | (eval $ac_try) 2>&5 | |
38735 | ac_status=$? | |
38736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38737 | (exit $ac_status); }; } && | |
38738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38740 | (eval $ac_try) 2>&5 | |
38741 | ac_status=$? | |
38742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38743 | (exit $ac_status); }; }; then | |
38744 | eval "$as_ac_var=yes" | |
38745 | else | |
38746 | echo "$as_me: failed program was:" >&5 | |
38747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38748 | ||
38749 | eval "$as_ac_var=no" | |
38750 | fi | |
ac1cb8d3 VS |
38751 | rm -f conftest.err conftest.$ac_objext \ |
38752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38753 | fi |
38754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38756 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38757 | cat >>confdefs.h <<_ACEOF | |
38758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38759 | _ACEOF | |
38760 | have_ceil=1 | |
38761 | fi | |
38762 | done | |
38763 | ||
38764 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
38765 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
38766 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
38767 | echo "$as_me:$LINENO: result: yes" >&5 | |
38768 | echo "${ECHO_T}yes" >&6 | |
38769 | else | |
38770 | echo "$as_me:$LINENO: result: no" >&5 | |
38771 | echo "${ECHO_T}no" >&6 | |
38772 | # not sure we should warn the user, crash, etc. | |
38773 | fi | |
38774 | fi | |
38775 | ||
38776 | if test "$wxUSE_GUI" = "yes"; then | |
38777 | ||
38778 | ||
38779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
38780 | drawing dynamic erase event exec font image \ | |
38781 | minimal propsize rotate shaped widgets render" | |
38782 | ||
38783 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
38784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
38785 | fi | |
38786 | else | |
38787 | SAMPLES_SUBDIRS="console" | |
38788 | fi | |
38789 | ||
38790 | ||
ceec2216 | 38791 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
38792 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
38793 | ||
38794 | if test "$GXX" = yes ; then | |
5294a27e VZ |
38795 | CWARNINGS="-Wall" |
38796 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
38797 | fi |
38798 | ||
38799 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
38800 | ||
0c3c69fc | 38801 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 38802 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 38803 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e SC |
38804 | |
38805 | ||
0c3c69fc | 38806 | LIBS=`echo $LIBS` |
a848cd7e SC |
38807 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
38808 | EXTRALIBS_XML="$EXPAT_LINK" | |
38809 | EXTRALIBS_HTML="$MSPACK_LINK" | |
38810 | EXTRALIBS_ODBC="$ODBC_LINK" | |
38811 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 38812 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
38813 | fi |
38814 | if test "$wxUSE_OPENGL" = "yes"; then | |
38815 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
38816 | fi | |
38817 | ||
38818 | LDFLAGS="$LDFLAGS $PROFILE" | |
38819 | ||
38820 | if test "$wxUSE_GTK" = 1; then | |
38821 | WXCONFIG_INCLUDE= | |
38822 | else | |
38823 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
38824 | fi | |
38825 | ||
38826 | WXCONFIG_EXTRALIBS="$LIBS" | |
38827 | ||
38828 | if test "$wxUSE_REGEX" = "builtin" ; then | |
38829 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
38830 | fi | |
38831 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
38832 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
38833 | fi | |
38834 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38835 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38836 | fi | |
38837 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
38838 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
38839 | fi | |
38840 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
38841 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
38842 | fi | |
38843 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
38844 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
38845 | fi | |
38846 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
38847 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
38848 | fi | |
38849 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38850 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38851 | fi | |
38852 | ||
38853 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 38854 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
38855 | done |
38856 | ||
38857 | ||
38858 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
38859 | WXUNIV=1 | |
38860 | else | |
38861 | WXUNIV=0 | |
38862 | fi | |
38863 | ||
38864 | ||
38865 | ||
38866 | ||
38867 | ||
38868 | ||
38869 | ||
38870 | ||
38871 | ||
38872 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
38873 | MONOLITHIC=1 | |
38874 | else | |
38875 | MONOLITHIC=0 | |
38876 | fi | |
38877 | ||
38878 | if test $wxUSE_PLUGINS = "yes" ; then | |
38879 | USE_PLUGINS=1 | |
38880 | else | |
38881 | USE_PLUGINS=0 | |
38882 | fi | |
38883 | ||
38884 | if test $wxUSE_ODBC != "no" ; then | |
38885 | USE_ODBC=1 | |
38886 | else | |
38887 | USE_ODBC=0 | |
38888 | fi | |
38889 | ||
38890 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
38891 | OFFICIAL_BUILD=1 | |
38892 | else | |
38893 | OFFICIAL_BUILD=0 | |
38894 | fi | |
38895 | ||
38896 | ||
38897 | ||
38898 | ||
38899 | ||
38900 | ||
38901 | ||
38902 | ||
38903 | ||
38904 | ||
38905 | ||
38906 | ||
38907 | ||
38908 | ||
38909 | ||
38910 | ||
38911 | ||
38912 | ||
38913 | ||
ceec2216 | 38914 | |
d1c38808 | 38915 | |
a848cd7e SC |
38916 | |
38917 | ||
38918 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
38919 | ||
38920 | ||
38921 | ||
38922 | ||
38923 | ||
38924 | ||
38925 | ||
38926 | ||
4d4ff94c VZ |
38927 | case "$TOOLKIT" in |
38928 | GTK) | |
38929 | TOOLKIT_USER="GTK+" | |
38930 | if test "$WXGTK20" = 1; then | |
38931 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
38932 | fi | |
9a8f0513 | 38933 | ;; |
4d4ff94c VZ |
38934 | |
38935 | *) | |
38936 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 38937 | ;; |
4d4ff94c | 38938 | esac |
a848cd7e | 38939 | |
9a8f0513 | 38940 | |
1e9e8aba DE |
38941 | |
38942 | ||
a848cd7e SC |
38943 | if test "x$BAKEFILE_HOST" = "x"; then |
38944 | BAKEFILE_HOST="${host}" | |
38945 | fi | |
38946 | ||
38947 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
38948 | ||
38949 | if test -n "$ac_tool_prefix"; then | |
38950 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
38951 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
38952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38954 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
38955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38956 | else | |
38957 | if test -n "$RANLIB"; then | |
38958 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
38959 | else | |
38960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38961 | for as_dir in $PATH | |
38962 | do | |
38963 | IFS=$as_save_IFS | |
38964 | test -z "$as_dir" && as_dir=. | |
38965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38967 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
38968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38969 | break 2 | |
38970 | fi | |
38971 | done | |
38972 | done | |
38973 | ||
38974 | fi | |
38975 | fi | |
38976 | RANLIB=$ac_cv_prog_RANLIB | |
38977 | if test -n "$RANLIB"; then | |
38978 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
38979 | echo "${ECHO_T}$RANLIB" >&6 | |
38980 | else | |
38981 | echo "$as_me:$LINENO: result: no" >&5 | |
38982 | echo "${ECHO_T}no" >&6 | |
38983 | fi | |
38984 | ||
38985 | fi | |
38986 | if test -z "$ac_cv_prog_RANLIB"; then | |
38987 | ac_ct_RANLIB=$RANLIB | |
38988 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38989 | set dummy ranlib; ac_word=$2 | |
38990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38992 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
38993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38994 | else | |
38995 | if test -n "$ac_ct_RANLIB"; then | |
38996 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38997 | else | |
38998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38999 | for as_dir in $PATH | |
39000 | do | |
39001 | IFS=$as_save_IFS | |
39002 | test -z "$as_dir" && as_dir=. | |
39003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39004 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39005 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
39006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39007 | break 2 | |
39008 | fi | |
39009 | done | |
39010 | done | |
39011 | ||
39012 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
39013 | fi | |
39014 | fi | |
39015 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
39016 | if test -n "$ac_ct_RANLIB"; then | |
39017 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
39018 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
39019 | else | |
39020 | echo "$as_me:$LINENO: result: no" >&5 | |
39021 | echo "${ECHO_T}no" >&6 | |
39022 | fi | |
39023 | ||
39024 | RANLIB=$ac_ct_RANLIB | |
39025 | else | |
39026 | RANLIB="$ac_cv_prog_RANLIB" | |
39027 | fi | |
39028 | ||
39029 | # Find a good install program. We prefer a C program (faster), | |
39030 | # so one script is as good as another. But avoid the broken or | |
39031 | # incompatible versions: | |
39032 | # SysV /etc/install, /usr/sbin/install | |
39033 | # SunOS /usr/etc/install | |
39034 | # IRIX /sbin/install | |
39035 | # AIX /bin/install | |
39036 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
39037 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
39038 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
39039 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 39040 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
39041 | # ./install, which can be erroneously created by make from ./install.sh. |
39042 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
39043 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
39044 | if test -z "$INSTALL"; then | |
39045 | if test "${ac_cv_path_install+set}" = set; then | |
39046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39047 | else | |
39048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39049 | for as_dir in $PATH | |
39050 | do | |
39051 | IFS=$as_save_IFS | |
39052 | test -z "$as_dir" && as_dir=. | |
39053 | # Account for people who put trailing slashes in PATH elements. | |
39054 | case $as_dir/ in | |
39055 | ./ | .// | /cC/* | \ | |
39056 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 39057 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
39058 | /usr/ucb/* ) ;; |
39059 | *) | |
39060 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
39061 | # Don't use installbsd from OSF since it installs stuff as root | |
39062 | # by default. | |
39063 | for ac_prog in ginstall scoinst install; do | |
39064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
39065 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
39066 | if test $ac_prog = install && | |
39067 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39068 | # AIX install. It has an incompatible calling convention. | |
39069 | : | |
39070 | elif test $ac_prog = install && | |
39071 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
39072 | # program-specific install script used by HP pwplus--don't use. | |
39073 | : | |
39074 | else | |
39075 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
39076 | break 3 | |
39077 | fi | |
39078 | fi | |
a848cd7e SC |
39079 | done |
39080 | done | |
39081 | ;; | |
39082 | esac | |
39083 | done | |
39084 | ||
39085 | ||
39086 | fi | |
39087 | if test "${ac_cv_path_install+set}" = set; then | |
39088 | INSTALL=$ac_cv_path_install | |
39089 | else | |
39090 | # As a last resort, use the slow shell script. We don't cache a | |
39091 | # path for INSTALL within a source directory, because that will | |
39092 | # break other packages using the cache if that directory is | |
39093 | # removed, or if the path is relative. | |
39094 | INSTALL=$ac_install_sh | |
39095 | fi | |
39096 | fi | |
39097 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
39098 | echo "${ECHO_T}$INSTALL" >&6 | |
39099 | ||
39100 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
39101 | # It thinks the first close brace ends the variable substitution. | |
39102 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
39103 | ||
39104 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
39105 | ||
39106 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
39107 | ||
39108 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
39109 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
39110 | LN_S=$as_ln_s | |
39111 | if test "$LN_S" = "ln -s"; then | |
39112 | echo "$as_me:$LINENO: result: yes" >&5 | |
39113 | echo "${ECHO_T}yes" >&6 | |
39114 | else | |
39115 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
39116 | echo "${ECHO_T}no, using $LN_S" >&6 | |
39117 | fi | |
39118 | ||
39119 | ||
39120 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
39121 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 39122 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
39123 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
39124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39125 | else | |
39126 | cat >conftest.make <<\_ACEOF | |
39127 | all: | |
39128 | @echo 'ac_maketemp="$(MAKE)"' | |
39129 | _ACEOF | |
39130 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
39131 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
39132 | if test -n "$ac_maketemp"; then | |
39133 | eval ac_cv_prog_make_${ac_make}_set=yes | |
39134 | else | |
39135 | eval ac_cv_prog_make_${ac_make}_set=no | |
39136 | fi | |
39137 | rm -f conftest.make | |
39138 | fi | |
39139 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
39140 | echo "$as_me:$LINENO: result: yes" >&5 | |
39141 | echo "${ECHO_T}yes" >&6 | |
39142 | SET_MAKE= | |
39143 | else | |
39144 | echo "$as_me:$LINENO: result: no" >&5 | |
39145 | echo "${ECHO_T}no" >&6 | |
39146 | SET_MAKE="MAKE=${MAKE-make}" | |
39147 | fi | |
39148 | ||
39149 | ||
39150 | ||
39151 | if test -n "$ac_tool_prefix"; then | |
39152 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
39153 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
39154 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39156 | if test "${ac_cv_prog_AR+set}" = set; then | |
39157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39158 | else | |
39159 | if test -n "$AR"; then | |
39160 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
39161 | else | |
39162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39163 | for as_dir in $PATH | |
39164 | do | |
39165 | IFS=$as_save_IFS | |
39166 | test -z "$as_dir" && as_dir=. | |
39167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39168 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39169 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
39170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39171 | break 2 | |
39172 | fi | |
39173 | done | |
39174 | done | |
39175 | ||
39176 | fi | |
39177 | fi | |
39178 | AR=$ac_cv_prog_AR | |
39179 | if test -n "$AR"; then | |
39180 | echo "$as_me:$LINENO: result: $AR" >&5 | |
39181 | echo "${ECHO_T}$AR" >&6 | |
39182 | else | |
39183 | echo "$as_me:$LINENO: result: no" >&5 | |
39184 | echo "${ECHO_T}no" >&6 | |
39185 | fi | |
39186 | ||
39187 | fi | |
39188 | if test -z "$ac_cv_prog_AR"; then | |
39189 | ac_ct_AR=$AR | |
39190 | # Extract the first word of "ar", so it can be a program name with args. | |
39191 | set dummy ar; ac_word=$2 | |
39192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39194 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
39195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39196 | else | |
39197 | if test -n "$ac_ct_AR"; then | |
39198 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
39199 | else | |
39200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39201 | for as_dir in $PATH | |
39202 | do | |
39203 | IFS=$as_save_IFS | |
39204 | test -z "$as_dir" && as_dir=. | |
39205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39207 | ac_cv_prog_ac_ct_AR="ar" | |
39208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39209 | break 2 | |
39210 | fi | |
39211 | done | |
39212 | done | |
39213 | ||
39214 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
39215 | fi | |
39216 | fi | |
39217 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
39218 | if test -n "$ac_ct_AR"; then | |
39219 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
39220 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
39221 | else | |
39222 | echo "$as_me:$LINENO: result: no" >&5 | |
39223 | echo "${ECHO_T}no" >&6 | |
39224 | fi | |
39225 | ||
39226 | AR=$ac_ct_AR | |
39227 | else | |
39228 | AR="$ac_cv_prog_AR" | |
39229 | fi | |
39230 | ||
39231 | if test -n "$ac_tool_prefix"; then | |
39232 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
39233 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
39234 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39236 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
39237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39238 | else | |
39239 | if test -n "$STRIP"; then | |
39240 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
39241 | else | |
39242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39243 | for as_dir in $PATH | |
39244 | do | |
39245 | IFS=$as_save_IFS | |
39246 | test -z "$as_dir" && as_dir=. | |
39247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39249 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
39250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39251 | break 2 | |
39252 | fi | |
39253 | done | |
39254 | done | |
39255 | ||
39256 | fi | |
39257 | fi | |
39258 | STRIP=$ac_cv_prog_STRIP | |
39259 | if test -n "$STRIP"; then | |
39260 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
39261 | echo "${ECHO_T}$STRIP" >&6 | |
39262 | else | |
39263 | echo "$as_me:$LINENO: result: no" >&5 | |
39264 | echo "${ECHO_T}no" >&6 | |
39265 | fi | |
39266 | ||
39267 | fi | |
39268 | if test -z "$ac_cv_prog_STRIP"; then | |
39269 | ac_ct_STRIP=$STRIP | |
39270 | # Extract the first word of "strip", so it can be a program name with args. | |
39271 | set dummy strip; ac_word=$2 | |
39272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39274 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
39275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39276 | else | |
39277 | if test -n "$ac_ct_STRIP"; then | |
39278 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
39279 | else | |
39280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39281 | for as_dir in $PATH | |
39282 | do | |
39283 | IFS=$as_save_IFS | |
39284 | test -z "$as_dir" && as_dir=. | |
39285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39286 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39287 | ac_cv_prog_ac_ct_STRIP="strip" | |
39288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39289 | break 2 | |
39290 | fi | |
39291 | done | |
39292 | done | |
39293 | ||
39294 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
39295 | fi | |
39296 | fi | |
39297 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
39298 | if test -n "$ac_ct_STRIP"; then | |
39299 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
39300 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
39301 | else | |
39302 | echo "$as_me:$LINENO: result: no" >&5 | |
39303 | echo "${ECHO_T}no" >&6 | |
39304 | fi | |
39305 | ||
39306 | STRIP=$ac_ct_STRIP | |
39307 | else | |
39308 | STRIP="$ac_cv_prog_STRIP" | |
39309 | fi | |
39310 | ||
39311 | if test -n "$ac_tool_prefix"; then | |
39312 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
39313 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
39314 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39316 | if test "${ac_cv_prog_NM+set}" = set; then | |
39317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39318 | else | |
39319 | if test -n "$NM"; then | |
39320 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
39321 | else | |
39322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39323 | for as_dir in $PATH | |
39324 | do | |
39325 | IFS=$as_save_IFS | |
39326 | test -z "$as_dir" && as_dir=. | |
39327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39328 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39329 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
39330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39331 | break 2 | |
39332 | fi | |
39333 | done | |
39334 | done | |
39335 | ||
39336 | fi | |
39337 | fi | |
39338 | NM=$ac_cv_prog_NM | |
39339 | if test -n "$NM"; then | |
39340 | echo "$as_me:$LINENO: result: $NM" >&5 | |
39341 | echo "${ECHO_T}$NM" >&6 | |
39342 | else | |
39343 | echo "$as_me:$LINENO: result: no" >&5 | |
39344 | echo "${ECHO_T}no" >&6 | |
39345 | fi | |
39346 | ||
39347 | fi | |
39348 | if test -z "$ac_cv_prog_NM"; then | |
39349 | ac_ct_NM=$NM | |
39350 | # Extract the first word of "nm", so it can be a program name with args. | |
39351 | set dummy nm; ac_word=$2 | |
39352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39354 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
39355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39356 | else | |
39357 | if test -n "$ac_ct_NM"; then | |
39358 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
39359 | else | |
39360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39361 | for as_dir in $PATH | |
39362 | do | |
39363 | IFS=$as_save_IFS | |
39364 | test -z "$as_dir" && as_dir=. | |
39365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39366 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39367 | ac_cv_prog_ac_ct_NM="nm" | |
39368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39369 | break 2 | |
39370 | fi | |
39371 | done | |
39372 | done | |
39373 | ||
39374 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
39375 | fi | |
39376 | fi | |
39377 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
39378 | if test -n "$ac_ct_NM"; then | |
39379 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
39380 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
39381 | else | |
39382 | echo "$as_me:$LINENO: result: no" >&5 | |
39383 | echo "${ECHO_T}no" >&6 | |
39384 | fi | |
39385 | ||
39386 | NM=$ac_ct_NM | |
39387 | else | |
39388 | NM="$ac_cv_prog_NM" | |
39389 | fi | |
39390 | ||
39391 | ||
39392 | case ${BAKEFILE_HOST} in | |
39393 | *-hp-hpux* ) | |
1e9e8aba | 39394 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
39395 | ;; |
39396 | *) INSTALL_DIR="$INSTALL -d" | |
39397 | ;; | |
39398 | esac | |
39399 | ||
39400 | ||
39401 | LDFLAGS_GUI= | |
39402 | case ${BAKEFILE_HOST} in | |
39403 | *-*-cygwin* | *-*-mingw32* ) | |
39404 | LDFLAGS_GUI="-mwindows" | |
39405 | esac | |
39406 | ||
39407 | ||
39408 | fi | |
39409 | ||
39410 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
39411 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
39412 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
39413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39414 | else | |
39415 | ||
39416 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
39417 | egrep -s GNU > /dev/null); then | |
39418 | bakefile_cv_prog_makeisgnu="yes" | |
39419 | else | |
39420 | bakefile_cv_prog_makeisgnu="no" | |
39421 | fi | |
39422 | ||
39423 | fi | |
39424 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
39425 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
39426 | ||
39427 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
39428 | IF_GNU_MAKE="" | |
39429 | else | |
39430 | IF_GNU_MAKE="#" | |
39431 | fi | |
39432 | ||
39433 | ||
39434 | ||
39435 | PLATFORM_UNIX=0 | |
39436 | PLATFORM_WIN32=0 | |
39437 | PLATFORM_MSDOS=0 | |
39438 | PLATFORM_MAC=0 | |
1e9e8aba | 39439 | PLATFORM_MACOS=0 |
a848cd7e SC |
39440 | PLATFORM_MACOSX=0 |
39441 | PLATFORM_OS2=0 | |
1e9e8aba | 39442 | PLATFORM_BEOS=0 |
a848cd7e SC |
39443 | |
39444 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
39445 | case "${BAKEFILE_HOST}" in | |
39446 | *-*-cygwin* | *-*-mingw32* ) | |
39447 | PLATFORM_WIN32=1 | |
39448 | ;; | |
39449 | *-pc-msdosdjgpp ) | |
39450 | PLATFORM_MSDOS=1 | |
39451 | ;; | |
39452 | *-pc-os2_emx | *-pc-os2-emx ) | |
39453 | PLATFORM_OS2=1 | |
39454 | ;; | |
39455 | powerpc-*-darwin* ) | |
39456 | PLATFORM_MAC=1 | |
39457 | PLATFORM_MACOSX=1 | |
39458 | ;; | |
1e9e8aba DE |
39459 | *-*-beos* ) |
39460 | PLATFORM_BEOS=1 | |
39461 | ;; | |
39462 | powerpc-apple-macos* ) | |
39463 | PLATFORM_MAC=1 | |
39464 | PLATFORM_MACOS=1 | |
39465 | ;; | |
a848cd7e SC |
39466 | * ) |
39467 | PLATFORM_UNIX=1 | |
39468 | ;; | |
39469 | esac | |
39470 | else | |
39471 | case "$BAKEFILE_FORCE_PLATFORM" in | |
39472 | win32 ) | |
39473 | PLATFORM_WIN32=1 | |
39474 | ;; | |
39475 | msdos ) | |
39476 | PLATFORM_MSDOS=1 | |
39477 | ;; | |
39478 | os2 ) | |
39479 | PLATFORM_OS2=1 | |
39480 | ;; | |
39481 | darwin ) | |
39482 | PLATFORM_MAC=1 | |
39483 | PLATFORM_MACOSX=1 | |
39484 | ;; | |
39485 | unix ) | |
39486 | PLATFORM_UNIX=1 | |
39487 | ;; | |
1e9e8aba DE |
39488 | beos ) |
39489 | PLATFORM_BEOS=1 | |
39490 | ;; | |
a848cd7e SC |
39491 | * ) |
39492 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
39493 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
39494 | { (exit 1); exit 1; }; } | |
39495 | ;; | |
39496 | esac | |
39497 | fi | |
39498 | ||
39499 | ||
39500 | ||
39501 | ||
39502 | ||
39503 | ||
39504 | ||
39505 | ||
39506 | ||
1e9e8aba DE |
39507 | |
39508 | ||
a848cd7e SC |
39509 | # Check whether --enable-omf or --disable-omf was given. |
39510 | if test "${enable_omf+set}" = set; then | |
39511 | enableval="$enable_omf" | |
39512 | bk_os2_use_omf="$enableval" | |
39513 | fi; | |
39514 | ||
39515 | case "${BAKEFILE_HOST}" in | |
39516 | *-*-darwin* ) | |
39517 | CFLAGS="$CFLAGS -fno-common" | |
39518 | CXXFLAGS="$CXXFLAGS -fno-common" | |
39519 | ;; | |
39520 | ||
39521 | *-pc-os2_emx | *-pc-os2-emx ) | |
39522 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
39523 | AR=emxomfar | |
39524 | RANLIB=: | |
39525 | LDFLAGS="-Zomf $LDFLAGS" | |
39526 | CFLAGS="-Zomf $CFLAGS" | |
39527 | CXXFLAGS="-Zomf $CXXFLAGS" | |
39528 | OS2_LIBEXT="lib" | |
39529 | else | |
39530 | OS2_LIBEXT="a" | |
39531 | fi | |
39532 | ;; | |
1e9e8aba DE |
39533 | |
39534 | i*86-*-beos* ) | |
39535 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
39536 | ;; | |
a848cd7e SC |
39537 | esac |
39538 | ||
39539 | ||
39540 | SO_SUFFIX="so" | |
39541 | SO_SUFFIX_MODULE="so" | |
39542 | EXEEXT="" | |
39543 | LIBPREFIX="lib" | |
39544 | LIBEXT=".a" | |
39545 | DLLPREFIX="lib" | |
39546 | DLLPREFIX_MODULE="" | |
39547 | DLLIMP_SUFFIX="" | |
39548 | ||
39549 | case "${BAKEFILE_HOST}" in | |
39550 | *-hp-hpux* ) | |
39551 | SO_SUFFIX="sl" | |
39552 | SO_SUFFIX_MODULE="sl" | |
39553 | ;; | |
39554 | *-*-aix* ) | |
39555 | SO_SUFFIX="a" | |
39556 | SO_SUFFIX_MODULE="a" | |
39557 | ;; | |
39558 | *-*-cygwin* | *-*-mingw32* ) | |
39559 | SO_SUFFIX="dll" | |
39560 | SO_SUFFIX_MODULE="dll" | |
39561 | DLLIMP_SUFFIX="dll.a" | |
39562 | EXEEXT=".exe" | |
39563 | DLLPREFIX="" | |
39564 | ;; | |
39565 | *-pc-msdosdjgpp ) | |
39566 | EXEEXT=".exe" | |
39567 | DLLPREFIX="" | |
39568 | ;; | |
39569 | *-pc-os2_emx | *-pc-os2-emx ) | |
39570 | SO_SUFFIX="dll" | |
39571 | SO_SUFFIX_MODULE="dll" | |
39572 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
39573 | EXEEXT=".exe" | |
39574 | DLLPREFIX="" | |
39575 | LIBPREFIX="" | |
39576 | LIBEXT=".$OS2_LIBEXT" | |
39577 | ;; | |
39578 | powerpc-*-darwin* ) | |
39579 | SO_SUFFIX="dylib" | |
39580 | SO_SUFFIX_MODULE="bundle" | |
39581 | ;; | |
39582 | esac | |
39583 | ||
39584 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
39585 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
39586 | fi | |
39587 | ||
39588 | ||
39589 | ||
39590 | ||
39591 | ||
39592 | ||
39593 | ||
39594 | ||
39595 | ||
39596 | ||
39597 | ||
1e9e8aba DE |
39598 | PIC_FLAG="" |
39599 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
39600 | PIC_FLAG="-fPIC" |
39601 | fi | |
39602 | ||
1e9e8aba DE |
39603 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
39604 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
39605 | ||
a848cd7e SC |
39606 | case "${BAKEFILE_HOST}" in |
39607 | *-hp-hpux* ) | |
1e9e8aba | 39608 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
39609 | LDFLAGS="$LDFLAGS -L/usr/lib" |
39610 | ||
39611 | SHARED_LD_CC="${CC} -b -o" | |
39612 | SHARED_LD_CXX="${CXX} -b -o" | |
39613 | PIC_FLAG="+Z" | |
39614 | fi | |
39615 | ;; | |
39616 | ||
39617 | *-*-linux* ) | |
39618 | if test "x$GCC" != "xyes"; then | |
39619 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
39620 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
39621 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
39622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39623 | else | |
39624 | ||
39625 | cat >conftest.$ac_ext <<_ACEOF | |
39626 | /* confdefs.h. */ | |
39627 | _ACEOF | |
39628 | cat confdefs.h >>conftest.$ac_ext | |
39629 | cat >>conftest.$ac_ext <<_ACEOF | |
39630 | /* end confdefs.h. */ | |
39631 | ||
39632 | int | |
39633 | main () | |
39634 | { | |
39635 | ||
39636 | #ifndef __INTEL_COMPILER | |
39637 | #error Not icc | |
39638 | #endif | |
39639 | ||
39640 | ; | |
39641 | return 0; | |
39642 | } | |
39643 | _ACEOF | |
39644 | rm -f conftest.$ac_objext | |
39645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39646 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39647 | ac_status=$? |
ac1cb8d3 VS |
39648 | grep -v '^ *+' conftest.er1 >conftest.err |
39649 | rm -f conftest.er1 | |
39650 | cat conftest.err >&5 | |
a848cd7e SC |
39651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39652 | (exit $ac_status); } && | |
04840eaa VS |
39653 | { ac_try='test -z "$ac_c_werror_flag" |
39654 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39656 | (eval $ac_try) 2>&5 | |
39657 | ac_status=$? | |
39658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39659 | (exit $ac_status); }; } && | |
39660 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39662 | (eval $ac_try) 2>&5 | |
39663 | ac_status=$? | |
39664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39665 | (exit $ac_status); }; }; then | |
39666 | bakefile_cv_prog_icc=yes | |
39667 | else | |
39668 | echo "$as_me: failed program was:" >&5 | |
39669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39670 | ||
39671 | bakefile_cv_prog_icc=no | |
39672 | ||
39673 | fi | |
ac1cb8d3 | 39674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39675 | |
39676 | fi | |
39677 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
39678 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
39679 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
39680 | PIC_FLAG="-KPIC" | |
39681 | fi | |
39682 | fi | |
39683 | ;; | |
39684 | ||
39685 | *-*-solaris2* ) | |
39686 | if test "x$GCC" != xyes ; then | |
39687 | SHARED_LD_CC="${CC} -G -o" | |
39688 | SHARED_LD_CXX="${CXX} -G -o" | |
39689 | PIC_FLAG="-KPIC" | |
39690 | fi | |
39691 | ;; | |
39692 | ||
39693 | *-*-darwin* ) | |
39694 | ||
39695 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
39696 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
39697 | if test "${wx_cv_gcc31+set}" = set; then | |
39698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39699 | else | |
39700 | ||
39701 | cat >conftest.$ac_ext <<_ACEOF | |
39702 | /* confdefs.h. */ | |
39703 | _ACEOF | |
39704 | cat confdefs.h >>conftest.$ac_ext | |
39705 | cat >>conftest.$ac_ext <<_ACEOF | |
39706 | /* end confdefs.h. */ | |
39707 | ||
39708 | int | |
39709 | main () | |
39710 | { | |
39711 | ||
39712 | #if (__GNUC__ < 3) || \ | |
39713 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
39714 | #error old gcc | |
39715 | #endif | |
39716 | ||
39717 | ; | |
39718 | return 0; | |
39719 | } | |
39720 | _ACEOF | |
39721 | rm -f conftest.$ac_objext | |
39722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39723 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39724 | ac_status=$? |
ac1cb8d3 VS |
39725 | grep -v '^ *+' conftest.er1 >conftest.err |
39726 | rm -f conftest.er1 | |
39727 | cat conftest.err >&5 | |
a848cd7e SC |
39728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39729 | (exit $ac_status); } && | |
04840eaa VS |
39730 | { ac_try='test -z "$ac_c_werror_flag" |
39731 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39733 | (eval $ac_try) 2>&5 | |
39734 | ac_status=$? | |
39735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39736 | (exit $ac_status); }; } && | |
39737 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39739 | (eval $ac_try) 2>&5 | |
39740 | ac_status=$? | |
39741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39742 | (exit $ac_status); }; }; then | |
39743 | ||
39744 | wx_cv_gcc31=yes | |
39745 | ||
39746 | else | |
39747 | echo "$as_me: failed program was:" >&5 | |
39748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39749 | ||
39750 | ||
39751 | wx_cv_gcc31=no | |
39752 | ||
39753 | ||
39754 | fi | |
ac1cb8d3 | 39755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39756 | |
39757 | fi | |
39758 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
39759 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
39760 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
39761 | |
39762 | D='$' | |
39763 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
39764 | #!/bin/sh |
39765 | #----------------------------------------------------------------------------- | |
39766 | #-- Name: distrib/mac/shared-ld-sh | |
39767 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
39768 | #-- Author: Gilles Depeyrot | |
39769 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
39770 | #-- Licence: any use permitted | |
39771 | #----------------------------------------------------------------------------- | |
39772 | ||
39773 | verbose=0 | |
39774 | args="" | |
39775 | objects="" | |
39776 | linking_flag="-dynamiclib" | |
39777 | ||
473276a9 VS |
39778 | while test ${D}# -gt 0; do |
39779 | case ${D}1 in | |
a848cd7e SC |
39780 | |
39781 | -v) | |
39782 | verbose=1 | |
39783 | ;; | |
39784 | ||
39785 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
39786 | # collect these options and values | |
473276a9 | 39787 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
39788 | shift |
39789 | ;; | |
39790 | ||
39791 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
39792 | # collect these options | |
473276a9 | 39793 | args="${D}{args} ${D}1" |
a848cd7e SC |
39794 | ;; |
39795 | ||
39796 | -dynamiclib|-bundle) | |
473276a9 | 39797 | linking_flag="${D}1" |
a848cd7e SC |
39798 | ;; |
39799 | ||
39800 | -*) | |
473276a9 | 39801 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
39802 | exit 1 |
39803 | ;; | |
39804 | ||
39805 | *.o | *.a | *.dylib) | |
39806 | # collect object files | |
473276a9 | 39807 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
39808 | ;; |
39809 | ||
39810 | *) | |
473276a9 | 39811 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
39812 | exit 1 |
39813 | ;; | |
39814 | ||
39815 | esac | |
39816 | shift | |
39817 | done | |
39818 | ||
39819 | # | |
39820 | # Link one module containing all the others | |
39821 | # | |
473276a9 VS |
39822 | if test ${D}{verbose} = 1; then |
39823 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 39824 | fi |
473276a9 VS |
39825 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
39826 | status=${D}? | |
39827 | if test ${D}{status} != 0; then | |
39828 | exit ${D}{status} | |
a848cd7e SC |
39829 | fi |
39830 | ||
39831 | # | |
39832 | # Link the shared library from the single module created | |
39833 | # | |
473276a9 VS |
39834 | if test ${D}{verbose} = 1; then |
39835 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 39836 | fi |
473276a9 VS |
39837 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
39838 | status=${D}? | |
39839 | if test ${D}{status} != 0; then | |
39840 | exit ${D}{status} | |
a848cd7e SC |
39841 | fi |
39842 | ||
39843 | # | |
39844 | # Remove intermediate module | |
39845 | # | |
473276a9 | 39846 | rm -f master.${D}${D}.o |
a848cd7e SC |
39847 | |
39848 | exit 0 | |
39849 | EOF | |
473276a9 | 39850 | |
a848cd7e SC |
39851 | chmod +x shared-ld-sh |
39852 | ||
39853 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
39854 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
39855 | SHARED_LD_CXX="$SHARED_LD_CC" | |
39856 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
39857 | else | |
39858 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39859 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
39860 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39861 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
39862 | fi | |
39863 | ||
39864 | PIC_FLAG="-dynamic -fPIC" | |
39865 | ;; | |
39866 | ||
39867 | *-*-aix* ) | |
39868 | if test "x$GCC" != "xyes"; then | |
39869 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
39870 | set dummy makeC++SharedLib; ac_word=$2 | |
39871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39873 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
39874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39875 | else | |
39876 | if test -n "$AIX_CXX_LD"; then | |
39877 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
39878 | else | |
39879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39880 | for as_dir in $PATH | |
39881 | do | |
39882 | IFS=$as_save_IFS | |
39883 | test -z "$as_dir" && as_dir=. | |
39884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39886 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
39887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39888 | break 2 | |
39889 | fi | |
39890 | done | |
39891 | done | |
39892 | ||
39893 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
39894 | fi | |
39895 | fi | |
39896 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
39897 | if test -n "$AIX_CXX_LD"; then | |
39898 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
39899 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
39900 | else | |
39901 | echo "$as_me:$LINENO: result: no" >&5 | |
39902 | echo "${ECHO_T}no" >&6 | |
39903 | fi | |
39904 | ||
39905 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
39906 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
39907 | fi | |
39908 | ;; | |
39909 | ||
39910 | *-*-beos* ) | |
1e9e8aba DE |
39911 | SHARED_LD_CC="${LD} -nostart -o" |
39912 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
39913 | ;; |
39914 | ||
39915 | *-*-irix* ) | |
39916 | if test "x$GCC" != "xyes"; then | |
39917 | PIC_FLAG="-KPIC" | |
39918 | fi | |
39919 | ;; | |
39920 | ||
39921 | *-*-cygwin* | *-*-mingw32* ) | |
39922 | PIC_FLAG="" | |
1e9e8aba DE |
39923 | SHARED_LD_CC="\$(CC) -shared -o" |
39924 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
39925 | ;; |
39926 | ||
39927 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
39928 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
39929 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 39930 | PIC_FLAG="" |
473276a9 VS |
39931 | |
39932 | D='$' | |
39933 | cat <<EOF >dllar.sh | |
39934 | #!/bin/sh | |
39935 | # | |
39936 | # dllar - a tool to build both a .dll and an .a file | |
39937 | # from a set of object (.o) files for EMX/OS2. | |
39938 | # | |
39939 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
39940 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
39941 | # | |
39942 | # This script will accept a set of files on the command line. | |
39943 | # All the public symbols from the .o files will be exported into | |
39944 | # a .DEF file, then linker will be run (through gcc) against them to | |
39945 | # build a shared library consisting of all given .o files. All libraries | |
39946 | # (.a) will be first decompressed into component .o files then act as | |
39947 | # described above. You can optionally give a description (-d "description") | |
39948 | # which will be put into .DLL. To see the list of accepted options (as well | |
39949 | # as command-line format) simply run this program without options. The .DLL | |
39950 | # is built to be imported by name (there is no guarantee that new versions | |
39951 | # of the library you build will have same ordinals for same symbols). | |
39952 | # | |
39953 | # dllar is free software; you can redistribute it and/or modify | |
39954 | # it under the terms of the GNU General Public License as published by | |
39955 | # the Free Software Foundation; either version 2, or (at your option) | |
39956 | # any later version. | |
39957 | # | |
39958 | # dllar is distributed in the hope that it will be useful, | |
39959 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
39960 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39961 | # GNU General Public License for more details. | |
39962 | # | |
39963 | # You should have received a copy of the GNU General Public License | |
39964 | # along with dllar; see the file COPYING. If not, write to the Free | |
39965 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
39966 | # 02111-1307, USA. | |
39967 | ||
39968 | # To successfuly run this program you will need: | |
39969 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
39970 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
39971 | # - gcc | |
39972 | # (used to build the .dll) | |
39973 | # - emxexp | |
39974 | # (used to create .def file from .o files) | |
39975 | # - emximp | |
39976 | # (used to create .a file from .def file) | |
39977 | # - GNU text utilites (cat, sort, uniq) | |
39978 | # used to process emxexp output | |
39979 | # - GNU file utilities (mv, rm) | |
39980 | # - GNU sed | |
39981 | # - lxlite (optional, see flag below) | |
39982 | # (used for general .dll cleanup) | |
39983 | # | |
39984 | ||
39985 | flag_USE_LXLITE=1; | |
39986 | ||
39987 | # | |
39988 | # helper functions | |
39989 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
39990 | # second argument (suffix to remove) is given | |
39991 | basnam(){ | |
39992 | case ${D}# in | |
39993 | 1) | |
1e9e8aba | 39994 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
39995 | ;; |
39996 | 2) | |
39997 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
39998 | ;; | |
39999 | *) | |
40000 | echo "error in basnam ${D}*" | |
40001 | exit 8 | |
40002 | ;; | |
40003 | esac | |
40004 | } | |
40005 | ||
40006 | # Cleanup temporary files and output | |
40007 | CleanUp() { | |
40008 | cd ${D}curDir | |
40009 | for i in ${D}inputFiles ; do | |
40010 | case ${D}i in | |
40011 | *!) | |
40012 | rm -rf \`basnam ${D}i !\` | |
40013 | ;; | |
40014 | *) | |
40015 | ;; | |
40016 | esac | |
40017 | done | |
40018 | ||
40019 | # Kill result in case of failure as there is just to many stupid make/nmake | |
40020 | # things out there which doesn't do this. | |
1e9e8aba | 40021 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
40022 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
40023 | fi | |
40024 | } | |
40025 | ||
40026 | # Print usage and exit script with rc=1. | |
40027 | PrintHelp() { | |
b1d22ded DE |
40028 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
40029 | echo ' [-name-mangler-script script.sh]' | |
40030 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
40031 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
40032 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 40033 | echo ' [*.o] [*.a]' |
473276a9 VS |
40034 | echo '*> "output_file" should have no extension.' |
40035 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
40036 | echo ' The import library name is derived from this and is set to "name".a,' | |
40037 | echo ' unless overridden by -import' | |
40038 | echo '*> "importlib_name" should have no extension.' | |
40039 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
40040 | echo ' This name is used as the import library name and may be longer and' | |
40041 | echo ' more descriptive than the DLL name which has to follow the old ' | |
40042 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
40043 | echo '*> "script.sh may be given to override the output_file name by a' |
40044 | echo ' different name. It is mainly useful if the regular make process' | |
40045 | echo ' of some package does not take into account OS/2 restriction of' | |
40046 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
40047 | echo ' supposed to procude a shorter name as output. The script should' | |
40048 | echo ' expect to get importlib_name without extension and should produce' | |
40049 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
40050 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
40051 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
40052 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
40053 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
40054 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
40055 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
40056 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
40057 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 40058 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 40059 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 40060 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 40061 | echo ' C runtime DLLs.' |
b1d22ded | 40062 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
40063 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
40064 | echo ' unchanged to GCC at the end of command line.' | |
40065 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
40066 | echo ' the basename for DLL and import library will be set to library name,' | |
40067 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
40068 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
40069 | echo ' library will be renamed into gcc_s.a.' | |
40070 | echo '--------' | |
40071 | echo 'Example:' | |
40072 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
40073 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
40074 | CleanUp | |
40075 | exit 1 | |
40076 | } | |
40077 | ||
40078 | # Execute a command. | |
40079 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
40080 | # @Uses Whatever CleanUp() uses. | |
40081 | doCommand() { | |
40082 | echo "${D}*" | |
40083 | eval ${D}* | |
40084 | rcCmd=${D}? | |
40085 | ||
1e9e8aba | 40086 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
40087 | echo "command failed, exit code="${D}rcCmd |
40088 | CleanUp | |
40089 | exit ${D}rcCmd | |
40090 | fi | |
40091 | } | |
40092 | ||
40093 | # main routine | |
40094 | # setup globals | |
40095 | cmdLine=${D}* | |
40096 | outFile="" | |
40097 | outimpFile="" | |
40098 | inputFiles="" | |
b1d22ded | 40099 | renameScript="" |
473276a9 VS |
40100 | description="" |
40101 | CC=gcc.exe | |
40102 | CFLAGS="-s -Zcrtdll" | |
40103 | EXTRA_CFLAGS="" | |
40104 | EXPORT_BY_ORDINALS=0 | |
40105 | exclude_symbols="" | |
40106 | library_flags="" | |
40107 | curDir=\`pwd\` | |
40108 | curDirS=curDir | |
40109 | case ${D}curDirS in | |
40110 | */) | |
40111 | ;; | |
40112 | *) | |
40113 | curDirS=${D}{curDirS}"/" | |
40114 | ;; | |
40115 | esac | |
40116 | # Parse commandline | |
40117 | libsToLink=0 | |
b1d22ded | 40118 | omfLinking=0 |
1e9e8aba | 40119 | while [ ${D}1 ]; do |
473276a9 VS |
40120 | case ${D}1 in |
40121 | -ord*) | |
40122 | EXPORT_BY_ORDINALS=1; | |
40123 | ;; | |
40124 | -o*) | |
40125 | shift | |
40126 | outFile=${D}1 | |
40127 | ;; | |
40128 | -i*) | |
40129 | shift | |
40130 | outimpFile=${D}1 | |
40131 | ;; | |
b1d22ded DE |
40132 | -name-mangler-script) |
40133 | shift | |
40134 | renameScript=${D}1 | |
40135 | ;; | |
473276a9 VS |
40136 | -d*) |
40137 | shift | |
40138 | description=${D}1 | |
40139 | ;; | |
40140 | -f*) | |
40141 | shift | |
40142 | CFLAGS=${D}1 | |
40143 | ;; | |
40144 | -c*) | |
40145 | shift | |
40146 | CC=${D}1 | |
40147 | ;; | |
40148 | -h*) | |
40149 | PrintHelp | |
40150 | ;; | |
40151 | -ex*) | |
40152 | shift | |
40153 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
40154 | ;; | |
40155 | -libf*) | |
40156 | shift | |
40157 | library_flags=${D}{library_flags}${D}1" " | |
40158 | ;; | |
40159 | -nocrt*) | |
40160 | CFLAGS="-s" | |
40161 | ;; | |
40162 | -nolxl*) | |
40163 | flag_USE_LXLITE=0 | |
40164 | ;; | |
40165 | -* | /*) | |
40166 | case ${D}1 in | |
40167 | -L* | -l*) | |
40168 | libsToLink=1 | |
40169 | ;; | |
b1d22ded DE |
40170 | -Zomf) |
40171 | omfLinking=1 | |
40172 | ;; | |
473276a9 VS |
40173 | *) |
40174 | ;; | |
40175 | esac | |
40176 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
40177 | ;; | |
b1d22ded DE |
40178 | *.dll) |
40179 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
40180 | if [ ${D}omfLinking -eq 1 ]; then | |
40181 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
40182 | else | |
40183 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
40184 | fi | |
40185 | ;; | |
473276a9 VS |
40186 | *) |
40187 | found=0; | |
1e9e8aba | 40188 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
40189 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
40190 | else | |
40191 | for file in ${D}1 ; do | |
1e9e8aba | 40192 | if [ -f ${D}file ]; then |
473276a9 VS |
40193 | inputFiles="${D}{inputFiles} ${D}file" |
40194 | found=1 | |
40195 | fi | |
40196 | done | |
1e9e8aba | 40197 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
40198 | echo "ERROR: No file(s) found: "${D}1 |
40199 | exit 8 | |
40200 | fi | |
40201 | fi | |
40202 | ;; | |
40203 | esac | |
40204 | shift | |
40205 | done # iterate cmdline words | |
40206 | ||
40207 | # | |
1e9e8aba | 40208 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
40209 | echo "dllar: no input files" |
40210 | PrintHelp | |
40211 | fi | |
40212 | ||
40213 | # Now extract all .o files from .a files | |
40214 | newInputFiles="" | |
40215 | for file in ${D}inputFiles ; do | |
40216 | case ${D}file in | |
40217 | *.a | *.lib) | |
40218 | case ${D}file in | |
40219 | *.a) | |
40220 | suffix=".a" | |
40221 | AR="ar" | |
40222 | ;; | |
40223 | *.lib) | |
40224 | suffix=".lib" | |
40225 | AR="emxomfar" | |
40226 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
40227 | ;; | |
40228 | *) | |
40229 | ;; | |
40230 | esac | |
40231 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
40232 | mkdir ${D}dirname | |
1e9e8aba | 40233 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
40234 | echo "Failed to create subdirectory ./${D}dirname" |
40235 | CleanUp | |
40236 | exit 8; | |
40237 | fi | |
40238 | # Append '!' to indicate archive | |
40239 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
40240 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
40241 | cd ${D}curDir | |
40242 | found=0; | |
40243 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 40244 | if [ -f ${D}subfile ]; then |
473276a9 | 40245 | found=1 |
1e9e8aba | 40246 | if [ -s ${D}subfile ]; then |
473276a9 VS |
40247 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
40248 | newInputFiles="${D}newInputFiles ${D}subfile" | |
40249 | fi | |
40250 | fi | |
40251 | done | |
1e9e8aba DE |
40252 | if [ ${D}found -eq 0 ]; then |
40253 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
40254 | fi |
40255 | ;; | |
40256 | *) | |
40257 | newInputFiles="${D}{newInputFiles} ${D}file" | |
40258 | ;; | |
40259 | esac | |
40260 | done | |
40261 | inputFiles="${D}newInputFiles" | |
40262 | ||
40263 | # Output filename(s). | |
40264 | do_backup=0; | |
1e9e8aba | 40265 | if [ -z ${D}outFile ]; then |
473276a9 VS |
40266 | do_backup=1; |
40267 | set outFile ${D}inputFiles; outFile=${D}2 | |
40268 | fi | |
40269 | ||
40270 | # If it is an archive, remove the '!' and the '_%' suffixes | |
40271 | case ${D}outFile in | |
40272 | *_%!) | |
40273 | outFile=\`basnam ${D}outFile _%!\` | |
40274 | ;; | |
40275 | *) | |
40276 | ;; | |
40277 | esac | |
40278 | case ${D}outFile in | |
40279 | *.dll) | |
40280 | outFile=\`basnam ${D}outFile .dll\` | |
40281 | ;; | |
40282 | *.DLL) | |
40283 | outFile=\`basnam ${D}outFile .DLL\` | |
40284 | ;; | |
40285 | *.o) | |
40286 | outFile=\`basnam ${D}outFile .o\` | |
40287 | ;; | |
40288 | *.obj) | |
40289 | outFile=\`basnam ${D}outFile .obj\` | |
40290 | ;; | |
40291 | *.a) | |
40292 | outFile=\`basnam ${D}outFile .a\` | |
40293 | ;; | |
40294 | *.lib) | |
40295 | outFile=\`basnam ${D}outFile .lib\` | |
40296 | ;; | |
40297 | *) | |
40298 | ;; | |
40299 | esac | |
40300 | case ${D}outimpFile in | |
40301 | *.a) | |
40302 | outimpFile=\`basnam ${D}outimpFile .a\` | |
40303 | ;; | |
40304 | *.lib) | |
40305 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
40306 | ;; | |
40307 | *) | |
40308 | ;; | |
40309 | esac | |
1e9e8aba | 40310 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
40311 | outimpFile=${D}outFile |
40312 | fi | |
40313 | defFile="${D}{outFile}.def" | |
40314 | arcFile="${D}{outimpFile}.a" | |
40315 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
40316 | |
40317 | #create ${D}dllFile as something matching 8.3 restrictions, | |
40318 | if [ -z ${D}renameScript ] ; then | |
40319 | dllFile="${D}outFile" | |
40320 | else | |
40321 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
40322 | fi | |
473276a9 | 40323 | |
1e9e8aba DE |
40324 | if [ ${D}do_backup -ne 0 ] ; then |
40325 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
40326 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
40327 | fi | |
1e9e8aba | 40328 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
40329 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
40330 | fi | |
40331 | fi | |
40332 | ||
40333 | # Extract public symbols from all the object files. | |
40334 | tmpdefFile=${D}{defFile}_% | |
40335 | rm -f ${D}tmpdefFile | |
40336 | for file in ${D}inputFiles ; do | |
40337 | case ${D}file in | |
40338 | *!) | |
40339 | ;; | |
40340 | *) | |
40341 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
40342 | ;; | |
40343 | esac | |
40344 | done | |
40345 | ||
40346 | # Create the def file. | |
40347 | rm -f ${D}defFile | |
40348 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
40349 | dllFile="${D}{dllFile}.dll" |
40350 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 40351 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
40352 | fi |
40353 | echo "EXPORTS" >> ${D}defFile | |
40354 | ||
40355 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
40356 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
40357 | ||
40358 | # Checks if the export is ok or not. | |
40359 | for word in ${D}exclude_symbols; do | |
40360 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
40361 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
40362 | done | |
40363 | ||
40364 | ||
1e9e8aba DE |
40365 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
40366 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
40367 | sed ' |
40368 | N | |
40369 | : loop | |
1e9e8aba | 40370 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
40371 | t loop |
40372 | ' > ${D}{tmpdefFile}% | |
40373 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
40374 | else | |
40375 | rm -f ${D}{tmpdefFile}% | |
40376 | fi | |
40377 | cat ${D}tmpdefFile >> ${D}defFile | |
40378 | rm -f ${D}tmpdefFile | |
40379 | ||
40380 | # Do linking, create implib, and apply lxlite. | |
40381 | gccCmdl=""; | |
40382 | for file in ${D}inputFiles ; do | |
40383 | case ${D}file in | |
40384 | *!) | |
40385 | ;; | |
40386 | *) | |
40387 | gccCmdl="${D}gccCmdl ${D}file" | |
40388 | ;; | |
40389 | esac | |
40390 | done | |
40391 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
40392 | touch "${D}{outFile}.dll" | |
40393 | ||
40394 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 40395 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 40396 | add_flags=""; |
1e9e8aba | 40397 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
40398 | add_flags="-ynd" |
40399 | fi | |
40400 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
40401 | fi | |
40402 | doCommand "emxomf -s -l ${D}arcFile" | |
40403 | ||
40404 | # Successful exit. | |
40405 | CleanUp 1 | |
40406 | exit 0 | |
40407 | EOF | |
40408 | ||
40409 | chmod +x dllar.sh | |
a848cd7e SC |
40410 | ;; |
40411 | ||
1e9e8aba | 40412 | powerpc-apple-macos* | \ |
a848cd7e SC |
40413 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
40414 | *-*-sunos4* | \ | |
40415 | *-*-osf* | \ | |
40416 | *-*-dgux5* | \ | |
40417 | *-*-sysv5* ) | |
40418 | ;; | |
40419 | ||
40420 | *) | |
40421 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
40422 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
40423 | { (exit 1); exit 1; }; } | |
40424 | esac | |
40425 | ||
2057db16 VS |
40426 | if test "x$PIC_FLAG" != "x" ; then |
40427 | PIC_FLAG="$PIC_FLAG -DPIC" | |
40428 | fi | |
40429 | ||
a848cd7e SC |
40430 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
40431 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
40432 | fi | |
40433 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
40434 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
40435 | fi | |
40436 | ||
40437 | ||
40438 | ||
40439 | ||
40440 | ||
40441 | ||
40442 | ||
40443 | ||
40444 | USE_SOVERSION=0 | |
40445 | USE_SOVERLINUX=0 | |
40446 | USE_SOVERSOLARIS=0 | |
40447 | USE_SOSYMLINKS=0 | |
40448 | USE_MACVERSION=0 | |
40449 | SONAME_FLAG= | |
40450 | ||
40451 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 40452 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
40453 | SONAME_FLAG="-Wl,-soname," |
40454 | USE_SOVERSION=1 | |
40455 | USE_SOVERLINUX=1 | |
40456 | USE_SOSYMLINKS=1 | |
40457 | ;; | |
40458 | ||
a848cd7e SC |
40459 | *-*-solaris2* ) |
40460 | SONAME_FLAG="-h " | |
40461 | USE_SOVERSION=1 | |
40462 | USE_SOVERSOLARIS=1 | |
40463 | USE_SOSYMLINKS=1 | |
40464 | ;; | |
40465 | ||
40466 | *-*-darwin* ) | |
40467 | USE_MACVERSION=1 | |
40468 | USE_SOVERSION=1 | |
40469 | USE_SOSYMLINKS=1 | |
40470 | ;; | |
40471 | esac | |
40472 | ||
40473 | ||
40474 | ||
40475 | ||
40476 | ||
40477 | ||
40478 | ||
40479 | ||
40480 | ||
40481 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
40482 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
40483 | DEPS_TRACKING=0 | |
40484 | ||
40485 | if test "x$GCC" = "xyes"; then | |
40486 | DEPSMODE=gcc | |
40487 | DEPS_TRACKING=1 | |
40488 | case "${BAKEFILE_HOST}" in | |
40489 | powerpc-*-darwin* ) | |
40490 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
40491 | ;; | |
40492 | * ) | |
40493 | DEPSFLAG_GCC="-MMD" | |
40494 | ;; | |
40495 | esac | |
40496 | echo "$as_me:$LINENO: result: gcc" >&5 | |
40497 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 40498 | elif test "x$MWCC" = "xyes"; then |
04840eaa | 40499 | DEPSMODE=gcc |
b1d22ded | 40500 | DEPS_TRACKING=1 |
04840eaa | 40501 | DEPSFLAG_GCC="-MMD" |
b1d22ded DE |
40502 | echo "$as_me:$LINENO: result: mwcc" >&5 |
40503 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
40504 | else |
40505 | echo "$as_me:$LINENO: result: none" >&5 | |
40506 | echo "${ECHO_T}none" >&6 | |
40507 | fi | |
40508 | ||
40509 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
40510 | |
40511 | D='$' | |
40512 | cat <<EOF >bk-deps | |
a848cd7e SC |
40513 | #!/bin/sh |
40514 | ||
40515 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40516 | # script. It is used to track C/C++ files dependencies in portable way. | |
40517 | # | |
40518 | # Permission is given to use this file in any way. | |
40519 | ||
473276a9 | 40520 | DEPSMODE=${DEPSMODE} |
a848cd7e | 40521 | DEPSDIR=.deps |
473276a9 | 40522 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 40523 | |
473276a9 | 40524 | mkdir -p ${D}DEPSDIR |
a848cd7e | 40525 | |
473276a9 VS |
40526 | if test ${D}DEPSMODE = gcc ; then |
40527 | ${D}* ${D}{DEPSFLAG_GCC} | |
40528 | status=${D}? | |
40529 | if test ${D}{status} != 0 ; then | |
40530 | exit ${D}{status} | |
a848cd7e SC |
40531 | fi |
40532 | # move created file to the location we want it in: | |
473276a9 VS |
40533 | while test ${D}# -gt 0; do |
40534 | case "${D}1" in | |
a848cd7e SC |
40535 | -o ) |
40536 | shift | |
473276a9 | 40537 | objfile=${D}1 |
a848cd7e SC |
40538 | ;; |
40539 | -* ) | |
40540 | ;; | |
40541 | * ) | |
473276a9 | 40542 | srcfile=${D}1 |
a848cd7e SC |
40543 | ;; |
40544 | esac | |
40545 | shift | |
40546 | done | |
1e9e8aba DE |
40547 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
40548 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
40549 | if test -f ${D}depfile ; then |
40550 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
40551 | rm -f ${D}depfile | |
a848cd7e | 40552 | else |
1e9e8aba | 40553 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
40554 | if test -f ${D}depfile ; then |
40555 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
40556 | rm -f ${D}depfile | |
a848cd7e SC |
40557 | fi |
40558 | fi | |
40559 | exit 0 | |
40560 | else | |
473276a9 VS |
40561 | ${D}* |
40562 | exit ${D}? | |
a848cd7e SC |
40563 | fi |
40564 | EOF | |
473276a9 | 40565 | |
a848cd7e SC |
40566 | chmod +x bk-deps |
40567 | fi | |
40568 | ||
40569 | ||
40570 | ||
40571 | ||
40572 | RESCOMP= | |
40573 | SETFILE= | |
40574 | ||
40575 | case ${BAKEFILE_HOST} in | |
40576 | *-*-cygwin* | *-*-mingw32* ) | |
40577 | if test "$build" != "$host" ; then | |
40578 | RESCOMP=$host_alias-windres | |
40579 | else | |
40580 | # Extract the first word of "windres", so it can be a program name with args. | |
40581 | set dummy windres; ac_word=$2 | |
40582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40584 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
40585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40586 | else | |
40587 | if test -n "$RESCOMP"; then | |
40588 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
40589 | else | |
40590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40591 | for as_dir in $PATH | |
40592 | do | |
40593 | IFS=$as_save_IFS | |
40594 | test -z "$as_dir" && as_dir=. | |
40595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40597 | ac_cv_prog_RESCOMP="windres" | |
40598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40599 | break 2 | |
40600 | fi | |
40601 | done | |
40602 | done | |
40603 | ||
40604 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
40605 | fi | |
40606 | fi | |
40607 | RESCOMP=$ac_cv_prog_RESCOMP | |
40608 | if test -n "$RESCOMP"; then | |
40609 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
40610 | echo "${ECHO_T}$RESCOMP" >&6 | |
40611 | else | |
40612 | echo "$as_me:$LINENO: result: no" >&5 | |
40613 | echo "${ECHO_T}no" >&6 | |
40614 | fi | |
40615 | ||
40616 | fi | |
40617 | ;; | |
40618 | ||
1e9e8aba | 40619 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
40620 | # Extract the first word of "Rez", so it can be a program name with args. |
40621 | set dummy Rez; ac_word=$2 | |
40622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40624 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
40625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40626 | else | |
40627 | if test -n "$RESCOMP"; then | |
40628 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
40629 | else | |
40630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40631 | for as_dir in $PATH | |
40632 | do | |
40633 | IFS=$as_save_IFS | |
40634 | test -z "$as_dir" && as_dir=. | |
40635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40636 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40637 | ac_cv_prog_RESCOMP="Rez" | |
40638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40639 | break 2 | |
40640 | fi | |
40641 | done | |
40642 | done | |
40643 | ||
40644 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
40645 | fi | |
40646 | fi | |
40647 | RESCOMP=$ac_cv_prog_RESCOMP | |
40648 | if test -n "$RESCOMP"; then | |
40649 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
40650 | echo "${ECHO_T}$RESCOMP" >&6 | |
40651 | else | |
40652 | echo "$as_me:$LINENO: result: no" >&5 | |
40653 | echo "${ECHO_T}no" >&6 | |
40654 | fi | |
40655 | ||
40656 | # Extract the first word of "SetFile", so it can be a program name with args. | |
40657 | set dummy SetFile; ac_word=$2 | |
40658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40660 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
40661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40662 | else | |
40663 | if test -n "$SETFILE"; then | |
40664 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
40665 | else | |
40666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40667 | for as_dir in $PATH | |
40668 | do | |
40669 | IFS=$as_save_IFS | |
40670 | test -z "$as_dir" && as_dir=. | |
40671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40672 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40673 | ac_cv_prog_SETFILE="SetFile" | |
40674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40675 | break 2 | |
40676 | fi | |
40677 | done | |
40678 | done | |
40679 | ||
40680 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
40681 | fi | |
40682 | fi | |
40683 | SETFILE=$ac_cv_prog_SETFILE | |
40684 | if test -n "$SETFILE"; then | |
40685 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
40686 | echo "${ECHO_T}$SETFILE" >&6 | |
40687 | else | |
40688 | echo "$as_me:$LINENO: result: no" >&5 | |
40689 | echo "${ECHO_T}no" >&6 | |
40690 | fi | |
40691 | ||
40692 | ;; | |
40693 | esac | |
40694 | ||
40695 | ||
40696 | ||
40697 | ||
40698 | ||
04840eaa | 40699 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.5" |
a848cd7e | 40700 | |
dcc1b6ad | 40701 | |
04840eaa | 40702 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.5" |
a848cd7e | 40703 | |
646b6ec1 | 40704 | |
74b84332 | 40705 | |
a848cd7e SC |
40706 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
40707 | if test "${enable_precomp_headers+set}" = set; then | |
40708 | enableval="$enable_precomp_headers" | |
40709 | bk_use_pch="$enableval" | |
40710 | fi; | |
40711 | ||
40712 | GCC_PCH=0 | |
40713 | ||
40714 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
40715 | if test "x$GCC" = "xyes"; then | |
40716 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
40717 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
40718 | cat >conftest.$ac_ext <<_ACEOF | |
40719 | /* confdefs.h. */ | |
40720 | _ACEOF | |
40721 | cat confdefs.h >>conftest.$ac_ext | |
40722 | cat >>conftest.$ac_ext <<_ACEOF | |
40723 | /* end confdefs.h. */ | |
40724 | ||
40725 | int | |
40726 | main () | |
40727 | { | |
40728 | ||
40729 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
40730 | #error "no pch support" | |
40731 | #endif | |
40732 | #if (__GNUC__ < 3) | |
40733 | #error "no pch support" | |
40734 | #endif | |
40735 | #if (__GNUC__ == 3) && \ | |
40736 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
40737 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
40738 | #error "no pch support" | |
40739 | #endif | |
40740 | ||
40741 | ; | |
40742 | return 0; | |
40743 | } | |
40744 | _ACEOF | |
40745 | rm -f conftest.$ac_objext | |
40746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40747 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40748 | ac_status=$? |
ac1cb8d3 VS |
40749 | grep -v '^ *+' conftest.er1 >conftest.err |
40750 | rm -f conftest.er1 | |
40751 | cat conftest.err >&5 | |
a848cd7e SC |
40752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40753 | (exit $ac_status); } && | |
04840eaa VS |
40754 | { ac_try='test -z "$ac_c_werror_flag" |
40755 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40757 | (eval $ac_try) 2>&5 | |
40758 | ac_status=$? | |
40759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40760 | (exit $ac_status); }; } && | |
40761 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40763 | (eval $ac_try) 2>&5 | |
40764 | ac_status=$? | |
40765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40766 | (exit $ac_status); }; }; then | |
40767 | ||
40768 | echo "$as_me:$LINENO: result: yes" >&5 | |
40769 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
40770 | GCC_PCH=1 |
40771 | ||
40772 | else | |
40773 | echo "$as_me: failed program was:" >&5 | |
40774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40775 | ||
40776 | ||
40777 | echo "$as_me:$LINENO: result: no" >&5 | |
40778 | echo "${ECHO_T}no" >&6 | |
40779 | ||
40780 | fi | |
ac1cb8d3 | 40781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 40782 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
40783 | |
40784 | D='$' | |
40785 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
40786 | #!/bin/sh |
40787 | ||
40788 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40789 | # script. It is used to generated precompiled headers. | |
40790 | # | |
40791 | # Permission is given to use this file in any way. | |
40792 | ||
1e9e8aba DE |
40793 | outfile="${D}{1}" |
40794 | header="${D}{2}" | |
a848cd7e SC |
40795 | shift |
40796 | shift | |
40797 | ||
40798 | compiler= | |
40799 | headerfile= | |
1e9e8aba DE |
40800 | while test ${D}{#} -gt 0; do |
40801 | case "${D}{1}" in | |
a848cd7e | 40802 | -I* ) |
1e9e8aba DE |
40803 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
40804 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
40805 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
40806 | fi |
40807 | ;; | |
40808 | esac | |
1e9e8aba | 40809 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
40810 | shift |
40811 | done | |
40812 | ||
1e9e8aba DE |
40813 | if test "x${D}{headerfile}" = "x" ; then |
40814 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 40815 | else |
1e9e8aba DE |
40816 | if test -f ${D}{outfile} ; then |
40817 | rm -f ${D}{outfile} | |
a848cd7e | 40818 | else |
1e9e8aba | 40819 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 40820 | fi |
1e9e8aba | 40821 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
40822 | mkdir -p .deps |
40823 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
40824 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
40825 | exit ${D}{?} | |
a848cd7e SC |
40826 | fi |
40827 | EOF | |
1e9e8aba | 40828 | |
a848cd7e SC |
40829 | chmod +x bk-make-pch |
40830 | fi | |
40831 | fi | |
40832 | fi | |
40833 | ||
40834 | ||
40835 | ||
a848cd7e SC |
40836 | COND_BUILD_DEBUG="#" |
40837 | if test "x$BUILD" = "xdebug" ; then | |
40838 | COND_BUILD_DEBUG="" | |
40839 | fi | |
40840 | ||
40841 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40842 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40843 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40844 | fi | |
40845 | ||
40846 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40847 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40848 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40849 | fi | |
40850 | ||
40851 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40852 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40853 | COND_BUILD_DEBUG_UNICODE_0="" | |
40854 | fi | |
40855 | ||
40856 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40857 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40858 | COND_BUILD_DEBUG_UNICODE_1="" | |
40859 | fi | |
40860 | ||
40861 | COND_BUILD_RELEASE="#" | |
40862 | if test "x$BUILD" = "xrelease" ; then | |
40863 | COND_BUILD_RELEASE="" | |
40864 | fi | |
40865 | ||
40866 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40867 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40868 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40869 | fi | |
40870 | ||
40871 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40872 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40873 | COND_BUILD_RELEASE_UNICODE_0="" | |
40874 | fi | |
40875 | ||
40876 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40877 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40878 | COND_BUILD_RELEASE_UNICODE_1="" | |
40879 | fi | |
40880 | ||
40881 | COND_DEBUG_FLAG_1="#" | |
40882 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40883 | COND_DEBUG_FLAG_1="" | |
40884 | fi | |
40885 | ||
40886 | COND_DEBUG_INFO_0="#" | |
40887 | if test "x$DEBUG_INFO" = "x0" ; then | |
40888 | COND_DEBUG_INFO_0="" | |
40889 | fi | |
40890 | ||
40891 | COND_DEBUG_INFO_1="#" | |
40892 | if test "x$DEBUG_INFO" = "x1" ; then | |
40893 | COND_DEBUG_INFO_1="" | |
40894 | fi | |
40895 | ||
40896 | COND_DEPS_TRACKING_0="#" | |
40897 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40898 | COND_DEPS_TRACKING_0="" | |
40899 | fi | |
40900 | ||
40901 | COND_DEPS_TRACKING_1="#" | |
40902 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40903 | COND_DEPS_TRACKING_1="" | |
40904 | fi | |
40905 | ||
40906 | COND_GCC_PCH_1="#" | |
40907 | if test "x$GCC_PCH" = "x1" ; then | |
40908 | COND_GCC_PCH_1="" | |
40909 | fi | |
40910 | ||
40911 | COND_MONOLITHIC_0="#" | |
40912 | if test "x$MONOLITHIC" = "x0" ; then | |
40913 | COND_MONOLITHIC_0="" | |
40914 | fi | |
40915 | ||
40916 | COND_MONOLITHIC_0_SHARED_0="#" | |
40917 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40918 | COND_MONOLITHIC_0_SHARED_0="" | |
40919 | fi | |
40920 | ||
40921 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40922 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40923 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40924 | fi | |
40925 | ||
90970d69 DE |
40926 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
40927 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40928 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
40929 | fi | |
40930 | ||
a848cd7e SC |
40931 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
40932 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40933 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40934 | fi | |
40935 | ||
a848cd7e SC |
40936 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
40937 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40938 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40939 | fi | |
40940 | ||
ceec2216 RL |
40941 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40942 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40943 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40944 | fi | |
40945 | ||
a848cd7e SC |
40946 | COND_MONOLITHIC_0_SHARED_1="#" |
40947 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40948 | COND_MONOLITHIC_0_SHARED_1="" | |
40949 | fi | |
40950 | ||
40951 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40952 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40953 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40954 | fi | |
40955 | ||
90970d69 DE |
40956 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
40957 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40958 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
40959 | fi | |
40960 | ||
a848cd7e SC |
40961 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
40962 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40963 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40964 | fi | |
40965 | ||
a848cd7e SC |
40966 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
40967 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40968 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40969 | fi | |
40970 | ||
ceec2216 RL |
40971 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40972 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40973 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40974 | fi | |
40975 | ||
a848cd7e SC |
40976 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40977 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40978 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40979 | fi | |
40980 | ||
40981 | COND_MONOLITHIC_1="#" | |
40982 | if test "x$MONOLITHIC" = "x1" ; then | |
40983 | COND_MONOLITHIC_1="" | |
40984 | fi | |
40985 | ||
40986 | COND_MONOLITHIC_1_SHARED_0="#" | |
40987 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40988 | COND_MONOLITHIC_1_SHARED_0="" | |
40989 | fi | |
40990 | ||
40991 | COND_MONOLITHIC_1_SHARED_1="#" | |
40992 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40993 | COND_MONOLITHIC_1_SHARED_1="" | |
40994 | fi | |
40995 | ||
40996 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40997 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40998 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40999 | fi | |
41000 | ||
41001 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
41002 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41003 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
41004 | fi | |
41005 | ||
41006 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
41007 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
41008 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
41009 | fi | |
41010 | ||
41011 | COND_PLATFORM_MACOSX_1="#" | |
41012 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
41013 | COND_PLATFORM_MACOSX_1="" | |
41014 | fi | |
41015 | ||
a30f955f VS |
41016 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
41017 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
41018 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
41019 | fi | |
41020 | ||
a848cd7e SC |
41021 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
41022 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
41023 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
41024 | fi | |
41025 | ||
41026 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
41027 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
41028 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
41029 | fi | |
41030 | ||
41031 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
41032 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
41033 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
41034 | fi | |
41035 | ||
fc480dc1 DE |
41036 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
41037 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41038 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
41039 | fi | |
41040 | ||
1e9e8aba DE |
41041 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
41042 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41043 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41044 | fi | |
41045 | ||
ebee3cd0 VS |
41046 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
41047 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
41048 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
41049 | fi | |
41050 | ||
41051 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
41052 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
41053 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
41054 | fi | |
41055 | ||
a848cd7e SC |
41056 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
41057 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41058 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
41059 | fi | |
41060 | ||
41061 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
41062 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
41063 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
41064 | fi | |
41065 | ||
b48a2016 DE |
41066 | COND_PLATFORM_MACOS_1="#" |
41067 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
41068 | COND_PLATFORM_MACOS_1="" | |
41069 | fi | |
41070 | ||
a848cd7e SC |
41071 | COND_PLATFORM_MAC_1="#" |
41072 | if test "x$PLATFORM_MAC" = "x1" ; then | |
41073 | COND_PLATFORM_MAC_1="" | |
41074 | fi | |
41075 | ||
41076 | COND_PLATFORM_OS2_1="#" | |
41077 | if test "x$PLATFORM_OS2" = "x1" ; then | |
41078 | COND_PLATFORM_OS2_1="" | |
41079 | fi | |
41080 | ||
41081 | COND_PLATFORM_UNIX_0="#" | |
41082 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
41083 | COND_PLATFORM_UNIX_0="" | |
41084 | fi | |
41085 | ||
41086 | COND_PLATFORM_UNIX_1="#" | |
41087 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
41088 | COND_PLATFORM_UNIX_1="" | |
41089 | fi | |
41090 | ||
41091 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
41092 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41093 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
41094 | fi | |
41095 | ||
41096 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
41097 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
41098 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
41099 | fi | |
41100 | ||
41101 | COND_PLATFORM_WIN32_0="#" | |
41102 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
41103 | COND_PLATFORM_WIN32_0="" | |
41104 | fi | |
41105 | ||
41106 | COND_PLATFORM_WIN32_1="#" | |
41107 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
41108 | COND_PLATFORM_WIN32_1="" | |
41109 | fi | |
41110 | ||
41111 | COND_SHARED_0="#" | |
41112 | if test "x$SHARED" = "x0" ; then | |
41113 | COND_SHARED_0="" | |
41114 | fi | |
41115 | ||
ceec2216 RL |
41116 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
41117 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
41118 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
41119 | fi | |
41120 | ||
41121 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
41122 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
41123 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
41124 | fi | |
41125 | ||
41126 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
41127 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
41128 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
41129 | fi | |
41130 | ||
a848cd7e SC |
41131 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
41132 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41133 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41134 | fi | |
41135 | ||
41136 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41137 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41138 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41139 | fi | |
41140 | ||
41141 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41142 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41143 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41144 | fi | |
41145 | ||
41146 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41147 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41148 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41149 | fi | |
41150 | ||
41151 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41152 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41153 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41154 | fi | |
41155 | ||
41156 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41157 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41158 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41159 | fi | |
41160 | ||
41161 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41162 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41163 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41164 | fi | |
41165 | ||
41166 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41167 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41168 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41169 | fi | |
41170 | ||
41171 | COND_SHARED_1="#" | |
41172 | if test "x$SHARED" = "x1" ; then | |
41173 | COND_SHARED_1="" | |
41174 | fi | |
41175 | ||
41176 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41177 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41178 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41179 | fi | |
41180 | ||
a30f955f VS |
41181 | COND_TOOLKIT_="#" |
41182 | if test "x$TOOLKIT" = "x" ; then | |
41183 | COND_TOOLKIT_="" | |
41184 | fi | |
41185 | ||
a848cd7e SC |
41186 | COND_TOOLKIT_COCOA="#" |
41187 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41188 | COND_TOOLKIT_COCOA="" | |
41189 | fi | |
41190 | ||
a49baeab DE |
41191 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
41192 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
41193 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
41194 | fi | |
41195 | ||
a848cd7e SC |
41196 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
41197 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41198 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41199 | fi | |
41200 | ||
41201 | COND_TOOLKIT_GTK="#" | |
41202 | if test "x$TOOLKIT" = "xGTK" ; then | |
41203 | COND_TOOLKIT_GTK="" | |
41204 | fi | |
41205 | ||
41206 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41207 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41208 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41209 | fi | |
41210 | ||
41211 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41212 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41213 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41214 | fi | |
41215 | ||
41216 | COND_TOOLKIT_MAC="#" | |
41217 | if test "x$TOOLKIT" = "xMAC" ; then | |
41218 | COND_TOOLKIT_MAC="" | |
41219 | fi | |
41220 | ||
41221 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41222 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41223 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41224 | fi | |
41225 | ||
41226 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41227 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41228 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41229 | fi | |
41230 | ||
41231 | COND_TOOLKIT_MGL="#" | |
41232 | if test "x$TOOLKIT" = "xMGL" ; then | |
41233 | COND_TOOLKIT_MGL="" | |
41234 | fi | |
41235 | ||
41236 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41237 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41238 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41239 | fi | |
41240 | ||
41241 | COND_TOOLKIT_MOTIF="#" | |
41242 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41243 | COND_TOOLKIT_MOTIF="" | |
41244 | fi | |
41245 | ||
41246 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41247 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41248 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41249 | fi | |
41250 | ||
41251 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41252 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41253 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41254 | fi | |
41255 | ||
41256 | COND_TOOLKIT_MSW="#" | |
41257 | if test "x$TOOLKIT" = "xMSW" ; then | |
41258 | COND_TOOLKIT_MSW="" | |
41259 | fi | |
41260 | ||
41261 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41262 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41263 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41264 | fi | |
41265 | ||
41266 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41267 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41268 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41269 | fi | |
41270 | ||
41271 | COND_TOOLKIT_PM="#" | |
41272 | if test "x$TOOLKIT" = "xPM" ; then | |
41273 | COND_TOOLKIT_PM="" | |
41274 | fi | |
41275 | ||
41276 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41277 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41278 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41279 | fi | |
41280 | ||
41281 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41282 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41283 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41284 | fi | |
41285 | ||
3fd9c298 DE |
41286 | COND_TOOLKIT_WINCE="#" |
41287 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41288 | COND_TOOLKIT_WINCE="" | |
41289 | fi | |
41290 | ||
41291 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41292 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41293 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41294 | fi | |
41295 | ||
41296 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41297 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41298 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41299 | fi | |
41300 | ||
a848cd7e SC |
41301 | COND_TOOLKIT_X11="#" |
41302 | if test "x$TOOLKIT" = "xX11" ; then | |
41303 | COND_TOOLKIT_X11="" | |
41304 | fi | |
41305 | ||
41306 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41307 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41308 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41309 | fi | |
41310 | ||
41311 | COND_UNICODE_1="#" | |
41312 | if test "x$UNICODE" = "x1" ; then | |
41313 | COND_UNICODE_1="" | |
41314 | fi | |
41315 | ||
41316 | COND_USE_EXCEPTIONS_0="#" | |
41317 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41318 | COND_USE_EXCEPTIONS_0="" | |
41319 | fi | |
41320 | ||
41321 | COND_USE_EXCEPTIONS_1="#" | |
41322 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41323 | COND_USE_EXCEPTIONS_1="" | |
41324 | fi | |
41325 | ||
41326 | COND_USE_GUI_0="#" | |
41327 | if test "x$USE_GUI" = "x0" ; then | |
41328 | COND_USE_GUI_0="" | |
41329 | fi | |
41330 | ||
41331 | COND_USE_GUI_1="#" | |
41332 | if test "x$USE_GUI" = "x1" ; then | |
41333 | COND_USE_GUI_1="" | |
41334 | fi | |
41335 | ||
41336 | COND_USE_GUI_1_WXUNIV_0="#" | |
41337 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41338 | COND_USE_GUI_1_WXUNIV_0="" | |
41339 | fi | |
41340 | ||
41341 | COND_USE_GUI_1_WXUNIV_1="#" | |
41342 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41343 | COND_USE_GUI_1_WXUNIV_1="" | |
41344 | fi | |
41345 | ||
41346 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41347 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41348 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41349 | fi | |
41350 | ||
41351 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41352 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41353 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41354 | fi | |
41355 | ||
41356 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41357 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41358 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41359 | fi | |
41360 | ||
ceec2216 RL |
41361 | COND_USE_ODBC_1="#" |
41362 | if test "x$USE_ODBC" = "x1" ; then | |
41363 | COND_USE_ODBC_1="" | |
41364 | fi | |
41365 | ||
ffa0583f RL |
41366 | COND_USE_OPENGL_1="#" |
41367 | if test "x$USE_OPENGL" = "x1" ; then | |
41368 | COND_USE_OPENGL_1="" | |
41369 | fi | |
41370 | ||
a848cd7e SC |
41371 | COND_USE_PLUGINS_0="#" |
41372 | if test "x$USE_PLUGINS" = "x0" ; then | |
41373 | COND_USE_PLUGINS_0="" | |
41374 | fi | |
41375 | ||
41376 | COND_USE_SOSYMLINKS_1="#" | |
41377 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41378 | COND_USE_SOSYMLINKS_1="" | |
41379 | fi | |
41380 | ||
41381 | COND_USE_SOVERLINUX_1="#" | |
41382 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41383 | COND_USE_SOVERLINUX_1="" | |
41384 | fi | |
41385 | ||
41386 | COND_USE_SOVERSION_0="#" | |
41387 | if test "x$USE_SOVERSION" = "x0" ; then | |
41388 | COND_USE_SOVERSION_0="" | |
41389 | fi | |
41390 | ||
41391 | COND_USE_SOVERSOLARIS_1="#" | |
41392 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41393 | COND_USE_SOVERSOLARIS_1="" | |
41394 | fi | |
41395 | ||
a13a7f89 RL |
41396 | COND_USE_XRC_1="#" |
41397 | if test "x$USE_XRC" = "x1" ; then | |
41398 | COND_USE_XRC_1="" | |
41399 | fi | |
41400 | ||
a848cd7e SC |
41401 | COND_WITH_PLUGIN_SDL_1="#" |
41402 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41403 | COND_WITH_PLUGIN_SDL_1="" | |
41404 | fi | |
41405 | ||
1e6eb025 VZ |
41406 | COND_WXUNIV_0="#" |
41407 | if test "x$WXUNIV" = "x0" ; then | |
41408 | COND_WXUNIV_0="" | |
41409 | fi | |
41410 | ||
a848cd7e SC |
41411 | COND_WXUNIV_1="#" |
41412 | if test "x$WXUNIV" = "x1" ; then | |
41413 | COND_WXUNIV_1="" | |
41414 | fi | |
41415 | ||
41416 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41417 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41418 | COND_WXUSE_EXPAT_BUILTIN="" | |
41419 | fi | |
41420 | ||
41421 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41422 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41423 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41424 | fi | |
41425 | ||
41426 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41427 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41428 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41429 | fi | |
41430 | ||
41431 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41432 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41433 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41434 | fi | |
41435 | ||
41436 | COND_WXUSE_ODBC_BUILTIN="#" | |
41437 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41438 | COND_WXUSE_ODBC_BUILTIN="" | |
41439 | fi | |
41440 | ||
41441 | COND_WXUSE_REGEX_BUILTIN="#" | |
41442 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41443 | COND_WXUSE_REGEX_BUILTIN="" | |
41444 | fi | |
41445 | ||
41446 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41447 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41448 | COND_WXUSE_ZLIB_BUILTIN="" | |
41449 | fi | |
41450 | ||
41451 | ||
41452 | ||
2057db16 VS |
41453 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
41454 | { { 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 | |
41455 | 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;} | |
41456 | { (exit 1); exit 1; }; } | |
41457 | fi | |
41458 | ||
a848cd7e | 41459 | |
ceec2216 RL |
41460 | if test "$wxUSE_SHARED" = "yes"; then |
41461 | ||
41462 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
41463 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
41464 | ||
5b674b9d DE |
41465 | case "${host}" in |
41466 | *-pc-os2_emx | *-pc-os2-emx ) | |
41467 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
41468 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
41469 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
41470 | cp -p ${srcdir}/src/os2/dllar.sh . | |
41471 | ;; | |
41472 | esac | |
ceec2216 RL |
41473 | else |
41474 | ||
41475 | EXE_LINKER="$CXX -o" | |
41476 | ||
41477 | fi | |
a848cd7e | 41478 | |
74b84332 | 41479 | GCC_PRAGMA_FLAGS="" |
a848cd7e SC |
41480 | case "${host}" in |
41481 | powerpc-*-darwin* ) | |
74b84332 | 41482 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 41483 | ;; |
bea8e651 | 41484 | *-*-mingw32* ) |
1f344abf VS |
41485 | if test "$wxUSE_STL" = "yes" -o \ |
41486 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41487 | "$wxUSE_NO_RTTI" != "yes"; then | |
41488 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41489 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41490 | cat >conftest.$ac_ext <<_ACEOF |
41491 | /* confdefs.h. */ | |
41492 | _ACEOF | |
41493 | cat confdefs.h >>conftest.$ac_ext | |
41494 | cat >>conftest.$ac_ext <<_ACEOF | |
41495 | /* end confdefs.h. */ | |
41496 | ||
3314e67b RR |
41497 | int |
41498 | main () | |
41499 | { | |
41500 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
41501 | #error "Not GCC 3.2 or greater" | |
41502 | #endif | |
41503 | ||
41504 | ; | |
41505 | return 0; | |
41506 | } | |
41507 | _ACEOF | |
41508 | rm -f conftest.$ac_objext | |
41509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41510 | (eval $ac_compile) 2>conftest.er1 | |
41511 | ac_status=$? | |
41512 | grep -v '^ *+' conftest.er1 >conftest.err | |
41513 | rm -f conftest.er1 | |
41514 | cat conftest.err >&5 | |
41515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41516 | (exit $ac_status); } && | |
04840eaa VS |
41517 | { ac_try='test -z "$ac_c_werror_flag" |
41518 | || test ! -s conftest.err' | |
3314e67b RR |
41519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41520 | (eval $ac_try) 2>&5 | |
41521 | ac_status=$? | |
41522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41523 | (exit $ac_status); }; } && | |
41524 | { ac_try='test -s conftest.$ac_objext' | |
41525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41526 | (eval $ac_try) 2>&5 | |
41527 | ac_status=$? | |
41528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41529 | (exit $ac_status); }; }; then | |
41530 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
41531 | echo "$as_me:$LINENO: result: yes" >&5 | |
41532 | echo "${ECHO_T}yes" >&6 | |
41533 | else | |
41534 | echo "$as_me: failed program was:" >&5 | |
41535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41536 | ||
41537 | echo "$as_me:$LINENO: result: no" >&5 | |
41538 | echo "${ECHO_T}no" >&6 | |
41539 | fi | |
41540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41541 | fi | |
41542 | ;; | |
41543 | *-pc-os2_emx | *-pc-os2-emx ) | |
41544 | if test "$wxUSE_STL" = "yes"; then | |
41545 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
41546 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
41547 | cat >conftest.$ac_ext <<_ACEOF | |
41548 | /* confdefs.h. */ | |
41549 | _ACEOF | |
41550 | cat confdefs.h >>conftest.$ac_ext | |
41551 | cat >>conftest.$ac_ext <<_ACEOF | |
41552 | /* end confdefs.h. */ | |
41553 | ||
bea8e651 MB |
41554 | int |
41555 | main () | |
41556 | { | |
1f344abf | 41557 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
41558 | #error "Not GCC 3.2 or greater" |
41559 | #endif | |
41560 | ||
41561 | ; | |
41562 | return 0; | |
41563 | } | |
41564 | _ACEOF | |
41565 | rm -f conftest.$ac_objext | |
41566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41567 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 41568 | ac_status=$? |
ac1cb8d3 VS |
41569 | grep -v '^ *+' conftest.er1 >conftest.err |
41570 | rm -f conftest.er1 | |
41571 | cat conftest.err >&5 | |
bea8e651 MB |
41572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41573 | (exit $ac_status); } && | |
04840eaa VS |
41574 | { ac_try='test -z "$ac_c_werror_flag" |
41575 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41577 | (eval $ac_try) 2>&5 | |
41578 | ac_status=$? | |
41579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41580 | (exit $ac_status); }; } && | |
41581 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
41582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41583 | (eval $ac_try) 2>&5 | |
41584 | ac_status=$? | |
41585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41586 | (exit $ac_status); }; }; then | |
74b84332 | 41587 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
41588 | echo "$as_me:$LINENO: result: yes" >&5 |
41589 | echo "${ECHO_T}yes" >&6 | |
41590 | else | |
41591 | echo "$as_me: failed program was:" >&5 | |
41592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41593 | ||
41594 | echo "$as_me:$LINENO: result: no" >&5 | |
41595 | echo "${ECHO_T}no" >&6 | |
41596 | fi | |
ac1cb8d3 | 41597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41598 | fi |
41599 | ;; | |
a848cd7e | 41600 | esac |
d2083416 DE |
41601 | |
41602 | PCH_FLAGS="" | |
41603 | if test $GCC_PCH = 1 ; then | |
41604 | if test "x$GCC_PRAGMA_FLAGS" = "x"; then | |
41605 | PCH_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" | |
41606 | else | |
41607 | PCH_FLAGS="-DWX_PRECOMP" | |
41608 | fi | |
a848cd7e | 41609 | fi |
d2083416 DE |
41610 | |
41611 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" | |
a848cd7e SC |
41612 | |
41613 | ||
41614 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41615 | ||
41616 | ||
41617 | ||
41618 | ||
41619 | ||
41620 | ||
41621 | ||
41622 | ||
41623 | ||
41624 | ||
41625 | ||
41626 | ||
41627 | ||
41628 | ||
41629 | ||
41630 | ||
41631 | ||
41632 | ||
41633 | ||
41634 | ||
41635 | ||
41636 | ||
41637 | ||
41638 | ||
41639 | ||
41640 | ||
41641 | ||
41642 | ||
41643 | ||
41644 | ||
41645 | ||
41646 | ||
41647 | ||
41648 | ||
41649 | ||
41650 | ||
41651 | ||
41652 | ||
41653 | ||
41654 | ||
41655 | ||
41656 | ||
a848cd7e SC |
41657 | |
41658 | ||
41659 | ||
41660 | ||
41661 | ||
41662 | ||
41663 | ||
41664 | ||
41665 | ||
41666 | ||
41667 | ||
41668 | ||
41669 | ||
41670 | ||
41671 | ||
41672 | ||
41673 | ||
41674 | ||
74b84332 | 41675 | |
a848cd7e SC |
41676 | |
41677 | ||
41678 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41679 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41680 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41681 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41683 | else | |
41684 | cat >conftest.make <<\_ACEOF | |
41685 | all: | |
41686 | @echo 'ac_maketemp="$(MAKE)"' | |
41687 | _ACEOF | |
41688 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41689 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41690 | if test -n "$ac_maketemp"; then | |
41691 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41692 | else | |
41693 | eval ac_cv_prog_make_${ac_make}_set=no | |
41694 | fi | |
41695 | rm -f conftest.make | |
41696 | fi | |
41697 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41698 | echo "$as_me:$LINENO: result: yes" >&5 | |
41699 | echo "${ECHO_T}yes" >&6 | |
41700 | SET_MAKE= | |
41701 | else | |
41702 | echo "$as_me:$LINENO: result: no" >&5 | |
41703 | echo "${ECHO_T}no" >&6 | |
41704 | SET_MAKE="MAKE=${MAKE-make}" | |
41705 | fi | |
41706 | ||
41707 | ||
a848cd7e | 41708 | |
ceec2216 RL |
41709 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41710 | ||
a848cd7e | 41711 | |
ceec2216 | 41712 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41713 | |
a848cd7e | 41714 | |
ceec2216 | 41715 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41716 | |
ceec2216 RL |
41717 | |
41718 | ac_config_files="$ac_config_files version-script Makefile" | |
41719 | ||
41720 | ||
41721 | ac_config_commands="$ac_config_commands wx-config | |
41722 | " | |
a848cd7e SC |
41723 | |
41724 | ||
9103d280 RL |
41725 | |
41726 | ||
a848cd7e SC |
41727 | if test "$wxUSE_GUI" = "yes"; then |
41728 | SUBDIRS="samples demos utils contrib" | |
41729 | else SUBDIRS="samples utils" | |
41730 | fi | |
41731 | ||
41732 | ||
41733 | ||
41734 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41735 | if test "${with_cppunit_prefix+set}" = set; then | |
41736 | withval="$with_cppunit_prefix" | |
41737 | cppunit_config_prefix="$withval" | |
41738 | else | |
41739 | cppunit_config_prefix="" | |
41740 | fi; | |
41741 | ||
41742 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41743 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41744 | withval="$with_cppunit_exec_prefix" | |
41745 | cppunit_config_exec_prefix="$withval" | |
41746 | else | |
41747 | cppunit_config_exec_prefix="" | |
41748 | fi; | |
41749 | ||
41750 | if test x$cppunit_config_exec_prefix != x ; then | |
41751 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41752 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41753 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41754 | fi | |
41755 | fi | |
41756 | if test x$cppunit_config_prefix != x ; then | |
41757 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41758 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41759 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41760 | fi | |
41761 | fi | |
41762 | ||
41763 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41764 | set dummy cppunit-config; ac_word=$2 | |
41765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41767 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41769 | else | |
41770 | case $CPPUNIT_CONFIG in | |
41771 | [\\/]* | ?:[\\/]*) | |
41772 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41773 | ;; | |
41774 | *) | |
41775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41776 | for as_dir in $PATH | |
41777 | do | |
41778 | IFS=$as_save_IFS | |
41779 | test -z "$as_dir" && as_dir=. | |
41780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41782 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41784 | break 2 | |
41785 | fi | |
41786 | done | |
41787 | done | |
41788 | ||
41789 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41790 | ;; | |
41791 | esac | |
41792 | fi | |
41793 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41794 | ||
41795 | if test -n "$CPPUNIT_CONFIG"; then | |
41796 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41797 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41798 | else | |
41799 | echo "$as_me:$LINENO: result: no" >&5 | |
41800 | echo "${ECHO_T}no" >&6 | |
41801 | fi | |
41802 | ||
41803 | cppunit_version_min=1.8.0 | |
41804 | ||
41805 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41806 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41807 | no_cppunit="" | |
41808 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41809 | no_cppunit=yes | |
41810 | else | |
41811 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41812 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41813 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41814 | ||
41815 | cppunit_major_version=`echo $cppunit_version | \ | |
41816 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41817 | cppunit_minor_version=`echo $cppunit_version | \ | |
41818 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41819 | cppunit_micro_version=`echo $cppunit_version | \ | |
41820 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41821 | ||
41822 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41823 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41824 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41825 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41826 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41827 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41828 | ||
41829 | cppunit_version_proper=`expr \ | |
41830 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41831 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41832 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41833 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41834 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41835 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41836 | ||
41837 | if test "$cppunit_version_proper" = "1" ; then | |
41838 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41839 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41840 | else | |
41841 | echo "$as_me:$LINENO: result: no" >&5 | |
41842 | echo "${ECHO_T}no" >&6 | |
41843 | no_cppunit=yes | |
41844 | fi | |
41845 | fi | |
41846 | ||
41847 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41848 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41849 | else |
41850 | CPPUNIT_CFLAGS="" | |
41851 | CPPUNIT_LIBS="" | |
c2218763 | 41852 | : |
a848cd7e SC |
41853 | fi |
41854 | ||
41855 | ||
41856 | ||
41857 | ||
41858 | ||
41859 | for subdir in `echo $SUBDIRS`; do | |
41860 | if test -d ${srcdir}/${subdir} ; then | |
41861 | if test "$wxUSE_GUI" = "yes"; then | |
41862 | if test ${subdir} = "samples"; then | |
41863 | makefiles="samples/Makefile.in $makefiles" | |
41864 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41865 | if test -d $srcdir/samples/$sample; then | |
41866 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41867 | fi | |
41868 | done | |
41869 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41870 | fi | |
41871 | else if test ${subdir} = "samples"; then | |
41872 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41873 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
41874 | makefiles="" |
41875 | for util in HelpGen tex2rtf ; do | |
41876 | if test -d $srcdir/utils/$util ; then | |
41877 | makefiles="utils/$util/Makefile.in \ | |
41878 | utils/$util/src/Makefile.in \ | |
41879 | $makefiles" | |
41880 | fi | |
41881 | done | |
a848cd7e SC |
41882 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
41883 | fi | |
41884 | fi | |
41885 | ||
41886 | for mkin in $makefiles ; do | |
41887 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41888 | ac_config_files="$ac_config_files $mk" | |
41889 | ||
41890 | done | |
41891 | fi | |
41892 | done | |
41893 | ||
41894 | ||
41895 | cat >confcache <<\_ACEOF | |
41896 | # This file is a shell script that caches the results of configure | |
41897 | # tests run on this system so they can be shared between configure | |
41898 | # scripts and configure runs, see configure's option --config-cache. | |
41899 | # It is not useful on other systems. If it contains results you don't | |
41900 | # want to keep, you may remove or edit it. | |
41901 | # | |
41902 | # config.status only pays attention to the cache file if you give it | |
41903 | # the --recheck option to rerun configure. | |
41904 | # | |
41905 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41906 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41907 | # following values. | |
41908 | ||
41909 | _ACEOF | |
41910 | ||
41911 | # The following way of writing the cache mishandles newlines in values, | |
41912 | # but we know of no workaround that is simple, portable, and efficient. | |
41913 | # So, don't put newlines in cache variables' values. | |
41914 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41915 | # and sets the high bit in the cache file unless we assign to the vars. | |
41916 | { | |
41917 | (set) 2>&1 | | |
41918 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41919 | *ac_space=\ *) | |
41920 | # `set' does not quote correctly, so add quotes (double-quote | |
41921 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41922 | sed -n \ | |
ac1cb8d3 VS |
41923 | "s/'/'\\\\''/g; |
41924 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41925 | ;; |
41926 | *) | |
41927 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41928 | sed -n \ | |
ac1cb8d3 | 41929 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41930 | ;; |
41931 | esac; | |
41932 | } | | |
41933 | sed ' | |
41934 | t clear | |
41935 | : clear | |
41936 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41937 | t end | |
41938 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41939 | : end' >>confcache | |
41940 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41941 | if test -w $cache_file; then | |
41942 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41943 | cat confcache >$cache_file | |
41944 | else | |
41945 | echo "not updating unwritable cache $cache_file" | |
41946 | fi | |
41947 | fi | |
41948 | rm -f confcache | |
41949 | ||
41950 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41951 | # Let make expand exec_prefix. | |
41952 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41953 | ||
41954 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41955 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41956 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41957 | # (actually we leave an empty line to preserve line numbers). | |
41958 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41959 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41960 | s/:*\$(srcdir):*/:/; |
41961 | s/:*\${srcdir}:*/:/; | |
41962 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41963 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41964 | s/:*$//; |
ac1cb8d3 | 41965 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41966 | }' |
41967 | fi | |
41968 | ||
41969 | DEFS=-DHAVE_CONFIG_H | |
41970 | ||
41971 | ac_libobjs= | |
41972 | ac_ltlibobjs= | |
41973 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41974 | # 1. Remove the extension, and $U if already installed. | |
41975 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41976 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41977 | # 2. Add them. |
41978 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41979 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41980 | done | |
41981 | LIBOBJS=$ac_libobjs | |
41982 | ||
41983 | LTLIBOBJS=$ac_ltlibobjs | |
41984 | ||
41985 | ||
41986 | ||
41987 | : ${CONFIG_STATUS=./config.status} | |
41988 | ac_clean_files_save=$ac_clean_files | |
41989 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41990 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41991 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41992 | cat >$CONFIG_STATUS <<_ACEOF | |
41993 | #! $SHELL | |
41994 | # Generated by $as_me. | |
41995 | # Run this file to recreate the current configuration. | |
41996 | # Compiler output produced by configure, useful for debugging | |
41997 | # configure, is in config.log if it exists. | |
41998 | ||
41999 | debug=false | |
42000 | ac_cs_recheck=false | |
42001 | ac_cs_silent=false | |
42002 | SHELL=\${CONFIG_SHELL-$SHELL} | |
42003 | _ACEOF | |
42004 | ||
42005 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42006 | ## --------------------- ## | |
42007 | ## M4sh Initialization. ## | |
42008 | ## --------------------- ## | |
42009 | ||
42010 | # Be Bourne compatible | |
42011 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
42012 | emulate sh | |
42013 | NULLCMD=: | |
42014 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
42015 | # is contrary to our usage. Disable this feature. | |
42016 | alias -g '${1+"$@"}'='"$@"' | |
42017 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
42018 | set -o posix | |
42019 | fi | |
ac1cb8d3 | 42020 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
42021 | |
42022 | # Support unset when possible. | |
ac1cb8d3 | 42023 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
42024 | as_unset=unset |
42025 | else | |
42026 | as_unset=false | |
42027 | fi | |
42028 | ||
42029 | ||
42030 | # Work around bugs in pre-3.0 UWIN ksh. | |
42031 | $as_unset ENV MAIL MAILPATH | |
42032 | PS1='$ ' | |
42033 | PS2='> ' | |
42034 | PS4='+ ' | |
42035 | ||
42036 | # NLS nuisances. | |
42037 | for as_var in \ | |
42038 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
42039 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42040 | LC_TELEPHONE LC_TIME | |
42041 | do | |
ac1cb8d3 | 42042 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
42043 | eval $as_var=C; export $as_var |
42044 | else | |
42045 | $as_unset $as_var | |
42046 | fi | |
42047 | done | |
42048 | ||
42049 | # Required to use basename. | |
42050 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42051 | as_expr=expr | |
42052 | else | |
42053 | as_expr=false | |
42054 | fi | |
42055 | ||
42056 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
42057 | as_basename=basename | |
42058 | else | |
42059 | as_basename=false | |
42060 | fi | |
42061 | ||
42062 | ||
42063 | # Name of the executable. | |
42064 | as_me=`$as_basename "$0" || | |
42065 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
42066 | X"$0" : 'X\(//\)$' \| \ | |
42067 | X"$0" : 'X\(/\)$' \| \ | |
42068 | . : '\(.\)' 2>/dev/null || | |
42069 | echo X/"$0" | | |
42070 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
42071 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
42072 | /^X\/\(\/\).*/{ s//\1/; q; } | |
42073 | s/.*/./; q'` | |
42074 | ||
42075 | ||
42076 | # PATH needs CR, and LINENO needs CR and PATH. | |
42077 | # Avoid depending upon Character Ranges. | |
42078 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
42079 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
42080 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
42081 | as_cr_digits='0123456789' | |
42082 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42083 | ||
42084 | # The user is always right. | |
42085 | if test "${PATH_SEPARATOR+set}" != set; then | |
42086 | echo "#! /bin/sh" >conf$$.sh | |
42087 | echo "exit 0" >>conf$$.sh | |
42088 | chmod +x conf$$.sh | |
42089 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42090 | PATH_SEPARATOR=';' | |
42091 | else | |
42092 | PATH_SEPARATOR=: | |
42093 | fi | |
42094 | rm -f conf$$.sh | |
42095 | fi | |
42096 | ||
42097 | ||
42098 | as_lineno_1=$LINENO | |
42099 | as_lineno_2=$LINENO | |
42100 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42101 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42102 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
42103 | # Find who we are. Look in the path if we contain no path at all | |
42104 | # relative or not. | |
42105 | case $0 in | |
42106 | *[\\/]* ) as_myself=$0 ;; | |
42107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42108 | for as_dir in $PATH | |
42109 | do | |
42110 | IFS=$as_save_IFS | |
42111 | test -z "$as_dir" && as_dir=. | |
42112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
42113 | done | |
42114 | ||
42115 | ;; | |
42116 | esac | |
42117 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
42118 | # in which case we are not to be found in the path. | |
42119 | if test "x$as_myself" = x; then | |
42120 | as_myself=$0 | |
42121 | fi | |
42122 | if test ! -f "$as_myself"; then | |
42123 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
42124 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
42125 | { (exit 1); exit 1; }; } | |
42126 | fi | |
42127 | case $CONFIG_SHELL in | |
42128 | '') | |
42129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42130 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42131 | do | |
42132 | IFS=$as_save_IFS | |
42133 | test -z "$as_dir" && as_dir=. | |
42134 | for as_base in sh bash ksh sh5; do | |
42135 | case $as_dir in | |
42136 | /*) | |
42137 | if ("$as_dir/$as_base" -c ' | |
42138 | as_lineno_1=$LINENO | |
42139 | as_lineno_2=$LINENO | |
42140 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42141 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42142 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
42143 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
42144 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
42145 | CONFIG_SHELL=$as_dir/$as_base | |
42146 | export CONFIG_SHELL | |
42147 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
42148 | fi;; | |
42149 | esac | |
42150 | done | |
42151 | done | |
42152 | ;; | |
42153 | esac | |
42154 | ||
42155 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
42156 | # uniformly replaced by the line number. The first 'sed' inserts a | |
42157 | # line-number line before each line; the second 'sed' does the real | |
42158 | # work. The second script uses 'N' to pair each line-number line | |
42159 | # with the numbered line, and appends trailing '-' during | |
42160 | # substitution so that $LINENO is not a special case at line end. | |
42161 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
42162 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
42163 | sed '=' <$as_myself | | |
42164 | sed ' | |
42165 | N | |
42166 | s,$,-, | |
42167 | : loop | |
42168 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
42169 | t loop | |
42170 | s,-$,, | |
42171 | s,^['$as_cr_digits']*\n,, | |
42172 | ' >$as_me.lineno && | |
42173 | chmod +x $as_me.lineno || | |
42174 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
42175 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
42176 | { (exit 1); exit 1; }; } | |
42177 | ||
42178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
42179 | # (the dirname of $[0] is not the place where we might find the | |
42180 | # original and so on. Autoconf is especially sensible to this). | |
42181 | . ./$as_me.lineno | |
42182 | # Exit status is that of the last command. | |
42183 | exit | |
42184 | } | |
42185 | ||
42186 | ||
42187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
42188 | *c*,-n*) ECHO_N= ECHO_C=' | |
42189 | ' ECHO_T=' ' ;; | |
42190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
42191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
42192 | esac | |
42193 | ||
42194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42195 | as_expr=expr | |
42196 | else | |
42197 | as_expr=false | |
42198 | fi | |
42199 | ||
42200 | rm -f conf$$ conf$$.exe conf$$.file | |
42201 | echo >conf$$.file | |
42202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
42204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
42205 | if test -f conf$$.exe; then | |
42206 | # Don't use ln at all; we don't have any links | |
42207 | as_ln_s='cp -p' | |
42208 | else | |
42209 | as_ln_s='ln -s' | |
42210 | fi | |
42211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
42212 | as_ln_s=ln | |
42213 | else | |
42214 | as_ln_s='cp -p' | |
42215 | fi | |
42216 | rm -f conf$$ conf$$.exe conf$$.file | |
42217 | ||
42218 | if mkdir -p . 2>/dev/null; then | |
42219 | as_mkdir_p=: | |
42220 | else | |
ac1cb8d3 | 42221 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42222 | as_mkdir_p=false |
42223 | fi | |
42224 | ||
42225 | as_executable_p="test -f" | |
42226 | ||
42227 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42229 | |
42230 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42232 | |
42233 | ||
42234 | # IFS | |
42235 | # We need space, tab and new line, in precisely that order. | |
42236 | as_nl=' | |
42237 | ' | |
42238 | IFS=" $as_nl" | |
42239 | ||
42240 | # CDPATH. | |
42241 | $as_unset CDPATH | |
42242 | ||
42243 | exec 6>&1 | |
42244 | ||
42245 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
42246 | # report actual input values of CONFIG_FILES etc. instead of their | |
42247 | # values after options handling. Logging --version etc. is OK. | |
42248 | exec 5>>config.log | |
42249 | { | |
42250 | echo | |
42251 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42252 | ## Running $as_me. ## | |
42253 | _ASBOX | |
42254 | } >&5 | |
42255 | cat >&5 <<_CSEOF | |
42256 | ||
7714864e | 42257 | This file was extended by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 42258 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
42259 | |
42260 | CONFIG_FILES = $CONFIG_FILES | |
42261 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42262 | CONFIG_LINKS = $CONFIG_LINKS | |
42263 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42264 | $ $0 $@ | |
42265 | ||
42266 | _CSEOF | |
42267 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
42268 | echo >&5 | |
42269 | _ACEOF | |
42270 | ||
42271 | # Files that config.status was made for. | |
42272 | if test -n "$ac_config_files"; then | |
42273 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
42274 | fi | |
42275 | ||
42276 | if test -n "$ac_config_headers"; then | |
42277 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
42278 | fi | |
42279 | ||
42280 | if test -n "$ac_config_links"; then | |
42281 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
42282 | fi | |
42283 | ||
42284 | if test -n "$ac_config_commands"; then | |
42285 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
42286 | fi | |
42287 | ||
42288 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42289 | ||
42290 | ac_cs_usage="\ | |
42291 | \`$as_me' instantiates files from templates according to the | |
42292 | current configuration. | |
42293 | ||
42294 | Usage: $0 [OPTIONS] [FILE]... | |
42295 | ||
42296 | -h, --help print this help, then exit | |
42297 | -V, --version print version number, then exit | |
42298 | -q, --quiet do not print progress messages | |
42299 | -d, --debug don't remove temporary files | |
42300 | --recheck update $as_me by reconfiguring in the same conditions | |
42301 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 42302 | instantiate the configuration file FILE |
a848cd7e | 42303 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 42304 | instantiate the configuration header FILE |
a848cd7e SC |
42305 | |
42306 | Configuration files: | |
42307 | $config_files | |
42308 | ||
42309 | Configuration headers: | |
42310 | $config_headers | |
42311 | ||
42312 | Configuration commands: | |
42313 | $config_commands | |
42314 | ||
42315 | Report bugs to <bug-autoconf@gnu.org>." | |
42316 | _ACEOF | |
42317 | ||
42318 | cat >>$CONFIG_STATUS <<_ACEOF | |
42319 | ac_cs_version="\\ | |
7714864e | 42320 | wxWidgets config.status 2.5.3 |
ac1cb8d3 | 42321 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
42322 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
42323 | ||
ac1cb8d3 | 42324 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
42325 | This config.status script is free software; the Free Software Foundation |
42326 | gives unlimited permission to copy, distribute and modify it." | |
42327 | srcdir=$srcdir | |
42328 | INSTALL="$INSTALL" | |
42329 | _ACEOF | |
42330 | ||
42331 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42332 | # If no file are specified by the user, then we need to provide default | |
42333 | # value. By we need to know if files were specified by the user. | |
42334 | ac_need_defaults=: | |
42335 | while test $# != 0 | |
42336 | do | |
42337 | case $1 in | |
42338 | --*=*) | |
42339 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42340 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42341 | ac_shift=: | |
42342 | ;; | |
42343 | -*) | |
42344 | ac_option=$1 | |
42345 | ac_optarg=$2 | |
42346 | ac_shift=shift | |
42347 | ;; | |
42348 | *) # This is not an option, so the user has probably given explicit | |
42349 | # arguments. | |
42350 | ac_option=$1 | |
42351 | ac_need_defaults=false;; | |
42352 | esac | |
42353 | ||
42354 | case $ac_option in | |
42355 | # Handling of the options. | |
42356 | _ACEOF | |
42357 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42358 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42359 | ac_cs_recheck=: ;; | |
42360 | --version | --vers* | -V ) | |
42361 | echo "$ac_cs_version"; exit 0 ;; | |
42362 | --he | --h) | |
42363 | # Conflict between --help and --header | |
42364 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42365 | Try \`$0 --help' for more information." >&5 | |
42366 | echo "$as_me: error: ambiguous option: $1 | |
42367 | Try \`$0 --help' for more information." >&2;} | |
42368 | { (exit 1); exit 1; }; };; | |
42369 | --help | --hel | -h ) | |
42370 | echo "$ac_cs_usage"; exit 0 ;; | |
42371 | --debug | --d* | -d ) | |
42372 | debug=: ;; | |
42373 | --file | --fil | --fi | --f ) | |
42374 | $ac_shift | |
42375 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42376 | ac_need_defaults=false;; | |
42377 | --header | --heade | --head | --hea ) | |
42378 | $ac_shift | |
42379 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
42380 | ac_need_defaults=false;; | |
42381 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
42382 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42383 | ac_cs_silent=: ;; | |
42384 | ||
42385 | # This is an error. | |
42386 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
42387 | Try \`$0 --help' for more information." >&5 | |
42388 | echo "$as_me: error: unrecognized option: $1 | |
42389 | Try \`$0 --help' for more information." >&2;} | |
42390 | { (exit 1); exit 1; }; } ;; | |
42391 | ||
42392 | *) ac_config_targets="$ac_config_targets $1" ;; | |
42393 | ||
42394 | esac | |
42395 | shift | |
42396 | done | |
42397 | ||
42398 | ac_configure_extra_args= | |
42399 | ||
42400 | if $ac_cs_silent; then | |
42401 | exec 6>/dev/null | |
42402 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42403 | fi | |
42404 | ||
42405 | _ACEOF | |
42406 | cat >>$CONFIG_STATUS <<_ACEOF | |
42407 | if \$ac_cs_recheck; then | |
42408 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
42409 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
42410 | fi | |
42411 | ||
42412 | _ACEOF | |
42413 | ||
42414 | cat >>$CONFIG_STATUS <<_ACEOF | |
42415 | # | |
42416 | # INIT-COMMANDS section. | |
42417 | # | |
42418 | ||
ceec2216 RL |
42419 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
42420 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42421 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42422 | LN_S="${LN_S}" | |
a848cd7e SC |
42423 | |
42424 | ||
42425 | _ACEOF | |
42426 | ||
42427 | ||
42428 | ||
42429 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42430 | for ac_config_target in $ac_config_targets | |
42431 | do | |
42432 | case "$ac_config_target" in | |
42433 | # Handling of arguments. | |
ceec2216 RL |
42434 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
42435 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
42436 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
42437 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
42438 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
42439 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
42440 | "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 |
42441 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
42442 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
42443 | { (exit 1); exit 1; }; };; | |
42444 | esac | |
42445 | done | |
42446 | ||
42447 | # If the user did not use the arguments to specify the items to instantiate, | |
42448 | # then the envvar interface is used. Set only those that are not. | |
42449 | # We use the long form for the default assignment because of an extremely | |
42450 | # bizarre bug on SunOS 4.1.3. | |
42451 | if $ac_need_defaults; then | |
42452 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
42453 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
42454 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
42455 | fi | |
42456 | ||
42457 | # Have a temporary directory for convenience. Make it in the build tree | |
42458 | # simply because there is no reason to put it here, and in addition, | |
42459 | # creating and moving files from /tmp can sometimes cause problems. | |
42460 | # Create a temporary directory, and hook for its removal unless debugging. | |
42461 | $debug || | |
42462 | { | |
42463 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
42464 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
42465 | } | |
42466 | ||
42467 | # Create a (secure) tmp directory for tmp files. | |
42468 | ||
42469 | { | |
42470 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
42471 | test -n "$tmp" && test -d "$tmp" | |
42472 | } || | |
42473 | { | |
42474 | tmp=./confstat$$-$RANDOM | |
42475 | (umask 077 && mkdir $tmp) | |
42476 | } || | |
42477 | { | |
42478 | echo "$me: cannot create a temporary directory in ." >&2 | |
42479 | { (exit 1); exit 1; } | |
42480 | } | |
42481 | ||
42482 | _ACEOF | |
42483 | ||
42484 | cat >>$CONFIG_STATUS <<_ACEOF | |
42485 | ||
42486 | # | |
42487 | # CONFIG_FILES section. | |
42488 | # | |
42489 | ||
42490 | # No need to generate the scripts if there are no CONFIG_FILES. | |
42491 | # This happens for instance when ./config.status config.h | |
42492 | if test -n "\$CONFIG_FILES"; then | |
42493 | # Protect against being on the right side of a sed subst in config.status. | |
42494 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
42495 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
42496 | s,@SHELL@,$SHELL,;t t | |
42497 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
42498 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
42499 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
42500 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
42501 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
42502 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
42503 | s,@exec_prefix@,$exec_prefix,;t t | |
42504 | s,@prefix@,$prefix,;t t | |
42505 | s,@program_transform_name@,$program_transform_name,;t t | |
42506 | s,@bindir@,$bindir,;t t | |
42507 | s,@sbindir@,$sbindir,;t t | |
42508 | s,@libexecdir@,$libexecdir,;t t | |
42509 | s,@datadir@,$datadir,;t t | |
42510 | s,@sysconfdir@,$sysconfdir,;t t | |
42511 | s,@sharedstatedir@,$sharedstatedir,;t t | |
42512 | s,@localstatedir@,$localstatedir,;t t | |
42513 | s,@libdir@,$libdir,;t t | |
42514 | s,@includedir@,$includedir,;t t | |
42515 | s,@oldincludedir@,$oldincludedir,;t t | |
42516 | s,@infodir@,$infodir,;t t | |
42517 | s,@mandir@,$mandir,;t t | |
42518 | s,@build_alias@,$build_alias,;t t | |
42519 | s,@host_alias@,$host_alias,;t t | |
42520 | s,@target_alias@,$target_alias,;t t | |
42521 | s,@DEFS@,$DEFS,;t t | |
42522 | s,@ECHO_C@,$ECHO_C,;t t | |
42523 | s,@ECHO_N@,$ECHO_N,;t t | |
42524 | s,@ECHO_T@,$ECHO_T,;t t | |
42525 | s,@LIBS@,$LIBS,;t t | |
42526 | s,@build@,$build,;t t | |
42527 | s,@build_cpu@,$build_cpu,;t t | |
42528 | s,@build_vendor@,$build_vendor,;t t | |
42529 | s,@build_os@,$build_os,;t t | |
42530 | s,@host@,$host,;t t | |
42531 | s,@host_cpu@,$host_cpu,;t t | |
42532 | s,@host_vendor@,$host_vendor,;t t | |
42533 | s,@host_os@,$host_os,;t t | |
42534 | s,@target@,$target,;t t | |
42535 | s,@target_cpu@,$target_cpu,;t t | |
42536 | s,@target_vendor@,$target_vendor,;t t | |
42537 | s,@target_os@,$target_os,;t t | |
42538 | s,@CC@,$CC,;t t | |
42539 | s,@CFLAGS@,$CFLAGS,;t t | |
42540 | s,@LDFLAGS@,$LDFLAGS,;t t | |
42541 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
42542 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
42543 | s,@EXEEXT@,$EXEEXT,;t t | |
42544 | s,@OBJEXT@,$OBJEXT,;t t | |
42545 | s,@CPP@,$CPP,;t t | |
42546 | s,@EGREP@,$EGREP,;t t | |
42547 | s,@CXX@,$CXX,;t t | |
42548 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
42549 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
42550 | s,@RANLIB@,$RANLIB,;t t | |
42551 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
42552 | s,@AR@,$AR,;t t | |
42553 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
42554 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
42555 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
42556 | s,@STRIP@,$STRIP,;t t | |
42557 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
42558 | s,@LN_S@,$LN_S,;t t | |
42559 | s,@CXXCPP@,$CXXCPP,;t t | |
42560 | s,@subdirs@,$subdirs,;t t | |
42561 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
42562 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
42563 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
42564 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
42565 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
42566 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
42567 | s,@X_LIBS@,$X_LIBS,;t t | |
42568 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
42569 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
42570 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
42571 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
42572 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
42573 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
42574 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
42575 | s,@RESCOMP@,$RESCOMP,;t t | |
42576 | s,@DEREZ@,$DEREZ,;t t | |
42577 | s,@SETFILE@,$SETFILE,;t t | |
42578 | s,@LIBICONV@,$LIBICONV,;t t | |
42579 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42580 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42581 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42582 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
42583 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
42584 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
a848cd7e SC |
42585 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
42586 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42587 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42588 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42589 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42590 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42591 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42592 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42593 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42594 | s,@VENDOR@,$VENDOR,;t t | |
42595 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
42596 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
42597 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
42598 | s,@WXUNIV@,$WXUNIV,;t t |
42599 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42600 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42601 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42602 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42603 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42604 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42605 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42606 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42607 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42608 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 42609 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
42610 | s,@UNICODE@,$UNICODE,;t t |
42611 | s,@BUILD@,$BUILD,;t t | |
42612 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42613 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42614 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42615 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42616 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42617 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42618 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42619 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42620 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42621 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42622 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42623 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42624 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42625 | s,@NM@,$NM,;t t | |
42626 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42627 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42628 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42629 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42630 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42631 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42632 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 42633 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
42634 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
42635 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 42636 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
42637 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
42638 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42639 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42640 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42641 | s,@LIBEXT@,$LIBEXT,;t t | |
42642 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42643 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42644 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42645 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42646 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42647 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42648 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42649 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42650 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42651 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42652 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42653 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42654 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42655 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42656 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42657 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42658 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42659 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42660 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42661 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42662 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42663 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42664 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42665 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42666 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42667 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42668 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42669 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42670 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42671 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42672 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42673 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42674 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42675 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 42676 | 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 | 42677 | 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 | 42678 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 42679 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42680 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42681 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 42682 | 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 | 42683 | 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 | 42684 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 42685 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42686 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42687 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42688 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42689 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42690 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42691 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42692 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42693 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 42694 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
42695 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
42696 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42697 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 42698 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 42699 | 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 |
42700 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42701 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42702 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42703 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 42704 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
42705 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
42706 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42707 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42708 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42709 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42710 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42711 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42712 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42713 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42714 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42715 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42716 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42717 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42718 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42719 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42720 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42721 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42722 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42723 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42724 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42725 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42726 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 42727 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 42728 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 42729 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
42730 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
42731 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42732 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42733 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42734 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42735 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42736 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42737 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42738 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42739 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42740 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42741 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42742 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42743 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42744 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42745 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42746 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42747 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42748 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42749 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42750 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42751 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42752 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42753 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42754 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42755 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42756 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42757 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42758 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42759 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42760 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42761 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42762 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 42763 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 42764 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
42765 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
42766 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42767 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42768 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42769 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 42770 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 42771 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 42772 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
42773 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
42774 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42775 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42776 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42777 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42778 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42779 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42780 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 42781 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
42782 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
42783 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
42784 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
42785 | s,@USE_GUI@,$USE_GUI,;t t | |
42786 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42787 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42788 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42789 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 42790 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 42791 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
42792 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
42793 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 42794 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
42795 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
42796 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
42797 | s,@WX_VERSION@,$WX_VERSION,;t t | |
42798 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
42799 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
42800 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 42801 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
42802 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
42803 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42804 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42805 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42806 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42807 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42808 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 42809 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 42810 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
42811 | s,@DISTDIR@,$DISTDIR,;t t |
42812 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42813 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
42814 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
42815 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42816 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42817 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42818 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42819 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42820 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42821 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42822 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42823 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42824 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42825 | s,@GCC@,$GCC,;t t | |
a848cd7e | 42826 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
42827 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
42828 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42829 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42830 | CEOF | |
42831 | ||
42832 | _ACEOF | |
42833 | ||
42834 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42835 | # Split the substitutions into bite-sized pieces for seds with | |
42836 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42837 | ac_max_sed_lines=48 | |
42838 | ac_sed_frag=1 # Number of current file. | |
42839 | ac_beg=1 # First line for current file. | |
42840 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42841 | ac_more_lines=: | |
42842 | ac_sed_cmds= | |
42843 | while $ac_more_lines; do | |
42844 | if test $ac_beg -gt 1; then | |
42845 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42846 | else | |
42847 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42848 | fi | |
42849 | if test ! -s $tmp/subs.frag; then | |
42850 | ac_more_lines=false | |
42851 | else | |
42852 | # The purpose of the label and of the branching condition is to | |
42853 | # speed up the sed processing (if there are no `@' at all, there | |
42854 | # is no need to browse any of the substitutions). | |
42855 | # These are the two extra sed commands mentioned above. | |
42856 | (echo ':t | |
42857 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42858 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42859 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42860 | else |
ac1cb8d3 | 42861 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42862 | fi |
42863 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42864 | ac_beg=$ac_end | |
42865 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42866 | fi | |
42867 | done | |
42868 | if test -z "$ac_sed_cmds"; then | |
42869 | ac_sed_cmds=cat | |
42870 | fi | |
42871 | fi # test -n "$CONFIG_FILES" | |
42872 | ||
42873 | _ACEOF | |
42874 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42875 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42876 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42877 | case $ac_file in | |
42878 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42879 | cat >$tmp/stdin |
42880 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42881 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42882 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42883 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42884 | * ) ac_file_in=$ac_file.in ;; |
42885 | esac | |
42886 | ||
42887 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42888 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42889 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42890 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42891 | X"$ac_file" : 'X\(//\)$' \| \ | |
42892 | X"$ac_file" : 'X\(/\)' \| \ | |
42893 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42894 | echo X"$ac_file" | |
42895 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42896 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42897 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42898 | /^X\(\/\).*/{ s//\1/; q; } | |
42899 | s/.*/./; q'` | |
42900 | { if $as_mkdir_p; then | |
42901 | mkdir -p "$ac_dir" | |
42902 | else | |
42903 | as_dir="$ac_dir" | |
42904 | as_dirs= | |
42905 | while test ! -d "$as_dir"; do | |
42906 | as_dirs="$as_dir $as_dirs" | |
42907 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42908 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42909 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42910 | X"$as_dir" : 'X\(//\)$' \| \ | |
42911 | X"$as_dir" : 'X\(/\)' \| \ | |
42912 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42913 | echo X"$as_dir" | |
42914 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42915 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42916 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42917 | /^X\(\/\).*/{ s//\1/; q; } | |
42918 | s/.*/./; q'` | |
42919 | done | |
42920 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42921 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42922 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42923 | { (exit 1); exit 1; }; }; } | |
42924 | ||
42925 | ac_builddir=. | |
42926 | ||
42927 | if test "$ac_dir" != .; then | |
42928 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42929 | # A "../" for each directory in $ac_dir_suffix. | |
42930 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42931 | else | |
42932 | ac_dir_suffix= ac_top_builddir= | |
42933 | fi | |
42934 | ||
42935 | case $srcdir in | |
42936 | .) # No --srcdir option. We are building in place. | |
42937 | ac_srcdir=. | |
42938 | if test -z "$ac_top_builddir"; then | |
42939 | ac_top_srcdir=. | |
42940 | else | |
42941 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42942 | fi ;; | |
42943 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42944 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42945 | ac_top_srcdir=$srcdir ;; | |
42946 | *) # Relative path. | |
42947 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42948 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42949 | esac | |
ac1cb8d3 VS |
42950 | |
42951 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42952 | # the directories may not exist. | |
42953 | case `pwd` in | |
42954 | .) ac_abs_builddir="$ac_dir";; | |
42955 | *) | |
42956 | case "$ac_dir" in | |
42957 | .) ac_abs_builddir=`pwd`;; | |
42958 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42959 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42960 | esac;; | |
42961 | esac | |
42962 | case $ac_abs_builddir in | |
42963 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42964 | *) | |
42965 | case ${ac_top_builddir}. in | |
42966 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42967 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42968 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42969 | esac;; | |
42970 | esac | |
42971 | case $ac_abs_builddir in | |
42972 | .) ac_abs_srcdir=$ac_srcdir;; | |
42973 | *) | |
42974 | case $ac_srcdir in | |
42975 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42976 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42977 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42978 | esac;; | |
42979 | esac | |
42980 | case $ac_abs_builddir in | |
42981 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42982 | *) | |
42983 | case $ac_top_srcdir in | |
42984 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42985 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42986 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42987 | esac;; | |
42988 | esac | |
a848cd7e SC |
42989 | |
42990 | ||
42991 | case $INSTALL in | |
42992 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42993 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42994 | esac | |
42995 | ||
04840eaa VS |
42996 | if test x"$ac_file" != x-; then |
42997 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42998 | echo "$as_me: creating $ac_file" >&6;} | |
42999 | rm -f "$ac_file" | |
43000 | fi | |
a848cd7e SC |
43001 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
43002 | # use $as_me), people would be surprised to read: | |
43003 | # /* config.h. Generated by config.status. */ | |
43004 | if test x"$ac_file" = x-; then | |
43005 | configure_input= | |
43006 | else | |
43007 | configure_input="$ac_file. " | |
43008 | fi | |
43009 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 43010 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
43011 | |
43012 | # First look for the input files in the build tree, otherwise in the | |
43013 | # src tree. | |
43014 | ac_file_inputs=`IFS=: | |
43015 | for f in $ac_file_in; do | |
43016 | case $f in | |
43017 | -) echo $tmp/stdin ;; | |
43018 | [\\/$]*) | |
ac1cb8d3 VS |
43019 | # Absolute (can't be DOS-style, as IFS=:) |
43020 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43021 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43022 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43023 | echo "$f";; |
a848cd7e | 43024 | *) # Relative |
ac1cb8d3 VS |
43025 | if test -f "$f"; then |
43026 | # Build tree | |
43027 | echo "$f" | |
43028 | elif test -f "$srcdir/$f"; then | |
43029 | # Source tree | |
43030 | echo "$srcdir/$f" | |
43031 | else | |
43032 | # /dev/null tree | |
43033 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43034 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43035 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43036 | fi;; |
a848cd7e SC |
43037 | esac |
43038 | done` || { (exit 1); exit 1; } | |
43039 | _ACEOF | |
43040 | cat >>$CONFIG_STATUS <<_ACEOF | |
43041 | sed "$ac_vpsub | |
43042 | $extrasub | |
43043 | _ACEOF | |
43044 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43045 | :t | |
43046 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
43047 | s,@configure_input@,$configure_input,;t t | |
43048 | s,@srcdir@,$ac_srcdir,;t t | |
43049 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
43050 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
43051 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
43052 | s,@builddir@,$ac_builddir,;t t | |
43053 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
43054 | s,@top_builddir@,$ac_top_builddir,;t t | |
43055 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
43056 | s,@INSTALL@,$ac_INSTALL,;t t | |
43057 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
43058 | rm -f $tmp/stdin | |
43059 | if test x"$ac_file" != x-; then | |
43060 | mv $tmp/out $ac_file | |
43061 | else | |
43062 | cat $tmp/out | |
43063 | rm -f $tmp/out | |
43064 | fi | |
43065 | ||
ceec2216 RL |
43066 | # Run the commands associated with the file. |
43067 | case $ac_file in | |
43068 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
43069 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
43070 | esac | |
a848cd7e SC |
43071 | done |
43072 | _ACEOF | |
43073 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43074 | ||
43075 | # | |
43076 | # CONFIG_HEADER section. | |
43077 | # | |
43078 | ||
43079 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
43080 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
43081 | # | |
43082 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
43083 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
43084 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
43085 | ac_dC=' ' |
43086 | ac_dD=',;t' | |
43087 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 43088 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
43089 | ac_uB='$,\1#\2define\3' |
43090 | ac_uC=' ' | |
43091 | ac_uD=',;t' | |
43092 | ||
43093 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
43094 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43095 | case $ac_file in | |
43096 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43097 | cat >$tmp/stdin |
43098 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43099 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43100 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43101 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43102 | * ) ac_file_in=$ac_file.in ;; |
43103 | esac | |
43104 | ||
43105 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43106 | echo "$as_me: creating $ac_file" >&6;} | |
43107 | ||
43108 | # First look for the input files in the build tree, otherwise in the | |
43109 | # src tree. | |
43110 | ac_file_inputs=`IFS=: | |
43111 | for f in $ac_file_in; do | |
43112 | case $f in | |
43113 | -) echo $tmp/stdin ;; | |
43114 | [\\/$]*) | |
ac1cb8d3 VS |
43115 | # Absolute (can't be DOS-style, as IFS=:) |
43116 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43117 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43118 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
43119 | # Do quote $f, to prevent DOS paths from being IFS'd. |
43120 | echo "$f";; | |
a848cd7e | 43121 | *) # Relative |
ac1cb8d3 VS |
43122 | if test -f "$f"; then |
43123 | # Build tree | |
43124 | echo "$f" | |
43125 | elif test -f "$srcdir/$f"; then | |
43126 | # Source tree | |
43127 | echo "$srcdir/$f" | |
43128 | else | |
43129 | # /dev/null tree | |
43130 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43131 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43132 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43133 | fi;; |
a848cd7e SC |
43134 | esac |
43135 | done` || { (exit 1); exit 1; } | |
43136 | # Remove the trailing spaces. | |
ac1cb8d3 | 43137 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
43138 | |
43139 | _ACEOF | |
43140 | ||
43141 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
43142 | # `conftest.undefs', that substitutes the proper values into | |
43143 | # config.h.in to produce config.h. The first handles `#define' | |
43144 | # templates, and the second `#undef' templates. | |
43145 | # And first: Protect against being on the right side of a sed subst in | |
43146 | # config.status. Protect against being in an unquoted here document | |
43147 | # in config.status. | |
43148 | rm -f conftest.defines conftest.undefs | |
43149 | # Using a here document instead of a string reduces the quoting nightmare. | |
43150 | # Putting comments in sed scripts is not portable. | |
43151 | # | |
43152 | # `end' is used to avoid that the second main sed command (meant for | |
43153 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
43154 | # See the Autoconf documentation for `clear'. | |
43155 | cat >confdef2sed.sed <<\_ACEOF | |
43156 | s/[\\&,]/\\&/g | |
43157 | s,[\\$`],\\&,g | |
43158 | t clear | |
43159 | : clear | |
ac1cb8d3 | 43160 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 43161 | t end |
ac1cb8d3 | 43162 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
43163 | : end |
43164 | _ACEOF | |
43165 | # If some macros were called several times there might be several times | |
43166 | # the same #defines, which is useless. Nevertheless, we may not want to | |
43167 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
43168 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
43169 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
43170 | rm -f confdef2sed.sed | |
43171 | ||
43172 | # This sed command replaces #undef with comments. This is necessary, for | |
43173 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
43174 | # on some systems where configure will not decide to define it. | |
43175 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 43176 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
43177 | _ACEOF |
43178 | ||
43179 | # Break up conftest.defines because some shells have a limit on the size | |
43180 | # of here documents, and old seds have small limits too (100 cmds). | |
43181 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 43182 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
43183 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
43184 | echo ' :' >>$CONFIG_STATUS | |
43185 | rm -f conftest.tail | |
43186 | while grep . conftest.defines >/dev/null | |
43187 | do | |
43188 | # Write a limited-size here document to $tmp/defines.sed. | |
43189 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
43190 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 43191 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43192 | # Work around the forget-to-reset-the-flag bug. |
43193 | echo 't clr' >>$CONFIG_STATUS | |
43194 | echo ': clr' >>$CONFIG_STATUS | |
43195 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
43196 | echo 'CEOF | |
43197 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
43198 | rm -f $tmp/in | |
43199 | mv $tmp/out $tmp/in | |
43200 | ' >>$CONFIG_STATUS | |
43201 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
43202 | rm -f conftest.defines | |
43203 | mv conftest.tail conftest.defines | |
43204 | done | |
43205 | rm -f conftest.defines | |
43206 | echo ' fi # grep' >>$CONFIG_STATUS | |
43207 | echo >>$CONFIG_STATUS | |
43208 | ||
43209 | # Break up conftest.undefs because some shells have a limit on the size | |
43210 | # of here documents, and old seds have small limits too (100 cmds). | |
43211 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
43212 | rm -f conftest.tail | |
43213 | while grep . conftest.undefs >/dev/null | |
43214 | do | |
43215 | # Write a limited-size here document to $tmp/undefs.sed. | |
43216 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
43217 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 43218 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43219 | # Work around the forget-to-reset-the-flag bug. |
43220 | echo 't clr' >>$CONFIG_STATUS | |
43221 | echo ': clr' >>$CONFIG_STATUS | |
43222 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
43223 | echo 'CEOF | |
43224 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
43225 | rm -f $tmp/in | |
43226 | mv $tmp/out $tmp/in | |
43227 | ' >>$CONFIG_STATUS | |
43228 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
43229 | rm -f conftest.undefs | |
43230 | mv conftest.tail conftest.undefs | |
43231 | done | |
43232 | rm -f conftest.undefs | |
43233 | ||
43234 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43235 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
43236 | # use $as_me), people would be surprised to read: | |
43237 | # /* config.h. Generated by config.status. */ | |
43238 | if test x"$ac_file" = x-; then | |
43239 | echo "/* Generated by configure. */" >$tmp/config.h | |
43240 | else | |
43241 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
43242 | fi | |
43243 | cat $tmp/in >>$tmp/config.h | |
43244 | rm -f $tmp/in | |
43245 | if test x"$ac_file" != x-; then | |
43246 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
43247 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
43248 | echo "$as_me: $ac_file is unchanged" >&6;} | |
43249 | else | |
43250 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43251 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43252 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43253 | X"$ac_file" : 'X\(//\)$' \| \ | |
43254 | X"$ac_file" : 'X\(/\)' \| \ | |
43255 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43256 | echo X"$ac_file" | |
43257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43258 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43259 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43260 | /^X\(\/\).*/{ s//\1/; q; } | |
43261 | s/.*/./; q'` | |
43262 | { if $as_mkdir_p; then | |
43263 | mkdir -p "$ac_dir" | |
43264 | else | |
43265 | as_dir="$ac_dir" | |
43266 | as_dirs= | |
43267 | while test ! -d "$as_dir"; do | |
43268 | as_dirs="$as_dir $as_dirs" | |
43269 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43270 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43271 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43272 | X"$as_dir" : 'X\(//\)$' \| \ | |
43273 | X"$as_dir" : 'X\(/\)' \| \ | |
43274 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43275 | echo X"$as_dir" | |
43276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43277 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43278 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43279 | /^X\(\/\).*/{ s//\1/; q; } | |
43280 | s/.*/./; q'` | |
43281 | done | |
43282 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43283 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43284 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43285 | { (exit 1); exit 1; }; }; } | |
43286 | ||
43287 | rm -f $ac_file | |
43288 | mv $tmp/config.h $ac_file | |
43289 | fi | |
43290 | else | |
43291 | cat $tmp/config.h | |
43292 | rm -f $tmp/config.h | |
43293 | fi | |
43294 | done | |
43295 | _ACEOF | |
43296 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43297 | ||
43298 | # | |
43299 | # CONFIG_COMMANDS section. | |
43300 | # | |
43301 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
43302 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
43303 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43304 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
43305 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43306 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
43307 | X"$ac_dest" : 'X\(//\)$' \| \ | |
43308 | X"$ac_dest" : 'X\(/\)' \| \ | |
43309 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43310 | echo X"$ac_dest" | |
43311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43312 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43313 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43314 | /^X\(\/\).*/{ s//\1/; q; } | |
43315 | s/.*/./; q'` | |
ac1cb8d3 VS |
43316 | { if $as_mkdir_p; then |
43317 | mkdir -p "$ac_dir" | |
43318 | else | |
43319 | as_dir="$ac_dir" | |
43320 | as_dirs= | |
43321 | while test ! -d "$as_dir"; do | |
43322 | as_dirs="$as_dir $as_dirs" | |
43323 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43324 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
43325 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
43326 | X"$as_dir" : 'X\(//\)$' \| \ | |
43327 | X"$as_dir" : 'X\(/\)' \| \ | |
43328 | . : '\(.\)' 2>/dev/null || | |
43329 | echo X"$as_dir" | | |
43330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43331 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43332 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43333 | /^X\(\/\).*/{ s//\1/; q; } | |
43334 | s/.*/./; q'` | |
43335 | done | |
43336 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43337 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43338 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43339 | { (exit 1); exit 1; }; }; } | |
43340 | ||
a848cd7e SC |
43341 | ac_builddir=. |
43342 | ||
43343 | if test "$ac_dir" != .; then | |
43344 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43345 | # A "../" for each directory in $ac_dir_suffix. | |
43346 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43347 | else | |
43348 | ac_dir_suffix= ac_top_builddir= | |
43349 | fi | |
43350 | ||
43351 | case $srcdir in | |
43352 | .) # No --srcdir option. We are building in place. | |
43353 | ac_srcdir=. | |
43354 | if test -z "$ac_top_builddir"; then | |
43355 | ac_top_srcdir=. | |
43356 | else | |
43357 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43358 | fi ;; | |
43359 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43360 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43361 | ac_top_srcdir=$srcdir ;; | |
43362 | *) # Relative path. | |
43363 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43364 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43365 | esac | |
ac1cb8d3 VS |
43366 | |
43367 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43368 | # the directories may not exist. | |
43369 | case `pwd` in | |
43370 | .) ac_abs_builddir="$ac_dir";; | |
43371 | *) | |
43372 | case "$ac_dir" in | |
43373 | .) ac_abs_builddir=`pwd`;; | |
43374 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43375 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43376 | esac;; | |
43377 | esac | |
43378 | case $ac_abs_builddir in | |
43379 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43380 | *) | |
43381 | case ${ac_top_builddir}. in | |
43382 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43383 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43384 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43385 | esac;; | |
43386 | esac | |
43387 | case $ac_abs_builddir in | |
43388 | .) ac_abs_srcdir=$ac_srcdir;; | |
43389 | *) | |
43390 | case $ac_srcdir in | |
43391 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43392 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43393 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43394 | esac;; | |
43395 | esac | |
43396 | case $ac_abs_builddir in | |
43397 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43398 | *) | |
43399 | case $ac_top_srcdir in | |
43400 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43401 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43402 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43403 | esac;; | |
43404 | esac | |
a848cd7e SC |
43405 | |
43406 | ||
43407 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
43408 | echo "$as_me: executing $ac_dest commands" >&6;} | |
43409 | case $ac_dest in | |
ceec2216 RL |
43410 | wx-config ) rm -f wx-config |
43411 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
43412 | ;; | |
a848cd7e SC |
43413 | esac |
43414 | done | |
43415 | _ACEOF | |
43416 | ||
43417 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43418 | ||
43419 | { (exit 0); exit 0; } | |
43420 | _ACEOF | |
43421 | chmod +x $CONFIG_STATUS | |
43422 | ac_clean_files=$ac_clean_files_save | |
43423 | ||
43424 | ||
43425 | # configure is writing to config.log, and then calls config.status. | |
43426 | # config.status does its own redirection, appending to config.log. | |
43427 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
43428 | # by configure, so config.status won't be able to write to it; its | |
43429 | # output is simply discarded. So we exec the FD to /dev/null, | |
43430 | # effectively closing config.log, so it can be properly (re)opened and | |
43431 | # appended to by config.status. When coming back to configure, we | |
43432 | # need to make the FD available again. | |
43433 | if test "$no_create" != yes; then | |
43434 | ac_cs_success=: | |
43435 | ac_config_status_args= | |
43436 | test "$silent" = yes && | |
43437 | ac_config_status_args="$ac_config_status_args --quiet" | |
43438 | exec 5>/dev/null | |
43439 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
43440 | exec 5>>config.log | |
43441 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
43442 | # would make configure fail if this is the last instruction. | |
43443 | $ac_cs_success || { (exit 1); exit 1; } | |
43444 | fi | |
43445 | ||
43446 | # | |
43447 | # CONFIG_SUBDIRS section. | |
43448 | # | |
43449 | if test "$no_recursion" != yes; then | |
43450 | ||
43451 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
43452 | ac_sub_configure_args= | |
43453 | ac_prev= | |
43454 | for ac_arg in $ac_configure_args; do | |
43455 | if test -n "$ac_prev"; then | |
43456 | ac_prev= | |
43457 | continue | |
43458 | fi | |
43459 | case $ac_arg in | |
43460 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
43461 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
43462 | ac_prev=cache_file ;; | |
43463 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
43464 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
43465 | | --c=*) | |
43466 | ;; | |
43467 | --config-cache | -C) | |
43468 | ;; | |
43469 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
43470 | ac_prev=srcdir ;; | |
43471 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
43472 | ;; | |
43473 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
43474 | ac_prev=prefix ;; | |
43475 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
43476 | ;; | |
43477 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
43478 | esac | |
43479 | done | |
43480 | ||
43481 | # Always prepend --prefix to ensure using the same prefix | |
43482 | # in subdir configurations. | |
43483 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
43484 | ||
43485 | ac_popdir=`pwd` | |
43486 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
43487 | ||
43488 | # Do not complain, so a configure script can configure whichever | |
43489 | # parts of a large source tree are present. | |
43490 | test -d $srcdir/$ac_dir || continue | |
43491 | ||
43492 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
43493 | echo "$as_me: configuring in $ac_dir" >&6;} | |
43494 | { if $as_mkdir_p; then | |
43495 | mkdir -p "$ac_dir" | |
43496 | else | |
43497 | as_dir="$ac_dir" | |
43498 | as_dirs= | |
43499 | while test ! -d "$as_dir"; do | |
43500 | as_dirs="$as_dir $as_dirs" | |
43501 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43502 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43503 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43504 | X"$as_dir" : 'X\(//\)$' \| \ | |
43505 | X"$as_dir" : 'X\(/\)' \| \ | |
43506 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43507 | echo X"$as_dir" | |
43508 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43509 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43510 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43511 | /^X\(\/\).*/{ s//\1/; q; } | |
43512 | s/.*/./; q'` | |
43513 | done | |
43514 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43515 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43516 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43517 | { (exit 1); exit 1; }; }; } | |
43518 | ||
43519 | ac_builddir=. | |
43520 | ||
43521 | if test "$ac_dir" != .; then | |
43522 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43523 | # A "../" for each directory in $ac_dir_suffix. | |
43524 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43525 | else | |
43526 | ac_dir_suffix= ac_top_builddir= | |
43527 | fi | |
43528 | ||
43529 | case $srcdir in | |
43530 | .) # No --srcdir option. We are building in place. | |
43531 | ac_srcdir=. | |
43532 | if test -z "$ac_top_builddir"; then | |
43533 | ac_top_srcdir=. | |
43534 | else | |
43535 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43536 | fi ;; | |
43537 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43538 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43539 | ac_top_srcdir=$srcdir ;; | |
43540 | *) # Relative path. | |
43541 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43542 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43543 | esac | |
ac1cb8d3 VS |
43544 | |
43545 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43546 | # the directories may not exist. | |
43547 | case `pwd` in | |
43548 | .) ac_abs_builddir="$ac_dir";; | |
43549 | *) | |
43550 | case "$ac_dir" in | |
43551 | .) ac_abs_builddir=`pwd`;; | |
43552 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43553 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43554 | esac;; | |
43555 | esac | |
43556 | case $ac_abs_builddir in | |
43557 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43558 | *) | |
43559 | case ${ac_top_builddir}. in | |
43560 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43561 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43562 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43563 | esac;; | |
43564 | esac | |
43565 | case $ac_abs_builddir in | |
43566 | .) ac_abs_srcdir=$ac_srcdir;; | |
43567 | *) | |
43568 | case $ac_srcdir in | |
43569 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43570 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43571 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43572 | esac;; | |
43573 | esac | |
43574 | case $ac_abs_builddir in | |
43575 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43576 | *) | |
43577 | case $ac_top_srcdir in | |
43578 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43579 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43580 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43581 | esac;; | |
43582 | esac | |
a848cd7e SC |
43583 | |
43584 | ||
43585 | cd $ac_dir | |
43586 | ||
43587 | # Check for guested configure; otherwise get Cygnus style configure. | |
43588 | if test -f $ac_srcdir/configure.gnu; then | |
43589 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43590 | elif test -f $ac_srcdir/configure; then | |
43591 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43592 | elif test -f $ac_srcdir/configure.in; then | |
43593 | ac_sub_configure=$ac_configure | |
43594 | else | |
43595 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43596 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43597 | ac_sub_configure= | |
43598 | fi | |
43599 | ||
43600 | # The recursion is here. | |
43601 | if test -n "$ac_sub_configure"; then | |
43602 | # Make the cache file name correct relative to the subdirectory. | |
43603 | case $cache_file in | |
43604 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43605 | *) # Relative path. | |
ac1cb8d3 | 43606 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43607 | esac |
43608 | ||
43609 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43610 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43611 | # The eval makes quoting arguments work. | |
43612 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43613 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43614 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43615 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43616 | { (exit 1); exit 1; }; } | |
43617 | fi | |
43618 | ||
04840eaa | 43619 | cd $ac_popdir |
a848cd7e SC |
43620 | done |
43621 | fi | |
43622 | ||
43623 | ||
43624 | echo | |
77ffb593 | 43625 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43626 | echo "" |
4d4ff94c | 43627 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43628 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43629 | |
77ffb593 JS |
43630 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43631 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43632 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43633 | |
77ffb593 JS |
43634 | echo " What level of wxWidgets compatibility should be enabled?" |
43635 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43636 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43637 | |
77ffb593 | 43638 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43639 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43640 | echo " png ${wxUSE_LIBPNG-none}" | |
43641 | echo " regex ${wxUSE_REGEX}" | |
43642 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43643 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43644 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43645 | fi | |
43646 | echo " zlib ${wxUSE_ZLIB}" | |
43647 | echo " odbc ${wxUSE_ODBC}" | |
43648 | echo " expat ${wxUSE_EXPAT}" | |
43649 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43650 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 43651 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
43652 | |
43653 | echo "" | |
43654 |