]>
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" | |
6ab3c239 | 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_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_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_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_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_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 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 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) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
3b57de8b | 934 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 935 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 936 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
937 | --enable-url use wxURL class |
938 | --enable-protocol use wxProtocol class | |
939 | --enable-protocol-http HTTP support in wxProtocol | |
940 | --enable-protocol-ftp FTP support in wxProtocol | |
941 | --enable-protocol-file FILE support in wxProtocol | |
942 | --enable-threads use threads | |
943 | --enable-docview use document view architecture | |
944 | --enable-help use help subsystem | |
945 | --enable-mshtmlhelp use MS HTML Help (win32) | |
946 | --enable-html use wxHTML sub-library | |
947 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 948 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
949 | --enable-constraints use layout-constraints system |
950 | --enable-printarch use printing architecture | |
951 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 952 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
953 | --enable-loggui use standard GUI logger |
954 | --enable-logwin use wxLogWindow | |
955 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 956 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
957 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
958 | --enable-prologio not available; see contrib | |
959 | --enable-resources not available; see contrib | |
960 | --enable-clipboard use wxClipboard class | |
961 | --enable-dnd use Drag'n'Drop classes | |
962 | --enable-metafile use win32 metafiles | |
963 | --enable-controls use all usual controls | |
964 | --enable-accel use accelerators | |
965 | --enable-button use wxButton class | |
966 | --enable-bmpbutton use wxBitmapButton class | |
967 | --enable-calendar use wxCalendarCtrl class | |
968 | --enable-caret use wxCaret class | |
969 | --enable-checkbox use wxCheckBox class | |
970 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
971 | --enable-choice use wxChoice class | |
92bbdbcd | 972 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
973 | --enable-combobox use wxComboBox class |
974 | --enable-display use wxDisplay class | |
975 | --enable-gauge use wxGauge class | |
976 | --enable-grid use wxGrid class | |
977 | --enable-imaglist use wxImageList class | |
978 | --enable-listbook use wxListbook class | |
979 | --enable-listbox use wxListBox class | |
980 | --enable-listctrl use wxListCtrl class | |
981 | --enable-notebook use wxNotebook class | |
982 | --enable-radiobox use wxRadioBox class | |
983 | --enable-radiobtn use wxRadioButton class | |
984 | --enable-sash use wxSashWindow class | |
985 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
986 | --enable-slider use wxSlider class | |
987 | --enable-spinbtn use wxSpinButton class | |
988 | --enable-spinctrl use wxSpinCtrl class | |
989 | --enable-splitter use wxSplitterWindow class | |
990 | --enable-statbmp use wxStaticBitmap class | |
991 | --enable-statbox use wxStaticBox class | |
992 | --enable-statline use wxStaticLine class | |
993 | --enable-stattext use wxStaticText class | |
994 | --enable-statusbar use wxStatusBar class | |
995 | --enable-tabdialog use wxTabControl class | |
996 | --enable-textctrl use wxTextCtrl class | |
997 | --enable-togglebtn use wxToggleButton class | |
998 | --enable-toolbar use wxToolBar class | |
999 | --enable-tbarnative use native wxToolBar class | |
1000 | --enable-tbarsmpl use wxToolBarSimple class | |
1001 | --enable-treectrl use wxTreeCtrl class | |
1002 | --enable-tipwindow use wxTipWindow class | |
1003 | --enable-popupwin use wxPopUpWindow class | |
1004 | --enable-commondlg use all common dialogs | |
1005 | --enable-choicedlg use wxChoiceDialog | |
1006 | --enable-coldlg use wxColourDialog | |
1007 | --enable-filedlg use wxFileDialog | |
1008 | --enable-finddlg use wxFindReplaceDialog | |
1009 | --enable-fontdlg use wxFontDialog | |
1010 | --enable-dirdlg use wxDirDialog | |
1011 | --enable-msgdlg use wxMessageDialog | |
1012 | --enable-numberdlg use wxNumberEntryDialog | |
1013 | --enable-splash use wxSplashScreen | |
1014 | --enable-textdlg use wxTextDialog | |
1015 | --enable-tipdlg use startup tips | |
1016 | --enable-progressdlg use wxProgressDialog | |
1017 | --enable-wizarddlg use wxWizard | |
1018 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1019 | --enable-miniframe use wxMiniFrame class | |
1020 | --enable-tooltips use wxToolTip class | |
1021 | --enable-splines use spline drawing code | |
1022 | --enable-validators use wxValidator and derived classes | |
1023 | --enable-busyinfo use wxBusyInfo | |
1024 | --enable-joystick use wxJoystick (Linux only) | |
1025 | --enable-metafiles use wxMetaFile (Windows only) | |
1026 | --enable-dragimage use wxDragImage | |
1027 | --enable-accessibility enable accessibility support | |
1028 | --enable-palette use wxPalette class | |
1029 | --enable-image use wxImage class | |
1030 | --enable-gif use gif images (GIF file format) | |
1031 | --enable-pcx use pcx images (PCX file format) | |
1032 | --enable-iff use iff images (IFF file format) | |
1033 | --enable-pnm use pnm images (PNM file format) | |
1034 | --enable-xpm use xpm images (XPM file format) | |
1035 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1036 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1037 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1038 | --disable-largefile omit support for large files | |
1039 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1040 | --disable-gtktest Do not try to compile and run a test GTK program | |
1041 | --disable-sdltest Do not try to compile and run a test SDL program | |
1042 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1043 | --disable-precomp-headers |
1044 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1045 | |
1046 | Optional Packages: | |
1047 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1048 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1049 | --with-gtk use GTK+ | |
1050 | --with-motif use Motif/Lesstif | |
1051 | --with-mac use Mac OS X | |
1052 | --with-cocoa use Cocoa | |
1053 | --with-wine use Wine | |
1054 | --with-msw use MS-Windows | |
1055 | --with-pm use OS/2 Presentation Manager | |
1056 | --with-mgl use SciTech MGL | |
1057 | --with-microwin use MicroWindows | |
1058 | --with-x11 use X11 | |
1059 | --with-libpng use libpng (PNG image format) | |
1060 | --with-libjpeg use libjpeg (JPEG file format) | |
1061 | --with-libtiff use libtiff (TIFF file format) | |
1062 | --with-libxpm use libxpm (XPM file format) | |
1063 | --with-libmspack use libmspack (CHM help files loading) | |
1064 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1065 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1066 | --with-opengl use OpenGL (or Mesa) |
1067 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1068 | --with-regex enable support for wxRegEx class | |
1069 | --with-zlib use zlib for LZW compression | |
1070 | --with-odbc use the IODBC and wxODBC classes | |
1071 | --with-expat enable XML support using expat parser | |
ceec2216 | 1072 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1073 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1074 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1075 | --with-x use the X Window System | |
1076 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1077 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1078 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1079 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1080 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1081 | ||
1082 | Some influential environment variables: | |
dcc1b6ad VS |
1083 | CC C compiler command |
1084 | CFLAGS C compiler flags | |
1085 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1086 | nonstandard directory <lib dir> | |
1087 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1088 | headers in a nonstandard directory <include dir> | |
1089 | CPP C preprocessor | |
1090 | CXX C++ compiler command | |
1091 | CXXFLAGS C++ compiler flags | |
1092 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1093 | |
1094 | Use these variables to override the choices made by `configure' or to help | |
1095 | it to find libraries and programs with nonstandard names/locations. | |
1096 | ||
77ffb593 | 1097 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1098 | _ACEOF |
1099 | fi | |
1100 | ||
1101 | if test "$ac_init_help" = "recursive"; then | |
1102 | # If there are subdirs, report their specific --help. | |
1103 | ac_popdir=`pwd` | |
1104 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1105 | test -d $ac_dir || continue | |
1106 | ac_builddir=. | |
1107 | ||
1108 | if test "$ac_dir" != .; then | |
1109 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1110 | # A "../" for each directory in $ac_dir_suffix. | |
1111 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1112 | else | |
1113 | ac_dir_suffix= ac_top_builddir= | |
1114 | fi | |
1115 | ||
1116 | case $srcdir in | |
1117 | .) # No --srcdir option. We are building in place. | |
1118 | ac_srcdir=. | |
1119 | if test -z "$ac_top_builddir"; then | |
1120 | ac_top_srcdir=. | |
1121 | else | |
1122 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1123 | fi ;; | |
1124 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1125 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1126 | ac_top_srcdir=$srcdir ;; | |
1127 | *) # Relative path. | |
1128 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1129 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1130 | esac | |
ac1cb8d3 VS |
1131 | |
1132 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1133 | # the directories may not exist. | |
1134 | case `pwd` in | |
1135 | .) ac_abs_builddir="$ac_dir";; | |
1136 | *) | |
1137 | case "$ac_dir" in | |
1138 | .) ac_abs_builddir=`pwd`;; | |
1139 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1140 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1141 | esac;; | |
1142 | esac | |
1143 | case $ac_abs_builddir in | |
1144 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1145 | *) | |
1146 | case ${ac_top_builddir}. in | |
1147 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1148 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1149 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1150 | esac;; | |
1151 | esac | |
1152 | case $ac_abs_builddir in | |
1153 | .) ac_abs_srcdir=$ac_srcdir;; | |
1154 | *) | |
1155 | case $ac_srcdir in | |
1156 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1157 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1158 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1159 | esac;; | |
1160 | esac | |
1161 | case $ac_abs_builddir in | |
1162 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1163 | *) | |
1164 | case $ac_top_srcdir in | |
1165 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1166 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1167 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1168 | esac;; | |
1169 | esac | |
a848cd7e SC |
1170 | |
1171 | cd $ac_dir | |
1172 | # Check for guested configure; otherwise get Cygnus style configure. | |
1173 | if test -f $ac_srcdir/configure.gnu; then | |
1174 | echo | |
1175 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1176 | elif test -f $ac_srcdir/configure; then | |
1177 | echo | |
1178 | $SHELL $ac_srcdir/configure --help=recursive | |
1179 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1180 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1181 | echo |
1182 | $ac_configure --help | |
1183 | else | |
1184 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1185 | fi | |
5294a27e | 1186 | cd "$ac_popdir" |
a848cd7e SC |
1187 | done |
1188 | fi | |
1189 | ||
1190 | test -n "$ac_init_help" && exit 0 | |
1191 | if $ac_init_version; then | |
1192 | cat <<\_ACEOF | |
7714864e | 1193 | wxWidgets configure 2.5.3 |
ac1cb8d3 | 1194 | generated by GNU Autoconf 2.59 |
a848cd7e | 1195 | |
ac1cb8d3 | 1196 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1197 | This configure script is free software; the Free Software Foundation |
1198 | gives unlimited permission to copy, distribute and modify it. | |
1199 | _ACEOF | |
1200 | exit 0 | |
1201 | fi | |
1202 | exec 5>config.log | |
1203 | cat >&5 <<_ACEOF | |
1204 | This file contains any messages produced by compilers while | |
1205 | running configure, to aid debugging if configure makes a mistake. | |
1206 | ||
7714864e | 1207 | It was created by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 1208 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1209 | |
1210 | $ $0 $@ | |
1211 | ||
1212 | _ACEOF | |
1213 | { | |
1214 | cat <<_ASUNAME | |
1215 | ## --------- ## | |
1216 | ## Platform. ## | |
1217 | ## --------- ## | |
1218 | ||
1219 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1220 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1221 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1222 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1223 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1224 | ||
1225 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1226 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1227 | ||
1228 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1229 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1230 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1231 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1232 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1233 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1234 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1235 | ||
1236 | _ASUNAME | |
1237 | ||
1238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1239 | for as_dir in $PATH | |
1240 | do | |
1241 | IFS=$as_save_IFS | |
1242 | test -z "$as_dir" && as_dir=. | |
1243 | echo "PATH: $as_dir" | |
1244 | done | |
1245 | ||
1246 | } >&5 | |
1247 | ||
1248 | cat >&5 <<_ACEOF | |
1249 | ||
1250 | ||
1251 | ## ----------- ## | |
1252 | ## Core tests. ## | |
1253 | ## ----------- ## | |
1254 | ||
1255 | _ACEOF | |
1256 | ||
1257 | ||
1258 | # Keep a trace of the command line. | |
1259 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1260 | # Strip out --silent because we don't want to record it for future runs. | |
1261 | # Also quote any args containing shell meta-characters. | |
1262 | # Make two passes to allow for proper duplicate-argument suppression. | |
1263 | ac_configure_args= | |
1264 | ac_configure_args0= | |
1265 | ac_configure_args1= | |
1266 | ac_sep= | |
1267 | ac_must_keep_next=false | |
1268 | for ac_pass in 1 2 | |
1269 | do | |
1270 | for ac_arg | |
1271 | do | |
1272 | case $ac_arg in | |
1273 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1274 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1275 | | -silent | --silent | --silen | --sile | --sil) | |
1276 | continue ;; | |
1277 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1278 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1279 | esac | |
1280 | case $ac_pass in | |
1281 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1282 | 2) | |
1283 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1284 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1285 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1286 | else |
ac1cb8d3 VS |
1287 | case $ac_arg in |
1288 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1289 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1290 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1291 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1292 | case "$ac_configure_args0 " in | |
1293 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1294 | esac | |
1295 | ;; | |
1296 | -* ) ac_must_keep_next=true ;; | |
1297 | esac | |
a848cd7e SC |
1298 | fi |
1299 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1300 | # Get rid of the leading space. | |
1301 | ac_sep=" " | |
1302 | ;; | |
1303 | esac | |
1304 | done | |
1305 | done | |
1306 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1307 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1308 | ||
1309 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1310 | # config.log. We remove comments because anyway the quotes in there | |
1311 | # would cause problems or look ugly. | |
1312 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1313 | # such as our DU 5.0 friend, will then `close' the trap. | |
1314 | trap 'exit_status=$? | |
1315 | # Save into config.log some information that might help in debugging. | |
1316 | { | |
1317 | echo | |
1318 | ||
1319 | cat <<\_ASBOX | |
1320 | ## ---------------- ## | |
1321 | ## Cache variables. ## | |
1322 | ## ---------------- ## | |
1323 | _ASBOX | |
1324 | echo | |
1325 | # The following way of writing the cache mishandles newlines in values, | |
1326 | { | |
1327 | (set) 2>&1 | | |
1328 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1329 | *ac_space=\ *) | |
1330 | sed -n \ | |
ac1cb8d3 VS |
1331 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1332 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1333 | ;; |
1334 | *) | |
1335 | sed -n \ | |
ac1cb8d3 | 1336 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1337 | ;; |
1338 | esac; | |
1339 | } | |
1340 | echo | |
1341 | ||
1342 | cat <<\_ASBOX | |
1343 | ## ----------------- ## | |
1344 | ## Output variables. ## | |
1345 | ## ----------------- ## | |
1346 | _ASBOX | |
1347 | echo | |
1348 | for ac_var in $ac_subst_vars | |
1349 | do | |
1350 | eval ac_val=$`echo $ac_var` | |
1351 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1352 | done | sort | |
1353 | echo | |
1354 | ||
1355 | if test -n "$ac_subst_files"; then | |
1356 | cat <<\_ASBOX | |
1357 | ## ------------- ## | |
1358 | ## Output files. ## | |
1359 | ## ------------- ## | |
1360 | _ASBOX | |
1361 | echo | |
1362 | for ac_var in $ac_subst_files | |
1363 | do | |
1364 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1365 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1366 | done | sort |
1367 | echo | |
1368 | fi | |
1369 | ||
1370 | if test -s confdefs.h; then | |
1371 | cat <<\_ASBOX | |
1372 | ## ----------- ## | |
1373 | ## confdefs.h. ## | |
1374 | ## ----------- ## | |
1375 | _ASBOX | |
1376 | echo | |
1377 | sed "/^$/d" confdefs.h | sort | |
1378 | echo | |
1379 | fi | |
1380 | test "$ac_signal" != 0 && | |
1381 | echo "$as_me: caught signal $ac_signal" | |
1382 | echo "$as_me: exit $exit_status" | |
1383 | } >&5 | |
ac1cb8d3 | 1384 | rm -f core *.core && |
a848cd7e SC |
1385 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1386 | exit $exit_status | |
1387 | ' 0 | |
1388 | for ac_signal in 1 2 13 15; do | |
1389 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1390 | done | |
1391 | ac_signal=0 | |
1392 | ||
1393 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1394 | rm -rf conftest* confdefs.h | |
1395 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1396 | echo >confdefs.h | |
1397 | ||
1398 | # Predefined preprocessor variables. | |
1399 | ||
1400 | cat >>confdefs.h <<_ACEOF | |
1401 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1402 | _ACEOF | |
1403 | ||
1404 | ||
1405 | cat >>confdefs.h <<_ACEOF | |
1406 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1407 | _ACEOF | |
1408 | ||
1409 | ||
1410 | cat >>confdefs.h <<_ACEOF | |
1411 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1412 | _ACEOF | |
1413 | ||
1414 | ||
1415 | cat >>confdefs.h <<_ACEOF | |
1416 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1417 | _ACEOF | |
1418 | ||
1419 | ||
1420 | cat >>confdefs.h <<_ACEOF | |
1421 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1422 | _ACEOF | |
1423 | ||
1424 | ||
1425 | # Let the site file select an alternate cache file if it wants to. | |
1426 | # Prefer explicitly selected file to automatically selected ones. | |
1427 | if test -z "$CONFIG_SITE"; then | |
1428 | if test "x$prefix" != xNONE; then | |
1429 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1430 | else | |
1431 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1432 | fi | |
1433 | fi | |
1434 | for ac_site_file in $CONFIG_SITE; do | |
1435 | if test -r "$ac_site_file"; then | |
1436 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1437 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1438 | sed 's/^/| /' "$ac_site_file" >&5 | |
1439 | . "$ac_site_file" | |
1440 | fi | |
1441 | done | |
1442 | ||
1443 | if test -r "$cache_file"; then | |
1444 | # Some versions of bash will fail to source /dev/null (special | |
1445 | # files actually), so we avoid doing that. | |
1446 | if test -f "$cache_file"; then | |
1447 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1448 | echo "$as_me: loading cache $cache_file" >&6;} | |
1449 | case $cache_file in | |
1450 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1451 | *) . ./$cache_file;; | |
1452 | esac | |
1453 | fi | |
1454 | else | |
1455 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1456 | echo "$as_me: creating cache $cache_file" >&6;} | |
1457 | >$cache_file | |
1458 | fi | |
1459 | ||
1460 | # Check that the precious variables saved in the cache have kept the same | |
1461 | # value. | |
1462 | ac_cache_corrupted=false | |
1463 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1464 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1465 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1466 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1467 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1468 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1469 | case $ac_old_set,$ac_new_set in | |
1470 | set,) | |
1471 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1472 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1473 | ac_cache_corrupted=: ;; | |
1474 | ,set) | |
1475 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1476 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1477 | ac_cache_corrupted=: ;; | |
1478 | ,);; | |
1479 | *) | |
1480 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1481 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1482 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1483 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1484 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1485 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1486 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1487 | ac_cache_corrupted=: |
a848cd7e SC |
1488 | fi;; |
1489 | esac | |
1490 | # Pass precious variables to config.status. | |
1491 | if test "$ac_new_set" = set; then | |
1492 | case $ac_new_val in | |
1493 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1494 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1495 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1496 | esac | |
1497 | case " $ac_configure_args " in | |
1498 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1499 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1500 | esac | |
1501 | fi | |
1502 | done | |
1503 | if $ac_cache_corrupted; then | |
1504 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1505 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1506 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1507 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1508 | { (exit 1); exit 1; }; } | |
1509 | fi | |
1510 | ||
1511 | ac_ext=c | |
1512 | ac_cpp='$CPP $CPPFLAGS' | |
1513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1516 | ||
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 | ac_aux_dir= | |
1547 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1548 | if test -f $ac_dir/install-sh; then | |
1549 | ac_aux_dir=$ac_dir | |
1550 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1551 | break | |
1552 | elif test -f $ac_dir/install.sh; then | |
1553 | ac_aux_dir=$ac_dir | |
1554 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1555 | break | |
1556 | elif test -f $ac_dir/shtool; then | |
1557 | ac_aux_dir=$ac_dir | |
1558 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1559 | break | |
1560 | fi | |
1561 | done | |
1562 | if test -z "$ac_aux_dir"; then | |
1563 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1564 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1565 | { (exit 1); exit 1; }; } | |
1566 | fi | |
1567 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1568 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1569 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1570 | ||
1571 | # Make sure we can run config.sub. | |
1572 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1573 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1574 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1575 | { (exit 1); exit 1; }; } | |
1576 | ||
1577 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1578 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1579 | if test "${ac_cv_build+set}" = set; then | |
1580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1581 | else | |
1582 | ac_cv_build_alias=$build_alias | |
1583 | test -z "$ac_cv_build_alias" && | |
1584 | ac_cv_build_alias=`$ac_config_guess` | |
1585 | test -z "$ac_cv_build_alias" && | |
1586 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1587 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1588 | { (exit 1); exit 1; }; } | |
1589 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1590 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1591 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1592 | { (exit 1); exit 1; }; } | |
1593 | ||
1594 | fi | |
1595 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1596 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1597 | build=$ac_cv_build | |
1598 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1599 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1600 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1601 | ||
1602 | ||
1603 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1604 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1605 | if test "${ac_cv_host+set}" = set; then | |
1606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1607 | else | |
1608 | ac_cv_host_alias=$host_alias | |
1609 | test -z "$ac_cv_host_alias" && | |
1610 | ac_cv_host_alias=$ac_cv_build_alias | |
1611 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1612 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1613 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1614 | { (exit 1); exit 1; }; } | |
1615 | ||
1616 | fi | |
1617 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1618 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1619 | host=$ac_cv_host | |
1620 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1621 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1622 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1623 | ||
1624 | ||
1625 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1626 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1627 | if test "${ac_cv_target+set}" = set; then | |
1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1629 | else | |
1630 | ac_cv_target_alias=$target_alias | |
1631 | test "x$ac_cv_target_alias" = "x" && | |
1632 | ac_cv_target_alias=$ac_cv_host_alias | |
1633 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1634 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1635 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1636 | { (exit 1); exit 1; }; } | |
1637 | ||
1638 | fi | |
1639 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1640 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1641 | target=$ac_cv_target | |
1642 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1643 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1644 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1645 | ||
1646 | ||
1647 | # The aliases save the names the user supplied, while $host etc. | |
1648 | # will get canonicalized. | |
1649 | test -n "$target_alias" && | |
1650 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1651 | NONENONEs,x,x, && | |
1652 | program_prefix=${target_alias}- | |
1653 | ||
1654 | ||
1655 | ||
ceec2216 RL |
1656 | wx_major_version_number=2 |
1657 | wx_minor_version_number=5 | |
7714864e | 1658 | wx_release_number=3 |
0210f373 | 1659 | wx_subrelease_number=3 |
a848cd7e | 1660 | |
ceec2216 RL |
1661 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1662 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1663 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1664 | |
ceec2216 | 1665 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1666 | |
e653e181 | 1667 | WX_CURRENT=3 |
a848cd7e | 1668 | WX_REVISION=0 |
0210f373 | 1669 | WX_AGE=3 |
a848cd7e SC |
1670 | |
1671 | ||
1672 | ||
1673 | USE_UNIX=1 | |
1674 | USE_OS2=0 | |
1675 | USE_WIN32=0 | |
1676 | USE_DOS=0 | |
1677 | USE_BEOS=0 | |
1678 | USE_MAC=0 | |
1679 | ||
1680 | USE_AIX= | |
1681 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1682 | USE_GNU= USE_HPUX= | |
1683 | USE_LINUX= | |
1684 | USE_NETBSD= | |
1685 | USE_OPENBSD= | |
1686 | USE_OSF= USE_SGI= | |
1687 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1688 | USE_ULTRIX= | |
1689 | USE_UNIXWARE= | |
1690 | ||
1691 | USE_ALPHA= | |
1692 | ||
1693 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1694 | ||
1695 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1696 | ||
1697 | DEFAULT_wxUSE_COCOA=0 | |
1698 | DEFAULT_wxUSE_GTK=0 | |
1699 | DEFAULT_wxUSE_MAC=0 | |
1700 | DEFAULT_wxUSE_MGL=0 | |
1701 | DEFAULT_wxUSE_MICROWIN=0 | |
1702 | DEFAULT_wxUSE_MOTIF=0 | |
1703 | DEFAULT_wxUSE_MSW=0 | |
1704 | DEFAULT_wxUSE_PM=0 | |
1705 | DEFAULT_wxUSE_X11=0 | |
1706 | ||
1707 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1716 | ||
1717 | PROGRAM_EXT= | |
1718 | SO_SUFFIX=so | |
1719 | SAMPLES_RPATH_FLAG= | |
1720 | SAMPLES_RPATH_POSTLINK= | |
1721 | ||
1722 | case "${host}" in | |
1723 | *-hp-hpux* ) | |
1724 | USE_HPUX=1 | |
1725 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1726 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1727 | SO_SUFFIX=sl | |
1728 | cat >>confdefs.h <<\_ACEOF | |
1729 | #define __HPUX__ 1 | |
1730 | _ACEOF | |
1731 | ||
1732 | ;; | |
1733 | *-*-linux* ) | |
1734 | USE_LINUX=1 | |
1735 | cat >>confdefs.h <<\_ACEOF | |
1736 | #define __LINUX__ 1 | |
1737 | _ACEOF | |
1738 | ||
1739 | TMP=`uname -m` | |
1740 | if test "x$TMP" = "xalpha"; then | |
1741 | USE_ALPHA=1 | |
1742 | cat >>confdefs.h <<\_ACEOF | |
1743 | #define __ALPHA__ 1 | |
1744 | _ACEOF | |
1745 | ||
1746 | fi | |
1747 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1748 | ;; | |
1749 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1750 | USE_GNU=1 | |
1751 | TMP=`uname -m` | |
1752 | if test "x$TMP" = "xalpha"; then | |
1753 | USE_ALPHA=1 | |
1754 | cat >>confdefs.h <<\_ACEOF | |
1755 | #define __ALPHA__ 1 | |
1756 | _ACEOF | |
1757 | ||
1758 | fi | |
1759 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1760 | ;; | |
1761 | *-*-irix5* | *-*-irix6* ) | |
1762 | USE_SGI=1 | |
1763 | USE_SVR4=1 | |
1764 | cat >>confdefs.h <<\_ACEOF | |
1765 | #define __SGI__ 1 | |
1766 | _ACEOF | |
1767 | ||
1768 | cat >>confdefs.h <<\_ACEOF | |
1769 | #define __SVR4__ 1 | |
1770 | _ACEOF | |
1771 | ||
1772 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1773 | ;; | |
1774 | *-*-solaris2* ) | |
1775 | USE_SUN=1 | |
1776 | USE_SOLARIS=1 | |
1777 | USE_SVR4=1 | |
1778 | cat >>confdefs.h <<\_ACEOF | |
1779 | #define __SUN__ 1 | |
1780 | _ACEOF | |
1781 | ||
1782 | cat >>confdefs.h <<\_ACEOF | |
1783 | #define __SOLARIS__ 1 | |
1784 | _ACEOF | |
1785 | ||
1786 | cat >>confdefs.h <<\_ACEOF | |
1787 | #define __SVR4__ 1 | |
1788 | _ACEOF | |
1789 | ||
1790 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1791 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1792 | ;; | |
1793 | *-*-sunos4* ) | |
1794 | USE_SUN=1 | |
1795 | USE_SUNOS=1 | |
1796 | USE_BSD=1 | |
1797 | cat >>confdefs.h <<\_ACEOF | |
1798 | #define __SUN__ 1 | |
1799 | _ACEOF | |
1800 | ||
1801 | cat >>confdefs.h <<\_ACEOF | |
1802 | #define __SUNOS__ 1 | |
1803 | _ACEOF | |
1804 | ||
1805 | cat >>confdefs.h <<\_ACEOF | |
1806 | #define __BSD__ 1 | |
1807 | _ACEOF | |
1808 | ||
1809 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1810 | ;; | |
1811 | *-*-freebsd*) | |
1812 | USE_BSD=1 | |
1813 | USE_FREEBSD=1 | |
1814 | cat >>confdefs.h <<\_ACEOF | |
1815 | #define __FREEBSD__ 1 | |
1816 | _ACEOF | |
1817 | ||
1818 | cat >>confdefs.h <<\_ACEOF | |
1819 | #define __BSD__ 1 | |
1820 | _ACEOF | |
1821 | ||
1822 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1823 | ;; | |
1824 | *-*-openbsd*) | |
1825 | USE_BSD=1 | |
1826 | USE_OPENBSD=1 | |
1827 | cat >>confdefs.h <<\_ACEOF | |
1828 | #define __OPENBSD__ 1 | |
1829 | _ACEOF | |
1830 | ||
1831 | cat >>confdefs.h <<\_ACEOF | |
1832 | #define __BSD__ 1 | |
1833 | _ACEOF | |
1834 | ||
1835 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1836 | ;; | |
1837 | *-*-netbsd*) | |
1838 | USE_BSD=1 | |
1839 | USE_NETBSD=1 | |
1840 | cat >>confdefs.h <<\_ACEOF | |
1841 | #define __NETBSD__ 1 | |
1842 | _ACEOF | |
1843 | ||
1844 | cat >>confdefs.h <<\_ACEOF | |
1845 | #define __BSD__ 1 | |
1846 | _ACEOF | |
1847 | ||
1848 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1849 | ;; | |
1850 | *-*-osf* ) | |
1851 | USE_ALPHA=1 | |
1852 | USE_OSF=1 | |
1853 | cat >>confdefs.h <<\_ACEOF | |
1854 | #define __ALPHA__ 1 | |
1855 | _ACEOF | |
1856 | ||
1857 | cat >>confdefs.h <<\_ACEOF | |
1858 | #define __OSF__ 1 | |
1859 | _ACEOF | |
1860 | ||
1861 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1862 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1863 | ;; | |
1864 | *-*-dgux5* ) | |
1865 | USE_ALPHA=1 | |
1866 | USE_SVR4=1 | |
1867 | cat >>confdefs.h <<\_ACEOF | |
1868 | #define __ALPHA__ 1 | |
1869 | _ACEOF | |
1870 | ||
1871 | cat >>confdefs.h <<\_ACEOF | |
1872 | #define __SVR4__ 1 | |
1873 | _ACEOF | |
1874 | ||
1875 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1876 | ;; | |
1877 | *-*-sysv5* ) | |
1878 | USE_SYSV=1 | |
1879 | USE_SVR4=1 | |
1880 | cat >>confdefs.h <<\_ACEOF | |
1881 | #define __SYSV__ 1 | |
1882 | _ACEOF | |
1883 | ||
1884 | cat >>confdefs.h <<\_ACEOF | |
1885 | #define __SVR4__ 1 | |
1886 | _ACEOF | |
1887 | ||
1888 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1889 | ;; | |
1890 | *-*-aix* ) | |
1891 | USE_AIX=1 | |
1892 | USE_SYSV=1 | |
1893 | USE_SVR4=1 | |
1894 | SO_SUFFIX=a | |
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __AIX__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | cat >>confdefs.h <<\_ACEOF | |
1900 | #define __SYSV__ 1 | |
1901 | _ACEOF | |
1902 | ||
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __SVR4__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1908 | ;; | |
1909 | ||
1910 | *-*-*UnixWare*) | |
1911 | USE_SYSV=1 | |
1912 | USE_SVR4=1 | |
1913 | USE_UNIXWARE=1 | |
1914 | cat >>confdefs.h <<\_ACEOF | |
1915 | #define __UNIXWARE__ 1 | |
1916 | _ACEOF | |
1917 | ||
1918 | ;; | |
1919 | ||
1920 | *-*-cygwin* | *-*-mingw32* ) | |
1921 | SO_SUFFIX=dll | |
1922 | PROGRAM_EXT=".exe" | |
1923 | RESCOMP=windres | |
1924 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1925 | ;; | |
1926 | ||
1927 | *-pc-msdosdjgpp ) | |
1928 | USE_UNIX=0 | |
1929 | USE_DOS=1 | |
1930 | cat >>confdefs.h <<\_ACEOF | |
1931 | #define __DOS__ 1 | |
1932 | _ACEOF | |
1933 | ||
1934 | PROGRAM_EXT=".exe" | |
1935 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1936 | LIBS="$LIBS -lstdc++" | |
1937 | ;; | |
1938 | ||
1939 | *-pc-os2_emx | *-pc-os2-emx ) | |
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __EMX__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | USE_OS2=1 | |
1945 | cat >>confdefs.h <<\_ACEOF | |
1946 | #define __OS2__ 1 | |
1947 | _ACEOF | |
1948 | ||
1949 | PROGRAM_EXT=".exe" | |
1950 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1951 | CXX=gcc | |
1952 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1953 | ac_executable_extensions=".exe" | |
1954 | export ac_executable_extensions | |
1955 | ac_save_IFS="$IFS" | |
1956 | IFS='\\' | |
1957 | ac_TEMP_PATH= | |
1958 | for ac_dir in $PATH; do | |
1959 | IFS=$ac_save_IFS | |
1960 | if test -z "$ac_TEMP_PATH"; then | |
1961 | ac_TEMP_PATH="$ac_dir" | |
1962 | else | |
1963 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1964 | fi | |
1965 | done | |
1966 | export PATH="$ac_TEMP_PATH" | |
1967 | unset ac_TEMP_PATH | |
1968 | ;; | |
1969 | ||
1970 | powerpc-*-darwin* ) | |
1971 | USE_BSD=1 | |
1972 | USE_DARWIN=1 | |
1973 | SO_SUFFIX=dylib | |
1974 | cat >>confdefs.h <<\_ACEOF | |
1975 | #define __BSD__ 1 | |
1976 | _ACEOF | |
1977 | ||
1978 | cat >>confdefs.h <<\_ACEOF | |
1979 | #define __DARWIN__ 1 | |
1980 | _ACEOF | |
1981 | ||
1982 | cat >>confdefs.h <<\_ACEOF | |
1983 | #define __POWERPC__ 1 | |
1984 | _ACEOF | |
1985 | ||
1986 | cat >>confdefs.h <<\_ACEOF | |
1987 | #define TARGET_CARBON 1 | |
1988 | _ACEOF | |
1989 | ||
1990 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1991 | ;; | |
1e9e8aba DE |
1992 | powerpc-apple-macos* ) |
1993 | USE_UNIX=0 | |
1994 | ac_cv_c_bigendian=yes | |
1995 | SO_SUFFIX=shlib | |
1996 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1997 | ;; | |
a848cd7e SC |
1998 | |
1999 | *-*-beos* ) | |
2000 | USE_BEOS=1 | |
2001 | cat >>confdefs.h <<\_ACEOF | |
2002 | #define __BEOS__ 1 | |
2003 | _ACEOF | |
2004 | ||
2005 | ;; | |
2006 | ||
2007 | *) | |
2008 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2009 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2010 | { (exit 1); exit 1; }; } | |
2011 | esac | |
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | wx_arg_cache_file="configarg.cache" | |
2017 | echo "loading argument cache $wx_arg_cache_file" | |
2018 | rm -f ${wx_arg_cache_file}.tmp | |
2019 | touch ${wx_arg_cache_file}.tmp | |
2020 | touch ${wx_arg_cache_file} | |
2021 | ||
2022 | ||
2023 | DEBUG_CONFIGURE=0 | |
2024 | if test $DEBUG_CONFIGURE = 1; then | |
2025 | DEFAULT_wxUSE_UNIVERSAL=no | |
2026 | DEFAULT_wxUSE_STL=no | |
2027 | ||
2028 | DEFAULT_wxUSE_NANOX=no | |
2029 | ||
2030 | DEFAULT_wxUSE_THREADS=yes | |
2031 | ||
2032 | DEFAULT_wxUSE_SHARED=yes | |
2033 | DEFAULT_wxUSE_OPTIMISE=no | |
2034 | DEFAULT_wxUSE_PROFILE=no | |
2035 | DEFAULT_wxUSE_NO_DEPS=no | |
2036 | DEFAULT_wxUSE_NO_RTTI=no | |
2037 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2038 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2039 | DEFAULT_wxUSE_PERMISSIVE=no |
2040 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2041 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2042 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2043 | DEFAULT_wxUSE_MEM_TRACING=no | |
2044 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2045 | DEFAULT_wxUSE_DMALLOC=no | |
2046 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2047 | ||
2048 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2049 | DEFAULT_wxUSE_LOG=yes | |
2050 | DEFAULT_wxUSE_LOGWINDOW=no | |
2051 | DEFAULT_wxUSE_LOGGUI=no | |
2052 | DEFAULT_wxUSE_LOGDIALOG=no | |
2053 | ||
2054 | DEFAULT_wxUSE_GUI=yes | |
2055 | DEFAULT_wxUSE_CONTROLS=no | |
2056 | ||
2057 | DEFAULT_wxUSE_REGEX=no | |
2058 | DEFAULT_wxUSE_XML=no | |
2059 | DEFAULT_wxUSE_EXPAT=no | |
2060 | DEFAULT_wxUSE_ZLIB=no | |
2061 | DEFAULT_wxUSE_LIBPNG=no | |
2062 | DEFAULT_wxUSE_LIBJPEG=no | |
2063 | DEFAULT_wxUSE_LIBTIFF=no | |
2064 | DEFAULT_wxUSE_LIBXPM=no | |
2065 | DEFAULT_wxUSE_LIBMSPACK=no | |
2066 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2067 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2068 | DEFAULT_wxUSE_ODBC=no |
2069 | DEFAULT_wxUSE_OPENGL=no | |
2070 | ||
2071 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2072 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2073 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2074 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2075 | DEFAULT_wxUSE_DATETIME=no | |
2076 | DEFAULT_wxUSE_TIMER=no | |
2077 | DEFAULT_wxUSE_STOPWATCH=no | |
2078 | DEFAULT_wxUSE_FILE=no | |
2079 | DEFAULT_wxUSE_FFILE=no | |
2080 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2081 | DEFAULT_wxUSE_TEXTFILE=no | |
2082 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2083 | DEFAULT_wxUSE_MEDIACTRL=no |
2084 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2085 | DEFAULT_wxUSE_INTL=no |
2086 | DEFAULT_wxUSE_CONFIG=no | |
2087 | DEFAULT_wxUSE_FONTMAP=no | |
2088 | DEFAULT_wxUSE_STREAMS=no | |
2089 | DEFAULT_wxUSE_SOCKETS=no | |
2090 | DEFAULT_wxUSE_OLE=no | |
2091 | DEFAULT_wxUSE_DATAOBJ=no | |
2092 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2093 | DEFAULT_wxUSE_JOYSTICK=no | |
2094 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2095 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2096 | DEFAULT_wxUSE_LONGLONG=no | |
2097 | DEFAULT_wxUSE_GEOMETRY=no | |
2098 | ||
2099 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2100 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2101 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2102 | ||
2103 | DEFAULT_wxUSE_CLIPBOARD=no | |
2104 | DEFAULT_wxUSE_TOOLTIPS=no | |
2105 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2106 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2107 | DEFAULT_wxUSE_SPLINES=no | |
2108 | ||
8a7b1113 | 2109 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2110 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2111 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2112 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2113 | ||
2114 | DEFAULT_wxUSE_RESOURCES=no | |
2115 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2116 | DEFAULT_wxUSE_IPC=no | |
2117 | DEFAULT_wxUSE_HELP=no | |
2118 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2119 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2120 | DEFAULT_wxUSE_TREELAYOUT=no | |
2121 | DEFAULT_wxUSE_METAFILE=no | |
2122 | DEFAULT_wxUSE_MIMETYPE=no | |
2123 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2124 | DEFAULT_wxUSE_PROTOCOL=no | |
2125 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2126 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2127 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2128 | DEFAULT_wxUSE_URL=no | |
2129 | ||
2130 | DEFAULT_wxUSE_COMMONDLGS=no | |
2131 | DEFAULT_wxUSE_CHOICEDLG=no | |
2132 | DEFAULT_wxUSE_COLOURDLG=no | |
2133 | DEFAULT_wxUSE_DIRDLG=no | |
2134 | DEFAULT_wxUSE_FILEDLG=no | |
2135 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2136 | DEFAULT_wxUSE_FONTDLG=no | |
2137 | DEFAULT_wxUSE_MSGDLG=no | |
2138 | DEFAULT_wxUSE_NUMBERDLG=no | |
2139 | DEFAULT_wxUSE_TEXTDLG=no | |
2140 | DEFAULT_wxUSE_SPLASH=no | |
2141 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2142 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2143 | DEFAULT_wxUSE_WIZARDDLG=no | |
2144 | ||
2145 | DEFAULT_wxUSE_MENUS=no | |
2146 | DEFAULT_wxUSE_MINIFRAME=no | |
2147 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2148 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2149 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2150 | DEFAULT_wxUSE_FILESYSTEM=no |
2151 | DEFAULT_wxUSE_FS_INET=no | |
2152 | DEFAULT_wxUSE_FS_ZIP=no | |
2153 | DEFAULT_wxUSE_BUSYINFO=no | |
2154 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2155 | DEFAULT_wxUSE_VALIDATORS=no |
2156 | ||
2157 | DEFAULT_wxUSE_ACCEL=no | |
2158 | DEFAULT_wxUSE_BUTTON=no | |
2159 | DEFAULT_wxUSE_BMPBUTTON=no | |
2160 | DEFAULT_wxUSE_CALCTRL=no | |
2161 | DEFAULT_wxUSE_CARET=no | |
2162 | DEFAULT_wxUSE_CHECKBOX=no | |
2163 | DEFAULT_wxUSE_CHECKLST=no | |
2164 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2165 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2166 | DEFAULT_wxUSE_COMBOBOX=no |
2167 | DEFAULT_wxUSE_DISPLAY=no | |
2168 | DEFAULT_wxUSE_GAUGE=no | |
2169 | DEFAULT_wxUSE_GRID=no | |
2170 | DEFAULT_wxUSE_IMAGLIST=no | |
2171 | DEFAULT_wxUSE_LISTBOOK=no | |
2172 | DEFAULT_wxUSE_LISTBOX=no | |
2173 | DEFAULT_wxUSE_LISTCTRL=no | |
2174 | DEFAULT_wxUSE_NOTEBOOK=no | |
2175 | DEFAULT_wxUSE_RADIOBOX=no | |
2176 | DEFAULT_wxUSE_RADIOBTN=no | |
2177 | DEFAULT_wxUSE_SASH=no | |
2178 | DEFAULT_wxUSE_SCROLLBAR=no | |
2179 | DEFAULT_wxUSE_SLIDER=no | |
2180 | DEFAULT_wxUSE_SPINBTN=no | |
2181 | DEFAULT_wxUSE_SPINCTRL=no | |
2182 | DEFAULT_wxUSE_SPLITTER=no | |
2183 | DEFAULT_wxUSE_STATBMP=no | |
2184 | DEFAULT_wxUSE_STATBOX=no | |
2185 | DEFAULT_wxUSE_STATLINE=no | |
2186 | DEFAULT_wxUSE_STATTEXT=no | |
2187 | DEFAULT_wxUSE_STATUSBAR=yes | |
2188 | DEFAULT_wxUSE_TABDIALOG=no | |
2189 | DEFAULT_wxUSE_TEXTCTRL=no | |
2190 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2191 | DEFAULT_wxUSE_TOOLBAR=no | |
2192 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2193 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2194 | DEFAULT_wxUSE_TREECTRL=no | |
2195 | DEFAULT_wxUSE_POPUPWIN=no | |
2196 | DEFAULT_wxUSE_TIPWINDOW=no | |
2197 | ||
2198 | DEFAULT_wxUSE_UNICODE=no | |
2199 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2200 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2201 | ||
2202 | DEFAULT_wxUSE_PALETTE=no | |
2203 | DEFAULT_wxUSE_IMAGE=no | |
2204 | DEFAULT_wxUSE_GIF=no | |
2205 | DEFAULT_wxUSE_PCX=no | |
2206 | DEFAULT_wxUSE_PNM=no | |
2207 | DEFAULT_wxUSE_IFF=no | |
2208 | DEFAULT_wxUSE_XPM=no | |
2209 | DEFAULT_wxUSE_ICO_CUR=no | |
2210 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2211 | ||
2212 | DEFAULT_wxUSE_MONOLITHIC=no | |
2213 | DEFAULT_wxUSE_PLUGINS=no | |
2214 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2215 | else | |
2216 | DEFAULT_wxUSE_UNIVERSAL=no | |
2217 | DEFAULT_wxUSE_STL=no | |
2218 | ||
2219 | DEFAULT_wxUSE_NANOX=no | |
2220 | ||
2221 | DEFAULT_wxUSE_THREADS=yes | |
2222 | ||
2223 | DEFAULT_wxUSE_SHARED=yes | |
2224 | DEFAULT_wxUSE_OPTIMISE=yes | |
2225 | DEFAULT_wxUSE_PROFILE=no | |
2226 | DEFAULT_wxUSE_NO_DEPS=no | |
2227 | DEFAULT_wxUSE_NO_RTTI=no | |
2228 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2229 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2230 | DEFAULT_wxUSE_PERMISSIVE=no |
2231 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2232 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2233 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2234 | DEFAULT_wxUSE_MEM_TRACING=no | |
2235 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2236 | DEFAULT_wxUSE_DMALLOC=no | |
2237 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2238 | ||
2239 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2240 | DEFAULT_wxUSE_LOG=yes | |
2241 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2242 | DEFAULT_wxUSE_LOGGUI=yes | |
2243 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2244 | ||
2245 | DEFAULT_wxUSE_GUI=yes | |
2246 | ||
2247 | DEFAULT_wxUSE_REGEX=yes | |
2248 | DEFAULT_wxUSE_XML=yes | |
2249 | DEFAULT_wxUSE_EXPAT=yes | |
2250 | DEFAULT_wxUSE_ZLIB=yes | |
2251 | DEFAULT_wxUSE_LIBPNG=yes | |
2252 | DEFAULT_wxUSE_LIBJPEG=yes | |
2253 | DEFAULT_wxUSE_LIBTIFF=yes | |
2254 | DEFAULT_wxUSE_LIBXPM=yes | |
2255 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2256 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2257 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2258 | DEFAULT_wxUSE_ODBC=no |
2259 | DEFAULT_wxUSE_OPENGL=no | |
2260 | ||
2261 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2262 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2263 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2264 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2265 | DEFAULT_wxUSE_DATETIME=yes | |
2266 | DEFAULT_wxUSE_TIMER=yes | |
2267 | DEFAULT_wxUSE_STOPWATCH=yes | |
2268 | DEFAULT_wxUSE_FILE=yes | |
2269 | DEFAULT_wxUSE_FFILE=yes | |
2270 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2271 | DEFAULT_wxUSE_TEXTFILE=yes | |
2272 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2273 | DEFAULT_wxUSE_MEDIACTRL=no |
2274 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2275 | DEFAULT_wxUSE_INTL=yes |
2276 | DEFAULT_wxUSE_CONFIG=yes | |
2277 | DEFAULT_wxUSE_FONTMAP=yes | |
2278 | DEFAULT_wxUSE_STREAMS=yes | |
2279 | DEFAULT_wxUSE_SOCKETS=yes | |
2280 | DEFAULT_wxUSE_OLE=yes | |
2281 | DEFAULT_wxUSE_DATAOBJ=yes | |
2282 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2283 | DEFAULT_wxUSE_JOYSTICK=yes | |
2284 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2285 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2286 | DEFAULT_wxUSE_LONGLONG=yes | |
2287 | DEFAULT_wxUSE_GEOMETRY=yes | |
2288 | ||
2289 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2290 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2291 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2292 | ||
2293 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2294 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2295 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2296 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2297 | DEFAULT_wxUSE_SPLINES=yes | |
2298 | ||
8a7b1113 | 2299 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2300 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2301 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2302 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2303 | ||
2304 | DEFAULT_wxUSE_RESOURCES=no | |
2305 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2306 | DEFAULT_wxUSE_IPC=yes | |
2307 | DEFAULT_wxUSE_HELP=yes | |
2308 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2309 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2310 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2311 | DEFAULT_wxUSE_METAFILE=yes | |
2312 | DEFAULT_wxUSE_MIMETYPE=yes | |
2313 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2314 | DEFAULT_wxUSE_PROTOCOL=yes | |
2315 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2316 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2317 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2318 | DEFAULT_wxUSE_URL=yes | |
2319 | ||
2320 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2321 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2322 | DEFAULT_wxUSE_COLOURDLG=yes | |
2323 | DEFAULT_wxUSE_DIRDLG=yes | |
2324 | DEFAULT_wxUSE_FILEDLG=yes | |
2325 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2326 | DEFAULT_wxUSE_FONTDLG=yes | |
2327 | DEFAULT_wxUSE_MSGDLG=yes | |
2328 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2329 | DEFAULT_wxUSE_TEXTDLG=yes | |
2330 | DEFAULT_wxUSE_SPLASH=yes | |
2331 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2332 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2333 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2334 | ||
2335 | DEFAULT_wxUSE_MENUS=yes | |
2336 | DEFAULT_wxUSE_MINIFRAME=yes | |
2337 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2338 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2339 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2340 | DEFAULT_wxUSE_FILESYSTEM=yes |
2341 | DEFAULT_wxUSE_FS_INET=yes | |
2342 | DEFAULT_wxUSE_FS_ZIP=yes | |
2343 | DEFAULT_wxUSE_BUSYINFO=yes | |
2344 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2345 | DEFAULT_wxUSE_VALIDATORS=yes |
2346 | ||
2347 | DEFAULT_wxUSE_ACCEL=yes | |
2348 | DEFAULT_wxUSE_BUTTON=yes | |
2349 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2350 | DEFAULT_wxUSE_CALCTRL=yes | |
2351 | DEFAULT_wxUSE_CARET=yes | |
2352 | DEFAULT_wxUSE_CHECKBOX=yes | |
2353 | DEFAULT_wxUSE_CHECKLST=yes | |
2354 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2355 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2356 | DEFAULT_wxUSE_COMBOBOX=yes |
2357 | DEFAULT_wxUSE_DISPLAY=yes | |
2358 | DEFAULT_wxUSE_GAUGE=yes | |
2359 | DEFAULT_wxUSE_GRID=yes | |
2360 | DEFAULT_wxUSE_IMAGLIST=yes | |
2361 | DEFAULT_wxUSE_LISTBOOK=yes | |
2362 | DEFAULT_wxUSE_LISTBOX=yes | |
2363 | DEFAULT_wxUSE_LISTCTRL=yes | |
2364 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2365 | DEFAULT_wxUSE_RADIOBOX=yes | |
2366 | DEFAULT_wxUSE_RADIOBTN=yes | |
2367 | DEFAULT_wxUSE_SASH=yes | |
2368 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2369 | DEFAULT_wxUSE_SLIDER=yes | |
2370 | DEFAULT_wxUSE_SPINBTN=yes | |
2371 | DEFAULT_wxUSE_SPINCTRL=yes | |
2372 | DEFAULT_wxUSE_SPLITTER=yes | |
2373 | DEFAULT_wxUSE_STATBMP=yes | |
2374 | DEFAULT_wxUSE_STATBOX=yes | |
2375 | DEFAULT_wxUSE_STATLINE=yes | |
2376 | DEFAULT_wxUSE_STATTEXT=yes | |
2377 | DEFAULT_wxUSE_STATUSBAR=yes | |
2378 | DEFAULT_wxUSE_TABDIALOG=no | |
2379 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2380 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2381 | DEFAULT_wxUSE_TOOLBAR=yes | |
2382 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2383 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2384 | DEFAULT_wxUSE_TREECTRL=yes | |
2385 | DEFAULT_wxUSE_POPUPWIN=yes | |
2386 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2387 | ||
2388 | DEFAULT_wxUSE_UNICODE=no | |
2389 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2390 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2391 | ||
2392 | DEFAULT_wxUSE_PALETTE=yes | |
2393 | DEFAULT_wxUSE_IMAGE=yes | |
2394 | DEFAULT_wxUSE_GIF=yes | |
2395 | DEFAULT_wxUSE_PCX=yes | |
2396 | DEFAULT_wxUSE_IFF=no | |
2397 | DEFAULT_wxUSE_PNM=yes | |
2398 | DEFAULT_wxUSE_XPM=yes | |
2399 | DEFAULT_wxUSE_ICO_CUR=yes | |
2400 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2401 | ||
2402 | DEFAULT_wxUSE_MONOLITHIC=no | |
2403 | DEFAULT_wxUSE_PLUGINS=no | |
2404 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2405 | |
2406 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2407 | fi |
2408 | ||
2409 | ||
2410 | ||
2411 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2412 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2413 | if test "x$LINE" != "x" ; then | |
2414 | has_toolkit_in_cache=1 | |
2415 | eval "DEFAULT_$LINE" | |
2416 | eval "CACHE_$toolkit=1" | |
2417 | fi | |
2418 | done | |
2419 | ||
2420 | ||
2421 | ||
2422 | enablestring= | |
2423 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2424 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2425 | no_cache=0 | |
2426 | # Check whether --enable-gui or --disable-gui was given. | |
2427 | if test "${enable_gui+set}" = set; then | |
2428 | enableval="$enable_gui" | |
2429 | ||
2430 | if test "$enableval" = yes; then | |
2431 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2432 | else | |
2433 | ac_cv_use_gui='wxUSE_GUI=no' | |
2434 | fi | |
2435 | ||
2436 | else | |
2437 | ||
2438 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2439 | if test "x$LINE" != x ; then | |
2440 | eval "DEFAULT_$LINE" | |
2441 | else | |
2442 | no_cache=1 | |
2443 | fi | |
2444 | ||
2445 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2446 | ||
2447 | fi; | |
2448 | ||
2449 | eval "$ac_cv_use_gui" | |
2450 | if test "$no_cache" != 1; then | |
2451 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2452 | fi | |
2453 | ||
2454 | if test "$wxUSE_GUI" = yes; then | |
2455 | echo "$as_me:$LINENO: result: yes" >&5 | |
2456 | echo "${ECHO_T}yes" >&6 | |
2457 | else | |
2458 | echo "$as_me:$LINENO: result: no" >&5 | |
2459 | echo "${ECHO_T}no" >&6 | |
2460 | fi | |
2461 | ||
2462 | ||
2463 | enablestring= | |
2464 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2465 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2466 | no_cache=0 | |
2467 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2468 | if test "${enable_monolithic+set}" = set; then | |
2469 | enableval="$enable_monolithic" | |
2470 | ||
2471 | if test "$enableval" = yes; then | |
2472 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2473 | else | |
2474 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2475 | fi | |
2476 | ||
2477 | else | |
2478 | ||
2479 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2480 | if test "x$LINE" != x ; then | |
2481 | eval "DEFAULT_$LINE" | |
2482 | else | |
2483 | no_cache=1 | |
2484 | fi | |
2485 | ||
2486 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2487 | ||
2488 | fi; | |
2489 | ||
2490 | eval "$ac_cv_use_monolithic" | |
2491 | if test "$no_cache" != 1; then | |
2492 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2493 | fi | |
2494 | ||
2495 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2496 | echo "$as_me:$LINENO: result: yes" >&5 | |
2497 | echo "${ECHO_T}yes" >&6 | |
2498 | else | |
2499 | echo "$as_me:$LINENO: result: no" >&5 | |
2500 | echo "${ECHO_T}no" >&6 | |
2501 | fi | |
2502 | ||
2503 | ||
2504 | enablestring= | |
2505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2506 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2507 | no_cache=0 | |
2508 | # Check whether --enable-plugins or --disable-plugins was given. | |
2509 | if test "${enable_plugins+set}" = set; then | |
2510 | enableval="$enable_plugins" | |
2511 | ||
2512 | if test "$enableval" = yes; then | |
2513 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2514 | else | |
2515 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2516 | fi | |
2517 | ||
2518 | else | |
2519 | ||
2520 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2521 | if test "x$LINE" != x ; then | |
2522 | eval "DEFAULT_$LINE" | |
2523 | else | |
2524 | no_cache=1 | |
2525 | fi | |
2526 | ||
2527 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2528 | ||
2529 | fi; | |
2530 | ||
2531 | eval "$ac_cv_use_plugins" | |
2532 | if test "$no_cache" != 1; then | |
2533 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2534 | fi | |
2535 | ||
2536 | if test "$wxUSE_PLUGINS" = yes; then | |
2537 | echo "$as_me:$LINENO: result: yes" >&5 | |
2538 | echo "${ECHO_T}yes" >&6 | |
2539 | else | |
2540 | echo "$as_me:$LINENO: result: no" >&5 | |
2541 | echo "${ECHO_T}no" >&6 | |
2542 | fi | |
2543 | ||
2544 | ||
2545 | if test "$wxUSE_GUI" = "yes"; then | |
2546 | ||
2547 | ||
2548 | enablestring= | |
2549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2550 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2551 | no_cache=0 | |
2552 | # Check whether --enable-universal or --disable-universal was given. | |
2553 | if test "${enable_universal+set}" = set; then | |
2554 | enableval="$enable_universal" | |
2555 | ||
2556 | if test "$enableval" = yes; then | |
2557 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2558 | else | |
2559 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2560 | fi | |
2561 | ||
2562 | else | |
2563 | ||
2564 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2565 | if test "x$LINE" != x ; then | |
2566 | eval "DEFAULT_$LINE" | |
2567 | else | |
2568 | no_cache=1 | |
2569 | fi | |
2570 | ||
2571 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2572 | ||
2573 | fi; | |
2574 | ||
2575 | eval "$ac_cv_use_universal" | |
2576 | if test "$no_cache" != 1; then | |
2577 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2578 | fi | |
2579 | ||
2580 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2581 | echo "$as_me:$LINENO: result: yes" >&5 | |
2582 | echo "${ECHO_T}yes" >&6 | |
2583 | else | |
2584 | echo "$as_me:$LINENO: result: no" >&5 | |
2585 | echo "${ECHO_T}no" >&6 | |
2586 | fi | |
2587 | ||
2588 | ||
2589 | # Check whether --with-gtk or --without-gtk was given. | |
2590 | if test "${with_gtk+set}" = set; then | |
2591 | withval="$with_gtk" | |
2592 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2593 | fi; | |
2594 | ||
2595 | # Check whether --with-motif or --without-motif was given. | |
2596 | if test "${with_motif+set}" = set; then | |
2597 | withval="$with_motif" | |
2598 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2599 | fi; | |
2600 | ||
2601 | # Check whether --with-mac or --without-mac was given. | |
2602 | if test "${with_mac+set}" = set; then | |
2603 | withval="$with_mac" | |
c228d3a4 | 2604 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2605 | fi; |
2606 | ||
2607 | # Check whether --with-cocoa or --without-cocoa was given. | |
2608 | if test "${with_cocoa+set}" = set; then | |
2609 | withval="$with_cocoa" | |
c228d3a4 | 2610 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2611 | fi; |
2612 | ||
2613 | # Check whether --with-wine or --without-wine was given. | |
2614 | if test "${with_wine+set}" = set; then | |
2615 | withval="$with_wine" | |
2616 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2617 | fi; | |
2618 | ||
2619 | # Check whether --with-msw or --without-msw was given. | |
2620 | if test "${with_msw+set}" = set; then | |
2621 | withval="$with_msw" | |
2622 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2623 | fi; | |
2624 | ||
2625 | # Check whether --with-pm or --without-pm was given. | |
2626 | if test "${with_pm+set}" = set; then | |
2627 | withval="$with_pm" | |
2628 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2629 | fi; | |
2630 | ||
2631 | # Check whether --with-mgl or --without-mgl was given. | |
2632 | if test "${with_mgl+set}" = set; then | |
2633 | withval="$with_mgl" | |
2634 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2635 | fi; | |
2636 | ||
2637 | # Check whether --with-microwin or --without-microwin was given. | |
2638 | if test "${with_microwin+set}" = set; then | |
2639 | withval="$with_microwin" | |
2640 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2641 | fi; | |
2642 | ||
2643 | # Check whether --with-x11 or --without-x11 was given. | |
2644 | if test "${with_x11+set}" = set; then | |
2645 | withval="$with_x11" | |
2646 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2647 | fi; | |
2648 | ||
2649 | enablestring= | |
2650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2651 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2652 | no_cache=0 | |
2653 | # Check whether --enable-nanox or --disable-nanox was given. | |
2654 | if test "${enable_nanox+set}" = set; then | |
2655 | enableval="$enable_nanox" | |
2656 | ||
2657 | if test "$enableval" = yes; then | |
2658 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2659 | else | |
2660 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2661 | fi | |
2662 | ||
2663 | else | |
2664 | ||
2665 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2666 | if test "x$LINE" != x ; then | |
2667 | eval "DEFAULT_$LINE" | |
2668 | else | |
2669 | no_cache=1 | |
2670 | fi | |
2671 | ||
2672 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2673 | ||
2674 | fi; | |
2675 | ||
2676 | eval "$ac_cv_use_nanox" | |
2677 | if test "$no_cache" != 1; then | |
2678 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2679 | fi | |
2680 | ||
2681 | if test "$wxUSE_NANOX" = yes; then | |
2682 | echo "$as_me:$LINENO: result: yes" >&5 | |
2683 | echo "${ECHO_T}yes" >&6 | |
2684 | else | |
2685 | echo "$as_me:$LINENO: result: no" >&5 | |
2686 | echo "${ECHO_T}no" >&6 | |
2687 | fi | |
2688 | ||
2689 | ||
2690 | ||
2691 | enablestring= | |
2692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2693 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2694 | no_cache=0 | |
2695 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2696 | if test "${enable_gtk2+set}" = set; then | |
2697 | enableval="$enable_gtk2" | |
2698 | ||
2699 | if test "$enableval" = yes; then | |
2700 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2701 | else | |
2702 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2703 | fi | |
2704 | ||
2705 | else | |
2706 | ||
2707 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2708 | if test "x$LINE" != x ; then | |
2709 | eval "DEFAULT_$LINE" | |
2710 | else | |
2711 | no_cache=1 | |
2712 | fi | |
2713 | ||
2714 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2715 | ||
2716 | fi; | |
2717 | ||
2718 | eval "$ac_cv_use_gtk2" | |
2719 | if test "$no_cache" != 1; then | |
2720 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2721 | fi | |
2722 | ||
2723 | if test "$wxUSE_GTK2" = yes; then | |
2724 | echo "$as_me:$LINENO: result: yes" >&5 | |
2725 | echo "${ECHO_T}yes" >&6 | |
2726 | else | |
2727 | echo "$as_me:$LINENO: result: no" >&5 | |
2728 | echo "${ECHO_T}no" >&6 | |
2729 | fi | |
2730 | ||
2731 | ||
2732 | enablestring= | |
2733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2734 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2735 | no_cache=0 | |
2736 | # Check whether --enable-gpe or --disable-gpe was given. | |
2737 | if test "${enable_gpe+set}" = set; then | |
2738 | enableval="$enable_gpe" | |
2739 | ||
2740 | if test "$enableval" = yes; then | |
2741 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2742 | else | |
2743 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2744 | fi | |
2745 | ||
2746 | else | |
2747 | ||
2748 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2749 | if test "x$LINE" != x ; then | |
2750 | eval "DEFAULT_$LINE" | |
2751 | else | |
2752 | no_cache=1 | |
2753 | fi | |
2754 | ||
2755 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2756 | ||
2757 | fi; | |
2758 | ||
2759 | eval "$ac_cv_use_gpe" | |
2760 | if test "$no_cache" != 1; then | |
2761 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2762 | fi | |
2763 | ||
2764 | if test "$wxUSE_GPE" = yes; then | |
2765 | echo "$as_me:$LINENO: result: yes" >&5 | |
2766 | echo "${ECHO_T}yes" >&6 | |
2767 | else | |
2768 | echo "$as_me:$LINENO: result: no" >&5 | |
2769 | echo "${ECHO_T}no" >&6 | |
2770 | fi | |
2771 | ||
2772 | ||
2773 | ||
2774 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2775 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2776 | no_cache=0 | |
2777 | ||
2778 | # Check whether --with-libpng or --without-libpng was given. | |
2779 | if test "${with_libpng+set}" = set; then | |
2780 | withval="$with_libpng" | |
2781 | ||
2782 | if test "$withval" = yes; then | |
2783 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2784 | elif test "$withval" = no; then | |
2785 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2786 | elif test "$withval" = sys; then | |
2787 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2788 | elif test "$withval" = builtin; then | |
2789 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2790 | else | |
2791 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2792 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2793 | { (exit 1); exit 1; }; } | |
2794 | fi | |
2795 | ||
2796 | else | |
2797 | ||
2798 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2799 | if test "x$LINE" != x ; then | |
2800 | eval "DEFAULT_$LINE" | |
2801 | else | |
2802 | no_cache=1 | |
2803 | fi | |
2804 | ||
2805 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2806 | ||
2807 | fi; | |
2808 | ||
2809 | eval "$ac_cv_use_libpng" | |
2810 | if test "$no_cache" != 1; then | |
2811 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2812 | fi | |
2813 | ||
2814 | if test "$wxUSE_LIBPNG" = yes; then | |
2815 | echo "$as_me:$LINENO: result: yes" >&5 | |
2816 | echo "${ECHO_T}yes" >&6 | |
2817 | elif test "$wxUSE_LIBPNG" = no; then | |
2818 | echo "$as_me:$LINENO: result: no" >&5 | |
2819 | echo "${ECHO_T}no" >&6 | |
2820 | elif test "$wxUSE_LIBPNG" = sys; then | |
2821 | echo "$as_me:$LINENO: result: system version" >&5 | |
2822 | echo "${ECHO_T}system version" >&6 | |
2823 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2824 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2825 | echo "${ECHO_T}builtin version" >&6 | |
2826 | else | |
2827 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2828 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2829 | { (exit 1); exit 1; }; } | |
2830 | fi | |
2831 | ||
2832 | ||
2833 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2834 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2835 | no_cache=0 | |
2836 | ||
2837 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2838 | if test "${with_libjpeg+set}" = set; then | |
2839 | withval="$with_libjpeg" | |
2840 | ||
2841 | if test "$withval" = yes; then | |
2842 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2843 | elif test "$withval" = no; then | |
2844 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2845 | elif test "$withval" = sys; then | |
2846 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2847 | elif test "$withval" = builtin; then | |
2848 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2849 | else | |
2850 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2851 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2852 | { (exit 1); exit 1; }; } | |
2853 | fi | |
2854 | ||
2855 | else | |
2856 | ||
2857 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2858 | if test "x$LINE" != x ; then | |
2859 | eval "DEFAULT_$LINE" | |
2860 | else | |
2861 | no_cache=1 | |
2862 | fi | |
2863 | ||
2864 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2865 | ||
2866 | fi; | |
2867 | ||
2868 | eval "$ac_cv_use_libjpeg" | |
2869 | if test "$no_cache" != 1; then | |
2870 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2871 | fi | |
2872 | ||
2873 | if test "$wxUSE_LIBJPEG" = yes; then | |
2874 | echo "$as_me:$LINENO: result: yes" >&5 | |
2875 | echo "${ECHO_T}yes" >&6 | |
2876 | elif test "$wxUSE_LIBJPEG" = no; then | |
2877 | echo "$as_me:$LINENO: result: no" >&5 | |
2878 | echo "${ECHO_T}no" >&6 | |
2879 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2880 | echo "$as_me:$LINENO: result: system version" >&5 | |
2881 | echo "${ECHO_T}system version" >&6 | |
2882 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2883 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2884 | echo "${ECHO_T}builtin version" >&6 | |
2885 | else | |
2886 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2887 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2888 | { (exit 1); exit 1; }; } | |
2889 | fi | |
2890 | ||
2891 | ||
2892 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2893 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2894 | no_cache=0 | |
2895 | ||
2896 | # Check whether --with-libtiff or --without-libtiff was given. | |
2897 | if test "${with_libtiff+set}" = set; then | |
2898 | withval="$with_libtiff" | |
2899 | ||
2900 | if test "$withval" = yes; then | |
2901 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2902 | elif test "$withval" = no; then | |
2903 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2904 | elif test "$withval" = sys; then | |
2905 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2906 | elif test "$withval" = builtin; then | |
2907 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2908 | else | |
2909 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2910 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2911 | { (exit 1); exit 1; }; } | |
2912 | fi | |
2913 | ||
2914 | else | |
2915 | ||
2916 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2917 | if test "x$LINE" != x ; then | |
2918 | eval "DEFAULT_$LINE" | |
2919 | else | |
2920 | no_cache=1 | |
2921 | fi | |
2922 | ||
2923 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2924 | ||
2925 | fi; | |
2926 | ||
2927 | eval "$ac_cv_use_libtiff" | |
2928 | if test "$no_cache" != 1; then | |
2929 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2930 | fi | |
2931 | ||
2932 | if test "$wxUSE_LIBTIFF" = yes; then | |
2933 | echo "$as_me:$LINENO: result: yes" >&5 | |
2934 | echo "${ECHO_T}yes" >&6 | |
2935 | elif test "$wxUSE_LIBTIFF" = no; then | |
2936 | echo "$as_me:$LINENO: result: no" >&5 | |
2937 | echo "${ECHO_T}no" >&6 | |
2938 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2939 | echo "$as_me:$LINENO: result: system version" >&5 | |
2940 | echo "${ECHO_T}system version" >&6 | |
2941 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2942 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2943 | echo "${ECHO_T}builtin version" >&6 | |
2944 | else | |
2945 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2946 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2947 | { (exit 1); exit 1; }; } | |
2948 | fi | |
2949 | ||
2950 | ||
2951 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2952 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2953 | no_cache=0 | |
2954 | ||
2955 | # Check whether --with-libxpm or --without-libxpm was given. | |
2956 | if test "${with_libxpm+set}" = set; then | |
2957 | withval="$with_libxpm" | |
2958 | ||
2959 | if test "$withval" = yes; then | |
2960 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2961 | elif test "$withval" = no; then | |
2962 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2963 | elif test "$withval" = sys; then | |
2964 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2965 | elif test "$withval" = builtin; then | |
2966 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2967 | else | |
2968 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2969 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2970 | { (exit 1); exit 1; }; } | |
2971 | fi | |
2972 | ||
2973 | else | |
2974 | ||
2975 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2976 | if test "x$LINE" != x ; then | |
2977 | eval "DEFAULT_$LINE" | |
2978 | else | |
2979 | no_cache=1 | |
2980 | fi | |
2981 | ||
2982 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2983 | ||
2984 | fi; | |
2985 | ||
2986 | eval "$ac_cv_use_libxpm" | |
2987 | if test "$no_cache" != 1; then | |
2988 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2989 | fi | |
2990 | ||
2991 | if test "$wxUSE_LIBXPM" = yes; then | |
2992 | echo "$as_me:$LINENO: result: yes" >&5 | |
2993 | echo "${ECHO_T}yes" >&6 | |
2994 | elif test "$wxUSE_LIBXPM" = no; then | |
2995 | echo "$as_me:$LINENO: result: no" >&5 | |
2996 | echo "${ECHO_T}no" >&6 | |
2997 | elif test "$wxUSE_LIBXPM" = sys; then | |
2998 | echo "$as_me:$LINENO: result: system version" >&5 | |
2999 | echo "${ECHO_T}system version" >&6 | |
3000 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3001 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3002 | echo "${ECHO_T}builtin version" >&6 | |
3003 | else | |
3004 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3005 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3006 | { (exit 1); exit 1; }; } | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3011 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3012 | no_cache=0 | |
3013 | ||
3014 | # Check whether --with-libmspack or --without-libmspack was given. | |
3015 | if test "${with_libmspack+set}" = set; then | |
3016 | withval="$with_libmspack" | |
3017 | ||
3018 | if test "$withval" = yes; then | |
3019 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3020 | else | |
3021 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3022 | fi | |
3023 | ||
3024 | else | |
3025 | ||
3026 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3027 | if test "x$LINE" != x ; then | |
3028 | eval "DEFAULT_$LINE" | |
3029 | else | |
3030 | no_cache=1 | |
3031 | fi | |
3032 | ||
3033 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3034 | ||
3035 | fi; | |
3036 | ||
3037 | eval "$ac_cv_use_libmspack" | |
3038 | if test "$no_cache" != 1; then | |
3039 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3040 | fi | |
3041 | ||
3042 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3043 | echo "$as_me:$LINENO: result: yes" >&5 | |
3044 | echo "${ECHO_T}yes" >&6 | |
3045 | else | |
3046 | echo "$as_me:$LINENO: result: no" >&5 | |
3047 | echo "${ECHO_T}no" >&6 | |
3048 | fi | |
3049 | ||
3050 | ||
3051 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3052 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3053 | no_cache=0 | |
3054 | ||
3055 | # Check whether --with-sdl or --without-sdl was given. | |
3056 | if test "${with_sdl+set}" = set; then | |
3057 | withval="$with_sdl" | |
3058 | ||
3059 | if test "$withval" = yes; then | |
3060 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3061 | else | |
3062 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3063 | fi | |
3064 | ||
3065 | else | |
3066 | ||
3067 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3068 | if test "x$LINE" != x ; then | |
3069 | eval "DEFAULT_$LINE" | |
3070 | else | |
3071 | no_cache=1 | |
3072 | fi | |
3073 | ||
3074 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3075 | ||
3076 | fi; | |
3077 | ||
3078 | eval "$ac_cv_use_sdl" | |
3079 | if test "$no_cache" != 1; then | |
3080 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3081 | fi | |
3082 | ||
3083 | if test "$wxUSE_LIBSDL" = yes; then | |
3084 | echo "$as_me:$LINENO: result: yes" >&5 | |
3085 | echo "${ECHO_T}yes" >&6 | |
3086 | else | |
3087 | echo "$as_me:$LINENO: result: no" >&5 | |
3088 | echo "${ECHO_T}no" >&6 | |
3089 | fi | |
3090 | ||
3091 | ||
d1c38808 VZ |
3092 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3093 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3094 | no_cache=0 | |
3095 | ||
3096 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3097 | if test "${with_gnomeprint+set}" = set; then | |
3098 | withval="$with_gnomeprint" | |
3099 | ||
3100 | if test "$withval" = yes; then | |
3101 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3102 | else | |
3103 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3104 | fi | |
3105 | ||
3106 | else | |
3107 | ||
3108 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3109 | if test "x$LINE" != x ; then | |
3110 | eval "DEFAULT_$LINE" | |
3111 | else | |
3112 | no_cache=1 | |
3113 | fi | |
3114 | ||
3115 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3116 | ||
3117 | fi; | |
3118 | ||
3119 | eval "$ac_cv_use_gnomeprint" | |
3120 | if test "$no_cache" != 1; then | |
3121 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3122 | fi | |
3123 | ||
3124 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3125 | echo "$as_me:$LINENO: result: yes" >&5 | |
3126 | echo "${ECHO_T}yes" >&6 | |
3127 | else | |
3128 | echo "$as_me:$LINENO: result: no" >&5 | |
3129 | echo "${ECHO_T}no" >&6 | |
3130 | fi | |
3131 | ||
3132 | ||
a848cd7e SC |
3133 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3134 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3135 | no_cache=0 | |
3136 | ||
3137 | # Check whether --with-opengl or --without-opengl was given. | |
3138 | if test "${with_opengl+set}" = set; then | |
3139 | withval="$with_opengl" | |
3140 | ||
3141 | if test "$withval" = yes; then | |
3142 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3143 | else | |
3144 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3145 | fi | |
3146 | ||
3147 | else | |
3148 | ||
3149 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3150 | if test "x$LINE" != x ; then | |
3151 | eval "DEFAULT_$LINE" | |
3152 | else | |
3153 | no_cache=1 | |
3154 | fi | |
3155 | ||
3156 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3157 | ||
3158 | fi; | |
3159 | ||
3160 | eval "$ac_cv_use_opengl" | |
3161 | if test "$no_cache" != 1; then | |
3162 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3163 | fi | |
3164 | ||
3165 | if test "$wxUSE_OPENGL" = yes; then | |
3166 | echo "$as_me:$LINENO: result: yes" >&5 | |
3167 | echo "${ECHO_T}yes" >&6 | |
3168 | else | |
3169 | echo "$as_me:$LINENO: result: no" >&5 | |
3170 | echo "${ECHO_T}no" >&6 | |
3171 | fi | |
3172 | ||
3173 | ||
3174 | fi | |
3175 | ||
3176 | ||
3177 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3178 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3179 | no_cache=0 | |
3180 | ||
3181 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3182 | if test "${with_dmalloc+set}" = set; then | |
3183 | withval="$with_dmalloc" | |
3184 | ||
3185 | if test "$withval" = yes; then | |
3186 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3187 | else | |
3188 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3189 | fi | |
3190 | ||
3191 | else | |
3192 | ||
3193 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3194 | if test "x$LINE" != x ; then | |
3195 | eval "DEFAULT_$LINE" | |
3196 | else | |
3197 | no_cache=1 | |
3198 | fi | |
3199 | ||
3200 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3201 | ||
3202 | fi; | |
3203 | ||
3204 | eval "$ac_cv_use_dmalloc" | |
3205 | if test "$no_cache" != 1; then | |
3206 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3207 | fi | |
3208 | ||
3209 | if test "$wxUSE_DMALLOC" = yes; then | |
3210 | echo "$as_me:$LINENO: result: yes" >&5 | |
3211 | echo "${ECHO_T}yes" >&6 | |
3212 | else | |
3213 | echo "$as_me:$LINENO: result: no" >&5 | |
3214 | echo "${ECHO_T}no" >&6 | |
3215 | fi | |
3216 | ||
3217 | ||
3218 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3219 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3220 | no_cache=0 | |
3221 | ||
3222 | # Check whether --with-regex or --without-regex was given. | |
3223 | if test "${with_regex+set}" = set; then | |
3224 | withval="$with_regex" | |
3225 | ||
3226 | if test "$withval" = yes; then | |
3227 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3228 | elif test "$withval" = no; then | |
3229 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3230 | elif test "$withval" = sys; then | |
3231 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3232 | elif test "$withval" = builtin; then | |
3233 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3234 | else | |
3235 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3236 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3237 | { (exit 1); exit 1; }; } | |
3238 | fi | |
3239 | ||
3240 | else | |
3241 | ||
3242 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3243 | if test "x$LINE" != x ; then | |
3244 | eval "DEFAULT_$LINE" | |
3245 | else | |
3246 | no_cache=1 | |
3247 | fi | |
3248 | ||
3249 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3250 | ||
3251 | fi; | |
3252 | ||
3253 | eval "$ac_cv_use_regex" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_REGEX" = yes; then | |
3259 | echo "$as_me:$LINENO: result: yes" >&5 | |
3260 | echo "${ECHO_T}yes" >&6 | |
3261 | elif test "$wxUSE_REGEX" = no; then | |
3262 | echo "$as_me:$LINENO: result: no" >&5 | |
3263 | echo "${ECHO_T}no" >&6 | |
3264 | elif test "$wxUSE_REGEX" = sys; then | |
3265 | echo "$as_me:$LINENO: result: system version" >&5 | |
3266 | echo "${ECHO_T}system version" >&6 | |
3267 | elif test "$wxUSE_REGEX" = builtin; then | |
3268 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3269 | echo "${ECHO_T}builtin version" >&6 | |
3270 | else | |
3271 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3272 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3273 | { (exit 1); exit 1; }; } | |
3274 | fi | |
3275 | ||
3276 | ||
3277 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3278 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3279 | no_cache=0 | |
3280 | ||
3281 | # Check whether --with-zlib or --without-zlib was given. | |
3282 | if test "${with_zlib+set}" = set; then | |
3283 | withval="$with_zlib" | |
3284 | ||
3285 | if test "$withval" = yes; then | |
3286 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3287 | elif test "$withval" = no; then | |
3288 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3289 | elif test "$withval" = sys; then | |
3290 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3291 | elif test "$withval" = builtin; then | |
3292 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3293 | else | |
3294 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3295 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3296 | { (exit 1); exit 1; }; } | |
3297 | fi | |
3298 | ||
3299 | else | |
3300 | ||
3301 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3302 | if test "x$LINE" != x ; then | |
3303 | eval "DEFAULT_$LINE" | |
3304 | else | |
3305 | no_cache=1 | |
3306 | fi | |
3307 | ||
3308 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3309 | ||
3310 | fi; | |
3311 | ||
3312 | eval "$ac_cv_use_zlib" | |
3313 | if test "$no_cache" != 1; then | |
3314 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3315 | fi | |
3316 | ||
3317 | if test "$wxUSE_ZLIB" = yes; then | |
3318 | echo "$as_me:$LINENO: result: yes" >&5 | |
3319 | echo "${ECHO_T}yes" >&6 | |
3320 | elif test "$wxUSE_ZLIB" = no; then | |
3321 | echo "$as_me:$LINENO: result: no" >&5 | |
3322 | echo "${ECHO_T}no" >&6 | |
3323 | elif test "$wxUSE_ZLIB" = sys; then | |
3324 | echo "$as_me:$LINENO: result: system version" >&5 | |
3325 | echo "${ECHO_T}system version" >&6 | |
3326 | elif test "$wxUSE_ZLIB" = builtin; then | |
3327 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3328 | echo "${ECHO_T}builtin version" >&6 | |
3329 | else | |
3330 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3331 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3332 | { (exit 1); exit 1; }; } | |
3333 | fi | |
3334 | ||
3335 | ||
3336 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3337 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3338 | no_cache=0 | |
3339 | ||
3340 | # Check whether --with-odbc or --without-odbc was given. | |
3341 | if test "${with_odbc+set}" = set; then | |
3342 | withval="$with_odbc" | |
3343 | ||
3344 | if test "$withval" = yes; then | |
3345 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3346 | elif test "$withval" = no; then | |
3347 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3348 | elif test "$withval" = sys; then | |
3349 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3350 | elif test "$withval" = builtin; then | |
3351 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3352 | else | |
3353 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3354 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3355 | { (exit 1); exit 1; }; } | |
3356 | fi | |
3357 | ||
3358 | else | |
3359 | ||
3360 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3361 | if test "x$LINE" != x ; then | |
3362 | eval "DEFAULT_$LINE" | |
3363 | else | |
3364 | no_cache=1 | |
3365 | fi | |
3366 | ||
3367 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3368 | ||
3369 | fi; | |
3370 | ||
3371 | eval "$ac_cv_use_odbc" | |
3372 | if test "$no_cache" != 1; then | |
3373 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3374 | fi | |
3375 | ||
3376 | if test "$wxUSE_ODBC" = yes; then | |
3377 | echo "$as_me:$LINENO: result: yes" >&5 | |
3378 | echo "${ECHO_T}yes" >&6 | |
3379 | elif test "$wxUSE_ODBC" = no; then | |
3380 | echo "$as_me:$LINENO: result: no" >&5 | |
3381 | echo "${ECHO_T}no" >&6 | |
3382 | elif test "$wxUSE_ODBC" = sys; then | |
3383 | echo "$as_me:$LINENO: result: system version" >&5 | |
3384 | echo "${ECHO_T}system version" >&6 | |
3385 | elif test "$wxUSE_ODBC" = builtin; then | |
3386 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3387 | echo "${ECHO_T}builtin version" >&6 | |
3388 | else | |
3389 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3390 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3391 | { (exit 1); exit 1; }; } | |
3392 | fi | |
3393 | ||
3394 | ||
3395 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3396 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3397 | no_cache=0 | |
3398 | ||
3399 | # Check whether --with-expat or --without-expat was given. | |
3400 | if test "${with_expat+set}" = set; then | |
3401 | withval="$with_expat" | |
3402 | ||
3403 | if test "$withval" = yes; then | |
3404 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3405 | elif test "$withval" = no; then | |
3406 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3407 | elif test "$withval" = sys; then | |
3408 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3409 | elif test "$withval" = builtin; then | |
3410 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3411 | else | |
3412 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3413 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3414 | { (exit 1); exit 1; }; } | |
3415 | fi | |
3416 | ||
3417 | else | |
3418 | ||
3419 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3420 | if test "x$LINE" != x ; then | |
3421 | eval "DEFAULT_$LINE" | |
3422 | else | |
3423 | no_cache=1 | |
3424 | fi | |
3425 | ||
3426 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3427 | ||
3428 | fi; | |
3429 | ||
3430 | eval "$ac_cv_use_expat" | |
3431 | if test "$no_cache" != 1; then | |
3432 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3433 | fi | |
3434 | ||
3435 | if test "$wxUSE_EXPAT" = yes; then | |
3436 | echo "$as_me:$LINENO: result: yes" >&5 | |
3437 | echo "${ECHO_T}yes" >&6 | |
3438 | elif test "$wxUSE_EXPAT" = no; then | |
3439 | echo "$as_me:$LINENO: result: no" >&5 | |
3440 | echo "${ECHO_T}no" >&6 | |
3441 | elif test "$wxUSE_EXPAT" = sys; then | |
3442 | echo "$as_me:$LINENO: result: system version" >&5 | |
3443 | echo "${ECHO_T}system version" >&6 | |
3444 | elif test "$wxUSE_EXPAT" = builtin; then | |
3445 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3446 | echo "${ECHO_T}builtin version" >&6 | |
3447 | else | |
3448 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3449 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3450 | { (exit 1); exit 1; }; } | |
3451 | fi | |
3452 | ||
3453 | ||
3454 | ||
3455 | ||
3456 | enablestring= | |
3457 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3458 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3459 | no_cache=0 | |
3460 | # Check whether --enable-shared or --disable-shared was given. | |
3461 | if test "${enable_shared+set}" = set; then | |
3462 | enableval="$enable_shared" | |
3463 | ||
3464 | if test "$enableval" = yes; then | |
3465 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3466 | else | |
3467 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3468 | fi | |
3469 | ||
3470 | else | |
3471 | ||
3472 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3473 | if test "x$LINE" != x ; then | |
3474 | eval "DEFAULT_$LINE" | |
3475 | else | |
3476 | no_cache=1 | |
3477 | fi | |
3478 | ||
3479 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3480 | ||
3481 | fi; | |
3482 | ||
3483 | eval "$ac_cv_use_shared" | |
3484 | if test "$no_cache" != 1; then | |
3485 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3486 | fi | |
3487 | ||
3488 | if test "$wxUSE_SHARED" = yes; then | |
3489 | echo "$as_me:$LINENO: result: yes" >&5 | |
3490 | echo "${ECHO_T}yes" >&6 | |
3491 | else | |
3492 | echo "$as_me:$LINENO: result: no" >&5 | |
3493 | echo "${ECHO_T}no" >&6 | |
3494 | fi | |
3495 | ||
3496 | ||
3497 | enablestring= | |
3498 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3499 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3500 | no_cache=0 | |
3501 | # Check whether --enable-optimise or --disable-optimise was given. | |
3502 | if test "${enable_optimise+set}" = set; then | |
3503 | enableval="$enable_optimise" | |
3504 | ||
3505 | if test "$enableval" = yes; then | |
3506 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3507 | else | |
3508 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3509 | fi | |
3510 | ||
3511 | else | |
3512 | ||
3513 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3514 | if test "x$LINE" != x ; then | |
3515 | eval "DEFAULT_$LINE" | |
3516 | else | |
3517 | no_cache=1 | |
3518 | fi | |
3519 | ||
3520 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3521 | ||
3522 | fi; | |
3523 | ||
3524 | eval "$ac_cv_use_optimise" | |
3525 | if test "$no_cache" != 1; then | |
3526 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3527 | fi | |
3528 | ||
3529 | if test "$wxUSE_OPTIMISE" = yes; then | |
3530 | echo "$as_me:$LINENO: result: yes" >&5 | |
3531 | echo "${ECHO_T}yes" >&6 | |
3532 | else | |
3533 | echo "$as_me:$LINENO: result: no" >&5 | |
3534 | echo "${ECHO_T}no" >&6 | |
3535 | fi | |
3536 | ||
3537 | ||
3538 | enablestring= | |
3539 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3540 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3541 | no_cache=0 | |
3542 | # Check whether --enable-debug or --disable-debug was given. | |
3543 | if test "${enable_debug+set}" = set; then | |
3544 | enableval="$enable_debug" | |
3545 | ||
3546 | if test "$enableval" = yes; then | |
3547 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3548 | else | |
3549 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3550 | fi | |
3551 | ||
3552 | else | |
3553 | ||
3554 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3555 | if test "x$LINE" != x ; then | |
3556 | eval "DEFAULT_$LINE" | |
3557 | else | |
3558 | no_cache=1 | |
3559 | fi | |
3560 | ||
3561 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3562 | ||
3563 | fi; | |
3564 | ||
3565 | eval "$ac_cv_use_debug" | |
3566 | if test "$no_cache" != 1; then | |
3567 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3568 | fi | |
3569 | ||
3570 | if test "$wxUSE_DEBUG" = yes; then | |
3571 | echo "$as_me:$LINENO: result: yes" >&5 | |
3572 | echo "${ECHO_T}yes" >&6 | |
3573 | else | |
3574 | echo "$as_me:$LINENO: result: no" >&5 | |
3575 | echo "${ECHO_T}no" >&6 | |
3576 | fi | |
3577 | ||
3578 | ||
3579 | enablestring= | |
3580 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3581 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3582 | no_cache=0 | |
3583 | # Check whether --enable-stl or --disable-stl was given. | |
3584 | if test "${enable_stl+set}" = set; then | |
3585 | enableval="$enable_stl" | |
3586 | ||
3587 | if test "$enableval" = yes; then | |
3588 | ac_cv_use_stl='wxUSE_STL=yes' | |
3589 | else | |
3590 | ac_cv_use_stl='wxUSE_STL=no' | |
3591 | fi | |
3592 | ||
3593 | else | |
3594 | ||
3595 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3596 | if test "x$LINE" != x ; then | |
3597 | eval "DEFAULT_$LINE" | |
3598 | else | |
3599 | no_cache=1 | |
3600 | fi | |
3601 | ||
3602 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3603 | ||
3604 | fi; | |
3605 | ||
3606 | eval "$ac_cv_use_stl" | |
3607 | if test "$no_cache" != 1; then | |
3608 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3609 | fi | |
3610 | ||
3611 | if test "$wxUSE_STL" = yes; then | |
3612 | echo "$as_me:$LINENO: result: yes" >&5 | |
3613 | echo "${ECHO_T}yes" >&6 | |
3614 | else | |
3615 | echo "$as_me:$LINENO: result: no" >&5 | |
3616 | echo "${ECHO_T}no" >&6 | |
3617 | fi | |
3618 | ||
3619 | if test "$USE_OS2" = "1"; then | |
3620 | ||
3621 | enablestring= | |
3622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3623 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3624 | no_cache=0 | |
3625 | # Check whether --enable-omf or --disable-omf was given. | |
3626 | if test "${enable_omf+set}" = set; then | |
3627 | enableval="$enable_omf" | |
3628 | ||
3629 | if test "$enableval" = yes; then | |
3630 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3631 | else | |
3632 | ac_cv_use_omf='wxUSE_OMF=no' | |
3633 | fi | |
3634 | ||
3635 | else | |
3636 | ||
3637 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3638 | if test "x$LINE" != x ; then | |
3639 | eval "DEFAULT_$LINE" | |
3640 | else | |
3641 | no_cache=1 | |
3642 | fi | |
3643 | ||
3644 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3645 | ||
3646 | fi; | |
3647 | ||
3648 | eval "$ac_cv_use_omf" | |
3649 | if test "$no_cache" != 1; then | |
3650 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3651 | fi | |
3652 | ||
3653 | if test "$wxUSE_OMF" = yes; then | |
3654 | echo "$as_me:$LINENO: result: yes" >&5 | |
3655 | echo "${ECHO_T}yes" >&6 | |
3656 | else | |
3657 | echo "$as_me:$LINENO: result: no" >&5 | |
3658 | echo "${ECHO_T}no" >&6 | |
3659 | fi | |
3660 | ||
3661 | fi | |
3662 | ||
3663 | if test "$wxUSE_DEBUG" = "yes"; then | |
3664 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3665 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3666 | BUILD=debug | |
3667 | elif test "$wxUSE_DEBUG" = "no"; then | |
3668 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3669 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3670 | BUILD=release | |
3671 | fi | |
3672 | ||
3673 | ||
3674 | enablestring= | |
3675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3676 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3677 | no_cache=0 | |
3678 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3679 | if test "${enable_debug_flag+set}" = set; then | |
3680 | enableval="$enable_debug_flag" | |
3681 | ||
3682 | if test "$enableval" = yes; then | |
3683 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3684 | else | |
3685 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3686 | fi | |
3687 | ||
3688 | else | |
3689 | ||
3690 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3691 | if test "x$LINE" != x ; then | |
3692 | eval "DEFAULT_$LINE" | |
3693 | else | |
3694 | no_cache=1 | |
3695 | fi | |
3696 | ||
3697 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3698 | ||
3699 | fi; | |
3700 | ||
3701 | eval "$ac_cv_use_debug_flag" | |
3702 | if test "$no_cache" != 1; then | |
3703 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3704 | fi | |
3705 | ||
3706 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3707 | echo "$as_me:$LINENO: result: yes" >&5 | |
3708 | echo "${ECHO_T}yes" >&6 | |
3709 | else | |
3710 | echo "$as_me:$LINENO: result: no" >&5 | |
3711 | echo "${ECHO_T}no" >&6 | |
3712 | fi | |
3713 | ||
3714 | ||
3715 | enablestring= | |
3716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3717 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3718 | no_cache=0 | |
3719 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3720 | if test "${enable_debug_info+set}" = set; then | |
3721 | enableval="$enable_debug_info" | |
3722 | ||
3723 | if test "$enableval" = yes; then | |
3724 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3725 | else | |
3726 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3727 | fi | |
3728 | ||
3729 | else | |
3730 | ||
3731 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3732 | if test "x$LINE" != x ; then | |
3733 | eval "DEFAULT_$LINE" | |
3734 | else | |
3735 | no_cache=1 | |
3736 | fi | |
3737 | ||
3738 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3739 | ||
3740 | fi; | |
3741 | ||
3742 | eval "$ac_cv_use_debug_info" | |
3743 | if test "$no_cache" != 1; then | |
3744 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3745 | fi | |
3746 | ||
3747 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3748 | echo "$as_me:$LINENO: result: yes" >&5 | |
3749 | echo "${ECHO_T}yes" >&6 | |
3750 | else | |
3751 | echo "$as_me:$LINENO: result: no" >&5 | |
3752 | echo "${ECHO_T}no" >&6 | |
3753 | fi | |
3754 | ||
3755 | ||
3756 | enablestring= | |
3757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3758 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3759 | no_cache=0 | |
3760 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3761 | if test "${enable_debug_gdb+set}" = set; then | |
3762 | enableval="$enable_debug_gdb" | |
3763 | ||
3764 | if test "$enableval" = yes; then | |
3765 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3766 | else | |
3767 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3768 | fi | |
3769 | ||
3770 | else | |
3771 | ||
3772 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3773 | if test "x$LINE" != x ; then | |
3774 | eval "DEFAULT_$LINE" | |
3775 | else | |
3776 | no_cache=1 | |
3777 | fi | |
3778 | ||
3779 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3780 | ||
3781 | fi; | |
3782 | ||
3783 | eval "$ac_cv_use_debug_gdb" | |
3784 | if test "$no_cache" != 1; then | |
3785 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3786 | fi | |
3787 | ||
3788 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3789 | echo "$as_me:$LINENO: result: yes" >&5 | |
3790 | echo "${ECHO_T}yes" >&6 | |
3791 | else | |
3792 | echo "$as_me:$LINENO: result: no" >&5 | |
3793 | echo "${ECHO_T}no" >&6 | |
3794 | fi | |
3795 | ||
3796 | ||
3797 | enablestring= | |
3798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3799 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3800 | no_cache=0 | |
3801 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3802 | if test "${enable_debug_cntxt+set}" = set; then | |
3803 | enableval="$enable_debug_cntxt" | |
3804 | ||
3805 | if test "$enableval" = yes; then | |
3806 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3807 | else | |
3808 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3809 | fi | |
3810 | ||
3811 | else | |
3812 | ||
3813 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3814 | if test "x$LINE" != x ; then | |
3815 | eval "DEFAULT_$LINE" | |
3816 | else | |
3817 | no_cache=1 | |
3818 | fi | |
3819 | ||
3820 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3821 | ||
3822 | fi; | |
3823 | ||
3824 | eval "$ac_cv_use_debug_cntxt" | |
3825 | if test "$no_cache" != 1; then | |
3826 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3827 | fi | |
3828 | ||
3829 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3830 | echo "$as_me:$LINENO: result: yes" >&5 | |
3831 | echo "${ECHO_T}yes" >&6 | |
3832 | else | |
3833 | echo "$as_me:$LINENO: result: no" >&5 | |
3834 | echo "${ECHO_T}no" >&6 | |
3835 | fi | |
3836 | ||
3837 | ||
3838 | enablestring= | |
3839 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3840 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3841 | no_cache=0 | |
3842 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3843 | if test "${enable_mem_tracing+set}" = set; then | |
3844 | enableval="$enable_mem_tracing" | |
3845 | ||
3846 | if test "$enableval" = yes; then | |
3847 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3848 | else | |
3849 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3850 | fi | |
3851 | ||
3852 | else | |
3853 | ||
3854 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3855 | if test "x$LINE" != x ; then | |
3856 | eval "DEFAULT_$LINE" | |
3857 | else | |
3858 | no_cache=1 | |
3859 | fi | |
3860 | ||
3861 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3862 | ||
3863 | fi; | |
3864 | ||
3865 | eval "$ac_cv_use_mem_tracing" | |
3866 | if test "$no_cache" != 1; then | |
3867 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3868 | fi | |
3869 | ||
3870 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3871 | echo "$as_me:$LINENO: result: yes" >&5 | |
3872 | echo "${ECHO_T}yes" >&6 | |
3873 | else | |
3874 | echo "$as_me:$LINENO: result: no" >&5 | |
3875 | echo "${ECHO_T}no" >&6 | |
3876 | fi | |
3877 | ||
3878 | ||
3879 | enablestring= | |
3880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3881 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3882 | no_cache=0 | |
3883 | # Check whether --enable-profile or --disable-profile was given. | |
3884 | if test "${enable_profile+set}" = set; then | |
3885 | enableval="$enable_profile" | |
3886 | ||
3887 | if test "$enableval" = yes; then | |
3888 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3889 | else | |
3890 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3891 | fi | |
3892 | ||
3893 | else | |
3894 | ||
3895 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3896 | if test "x$LINE" != x ; then | |
3897 | eval "DEFAULT_$LINE" | |
3898 | else | |
3899 | no_cache=1 | |
3900 | fi | |
3901 | ||
3902 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3903 | ||
3904 | fi; | |
3905 | ||
3906 | eval "$ac_cv_use_profile" | |
3907 | if test "$no_cache" != 1; then | |
3908 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3909 | fi | |
3910 | ||
3911 | if test "$wxUSE_PROFILE" = yes; then | |
3912 | echo "$as_me:$LINENO: result: yes" >&5 | |
3913 | echo "${ECHO_T}yes" >&6 | |
3914 | else | |
3915 | echo "$as_me:$LINENO: result: no" >&5 | |
3916 | echo "${ECHO_T}no" >&6 | |
3917 | fi | |
3918 | ||
3919 | ||
3920 | enablestring= | |
3921 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3922 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3923 | no_cache=0 | |
3924 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3925 | if test "${enable_no_rtti+set}" = set; then | |
3926 | enableval="$enable_no_rtti" | |
3927 | ||
3928 | if test "$enableval" = yes; then | |
3929 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3930 | else | |
3931 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3932 | fi | |
3933 | ||
3934 | else | |
3935 | ||
3936 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3937 | if test "x$LINE" != x ; then | |
3938 | eval "DEFAULT_$LINE" | |
3939 | else | |
3940 | no_cache=1 | |
3941 | fi | |
3942 | ||
3943 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3944 | ||
3945 | fi; | |
3946 | ||
3947 | eval "$ac_cv_use_no_rtti" | |
3948 | if test "$no_cache" != 1; then | |
3949 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3950 | fi | |
3951 | ||
3952 | if test "$wxUSE_NO_RTTI" = yes; then | |
3953 | echo "$as_me:$LINENO: result: yes" >&5 | |
3954 | echo "${ECHO_T}yes" >&6 | |
3955 | else | |
3956 | echo "$as_me:$LINENO: result: no" >&5 | |
3957 | echo "${ECHO_T}no" >&6 | |
3958 | fi | |
3959 | ||
3960 | ||
3961 | enablestring= | |
3962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3963 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3964 | no_cache=0 | |
3965 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3966 | if test "${enable_no_exceptions+set}" = set; then | |
3967 | enableval="$enable_no_exceptions" | |
3968 | ||
3969 | if test "$enableval" = yes; then | |
3970 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3971 | else | |
3972 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3973 | fi | |
3974 | ||
3975 | else | |
3976 | ||
3977 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3978 | if test "x$LINE" != x ; then | |
3979 | eval "DEFAULT_$LINE" | |
3980 | else | |
3981 | no_cache=1 | |
3982 | fi | |
3983 | ||
3984 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3985 | ||
3986 | fi; | |
3987 | ||
3988 | eval "$ac_cv_use_no_exceptions" | |
3989 | if test "$no_cache" != 1; then | |
3990 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3991 | fi | |
3992 | ||
3993 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3994 | echo "$as_me:$LINENO: result: yes" >&5 | |
3995 | echo "${ECHO_T}yes" >&6 | |
3996 | else | |
3997 | echo "$as_me:$LINENO: result: no" >&5 | |
3998 | echo "${ECHO_T}no" >&6 | |
3999 | fi | |
4000 | ||
4001 | ||
4002 | enablestring= | |
4003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4004 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4005 | no_cache=0 | |
4006 | # Check whether --enable-permissive or --disable-permissive was given. | |
4007 | if test "${enable_permissive+set}" = set; then | |
4008 | enableval="$enable_permissive" | |
4009 | ||
4010 | if test "$enableval" = yes; then | |
4011 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4012 | else | |
4013 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4014 | fi | |
4015 | ||
4016 | else | |
4017 | ||
4018 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4019 | if test "x$LINE" != x ; then | |
4020 | eval "DEFAULT_$LINE" | |
4021 | else | |
4022 | no_cache=1 | |
4023 | fi | |
4024 | ||
4025 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4026 | ||
4027 | fi; | |
4028 | ||
4029 | eval "$ac_cv_use_permissive" | |
4030 | if test "$no_cache" != 1; then | |
4031 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4032 | fi | |
4033 | ||
4034 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4035 | echo "$as_me:$LINENO: result: yes" >&5 | |
4036 | echo "${ECHO_T}yes" >&6 | |
4037 | else | |
4038 | echo "$as_me:$LINENO: result: no" >&5 | |
4039 | echo "${ECHO_T}no" >&6 | |
4040 | fi | |
4041 | ||
4042 | ||
4043 | enablestring= | |
4044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4045 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4046 | no_cache=0 | |
4047 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4048 | if test "${enable_no_deps+set}" = set; then | |
4049 | enableval="$enable_no_deps" | |
4050 | ||
4051 | if test "$enableval" = yes; then | |
4052 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4053 | else | |
4054 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4055 | fi | |
4056 | ||
4057 | else | |
4058 | ||
4059 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4060 | if test "x$LINE" != x ; then | |
4061 | eval "DEFAULT_$LINE" | |
4062 | else | |
4063 | no_cache=1 | |
4064 | fi | |
4065 | ||
4066 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4067 | ||
4068 | fi; | |
4069 | ||
4070 | eval "$ac_cv_use_no_deps" | |
4071 | if test "$no_cache" != 1; then | |
4072 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4073 | fi | |
4074 | ||
4075 | if test "$wxUSE_NO_DEPS" = yes; then | |
4076 | echo "$as_me:$LINENO: result: yes" >&5 | |
4077 | echo "${ECHO_T}yes" >&6 | |
4078 | else | |
4079 | echo "$as_me:$LINENO: result: no" >&5 | |
4080 | echo "${ECHO_T}no" >&6 | |
4081 | fi | |
4082 | ||
4083 | ||
4084 | ||
4085 | enablestring= | |
4086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4087 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4088 | no_cache=0 | |
4089 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4090 | if test "${enable_compat22+set}" = set; then | |
4091 | enableval="$enable_compat22" | |
4092 | ||
4093 | if test "$enableval" = yes; then | |
4094 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4095 | else | |
4096 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4097 | fi | |
4098 | ||
4099 | else | |
4100 | ||
4101 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4102 | if test "x$LINE" != x ; then | |
4103 | eval "DEFAULT_$LINE" | |
4104 | else | |
4105 | no_cache=1 | |
4106 | fi | |
4107 | ||
4108 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4109 | ||
4110 | fi; | |
4111 | ||
4112 | eval "$ac_cv_use_compat22" | |
4113 | if test "$no_cache" != 1; then | |
4114 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4115 | fi | |
4116 | ||
4117 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4118 | echo "$as_me:$LINENO: result: yes" >&5 | |
4119 | echo "${ECHO_T}yes" >&6 | |
4120 | else | |
4121 | echo "$as_me:$LINENO: result: no" >&5 | |
4122 | echo "${ECHO_T}no" >&6 | |
4123 | fi | |
4124 | ||
4125 | ||
4126 | enablestring=disable | |
4127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4128 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4129 | no_cache=0 | |
4130 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4131 | if test "${enable_compat24+set}" = set; then | |
4132 | enableval="$enable_compat24" | |
4133 | ||
4134 | if test "$enableval" = yes; then | |
4135 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4136 | else | |
4137 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4138 | fi | |
4139 | ||
4140 | else | |
4141 | ||
4142 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4143 | if test "x$LINE" != x ; then | |
4144 | eval "DEFAULT_$LINE" | |
4145 | else | |
4146 | no_cache=1 | |
4147 | fi | |
4148 | ||
4149 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4150 | ||
4151 | fi; | |
4152 | ||
4153 | eval "$ac_cv_use_compat24" | |
4154 | if test "$no_cache" != 1; then | |
4155 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4156 | fi | |
4157 | ||
4158 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4159 | echo "$as_me:$LINENO: result: yes" >&5 | |
4160 | echo "${ECHO_T}yes" >&6 | |
4161 | else | |
4162 | echo "$as_me:$LINENO: result: no" >&5 | |
4163 | echo "${ECHO_T}no" >&6 | |
4164 | fi | |
4165 | ||
4166 | ||
ffa0583f RL |
4167 | |
4168 | enablestring= | |
4169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4170 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4171 | no_cache=0 | |
4172 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4173 | if test "${enable_rpath+set}" = set; then |
4174 | enableval="$enable_rpath" | |
ffa0583f RL |
4175 | |
4176 | if test "$enableval" = yes; then | |
4177 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4178 | else | |
4179 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4180 | fi | |
4181 | ||
4182 | else | |
4183 | ||
4184 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4185 | if test "x$LINE" != x ; then | |
4186 | eval "DEFAULT_$LINE" | |
4187 | else | |
4188 | no_cache=1 | |
4189 | fi | |
4190 | ||
4191 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4192 | ||
a848cd7e SC |
4193 | fi; |
4194 | ||
ffa0583f RL |
4195 | eval "$ac_cv_use_rpath" |
4196 | if test "$no_cache" != 1; then | |
4197 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4198 | fi | |
4199 | ||
4200 | if test "$wxUSE_RPATH" = yes; then | |
4201 | echo "$as_me:$LINENO: result: yes" >&5 | |
4202 | echo "${ECHO_T}yes" >&6 | |
4203 | else | |
4204 | echo "$as_me:$LINENO: result: no" >&5 | |
4205 | echo "${ECHO_T}no" >&6 | |
4206 | fi | |
4207 | ||
a848cd7e SC |
4208 | |
4209 | ||
4210 | ||
4211 | ||
4212 | enablestring= | |
4213 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4214 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4215 | no_cache=0 | |
4216 | # Check whether --enable-intl or --disable-intl was given. | |
4217 | if test "${enable_intl+set}" = set; then | |
4218 | enableval="$enable_intl" | |
4219 | ||
4220 | if test "$enableval" = yes; then | |
4221 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4222 | else | |
4223 | ac_cv_use_intl='wxUSE_INTL=no' | |
4224 | fi | |
4225 | ||
4226 | else | |
4227 | ||
4228 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4229 | if test "x$LINE" != x ; then | |
4230 | eval "DEFAULT_$LINE" | |
4231 | else | |
4232 | no_cache=1 | |
4233 | fi | |
4234 | ||
4235 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4236 | ||
4237 | fi; | |
4238 | ||
4239 | eval "$ac_cv_use_intl" | |
4240 | if test "$no_cache" != 1; then | |
4241 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4242 | fi | |
4243 | ||
4244 | if test "$wxUSE_INTL" = yes; then | |
4245 | echo "$as_me:$LINENO: result: yes" >&5 | |
4246 | echo "${ECHO_T}yes" >&6 | |
4247 | else | |
4248 | echo "$as_me:$LINENO: result: no" >&5 | |
4249 | echo "${ECHO_T}no" >&6 | |
4250 | fi | |
4251 | ||
4252 | ||
4253 | enablestring= | |
4254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4255 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4256 | no_cache=0 | |
4257 | # Check whether --enable-config or --disable-config was given. | |
4258 | if test "${enable_config+set}" = set; then | |
4259 | enableval="$enable_config" | |
4260 | ||
4261 | if test "$enableval" = yes; then | |
4262 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4263 | else | |
4264 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4265 | fi | |
4266 | ||
4267 | else | |
4268 | ||
4269 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4270 | if test "x$LINE" != x ; then | |
4271 | eval "DEFAULT_$LINE" | |
4272 | else | |
4273 | no_cache=1 | |
4274 | fi | |
4275 | ||
4276 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4277 | ||
4278 | fi; | |
4279 | ||
4280 | eval "$ac_cv_use_config" | |
4281 | if test "$no_cache" != 1; then | |
4282 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4283 | fi | |
4284 | ||
4285 | if test "$wxUSE_CONFIG" = yes; then | |
4286 | echo "$as_me:$LINENO: result: yes" >&5 | |
4287 | echo "${ECHO_T}yes" >&6 | |
4288 | else | |
4289 | echo "$as_me:$LINENO: result: no" >&5 | |
4290 | echo "${ECHO_T}no" >&6 | |
4291 | fi | |
4292 | ||
4293 | ||
4294 | ||
4295 | enablestring= | |
4296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4297 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4298 | no_cache=0 | |
4299 | # Check whether --enable-protocols or --disable-protocols was given. | |
4300 | if test "${enable_protocols+set}" = set; then | |
4301 | enableval="$enable_protocols" | |
4302 | ||
4303 | if test "$enableval" = yes; then | |
4304 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4305 | else | |
4306 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4307 | fi | |
4308 | ||
4309 | else | |
4310 | ||
4311 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4312 | if test "x$LINE" != x ; then | |
4313 | eval "DEFAULT_$LINE" | |
4314 | else | |
4315 | no_cache=1 | |
4316 | fi | |
4317 | ||
4318 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4319 | ||
4320 | fi; | |
4321 | ||
4322 | eval "$ac_cv_use_protocols" | |
4323 | if test "$no_cache" != 1; then | |
4324 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4325 | fi | |
4326 | ||
4327 | if test "$wxUSE_PROTOCOL" = yes; then | |
4328 | echo "$as_me:$LINENO: result: yes" >&5 | |
4329 | echo "${ECHO_T}yes" >&6 | |
4330 | else | |
4331 | echo "$as_me:$LINENO: result: no" >&5 | |
4332 | echo "${ECHO_T}no" >&6 | |
4333 | fi | |
4334 | ||
4335 | ||
4336 | enablestring= | |
4337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4338 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4339 | no_cache=0 | |
4340 | # Check whether --enable-ftp or --disable-ftp was given. | |
4341 | if test "${enable_ftp+set}" = set; then | |
4342 | enableval="$enable_ftp" | |
4343 | ||
4344 | if test "$enableval" = yes; then | |
4345 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4346 | else | |
4347 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4348 | fi | |
4349 | ||
4350 | else | |
4351 | ||
4352 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4353 | if test "x$LINE" != x ; then | |
4354 | eval "DEFAULT_$LINE" | |
4355 | else | |
4356 | no_cache=1 | |
4357 | fi | |
4358 | ||
4359 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4360 | ||
4361 | fi; | |
4362 | ||
4363 | eval "$ac_cv_use_ftp" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4369 | echo "$as_me:$LINENO: result: yes" >&5 | |
4370 | echo "${ECHO_T}yes" >&6 | |
4371 | else | |
4372 | echo "$as_me:$LINENO: result: no" >&5 | |
4373 | echo "${ECHO_T}no" >&6 | |
4374 | fi | |
4375 | ||
4376 | ||
4377 | enablestring= | |
4378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4379 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4380 | no_cache=0 | |
4381 | # Check whether --enable-http or --disable-http was given. | |
4382 | if test "${enable_http+set}" = set; then | |
4383 | enableval="$enable_http" | |
4384 | ||
4385 | if test "$enableval" = yes; then | |
4386 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4387 | else | |
4388 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4389 | fi | |
4390 | ||
4391 | else | |
4392 | ||
4393 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4394 | if test "x$LINE" != x ; then | |
4395 | eval "DEFAULT_$LINE" | |
4396 | else | |
4397 | no_cache=1 | |
4398 | fi | |
4399 | ||
4400 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4401 | ||
4402 | fi; | |
4403 | ||
4404 | eval "$ac_cv_use_http" | |
4405 | if test "$no_cache" != 1; then | |
4406 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4407 | fi | |
4408 | ||
4409 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4410 | echo "$as_me:$LINENO: result: yes" >&5 | |
4411 | echo "${ECHO_T}yes" >&6 | |
4412 | else | |
4413 | echo "$as_me:$LINENO: result: no" >&5 | |
4414 | echo "${ECHO_T}no" >&6 | |
4415 | fi | |
4416 | ||
4417 | ||
4418 | enablestring= | |
4419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4420 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4421 | no_cache=0 | |
4422 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4423 | if test "${enable_fileproto+set}" = set; then | |
4424 | enableval="$enable_fileproto" | |
4425 | ||
4426 | if test "$enableval" = yes; then | |
4427 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4428 | else | |
4429 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4430 | fi | |
4431 | ||
4432 | else | |
4433 | ||
4434 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4435 | if test "x$LINE" != x ; then | |
4436 | eval "DEFAULT_$LINE" | |
4437 | else | |
4438 | no_cache=1 | |
4439 | fi | |
4440 | ||
4441 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4442 | ||
4443 | fi; | |
4444 | ||
4445 | eval "$ac_cv_use_fileproto" | |
4446 | if test "$no_cache" != 1; then | |
4447 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4448 | fi | |
4449 | ||
4450 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4451 | echo "$as_me:$LINENO: result: yes" >&5 | |
4452 | echo "${ECHO_T}yes" >&6 | |
4453 | else | |
4454 | echo "$as_me:$LINENO: result: no" >&5 | |
4455 | echo "${ECHO_T}no" >&6 | |
4456 | fi | |
4457 | ||
4458 | ||
4459 | enablestring= | |
4460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4461 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4462 | no_cache=0 | |
4463 | # Check whether --enable-sockets or --disable-sockets was given. | |
4464 | if test "${enable_sockets+set}" = set; then | |
4465 | enableval="$enable_sockets" | |
4466 | ||
4467 | if test "$enableval" = yes; then | |
4468 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4469 | else | |
4470 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4471 | fi | |
4472 | ||
4473 | else | |
4474 | ||
4475 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4476 | if test "x$LINE" != x ; then | |
4477 | eval "DEFAULT_$LINE" | |
4478 | else | |
4479 | no_cache=1 | |
4480 | fi | |
4481 | ||
4482 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4483 | ||
4484 | fi; | |
4485 | ||
4486 | eval "$ac_cv_use_sockets" | |
4487 | if test "$no_cache" != 1; then | |
4488 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4489 | fi | |
4490 | ||
4491 | if test "$wxUSE_SOCKETS" = yes; then | |
4492 | echo "$as_me:$LINENO: result: yes" >&5 | |
4493 | echo "${ECHO_T}yes" >&6 | |
4494 | else | |
4495 | echo "$as_me:$LINENO: result: no" >&5 | |
4496 | echo "${ECHO_T}no" >&6 | |
4497 | fi | |
4498 | ||
4499 | ||
4500 | enablestring= | |
4501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4502 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4503 | no_cache=0 | |
4504 | # Check whether --enable-ole or --disable-ole was given. | |
4505 | if test "${enable_ole+set}" = set; then | |
4506 | enableval="$enable_ole" | |
4507 | ||
4508 | if test "$enableval" = yes; then | |
4509 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4510 | else | |
4511 | ac_cv_use_ole='wxUSE_OLE=no' | |
4512 | fi | |
4513 | ||
4514 | else | |
4515 | ||
4516 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4517 | if test "x$LINE" != x ; then | |
4518 | eval "DEFAULT_$LINE" | |
4519 | else | |
4520 | no_cache=1 | |
4521 | fi | |
4522 | ||
4523 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4524 | ||
4525 | fi; | |
4526 | ||
4527 | eval "$ac_cv_use_ole" | |
4528 | if test "$no_cache" != 1; then | |
4529 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4530 | fi | |
4531 | ||
4532 | if test "$wxUSE_OLE" = yes; then | |
4533 | echo "$as_me:$LINENO: result: yes" >&5 | |
4534 | echo "${ECHO_T}yes" >&6 | |
4535 | else | |
4536 | echo "$as_me:$LINENO: result: no" >&5 | |
4537 | echo "${ECHO_T}no" >&6 | |
4538 | fi | |
4539 | ||
4540 | ||
4541 | enablestring= | |
4542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4543 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4544 | no_cache=0 | |
4545 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4546 | if test "${enable_dataobj+set}" = set; then | |
4547 | enableval="$enable_dataobj" | |
4548 | ||
4549 | if test "$enableval" = yes; then | |
4550 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4551 | else | |
4552 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4553 | fi | |
4554 | ||
4555 | else | |
4556 | ||
4557 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4558 | if test "x$LINE" != x ; then | |
4559 | eval "DEFAULT_$LINE" | |
4560 | else | |
4561 | no_cache=1 | |
4562 | fi | |
4563 | ||
4564 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4565 | ||
4566 | fi; | |
4567 | ||
4568 | eval "$ac_cv_use_dataobj" | |
4569 | if test "$no_cache" != 1; then | |
4570 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4571 | fi | |
4572 | ||
4573 | if test "$wxUSE_DATAOBJ" = yes; then | |
4574 | echo "$as_me:$LINENO: result: yes" >&5 | |
4575 | echo "${ECHO_T}yes" >&6 | |
4576 | else | |
4577 | echo "$as_me:$LINENO: result: no" >&5 | |
4578 | echo "${ECHO_T}no" >&6 | |
4579 | fi | |
4580 | ||
4581 | ||
4582 | ||
4583 | enablestring= | |
4584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4585 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4586 | no_cache=0 | |
4587 | # Check whether --enable-ipc or --disable-ipc was given. | |
4588 | if test "${enable_ipc+set}" = set; then | |
4589 | enableval="$enable_ipc" | |
4590 | ||
4591 | if test "$enableval" = yes; then | |
4592 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4593 | else | |
4594 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4595 | fi | |
4596 | ||
4597 | else | |
4598 | ||
4599 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4600 | if test "x$LINE" != x ; then | |
4601 | eval "DEFAULT_$LINE" | |
4602 | else | |
4603 | no_cache=1 | |
4604 | fi | |
4605 | ||
4606 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4607 | ||
4608 | fi; | |
4609 | ||
4610 | eval "$ac_cv_use_ipc" | |
4611 | if test "$no_cache" != 1; then | |
4612 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4613 | fi | |
4614 | ||
4615 | if test "$wxUSE_IPC" = yes; then | |
4616 | echo "$as_me:$LINENO: result: yes" >&5 | |
4617 | echo "${ECHO_T}yes" >&6 | |
4618 | else | |
4619 | echo "$as_me:$LINENO: result: no" >&5 | |
4620 | echo "${ECHO_T}no" >&6 | |
4621 | fi | |
4622 | ||
4623 | ||
4624 | ||
4625 | enablestring= | |
4626 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4627 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4628 | no_cache=0 | |
4629 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4630 | if test "${enable_apple_ieee+set}" = set; then | |
4631 | enableval="$enable_apple_ieee" | |
4632 | ||
4633 | if test "$enableval" = yes; then | |
4634 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4635 | else | |
4636 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4637 | fi | |
4638 | ||
4639 | else | |
4640 | ||
4641 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4642 | if test "x$LINE" != x ; then | |
4643 | eval "DEFAULT_$LINE" | |
4644 | else | |
4645 | no_cache=1 | |
4646 | fi | |
4647 | ||
4648 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4649 | ||
4650 | fi; | |
4651 | ||
4652 | eval "$ac_cv_use_apple_ieee" | |
4653 | if test "$no_cache" != 1; then | |
4654 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4655 | fi | |
4656 | ||
4657 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4658 | echo "$as_me:$LINENO: result: yes" >&5 | |
4659 | echo "${ECHO_T}yes" >&6 | |
4660 | else | |
4661 | echo "$as_me:$LINENO: result: no" >&5 | |
4662 | echo "${ECHO_T}no" >&6 | |
4663 | fi | |
4664 | ||
4665 | ||
4666 | enablestring= | |
4667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4668 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4669 | no_cache=0 | |
4670 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4671 | if test "${enable_catch_segvs+set}" = set; then | |
4672 | enableval="$enable_catch_segvs" | |
4673 | ||
4674 | if test "$enableval" = yes; then | |
4675 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4676 | else | |
4677 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4678 | fi | |
4679 | ||
4680 | else | |
4681 | ||
4682 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4683 | if test "x$LINE" != x ; then | |
4684 | eval "DEFAULT_$LINE" | |
4685 | else | |
4686 | no_cache=1 | |
4687 | fi | |
4688 | ||
4689 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4690 | ||
4691 | fi; | |
4692 | ||
4693 | eval "$ac_cv_use_catch_segvs" | |
4694 | if test "$no_cache" != 1; then | |
4695 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4696 | fi | |
4697 | ||
4698 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4699 | echo "$as_me:$LINENO: result: yes" >&5 | |
4700 | echo "${ECHO_T}yes" >&6 | |
4701 | else | |
4702 | echo "$as_me:$LINENO: result: no" >&5 | |
4703 | echo "${ECHO_T}no" >&6 | |
4704 | fi | |
4705 | ||
4706 | ||
4707 | enablestring= | |
4708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4709 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4710 | no_cache=0 | |
4711 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4712 | if test "${enable_cmdline+set}" = set; then | |
4713 | enableval="$enable_cmdline" | |
4714 | ||
4715 | if test "$enableval" = yes; then | |
4716 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4717 | else | |
4718 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4719 | fi | |
4720 | ||
4721 | else | |
4722 | ||
4723 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4724 | if test "x$LINE" != x ; then | |
4725 | eval "DEFAULT_$LINE" | |
4726 | else | |
4727 | no_cache=1 | |
4728 | fi | |
4729 | ||
4730 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4731 | ||
4732 | fi; | |
4733 | ||
4734 | eval "$ac_cv_use_cmdline" | |
4735 | if test "$no_cache" != 1; then | |
4736 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4737 | fi | |
4738 | ||
4739 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4740 | echo "$as_me:$LINENO: result: yes" >&5 | |
4741 | echo "${ECHO_T}yes" >&6 | |
4742 | else | |
4743 | echo "$as_me:$LINENO: result: no" >&5 | |
4744 | echo "${ECHO_T}no" >&6 | |
4745 | fi | |
4746 | ||
4747 | ||
4748 | enablestring= | |
4749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4750 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4751 | no_cache=0 | |
4752 | # Check whether --enable-datetime or --disable-datetime was given. | |
4753 | if test "${enable_datetime+set}" = set; then | |
4754 | enableval="$enable_datetime" | |
4755 | ||
4756 | if test "$enableval" = yes; then | |
4757 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4758 | else | |
4759 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4760 | fi | |
4761 | ||
4762 | else | |
4763 | ||
4764 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4765 | if test "x$LINE" != x ; then | |
4766 | eval "DEFAULT_$LINE" | |
4767 | else | |
4768 | no_cache=1 | |
4769 | fi | |
4770 | ||
4771 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4772 | ||
4773 | fi; | |
4774 | ||
4775 | eval "$ac_cv_use_datetime" | |
4776 | if test "$no_cache" != 1; then | |
4777 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4778 | fi | |
4779 | ||
4780 | if test "$wxUSE_DATETIME" = yes; then | |
4781 | echo "$as_me:$LINENO: result: yes" >&5 | |
4782 | echo "${ECHO_T}yes" >&6 | |
4783 | else | |
4784 | echo "$as_me:$LINENO: result: no" >&5 | |
4785 | echo "${ECHO_T}no" >&6 | |
4786 | fi | |
4787 | ||
4788 | ||
4789 | enablestring= | |
4790 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4791 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4792 | no_cache=0 | |
4793 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4794 | if test "${enable_dialupman+set}" = set; then | |
4795 | enableval="$enable_dialupman" | |
4796 | ||
4797 | if test "$enableval" = yes; then | |
4798 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4799 | else | |
4800 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4801 | fi | |
4802 | ||
4803 | else | |
4804 | ||
4805 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4806 | if test "x$LINE" != x ; then | |
4807 | eval "DEFAULT_$LINE" | |
4808 | else | |
4809 | no_cache=1 | |
4810 | fi | |
4811 | ||
4812 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4813 | ||
4814 | fi; | |
4815 | ||
4816 | eval "$ac_cv_use_dialupman" | |
4817 | if test "$no_cache" != 1; then | |
4818 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4819 | fi | |
4820 | ||
4821 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4822 | echo "$as_me:$LINENO: result: yes" >&5 | |
4823 | echo "${ECHO_T}yes" >&6 | |
4824 | else | |
4825 | echo "$as_me:$LINENO: result: no" >&5 | |
4826 | echo "${ECHO_T}no" >&6 | |
4827 | fi | |
4828 | ||
4829 | ||
4830 | enablestring= | |
4831 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4832 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4833 | no_cache=0 | |
4834 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4835 | if test "${enable_dynlib+set}" = set; then | |
4836 | enableval="$enable_dynlib" | |
4837 | ||
4838 | if test "$enableval" = yes; then | |
4839 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4840 | else | |
4841 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4842 | fi | |
4843 | ||
4844 | else | |
4845 | ||
4846 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4847 | if test "x$LINE" != x ; then | |
4848 | eval "DEFAULT_$LINE" | |
4849 | else | |
4850 | no_cache=1 | |
4851 | fi | |
4852 | ||
4853 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4854 | ||
4855 | fi; | |
4856 | ||
4857 | eval "$ac_cv_use_dynlib" | |
4858 | if test "$no_cache" != 1; then | |
4859 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4860 | fi | |
4861 | ||
4862 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4863 | echo "$as_me:$LINENO: result: yes" >&5 | |
4864 | echo "${ECHO_T}yes" >&6 | |
4865 | else | |
4866 | echo "$as_me:$LINENO: result: no" >&5 | |
4867 | echo "${ECHO_T}no" >&6 | |
4868 | fi | |
4869 | ||
4870 | ||
4871 | enablestring= | |
4872 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4873 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4874 | no_cache=0 | |
4875 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4876 | if test "${enable_dynamicloader+set}" = set; then | |
4877 | enableval="$enable_dynamicloader" | |
4878 | ||
4879 | if test "$enableval" = yes; then | |
4880 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4881 | else | |
4882 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4883 | fi | |
4884 | ||
4885 | else | |
4886 | ||
4887 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4888 | if test "x$LINE" != x ; then | |
4889 | eval "DEFAULT_$LINE" | |
4890 | else | |
4891 | no_cache=1 | |
4892 | fi | |
4893 | ||
4894 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4895 | ||
4896 | fi; | |
4897 | ||
4898 | eval "$ac_cv_use_dynamicloader" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4904 | echo "$as_me:$LINENO: result: yes" >&5 | |
4905 | echo "${ECHO_T}yes" >&6 | |
4906 | else | |
4907 | echo "$as_me:$LINENO: result: no" >&5 | |
4908 | echo "${ECHO_T}no" >&6 | |
4909 | fi | |
4910 | ||
4911 | ||
4912 | enablestring= | |
4913 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4914 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4915 | no_cache=0 | |
4916 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4917 | if test "${enable_exceptions+set}" = set; then | |
4918 | enableval="$enable_exceptions" | |
4919 | ||
4920 | if test "$enableval" = yes; then | |
4921 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4922 | else | |
4923 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4924 | fi | |
4925 | ||
4926 | else | |
4927 | ||
4928 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4929 | if test "x$LINE" != x ; then | |
4930 | eval "DEFAULT_$LINE" | |
4931 | else | |
4932 | no_cache=1 | |
4933 | fi | |
4934 | ||
4935 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4936 | ||
4937 | fi; | |
4938 | ||
4939 | eval "$ac_cv_use_exceptions" | |
4940 | if test "$no_cache" != 1; then | |
4941 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4942 | fi | |
4943 | ||
4944 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4945 | echo "$as_me:$LINENO: result: yes" >&5 | |
4946 | echo "${ECHO_T}yes" >&6 | |
4947 | else | |
4948 | echo "$as_me:$LINENO: result: no" >&5 | |
4949 | echo "${ECHO_T}no" >&6 | |
4950 | fi | |
4951 | ||
4952 | ||
4953 | enablestring= | |
4954 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4955 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4956 | no_cache=0 | |
4957 | # Check whether --enable-ffile or --disable-ffile was given. | |
4958 | if test "${enable_ffile+set}" = set; then | |
4959 | enableval="$enable_ffile" | |
4960 | ||
4961 | if test "$enableval" = yes; then | |
4962 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4963 | else | |
4964 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4965 | fi | |
4966 | ||
4967 | else | |
4968 | ||
4969 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4970 | if test "x$LINE" != x ; then | |
4971 | eval "DEFAULT_$LINE" | |
4972 | else | |
4973 | no_cache=1 | |
4974 | fi | |
4975 | ||
4976 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4977 | ||
4978 | fi; | |
4979 | ||
4980 | eval "$ac_cv_use_ffile" | |
4981 | if test "$no_cache" != 1; then | |
4982 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4983 | fi | |
4984 | ||
4985 | if test "$wxUSE_FFILE" = yes; then | |
4986 | echo "$as_me:$LINENO: result: yes" >&5 | |
4987 | echo "${ECHO_T}yes" >&6 | |
4988 | else | |
4989 | echo "$as_me:$LINENO: result: no" >&5 | |
4990 | echo "${ECHO_T}no" >&6 | |
4991 | fi | |
4992 | ||
4993 | ||
4994 | enablestring= | |
4995 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4996 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4997 | no_cache=0 | |
4998 | # Check whether --enable-file or --disable-file was given. | |
4999 | if test "${enable_file+set}" = set; then | |
5000 | enableval="$enable_file" | |
5001 | ||
5002 | if test "$enableval" = yes; then | |
5003 | ac_cv_use_file='wxUSE_FILE=yes' | |
5004 | else | |
5005 | ac_cv_use_file='wxUSE_FILE=no' | |
5006 | fi | |
5007 | ||
5008 | else | |
5009 | ||
5010 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5011 | if test "x$LINE" != x ; then | |
5012 | eval "DEFAULT_$LINE" | |
5013 | else | |
5014 | no_cache=1 | |
5015 | fi | |
5016 | ||
5017 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5018 | ||
5019 | fi; | |
5020 | ||
5021 | eval "$ac_cv_use_file" | |
5022 | if test "$no_cache" != 1; then | |
5023 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5024 | fi | |
5025 | ||
5026 | if test "$wxUSE_FILE" = yes; then | |
5027 | echo "$as_me:$LINENO: result: yes" >&5 | |
5028 | echo "${ECHO_T}yes" >&6 | |
5029 | else | |
5030 | echo "$as_me:$LINENO: result: no" >&5 | |
5031 | echo "${ECHO_T}no" >&6 | |
5032 | fi | |
5033 | ||
5034 | ||
5035 | enablestring= | |
5036 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5037 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5038 | no_cache=0 | |
5039 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5040 | if test "${enable_filesystem+set}" = set; then | |
5041 | enableval="$enable_filesystem" | |
5042 | ||
5043 | if test "$enableval" = yes; then | |
5044 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5045 | else | |
5046 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5047 | fi | |
5048 | ||
5049 | else | |
5050 | ||
5051 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5052 | if test "x$LINE" != x ; then | |
5053 | eval "DEFAULT_$LINE" | |
5054 | else | |
5055 | no_cache=1 | |
5056 | fi | |
5057 | ||
5058 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5059 | ||
5060 | fi; | |
5061 | ||
5062 | eval "$ac_cv_use_filesystem" | |
5063 | if test "$no_cache" != 1; then | |
5064 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5065 | fi | |
5066 | ||
5067 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5068 | echo "$as_me:$LINENO: result: yes" >&5 | |
5069 | echo "${ECHO_T}yes" >&6 | |
5070 | else | |
5071 | echo "$as_me:$LINENO: result: no" >&5 | |
5072 | echo "${ECHO_T}no" >&6 | |
5073 | fi | |
5074 | ||
5075 | ||
5076 | enablestring= | |
5077 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5078 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5079 | no_cache=0 | |
5080 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5081 | if test "${enable_fontmap+set}" = set; then | |
5082 | enableval="$enable_fontmap" | |
5083 | ||
5084 | if test "$enableval" = yes; then | |
5085 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5086 | else | |
5087 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5088 | fi | |
5089 | ||
5090 | else | |
5091 | ||
5092 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5093 | if test "x$LINE" != x ; then | |
5094 | eval "DEFAULT_$LINE" | |
5095 | else | |
5096 | no_cache=1 | |
5097 | fi | |
5098 | ||
5099 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5100 | ||
5101 | fi; | |
5102 | ||
5103 | eval "$ac_cv_use_fontmap" | |
5104 | if test "$no_cache" != 1; then | |
5105 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5106 | fi | |
5107 | ||
5108 | if test "$wxUSE_FONTMAP" = yes; then | |
5109 | echo "$as_me:$LINENO: result: yes" >&5 | |
5110 | echo "${ECHO_T}yes" >&6 | |
5111 | else | |
5112 | echo "$as_me:$LINENO: result: no" >&5 | |
5113 | echo "${ECHO_T}no" >&6 | |
5114 | fi | |
5115 | ||
5116 | ||
5117 | enablestring= | |
5118 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5119 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5120 | no_cache=0 | |
5121 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5122 | if test "${enable_fs_inet+set}" = set; then | |
5123 | enableval="$enable_fs_inet" | |
5124 | ||
5125 | if test "$enableval" = yes; then | |
5126 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5127 | else | |
5128 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5129 | fi | |
5130 | ||
5131 | else | |
5132 | ||
5133 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5134 | if test "x$LINE" != x ; then | |
5135 | eval "DEFAULT_$LINE" | |
5136 | else | |
5137 | no_cache=1 | |
5138 | fi | |
5139 | ||
5140 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5141 | ||
5142 | fi; | |
5143 | ||
5144 | eval "$ac_cv_use_fs_inet" | |
5145 | if test "$no_cache" != 1; then | |
5146 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5147 | fi | |
5148 | ||
5149 | if test "$wxUSE_FS_INET" = yes; then | |
5150 | echo "$as_me:$LINENO: result: yes" >&5 | |
5151 | echo "${ECHO_T}yes" >&6 | |
5152 | else | |
5153 | echo "$as_me:$LINENO: result: no" >&5 | |
5154 | echo "${ECHO_T}no" >&6 | |
5155 | fi | |
5156 | ||
5157 | ||
5158 | enablestring= | |
5159 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5160 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5161 | no_cache=0 | |
5162 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5163 | if test "${enable_fs_zip+set}" = set; then | |
5164 | enableval="$enable_fs_zip" | |
5165 | ||
5166 | if test "$enableval" = yes; then | |
5167 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5168 | else | |
5169 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5170 | fi | |
5171 | ||
5172 | else | |
5173 | ||
5174 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5175 | if test "x$LINE" != x ; then | |
5176 | eval "DEFAULT_$LINE" | |
5177 | else | |
5178 | no_cache=1 | |
5179 | fi | |
5180 | ||
5181 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5182 | ||
5183 | fi; | |
5184 | ||
5185 | eval "$ac_cv_use_fs_zip" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_FS_ZIP" = yes; then | |
5191 | echo "$as_me:$LINENO: result: yes" >&5 | |
5192 | echo "${ECHO_T}yes" >&6 | |
5193 | else | |
5194 | echo "$as_me:$LINENO: result: no" >&5 | |
5195 | echo "${ECHO_T}no" >&6 | |
5196 | fi | |
5197 | ||
5198 | ||
5199 | enablestring= | |
5200 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5201 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5202 | no_cache=0 | |
5203 | # Check whether --enable-geometry or --disable-geometry was given. | |
5204 | if test "${enable_geometry+set}" = set; then | |
5205 | enableval="$enable_geometry" | |
5206 | ||
5207 | if test "$enableval" = yes; then | |
5208 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5209 | else | |
5210 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5211 | fi | |
5212 | ||
5213 | else | |
5214 | ||
5215 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5216 | if test "x$LINE" != x ; then | |
5217 | eval "DEFAULT_$LINE" | |
5218 | else | |
5219 | no_cache=1 | |
5220 | fi | |
5221 | ||
5222 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5223 | ||
5224 | fi; | |
5225 | ||
5226 | eval "$ac_cv_use_geometry" | |
5227 | if test "$no_cache" != 1; then | |
5228 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5229 | fi | |
5230 | ||
5231 | if test "$wxUSE_GEOMETRY" = yes; then | |
5232 | echo "$as_me:$LINENO: result: yes" >&5 | |
5233 | echo "${ECHO_T}yes" >&6 | |
5234 | else | |
5235 | echo "$as_me:$LINENO: result: no" >&5 | |
5236 | echo "${ECHO_T}no" >&6 | |
5237 | fi | |
5238 | ||
5239 | ||
5240 | enablestring= | |
5241 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5242 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5243 | no_cache=0 | |
5244 | # Check whether --enable-log or --disable-log was given. | |
5245 | if test "${enable_log+set}" = set; then | |
5246 | enableval="$enable_log" | |
5247 | ||
5248 | if test "$enableval" = yes; then | |
5249 | ac_cv_use_log='wxUSE_LOG=yes' | |
5250 | else | |
5251 | ac_cv_use_log='wxUSE_LOG=no' | |
5252 | fi | |
5253 | ||
5254 | else | |
5255 | ||
5256 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5257 | if test "x$LINE" != x ; then | |
5258 | eval "DEFAULT_$LINE" | |
5259 | else | |
5260 | no_cache=1 | |
5261 | fi | |
5262 | ||
5263 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5264 | ||
5265 | fi; | |
5266 | ||
5267 | eval "$ac_cv_use_log" | |
5268 | if test "$no_cache" != 1; then | |
5269 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5270 | fi | |
5271 | ||
5272 | if test "$wxUSE_LOG" = yes; then | |
5273 | echo "$as_me:$LINENO: result: yes" >&5 | |
5274 | echo "${ECHO_T}yes" >&6 | |
5275 | else | |
5276 | echo "$as_me:$LINENO: result: no" >&5 | |
5277 | echo "${ECHO_T}no" >&6 | |
5278 | fi | |
5279 | ||
5280 | ||
5281 | enablestring= | |
5282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5283 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5284 | no_cache=0 | |
5285 | # Check whether --enable-longlong or --disable-longlong was given. | |
5286 | if test "${enable_longlong+set}" = set; then | |
5287 | enableval="$enable_longlong" | |
5288 | ||
5289 | if test "$enableval" = yes; then | |
5290 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5291 | else | |
5292 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5293 | fi | |
5294 | ||
5295 | else | |
5296 | ||
5297 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5298 | if test "x$LINE" != x ; then | |
5299 | eval "DEFAULT_$LINE" | |
5300 | else | |
5301 | no_cache=1 | |
5302 | fi | |
5303 | ||
5304 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5305 | ||
5306 | fi; | |
5307 | ||
5308 | eval "$ac_cv_use_longlong" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_LONGLONG" = yes; then | |
5314 | echo "$as_me:$LINENO: result: yes" >&5 | |
5315 | echo "${ECHO_T}yes" >&6 | |
5316 | else | |
5317 | echo "$as_me:$LINENO: result: no" >&5 | |
5318 | echo "${ECHO_T}no" >&6 | |
5319 | fi | |
5320 | ||
5321 | ||
5322 | enablestring= | |
5323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5324 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5325 | no_cache=0 | |
5326 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5327 | if test "${enable_mimetype+set}" = set; then | |
5328 | enableval="$enable_mimetype" | |
5329 | ||
5330 | if test "$enableval" = yes; then | |
5331 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5332 | else | |
5333 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5334 | fi | |
5335 | ||
5336 | else | |
5337 | ||
5338 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5339 | if test "x$LINE" != x ; then | |
5340 | eval "DEFAULT_$LINE" | |
5341 | else | |
5342 | no_cache=1 | |
5343 | fi | |
5344 | ||
5345 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5346 | ||
5347 | fi; | |
5348 | ||
5349 | eval "$ac_cv_use_mimetype" | |
5350 | if test "$no_cache" != 1; then | |
5351 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5352 | fi | |
5353 | ||
5354 | if test "$wxUSE_MIMETYPE" = yes; then | |
5355 | echo "$as_me:$LINENO: result: yes" >&5 | |
5356 | echo "${ECHO_T}yes" >&6 | |
5357 | else | |
5358 | echo "$as_me:$LINENO: result: no" >&5 | |
5359 | echo "${ECHO_T}no" >&6 | |
5360 | fi | |
5361 | ||
5362 | ||
5363 | enablestring= | |
5364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5365 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5366 | no_cache=0 | |
5367 | # Check whether --enable-mslu or --disable-mslu was given. | |
5368 | if test "${enable_mslu+set}" = set; then | |
5369 | enableval="$enable_mslu" | |
5370 | ||
5371 | if test "$enableval" = yes; then | |
5372 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5373 | else | |
5374 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5375 | fi | |
5376 | ||
5377 | else | |
5378 | ||
5379 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5380 | if test "x$LINE" != x ; then | |
5381 | eval "DEFAULT_$LINE" | |
5382 | else | |
5383 | no_cache=1 | |
5384 | fi | |
5385 | ||
5386 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5387 | ||
5388 | fi; | |
5389 | ||
5390 | eval "$ac_cv_use_mslu" | |
5391 | if test "$no_cache" != 1; then | |
5392 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5393 | fi | |
5394 | ||
5395 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5396 | echo "$as_me:$LINENO: result: yes" >&5 | |
5397 | echo "${ECHO_T}yes" >&6 | |
5398 | else | |
5399 | echo "$as_me:$LINENO: result: no" >&5 | |
5400 | echo "${ECHO_T}no" >&6 | |
5401 | fi | |
5402 | ||
5403 | ||
5404 | enablestring= | |
5405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5406 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5407 | no_cache=0 | |
5408 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5409 | if test "${enable_snglinst+set}" = set; then | |
5410 | enableval="$enable_snglinst" | |
5411 | ||
5412 | if test "$enableval" = yes; then | |
5413 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5414 | else | |
5415 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5416 | fi | |
5417 | ||
5418 | else | |
5419 | ||
5420 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5421 | if test "x$LINE" != x ; then | |
5422 | eval "DEFAULT_$LINE" | |
5423 | else | |
5424 | no_cache=1 | |
5425 | fi | |
5426 | ||
5427 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5428 | ||
5429 | fi; | |
5430 | ||
5431 | eval "$ac_cv_use_snglinst" | |
5432 | if test "$no_cache" != 1; then | |
5433 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5434 | fi | |
5435 | ||
5436 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5437 | echo "$as_me:$LINENO: result: yes" >&5 | |
5438 | echo "${ECHO_T}yes" >&6 | |
5439 | else | |
5440 | echo "$as_me:$LINENO: result: no" >&5 | |
5441 | echo "${ECHO_T}no" >&6 | |
5442 | fi | |
5443 | ||
5444 | ||
5445 | enablestring= | |
5446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5447 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5448 | no_cache=0 | |
5449 | # Check whether --enable-streams or --disable-streams was given. | |
5450 | if test "${enable_streams+set}" = set; then | |
5451 | enableval="$enable_streams" | |
5452 | ||
5453 | if test "$enableval" = yes; then | |
5454 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5455 | else | |
5456 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5457 | fi | |
5458 | ||
5459 | else | |
5460 | ||
5461 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5462 | if test "x$LINE" != x ; then | |
5463 | eval "DEFAULT_$LINE" | |
5464 | else | |
5465 | no_cache=1 | |
5466 | fi | |
5467 | ||
5468 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5469 | ||
5470 | fi; | |
5471 | ||
5472 | eval "$ac_cv_use_streams" | |
5473 | if test "$no_cache" != 1; then | |
5474 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5475 | fi | |
5476 | ||
5477 | if test "$wxUSE_STREAMS" = yes; then | |
5478 | echo "$as_me:$LINENO: result: yes" >&5 | |
5479 | echo "${ECHO_T}yes" >&6 | |
5480 | else | |
5481 | echo "$as_me:$LINENO: result: no" >&5 | |
5482 | echo "${ECHO_T}no" >&6 | |
5483 | fi | |
5484 | ||
5485 | ||
5486 | enablestring= | |
5487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5488 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5489 | no_cache=0 | |
5490 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5491 | if test "${enable_std_iostreams+set}" = set; then | |
5492 | enableval="$enable_std_iostreams" | |
5493 | ||
5494 | if test "$enableval" = yes; then | |
5495 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5496 | else | |
5497 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5498 | fi | |
5499 | ||
5500 | else | |
5501 | ||
5502 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5503 | if test "x$LINE" != x ; then | |
5504 | eval "DEFAULT_$LINE" | |
5505 | else | |
5506 | no_cache=1 | |
5507 | fi | |
5508 | ||
5509 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5510 | ||
5511 | fi; | |
5512 | ||
5513 | eval "$ac_cv_use_std_iostreams" | |
5514 | if test "$no_cache" != 1; then | |
5515 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5516 | fi | |
5517 | ||
5518 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5519 | echo "$as_me:$LINENO: result: yes" >&5 | |
5520 | echo "${ECHO_T}yes" >&6 | |
5521 | else | |
5522 | echo "$as_me:$LINENO: result: no" >&5 | |
5523 | echo "${ECHO_T}no" >&6 | |
5524 | fi | |
5525 | ||
5526 | ||
5527 | enablestring= | |
5528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5529 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5530 | no_cache=0 | |
5531 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5532 | if test "${enable_stopwatch+set}" = set; then | |
5533 | enableval="$enable_stopwatch" | |
5534 | ||
5535 | if test "$enableval" = yes; then | |
5536 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5537 | else | |
5538 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5539 | fi | |
5540 | ||
5541 | else | |
5542 | ||
5543 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5544 | if test "x$LINE" != x ; then | |
5545 | eval "DEFAULT_$LINE" | |
5546 | else | |
5547 | no_cache=1 | |
5548 | fi | |
5549 | ||
5550 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5551 | ||
5552 | fi; | |
5553 | ||
5554 | eval "$ac_cv_use_stopwatch" | |
5555 | if test "$no_cache" != 1; then | |
5556 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5557 | fi | |
5558 | ||
5559 | if test "$wxUSE_STOPWATCH" = yes; then | |
5560 | echo "$as_me:$LINENO: result: yes" >&5 | |
5561 | echo "${ECHO_T}yes" >&6 | |
5562 | else | |
5563 | echo "$as_me:$LINENO: result: no" >&5 | |
5564 | echo "${ECHO_T}no" >&6 | |
5565 | fi | |
5566 | ||
5567 | ||
5568 | enablestring= | |
5569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5570 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5571 | no_cache=0 | |
5572 | # Check whether --enable-system_options or --disable-system_options was given. | |
5573 | if test "${enable_system_options+set}" = set; then | |
5574 | enableval="$enable_system_options" | |
5575 | ||
5576 | if test "$enableval" = yes; then | |
5577 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5578 | else | |
5579 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5580 | fi | |
5581 | ||
5582 | else | |
5583 | ||
5584 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5585 | if test "x$LINE" != x ; then | |
5586 | eval "DEFAULT_$LINE" | |
5587 | else | |
5588 | no_cache=1 | |
5589 | fi | |
5590 | ||
5591 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5592 | ||
5593 | fi; | |
5594 | ||
5595 | eval "$ac_cv_use_system_options" | |
5596 | if test "$no_cache" != 1; then | |
5597 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5598 | fi | |
5599 | ||
5600 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5601 | echo "$as_me:$LINENO: result: yes" >&5 | |
5602 | echo "${ECHO_T}yes" >&6 | |
5603 | else | |
5604 | echo "$as_me:$LINENO: result: no" >&5 | |
5605 | echo "${ECHO_T}no" >&6 | |
5606 | fi | |
5607 | ||
5608 | ||
5609 | enablestring= | |
5610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5611 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5612 | no_cache=0 | |
5613 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5614 | if test "${enable_textbuf+set}" = set; then | |
5615 | enableval="$enable_textbuf" | |
5616 | ||
5617 | if test "$enableval" = yes; then | |
5618 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5619 | else | |
5620 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5621 | fi | |
5622 | ||
5623 | else | |
5624 | ||
5625 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5626 | if test "x$LINE" != x ; then | |
5627 | eval "DEFAULT_$LINE" | |
5628 | else | |
5629 | no_cache=1 | |
5630 | fi | |
5631 | ||
5632 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5633 | ||
5634 | fi; | |
5635 | ||
5636 | eval "$ac_cv_use_textbuf" | |
5637 | if test "$no_cache" != 1; then | |
5638 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5639 | fi | |
5640 | ||
5641 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5642 | echo "$as_me:$LINENO: result: yes" >&5 | |
5643 | echo "${ECHO_T}yes" >&6 | |
5644 | else | |
5645 | echo "$as_me:$LINENO: result: no" >&5 | |
5646 | echo "${ECHO_T}no" >&6 | |
5647 | fi | |
5648 | ||
5649 | ||
5650 | enablestring= | |
5651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5652 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5653 | no_cache=0 | |
5654 | # Check whether --enable-textfile or --disable-textfile was given. | |
5655 | if test "${enable_textfile+set}" = set; then | |
5656 | enableval="$enable_textfile" | |
5657 | ||
5658 | if test "$enableval" = yes; then | |
5659 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5660 | else | |
5661 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5662 | fi | |
5663 | ||
5664 | else | |
5665 | ||
5666 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5667 | if test "x$LINE" != x ; then | |
5668 | eval "DEFAULT_$LINE" | |
5669 | else | |
5670 | no_cache=1 | |
5671 | fi | |
5672 | ||
5673 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5674 | ||
5675 | fi; | |
5676 | ||
5677 | eval "$ac_cv_use_textfile" | |
5678 | if test "$no_cache" != 1; then | |
5679 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5680 | fi | |
5681 | ||
5682 | if test "$wxUSE_TEXTFILE" = yes; then | |
5683 | echo "$as_me:$LINENO: result: yes" >&5 | |
5684 | echo "${ECHO_T}yes" >&6 | |
5685 | else | |
5686 | echo "$as_me:$LINENO: result: no" >&5 | |
5687 | echo "${ECHO_T}no" >&6 | |
5688 | fi | |
5689 | ||
5690 | ||
5691 | enablestring= | |
5692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5693 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5694 | no_cache=0 | |
5695 | # Check whether --enable-timer or --disable-timer was given. | |
5696 | if test "${enable_timer+set}" = set; then | |
5697 | enableval="$enable_timer" | |
5698 | ||
5699 | if test "$enableval" = yes; then | |
5700 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5701 | else | |
5702 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5703 | fi | |
5704 | ||
5705 | else | |
5706 | ||
5707 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5708 | if test "x$LINE" != x ; then | |
5709 | eval "DEFAULT_$LINE" | |
5710 | else | |
5711 | no_cache=1 | |
5712 | fi | |
5713 | ||
5714 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5715 | ||
5716 | fi; | |
5717 | ||
5718 | eval "$ac_cv_use_timer" | |
5719 | if test "$no_cache" != 1; then | |
5720 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5721 | fi | |
5722 | ||
5723 | if test "$wxUSE_TIMER" = yes; then | |
5724 | echo "$as_me:$LINENO: result: yes" >&5 | |
5725 | echo "${ECHO_T}yes" >&6 | |
5726 | else | |
5727 | echo "$as_me:$LINENO: result: no" >&5 | |
5728 | echo "${ECHO_T}no" >&6 | |
5729 | fi | |
5730 | ||
5731 | ||
5732 | enablestring= | |
5733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5734 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5735 | no_cache=0 | |
5736 | # Check whether --enable-unicode or --disable-unicode was given. | |
5737 | if test "${enable_unicode+set}" = set; then | |
5738 | enableval="$enable_unicode" | |
5739 | ||
5740 | if test "$enableval" = yes; then | |
5741 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5742 | else | |
5743 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5744 | fi | |
5745 | ||
5746 | else | |
5747 | ||
5748 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5749 | if test "x$LINE" != x ; then | |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
5755 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5756 | ||
5757 | fi; | |
5758 | ||
5759 | eval "$ac_cv_use_unicode" | |
5760 | if test "$no_cache" != 1; then | |
5761 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5762 | fi | |
5763 | ||
5764 | if test "$wxUSE_UNICODE" = yes; then | |
5765 | echo "$as_me:$LINENO: result: yes" >&5 | |
5766 | echo "${ECHO_T}yes" >&6 | |
5767 | else | |
5768 | echo "$as_me:$LINENO: result: no" >&5 | |
5769 | echo "${ECHO_T}no" >&6 | |
5770 | fi | |
5771 | ||
5772 | ||
5773 | enablestring= | |
5774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5775 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5776 | no_cache=0 | |
5777 | # Check whether --enable-sound or --disable-sound was given. | |
5778 | if test "${enable_sound+set}" = set; then | |
5779 | enableval="$enable_sound" | |
5780 | ||
5781 | if test "$enableval" = yes; then | |
5782 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5783 | else | |
5784 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5785 | fi | |
5786 | ||
5787 | else | |
5788 | ||
5789 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5790 | if test "x$LINE" != x ; then | |
5791 | eval "DEFAULT_$LINE" | |
5792 | else | |
5793 | no_cache=1 | |
5794 | fi | |
5795 | ||
5796 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5797 | ||
5798 | fi; | |
5799 | ||
5800 | eval "$ac_cv_use_sound" | |
5801 | if test "$no_cache" != 1; then | |
5802 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5803 | fi | |
5804 | ||
5805 | if test "$wxUSE_SOUND" = yes; then | |
5806 | echo "$as_me:$LINENO: result: yes" >&5 | |
5807 | echo "${ECHO_T}yes" >&6 | |
5808 | else | |
5809 | echo "$as_me:$LINENO: result: no" >&5 | |
5810 | echo "${ECHO_T}no" >&6 | |
5811 | fi | |
5812 | ||
5813 | ||
3b57de8b RL |
5814 | enablestring= |
5815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5816 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5817 | no_cache=0 | |
5818 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5819 | if test "${enable_mediactrl+set}" = set; then | |
5820 | enableval="$enable_mediactrl" | |
5821 | ||
5822 | if test "$enableval" = yes; then | |
5823 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5824 | else | |
5825 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5826 | fi | |
5827 | ||
5828 | else | |
5829 | ||
5830 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5831 | if test "x$LINE" != x ; then | |
5832 | eval "DEFAULT_$LINE" | |
5833 | else | |
5834 | no_cache=1 | |
5835 | fi | |
5836 | ||
5837 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5838 | ||
5839 | fi; | |
5840 | ||
5841 | eval "$ac_cv_use_mediactrl" | |
5842 | if test "$no_cache" != 1; then | |
5843 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5844 | fi | |
5845 | ||
5846 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5847 | echo "$as_me:$LINENO: result: yes" >&5 | |
5848 | echo "${ECHO_T}yes" >&6 | |
5849 | else | |
5850 | echo "$as_me:$LINENO: result: no" >&5 | |
5851 | echo "${ECHO_T}no" >&6 | |
5852 | fi | |
5853 | ||
5854 | ||
a848cd7e SC |
5855 | enablestring= |
5856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5857 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5858 | no_cache=0 | |
5859 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5860 | if test "${enable_wxprintfv+set}" = set; then | |
5861 | enableval="$enable_wxprintfv" | |
5862 | ||
5863 | if test "$enableval" = yes; then | |
5864 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5865 | else | |
5866 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5867 | fi | |
5868 | ||
5869 | else | |
5870 | ||
5871 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5872 | if test "x$LINE" != x ; then | |
5873 | eval "DEFAULT_$LINE" | |
5874 | else | |
5875 | no_cache=1 | |
5876 | fi | |
5877 | ||
5878 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5879 | ||
5880 | fi; | |
5881 | ||
5882 | eval "$ac_cv_use_wxprintfv" | |
5883 | if test "$no_cache" != 1; then | |
5884 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5885 | fi | |
5886 | ||
5887 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5888 | echo "$as_me:$LINENO: result: yes" >&5 | |
5889 | echo "${ECHO_T}yes" >&6 | |
5890 | else | |
5891 | echo "$as_me:$LINENO: result: no" >&5 | |
5892 | echo "${ECHO_T}no" >&6 | |
5893 | fi | |
5894 | ||
5895 | ||
5896 | enablestring= | |
5897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5898 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5899 | no_cache=0 | |
5900 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5901 | if test "${enable_zipstream+set}" = set; then | |
5902 | enableval="$enable_zipstream" | |
5903 | ||
5904 | if test "$enableval" = yes; then | |
5905 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5906 | else | |
5907 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5908 | fi | |
5909 | ||
5910 | else | |
5911 | ||
5912 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5913 | if test "x$LINE" != x ; then | |
5914 | eval "DEFAULT_$LINE" | |
5915 | else | |
5916 | no_cache=1 | |
5917 | fi | |
5918 | ||
5919 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5920 | ||
5921 | fi; | |
5922 | ||
5923 | eval "$ac_cv_use_zipstream" | |
5924 | if test "$no_cache" != 1; then | |
5925 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5926 | fi | |
5927 | ||
5928 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5929 | echo "$as_me:$LINENO: result: yes" >&5 | |
5930 | echo "${ECHO_T}yes" >&6 | |
5931 | else | |
5932 | echo "$as_me:$LINENO: result: no" >&5 | |
5933 | echo "${ECHO_T}no" >&6 | |
5934 | fi | |
5935 | ||
5936 | ||
a848cd7e SC |
5937 | |
5938 | enablestring= | |
5939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5940 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5941 | no_cache=0 | |
5942 | # Check whether --enable-url or --disable-url was given. | |
5943 | if test "${enable_url+set}" = set; then | |
5944 | enableval="$enable_url" | |
5945 | ||
5946 | if test "$enableval" = yes; then | |
5947 | ac_cv_use_url='wxUSE_URL=yes' | |
5948 | else | |
5949 | ac_cv_use_url='wxUSE_URL=no' | |
5950 | fi | |
5951 | ||
5952 | else | |
5953 | ||
5954 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5955 | if test "x$LINE" != x ; then | |
5956 | eval "DEFAULT_$LINE" | |
5957 | else | |
5958 | no_cache=1 | |
5959 | fi | |
5960 | ||
5961 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5962 | ||
5963 | fi; | |
5964 | ||
5965 | eval "$ac_cv_use_url" | |
5966 | if test "$no_cache" != 1; then | |
5967 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5968 | fi | |
5969 | ||
5970 | if test "$wxUSE_URL" = yes; then | |
5971 | echo "$as_me:$LINENO: result: yes" >&5 | |
5972 | echo "${ECHO_T}yes" >&6 | |
5973 | else | |
5974 | echo "$as_me:$LINENO: result: no" >&5 | |
5975 | echo "${ECHO_T}no" >&6 | |
5976 | fi | |
5977 | ||
5978 | ||
5979 | enablestring= | |
5980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5981 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5982 | no_cache=0 | |
5983 | # Check whether --enable-protocol or --disable-protocol was given. | |
5984 | if test "${enable_protocol+set}" = set; then | |
5985 | enableval="$enable_protocol" | |
5986 | ||
5987 | if test "$enableval" = yes; then | |
5988 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5989 | else | |
5990 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5991 | fi | |
5992 | ||
5993 | else | |
5994 | ||
5995 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5996 | if test "x$LINE" != x ; then | |
5997 | eval "DEFAULT_$LINE" | |
5998 | else | |
5999 | no_cache=1 | |
6000 | fi | |
6001 | ||
6002 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6003 | ||
6004 | fi; | |
6005 | ||
6006 | eval "$ac_cv_use_protocol" | |
6007 | if test "$no_cache" != 1; then | |
6008 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6009 | fi | |
6010 | ||
6011 | if test "$wxUSE_PROTOCOL" = yes; then | |
6012 | echo "$as_me:$LINENO: result: yes" >&5 | |
6013 | echo "${ECHO_T}yes" >&6 | |
6014 | else | |
6015 | echo "$as_me:$LINENO: result: no" >&5 | |
6016 | echo "${ECHO_T}no" >&6 | |
6017 | fi | |
6018 | ||
6019 | ||
6020 | enablestring= | |
6021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6022 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6023 | no_cache=0 | |
6024 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6025 | if test "${enable_protocol_http+set}" = set; then | |
6026 | enableval="$enable_protocol_http" | |
6027 | ||
6028 | if test "$enableval" = yes; then | |
6029 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6030 | else | |
6031 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6032 | fi | |
6033 | ||
6034 | else | |
6035 | ||
6036 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6037 | if test "x$LINE" != x ; then | |
6038 | eval "DEFAULT_$LINE" | |
6039 | else | |
6040 | no_cache=1 | |
6041 | fi | |
6042 | ||
6043 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6044 | ||
6045 | fi; | |
6046 | ||
6047 | eval "$ac_cv_use_protocol_http" | |
6048 | if test "$no_cache" != 1; then | |
6049 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6050 | fi | |
6051 | ||
6052 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6053 | echo "$as_me:$LINENO: result: yes" >&5 | |
6054 | echo "${ECHO_T}yes" >&6 | |
6055 | else | |
6056 | echo "$as_me:$LINENO: result: no" >&5 | |
6057 | echo "${ECHO_T}no" >&6 | |
6058 | fi | |
6059 | ||
6060 | ||
6061 | enablestring= | |
6062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6063 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6064 | no_cache=0 | |
6065 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6066 | if test "${enable_protocol_ftp+set}" = set; then | |
6067 | enableval="$enable_protocol_ftp" | |
6068 | ||
6069 | if test "$enableval" = yes; then | |
6070 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6071 | else | |
6072 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6073 | fi | |
6074 | ||
6075 | else | |
6076 | ||
6077 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6085 | ||
6086 | fi; | |
6087 | ||
6088 | eval "$ac_cv_use_protocol_ftp" | |
6089 | if test "$no_cache" != 1; then | |
6090 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6091 | fi | |
6092 | ||
6093 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6094 | echo "$as_me:$LINENO: result: yes" >&5 | |
6095 | echo "${ECHO_T}yes" >&6 | |
6096 | else | |
6097 | echo "$as_me:$LINENO: result: no" >&5 | |
6098 | echo "${ECHO_T}no" >&6 | |
6099 | fi | |
6100 | ||
6101 | ||
6102 | enablestring= | |
6103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6104 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6105 | no_cache=0 | |
6106 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6107 | if test "${enable_protocol_file+set}" = set; then | |
6108 | enableval="$enable_protocol_file" | |
6109 | ||
6110 | if test "$enableval" = yes; then | |
6111 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6112 | else | |
6113 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6114 | fi | |
6115 | ||
6116 | else | |
6117 | ||
6118 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6119 | if test "x$LINE" != x ; then | |
6120 | eval "DEFAULT_$LINE" | |
6121 | else | |
6122 | no_cache=1 | |
6123 | fi | |
6124 | ||
6125 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6126 | ||
6127 | fi; | |
6128 | ||
6129 | eval "$ac_cv_use_protocol_file" | |
6130 | if test "$no_cache" != 1; then | |
6131 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6132 | fi | |
6133 | ||
6134 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6135 | echo "$as_me:$LINENO: result: yes" >&5 | |
6136 | echo "${ECHO_T}yes" >&6 | |
6137 | else | |
6138 | echo "$as_me:$LINENO: result: no" >&5 | |
6139 | echo "${ECHO_T}no" >&6 | |
6140 | fi | |
6141 | ||
6142 | ||
6143 | ||
6144 | ||
6145 | ||
6146 | enablestring= | |
6147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6148 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6149 | no_cache=0 | |
6150 | # Check whether --enable-threads or --disable-threads was given. | |
6151 | if test "${enable_threads+set}" = set; then | |
6152 | enableval="$enable_threads" | |
6153 | ||
6154 | if test "$enableval" = yes; then | |
6155 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6156 | else | |
6157 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6158 | fi | |
6159 | ||
6160 | else | |
6161 | ||
6162 | LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6170 | ||
6171 | fi; | |
6172 | ||
6173 | eval "$ac_cv_use_threads" | |
6174 | if test "$no_cache" != 1; then | |
6175 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6176 | fi | |
6177 | ||
6178 | if test "$wxUSE_THREADS" = 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 | if test "$wxUSE_GUI" = "yes"; then | |
6188 | ||
6189 | ||
6190 | ||
6191 | enablestring= | |
6192 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6193 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6194 | no_cache=0 | |
6195 | # Check whether --enable-docview or --disable-docview was given. | |
6196 | if test "${enable_docview+set}" = set; then | |
6197 | enableval="$enable_docview" | |
6198 | ||
6199 | if test "$enableval" = yes; then | |
6200 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6201 | else | |
6202 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6203 | fi | |
6204 | ||
6205 | else | |
6206 | ||
6207 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6208 | if test "x$LINE" != x ; then | |
6209 | eval "DEFAULT_$LINE" | |
6210 | else | |
6211 | no_cache=1 | |
6212 | fi | |
6213 | ||
6214 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6215 | ||
6216 | fi; | |
6217 | ||
6218 | eval "$ac_cv_use_docview" | |
6219 | if test "$no_cache" != 1; then | |
6220 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6221 | fi | |
6222 | ||
6223 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6224 | echo "$as_me:$LINENO: result: yes" >&5 | |
6225 | echo "${ECHO_T}yes" >&6 | |
6226 | else | |
6227 | echo "$as_me:$LINENO: result: no" >&5 | |
6228 | echo "${ECHO_T}no" >&6 | |
6229 | fi | |
6230 | ||
6231 | ||
6232 | enablestring= | |
6233 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6234 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6235 | no_cache=0 | |
6236 | # Check whether --enable-help or --disable-help was given. | |
6237 | if test "${enable_help+set}" = set; then | |
6238 | enableval="$enable_help" | |
6239 | ||
6240 | if test "$enableval" = yes; then | |
6241 | ac_cv_use_help='wxUSE_HELP=yes' | |
6242 | else | |
6243 | ac_cv_use_help='wxUSE_HELP=no' | |
6244 | fi | |
6245 | ||
6246 | else | |
6247 | ||
6248 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6249 | if test "x$LINE" != x ; then | |
6250 | eval "DEFAULT_$LINE" | |
6251 | else | |
6252 | no_cache=1 | |
6253 | fi | |
6254 | ||
6255 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6256 | ||
6257 | fi; | |
6258 | ||
6259 | eval "$ac_cv_use_help" | |
6260 | if test "$no_cache" != 1; then | |
6261 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6262 | fi | |
6263 | ||
6264 | if test "$wxUSE_HELP" = yes; then | |
6265 | echo "$as_me:$LINENO: result: yes" >&5 | |
6266 | echo "${ECHO_T}yes" >&6 | |
6267 | else | |
6268 | echo "$as_me:$LINENO: result: no" >&5 | |
6269 | echo "${ECHO_T}no" >&6 | |
6270 | fi | |
6271 | ||
6272 | ||
6273 | enablestring= | |
6274 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6275 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6276 | no_cache=0 | |
6277 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6278 | if test "${enable_mshtmlhelp+set}" = set; then | |
6279 | enableval="$enable_mshtmlhelp" | |
6280 | ||
6281 | if test "$enableval" = yes; then | |
6282 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6283 | else | |
6284 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6285 | fi | |
6286 | ||
6287 | else | |
6288 | ||
6289 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6290 | if test "x$LINE" != x ; then | |
6291 | eval "DEFAULT_$LINE" | |
6292 | else | |
6293 | no_cache=1 | |
6294 | fi | |
6295 | ||
6296 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6297 | ||
6298 | fi; | |
6299 | ||
6300 | eval "$ac_cv_use_mshtmlhelp" | |
6301 | if test "$no_cache" != 1; then | |
6302 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6303 | fi | |
6304 | ||
6305 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6306 | echo "$as_me:$LINENO: result: yes" >&5 | |
6307 | echo "${ECHO_T}yes" >&6 | |
6308 | else | |
6309 | echo "$as_me:$LINENO: result: no" >&5 | |
6310 | echo "${ECHO_T}no" >&6 | |
6311 | fi | |
6312 | ||
6313 | ||
6314 | enablestring= | |
6315 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6316 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6317 | no_cache=0 | |
6318 | # Check whether --enable-html or --disable-html was given. | |
6319 | if test "${enable_html+set}" = set; then | |
6320 | enableval="$enable_html" | |
6321 | ||
6322 | if test "$enableval" = yes; then | |
6323 | ac_cv_use_html='wxUSE_HTML=yes' | |
6324 | else | |
6325 | ac_cv_use_html='wxUSE_HTML=no' | |
6326 | fi | |
6327 | ||
6328 | else | |
6329 | ||
6330 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6331 | if test "x$LINE" != x ; then | |
6332 | eval "DEFAULT_$LINE" | |
6333 | else | |
6334 | no_cache=1 | |
6335 | fi | |
6336 | ||
6337 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6338 | ||
6339 | fi; | |
6340 | ||
6341 | eval "$ac_cv_use_html" | |
6342 | if test "$no_cache" != 1; then | |
6343 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6344 | fi | |
6345 | ||
6346 | if test "$wxUSE_HTML" = yes; then | |
6347 | echo "$as_me:$LINENO: result: yes" >&5 | |
6348 | echo "${ECHO_T}yes" >&6 | |
6349 | else | |
6350 | echo "$as_me:$LINENO: result: no" >&5 | |
6351 | echo "${ECHO_T}no" >&6 | |
6352 | fi | |
6353 | ||
6354 | ||
6355 | enablestring= | |
6356 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6357 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6358 | no_cache=0 | |
6359 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6360 | if test "${enable_htmlhelp+set}" = set; then | |
6361 | enableval="$enable_htmlhelp" | |
6362 | ||
6363 | if test "$enableval" = yes; then | |
6364 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6365 | else | |
6366 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6367 | fi | |
6368 | ||
6369 | else | |
6370 | ||
6371 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6372 | if test "x$LINE" != x ; then | |
6373 | eval "DEFAULT_$LINE" | |
6374 | else | |
6375 | no_cache=1 | |
6376 | fi | |
6377 | ||
6378 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6379 | ||
6380 | fi; | |
6381 | ||
6382 | eval "$ac_cv_use_htmlhelp" | |
6383 | if test "$no_cache" != 1; then | |
6384 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6385 | fi | |
6386 | ||
6387 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6388 | echo "$as_me:$LINENO: result: yes" >&5 | |
6389 | echo "${ECHO_T}yes" >&6 | |
6390 | else | |
6391 | echo "$as_me:$LINENO: result: no" >&5 | |
6392 | echo "${ECHO_T}no" >&6 | |
6393 | fi | |
6394 | ||
6395 | ||
9a8f0513 VS |
6396 | enablestring= |
6397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6398 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6399 | no_cache=0 | |
6400 | # Check whether --enable-xrc or --disable-xrc was given. | |
6401 | if test "${enable_xrc+set}" = set; then | |
6402 | enableval="$enable_xrc" | |
6403 | ||
6404 | if test "$enableval" = yes; then | |
6405 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6406 | else | |
6407 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6408 | fi | |
6409 | ||
6410 | else | |
6411 | ||
6412 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6413 | if test "x$LINE" != x ; then | |
6414 | eval "DEFAULT_$LINE" | |
6415 | else | |
6416 | no_cache=1 | |
6417 | fi | |
6418 | ||
6419 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6420 | ||
6421 | fi; | |
6422 | ||
6423 | eval "$ac_cv_use_xrc" | |
6424 | if test "$no_cache" != 1; then | |
6425 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6426 | fi | |
6427 | ||
6428 | if test "$wxUSE_XRC" = yes; then | |
6429 | echo "$as_me:$LINENO: result: yes" >&5 | |
6430 | echo "${ECHO_T}yes" >&6 | |
6431 | else | |
6432 | echo "$as_me:$LINENO: result: no" >&5 | |
6433 | echo "${ECHO_T}no" >&6 | |
6434 | fi | |
6435 | ||
6436 | ||
a848cd7e SC |
6437 | enablestring= |
6438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6439 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6440 | no_cache=0 | |
6441 | # Check whether --enable-constraints or --disable-constraints was given. | |
6442 | if test "${enable_constraints+set}" = set; then | |
6443 | enableval="$enable_constraints" | |
6444 | ||
6445 | if test "$enableval" = yes; then | |
6446 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6447 | else | |
6448 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6449 | fi | |
6450 | ||
6451 | else | |
6452 | ||
6453 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6454 | if test "x$LINE" != x ; then | |
6455 | eval "DEFAULT_$LINE" | |
6456 | else | |
6457 | no_cache=1 | |
6458 | fi | |
6459 | ||
6460 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6461 | ||
6462 | fi; | |
6463 | ||
6464 | eval "$ac_cv_use_constraints" | |
6465 | if test "$no_cache" != 1; then | |
6466 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6467 | fi | |
6468 | ||
6469 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6470 | echo "$as_me:$LINENO: result: yes" >&5 | |
6471 | echo "${ECHO_T}yes" >&6 | |
6472 | else | |
6473 | echo "$as_me:$LINENO: result: no" >&5 | |
6474 | echo "${ECHO_T}no" >&6 | |
6475 | fi | |
6476 | ||
6477 | ||
6478 | enablestring= | |
6479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6480 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6481 | no_cache=0 | |
6482 | # Check whether --enable-printarch or --disable-printarch was given. | |
6483 | if test "${enable_printarch+set}" = set; then | |
6484 | enableval="$enable_printarch" | |
6485 | ||
6486 | if test "$enableval" = yes; then | |
6487 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6488 | else | |
6489 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6490 | fi | |
6491 | ||
6492 | else | |
6493 | ||
6494 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6495 | if test "x$LINE" != x ; then | |
6496 | eval "DEFAULT_$LINE" | |
6497 | else | |
6498 | no_cache=1 | |
6499 | fi | |
6500 | ||
6501 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6502 | ||
6503 | fi; | |
6504 | ||
6505 | eval "$ac_cv_use_printarch" | |
6506 | if test "$no_cache" != 1; then | |
6507 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6508 | fi | |
6509 | ||
6510 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6511 | echo "$as_me:$LINENO: result: yes" >&5 | |
6512 | echo "${ECHO_T}yes" >&6 | |
6513 | else | |
6514 | echo "$as_me:$LINENO: result: no" >&5 | |
6515 | echo "${ECHO_T}no" >&6 | |
6516 | fi | |
6517 | ||
6518 | ||
6519 | enablestring= | |
6520 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6521 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6522 | no_cache=0 | |
6523 | # Check whether --enable-mdi or --disable-mdi was given. | |
6524 | if test "${enable_mdi+set}" = set; then | |
6525 | enableval="$enable_mdi" | |
6526 | ||
6527 | if test "$enableval" = yes; then | |
8a7b1113 | 6528 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6529 | else |
8a7b1113 | 6530 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6531 | fi |
6532 | ||
6533 | else | |
6534 | ||
8a7b1113 | 6535 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6536 | if test "x$LINE" != x ; then |
6537 | eval "DEFAULT_$LINE" | |
6538 | else | |
6539 | no_cache=1 | |
6540 | fi | |
6541 | ||
8a7b1113 | 6542 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6543 | |
6544 | fi; | |
6545 | ||
6546 | eval "$ac_cv_use_mdi" | |
6547 | if test "$no_cache" != 1; then | |
6548 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6549 | fi | |
6550 | ||
8a7b1113 VZ |
6551 | if test "$wxUSE_MDI" = yes; then |
6552 | echo "$as_me:$LINENO: result: yes" >&5 | |
6553 | echo "${ECHO_T}yes" >&6 | |
6554 | else | |
6555 | echo "$as_me:$LINENO: result: no" >&5 | |
6556 | echo "${ECHO_T}no" >&6 | |
6557 | fi | |
6558 | ||
6559 | ||
6560 | enablestring= | |
6561 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6562 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6563 | no_cache=0 | |
6564 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6565 | if test "${enable_mdidoc+set}" = set; then | |
6566 | enableval="$enable_mdidoc" | |
6567 | ||
6568 | if test "$enableval" = yes; then | |
6569 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6570 | else | |
6571 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6572 | fi | |
6573 | ||
6574 | else | |
6575 | ||
6576 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6577 | if test "x$LINE" != x ; then | |
6578 | eval "DEFAULT_$LINE" | |
6579 | else | |
6580 | no_cache=1 | |
6581 | fi | |
6582 | ||
6583 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6584 | ||
6585 | fi; | |
6586 | ||
6587 | eval "$ac_cv_use_mdidoc" | |
6588 | if test "$no_cache" != 1; then | |
6589 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6590 | fi | |
6591 | ||
a848cd7e SC |
6592 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6593 | echo "$as_me:$LINENO: result: yes" >&5 | |
6594 | echo "${ECHO_T}yes" >&6 | |
6595 | else | |
6596 | echo "$as_me:$LINENO: result: no" >&5 | |
6597 | echo "${ECHO_T}no" >&6 | |
6598 | fi | |
6599 | ||
6600 | ||
6601 | enablestring= | |
6602 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6603 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6604 | no_cache=0 | |
6605 | # Check whether --enable-loggui or --disable-loggui was given. | |
6606 | if test "${enable_loggui+set}" = set; then | |
6607 | enableval="$enable_loggui" | |
6608 | ||
6609 | if test "$enableval" = yes; then | |
6610 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6611 | else | |
6612 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6613 | fi | |
6614 | ||
6615 | else | |
6616 | ||
6617 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6618 | if test "x$LINE" != x ; then | |
6619 | eval "DEFAULT_$LINE" | |
6620 | else | |
6621 | no_cache=1 | |
6622 | fi | |
6623 | ||
6624 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6625 | ||
6626 | fi; | |
6627 | ||
6628 | eval "$ac_cv_use_loggui" | |
6629 | if test "$no_cache" != 1; then | |
6630 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6631 | fi | |
6632 | ||
6633 | if test "$wxUSE_LOGGUI" = yes; then | |
6634 | echo "$as_me:$LINENO: result: yes" >&5 | |
6635 | echo "${ECHO_T}yes" >&6 | |
6636 | else | |
6637 | echo "$as_me:$LINENO: result: no" >&5 | |
6638 | echo "${ECHO_T}no" >&6 | |
6639 | fi | |
6640 | ||
6641 | ||
6642 | enablestring= | |
6643 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6644 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6645 | no_cache=0 | |
6646 | # Check whether --enable-logwin or --disable-logwin was given. | |
6647 | if test "${enable_logwin+set}" = set; then | |
6648 | enableval="$enable_logwin" | |
6649 | ||
6650 | if test "$enableval" = yes; then | |
6651 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6652 | else | |
6653 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6654 | fi | |
6655 | ||
6656 | else | |
6657 | ||
6658 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6659 | if test "x$LINE" != x ; then | |
6660 | eval "DEFAULT_$LINE" | |
6661 | else | |
6662 | no_cache=1 | |
6663 | fi | |
6664 | ||
6665 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6666 | ||
6667 | fi; | |
6668 | ||
6669 | eval "$ac_cv_use_logwin" | |
6670 | if test "$no_cache" != 1; then | |
6671 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6672 | fi | |
6673 | ||
6674 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6675 | echo "$as_me:$LINENO: result: yes" >&5 | |
6676 | echo "${ECHO_T}yes" >&6 | |
6677 | else | |
6678 | echo "$as_me:$LINENO: result: no" >&5 | |
6679 | echo "${ECHO_T}no" >&6 | |
6680 | fi | |
6681 | ||
6682 | ||
6683 | enablestring= | |
6684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6685 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6686 | no_cache=0 | |
6687 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6688 | if test "${enable_logdialog+set}" = set; then | |
6689 | enableval="$enable_logdialog" | |
6690 | ||
6691 | if test "$enableval" = yes; then | |
6692 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6693 | else | |
6694 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6695 | fi | |
6696 | ||
6697 | else | |
6698 | ||
6699 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6700 | if test "x$LINE" != x ; then | |
6701 | eval "DEFAULT_$LINE" | |
6702 | else | |
6703 | no_cache=1 | |
6704 | fi | |
6705 | ||
6706 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6707 | ||
6708 | fi; | |
6709 | ||
6710 | eval "$ac_cv_use_logdialog" | |
6711 | if test "$no_cache" != 1; then | |
6712 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6713 | fi | |
6714 | ||
6715 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6716 | echo "$as_me:$LINENO: result: yes" >&5 | |
6717 | echo "${ECHO_T}yes" >&6 | |
6718 | else | |
6719 | echo "$as_me:$LINENO: result: no" >&5 | |
6720 | echo "${ECHO_T}no" >&6 | |
6721 | fi | |
6722 | ||
6723 | ||
646b6ec1 VS |
6724 | enablestring= |
6725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6726 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6727 | no_cache=0 | |
6728 | # Check whether --enable-webkit or --disable-webkit was given. | |
6729 | if test "${enable_webkit+set}" = set; then | |
6730 | enableval="$enable_webkit" | |
6731 | ||
6732 | if test "$enableval" = yes; then | |
6733 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6734 | else | |
6735 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6736 | fi | |
6737 | ||
6738 | else | |
6739 | ||
6740 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6741 | if test "x$LINE" != x ; then | |
6742 | eval "DEFAULT_$LINE" | |
6743 | else | |
6744 | no_cache=1 | |
6745 | fi | |
6746 | ||
6747 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6748 | ||
6749 | fi; | |
6750 | ||
6751 | eval "$ac_cv_use_webkit" | |
6752 | if test "$no_cache" != 1; then | |
6753 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6754 | fi | |
6755 | ||
6756 | if test "$wxUSE_WEBKIT" = yes; then | |
6757 | echo "$as_me:$LINENO: result: yes" >&5 | |
6758 | echo "${ECHO_T}yes" >&6 | |
6759 | else | |
6760 | echo "$as_me:$LINENO: result: no" >&5 | |
6761 | echo "${ECHO_T}no" >&6 | |
6762 | fi | |
6763 | ||
6764 | ||
a848cd7e SC |
6765 | |
6766 | enablestring= | |
6767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6768 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6769 | no_cache=0 | |
6770 | # Check whether --enable-postscript or --disable-postscript was given. | |
6771 | if test "${enable_postscript+set}" = set; then | |
6772 | enableval="$enable_postscript" | |
6773 | ||
6774 | if test "$enableval" = yes; then | |
6775 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6776 | else | |
6777 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6778 | fi | |
6779 | ||
6780 | else | |
6781 | ||
6782 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6783 | if test "x$LINE" != x ; then | |
6784 | eval "DEFAULT_$LINE" | |
6785 | else | |
6786 | no_cache=1 | |
6787 | fi | |
6788 | ||
6789 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6790 | ||
6791 | fi; | |
6792 | ||
6793 | eval "$ac_cv_use_postscript" | |
6794 | if test "$no_cache" != 1; then | |
6795 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6796 | fi | |
6797 | ||
6798 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6799 | echo "$as_me:$LINENO: result: yes" >&5 | |
6800 | echo "${ECHO_T}yes" >&6 | |
6801 | else | |
6802 | echo "$as_me:$LINENO: result: no" >&5 | |
6803 | echo "${ECHO_T}no" >&6 | |
6804 | fi | |
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | enablestring= | |
6811 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6812 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6813 | no_cache=0 | |
6814 | # Check whether --enable-prologio or --disable-prologio was given. | |
6815 | if test "${enable_prologio+set}" = set; then | |
6816 | enableval="$enable_prologio" | |
6817 | ||
6818 | if test "$enableval" = yes; then | |
6819 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6820 | else | |
6821 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6822 | fi | |
6823 | ||
6824 | else | |
6825 | ||
6826 | LINE=`grep "wxUSE_PROLOGIO" ${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_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6834 | ||
6835 | fi; | |
6836 | ||
6837 | eval "$ac_cv_use_prologio" | |
6838 | if test "$no_cache" != 1; then | |
6839 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6840 | fi | |
6841 | ||
6842 | if test "$wxUSE_PROLOGIO" = 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 | enablestring= | |
6852 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6853 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6854 | no_cache=0 | |
6855 | # Check whether --enable-resources or --disable-resources was given. | |
6856 | if test "${enable_resources+set}" = set; then | |
6857 | enableval="$enable_resources" | |
6858 | ||
6859 | if test "$enableval" = yes; then | |
6860 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6861 | else | |
6862 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6863 | fi | |
6864 | ||
6865 | else | |
6866 | ||
6867 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6868 | if test "x$LINE" != x ; then | |
6869 | eval "DEFAULT_$LINE" | |
6870 | else | |
6871 | no_cache=1 | |
6872 | fi | |
6873 | ||
6874 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6875 | ||
6876 | fi; | |
6877 | ||
6878 | eval "$ac_cv_use_resources" | |
6879 | if test "$no_cache" != 1; then | |
6880 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6881 | fi | |
6882 | ||
6883 | if test "$wxUSE_RESOURCES" = yes; then | |
6884 | echo "$as_me:$LINENO: result: yes" >&5 | |
6885 | echo "${ECHO_T}yes" >&6 | |
6886 | else | |
6887 | echo "$as_me:$LINENO: result: no" >&5 | |
6888 | echo "${ECHO_T}no" >&6 | |
6889 | fi | |
6890 | ||
6891 | ||
6892 | ||
6893 | ||
6894 | enablestring= | |
6895 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6896 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6897 | no_cache=0 | |
6898 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6899 | if test "${enable_clipboard+set}" = set; then | |
6900 | enableval="$enable_clipboard" | |
6901 | ||
6902 | if test "$enableval" = yes; then | |
6903 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6904 | else | |
6905 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6906 | fi | |
6907 | ||
6908 | else | |
6909 | ||
6910 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6911 | if test "x$LINE" != x ; then | |
6912 | eval "DEFAULT_$LINE" | |
6913 | else | |
6914 | no_cache=1 | |
6915 | fi | |
6916 | ||
6917 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6918 | ||
6919 | fi; | |
6920 | ||
6921 | eval "$ac_cv_use_clipboard" | |
6922 | if test "$no_cache" != 1; then | |
6923 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6924 | fi | |
6925 | ||
6926 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6927 | echo "$as_me:$LINENO: result: yes" >&5 | |
6928 | echo "${ECHO_T}yes" >&6 | |
6929 | else | |
6930 | echo "$as_me:$LINENO: result: no" >&5 | |
6931 | echo "${ECHO_T}no" >&6 | |
6932 | fi | |
6933 | ||
6934 | ||
6935 | enablestring= | |
6936 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6937 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6938 | no_cache=0 | |
6939 | # Check whether --enable-dnd or --disable-dnd was given. | |
6940 | if test "${enable_dnd+set}" = set; then | |
6941 | enableval="$enable_dnd" | |
6942 | ||
6943 | if test "$enableval" = yes; then | |
6944 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6945 | else | |
6946 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6947 | fi | |
6948 | ||
6949 | else | |
6950 | ||
6951 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6952 | if test "x$LINE" != x ; then | |
6953 | eval "DEFAULT_$LINE" | |
6954 | else | |
6955 | no_cache=1 | |
6956 | fi | |
6957 | ||
6958 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6959 | ||
6960 | fi; | |
6961 | ||
6962 | eval "$ac_cv_use_dnd" | |
6963 | if test "$no_cache" != 1; then | |
6964 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6965 | fi | |
6966 | ||
6967 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6968 | echo "$as_me:$LINENO: result: yes" >&5 | |
6969 | echo "${ECHO_T}yes" >&6 | |
6970 | else | |
6971 | echo "$as_me:$LINENO: result: no" >&5 | |
6972 | echo "${ECHO_T}no" >&6 | |
6973 | fi | |
6974 | ||
6975 | ||
6976 | enablestring= | |
6977 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6978 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6979 | no_cache=0 | |
6980 | # Check whether --enable-metafile or --disable-metafile was given. | |
6981 | if test "${enable_metafile+set}" = set; then | |
6982 | enableval="$enable_metafile" | |
6983 | ||
6984 | if test "$enableval" = yes; then | |
6985 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6986 | else | |
6987 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6988 | fi | |
6989 | ||
6990 | else | |
6991 | ||
6992 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6993 | if test "x$LINE" != x ; then | |
6994 | eval "DEFAULT_$LINE" | |
6995 | else | |
6996 | no_cache=1 | |
6997 | fi | |
6998 | ||
6999 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7000 | ||
7001 | fi; | |
7002 | ||
7003 | eval "$ac_cv_use_metafile" | |
7004 | if test "$no_cache" != 1; then | |
7005 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7006 | fi | |
7007 | ||
7008 | if test "$wxUSE_METAFILE" = yes; then | |
7009 | echo "$as_me:$LINENO: result: yes" >&5 | |
7010 | echo "${ECHO_T}yes" >&6 | |
7011 | else | |
7012 | echo "$as_me:$LINENO: result: no" >&5 | |
7013 | echo "${ECHO_T}no" >&6 | |
7014 | fi | |
7015 | ||
7016 | ||
7017 | ||
7018 | ||
7019 | ||
7020 | enablestring= | |
7021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7022 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7023 | no_cache=0 | |
7024 | # Check whether --enable-controls or --disable-controls was given. | |
7025 | if test "${enable_controls+set}" = set; then | |
7026 | enableval="$enable_controls" | |
7027 | ||
7028 | if test "$enableval" = yes; then | |
7029 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7030 | else | |
7031 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7032 | fi | |
7033 | ||
7034 | else | |
7035 | ||
7036 | LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7044 | ||
7045 | fi; | |
7046 | ||
7047 | eval "$ac_cv_use_controls" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_CONTROLS" = 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 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7062 | DEFAULT_wxUSE_ACCEL=yes | |
7063 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7064 | DEFAULT_wxUSE_BUTTON=yes | |
7065 | DEFAULT_wxUSE_CALCTRL=no | |
7066 | DEFAULT_wxUSE_CARET=yes | |
7067 | DEFAULT_wxUSE_COMBOBOX=yes | |
7068 | DEFAULT_wxUSE_CHECKBOX=yes | |
7069 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7070 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7071 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
7072 | DEFAULT_wxUSE_GAUGE=yes |
7073 | DEFAULT_wxUSE_GRID=yes | |
7074 | DEFAULT_wxUSE_IMAGLIST=yes | |
7075 | DEFAULT_wxUSE_LISTBOOK=yes | |
7076 | DEFAULT_wxUSE_LISTBOX=yes | |
7077 | DEFAULT_wxUSE_LISTCTRL=yes | |
7078 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7079 | DEFAULT_wxUSE_RADIOBOX=yes | |
7080 | DEFAULT_wxUSE_RADIOBTN=yes | |
7081 | DEFAULT_wxUSE_SASH=yes | |
7082 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7083 | DEFAULT_wxUSE_SLIDER=yes | |
7084 | DEFAULT_wxUSE_SPINBTN=yes | |
7085 | DEFAULT_wxUSE_SPINCTRL=yes | |
7086 | DEFAULT_wxUSE_SPLITTER=yes | |
7087 | DEFAULT_wxUSE_STATBMP=yes | |
7088 | DEFAULT_wxUSE_STATBOX=yes | |
7089 | DEFAULT_wxUSE_STATLINE=yes | |
7090 | DEFAULT_wxUSE_STATUSBAR=yes | |
7091 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7092 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7093 | DEFAULT_wxUSE_TOOLBAR=yes | |
7094 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7095 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7096 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7097 | DEFAULT_wxUSE_TREECTRL=yes | |
7098 | DEFAULT_wxUSE_POPUPWIN=yes | |
7099 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7100 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7101 | DEFAULT_wxUSE_ACCEL=no | |
7102 | DEFAULT_wxUSE_BMPBUTTON=no | |
7103 | DEFAULT_wxUSE_BUTTON=no | |
7104 | DEFAULT_wxUSE_CALCTRL=no | |
7105 | DEFAULT_wxUSE_CARET=no | |
7106 | DEFAULT_wxUSE_COMBOBOX=no | |
7107 | DEFAULT_wxUSE_CHECKBOX=no | |
7108 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7109 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7110 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
7111 | DEFAULT_wxUSE_GAUGE=no |
7112 | DEFAULT_wxUSE_GRID=no | |
7113 | DEFAULT_wxUSE_IMAGLIST=no | |
7114 | DEFAULT_wxUSE_LISTBOOK=no | |
7115 | DEFAULT_wxUSE_LISTBOX=no | |
7116 | DEFAULT_wxUSE_LISTCTRL=no | |
7117 | DEFAULT_wxUSE_NOTEBOOK=no | |
7118 | DEFAULT_wxUSE_RADIOBOX=no | |
7119 | DEFAULT_wxUSE_RADIOBTN=no | |
7120 | DEFAULT_wxUSE_SASH=no | |
7121 | DEFAULT_wxUSE_SCROLLBAR=no | |
7122 | DEFAULT_wxUSE_SLIDER=no | |
7123 | DEFAULT_wxUSE_SPINBTN=no | |
7124 | DEFAULT_wxUSE_SPINCTRL=no | |
7125 | DEFAULT_wxUSE_SPLITTER=no | |
7126 | DEFAULT_wxUSE_STATBMP=no | |
7127 | DEFAULT_wxUSE_STATBOX=no | |
7128 | DEFAULT_wxUSE_STATLINE=no | |
7129 | DEFAULT_wxUSE_STATUSBAR=no | |
7130 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7131 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7132 | DEFAULT_wxUSE_TOOLBAR=no | |
7133 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7134 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7135 | DEFAULT_wxUSE_TOOLTIPS=no | |
7136 | DEFAULT_wxUSE_TREECTRL=no | |
7137 | DEFAULT_wxUSE_POPUPWIN=no | |
7138 | DEFAULT_wxUSE_TIPWINDOW=no | |
7139 | fi | |
7140 | ||
a848cd7e SC |
7141 | |
7142 | enablestring= | |
7143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7144 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7145 | no_cache=0 | |
7146 | # Check whether --enable-accel or --disable-accel was given. | |
7147 | if test "${enable_accel+set}" = set; then | |
7148 | enableval="$enable_accel" | |
7149 | ||
7150 | if test "$enableval" = yes; then | |
7151 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7152 | else | |
7153 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7154 | fi | |
7155 | ||
7156 | else | |
7157 | ||
7158 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7159 | if test "x$LINE" != x ; then | |
7160 | eval "DEFAULT_$LINE" | |
7161 | else | |
7162 | no_cache=1 | |
7163 | fi | |
7164 | ||
7165 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7166 | ||
7167 | fi; | |
7168 | ||
7169 | eval "$ac_cv_use_accel" | |
7170 | if test "$no_cache" != 1; then | |
7171 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7172 | fi | |
7173 | ||
7174 | if test "$wxUSE_ACCEL" = yes; then | |
7175 | echo "$as_me:$LINENO: result: yes" >&5 | |
7176 | echo "${ECHO_T}yes" >&6 | |
7177 | else | |
7178 | echo "$as_me:$LINENO: result: no" >&5 | |
7179 | echo "${ECHO_T}no" >&6 | |
7180 | fi | |
7181 | ||
7182 | ||
7183 | enablestring= | |
7184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7185 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7186 | no_cache=0 | |
7187 | # Check whether --enable-button or --disable-button was given. | |
7188 | if test "${enable_button+set}" = set; then | |
7189 | enableval="$enable_button" | |
7190 | ||
7191 | if test "$enableval" = yes; then | |
7192 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7193 | else | |
7194 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7195 | fi | |
7196 | ||
7197 | else | |
7198 | ||
7199 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7200 | if test "x$LINE" != x ; then | |
7201 | eval "DEFAULT_$LINE" | |
7202 | else | |
7203 | no_cache=1 | |
7204 | fi | |
7205 | ||
7206 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7207 | ||
7208 | fi; | |
7209 | ||
7210 | eval "$ac_cv_use_button" | |
7211 | if test "$no_cache" != 1; then | |
7212 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7213 | fi | |
7214 | ||
7215 | if test "$wxUSE_BUTTON" = yes; then | |
7216 | echo "$as_me:$LINENO: result: yes" >&5 | |
7217 | echo "${ECHO_T}yes" >&6 | |
7218 | else | |
7219 | echo "$as_me:$LINENO: result: no" >&5 | |
7220 | echo "${ECHO_T}no" >&6 | |
7221 | fi | |
7222 | ||
7223 | ||
7224 | enablestring= | |
7225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7226 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7227 | no_cache=0 | |
7228 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7229 | if test "${enable_bmpbutton+set}" = set; then | |
7230 | enableval="$enable_bmpbutton" | |
7231 | ||
7232 | if test "$enableval" = yes; then | |
7233 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7234 | else | |
7235 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7236 | fi | |
7237 | ||
7238 | else | |
7239 | ||
7240 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7241 | if test "x$LINE" != x ; then | |
7242 | eval "DEFAULT_$LINE" | |
7243 | else | |
7244 | no_cache=1 | |
7245 | fi | |
7246 | ||
7247 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7248 | ||
7249 | fi; | |
7250 | ||
7251 | eval "$ac_cv_use_bmpbutton" | |
7252 | if test "$no_cache" != 1; then | |
7253 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7254 | fi | |
7255 | ||
7256 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7257 | echo "$as_me:$LINENO: result: yes" >&5 | |
7258 | echo "${ECHO_T}yes" >&6 | |
7259 | else | |
7260 | echo "$as_me:$LINENO: result: no" >&5 | |
7261 | echo "${ECHO_T}no" >&6 | |
7262 | fi | |
7263 | ||
7264 | ||
7265 | enablestring= | |
7266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7267 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7268 | no_cache=0 | |
7269 | # Check whether --enable-calendar or --disable-calendar was given. | |
7270 | if test "${enable_calendar+set}" = set; then | |
7271 | enableval="$enable_calendar" | |
7272 | ||
7273 | if test "$enableval" = yes; then | |
7274 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7275 | else | |
7276 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7277 | fi | |
7278 | ||
7279 | else | |
7280 | ||
7281 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7282 | if test "x$LINE" != x ; then | |
7283 | eval "DEFAULT_$LINE" | |
7284 | else | |
7285 | no_cache=1 | |
7286 | fi | |
7287 | ||
7288 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7289 | ||
7290 | fi; | |
7291 | ||
7292 | eval "$ac_cv_use_calendar" | |
7293 | if test "$no_cache" != 1; then | |
7294 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7295 | fi | |
7296 | ||
7297 | if test "$wxUSE_CALCTRL" = yes; then | |
7298 | echo "$as_me:$LINENO: result: yes" >&5 | |
7299 | echo "${ECHO_T}yes" >&6 | |
7300 | else | |
7301 | echo "$as_me:$LINENO: result: no" >&5 | |
7302 | echo "${ECHO_T}no" >&6 | |
7303 | fi | |
7304 | ||
7305 | ||
7306 | enablestring= | |
7307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7308 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7309 | no_cache=0 | |
7310 | # Check whether --enable-caret or --disable-caret was given. | |
7311 | if test "${enable_caret+set}" = set; then | |
7312 | enableval="$enable_caret" | |
7313 | ||
7314 | if test "$enableval" = yes; then | |
7315 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7316 | else | |
7317 | ac_cv_use_caret='wxUSE_CARET=no' | |
7318 | fi | |
7319 | ||
7320 | else | |
7321 | ||
7322 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7323 | if test "x$LINE" != x ; then | |
7324 | eval "DEFAULT_$LINE" | |
7325 | else | |
7326 | no_cache=1 | |
7327 | fi | |
7328 | ||
7329 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7330 | ||
7331 | fi; | |
7332 | ||
7333 | eval "$ac_cv_use_caret" | |
7334 | if test "$no_cache" != 1; then | |
7335 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7336 | fi | |
7337 | ||
7338 | if test "$wxUSE_CARET" = yes; then | |
7339 | echo "$as_me:$LINENO: result: yes" >&5 | |
7340 | echo "${ECHO_T}yes" >&6 | |
7341 | else | |
7342 | echo "$as_me:$LINENO: result: no" >&5 | |
7343 | echo "${ECHO_T}no" >&6 | |
7344 | fi | |
7345 | ||
7346 | ||
7347 | enablestring= | |
7348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7349 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7350 | no_cache=0 | |
7351 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7352 | if test "${enable_checkbox+set}" = set; then | |
7353 | enableval="$enable_checkbox" | |
7354 | ||
7355 | if test "$enableval" = yes; then | |
7356 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7357 | else | |
7358 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7359 | fi | |
7360 | ||
7361 | else | |
7362 | ||
7363 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7364 | if test "x$LINE" != x ; then | |
7365 | eval "DEFAULT_$LINE" | |
7366 | else | |
7367 | no_cache=1 | |
7368 | fi | |
7369 | ||
7370 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7371 | ||
7372 | fi; | |
7373 | ||
7374 | eval "$ac_cv_use_checkbox" | |
7375 | if test "$no_cache" != 1; then | |
7376 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7377 | fi | |
7378 | ||
7379 | if test "$wxUSE_CHECKBOX" = yes; then | |
7380 | echo "$as_me:$LINENO: result: yes" >&5 | |
7381 | echo "${ECHO_T}yes" >&6 | |
7382 | else | |
7383 | echo "$as_me:$LINENO: result: no" >&5 | |
7384 | echo "${ECHO_T}no" >&6 | |
7385 | fi | |
7386 | ||
7387 | ||
7388 | enablestring= | |
7389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7390 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7391 | no_cache=0 | |
7392 | # Check whether --enable-checklst or --disable-checklst was given. | |
7393 | if test "${enable_checklst+set}" = set; then | |
7394 | enableval="$enable_checklst" | |
7395 | ||
7396 | if test "$enableval" = yes; then | |
7397 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7398 | else | |
7399 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7400 | fi | |
7401 | ||
7402 | else | |
7403 | ||
7404 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7405 | if test "x$LINE" != x ; then | |
7406 | eval "DEFAULT_$LINE" | |
7407 | else | |
7408 | no_cache=1 | |
7409 | fi | |
7410 | ||
7411 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7412 | ||
7413 | fi; | |
7414 | ||
7415 | eval "$ac_cv_use_checklst" | |
7416 | if test "$no_cache" != 1; then | |
7417 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7418 | fi | |
7419 | ||
7420 | if test "$wxUSE_CHECKLST" = yes; then | |
7421 | echo "$as_me:$LINENO: result: yes" >&5 | |
7422 | echo "${ECHO_T}yes" >&6 | |
7423 | else | |
7424 | echo "$as_me:$LINENO: result: no" >&5 | |
7425 | echo "${ECHO_T}no" >&6 | |
7426 | fi | |
7427 | ||
7428 | ||
7429 | enablestring= | |
7430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7431 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7432 | no_cache=0 | |
7433 | # Check whether --enable-choice or --disable-choice was given. | |
7434 | if test "${enable_choice+set}" = set; then | |
7435 | enableval="$enable_choice" | |
7436 | ||
7437 | if test "$enableval" = yes; then | |
7438 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7439 | else | |
7440 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7441 | fi | |
7442 | ||
7443 | else | |
7444 | ||
7445 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7446 | if test "x$LINE" != x ; then | |
7447 | eval "DEFAULT_$LINE" | |
7448 | else | |
7449 | no_cache=1 | |
7450 | fi | |
7451 | ||
7452 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7453 | ||
7454 | fi; | |
7455 | ||
7456 | eval "$ac_cv_use_choice" | |
7457 | if test "$no_cache" != 1; then | |
7458 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7459 | fi | |
7460 | ||
7461 | if test "$wxUSE_CHOICE" = yes; then | |
7462 | echo "$as_me:$LINENO: result: yes" >&5 | |
7463 | echo "${ECHO_T}yes" >&6 | |
7464 | else | |
7465 | echo "$as_me:$LINENO: result: no" >&5 | |
7466 | echo "${ECHO_T}no" >&6 | |
7467 | fi | |
7468 | ||
7469 | ||
92bbdbcd WS |
7470 | enablestring= |
7471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7472 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7473 | no_cache=0 | |
7474 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7475 | if test "${enable_choicebook+set}" = set; then | |
7476 | enableval="$enable_choicebook" | |
7477 | ||
7478 | if test "$enableval" = yes; then | |
7479 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7480 | else | |
7481 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7482 | fi | |
7483 | ||
7484 | else | |
7485 | ||
7486 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7487 | if test "x$LINE" != x ; then | |
7488 | eval "DEFAULT_$LINE" | |
7489 | else | |
7490 | no_cache=1 | |
7491 | fi | |
7492 | ||
7493 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7494 | ||
7495 | fi; | |
7496 | ||
7497 | eval "$ac_cv_use_choicebook" | |
7498 | if test "$no_cache" != 1; then | |
7499 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7500 | fi | |
7501 | ||
7502 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7503 | echo "$as_me:$LINENO: result: yes" >&5 | |
7504 | echo "${ECHO_T}yes" >&6 | |
7505 | else | |
7506 | echo "$as_me:$LINENO: result: no" >&5 | |
7507 | echo "${ECHO_T}no" >&6 | |
7508 | fi | |
7509 | ||
7510 | ||
a848cd7e SC |
7511 | enablestring= |
7512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7513 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7514 | no_cache=0 | |
7515 | # Check whether --enable-combobox or --disable-combobox was given. | |
7516 | if test "${enable_combobox+set}" = set; then | |
7517 | enableval="$enable_combobox" | |
7518 | ||
7519 | if test "$enableval" = yes; then | |
7520 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7521 | else | |
7522 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7523 | fi | |
7524 | ||
7525 | else | |
7526 | ||
7527 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7528 | if test "x$LINE" != x ; then | |
7529 | eval "DEFAULT_$LINE" | |
7530 | else | |
7531 | no_cache=1 | |
7532 | fi | |
7533 | ||
7534 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7535 | ||
7536 | fi; | |
7537 | ||
7538 | eval "$ac_cv_use_combobox" | |
7539 | if test "$no_cache" != 1; then | |
7540 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7541 | fi | |
7542 | ||
7543 | if test "$wxUSE_COMBOBOX" = yes; then | |
7544 | echo "$as_me:$LINENO: result: yes" >&5 | |
7545 | echo "${ECHO_T}yes" >&6 | |
7546 | else | |
7547 | echo "$as_me:$LINENO: result: no" >&5 | |
7548 | echo "${ECHO_T}no" >&6 | |
7549 | fi | |
7550 | ||
7551 | ||
7552 | enablestring= | |
7553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7554 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7555 | no_cache=0 | |
7556 | # Check whether --enable-display or --disable-display was given. | |
7557 | if test "${enable_display+set}" = set; then | |
7558 | enableval="$enable_display" | |
7559 | ||
7560 | if test "$enableval" = yes; then | |
7561 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7562 | else | |
7563 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7564 | fi | |
7565 | ||
7566 | else | |
7567 | ||
7568 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7569 | if test "x$LINE" != x ; then | |
7570 | eval "DEFAULT_$LINE" | |
7571 | else | |
7572 | no_cache=1 | |
7573 | fi | |
7574 | ||
7575 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7576 | ||
7577 | fi; | |
7578 | ||
7579 | eval "$ac_cv_use_display" | |
7580 | if test "$no_cache" != 1; then | |
7581 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7582 | fi | |
7583 | ||
7584 | if test "$wxUSE_DISPLAY" = yes; then | |
7585 | echo "$as_me:$LINENO: result: yes" >&5 | |
7586 | echo "${ECHO_T}yes" >&6 | |
7587 | else | |
7588 | echo "$as_me:$LINENO: result: no" >&5 | |
7589 | echo "${ECHO_T}no" >&6 | |
7590 | fi | |
7591 | ||
7592 | ||
7593 | enablestring= | |
7594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7595 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7596 | no_cache=0 | |
7597 | # Check whether --enable-gauge or --disable-gauge was given. | |
7598 | if test "${enable_gauge+set}" = set; then | |
7599 | enableval="$enable_gauge" | |
7600 | ||
7601 | if test "$enableval" = yes; then | |
7602 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7603 | else | |
7604 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7605 | fi | |
7606 | ||
7607 | else | |
7608 | ||
7609 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7610 | if test "x$LINE" != x ; then | |
7611 | eval "DEFAULT_$LINE" | |
7612 | else | |
7613 | no_cache=1 | |
7614 | fi | |
7615 | ||
7616 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7617 | ||
7618 | fi; | |
7619 | ||
7620 | eval "$ac_cv_use_gauge" | |
7621 | if test "$no_cache" != 1; then | |
7622 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7623 | fi | |
7624 | ||
7625 | if test "$wxUSE_GAUGE" = yes; then | |
7626 | echo "$as_me:$LINENO: result: yes" >&5 | |
7627 | echo "${ECHO_T}yes" >&6 | |
7628 | else | |
7629 | echo "$as_me:$LINENO: result: no" >&5 | |
7630 | echo "${ECHO_T}no" >&6 | |
7631 | fi | |
7632 | ||
7633 | ||
7634 | enablestring= | |
7635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7636 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7637 | no_cache=0 | |
7638 | # Check whether --enable-grid or --disable-grid was given. | |
7639 | if test "${enable_grid+set}" = set; then | |
7640 | enableval="$enable_grid" | |
7641 | ||
7642 | if test "$enableval" = yes; then | |
7643 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7644 | else | |
7645 | ac_cv_use_grid='wxUSE_GRID=no' | |
7646 | fi | |
7647 | ||
7648 | else | |
7649 | ||
7650 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7651 | if test "x$LINE" != x ; then | |
7652 | eval "DEFAULT_$LINE" | |
7653 | else | |
7654 | no_cache=1 | |
7655 | fi | |
7656 | ||
7657 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7658 | ||
7659 | fi; | |
7660 | ||
7661 | eval "$ac_cv_use_grid" | |
7662 | if test "$no_cache" != 1; then | |
7663 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7664 | fi | |
7665 | ||
7666 | if test "$wxUSE_GRID" = yes; then | |
7667 | echo "$as_me:$LINENO: result: yes" >&5 | |
7668 | echo "${ECHO_T}yes" >&6 | |
7669 | else | |
7670 | echo "$as_me:$LINENO: result: no" >&5 | |
7671 | echo "${ECHO_T}no" >&6 | |
7672 | fi | |
7673 | ||
7674 | ||
7675 | enablestring= | |
7676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7677 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7678 | no_cache=0 | |
7679 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7680 | if test "${enable_imaglist+set}" = set; then | |
7681 | enableval="$enable_imaglist" | |
7682 | ||
7683 | if test "$enableval" = yes; then | |
7684 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7685 | else | |
7686 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7687 | fi | |
7688 | ||
7689 | else | |
7690 | ||
7691 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7692 | if test "x$LINE" != x ; then | |
7693 | eval "DEFAULT_$LINE" | |
7694 | else | |
7695 | no_cache=1 | |
7696 | fi | |
7697 | ||
7698 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7699 | ||
7700 | fi; | |
7701 | ||
7702 | eval "$ac_cv_use_imaglist" | |
7703 | if test "$no_cache" != 1; then | |
7704 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7705 | fi | |
7706 | ||
7707 | if test "$wxUSE_IMAGLIST" = yes; then | |
7708 | echo "$as_me:$LINENO: result: yes" >&5 | |
7709 | echo "${ECHO_T}yes" >&6 | |
7710 | else | |
7711 | echo "$as_me:$LINENO: result: no" >&5 | |
7712 | echo "${ECHO_T}no" >&6 | |
7713 | fi | |
7714 | ||
7715 | ||
7716 | enablestring= | |
7717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7718 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7719 | no_cache=0 | |
7720 | # Check whether --enable-listbook or --disable-listbook was given. | |
7721 | if test "${enable_listbook+set}" = set; then | |
7722 | enableval="$enable_listbook" | |
7723 | ||
7724 | if test "$enableval" = yes; then | |
7725 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7726 | else | |
7727 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7728 | fi | |
7729 | ||
7730 | else | |
7731 | ||
7732 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7733 | if test "x$LINE" != x ; then | |
7734 | eval "DEFAULT_$LINE" | |
7735 | else | |
7736 | no_cache=1 | |
7737 | fi | |
7738 | ||
7739 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7740 | ||
7741 | fi; | |
7742 | ||
7743 | eval "$ac_cv_use_listbook" | |
7744 | if test "$no_cache" != 1; then | |
7745 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7746 | fi | |
7747 | ||
7748 | if test "$wxUSE_LISTBOOK" = yes; then | |
7749 | echo "$as_me:$LINENO: result: yes" >&5 | |
7750 | echo "${ECHO_T}yes" >&6 | |
7751 | else | |
7752 | echo "$as_me:$LINENO: result: no" >&5 | |
7753 | echo "${ECHO_T}no" >&6 | |
7754 | fi | |
7755 | ||
7756 | ||
7757 | enablestring= | |
7758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7759 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7760 | no_cache=0 | |
7761 | # Check whether --enable-listbox or --disable-listbox was given. | |
7762 | if test "${enable_listbox+set}" = set; then | |
7763 | enableval="$enable_listbox" | |
7764 | ||
7765 | if test "$enableval" = yes; then | |
7766 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7767 | else | |
7768 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7769 | fi | |
7770 | ||
7771 | else | |
7772 | ||
7773 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7774 | if test "x$LINE" != x ; then | |
7775 | eval "DEFAULT_$LINE" | |
7776 | else | |
7777 | no_cache=1 | |
7778 | fi | |
7779 | ||
7780 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7781 | ||
7782 | fi; | |
7783 | ||
7784 | eval "$ac_cv_use_listbox" | |
7785 | if test "$no_cache" != 1; then | |
7786 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7787 | fi | |
7788 | ||
7789 | if test "$wxUSE_LISTBOX" = yes; then | |
7790 | echo "$as_me:$LINENO: result: yes" >&5 | |
7791 | echo "${ECHO_T}yes" >&6 | |
7792 | else | |
7793 | echo "$as_me:$LINENO: result: no" >&5 | |
7794 | echo "${ECHO_T}no" >&6 | |
7795 | fi | |
7796 | ||
7797 | ||
7798 | enablestring= | |
7799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7800 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7801 | no_cache=0 | |
7802 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7803 | if test "${enable_listctrl+set}" = set; then | |
7804 | enableval="$enable_listctrl" | |
7805 | ||
7806 | if test "$enableval" = yes; then | |
7807 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7808 | else | |
7809 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7810 | fi | |
7811 | ||
7812 | else | |
7813 | ||
7814 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7815 | if test "x$LINE" != x ; then | |
7816 | eval "DEFAULT_$LINE" | |
7817 | else | |
7818 | no_cache=1 | |
7819 | fi | |
7820 | ||
7821 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7822 | ||
7823 | fi; | |
7824 | ||
7825 | eval "$ac_cv_use_listctrl" | |
7826 | if test "$no_cache" != 1; then | |
7827 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7828 | fi | |
7829 | ||
7830 | if test "$wxUSE_LISTCTRL" = yes; then | |
7831 | echo "$as_me:$LINENO: result: yes" >&5 | |
7832 | echo "${ECHO_T}yes" >&6 | |
7833 | else | |
7834 | echo "$as_me:$LINENO: result: no" >&5 | |
7835 | echo "${ECHO_T}no" >&6 | |
7836 | fi | |
7837 | ||
7838 | ||
7839 | enablestring= | |
7840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7841 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7842 | no_cache=0 | |
7843 | # Check whether --enable-notebook or --disable-notebook was given. | |
7844 | if test "${enable_notebook+set}" = set; then | |
7845 | enableval="$enable_notebook" | |
7846 | ||
7847 | if test "$enableval" = yes; then | |
7848 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7849 | else | |
7850 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7851 | fi | |
7852 | ||
7853 | else | |
7854 | ||
7855 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7856 | if test "x$LINE" != x ; then | |
7857 | eval "DEFAULT_$LINE" | |
7858 | else | |
7859 | no_cache=1 | |
7860 | fi | |
7861 | ||
7862 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7863 | ||
7864 | fi; | |
7865 | ||
7866 | eval "$ac_cv_use_notebook" | |
7867 | if test "$no_cache" != 1; then | |
7868 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7869 | fi | |
7870 | ||
7871 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7872 | echo "$as_me:$LINENO: result: yes" >&5 | |
7873 | echo "${ECHO_T}yes" >&6 | |
7874 | else | |
7875 | echo "$as_me:$LINENO: result: no" >&5 | |
7876 | echo "${ECHO_T}no" >&6 | |
7877 | fi | |
7878 | ||
7879 | ||
7880 | enablestring= | |
7881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7882 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7883 | no_cache=0 | |
7884 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7885 | if test "${enable_radiobox+set}" = set; then | |
7886 | enableval="$enable_radiobox" | |
7887 | ||
7888 | if test "$enableval" = yes; then | |
7889 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7890 | else | |
7891 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7892 | fi | |
7893 | ||
7894 | else | |
7895 | ||
7896 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7897 | if test "x$LINE" != x ; then | |
7898 | eval "DEFAULT_$LINE" | |
7899 | else | |
7900 | no_cache=1 | |
7901 | fi | |
7902 | ||
7903 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7904 | ||
7905 | fi; | |
7906 | ||
7907 | eval "$ac_cv_use_radiobox" | |
7908 | if test "$no_cache" != 1; then | |
7909 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7910 | fi | |
7911 | ||
7912 | if test "$wxUSE_RADIOBOX" = yes; then | |
7913 | echo "$as_me:$LINENO: result: yes" >&5 | |
7914 | echo "${ECHO_T}yes" >&6 | |
7915 | else | |
7916 | echo "$as_me:$LINENO: result: no" >&5 | |
7917 | echo "${ECHO_T}no" >&6 | |
7918 | fi | |
7919 | ||
7920 | ||
7921 | enablestring= | |
7922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7923 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7924 | no_cache=0 | |
7925 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7926 | if test "${enable_radiobtn+set}" = set; then | |
7927 | enableval="$enable_radiobtn" | |
7928 | ||
7929 | if test "$enableval" = yes; then | |
7930 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7931 | else | |
7932 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7933 | fi | |
7934 | ||
7935 | else | |
7936 | ||
7937 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7938 | if test "x$LINE" != x ; then | |
7939 | eval "DEFAULT_$LINE" | |
7940 | else | |
7941 | no_cache=1 | |
7942 | fi | |
7943 | ||
7944 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7945 | ||
7946 | fi; | |
7947 | ||
7948 | eval "$ac_cv_use_radiobtn" | |
7949 | if test "$no_cache" != 1; then | |
7950 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7951 | fi | |
7952 | ||
7953 | if test "$wxUSE_RADIOBTN" = yes; then | |
7954 | echo "$as_me:$LINENO: result: yes" >&5 | |
7955 | echo "${ECHO_T}yes" >&6 | |
7956 | else | |
7957 | echo "$as_me:$LINENO: result: no" >&5 | |
7958 | echo "${ECHO_T}no" >&6 | |
7959 | fi | |
7960 | ||
7961 | ||
7962 | enablestring= | |
7963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7964 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7965 | no_cache=0 | |
7966 | # Check whether --enable-sash or --disable-sash was given. | |
7967 | if test "${enable_sash+set}" = set; then | |
7968 | enableval="$enable_sash" | |
7969 | ||
7970 | if test "$enableval" = yes; then | |
7971 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7972 | else | |
7973 | ac_cv_use_sash='wxUSE_SASH=no' | |
7974 | fi | |
7975 | ||
7976 | else | |
7977 | ||
7978 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7979 | if test "x$LINE" != x ; then | |
7980 | eval "DEFAULT_$LINE" | |
7981 | else | |
7982 | no_cache=1 | |
7983 | fi | |
7984 | ||
7985 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7986 | ||
7987 | fi; | |
7988 | ||
7989 | eval "$ac_cv_use_sash" | |
7990 | if test "$no_cache" != 1; then | |
7991 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7992 | fi | |
7993 | ||
7994 | if test "$wxUSE_SASH" = yes; then | |
7995 | echo "$as_me:$LINENO: result: yes" >&5 | |
7996 | echo "${ECHO_T}yes" >&6 | |
7997 | else | |
7998 | echo "$as_me:$LINENO: result: no" >&5 | |
7999 | echo "${ECHO_T}no" >&6 | |
8000 | fi | |
8001 | ||
8002 | ||
8003 | enablestring= | |
8004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8005 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8006 | no_cache=0 | |
8007 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8008 | if test "${enable_scrollbar+set}" = set; then | |
8009 | enableval="$enable_scrollbar" | |
8010 | ||
8011 | if test "$enableval" = yes; then | |
8012 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8013 | else | |
8014 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8015 | fi | |
8016 | ||
8017 | else | |
8018 | ||
8019 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8020 | if test "x$LINE" != x ; then | |
8021 | eval "DEFAULT_$LINE" | |
8022 | else | |
8023 | no_cache=1 | |
8024 | fi | |
8025 | ||
8026 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8027 | ||
8028 | fi; | |
8029 | ||
8030 | eval "$ac_cv_use_scrollbar" | |
8031 | if test "$no_cache" != 1; then | |
8032 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8033 | fi | |
8034 | ||
8035 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8036 | echo "$as_me:$LINENO: result: yes" >&5 | |
8037 | echo "${ECHO_T}yes" >&6 | |
8038 | else | |
8039 | echo "$as_me:$LINENO: result: no" >&5 | |
8040 | echo "${ECHO_T}no" >&6 | |
8041 | fi | |
8042 | ||
8043 | ||
8044 | enablestring= | |
8045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8046 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8047 | no_cache=0 | |
8048 | # Check whether --enable-slider or --disable-slider was given. | |
8049 | if test "${enable_slider+set}" = set; then | |
8050 | enableval="$enable_slider" | |
8051 | ||
8052 | if test "$enableval" = yes; then | |
8053 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8054 | else | |
8055 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8056 | fi | |
8057 | ||
8058 | else | |
8059 | ||
8060 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8061 | if test "x$LINE" != x ; then | |
8062 | eval "DEFAULT_$LINE" | |
8063 | else | |
8064 | no_cache=1 | |
8065 | fi | |
8066 | ||
8067 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8068 | ||
8069 | fi; | |
8070 | ||
8071 | eval "$ac_cv_use_slider" | |
8072 | if test "$no_cache" != 1; then | |
8073 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8074 | fi | |
8075 | ||
8076 | if test "$wxUSE_SLIDER" = yes; then | |
8077 | echo "$as_me:$LINENO: result: yes" >&5 | |
8078 | echo "${ECHO_T}yes" >&6 | |
8079 | else | |
8080 | echo "$as_me:$LINENO: result: no" >&5 | |
8081 | echo "${ECHO_T}no" >&6 | |
8082 | fi | |
8083 | ||
8084 | ||
8085 | enablestring= | |
8086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8087 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8088 | no_cache=0 | |
8089 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8090 | if test "${enable_spinbtn+set}" = set; then | |
8091 | enableval="$enable_spinbtn" | |
8092 | ||
8093 | if test "$enableval" = yes; then | |
8094 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8095 | else | |
8096 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8097 | fi | |
8098 | ||
8099 | else | |
8100 | ||
8101 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8102 | if test "x$LINE" != x ; then | |
8103 | eval "DEFAULT_$LINE" | |
8104 | else | |
8105 | no_cache=1 | |
8106 | fi | |
8107 | ||
8108 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8109 | ||
8110 | fi; | |
8111 | ||
8112 | eval "$ac_cv_use_spinbtn" | |
8113 | if test "$no_cache" != 1; then | |
8114 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8115 | fi | |
8116 | ||
8117 | if test "$wxUSE_SPINBTN" = yes; then | |
8118 | echo "$as_me:$LINENO: result: yes" >&5 | |
8119 | echo "${ECHO_T}yes" >&6 | |
8120 | else | |
8121 | echo "$as_me:$LINENO: result: no" >&5 | |
8122 | echo "${ECHO_T}no" >&6 | |
8123 | fi | |
8124 | ||
8125 | ||
8126 | enablestring= | |
8127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8128 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8129 | no_cache=0 | |
8130 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8131 | if test "${enable_spinctrl+set}" = set; then | |
8132 | enableval="$enable_spinctrl" | |
8133 | ||
8134 | if test "$enableval" = yes; then | |
8135 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8136 | else | |
8137 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8138 | fi | |
8139 | ||
8140 | else | |
8141 | ||
8142 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8143 | if test "x$LINE" != x ; then | |
8144 | eval "DEFAULT_$LINE" | |
8145 | else | |
8146 | no_cache=1 | |
8147 | fi | |
8148 | ||
8149 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8150 | ||
8151 | fi; | |
8152 | ||
8153 | eval "$ac_cv_use_spinctrl" | |
8154 | if test "$no_cache" != 1; then | |
8155 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8156 | fi | |
8157 | ||
8158 | if test "$wxUSE_SPINCTRL" = yes; then | |
8159 | echo "$as_me:$LINENO: result: yes" >&5 | |
8160 | echo "${ECHO_T}yes" >&6 | |
8161 | else | |
8162 | echo "$as_me:$LINENO: result: no" >&5 | |
8163 | echo "${ECHO_T}no" >&6 | |
8164 | fi | |
8165 | ||
8166 | ||
8167 | enablestring= | |
8168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8169 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8170 | no_cache=0 | |
8171 | # Check whether --enable-splitter or --disable-splitter was given. | |
8172 | if test "${enable_splitter+set}" = set; then | |
8173 | enableval="$enable_splitter" | |
8174 | ||
8175 | if test "$enableval" = yes; then | |
8176 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8177 | else | |
8178 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8179 | fi | |
8180 | ||
8181 | else | |
8182 | ||
8183 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8184 | if test "x$LINE" != x ; then | |
8185 | eval "DEFAULT_$LINE" | |
8186 | else | |
8187 | no_cache=1 | |
8188 | fi | |
8189 | ||
8190 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8191 | ||
8192 | fi; | |
8193 | ||
8194 | eval "$ac_cv_use_splitter" | |
8195 | if test "$no_cache" != 1; then | |
8196 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8197 | fi | |
8198 | ||
8199 | if test "$wxUSE_SPLITTER" = yes; then | |
8200 | echo "$as_me:$LINENO: result: yes" >&5 | |
8201 | echo "${ECHO_T}yes" >&6 | |
8202 | else | |
8203 | echo "$as_me:$LINENO: result: no" >&5 | |
8204 | echo "${ECHO_T}no" >&6 | |
8205 | fi | |
8206 | ||
8207 | ||
8208 | enablestring= | |
8209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8210 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8211 | no_cache=0 | |
8212 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8213 | if test "${enable_statbmp+set}" = set; then | |
8214 | enableval="$enable_statbmp" | |
8215 | ||
8216 | if test "$enableval" = yes; then | |
8217 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8218 | else | |
8219 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8220 | fi | |
8221 | ||
8222 | else | |
8223 | ||
8224 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8225 | if test "x$LINE" != x ; then | |
8226 | eval "DEFAULT_$LINE" | |
8227 | else | |
8228 | no_cache=1 | |
8229 | fi | |
8230 | ||
8231 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8232 | ||
8233 | fi; | |
8234 | ||
8235 | eval "$ac_cv_use_statbmp" | |
8236 | if test "$no_cache" != 1; then | |
8237 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8238 | fi | |
8239 | ||
8240 | if test "$wxUSE_STATBMP" = yes; then | |
8241 | echo "$as_me:$LINENO: result: yes" >&5 | |
8242 | echo "${ECHO_T}yes" >&6 | |
8243 | else | |
8244 | echo "$as_me:$LINENO: result: no" >&5 | |
8245 | echo "${ECHO_T}no" >&6 | |
8246 | fi | |
8247 | ||
8248 | ||
8249 | enablestring= | |
8250 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8251 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8252 | no_cache=0 | |
8253 | # Check whether --enable-statbox or --disable-statbox was given. | |
8254 | if test "${enable_statbox+set}" = set; then | |
8255 | enableval="$enable_statbox" | |
8256 | ||
8257 | if test "$enableval" = yes; then | |
8258 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8259 | else | |
8260 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8261 | fi | |
8262 | ||
8263 | else | |
8264 | ||
8265 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8266 | if test "x$LINE" != x ; then | |
8267 | eval "DEFAULT_$LINE" | |
8268 | else | |
8269 | no_cache=1 | |
8270 | fi | |
8271 | ||
8272 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8273 | ||
8274 | fi; | |
8275 | ||
8276 | eval "$ac_cv_use_statbox" | |
8277 | if test "$no_cache" != 1; then | |
8278 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8279 | fi | |
8280 | ||
8281 | if test "$wxUSE_STATBOX" = yes; then | |
8282 | echo "$as_me:$LINENO: result: yes" >&5 | |
8283 | echo "${ECHO_T}yes" >&6 | |
8284 | else | |
8285 | echo "$as_me:$LINENO: result: no" >&5 | |
8286 | echo "${ECHO_T}no" >&6 | |
8287 | fi | |
8288 | ||
8289 | ||
8290 | enablestring= | |
8291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8292 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8293 | no_cache=0 | |
8294 | # Check whether --enable-statline or --disable-statline was given. | |
8295 | if test "${enable_statline+set}" = set; then | |
8296 | enableval="$enable_statline" | |
8297 | ||
8298 | if test "$enableval" = yes; then | |
8299 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8300 | else | |
8301 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8302 | fi | |
8303 | ||
8304 | else | |
8305 | ||
8306 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8307 | if test "x$LINE" != x ; then | |
8308 | eval "DEFAULT_$LINE" | |
8309 | else | |
8310 | no_cache=1 | |
8311 | fi | |
8312 | ||
8313 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8314 | ||
8315 | fi; | |
8316 | ||
8317 | eval "$ac_cv_use_statline" | |
8318 | if test "$no_cache" != 1; then | |
8319 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8320 | fi | |
8321 | ||
8322 | if test "$wxUSE_STATLINE" = yes; then | |
8323 | echo "$as_me:$LINENO: result: yes" >&5 | |
8324 | echo "${ECHO_T}yes" >&6 | |
8325 | else | |
8326 | echo "$as_me:$LINENO: result: no" >&5 | |
8327 | echo "${ECHO_T}no" >&6 | |
8328 | fi | |
8329 | ||
8330 | ||
8331 | enablestring= | |
8332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8333 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8334 | no_cache=0 | |
8335 | # Check whether --enable-stattext or --disable-stattext was given. | |
8336 | if test "${enable_stattext+set}" = set; then | |
8337 | enableval="$enable_stattext" | |
8338 | ||
8339 | if test "$enableval" = yes; then | |
8340 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8341 | else | |
8342 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8343 | fi | |
8344 | ||
8345 | else | |
8346 | ||
8347 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8348 | if test "x$LINE" != x ; then | |
8349 | eval "DEFAULT_$LINE" | |
8350 | else | |
8351 | no_cache=1 | |
8352 | fi | |
8353 | ||
8354 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8355 | ||
8356 | fi; | |
8357 | ||
8358 | eval "$ac_cv_use_stattext" | |
8359 | if test "$no_cache" != 1; then | |
8360 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8361 | fi | |
8362 | ||
8363 | if test "$wxUSE_STATTEXT" = yes; then | |
8364 | echo "$as_me:$LINENO: result: yes" >&5 | |
8365 | echo "${ECHO_T}yes" >&6 | |
8366 | else | |
8367 | echo "$as_me:$LINENO: result: no" >&5 | |
8368 | echo "${ECHO_T}no" >&6 | |
8369 | fi | |
8370 | ||
8371 | ||
8372 | enablestring= | |
8373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8374 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8375 | no_cache=0 | |
8376 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8377 | if test "${enable_statusbar+set}" = set; then | |
8378 | enableval="$enable_statusbar" | |
8379 | ||
8380 | if test "$enableval" = yes; then | |
8381 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8382 | else | |
8383 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8384 | fi | |
8385 | ||
8386 | else | |
8387 | ||
8388 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8389 | if test "x$LINE" != x ; then | |
8390 | eval "DEFAULT_$LINE" | |
8391 | else | |
8392 | no_cache=1 | |
8393 | fi | |
8394 | ||
8395 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8396 | ||
8397 | fi; | |
8398 | ||
8399 | eval "$ac_cv_use_statusbar" | |
8400 | if test "$no_cache" != 1; then | |
8401 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8402 | fi | |
8403 | ||
8404 | if test "$wxUSE_STATUSBAR" = yes; then | |
8405 | echo "$as_me:$LINENO: result: yes" >&5 | |
8406 | echo "${ECHO_T}yes" >&6 | |
8407 | else | |
8408 | echo "$as_me:$LINENO: result: no" >&5 | |
8409 | echo "${ECHO_T}no" >&6 | |
8410 | fi | |
8411 | ||
8412 | ||
8413 | enablestring= | |
8414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8415 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8416 | no_cache=0 | |
8417 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8418 | if test "${enable_tabdialog+set}" = set; then | |
8419 | enableval="$enable_tabdialog" | |
8420 | ||
8421 | if test "$enableval" = yes; then | |
8422 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8423 | else | |
8424 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8425 | fi | |
8426 | ||
8427 | else | |
8428 | ||
8429 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8430 | if test "x$LINE" != x ; then | |
8431 | eval "DEFAULT_$LINE" | |
8432 | else | |
8433 | no_cache=1 | |
8434 | fi | |
8435 | ||
8436 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8437 | ||
8438 | fi; | |
8439 | ||
8440 | eval "$ac_cv_use_tabdialog" | |
8441 | if test "$no_cache" != 1; then | |
8442 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8443 | fi | |
8444 | ||
8445 | if test "$wxUSE_TABDIALOG" = yes; then | |
8446 | echo "$as_me:$LINENO: result: yes" >&5 | |
8447 | echo "${ECHO_T}yes" >&6 | |
8448 | else | |
8449 | echo "$as_me:$LINENO: result: no" >&5 | |
8450 | echo "${ECHO_T}no" >&6 | |
8451 | fi | |
8452 | ||
8453 | ||
8454 | enablestring= | |
8455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8456 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8457 | no_cache=0 | |
8458 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8459 | if test "${enable_textctrl+set}" = set; then | |
8460 | enableval="$enable_textctrl" | |
8461 | ||
8462 | if test "$enableval" = yes; then | |
8463 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8464 | else | |
8465 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8466 | fi | |
8467 | ||
8468 | else | |
8469 | ||
8470 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8471 | if test "x$LINE" != x ; then | |
8472 | eval "DEFAULT_$LINE" | |
8473 | else | |
8474 | no_cache=1 | |
8475 | fi | |
8476 | ||
8477 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8478 | ||
8479 | fi; | |
8480 | ||
8481 | eval "$ac_cv_use_textctrl" | |
8482 | if test "$no_cache" != 1; then | |
8483 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8484 | fi | |
8485 | ||
8486 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8487 | echo "$as_me:$LINENO: result: yes" >&5 | |
8488 | echo "${ECHO_T}yes" >&6 | |
8489 | else | |
8490 | echo "$as_me:$LINENO: result: no" >&5 | |
8491 | echo "${ECHO_T}no" >&6 | |
8492 | fi | |
8493 | ||
8494 | ||
8495 | enablestring= | |
8496 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8497 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8498 | no_cache=0 | |
8499 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8500 | if test "${enable_togglebtn+set}" = set; then | |
8501 | enableval="$enable_togglebtn" | |
8502 | ||
8503 | if test "$enableval" = yes; then | |
8504 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8505 | else | |
8506 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8507 | fi | |
8508 | ||
8509 | else | |
8510 | ||
8511 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8512 | if test "x$LINE" != x ; then | |
8513 | eval "DEFAULT_$LINE" | |
8514 | else | |
8515 | no_cache=1 | |
8516 | fi | |
8517 | ||
8518 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8519 | ||
8520 | fi; | |
8521 | ||
8522 | eval "$ac_cv_use_togglebtn" | |
8523 | if test "$no_cache" != 1; then | |
8524 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8525 | fi | |
8526 | ||
8527 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8528 | echo "$as_me:$LINENO: result: yes" >&5 | |
8529 | echo "${ECHO_T}yes" >&6 | |
8530 | else | |
8531 | echo "$as_me:$LINENO: result: no" >&5 | |
8532 | echo "${ECHO_T}no" >&6 | |
8533 | fi | |
8534 | ||
8535 | ||
8536 | enablestring= | |
8537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8538 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8539 | no_cache=0 | |
8540 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8541 | if test "${enable_toolbar+set}" = set; then | |
8542 | enableval="$enable_toolbar" | |
8543 | ||
8544 | if test "$enableval" = yes; then | |
8545 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8546 | else | |
8547 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8548 | fi | |
8549 | ||
8550 | else | |
8551 | ||
8552 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8553 | if test "x$LINE" != x ; then | |
8554 | eval "DEFAULT_$LINE" | |
8555 | else | |
8556 | no_cache=1 | |
8557 | fi | |
8558 | ||
8559 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8560 | ||
8561 | fi; | |
8562 | ||
8563 | eval "$ac_cv_use_toolbar" | |
8564 | if test "$no_cache" != 1; then | |
8565 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8566 | fi | |
8567 | ||
8568 | if test "$wxUSE_TOOLBAR" = yes; then | |
8569 | echo "$as_me:$LINENO: result: yes" >&5 | |
8570 | echo "${ECHO_T}yes" >&6 | |
8571 | else | |
8572 | echo "$as_me:$LINENO: result: no" >&5 | |
8573 | echo "${ECHO_T}no" >&6 | |
8574 | fi | |
8575 | ||
8576 | ||
8577 | enablestring= | |
8578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8579 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8580 | no_cache=0 | |
8581 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8582 | if test "${enable_tbarnative+set}" = set; then | |
8583 | enableval="$enable_tbarnative" | |
8584 | ||
8585 | if test "$enableval" = yes; then | |
8586 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8587 | else | |
8588 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8589 | fi | |
8590 | ||
8591 | else | |
8592 | ||
8593 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8594 | if test "x$LINE" != x ; then | |
8595 | eval "DEFAULT_$LINE" | |
8596 | else | |
8597 | no_cache=1 | |
8598 | fi | |
8599 | ||
8600 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8601 | ||
8602 | fi; | |
8603 | ||
8604 | eval "$ac_cv_use_tbarnative" | |
8605 | if test "$no_cache" != 1; then | |
8606 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8607 | fi | |
8608 | ||
8609 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8610 | echo "$as_me:$LINENO: result: yes" >&5 | |
8611 | echo "${ECHO_T}yes" >&6 | |
8612 | else | |
8613 | echo "$as_me:$LINENO: result: no" >&5 | |
8614 | echo "${ECHO_T}no" >&6 | |
8615 | fi | |
8616 | ||
8617 | ||
8618 | enablestring= | |
8619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8620 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8621 | no_cache=0 | |
8622 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8623 | if test "${enable_tbarsmpl+set}" = set; then | |
8624 | enableval="$enable_tbarsmpl" | |
8625 | ||
8626 | if test "$enableval" = yes; then | |
8627 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8628 | else | |
8629 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8630 | fi | |
8631 | ||
8632 | else | |
8633 | ||
8634 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8635 | if test "x$LINE" != x ; then | |
8636 | eval "DEFAULT_$LINE" | |
8637 | else | |
8638 | no_cache=1 | |
8639 | fi | |
8640 | ||
8641 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8642 | ||
8643 | fi; | |
8644 | ||
8645 | eval "$ac_cv_use_tbarsmpl" | |
8646 | if test "$no_cache" != 1; then | |
8647 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8648 | fi | |
8649 | ||
8650 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8651 | echo "$as_me:$LINENO: result: yes" >&5 | |
8652 | echo "${ECHO_T}yes" >&6 | |
8653 | else | |
8654 | echo "$as_me:$LINENO: result: no" >&5 | |
8655 | echo "${ECHO_T}no" >&6 | |
8656 | fi | |
8657 | ||
8658 | ||
8659 | enablestring= | |
8660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8661 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8662 | no_cache=0 | |
8663 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8664 | if test "${enable_treectrl+set}" = set; then | |
8665 | enableval="$enable_treectrl" | |
8666 | ||
8667 | if test "$enableval" = yes; then | |
8668 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8669 | else | |
8670 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8671 | fi | |
8672 | ||
8673 | else | |
8674 | ||
8675 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8676 | if test "x$LINE" != x ; then | |
8677 | eval "DEFAULT_$LINE" | |
8678 | else | |
8679 | no_cache=1 | |
8680 | fi | |
8681 | ||
8682 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8683 | ||
8684 | fi; | |
8685 | ||
8686 | eval "$ac_cv_use_treectrl" | |
8687 | if test "$no_cache" != 1; then | |
8688 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8689 | fi | |
8690 | ||
8691 | if test "$wxUSE_TREECTRL" = yes; then | |
8692 | echo "$as_me:$LINENO: result: yes" >&5 | |
8693 | echo "${ECHO_T}yes" >&6 | |
8694 | else | |
8695 | echo "$as_me:$LINENO: result: no" >&5 | |
8696 | echo "${ECHO_T}no" >&6 | |
8697 | fi | |
8698 | ||
8699 | ||
8700 | enablestring= | |
8701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8702 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8703 | no_cache=0 | |
8704 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8705 | if test "${enable_tipwindow+set}" = set; then | |
8706 | enableval="$enable_tipwindow" | |
8707 | ||
8708 | if test "$enableval" = yes; then | |
8709 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8710 | else | |
8711 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8712 | fi | |
8713 | ||
8714 | else | |
8715 | ||
8716 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8717 | if test "x$LINE" != x ; then | |
8718 | eval "DEFAULT_$LINE" | |
8719 | else | |
8720 | no_cache=1 | |
8721 | fi | |
8722 | ||
8723 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8724 | ||
8725 | fi; | |
8726 | ||
8727 | eval "$ac_cv_use_tipwindow" | |
8728 | if test "$no_cache" != 1; then | |
8729 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8730 | fi | |
8731 | ||
8732 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8733 | echo "$as_me:$LINENO: result: yes" >&5 | |
8734 | echo "${ECHO_T}yes" >&6 | |
8735 | else | |
8736 | echo "$as_me:$LINENO: result: no" >&5 | |
8737 | echo "${ECHO_T}no" >&6 | |
8738 | fi | |
8739 | ||
8740 | ||
8741 | enablestring= | |
8742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8743 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8744 | no_cache=0 | |
8745 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8746 | if test "${enable_popupwin+set}" = set; then | |
8747 | enableval="$enable_popupwin" | |
8748 | ||
8749 | if test "$enableval" = yes; then | |
8750 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8751 | else | |
8752 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8753 | fi | |
8754 | ||
8755 | else | |
8756 | ||
8757 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8758 | if test "x$LINE" != x ; then | |
8759 | eval "DEFAULT_$LINE" | |
8760 | else | |
8761 | no_cache=1 | |
8762 | fi | |
8763 | ||
8764 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8765 | ||
8766 | fi; | |
8767 | ||
8768 | eval "$ac_cv_use_popupwin" | |
8769 | if test "$no_cache" != 1; then | |
8770 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8771 | fi | |
8772 | ||
8773 | if test "$wxUSE_POPUPWIN" = yes; then | |
8774 | echo "$as_me:$LINENO: result: yes" >&5 | |
8775 | echo "${ECHO_T}yes" >&6 | |
8776 | else | |
8777 | echo "$as_me:$LINENO: result: no" >&5 | |
8778 | echo "${ECHO_T}no" >&6 | |
8779 | fi | |
8780 | ||
8781 | ||
8782 | ||
8783 | ||
8784 | enablestring= | |
8785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8786 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8787 | no_cache=0 | |
8788 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8789 | if test "${enable_commondlg+set}" = set; then | |
8790 | enableval="$enable_commondlg" | |
8791 | ||
8792 | if test "$enableval" = yes; then | |
8793 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8794 | else | |
8795 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8796 | fi | |
8797 | ||
8798 | else | |
8799 | ||
8800 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8801 | if test "x$LINE" != x ; then | |
8802 | eval "DEFAULT_$LINE" | |
8803 | else | |
8804 | no_cache=1 | |
8805 | fi | |
8806 | ||
8807 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8808 | ||
8809 | fi; | |
8810 | ||
8811 | eval "$ac_cv_use_commondlg" | |
8812 | if test "$no_cache" != 1; then | |
8813 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8814 | fi | |
8815 | ||
8816 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8817 | echo "$as_me:$LINENO: result: yes" >&5 | |
8818 | echo "${ECHO_T}yes" >&6 | |
8819 | else | |
8820 | echo "$as_me:$LINENO: result: no" >&5 | |
8821 | echo "${ECHO_T}no" >&6 | |
8822 | fi | |
8823 | ||
8824 | ||
8825 | enablestring= | |
8826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8827 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8828 | no_cache=0 | |
8829 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8830 | if test "${enable_choicedlg+set}" = set; then | |
8831 | enableval="$enable_choicedlg" | |
8832 | ||
8833 | if test "$enableval" = yes; then | |
8834 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8835 | else | |
8836 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8837 | fi | |
8838 | ||
8839 | else | |
8840 | ||
8841 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8842 | if test "x$LINE" != x ; then | |
8843 | eval "DEFAULT_$LINE" | |
8844 | else | |
8845 | no_cache=1 | |
8846 | fi | |
8847 | ||
8848 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8849 | ||
8850 | fi; | |
8851 | ||
8852 | eval "$ac_cv_use_choicedlg" | |
8853 | if test "$no_cache" != 1; then | |
8854 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8855 | fi | |
8856 | ||
8857 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8858 | echo "$as_me:$LINENO: result: yes" >&5 | |
8859 | echo "${ECHO_T}yes" >&6 | |
8860 | else | |
8861 | echo "$as_me:$LINENO: result: no" >&5 | |
8862 | echo "${ECHO_T}no" >&6 | |
8863 | fi | |
8864 | ||
8865 | ||
8866 | enablestring= | |
8867 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8868 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8869 | no_cache=0 | |
8870 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8871 | if test "${enable_coldlg+set}" = set; then | |
8872 | enableval="$enable_coldlg" | |
8873 | ||
8874 | if test "$enableval" = yes; then | |
8875 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8876 | else | |
8877 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8878 | fi | |
8879 | ||
8880 | else | |
8881 | ||
8882 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8883 | if test "x$LINE" != x ; then | |
8884 | eval "DEFAULT_$LINE" | |
8885 | else | |
8886 | no_cache=1 | |
8887 | fi | |
8888 | ||
8889 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8890 | ||
8891 | fi; | |
8892 | ||
8893 | eval "$ac_cv_use_coldlg" | |
8894 | if test "$no_cache" != 1; then | |
8895 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8896 | fi | |
8897 | ||
8898 | if test "$wxUSE_COLOURDLG" = yes; then | |
8899 | echo "$as_me:$LINENO: result: yes" >&5 | |
8900 | echo "${ECHO_T}yes" >&6 | |
8901 | else | |
8902 | echo "$as_me:$LINENO: result: no" >&5 | |
8903 | echo "${ECHO_T}no" >&6 | |
8904 | fi | |
8905 | ||
8906 | ||
8907 | enablestring= | |
8908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8909 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8910 | no_cache=0 | |
8911 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8912 | if test "${enable_filedlg+set}" = set; then | |
8913 | enableval="$enable_filedlg" | |
8914 | ||
8915 | if test "$enableval" = yes; then | |
8916 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8917 | else | |
8918 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8919 | fi | |
8920 | ||
8921 | else | |
8922 | ||
8923 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8924 | if test "x$LINE" != x ; then | |
8925 | eval "DEFAULT_$LINE" | |
8926 | else | |
8927 | no_cache=1 | |
8928 | fi | |
8929 | ||
8930 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8931 | ||
8932 | fi; | |
8933 | ||
8934 | eval "$ac_cv_use_filedlg" | |
8935 | if test "$no_cache" != 1; then | |
8936 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8937 | fi | |
8938 | ||
8939 | if test "$wxUSE_FILEDLG" = yes; then | |
8940 | echo "$as_me:$LINENO: result: yes" >&5 | |
8941 | echo "${ECHO_T}yes" >&6 | |
8942 | else | |
8943 | echo "$as_me:$LINENO: result: no" >&5 | |
8944 | echo "${ECHO_T}no" >&6 | |
8945 | fi | |
8946 | ||
8947 | ||
8948 | enablestring= | |
8949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8950 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8951 | no_cache=0 | |
8952 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8953 | if test "${enable_finddlg+set}" = set; then | |
8954 | enableval="$enable_finddlg" | |
8955 | ||
8956 | if test "$enableval" = yes; then | |
8957 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8958 | else | |
8959 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8960 | fi | |
8961 | ||
8962 | else | |
8963 | ||
8964 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8965 | if test "x$LINE" != x ; then | |
8966 | eval "DEFAULT_$LINE" | |
8967 | else | |
8968 | no_cache=1 | |
8969 | fi | |
8970 | ||
8971 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8972 | ||
8973 | fi; | |
8974 | ||
8975 | eval "$ac_cv_use_finddlg" | |
8976 | if test "$no_cache" != 1; then | |
8977 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8978 | fi | |
8979 | ||
8980 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8981 | echo "$as_me:$LINENO: result: yes" >&5 | |
8982 | echo "${ECHO_T}yes" >&6 | |
8983 | else | |
8984 | echo "$as_me:$LINENO: result: no" >&5 | |
8985 | echo "${ECHO_T}no" >&6 | |
8986 | fi | |
8987 | ||
8988 | ||
8989 | enablestring= | |
8990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8991 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8992 | no_cache=0 | |
8993 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8994 | if test "${enable_fontdlg+set}" = set; then | |
8995 | enableval="$enable_fontdlg" | |
8996 | ||
8997 | if test "$enableval" = yes; then | |
8998 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8999 | else | |
9000 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9001 | fi | |
9002 | ||
9003 | else | |
9004 | ||
9005 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9006 | if test "x$LINE" != x ; then | |
9007 | eval "DEFAULT_$LINE" | |
9008 | else | |
9009 | no_cache=1 | |
9010 | fi | |
9011 | ||
9012 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9013 | ||
9014 | fi; | |
9015 | ||
9016 | eval "$ac_cv_use_fontdlg" | |
9017 | if test "$no_cache" != 1; then | |
9018 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9019 | fi | |
9020 | ||
9021 | if test "$wxUSE_FONTDLG" = yes; then | |
9022 | echo "$as_me:$LINENO: result: yes" >&5 | |
9023 | echo "${ECHO_T}yes" >&6 | |
9024 | else | |
9025 | echo "$as_me:$LINENO: result: no" >&5 | |
9026 | echo "${ECHO_T}no" >&6 | |
9027 | fi | |
9028 | ||
9029 | ||
9030 | enablestring= | |
9031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9032 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9033 | no_cache=0 | |
9034 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9035 | if test "${enable_dirdlg+set}" = set; then | |
9036 | enableval="$enable_dirdlg" | |
9037 | ||
9038 | if test "$enableval" = yes; then | |
9039 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9040 | else | |
9041 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9042 | fi | |
9043 | ||
9044 | else | |
9045 | ||
9046 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9047 | if test "x$LINE" != x ; then | |
9048 | eval "DEFAULT_$LINE" | |
9049 | else | |
9050 | no_cache=1 | |
9051 | fi | |
9052 | ||
9053 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9054 | ||
9055 | fi; | |
9056 | ||
9057 | eval "$ac_cv_use_dirdlg" | |
9058 | if test "$no_cache" != 1; then | |
9059 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9060 | fi | |
9061 | ||
9062 | if test "$wxUSE_DIRDLG" = yes; then | |
9063 | echo "$as_me:$LINENO: result: yes" >&5 | |
9064 | echo "${ECHO_T}yes" >&6 | |
9065 | else | |
9066 | echo "$as_me:$LINENO: result: no" >&5 | |
9067 | echo "${ECHO_T}no" >&6 | |
9068 | fi | |
9069 | ||
9070 | ||
9071 | enablestring= | |
9072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9073 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9074 | no_cache=0 | |
9075 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9076 | if test "${enable_msgdlg+set}" = set; then | |
9077 | enableval="$enable_msgdlg" | |
9078 | ||
9079 | if test "$enableval" = yes; then | |
9080 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9081 | else | |
9082 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9083 | fi | |
9084 | ||
9085 | else | |
9086 | ||
9087 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9088 | if test "x$LINE" != x ; then | |
9089 | eval "DEFAULT_$LINE" | |
9090 | else | |
9091 | no_cache=1 | |
9092 | fi | |
9093 | ||
9094 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9095 | ||
9096 | fi; | |
9097 | ||
9098 | eval "$ac_cv_use_msgdlg" | |
9099 | if test "$no_cache" != 1; then | |
9100 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9101 | fi | |
9102 | ||
9103 | if test "$wxUSE_MSGDLG" = yes; then | |
9104 | echo "$as_me:$LINENO: result: yes" >&5 | |
9105 | echo "${ECHO_T}yes" >&6 | |
9106 | else | |
9107 | echo "$as_me:$LINENO: result: no" >&5 | |
9108 | echo "${ECHO_T}no" >&6 | |
9109 | fi | |
9110 | ||
9111 | ||
9112 | enablestring= | |
9113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9114 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9115 | no_cache=0 | |
9116 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9117 | if test "${enable_numberdlg+set}" = set; then | |
9118 | enableval="$enable_numberdlg" | |
9119 | ||
9120 | if test "$enableval" = yes; then | |
9121 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9122 | else | |
9123 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9124 | fi | |
9125 | ||
9126 | else | |
9127 | ||
9128 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9129 | if test "x$LINE" != x ; then | |
9130 | eval "DEFAULT_$LINE" | |
9131 | else | |
9132 | no_cache=1 | |
9133 | fi | |
9134 | ||
9135 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9136 | ||
9137 | fi; | |
9138 | ||
9139 | eval "$ac_cv_use_numberdlg" | |
9140 | if test "$no_cache" != 1; then | |
9141 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9142 | fi | |
9143 | ||
9144 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9145 | echo "$as_me:$LINENO: result: yes" >&5 | |
9146 | echo "${ECHO_T}yes" >&6 | |
9147 | else | |
9148 | echo "$as_me:$LINENO: result: no" >&5 | |
9149 | echo "${ECHO_T}no" >&6 | |
9150 | fi | |
9151 | ||
9152 | ||
9153 | enablestring= | |
9154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9155 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9156 | no_cache=0 | |
9157 | # Check whether --enable-splash or --disable-splash was given. | |
9158 | if test "${enable_splash+set}" = set; then | |
9159 | enableval="$enable_splash" | |
9160 | ||
9161 | if test "$enableval" = yes; then | |
9162 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9163 | else | |
9164 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9165 | fi | |
9166 | ||
9167 | else | |
9168 | ||
9169 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9170 | if test "x$LINE" != x ; then | |
9171 | eval "DEFAULT_$LINE" | |
9172 | else | |
9173 | no_cache=1 | |
9174 | fi | |
9175 | ||
9176 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9177 | ||
9178 | fi; | |
9179 | ||
9180 | eval "$ac_cv_use_splash" | |
9181 | if test "$no_cache" != 1; then | |
9182 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9183 | fi | |
9184 | ||
9185 | if test "$wxUSE_SPLASH" = yes; then | |
9186 | echo "$as_me:$LINENO: result: yes" >&5 | |
9187 | echo "${ECHO_T}yes" >&6 | |
9188 | else | |
9189 | echo "$as_me:$LINENO: result: no" >&5 | |
9190 | echo "${ECHO_T}no" >&6 | |
9191 | fi | |
9192 | ||
9193 | ||
9194 | enablestring= | |
9195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9196 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9197 | no_cache=0 | |
9198 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9199 | if test "${enable_textdlg+set}" = set; then | |
9200 | enableval="$enable_textdlg" | |
9201 | ||
9202 | if test "$enableval" = yes; then | |
9203 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9204 | else | |
9205 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9206 | fi | |
9207 | ||
9208 | else | |
9209 | ||
9210 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9211 | if test "x$LINE" != x ; then | |
9212 | eval "DEFAULT_$LINE" | |
9213 | else | |
9214 | no_cache=1 | |
9215 | fi | |
9216 | ||
9217 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9218 | ||
9219 | fi; | |
9220 | ||
9221 | eval "$ac_cv_use_textdlg" | |
9222 | if test "$no_cache" != 1; then | |
9223 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9224 | fi | |
9225 | ||
9226 | if test "$wxUSE_TEXTDLG" = yes; then | |
9227 | echo "$as_me:$LINENO: result: yes" >&5 | |
9228 | echo "${ECHO_T}yes" >&6 | |
9229 | else | |
9230 | echo "$as_me:$LINENO: result: no" >&5 | |
9231 | echo "${ECHO_T}no" >&6 | |
9232 | fi | |
9233 | ||
9234 | ||
9235 | enablestring= | |
9236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9237 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9238 | no_cache=0 | |
9239 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9240 | if test "${enable_tipdlg+set}" = set; then | |
9241 | enableval="$enable_tipdlg" | |
9242 | ||
9243 | if test "$enableval" = yes; then | |
9244 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9245 | else | |
9246 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9247 | fi | |
9248 | ||
9249 | else | |
9250 | ||
9251 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9252 | if test "x$LINE" != x ; then | |
9253 | eval "DEFAULT_$LINE" | |
9254 | else | |
9255 | no_cache=1 | |
9256 | fi | |
9257 | ||
9258 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9259 | ||
9260 | fi; | |
9261 | ||
9262 | eval "$ac_cv_use_tipdlg" | |
9263 | if test "$no_cache" != 1; then | |
9264 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9265 | fi | |
9266 | ||
9267 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9268 | echo "$as_me:$LINENO: result: yes" >&5 | |
9269 | echo "${ECHO_T}yes" >&6 | |
9270 | else | |
9271 | echo "$as_me:$LINENO: result: no" >&5 | |
9272 | echo "${ECHO_T}no" >&6 | |
9273 | fi | |
9274 | ||
9275 | ||
9276 | enablestring= | |
9277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9278 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9279 | no_cache=0 | |
9280 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9281 | if test "${enable_progressdlg+set}" = set; then | |
9282 | enableval="$enable_progressdlg" | |
9283 | ||
9284 | if test "$enableval" = yes; then | |
9285 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9286 | else | |
9287 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9288 | fi | |
9289 | ||
9290 | else | |
9291 | ||
9292 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9293 | if test "x$LINE" != x ; then | |
9294 | eval "DEFAULT_$LINE" | |
9295 | else | |
9296 | no_cache=1 | |
9297 | fi | |
9298 | ||
9299 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9300 | ||
9301 | fi; | |
9302 | ||
9303 | eval "$ac_cv_use_progressdlg" | |
9304 | if test "$no_cache" != 1; then | |
9305 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9306 | fi | |
9307 | ||
9308 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9309 | echo "$as_me:$LINENO: result: yes" >&5 | |
9310 | echo "${ECHO_T}yes" >&6 | |
9311 | else | |
9312 | echo "$as_me:$LINENO: result: no" >&5 | |
9313 | echo "${ECHO_T}no" >&6 | |
9314 | fi | |
9315 | ||
9316 | ||
9317 | enablestring= | |
9318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9319 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9320 | no_cache=0 | |
9321 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9322 | if test "${enable_wizarddlg+set}" = set; then | |
9323 | enableval="$enable_wizarddlg" | |
9324 | ||
9325 | if test "$enableval" = yes; then | |
9326 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9327 | else | |
9328 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9329 | fi | |
9330 | ||
9331 | else | |
9332 | ||
9333 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9334 | if test "x$LINE" != x ; then | |
9335 | eval "DEFAULT_$LINE" | |
9336 | else | |
9337 | no_cache=1 | |
9338 | fi | |
9339 | ||
9340 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9341 | ||
9342 | fi; | |
9343 | ||
9344 | eval "$ac_cv_use_wizarddlg" | |
9345 | if test "$no_cache" != 1; then | |
9346 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9347 | fi | |
9348 | ||
9349 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9350 | echo "$as_me:$LINENO: result: yes" >&5 | |
9351 | echo "${ECHO_T}yes" >&6 | |
9352 | else | |
9353 | echo "$as_me:$LINENO: result: no" >&5 | |
9354 | echo "${ECHO_T}no" >&6 | |
9355 | fi | |
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | enablestring= | |
9361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9362 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9363 | no_cache=0 | |
9364 | # Check whether --enable-menus or --disable-menus was given. | |
9365 | if test "${enable_menus+set}" = set; then | |
9366 | enableval="$enable_menus" | |
9367 | ||
9368 | if test "$enableval" = yes; then | |
9369 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9370 | else | |
9371 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9372 | fi | |
9373 | ||
9374 | else | |
9375 | ||
9376 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9377 | if test "x$LINE" != x ; then | |
9378 | eval "DEFAULT_$LINE" | |
9379 | else | |
9380 | no_cache=1 | |
9381 | fi | |
9382 | ||
9383 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9384 | ||
9385 | fi; | |
9386 | ||
9387 | eval "$ac_cv_use_menus" | |
9388 | if test "$no_cache" != 1; then | |
9389 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9390 | fi | |
9391 | ||
9392 | if test "$wxUSE_MENUS" = yes; then | |
9393 | echo "$as_me:$LINENO: result: yes" >&5 | |
9394 | echo "${ECHO_T}yes" >&6 | |
9395 | else | |
9396 | echo "$as_me:$LINENO: result: no" >&5 | |
9397 | echo "${ECHO_T}no" >&6 | |
9398 | fi | |
9399 | ||
9400 | ||
9401 | enablestring= | |
9402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9403 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9404 | no_cache=0 | |
9405 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9406 | if test "${enable_miniframe+set}" = set; then | |
9407 | enableval="$enable_miniframe" | |
9408 | ||
9409 | if test "$enableval" = yes; then | |
9410 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9411 | else | |
9412 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9413 | fi | |
9414 | ||
9415 | else | |
9416 | ||
9417 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9418 | if test "x$LINE" != x ; then | |
9419 | eval "DEFAULT_$LINE" | |
9420 | else | |
9421 | no_cache=1 | |
9422 | fi | |
9423 | ||
9424 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9425 | ||
9426 | fi; | |
9427 | ||
9428 | eval "$ac_cv_use_miniframe" | |
9429 | if test "$no_cache" != 1; then | |
9430 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9431 | fi | |
9432 | ||
9433 | if test "$wxUSE_MINIFRAME" = yes; then | |
9434 | echo "$as_me:$LINENO: result: yes" >&5 | |
9435 | echo "${ECHO_T}yes" >&6 | |
9436 | else | |
9437 | echo "$as_me:$LINENO: result: no" >&5 | |
9438 | echo "${ECHO_T}no" >&6 | |
9439 | fi | |
9440 | ||
9441 | ||
9442 | enablestring= | |
9443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9444 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9445 | no_cache=0 | |
9446 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9447 | if test "${enable_tooltips+set}" = set; then | |
9448 | enableval="$enable_tooltips" | |
9449 | ||
9450 | if test "$enableval" = yes; then | |
9451 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9452 | else | |
9453 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9454 | fi | |
9455 | ||
9456 | else | |
9457 | ||
9458 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9459 | if test "x$LINE" != x ; then | |
9460 | eval "DEFAULT_$LINE" | |
9461 | else | |
9462 | no_cache=1 | |
9463 | fi | |
9464 | ||
9465 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9466 | ||
9467 | fi; | |
9468 | ||
9469 | eval "$ac_cv_use_tooltips" | |
9470 | if test "$no_cache" != 1; then | |
9471 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9472 | fi | |
9473 | ||
9474 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9475 | echo "$as_me:$LINENO: result: yes" >&5 | |
9476 | echo "${ECHO_T}yes" >&6 | |
9477 | else | |
9478 | echo "$as_me:$LINENO: result: no" >&5 | |
9479 | echo "${ECHO_T}no" >&6 | |
9480 | fi | |
9481 | ||
9482 | ||
9483 | enablestring= | |
9484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9485 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9486 | no_cache=0 | |
9487 | # Check whether --enable-splines or --disable-splines was given. | |
9488 | if test "${enable_splines+set}" = set; then | |
9489 | enableval="$enable_splines" | |
9490 | ||
9491 | if test "$enableval" = yes; then | |
9492 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9493 | else | |
9494 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9495 | fi | |
9496 | ||
9497 | else | |
9498 | ||
9499 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9500 | if test "x$LINE" != x ; then | |
9501 | eval "DEFAULT_$LINE" | |
9502 | else | |
9503 | no_cache=1 | |
9504 | fi | |
9505 | ||
9506 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9507 | ||
9508 | fi; | |
9509 | ||
9510 | eval "$ac_cv_use_splines" | |
9511 | if test "$no_cache" != 1; then | |
9512 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9513 | fi | |
9514 | ||
9515 | if test "$wxUSE_SPLINES" = yes; then | |
9516 | echo "$as_me:$LINENO: result: yes" >&5 | |
9517 | echo "${ECHO_T}yes" >&6 | |
9518 | else | |
9519 | echo "$as_me:$LINENO: result: no" >&5 | |
9520 | echo "${ECHO_T}no" >&6 | |
9521 | fi | |
9522 | ||
9523 | ||
9524 | enablestring= | |
9525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9526 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9527 | no_cache=0 | |
9528 | # Check whether --enable-validators or --disable-validators was given. | |
9529 | if test "${enable_validators+set}" = set; then | |
9530 | enableval="$enable_validators" | |
9531 | ||
9532 | if test "$enableval" = yes; then | |
9533 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9534 | else | |
9535 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9536 | fi | |
9537 | ||
9538 | else | |
9539 | ||
9540 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9541 | if test "x$LINE" != x ; then | |
9542 | eval "DEFAULT_$LINE" | |
9543 | else | |
9544 | no_cache=1 | |
9545 | fi | |
9546 | ||
9547 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9548 | ||
9549 | fi; | |
9550 | ||
9551 | eval "$ac_cv_use_validators" | |
9552 | if test "$no_cache" != 1; then | |
9553 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9554 | fi | |
9555 | ||
9556 | if test "$wxUSE_VALIDATORS" = yes; then | |
9557 | echo "$as_me:$LINENO: result: yes" >&5 | |
9558 | echo "${ECHO_T}yes" >&6 | |
9559 | else | |
9560 | echo "$as_me:$LINENO: result: no" >&5 | |
9561 | echo "${ECHO_T}no" >&6 | |
9562 | fi | |
9563 | ||
9564 | ||
9565 | enablestring= | |
9566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9567 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9568 | no_cache=0 | |
9569 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9570 | if test "${enable_busyinfo+set}" = set; then | |
9571 | enableval="$enable_busyinfo" | |
9572 | ||
9573 | if test "$enableval" = yes; then | |
9574 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9575 | else | |
9576 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9577 | fi | |
9578 | ||
9579 | else | |
9580 | ||
9581 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9582 | if test "x$LINE" != x ; then | |
9583 | eval "DEFAULT_$LINE" | |
9584 | else | |
9585 | no_cache=1 | |
9586 | fi | |
9587 | ||
9588 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9589 | ||
9590 | fi; | |
9591 | ||
9592 | eval "$ac_cv_use_busyinfo" | |
9593 | if test "$no_cache" != 1; then | |
9594 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9595 | fi | |
9596 | ||
9597 | if test "$wxUSE_BUSYINFO" = yes; then | |
9598 | echo "$as_me:$LINENO: result: yes" >&5 | |
9599 | echo "${ECHO_T}yes" >&6 | |
9600 | else | |
9601 | echo "$as_me:$LINENO: result: no" >&5 | |
9602 | echo "${ECHO_T}no" >&6 | |
9603 | fi | |
9604 | ||
9605 | ||
9606 | enablestring= | |
9607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9608 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9609 | no_cache=0 | |
9610 | # Check whether --enable-joystick or --disable-joystick was given. | |
9611 | if test "${enable_joystick+set}" = set; then | |
9612 | enableval="$enable_joystick" | |
9613 | ||
9614 | if test "$enableval" = yes; then | |
9615 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9616 | else | |
9617 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9618 | fi | |
9619 | ||
9620 | else | |
9621 | ||
9622 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9623 | if test "x$LINE" != x ; then | |
9624 | eval "DEFAULT_$LINE" | |
9625 | else | |
9626 | no_cache=1 | |
9627 | fi | |
9628 | ||
9629 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9630 | ||
9631 | fi; | |
9632 | ||
9633 | eval "$ac_cv_use_joystick" | |
9634 | if test "$no_cache" != 1; then | |
9635 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9636 | fi | |
9637 | ||
9638 | if test "$wxUSE_JOYSTICK" = yes; then | |
9639 | echo "$as_me:$LINENO: result: yes" >&5 | |
9640 | echo "${ECHO_T}yes" >&6 | |
9641 | else | |
9642 | echo "$as_me:$LINENO: result: no" >&5 | |
9643 | echo "${ECHO_T}no" >&6 | |
9644 | fi | |
9645 | ||
9646 | ||
9647 | enablestring= | |
9648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9649 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9650 | no_cache=0 | |
9651 | # Check whether --enable-metafile or --disable-metafile was given. | |
9652 | if test "${enable_metafile+set}" = set; then | |
9653 | enableval="$enable_metafile" | |
9654 | ||
9655 | if test "$enableval" = yes; then | |
9656 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9657 | else | |
9658 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9659 | fi | |
9660 | ||
9661 | else | |
9662 | ||
9663 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9664 | if test "x$LINE" != x ; then | |
9665 | eval "DEFAULT_$LINE" | |
9666 | else | |
9667 | no_cache=1 | |
9668 | fi | |
9669 | ||
9670 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9671 | ||
9672 | fi; | |
9673 | ||
9674 | eval "$ac_cv_use_metafile" | |
9675 | if test "$no_cache" != 1; then | |
9676 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9677 | fi | |
9678 | ||
9679 | if test "$wxUSE_METAFILE" = yes; then | |
9680 | echo "$as_me:$LINENO: result: yes" >&5 | |
9681 | echo "${ECHO_T}yes" >&6 | |
9682 | else | |
9683 | echo "$as_me:$LINENO: result: no" >&5 | |
9684 | echo "${ECHO_T}no" >&6 | |
9685 | fi | |
9686 | ||
9687 | ||
9688 | enablestring= | |
9689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9690 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9691 | no_cache=0 | |
9692 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9693 | if test "${enable_dragimage+set}" = set; then | |
9694 | enableval="$enable_dragimage" | |
9695 | ||
9696 | if test "$enableval" = yes; then | |
9697 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9698 | else | |
9699 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9700 | fi | |
9701 | ||
9702 | else | |
9703 | ||
9704 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9705 | if test "x$LINE" != x ; then | |
9706 | eval "DEFAULT_$LINE" | |
9707 | else | |
9708 | no_cache=1 | |
9709 | fi | |
9710 | ||
9711 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9712 | ||
9713 | fi; | |
9714 | ||
9715 | eval "$ac_cv_use_dragimage" | |
9716 | if test "$no_cache" != 1; then | |
9717 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9718 | fi | |
9719 | ||
9720 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9721 | echo "$as_me:$LINENO: result: yes" >&5 | |
9722 | echo "${ECHO_T}yes" >&6 | |
9723 | else | |
9724 | echo "$as_me:$LINENO: result: no" >&5 | |
9725 | echo "${ECHO_T}no" >&6 | |
9726 | fi | |
9727 | ||
9728 | ||
9729 | enablestring= | |
9730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9731 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9732 | no_cache=0 | |
9733 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9734 | if test "${enable_accessibility+set}" = set; then | |
9735 | enableval="$enable_accessibility" | |
9736 | ||
9737 | if test "$enableval" = yes; then | |
9738 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9739 | else | |
9740 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9741 | fi | |
9742 | ||
9743 | else | |
9744 | ||
9745 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9746 | if test "x$LINE" != x ; then | |
9747 | eval "DEFAULT_$LINE" | |
9748 | else | |
9749 | no_cache=1 | |
9750 | fi | |
9751 | ||
9752 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9753 | ||
9754 | fi; | |
9755 | ||
9756 | eval "$ac_cv_use_accessibility" | |
9757 | if test "$no_cache" != 1; then | |
9758 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9759 | fi | |
9760 | ||
9761 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9762 | echo "$as_me:$LINENO: result: yes" >&5 | |
9763 | echo "${ECHO_T}yes" >&6 | |
9764 | else | |
9765 | echo "$as_me:$LINENO: result: no" >&5 | |
9766 | echo "${ECHO_T}no" >&6 | |
9767 | fi | |
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | enablestring= | |
9773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9774 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9775 | no_cache=0 | |
9776 | # Check whether --enable-palette or --disable-palette was given. | |
9777 | if test "${enable_palette+set}" = set; then | |
9778 | enableval="$enable_palette" | |
9779 | ||
9780 | if test "$enableval" = yes; then | |
9781 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9782 | else | |
9783 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9784 | fi | |
9785 | ||
9786 | else | |
9787 | ||
9788 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9789 | if test "x$LINE" != x ; then | |
9790 | eval "DEFAULT_$LINE" | |
9791 | else | |
9792 | no_cache=1 | |
9793 | fi | |
9794 | ||
9795 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9796 | ||
9797 | fi; | |
9798 | ||
9799 | eval "$ac_cv_use_palette" | |
9800 | if test "$no_cache" != 1; then | |
9801 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9802 | fi | |
9803 | ||
9804 | if test "$wxUSE_PALETTE" = yes; then | |
9805 | echo "$as_me:$LINENO: result: yes" >&5 | |
9806 | echo "${ECHO_T}yes" >&6 | |
9807 | else | |
9808 | echo "$as_me:$LINENO: result: no" >&5 | |
9809 | echo "${ECHO_T}no" >&6 | |
9810 | fi | |
9811 | ||
9812 | ||
9813 | enablestring= | |
9814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9815 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9816 | no_cache=0 | |
9817 | # Check whether --enable-image or --disable-image was given. | |
9818 | if test "${enable_image+set}" = set; then | |
9819 | enableval="$enable_image" | |
9820 | ||
9821 | if test "$enableval" = yes; then | |
9822 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9823 | else | |
9824 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9825 | fi | |
9826 | ||
9827 | else | |
9828 | ||
9829 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9830 | if test "x$LINE" != x ; then | |
9831 | eval "DEFAULT_$LINE" | |
9832 | else | |
9833 | no_cache=1 | |
9834 | fi | |
9835 | ||
9836 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9837 | ||
9838 | fi; | |
9839 | ||
9840 | eval "$ac_cv_use_image" | |
9841 | if test "$no_cache" != 1; then | |
9842 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9843 | fi | |
9844 | ||
9845 | if test "$wxUSE_IMAGE" = yes; then | |
9846 | echo "$as_me:$LINENO: result: yes" >&5 | |
9847 | echo "${ECHO_T}yes" >&6 | |
9848 | else | |
9849 | echo "$as_me:$LINENO: result: no" >&5 | |
9850 | echo "${ECHO_T}no" >&6 | |
9851 | fi | |
9852 | ||
9853 | ||
9854 | enablestring= | |
9855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9856 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9857 | no_cache=0 | |
9858 | # Check whether --enable-gif or --disable-gif was given. | |
9859 | if test "${enable_gif+set}" = set; then | |
9860 | enableval="$enable_gif" | |
9861 | ||
9862 | if test "$enableval" = yes; then | |
9863 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9864 | else | |
9865 | ac_cv_use_gif='wxUSE_GIF=no' | |
9866 | fi | |
9867 | ||
9868 | else | |
9869 | ||
9870 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9871 | if test "x$LINE" != x ; then | |
9872 | eval "DEFAULT_$LINE" | |
9873 | else | |
9874 | no_cache=1 | |
9875 | fi | |
9876 | ||
9877 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9878 | ||
9879 | fi; | |
9880 | ||
9881 | eval "$ac_cv_use_gif" | |
9882 | if test "$no_cache" != 1; then | |
9883 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9884 | fi | |
9885 | ||
9886 | if test "$wxUSE_GIF" = yes; then | |
9887 | echo "$as_me:$LINENO: result: yes" >&5 | |
9888 | echo "${ECHO_T}yes" >&6 | |
9889 | else | |
9890 | echo "$as_me:$LINENO: result: no" >&5 | |
9891 | echo "${ECHO_T}no" >&6 | |
9892 | fi | |
9893 | ||
9894 | ||
9895 | enablestring= | |
9896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9897 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9898 | no_cache=0 | |
9899 | # Check whether --enable-pcx or --disable-pcx was given. | |
9900 | if test "${enable_pcx+set}" = set; then | |
9901 | enableval="$enable_pcx" | |
9902 | ||
9903 | if test "$enableval" = yes; then | |
9904 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9905 | else | |
9906 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9907 | fi | |
9908 | ||
9909 | else | |
9910 | ||
9911 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9912 | if test "x$LINE" != x ; then | |
9913 | eval "DEFAULT_$LINE" | |
9914 | else | |
9915 | no_cache=1 | |
9916 | fi | |
9917 | ||
9918 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9919 | ||
9920 | fi; | |
9921 | ||
9922 | eval "$ac_cv_use_pcx" | |
9923 | if test "$no_cache" != 1; then | |
9924 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9925 | fi | |
9926 | ||
9927 | if test "$wxUSE_PCX" = yes; then | |
9928 | echo "$as_me:$LINENO: result: yes" >&5 | |
9929 | echo "${ECHO_T}yes" >&6 | |
9930 | else | |
9931 | echo "$as_me:$LINENO: result: no" >&5 | |
9932 | echo "${ECHO_T}no" >&6 | |
9933 | fi | |
9934 | ||
9935 | ||
9936 | enablestring= | |
9937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9938 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9939 | no_cache=0 | |
9940 | # Check whether --enable-iff or --disable-iff was given. | |
9941 | if test "${enable_iff+set}" = set; then | |
9942 | enableval="$enable_iff" | |
9943 | ||
9944 | if test "$enableval" = yes; then | |
9945 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9946 | else | |
9947 | ac_cv_use_iff='wxUSE_IFF=no' | |
9948 | fi | |
9949 | ||
9950 | else | |
9951 | ||
9952 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9953 | if test "x$LINE" != x ; then | |
9954 | eval "DEFAULT_$LINE" | |
9955 | else | |
9956 | no_cache=1 | |
9957 | fi | |
9958 | ||
9959 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9960 | ||
9961 | fi; | |
9962 | ||
9963 | eval "$ac_cv_use_iff" | |
9964 | if test "$no_cache" != 1; then | |
9965 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9966 | fi | |
9967 | ||
9968 | if test "$wxUSE_IFF" = yes; then | |
9969 | echo "$as_me:$LINENO: result: yes" >&5 | |
9970 | echo "${ECHO_T}yes" >&6 | |
9971 | else | |
9972 | echo "$as_me:$LINENO: result: no" >&5 | |
9973 | echo "${ECHO_T}no" >&6 | |
9974 | fi | |
9975 | ||
9976 | ||
9977 | enablestring= | |
9978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9979 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9980 | no_cache=0 | |
9981 | # Check whether --enable-pnm or --disable-pnm was given. | |
9982 | if test "${enable_pnm+set}" = set; then | |
9983 | enableval="$enable_pnm" | |
9984 | ||
9985 | if test "$enableval" = yes; then | |
9986 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9987 | else | |
9988 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9989 | fi | |
9990 | ||
9991 | else | |
9992 | ||
9993 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9994 | if test "x$LINE" != x ; then | |
9995 | eval "DEFAULT_$LINE" | |
9996 | else | |
9997 | no_cache=1 | |
9998 | fi | |
9999 | ||
10000 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10001 | ||
10002 | fi; | |
10003 | ||
10004 | eval "$ac_cv_use_pnm" | |
10005 | if test "$no_cache" != 1; then | |
10006 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10007 | fi | |
10008 | ||
10009 | if test "$wxUSE_PNM" = yes; then | |
10010 | echo "$as_me:$LINENO: result: yes" >&5 | |
10011 | echo "${ECHO_T}yes" >&6 | |
10012 | else | |
10013 | echo "$as_me:$LINENO: result: no" >&5 | |
10014 | echo "${ECHO_T}no" >&6 | |
10015 | fi | |
10016 | ||
10017 | ||
10018 | enablestring= | |
10019 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10020 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10021 | no_cache=0 | |
10022 | # Check whether --enable-xpm or --disable-xpm was given. | |
10023 | if test "${enable_xpm+set}" = set; then | |
10024 | enableval="$enable_xpm" | |
10025 | ||
10026 | if test "$enableval" = yes; then | |
10027 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10028 | else | |
10029 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10030 | fi | |
10031 | ||
10032 | else | |
10033 | ||
10034 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10035 | if test "x$LINE" != x ; then | |
10036 | eval "DEFAULT_$LINE" | |
10037 | else | |
10038 | no_cache=1 | |
10039 | fi | |
10040 | ||
10041 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10042 | ||
10043 | fi; | |
10044 | ||
10045 | eval "$ac_cv_use_xpm" | |
10046 | if test "$no_cache" != 1; then | |
10047 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10048 | fi | |
10049 | ||
10050 | if test "$wxUSE_XPM" = yes; then | |
10051 | echo "$as_me:$LINENO: result: yes" >&5 | |
10052 | echo "${ECHO_T}yes" >&6 | |
10053 | else | |
10054 | echo "$as_me:$LINENO: result: no" >&5 | |
10055 | echo "${ECHO_T}no" >&6 | |
10056 | fi | |
10057 | ||
10058 | ||
10059 | enablestring= | |
10060 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10061 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10062 | no_cache=0 | |
10063 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10064 | if test "${enable_ico_cur+set}" = set; then | |
10065 | enableval="$enable_ico_cur" | |
10066 | ||
10067 | if test "$enableval" = yes; then | |
10068 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10069 | else | |
10070 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10071 | fi | |
10072 | ||
10073 | else | |
10074 | ||
10075 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10076 | if test "x$LINE" != x ; then | |
10077 | eval "DEFAULT_$LINE" | |
10078 | else | |
10079 | no_cache=1 | |
10080 | fi | |
10081 | ||
10082 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10083 | ||
10084 | fi; | |
10085 | ||
10086 | eval "$ac_cv_use_ico_cur" | |
10087 | if test "$no_cache" != 1; then | |
10088 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10089 | fi | |
10090 | ||
10091 | if test "$wxUSE_ICO_CUR" = yes; then | |
10092 | echo "$as_me:$LINENO: result: yes" >&5 | |
10093 | echo "${ECHO_T}yes" >&6 | |
10094 | else | |
10095 | echo "$as_me:$LINENO: result: no" >&5 | |
10096 | echo "${ECHO_T}no" >&6 | |
10097 | fi | |
10098 | ||
10099 | ||
10100 | fi | |
10101 | ||
10102 | ||
10103 | ||
ceec2216 RL |
10104 | # Check whether --with-flavour or --without-flavour was given. |
10105 | if test "${with_flavour+set}" = set; then | |
10106 | withval="$with_flavour" | |
10107 | WX_FLAVOUR="$withval" | |
10108 | fi; | |
10109 | ||
10110 | ||
10111 | ||
a848cd7e SC |
10112 | enablestring= |
10113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10114 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10115 | no_cache=0 | |
10116 | # Check whether --enable-official_build or --disable-official_build was given. | |
10117 | if test "${enable_official_build+set}" = set; then | |
10118 | enableval="$enable_official_build" | |
10119 | ||
10120 | if test "$enableval" = yes; then | |
10121 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10122 | else | |
10123 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10124 | fi | |
10125 | ||
10126 | else | |
10127 | ||
10128 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10129 | if test "x$LINE" != x ; then | |
10130 | eval "DEFAULT_$LINE" | |
10131 | else | |
10132 | no_cache=1 | |
10133 | fi | |
10134 | ||
10135 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10136 | ||
10137 | fi; | |
10138 | ||
10139 | eval "$ac_cv_use_official_build" | |
10140 | if test "$no_cache" != 1; then | |
10141 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10142 | fi | |
10143 | ||
10144 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10145 | echo "$as_me:$LINENO: result: yes" >&5 | |
10146 | echo "${ECHO_T}yes" >&6 | |
10147 | else | |
10148 | echo "$as_me:$LINENO: result: no" >&5 | |
10149 | echo "${ECHO_T}no" >&6 | |
10150 | fi | |
10151 | ||
10152 | # Check whether --enable-vendor or --disable-vendor was given. | |
10153 | if test "${enable_vendor+set}" = set; then | |
10154 | enableval="$enable_vendor" | |
10155 | VENDOR="$enableval" | |
10156 | fi; | |
10157 | if test "x$VENDOR" = "x"; then | |
10158 | VENDOR="custom" | |
10159 | fi | |
10160 | ||
a848cd7e SC |
10161 | |
10162 | ||
10163 | ||
10164 | echo "saving argument cache $wx_arg_cache_file" | |
10165 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10166 | ||
10167 | ||
10168 | ||
10169 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10170 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10171 | ||
10172 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10173 | if test "$wxUSE_WINE" = "yes"; then | |
10174 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10175 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10176 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10177 | wxUSE_SHARED=no | |
10178 | fi | |
10179 | ||
10180 | if test "$wxUSE_GUI" = "yes"; then | |
10181 | ||
10182 | if test "$USE_BEOS" = 1; then | |
10183 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10184 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10185 | { (exit 1); exit 1; }; } | |
10186 | fi | |
10187 | ||
10188 | if test "$TOOLKIT_GIVEN" = 1; then | |
10189 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10190 | var=wxUSE_$toolkit | |
10191 | eval "value=\$${var}" | |
10192 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10193 | done | |
10194 | else | |
10195 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10196 | if test "$has_toolkit_in_cache" != 1; then | |
10197 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10198 | else | |
10199 | var=DEFAULT_wxUSE_$toolkit | |
10200 | fi | |
10201 | eval "wxUSE_$toolkit=\$${var}" | |
10202 | done | |
10203 | fi | |
10204 | ||
10205 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10206 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10207 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10208 | ||
10209 | case "${host}" in | |
10210 | *-pc-os2_emx | *-pc-os2-emx ) | |
10211 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10212 | esac | |
10213 | ||
10214 | case "$NUM_TOOLKITS" in | |
10215 | 1) | |
10216 | ;; | |
10217 | 0) | |
10218 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10219 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10220 | { (exit 1); exit 1; }; } | |
10221 | ;; | |
10222 | *) | |
10223 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10224 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10225 | { (exit 1); exit 1; }; } | |
10226 | esac | |
10227 | ||
10228 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10229 | var=wxUSE_$toolkit | |
10230 | eval "value=\$${var}" | |
10231 | if test "x$value" != x; then | |
10232 | cache_var=CACHE_$toolkit | |
10233 | eval "cache=\$${cache_var}" | |
10234 | if test "$cache" = 1; then | |
10235 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10236 | fi | |
10237 | if test "$value" = 1; then | |
10238 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10239 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10240 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10241 | fi | |
10242 | fi | |
10243 | done | |
10244 | else | |
10245 | if test "x$host_alias" != "x"; then | |
10246 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10247 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10248 | else | |
10249 | echo "$as_me:$LINENO: result: base only" >&5 | |
10250 | echo "${ECHO_T}base only" >&6 | |
10251 | fi | |
10252 | fi | |
10253 | ||
10254 | wants_win32=0 | |
10255 | doesnt_want_win32=0 | |
10256 | case "${host}" in | |
10257 | *-*-cygwin*) | |
10258 | if test "$wxUSE_MSW" = 1 ; then | |
10259 | wants_win32=1 | |
10260 | else | |
10261 | doesnt_want_win32=1 | |
10262 | fi | |
10263 | ;; | |
10264 | *-*-mingw*) | |
10265 | wants_win32=1 | |
10266 | ;; | |
10267 | esac | |
10268 | ||
10269 | if test "$wxUSE_WINE" = "yes"; then | |
10270 | wants_win32=1 | |
10271 | CC=winegcc | |
10272 | CXX=wineg++ | |
10273 | RESCOMP=wrc | |
10274 | LDFLAGS_GUI="-mwindows" | |
10275 | fi | |
10276 | ||
10277 | if test "$wants_win32" = 1 ; then | |
10278 | USE_UNIX=0 | |
10279 | USE_WIN32=1 | |
10280 | cat >>confdefs.h <<\_ACEOF | |
10281 | #define __WIN32__ 1 | |
10282 | _ACEOF | |
10283 | ||
10284 | cat >>confdefs.h <<\_ACEOF | |
10285 | #define __WIN95__ 1 | |
10286 | _ACEOF | |
10287 | ||
10288 | cat >>confdefs.h <<\_ACEOF | |
10289 | #define __WINDOWS__ 1 | |
10290 | _ACEOF | |
10291 | ||
10292 | cat >>confdefs.h <<\_ACEOF | |
10293 | #define __GNUWIN32__ 1 | |
10294 | _ACEOF | |
10295 | ||
10296 | cat >>confdefs.h <<\_ACEOF | |
10297 | #define STRICT 1 | |
10298 | _ACEOF | |
10299 | ||
10300 | cat >>confdefs.h <<\_ACEOF | |
10301 | #define WINVER 0x0400 | |
10302 | _ACEOF | |
10303 | ||
10304 | fi | |
10305 | if test "$doesnt_want_win32" = 1 ; then | |
10306 | USE_UNIX=1 | |
10307 | USE_WIN32=0 | |
10308 | fi | |
10309 | ||
10310 | if test "$USE_UNIX" = 1 ; then | |
10311 | wxUSE_UNIX=yes | |
10312 | cat >>confdefs.h <<\_ACEOF | |
10313 | #define __UNIX__ 1 | |
10314 | _ACEOF | |
10315 | ||
10316 | fi | |
10317 | ||
10318 | ||
10319 | cat >confcache <<\_ACEOF | |
10320 | # This file is a shell script that caches the results of configure | |
10321 | # tests run on this system so they can be shared between configure | |
10322 | # scripts and configure runs, see configure's option --config-cache. | |
10323 | # It is not useful on other systems. If it contains results you don't | |
10324 | # want to keep, you may remove or edit it. | |
10325 | # | |
10326 | # config.status only pays attention to the cache file if you give it | |
10327 | # the --recheck option to rerun configure. | |
10328 | # | |
10329 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10330 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10331 | # following values. | |
10332 | ||
10333 | _ACEOF | |
10334 | ||
10335 | # The following way of writing the cache mishandles newlines in values, | |
10336 | # but we know of no workaround that is simple, portable, and efficient. | |
10337 | # So, don't put newlines in cache variables' values. | |
10338 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10339 | # and sets the high bit in the cache file unless we assign to the vars. | |
10340 | { | |
10341 | (set) 2>&1 | | |
10342 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10343 | *ac_space=\ *) | |
10344 | # `set' does not quote correctly, so add quotes (double-quote | |
10345 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10346 | sed -n \ | |
ac1cb8d3 VS |
10347 | "s/'/'\\\\''/g; |
10348 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10349 | ;; |
10350 | *) | |
10351 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10352 | sed -n \ | |
ac1cb8d3 | 10353 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10354 | ;; |
10355 | esac; | |
10356 | } | | |
10357 | sed ' | |
10358 | t clear | |
10359 | : clear | |
10360 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10361 | t end | |
10362 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10363 | : end' >>confcache | |
10364 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10365 | if test -w $cache_file; then | |
10366 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10367 | cat confcache >$cache_file | |
10368 | else | |
10369 | echo "not updating unwritable cache $cache_file" | |
10370 | fi | |
10371 | fi | |
10372 | rm -f confcache | |
10373 | ||
10374 | if test "$build" != "$host" ; then | |
1e9e8aba | 10375 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10376 | CC=$host_alias-gcc |
10377 | CXX=$host_alias-c++ | |
10378 | AR=$host_alias-ar | |
10379 | RANLIB=$host_alias-ranlib | |
10380 | DLLTOOL=$host_alias-dlltool | |
10381 | RESCOMP=$host_alias-windres | |
a848cd7e | 10382 | STRIP=$host_alias-strip |
1e9e8aba DE |
10383 | elif test "x$CC" '!=' "x"; then |
10384 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10385 | else |
10386 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10387 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10388 | { (exit 1); exit 1; }; } | |
10389 | fi | |
10390 | fi | |
10391 | ||
10392 | CFLAGS=${CFLAGS:=} | |
10393 | ac_ext=c | |
10394 | ac_cpp='$CPP $CPPFLAGS' | |
10395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10398 | if test -n "$ac_tool_prefix"; then | |
10399 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10400 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10403 | if test "${ac_cv_prog_CC+set}" = set; then | |
10404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10405 | else | |
10406 | if test -n "$CC"; then | |
10407 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10408 | else | |
10409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10410 | for as_dir in $PATH | |
10411 | do | |
10412 | IFS=$as_save_IFS | |
10413 | test -z "$as_dir" && as_dir=. | |
10414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10416 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10418 | break 2 | |
10419 | fi | |
10420 | done | |
10421 | done | |
10422 | ||
10423 | fi | |
10424 | fi | |
10425 | CC=$ac_cv_prog_CC | |
10426 | if test -n "$CC"; then | |
10427 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10428 | echo "${ECHO_T}$CC" >&6 | |
10429 | else | |
10430 | echo "$as_me:$LINENO: result: no" >&5 | |
10431 | echo "${ECHO_T}no" >&6 | |
10432 | fi | |
10433 | ||
10434 | fi | |
10435 | if test -z "$ac_cv_prog_CC"; then | |
10436 | ac_ct_CC=$CC | |
10437 | # Extract the first word of "gcc", so it can be a program name with args. | |
10438 | set dummy gcc; ac_word=$2 | |
10439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10441 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10443 | else | |
10444 | if test -n "$ac_ct_CC"; then | |
10445 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10446 | else | |
10447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10448 | for as_dir in $PATH | |
10449 | do | |
10450 | IFS=$as_save_IFS | |
10451 | test -z "$as_dir" && as_dir=. | |
10452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10454 | ac_cv_prog_ac_ct_CC="gcc" | |
10455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10456 | break 2 | |
10457 | fi | |
10458 | done | |
10459 | done | |
10460 | ||
10461 | fi | |
10462 | fi | |
10463 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10464 | if test -n "$ac_ct_CC"; then | |
10465 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10466 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10467 | else | |
10468 | echo "$as_me:$LINENO: result: no" >&5 | |
10469 | echo "${ECHO_T}no" >&6 | |
10470 | fi | |
10471 | ||
10472 | CC=$ac_ct_CC | |
10473 | else | |
10474 | CC="$ac_cv_prog_CC" | |
10475 | fi | |
10476 | ||
10477 | if test -z "$CC"; then | |
10478 | if test -n "$ac_tool_prefix"; then | |
10479 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10480 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10483 | if test "${ac_cv_prog_CC+set}" = set; then | |
10484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10485 | else | |
10486 | if test -n "$CC"; then | |
10487 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10488 | else | |
10489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10490 | for as_dir in $PATH | |
10491 | do | |
10492 | IFS=$as_save_IFS | |
10493 | test -z "$as_dir" && as_dir=. | |
10494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10496 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10498 | break 2 | |
10499 | fi | |
10500 | done | |
10501 | done | |
10502 | ||
10503 | fi | |
10504 | fi | |
10505 | CC=$ac_cv_prog_CC | |
10506 | if test -n "$CC"; then | |
10507 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10508 | echo "${ECHO_T}$CC" >&6 | |
10509 | else | |
10510 | echo "$as_me:$LINENO: result: no" >&5 | |
10511 | echo "${ECHO_T}no" >&6 | |
10512 | fi | |
10513 | ||
10514 | fi | |
10515 | if test -z "$ac_cv_prog_CC"; then | |
10516 | ac_ct_CC=$CC | |
10517 | # Extract the first word of "cc", so it can be a program name with args. | |
10518 | set dummy cc; ac_word=$2 | |
10519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10521 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10523 | else | |
10524 | if test -n "$ac_ct_CC"; then | |
10525 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10526 | else | |
10527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10528 | for as_dir in $PATH | |
10529 | do | |
10530 | IFS=$as_save_IFS | |
10531 | test -z "$as_dir" && as_dir=. | |
10532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10534 | ac_cv_prog_ac_ct_CC="cc" | |
10535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10536 | break 2 | |
10537 | fi | |
10538 | done | |
10539 | done | |
10540 | ||
10541 | fi | |
10542 | fi | |
10543 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10544 | if test -n "$ac_ct_CC"; then | |
10545 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10546 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10547 | else | |
10548 | echo "$as_me:$LINENO: result: no" >&5 | |
10549 | echo "${ECHO_T}no" >&6 | |
10550 | fi | |
10551 | ||
10552 | CC=$ac_ct_CC | |
10553 | else | |
10554 | CC="$ac_cv_prog_CC" | |
10555 | fi | |
10556 | ||
10557 | fi | |
10558 | if test -z "$CC"; then | |
10559 | # Extract the first word of "cc", so it can be a program name with args. | |
10560 | set dummy cc; ac_word=$2 | |
10561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10563 | if test "${ac_cv_prog_CC+set}" = set; then | |
10564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10565 | else | |
10566 | if test -n "$CC"; then | |
10567 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10568 | else | |
10569 | ac_prog_rejected=no | |
10570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10571 | for as_dir in $PATH | |
10572 | do | |
10573 | IFS=$as_save_IFS | |
10574 | test -z "$as_dir" && as_dir=. | |
10575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10577 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10578 | ac_prog_rejected=yes | |
10579 | continue | |
10580 | fi | |
10581 | ac_cv_prog_CC="cc" | |
10582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10583 | break 2 | |
10584 | fi | |
10585 | done | |
10586 | done | |
10587 | ||
10588 | if test $ac_prog_rejected = yes; then | |
10589 | # We found a bogon in the path, so make sure we never use it. | |
10590 | set dummy $ac_cv_prog_CC | |
10591 | shift | |
10592 | if test $# != 0; then | |
10593 | # We chose a different compiler from the bogus one. | |
10594 | # However, it has the same basename, so the bogon will be chosen | |
10595 | # first if we set CC to just the basename; use the full file name. | |
10596 | shift | |
10597 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10598 | fi | |
10599 | fi | |
10600 | fi | |
10601 | fi | |
10602 | CC=$ac_cv_prog_CC | |
10603 | if test -n "$CC"; then | |
10604 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10605 | echo "${ECHO_T}$CC" >&6 | |
10606 | else | |
10607 | echo "$as_me:$LINENO: result: no" >&5 | |
10608 | echo "${ECHO_T}no" >&6 | |
10609 | fi | |
10610 | ||
10611 | fi | |
10612 | if test -z "$CC"; then | |
10613 | if test -n "$ac_tool_prefix"; then | |
10614 | for ac_prog in cl | |
10615 | do | |
10616 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10617 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10618 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10620 | if test "${ac_cv_prog_CC+set}" = set; then | |
10621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10622 | else | |
10623 | if test -n "$CC"; then | |
10624 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10625 | else | |
10626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10627 | for as_dir in $PATH | |
10628 | do | |
10629 | IFS=$as_save_IFS | |
10630 | test -z "$as_dir" && as_dir=. | |
10631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10632 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10633 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10635 | break 2 | |
10636 | fi | |
10637 | done | |
10638 | done | |
10639 | ||
10640 | fi | |
10641 | fi | |
10642 | CC=$ac_cv_prog_CC | |
10643 | if test -n "$CC"; then | |
10644 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10645 | echo "${ECHO_T}$CC" >&6 | |
10646 | else | |
10647 | echo "$as_me:$LINENO: result: no" >&5 | |
10648 | echo "${ECHO_T}no" >&6 | |
10649 | fi | |
10650 | ||
10651 | test -n "$CC" && break | |
10652 | done | |
10653 | fi | |
10654 | if test -z "$CC"; then | |
10655 | ac_ct_CC=$CC | |
10656 | for ac_prog in cl | |
10657 | do | |
10658 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10659 | set dummy $ac_prog; ac_word=$2 | |
10660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10662 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10664 | else | |
10665 | if test -n "$ac_ct_CC"; then | |
10666 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10667 | else | |
10668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10669 | for as_dir in $PATH | |
10670 | do | |
10671 | IFS=$as_save_IFS | |
10672 | test -z "$as_dir" && as_dir=. | |
10673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10675 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10677 | break 2 | |
10678 | fi | |
10679 | done | |
10680 | done | |
10681 | ||
10682 | fi | |
10683 | fi | |
10684 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10685 | if test -n "$ac_ct_CC"; then | |
10686 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10687 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10688 | else | |
10689 | echo "$as_me:$LINENO: result: no" >&5 | |
10690 | echo "${ECHO_T}no" >&6 | |
10691 | fi | |
10692 | ||
10693 | test -n "$ac_ct_CC" && break | |
10694 | done | |
10695 | ||
10696 | CC=$ac_ct_CC | |
10697 | fi | |
10698 | ||
10699 | fi | |
10700 | ||
10701 | ||
10702 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10703 | See \`config.log' for more details." >&5 | |
10704 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10705 | See \`config.log' for more details." >&2;} | |
10706 | { (exit 1); exit 1; }; } | |
10707 | ||
10708 | # Provide some information about the compiler. | |
10709 | echo "$as_me:$LINENO:" \ | |
10710 | "checking for C compiler version" >&5 | |
10711 | ac_compiler=`set X $ac_compile; echo $2` | |
10712 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10713 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10714 | ac_status=$? | |
10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10716 | (exit $ac_status); } | |
10717 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10718 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10719 | ac_status=$? | |
10720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10721 | (exit $ac_status); } | |
10722 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10723 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10724 | ac_status=$? | |
10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10726 | (exit $ac_status); } | |
10727 | ||
10728 | cat >conftest.$ac_ext <<_ACEOF | |
10729 | /* confdefs.h. */ | |
10730 | _ACEOF | |
10731 | cat confdefs.h >>conftest.$ac_ext | |
10732 | cat >>conftest.$ac_ext <<_ACEOF | |
10733 | /* end confdefs.h. */ | |
10734 | ||
10735 | int | |
10736 | main () | |
10737 | { | |
10738 | ||
10739 | ; | |
10740 | return 0; | |
10741 | } | |
10742 | _ACEOF | |
10743 | ac_clean_files_save=$ac_clean_files | |
10744 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10745 | # Try to create an executable without -o first, disregard a.out. | |
10746 | # It will help us diagnose broken compilers, and finding out an intuition | |
10747 | # of exeext. | |
ac1cb8d3 VS |
10748 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10749 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10750 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10751 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10752 | (eval $ac_link_default) 2>&5 | |
10753 | ac_status=$? | |
10754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10755 | (exit $ac_status); }; then | |
10756 | # Find the output, starting from the most likely. This scheme is | |
10757 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10758 | # resort. | |
10759 | ||
10760 | # Be careful to initialize this variable, since it used to be cached. | |
10761 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10762 | ac_cv_exeext= | |
10763 | # b.out is created by i960 compilers. | |
10764 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10765 | do | |
10766 | test -f "$ac_file" || continue | |
10767 | case $ac_file in | |
10768 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10769 | ;; |
a848cd7e | 10770 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10771 | # This is the source file. |
10772 | ;; | |
a848cd7e | 10773 | [ab].out ) |
ac1cb8d3 VS |
10774 | # We found the default executable, but exeext='' is most |
10775 | # certainly right. | |
10776 | break;; | |
a848cd7e | 10777 | *.* ) |
ac1cb8d3 VS |
10778 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10779 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10780 | # but it would be cool to find out if it's true. Does anybody | |
10781 | # maintain Libtool? --akim. | |
10782 | export ac_cv_exeext | |
10783 | break;; | |
a848cd7e | 10784 | * ) |
ac1cb8d3 | 10785 | break;; |
a848cd7e SC |
10786 | esac |
10787 | done | |
10788 | else | |
10789 | echo "$as_me: failed program was:" >&5 | |
10790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10791 | ||
10792 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10793 | See \`config.log' for more details." >&5 | |
10794 | echo "$as_me: error: C compiler cannot create executables | |
10795 | See \`config.log' for more details." >&2;} | |
10796 | { (exit 77); exit 77; }; } | |
10797 | fi | |
10798 | ||
10799 | ac_exeext=$ac_cv_exeext | |
10800 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10801 | echo "${ECHO_T}$ac_file" >&6 | |
10802 | ||
10803 | # Check the compiler produces executables we can run. If not, either | |
10804 | # the compiler is broken, or we cross compile. | |
10805 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10806 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10807 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10808 | # If not cross compiling, check that we can run a simple program. | |
10809 | if test "$cross_compiling" != yes; then | |
10810 | if { ac_try='./$ac_file' | |
10811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10812 | (eval $ac_try) 2>&5 | |
10813 | ac_status=$? | |
10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10815 | (exit $ac_status); }; }; then | |
10816 | cross_compiling=no | |
10817 | else | |
10818 | if test "$cross_compiling" = maybe; then | |
10819 | cross_compiling=yes | |
10820 | else | |
10821 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10822 | If you meant to cross compile, use \`--host'. | |
10823 | See \`config.log' for more details." >&5 | |
10824 | echo "$as_me: error: cannot run C compiled programs. | |
10825 | If you meant to cross compile, use \`--host'. | |
10826 | See \`config.log' for more details." >&2;} | |
10827 | { (exit 1); exit 1; }; } | |
10828 | fi | |
10829 | fi | |
10830 | fi | |
10831 | echo "$as_me:$LINENO: result: yes" >&5 | |
10832 | echo "${ECHO_T}yes" >&6 | |
10833 | ||
10834 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10835 | ac_clean_files=$ac_clean_files_save | |
10836 | # Check the compiler produces executables we can run. If not, either | |
10837 | # the compiler is broken, or we cross compile. | |
10838 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10839 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10840 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10841 | echo "${ECHO_T}$cross_compiling" >&6 | |
10842 | ||
10843 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10844 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10846 | (eval $ac_link) 2>&5 | |
10847 | ac_status=$? | |
10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10849 | (exit $ac_status); }; then | |
10850 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10851 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10852 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10853 | # `rm'. | |
10854 | for ac_file in conftest.exe conftest conftest.*; do | |
10855 | test -f "$ac_file" || continue | |
10856 | case $ac_file in | |
10857 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10858 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10859 | export ac_cv_exeext |
10860 | break;; | |
a848cd7e SC |
10861 | * ) break;; |
10862 | esac | |
10863 | done | |
10864 | else | |
10865 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10866 | See \`config.log' for more details." >&5 | |
10867 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10868 | See \`config.log' for more details." >&2;} | |
10869 | { (exit 1); exit 1; }; } | |
10870 | fi | |
10871 | ||
10872 | rm -f conftest$ac_cv_exeext | |
10873 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10874 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10875 | ||
10876 | rm -f conftest.$ac_ext | |
10877 | EXEEXT=$ac_cv_exeext | |
10878 | ac_exeext=$EXEEXT | |
10879 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10880 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10881 | if test "${ac_cv_objext+set}" = set; then | |
10882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10883 | else | |
10884 | cat >conftest.$ac_ext <<_ACEOF | |
10885 | /* confdefs.h. */ | |
10886 | _ACEOF | |
10887 | cat confdefs.h >>conftest.$ac_ext | |
10888 | cat >>conftest.$ac_ext <<_ACEOF | |
10889 | /* end confdefs.h. */ | |
10890 | ||
10891 | int | |
10892 | main () | |
10893 | { | |
10894 | ||
10895 | ; | |
10896 | return 0; | |
10897 | } | |
10898 | _ACEOF | |
10899 | rm -f conftest.o conftest.obj | |
10900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10901 | (eval $ac_compile) 2>&5 | |
10902 | ac_status=$? | |
10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10904 | (exit $ac_status); }; then | |
10905 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10906 | case $ac_file in | |
10907 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10908 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10909 | break;; | |
10910 | esac | |
10911 | done | |
10912 | else | |
10913 | echo "$as_me: failed program was:" >&5 | |
10914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10915 | ||
10916 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10917 | See \`config.log' for more details." >&5 | |
10918 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10919 | See \`config.log' for more details." >&2;} | |
10920 | { (exit 1); exit 1; }; } | |
10921 | fi | |
10922 | ||
10923 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10924 | fi | |
10925 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10926 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10927 | OBJEXT=$ac_cv_objext | |
10928 | ac_objext=$OBJEXT | |
10929 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10930 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10931 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10933 | else | |
10934 | cat >conftest.$ac_ext <<_ACEOF | |
10935 | /* confdefs.h. */ | |
10936 | _ACEOF | |
10937 | cat confdefs.h >>conftest.$ac_ext | |
10938 | cat >>conftest.$ac_ext <<_ACEOF | |
10939 | /* end confdefs.h. */ | |
10940 | ||
10941 | int | |
10942 | main () | |
10943 | { | |
10944 | #ifndef __GNUC__ | |
10945 | choke me | |
10946 | #endif | |
10947 | ||
10948 | ; | |
10949 | return 0; | |
10950 | } | |
10951 | _ACEOF | |
10952 | rm -f conftest.$ac_objext | |
10953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10954 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10955 | ac_status=$? |
ac1cb8d3 VS |
10956 | grep -v '^ *+' conftest.er1 >conftest.err |
10957 | rm -f conftest.er1 | |
10958 | cat conftest.err >&5 | |
a848cd7e SC |
10959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10960 | (exit $ac_status); } && | |
5294a27e | 10961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10963 | (eval $ac_try) 2>&5 | |
10964 | ac_status=$? | |
10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10966 | (exit $ac_status); }; } && | |
10967 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10969 | (eval $ac_try) 2>&5 | |
10970 | ac_status=$? | |
10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10972 | (exit $ac_status); }; }; then | |
10973 | ac_compiler_gnu=yes | |
10974 | else | |
10975 | echo "$as_me: failed program was:" >&5 | |
10976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10977 | ||
10978 | ac_compiler_gnu=no | |
10979 | fi | |
ac1cb8d3 | 10980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10981 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10982 | ||
10983 | fi | |
10984 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10985 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10986 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10987 | ac_test_CFLAGS=${CFLAGS+set} | |
10988 | ac_save_CFLAGS=$CFLAGS | |
10989 | CFLAGS="-g" | |
10990 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10991 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10992 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10994 | else | |
10995 | cat >conftest.$ac_ext <<_ACEOF | |
10996 | /* confdefs.h. */ | |
10997 | _ACEOF | |
10998 | cat confdefs.h >>conftest.$ac_ext | |
10999 | cat >>conftest.$ac_ext <<_ACEOF | |
11000 | /* end confdefs.h. */ | |
11001 | ||
11002 | int | |
11003 | main () | |
11004 | { | |
11005 | ||
11006 | ; | |
11007 | return 0; | |
11008 | } | |
11009 | _ACEOF | |
11010 | rm -f conftest.$ac_objext | |
11011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11012 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11013 | ac_status=$? |
ac1cb8d3 VS |
11014 | grep -v '^ *+' conftest.er1 >conftest.err |
11015 | rm -f conftest.er1 | |
11016 | cat conftest.err >&5 | |
a848cd7e SC |
11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11018 | (exit $ac_status); } && | |
5294a27e | 11019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11021 | (eval $ac_try) 2>&5 | |
11022 | ac_status=$? | |
11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11024 | (exit $ac_status); }; } && | |
11025 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11027 | (eval $ac_try) 2>&5 | |
11028 | ac_status=$? | |
11029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11030 | (exit $ac_status); }; }; then | |
11031 | ac_cv_prog_cc_g=yes | |
11032 | else | |
11033 | echo "$as_me: failed program was:" >&5 | |
11034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11035 | ||
11036 | ac_cv_prog_cc_g=no | |
11037 | fi | |
ac1cb8d3 | 11038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11039 | fi |
11040 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11041 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11042 | if test "$ac_test_CFLAGS" = set; then | |
11043 | CFLAGS=$ac_save_CFLAGS | |
11044 | elif test $ac_cv_prog_cc_g = yes; then | |
11045 | if test "$GCC" = yes; then | |
11046 | CFLAGS="-g -O2" | |
11047 | else | |
11048 | CFLAGS="-g" | |
11049 | fi | |
11050 | else | |
11051 | if test "$GCC" = yes; then | |
11052 | CFLAGS="-O2" | |
11053 | else | |
11054 | CFLAGS= | |
11055 | fi | |
11056 | fi | |
11057 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11058 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11059 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11061 | else | |
11062 | ac_cv_prog_cc_stdc=no | |
11063 | ac_save_CC=$CC | |
11064 | cat >conftest.$ac_ext <<_ACEOF | |
11065 | /* confdefs.h. */ | |
11066 | _ACEOF | |
11067 | cat confdefs.h >>conftest.$ac_ext | |
11068 | cat >>conftest.$ac_ext <<_ACEOF | |
11069 | /* end confdefs.h. */ | |
11070 | #include <stdarg.h> | |
11071 | #include <stdio.h> | |
11072 | #include <sys/types.h> | |
11073 | #include <sys/stat.h> | |
11074 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11075 | struct buf { int x; }; | |
11076 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11077 | static char *e (p, i) | |
11078 | char **p; | |
11079 | int i; | |
11080 | { | |
11081 | return p[i]; | |
11082 | } | |
11083 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11084 | { | |
11085 | char *s; | |
11086 | va_list v; | |
11087 | va_start (v,p); | |
11088 | s = g (p, va_arg (v,int)); | |
11089 | va_end (v); | |
11090 | return s; | |
11091 | } | |
ac1cb8d3 VS |
11092 | |
11093 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11094 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11095 | These don't provoke an error unfortunately, instead are silently treated | |
11096 | as 'x'. The following induces an error, until -std1 is added to get | |
11097 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11098 | array size at least. It's necessary to write '\x00'==0 to get something | |
11099 | that's true only with -std1. */ | |
11100 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11101 | ||
a848cd7e SC |
11102 | int test (int i, double x); |
11103 | struct s1 {int (*f) (int a);}; | |
11104 | struct s2 {int (*f) (double a);}; | |
11105 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11106 | int argc; | |
11107 | char **argv; | |
11108 | int | |
11109 | main () | |
11110 | { | |
11111 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11112 | ; | |
11113 | return 0; | |
11114 | } | |
11115 | _ACEOF | |
11116 | # Don't try gcc -ansi; that turns off useful extensions and | |
11117 | # breaks some systems' header files. | |
11118 | # AIX -qlanglvl=ansi | |
11119 | # Ultrix and OSF/1 -std1 | |
11120 | # HP-UX 10.20 and later -Ae | |
11121 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11122 | # SVR4 -Xc -D__EXTENSIONS__ | |
11123 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11124 | do | |
11125 | CC="$ac_save_CC $ac_arg" | |
11126 | rm -f conftest.$ac_objext | |
11127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11129 | ac_status=$? |
ac1cb8d3 VS |
11130 | grep -v '^ *+' conftest.er1 >conftest.err |
11131 | rm -f conftest.er1 | |
11132 | cat conftest.err >&5 | |
a848cd7e SC |
11133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11134 | (exit $ac_status); } && | |
5294a27e | 11135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11137 | (eval $ac_try) 2>&5 | |
11138 | ac_status=$? | |
11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11140 | (exit $ac_status); }; } && | |
11141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11143 | (eval $ac_try) 2>&5 | |
11144 | ac_status=$? | |
11145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11146 | (exit $ac_status); }; }; then | |
11147 | ac_cv_prog_cc_stdc=$ac_arg | |
11148 | break | |
11149 | else | |
11150 | echo "$as_me: failed program was:" >&5 | |
11151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11152 | ||
11153 | fi | |
ac1cb8d3 | 11154 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11155 | done |
11156 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11157 | CC=$ac_save_CC | |
11158 | ||
11159 | fi | |
11160 | ||
11161 | case "x$ac_cv_prog_cc_stdc" in | |
11162 | x|xno) | |
11163 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11164 | echo "${ECHO_T}none needed" >&6 ;; | |
11165 | *) | |
11166 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11167 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11168 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11169 | esac | |
11170 | ||
11171 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11172 | # in C++ we need to declare it. In case someone uses the same compiler | |
11173 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11174 | # the declaration of exit, since it's the most demanding environment. | |
11175 | cat >conftest.$ac_ext <<_ACEOF | |
11176 | #ifndef __cplusplus | |
11177 | choke me | |
11178 | #endif | |
11179 | _ACEOF | |
11180 | rm -f conftest.$ac_objext | |
11181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11183 | ac_status=$? |
ac1cb8d3 VS |
11184 | grep -v '^ *+' conftest.er1 >conftest.err |
11185 | rm -f conftest.er1 | |
11186 | cat conftest.err >&5 | |
a848cd7e SC |
11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11188 | (exit $ac_status); } && | |
5294a27e | 11189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11191 | (eval $ac_try) 2>&5 | |
11192 | ac_status=$? | |
11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11194 | (exit $ac_status); }; } && | |
11195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11197 | (eval $ac_try) 2>&5 | |
11198 | ac_status=$? | |
11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11200 | (exit $ac_status); }; }; then | |
11201 | for ac_declaration in \ | |
ac1cb8d3 | 11202 | '' \ |
a848cd7e SC |
11203 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11204 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11205 | 'extern "C" void exit (int) throw ();' \ | |
11206 | 'extern "C" void exit (int);' \ | |
11207 | 'void exit (int);' | |
11208 | do | |
11209 | cat >conftest.$ac_ext <<_ACEOF | |
11210 | /* confdefs.h. */ | |
11211 | _ACEOF | |
11212 | cat confdefs.h >>conftest.$ac_ext | |
11213 | cat >>conftest.$ac_ext <<_ACEOF | |
11214 | /* end confdefs.h. */ | |
de59c161 | 11215 | $ac_declaration |
ac1cb8d3 | 11216 | #include <stdlib.h> |
a848cd7e SC |
11217 | int |
11218 | main () | |
11219 | { | |
11220 | exit (42); | |
11221 | ; | |
11222 | return 0; | |
11223 | } | |
11224 | _ACEOF | |
11225 | rm -f conftest.$ac_objext | |
11226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11227 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11228 | ac_status=$? |
ac1cb8d3 VS |
11229 | grep -v '^ *+' conftest.er1 >conftest.err |
11230 | rm -f conftest.er1 | |
11231 | cat conftest.err >&5 | |
a848cd7e SC |
11232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11233 | (exit $ac_status); } && | |
5294a27e | 11234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11236 | (eval $ac_try) 2>&5 | |
11237 | ac_status=$? | |
11238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11239 | (exit $ac_status); }; } && | |
11240 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11242 | (eval $ac_try) 2>&5 | |
11243 | ac_status=$? | |
11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11245 | (exit $ac_status); }; }; then | |
11246 | : | |
11247 | else | |
11248 | echo "$as_me: failed program was:" >&5 | |
11249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11250 | ||
11251 | continue | |
11252 | fi | |
ac1cb8d3 | 11253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11254 | cat >conftest.$ac_ext <<_ACEOF |
11255 | /* confdefs.h. */ | |
11256 | _ACEOF | |
11257 | cat confdefs.h >>conftest.$ac_ext | |
11258 | cat >>conftest.$ac_ext <<_ACEOF | |
11259 | /* end confdefs.h. */ | |
11260 | $ac_declaration | |
11261 | int | |
11262 | main () | |
11263 | { | |
11264 | exit (42); | |
11265 | ; | |
11266 | return 0; | |
11267 | } | |
11268 | _ACEOF | |
11269 | rm -f conftest.$ac_objext | |
11270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11272 | ac_status=$? |
ac1cb8d3 VS |
11273 | grep -v '^ *+' conftest.er1 >conftest.err |
11274 | rm -f conftest.er1 | |
11275 | cat conftest.err >&5 | |
a848cd7e SC |
11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11277 | (exit $ac_status); } && | |
5294a27e | 11278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11280 | (eval $ac_try) 2>&5 | |
11281 | ac_status=$? | |
11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11283 | (exit $ac_status); }; } && | |
11284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11286 | (eval $ac_try) 2>&5 | |
11287 | ac_status=$? | |
11288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11289 | (exit $ac_status); }; }; then | |
11290 | break | |
11291 | else | |
11292 | echo "$as_me: failed program was:" >&5 | |
11293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11294 | ||
11295 | fi | |
ac1cb8d3 | 11296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11297 | done |
11298 | rm -f conftest* | |
11299 | if test -n "$ac_declaration"; then | |
11300 | echo '#ifdef __cplusplus' >>confdefs.h | |
11301 | echo $ac_declaration >>confdefs.h | |
11302 | echo '#endif' >>confdefs.h | |
11303 | fi | |
11304 | ||
11305 | else | |
11306 | echo "$as_me: failed program was:" >&5 | |
11307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11308 | ||
11309 | fi | |
ac1cb8d3 | 11310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11311 | ac_ext=c |
11312 | ac_cpp='$CPP $CPPFLAGS' | |
11313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11316 | ||
11317 | ||
11318 | ||
11319 | ac_ext=c | |
11320 | ac_cpp='$CPP $CPPFLAGS' | |
11321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11324 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11325 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11326 | # On Suns, sometimes $CPP names a directory. | |
11327 | if test -n "$CPP" && test -d "$CPP"; then | |
11328 | CPP= | |
11329 | fi | |
11330 | if test -z "$CPP"; then | |
11331 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11333 | else | |
11334 | # Double quotes because CPP needs to be expanded | |
11335 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11336 | do | |
11337 | ac_preproc_ok=false | |
11338 | for ac_c_preproc_warn_flag in '' yes | |
11339 | do | |
11340 | # Use a header file that comes with gcc, so configuring glibc | |
11341 | # with a fresh cross-compiler works. | |
11342 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11343 | # <limits.h> exists even on freestanding compilers. | |
11344 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11345 | # not just through cpp. "Syntax error" is here to catch this case. | |
11346 | cat >conftest.$ac_ext <<_ACEOF | |
11347 | /* confdefs.h. */ | |
11348 | _ACEOF | |
11349 | cat confdefs.h >>conftest.$ac_ext | |
11350 | cat >>conftest.$ac_ext <<_ACEOF | |
11351 | /* end confdefs.h. */ | |
11352 | #ifdef __STDC__ | |
11353 | # include <limits.h> | |
11354 | #else | |
11355 | # include <assert.h> | |
11356 | #endif | |
ac1cb8d3 | 11357 | Syntax error |
a848cd7e SC |
11358 | _ACEOF |
11359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11361 | ac_status=$? | |
11362 | grep -v '^ *+' conftest.er1 >conftest.err | |
11363 | rm -f conftest.er1 | |
11364 | cat conftest.err >&5 | |
11365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11366 | (exit $ac_status); } >/dev/null; then | |
11367 | if test -s conftest.err; then | |
11368 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11370 | else |
11371 | ac_cpp_err= | |
11372 | fi | |
11373 | else | |
11374 | ac_cpp_err=yes | |
11375 | fi | |
11376 | if test -z "$ac_cpp_err"; then | |
11377 | : | |
11378 | else | |
11379 | echo "$as_me: failed program was:" >&5 | |
11380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11381 | ||
11382 | # Broken: fails on valid input. | |
11383 | continue | |
11384 | fi | |
11385 | rm -f conftest.err conftest.$ac_ext | |
11386 | ||
11387 | # OK, works on sane cases. Now check whether non-existent headers | |
11388 | # can be detected and how. | |
11389 | cat >conftest.$ac_ext <<_ACEOF | |
11390 | /* confdefs.h. */ | |
11391 | _ACEOF | |
11392 | cat confdefs.h >>conftest.$ac_ext | |
11393 | cat >>conftest.$ac_ext <<_ACEOF | |
11394 | /* end confdefs.h. */ | |
11395 | #include <ac_nonexistent.h> | |
11396 | _ACEOF | |
11397 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11398 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11399 | ac_status=$? | |
11400 | grep -v '^ *+' conftest.er1 >conftest.err | |
11401 | rm -f conftest.er1 | |
11402 | cat conftest.err >&5 | |
11403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11404 | (exit $ac_status); } >/dev/null; then | |
11405 | if test -s conftest.err; then | |
11406 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11407 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11408 | else |
11409 | ac_cpp_err= | |
11410 | fi | |
11411 | else | |
11412 | ac_cpp_err=yes | |
11413 | fi | |
11414 | if test -z "$ac_cpp_err"; then | |
11415 | # Broken: success on invalid input. | |
11416 | continue | |
11417 | else | |
11418 | echo "$as_me: failed program was:" >&5 | |
11419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11420 | ||
11421 | # Passes both tests. | |
11422 | ac_preproc_ok=: | |
11423 | break | |
11424 | fi | |
11425 | rm -f conftest.err conftest.$ac_ext | |
11426 | ||
11427 | done | |
11428 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11429 | rm -f conftest.err conftest.$ac_ext | |
11430 | if $ac_preproc_ok; then | |
11431 | break | |
11432 | fi | |
11433 | ||
11434 | done | |
11435 | ac_cv_prog_CPP=$CPP | |
11436 | ||
11437 | fi | |
11438 | CPP=$ac_cv_prog_CPP | |
11439 | else | |
11440 | ac_cv_prog_CPP=$CPP | |
11441 | fi | |
11442 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11443 | echo "${ECHO_T}$CPP" >&6 | |
11444 | ac_preproc_ok=false | |
11445 | for ac_c_preproc_warn_flag in '' yes | |
11446 | do | |
11447 | # Use a header file that comes with gcc, so configuring glibc | |
11448 | # with a fresh cross-compiler works. | |
11449 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11450 | # <limits.h> exists even on freestanding compilers. | |
11451 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11452 | # not just through cpp. "Syntax error" is here to catch this case. | |
11453 | cat >conftest.$ac_ext <<_ACEOF | |
11454 | /* confdefs.h. */ | |
11455 | _ACEOF | |
11456 | cat confdefs.h >>conftest.$ac_ext | |
11457 | cat >>conftest.$ac_ext <<_ACEOF | |
11458 | /* end confdefs.h. */ | |
11459 | #ifdef __STDC__ | |
11460 | # include <limits.h> | |
11461 | #else | |
11462 | # include <assert.h> | |
11463 | #endif | |
ac1cb8d3 | 11464 | Syntax error |
a848cd7e SC |
11465 | _ACEOF |
11466 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11467 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11468 | ac_status=$? | |
11469 | grep -v '^ *+' conftest.er1 >conftest.err | |
11470 | rm -f conftest.er1 | |
11471 | cat conftest.err >&5 | |
11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11473 | (exit $ac_status); } >/dev/null; then | |
11474 | if test -s conftest.err; then | |
11475 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11476 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11477 | else |
11478 | ac_cpp_err= | |
11479 | fi | |
11480 | else | |
11481 | ac_cpp_err=yes | |
11482 | fi | |
11483 | if test -z "$ac_cpp_err"; then | |
11484 | : | |
11485 | else | |
11486 | echo "$as_me: failed program was:" >&5 | |
11487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11488 | ||
11489 | # Broken: fails on valid input. | |
11490 | continue | |
11491 | fi | |
11492 | rm -f conftest.err conftest.$ac_ext | |
11493 | ||
11494 | # OK, works on sane cases. Now check whether non-existent headers | |
11495 | # can be detected and how. | |
11496 | cat >conftest.$ac_ext <<_ACEOF | |
11497 | /* confdefs.h. */ | |
11498 | _ACEOF | |
11499 | cat confdefs.h >>conftest.$ac_ext | |
11500 | cat >>conftest.$ac_ext <<_ACEOF | |
11501 | /* end confdefs.h. */ | |
11502 | #include <ac_nonexistent.h> | |
11503 | _ACEOF | |
11504 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11505 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11506 | ac_status=$? | |
11507 | grep -v '^ *+' conftest.er1 >conftest.err | |
11508 | rm -f conftest.er1 | |
11509 | cat conftest.err >&5 | |
11510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11511 | (exit $ac_status); } >/dev/null; then | |
11512 | if test -s conftest.err; then | |
11513 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11514 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11515 | else |
11516 | ac_cpp_err= | |
11517 | fi | |
11518 | else | |
11519 | ac_cpp_err=yes | |
11520 | fi | |
11521 | if test -z "$ac_cpp_err"; then | |
11522 | # Broken: success on invalid input. | |
11523 | continue | |
11524 | else | |
11525 | echo "$as_me: failed program was:" >&5 | |
11526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11527 | ||
11528 | # Passes both tests. | |
11529 | ac_preproc_ok=: | |
11530 | break | |
11531 | fi | |
11532 | rm -f conftest.err conftest.$ac_ext | |
11533 | ||
11534 | done | |
11535 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11536 | rm -f conftest.err conftest.$ac_ext | |
11537 | if $ac_preproc_ok; then | |
11538 | : | |
11539 | else | |
11540 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11541 | See \`config.log' for more details." >&5 | |
11542 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11543 | See \`config.log' for more details." >&2;} | |
11544 | { (exit 1); exit 1; }; } | |
11545 | fi | |
11546 | ||
11547 | ac_ext=c | |
11548 | ac_cpp='$CPP $CPPFLAGS' | |
11549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11552 | ||
11553 | ||
11554 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11555 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11556 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11558 | else | |
11559 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11560 | then ac_cv_prog_egrep='grep -E' | |
11561 | else ac_cv_prog_egrep='egrep' | |
11562 | fi | |
11563 | fi | |
11564 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11565 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11566 | EGREP=$ac_cv_prog_egrep | |
11567 | ||
11568 | ||
11569 | if test $ac_cv_c_compiler_gnu = yes; then | |
11570 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11571 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11572 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11574 | else | |
11575 | ac_pattern="Autoconf.*'x'" | |
11576 | cat >conftest.$ac_ext <<_ACEOF | |
11577 | /* confdefs.h. */ | |
11578 | _ACEOF | |
11579 | cat confdefs.h >>conftest.$ac_ext | |
11580 | cat >>conftest.$ac_ext <<_ACEOF | |
11581 | /* end confdefs.h. */ | |
11582 | #include <sgtty.h> | |
11583 | Autoconf TIOCGETP | |
11584 | _ACEOF | |
11585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11586 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11587 | ac_cv_prog_gcc_traditional=yes | |
11588 | else | |
11589 | ac_cv_prog_gcc_traditional=no | |
11590 | fi | |
11591 | rm -f conftest* | |
11592 | ||
11593 | ||
11594 | if test $ac_cv_prog_gcc_traditional = no; then | |
11595 | cat >conftest.$ac_ext <<_ACEOF | |
11596 | /* confdefs.h. */ | |
11597 | _ACEOF | |
11598 | cat confdefs.h >>conftest.$ac_ext | |
11599 | cat >>conftest.$ac_ext <<_ACEOF | |
11600 | /* end confdefs.h. */ | |
11601 | #include <termio.h> | |
11602 | Autoconf TCGETA | |
11603 | _ACEOF | |
11604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11605 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11606 | ac_cv_prog_gcc_traditional=yes | |
11607 | fi | |
11608 | rm -f conftest* | |
11609 | ||
11610 | fi | |
11611 | fi | |
11612 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11613 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11614 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11615 | CC="$CC -traditional" | |
11616 | fi | |
11617 | fi | |
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ac_ext=cc | |
11623 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11624 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11625 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11626 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11627 | ||
11628 | ||
11629 | CXXFLAGS=${CXXFLAGS:=} | |
11630 | ac_ext=cc | |
11631 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11632 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11633 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11634 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11635 | if test -n "$ac_tool_prefix"; then | |
11636 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11637 | do | |
11638 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11639 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11640 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11642 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11644 | else | |
11645 | if test -n "$CXX"; then | |
11646 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11647 | else | |
11648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11649 | for as_dir in $PATH | |
11650 | do | |
11651 | IFS=$as_save_IFS | |
11652 | test -z "$as_dir" && as_dir=. | |
11653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11654 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11655 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11657 | break 2 | |
11658 | fi | |
11659 | done | |
11660 | done | |
11661 | ||
11662 | fi | |
11663 | fi | |
11664 | CXX=$ac_cv_prog_CXX | |
11665 | if test -n "$CXX"; then | |
11666 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11667 | echo "${ECHO_T}$CXX" >&6 | |
11668 | else | |
11669 | echo "$as_me:$LINENO: result: no" >&5 | |
11670 | echo "${ECHO_T}no" >&6 | |
11671 | fi | |
11672 | ||
11673 | test -n "$CXX" && break | |
11674 | done | |
11675 | fi | |
11676 | if test -z "$CXX"; then | |
11677 | ac_ct_CXX=$CXX | |
11678 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11679 | do | |
11680 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11681 | set dummy $ac_prog; ac_word=$2 | |
11682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11684 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11686 | else | |
11687 | if test -n "$ac_ct_CXX"; then | |
11688 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11689 | else | |
11690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11691 | for as_dir in $PATH | |
11692 | do | |
11693 | IFS=$as_save_IFS | |
11694 | test -z "$as_dir" && as_dir=. | |
11695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11697 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11699 | break 2 | |
11700 | fi | |
11701 | done | |
11702 | done | |
11703 | ||
11704 | fi | |
11705 | fi | |
11706 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11707 | if test -n "$ac_ct_CXX"; then | |
11708 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11709 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11710 | else | |
11711 | echo "$as_me:$LINENO: result: no" >&5 | |
11712 | echo "${ECHO_T}no" >&6 | |
11713 | fi | |
11714 | ||
11715 | test -n "$ac_ct_CXX" && break | |
11716 | done | |
11717 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11718 | ||
11719 | CXX=$ac_ct_CXX | |
11720 | fi | |
11721 | ||
11722 | ||
11723 | # Provide some information about the compiler. | |
11724 | echo "$as_me:$LINENO:" \ | |
11725 | "checking for C++ compiler version" >&5 | |
11726 | ac_compiler=`set X $ac_compile; echo $2` | |
11727 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11728 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11729 | ac_status=$? | |
11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11731 | (exit $ac_status); } | |
11732 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11733 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11734 | ac_status=$? | |
11735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11736 | (exit $ac_status); } | |
11737 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11738 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11739 | ac_status=$? | |
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11741 | (exit $ac_status); } | |
11742 | ||
11743 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11744 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11745 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11747 | else | |
11748 | cat >conftest.$ac_ext <<_ACEOF | |
11749 | /* confdefs.h. */ | |
11750 | _ACEOF | |
11751 | cat confdefs.h >>conftest.$ac_ext | |
11752 | cat >>conftest.$ac_ext <<_ACEOF | |
11753 | /* end confdefs.h. */ | |
11754 | ||
11755 | int | |
11756 | main () | |
11757 | { | |
11758 | #ifndef __GNUC__ | |
11759 | choke me | |
11760 | #endif | |
11761 | ||
11762 | ; | |
11763 | return 0; | |
11764 | } | |
11765 | _ACEOF | |
11766 | rm -f conftest.$ac_objext | |
11767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11768 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11769 | ac_status=$? |
ac1cb8d3 VS |
11770 | grep -v '^ *+' conftest.er1 >conftest.err |
11771 | rm -f conftest.er1 | |
11772 | cat conftest.err >&5 | |
a848cd7e SC |
11773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11774 | (exit $ac_status); } && | |
5294a27e | 11775 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11777 | (eval $ac_try) 2>&5 | |
11778 | ac_status=$? | |
11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11780 | (exit $ac_status); }; } && | |
11781 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11783 | (eval $ac_try) 2>&5 | |
11784 | ac_status=$? | |
11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11786 | (exit $ac_status); }; }; then | |
11787 | ac_compiler_gnu=yes | |
11788 | else | |
11789 | echo "$as_me: failed program was:" >&5 | |
11790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11791 | ||
11792 | ac_compiler_gnu=no | |
11793 | fi | |
ac1cb8d3 | 11794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11795 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11796 | ||
11797 | fi | |
11798 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11799 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11800 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11801 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11802 | ac_save_CXXFLAGS=$CXXFLAGS | |
11803 | CXXFLAGS="-g" | |
11804 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11805 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11806 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11808 | else | |
11809 | cat >conftest.$ac_ext <<_ACEOF | |
11810 | /* confdefs.h. */ | |
11811 | _ACEOF | |
11812 | cat confdefs.h >>conftest.$ac_ext | |
11813 | cat >>conftest.$ac_ext <<_ACEOF | |
11814 | /* end confdefs.h. */ | |
11815 | ||
11816 | int | |
11817 | main () | |
11818 | { | |
11819 | ||
11820 | ; | |
11821 | return 0; | |
11822 | } | |
11823 | _ACEOF | |
11824 | rm -f conftest.$ac_objext | |
11825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11826 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11827 | ac_status=$? |
ac1cb8d3 VS |
11828 | grep -v '^ *+' conftest.er1 >conftest.err |
11829 | rm -f conftest.er1 | |
11830 | cat conftest.err >&5 | |
a848cd7e SC |
11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11832 | (exit $ac_status); } && | |
5294a27e | 11833 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11835 | (eval $ac_try) 2>&5 | |
11836 | ac_status=$? | |
11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11838 | (exit $ac_status); }; } && | |
11839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11841 | (eval $ac_try) 2>&5 | |
11842 | ac_status=$? | |
11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11844 | (exit $ac_status); }; }; then | |
11845 | ac_cv_prog_cxx_g=yes | |
11846 | else | |
11847 | echo "$as_me: failed program was:" >&5 | |
11848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11849 | ||
11850 | ac_cv_prog_cxx_g=no | |
11851 | fi | |
ac1cb8d3 | 11852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11853 | fi |
11854 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11855 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11856 | if test "$ac_test_CXXFLAGS" = set; then | |
11857 | CXXFLAGS=$ac_save_CXXFLAGS | |
11858 | elif test $ac_cv_prog_cxx_g = yes; then | |
11859 | if test "$GXX" = yes; then | |
11860 | CXXFLAGS="-g -O2" | |
11861 | else | |
11862 | CXXFLAGS="-g" | |
11863 | fi | |
11864 | else | |
11865 | if test "$GXX" = yes; then | |
11866 | CXXFLAGS="-O2" | |
11867 | else | |
11868 | CXXFLAGS= | |
11869 | fi | |
11870 | fi | |
11871 | for ac_declaration in \ | |
ac1cb8d3 | 11872 | '' \ |
a848cd7e SC |
11873 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11874 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11875 | 'extern "C" void exit (int) throw ();' \ | |
11876 | 'extern "C" void exit (int);' \ | |
11877 | 'void exit (int);' | |
11878 | do | |
11879 | cat >conftest.$ac_ext <<_ACEOF | |
11880 | /* confdefs.h. */ | |
11881 | _ACEOF | |
11882 | cat confdefs.h >>conftest.$ac_ext | |
11883 | cat >>conftest.$ac_ext <<_ACEOF | |
11884 | /* end confdefs.h. */ | |
de59c161 | 11885 | $ac_declaration |
ac1cb8d3 | 11886 | #include <stdlib.h> |
a848cd7e SC |
11887 | int |
11888 | main () | |
11889 | { | |
11890 | exit (42); | |
11891 | ; | |
11892 | return 0; | |
11893 | } | |
11894 | _ACEOF | |
11895 | rm -f conftest.$ac_objext | |
11896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11898 | ac_status=$? |
ac1cb8d3 VS |
11899 | grep -v '^ *+' conftest.er1 >conftest.err |
11900 | rm -f conftest.er1 | |
11901 | cat conftest.err >&5 | |
a848cd7e SC |
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11903 | (exit $ac_status); } && | |
5294a27e | 11904 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11906 | (eval $ac_try) 2>&5 | |
11907 | ac_status=$? | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11909 | (exit $ac_status); }; } && | |
11910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11912 | (eval $ac_try) 2>&5 | |
11913 | ac_status=$? | |
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11915 | (exit $ac_status); }; }; then | |
11916 | : | |
11917 | else | |
11918 | echo "$as_me: failed program was:" >&5 | |
11919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11920 | ||
11921 | continue | |
11922 | fi | |
ac1cb8d3 | 11923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11924 | cat >conftest.$ac_ext <<_ACEOF |
11925 | /* confdefs.h. */ | |
11926 | _ACEOF | |
11927 | cat confdefs.h >>conftest.$ac_ext | |
11928 | cat >>conftest.$ac_ext <<_ACEOF | |
11929 | /* end confdefs.h. */ | |
11930 | $ac_declaration | |
11931 | int | |
11932 | main () | |
11933 | { | |
11934 | exit (42); | |
11935 | ; | |
11936 | return 0; | |
11937 | } | |
11938 | _ACEOF | |
11939 | rm -f conftest.$ac_objext | |
11940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11941 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11942 | ac_status=$? |
ac1cb8d3 VS |
11943 | grep -v '^ *+' conftest.er1 >conftest.err |
11944 | rm -f conftest.er1 | |
11945 | cat conftest.err >&5 | |
a848cd7e SC |
11946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11947 | (exit $ac_status); } && | |
5294a27e | 11948 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11950 | (eval $ac_try) 2>&5 | |
11951 | ac_status=$? | |
11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11953 | (exit $ac_status); }; } && | |
11954 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11956 | (eval $ac_try) 2>&5 | |
11957 | ac_status=$? | |
11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11959 | (exit $ac_status); }; }; then | |
11960 | break | |
11961 | else | |
11962 | echo "$as_me: failed program was:" >&5 | |
11963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11964 | ||
11965 | fi | |
ac1cb8d3 | 11966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11967 | done |
11968 | rm -f conftest* | |
11969 | if test -n "$ac_declaration"; then | |
11970 | echo '#ifdef __cplusplus' >>confdefs.h | |
11971 | echo $ac_declaration >>confdefs.h | |
11972 | echo '#endif' >>confdefs.h | |
11973 | fi | |
11974 | ||
11975 | ac_ext=cc | |
11976 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11977 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11978 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11979 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11980 | ||
11981 | ||
11982 | ac_ext=c | |
11983 | ac_cpp='$CPP $CPPFLAGS' | |
11984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11987 | ||
11988 | ||
a848cd7e SC |
11989 | if test -n "$ac_tool_prefix"; then |
11990 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11991 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11994 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11996 | else | |
11997 | if test -n "$RANLIB"; then | |
11998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11999 | else | |
12000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12001 | for as_dir in $PATH | |
12002 | do | |
12003 | IFS=$as_save_IFS | |
12004 | test -z "$as_dir" && as_dir=. | |
12005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12007 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12009 | break 2 | |
12010 | fi | |
12011 | done | |
12012 | done | |
12013 | ||
12014 | fi | |
12015 | fi | |
12016 | RANLIB=$ac_cv_prog_RANLIB | |
12017 | if test -n "$RANLIB"; then | |
12018 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12019 | echo "${ECHO_T}$RANLIB" >&6 | |
12020 | else | |
12021 | echo "$as_me:$LINENO: result: no" >&5 | |
12022 | echo "${ECHO_T}no" >&6 | |
12023 | fi | |
12024 | ||
12025 | fi | |
12026 | if test -z "$ac_cv_prog_RANLIB"; then | |
12027 | ac_ct_RANLIB=$RANLIB | |
12028 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12029 | set dummy ranlib; ac_word=$2 | |
12030 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12032 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12034 | else | |
12035 | if test -n "$ac_ct_RANLIB"; then | |
12036 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12037 | else | |
12038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12039 | for as_dir in $PATH | |
12040 | do | |
12041 | IFS=$as_save_IFS | |
12042 | test -z "$as_dir" && as_dir=. | |
12043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12045 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12047 | break 2 | |
12048 | fi | |
12049 | done | |
12050 | done | |
12051 | ||
12052 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12053 | fi | |
12054 | fi | |
12055 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12056 | if test -n "$ac_ct_RANLIB"; then | |
12057 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12058 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12059 | else | |
12060 | echo "$as_me:$LINENO: result: no" >&5 | |
12061 | echo "${ECHO_T}no" >&6 | |
12062 | fi | |
12063 | ||
12064 | RANLIB=$ac_ct_RANLIB | |
12065 | else | |
12066 | RANLIB="$ac_cv_prog_RANLIB" | |
12067 | fi | |
12068 | ||
12069 | ||
12070 | # Extract the first word of "ar", so it can be a program name with args. | |
12071 | set dummy ar; ac_word=$2 | |
12072 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12074 | if test "${ac_cv_prog_AR+set}" = set; then | |
12075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12076 | else | |
12077 | if test -n "$AR"; then | |
12078 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12079 | else | |
12080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12081 | for as_dir in $PATH | |
12082 | do | |
12083 | IFS=$as_save_IFS | |
12084 | test -z "$as_dir" && as_dir=. | |
12085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12086 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12087 | ac_cv_prog_AR="ar" | |
12088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12089 | break 2 | |
12090 | fi | |
12091 | done | |
12092 | done | |
12093 | ||
12094 | fi | |
12095 | fi | |
12096 | AR=$ac_cv_prog_AR | |
12097 | if test -n "$AR"; then | |
12098 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12099 | echo "${ECHO_T}$AR" >&6 | |
12100 | else | |
12101 | echo "$as_me:$LINENO: result: no" >&5 | |
12102 | echo "${ECHO_T}no" >&6 | |
12103 | fi | |
12104 | ||
12105 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12106 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12107 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12108 | { (exit 1); exit 1; }; } |
12109 | fi | |
12110 | ||
12111 | # Find a good install program. We prefer a C program (faster), | |
12112 | # so one script is as good as another. But avoid the broken or | |
12113 | # incompatible versions: | |
12114 | # SysV /etc/install, /usr/sbin/install | |
12115 | # SunOS /usr/etc/install | |
12116 | # IRIX /sbin/install | |
12117 | # AIX /bin/install | |
12118 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12119 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12120 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12121 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12122 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12123 | # ./install, which can be erroneously created by make from ./install.sh. |
12124 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12125 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12126 | if test -z "$INSTALL"; then | |
12127 | if test "${ac_cv_path_install+set}" = set; then | |
12128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12129 | else | |
12130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12131 | for as_dir in $PATH | |
12132 | do | |
12133 | IFS=$as_save_IFS | |
12134 | test -z "$as_dir" && as_dir=. | |
12135 | # Account for people who put trailing slashes in PATH elements. | |
12136 | case $as_dir/ in | |
12137 | ./ | .// | /cC/* | \ | |
12138 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12139 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12140 | /usr/ucb/* ) ;; |
12141 | *) | |
12142 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12143 | # Don't use installbsd from OSF since it installs stuff as root | |
12144 | # by default. | |
12145 | for ac_prog in ginstall scoinst install; do | |
12146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12147 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12148 | if test $ac_prog = install && | |
12149 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12150 | # AIX install. It has an incompatible calling convention. | |
12151 | : | |
12152 | elif test $ac_prog = install && | |
12153 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12154 | # program-specific install script used by HP pwplus--don't use. | |
12155 | : | |
12156 | else | |
12157 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12158 | break 3 | |
12159 | fi | |
12160 | fi | |
a848cd7e SC |
12161 | done |
12162 | done | |
12163 | ;; | |
12164 | esac | |
12165 | done | |
12166 | ||
12167 | ||
12168 | fi | |
12169 | if test "${ac_cv_path_install+set}" = set; then | |
12170 | INSTALL=$ac_cv_path_install | |
12171 | else | |
12172 | # As a last resort, use the slow shell script. We don't cache a | |
12173 | # path for INSTALL within a source directory, because that will | |
12174 | # break other packages using the cache if that directory is | |
12175 | # removed, or if the path is relative. | |
12176 | INSTALL=$ac_install_sh | |
12177 | fi | |
12178 | fi | |
12179 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12180 | echo "${ECHO_T}$INSTALL" >&6 | |
12181 | ||
12182 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12183 | # It thinks the first close brace ends the variable substitution. | |
12184 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12185 | ||
12186 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12187 | ||
12188 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12189 | ||
12190 | ||
12191 | case ${INSTALL} in | |
12192 | /* ) # Absolute | |
12193 | ;; | |
12194 | ?:* ) # Drive letter, considered as absolute. | |
12195 | ;; | |
12196 | *) | |
12197 | INSTALL=`pwd`/${INSTALL} ;; | |
12198 | esac | |
12199 | ||
a848cd7e SC |
12200 | |
12201 | case "${host}" in | |
12202 | ||
12203 | powerpc-*-darwin* ) | |
12204 | INSTALL_PROGRAM="cp -fp" | |
12205 | INSTALL_DATA="cp -fp" | |
12206 | ;; | |
12207 | *) | |
12208 | ;; | |
12209 | esac | |
12210 | ||
12211 | # Extract the first word of "strip", so it can be a program name with args. | |
12212 | set dummy strip; ac_word=$2 | |
12213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12215 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12217 | else | |
12218 | if test -n "$STRIP"; then | |
12219 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12220 | else | |
12221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12222 | for as_dir in $PATH | |
12223 | do | |
12224 | IFS=$as_save_IFS | |
12225 | test -z "$as_dir" && as_dir=. | |
12226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12228 | ac_cv_prog_STRIP="strip" | |
12229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12230 | break 2 | |
12231 | fi | |
12232 | done | |
12233 | done | |
12234 | ||
12235 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12236 | fi | |
12237 | fi | |
12238 | STRIP=$ac_cv_prog_STRIP | |
12239 | if test -n "$STRIP"; then | |
12240 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12241 | echo "${ECHO_T}$STRIP" >&6 | |
12242 | else | |
12243 | echo "$as_me:$LINENO: result: no" >&5 | |
12244 | echo "${ECHO_T}no" >&6 | |
12245 | fi | |
12246 | ||
12247 | ||
12248 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12249 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12250 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12252 | else | |
12253 | ||
12254 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12255 | egrep -s GNU > /dev/null); then | |
12256 | wx_cv_prog_makeisgnu="yes" | |
12257 | else | |
12258 | wx_cv_prog_makeisgnu="no" | |
12259 | fi | |
12260 | ||
12261 | fi | |
12262 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12263 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12264 | ||
12265 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12266 | IF_GNU_MAKE="" | |
12267 | else | |
12268 | IF_GNU_MAKE="#" | |
12269 | fi | |
12270 | ||
12271 | ||
12272 | ||
12273 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12274 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12275 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12276 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12278 | else | |
12279 | ||
12280 | cat - << EOF > confMake | |
12281 | check : file | |
12282 | cp \$? \$@ | |
12283 | cp \$? final_file | |
12284 | EOF | |
12285 | ||
12286 | if test ! -d sub ; then | |
12287 | mkdir sub | |
12288 | fi | |
12289 | echo dummy > sub/file | |
12290 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12291 | RESULT=$? | |
12292 | rm -f sub/file check final_file confMake | |
12293 | rmdir sub | |
12294 | if test "$RESULT" = 0; then | |
12295 | wx_cv_prog_makevpath="yes" | |
12296 | else | |
12297 | wx_cv_prog_makevpath="no" | |
12298 | fi | |
12299 | ||
12300 | fi | |
12301 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12302 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12303 | ||
12304 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12305 | { { echo "$as_me:$LINENO: error: | |
12306 | You need a make-utility that is able to use the variable | |
12307 | VPATH correctly. | |
12308 | If your version of make does not support VPATH correctly, | |
12309 | please install GNU-make (possibly as gmake), and start | |
12310 | configure with the following command: | |
12311 | export MAKE=gmake; ./configure for sh-type shells | |
12312 | setenv MAKE gmake; ./configure for csh-type shells | |
12313 | Also please do remember to use gmake in this case every time | |
12314 | you are trying to compile. | |
12315 | " >&5 | |
12316 | echo "$as_me: error: | |
12317 | You need a make-utility that is able to use the variable | |
12318 | VPATH correctly. | |
12319 | If your version of make does not support VPATH correctly, | |
12320 | please install GNU-make (possibly as gmake), and start | |
12321 | configure with the following command: | |
12322 | export MAKE=gmake; ./configure for sh-type shells | |
12323 | setenv MAKE gmake; ./configure for csh-type shells | |
12324 | Also please do remember to use gmake in this case every time | |
12325 | you are trying to compile. | |
12326 | " >&2;} | |
12327 | { (exit 1); exit 1; }; } | |
12328 | fi fi | |
12329 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12330 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12331 | LN_S=$as_ln_s | |
12332 | if test "$LN_S" = "ln -s"; then | |
12333 | echo "$as_me:$LINENO: result: yes" >&5 | |
12334 | echo "${ECHO_T}yes" >&6 | |
12335 | else | |
12336 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12337 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12338 | fi | |
12339 | ||
12340 | ||
12341 | ||
12342 | case "${host}" in | |
12343 | *-pc-os2_emx | *-pc-os2-emx ) | |
12344 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12345 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12346 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12347 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12349 | else | |
12350 | ac_check_lib_save_LIBS=$LIBS | |
12351 | LIBS="-lcExt $LIBS" | |
12352 | cat >conftest.$ac_ext <<_ACEOF | |
12353 | /* confdefs.h. */ | |
12354 | _ACEOF | |
12355 | cat confdefs.h >>conftest.$ac_ext | |
12356 | cat >>conftest.$ac_ext <<_ACEOF | |
12357 | /* end confdefs.h. */ | |
12358 | ||
12359 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12360 | #ifdef __cplusplus | |
12361 | extern "C" | |
12362 | #endif | |
12363 | /* We use char because int might match the return type of a gcc2 | |
12364 | builtin and then its argument prototype would still apply. */ | |
12365 | char drand48 (); | |
12366 | int | |
12367 | main () | |
12368 | { | |
12369 | drand48 (); | |
12370 | ; | |
12371 | return 0; | |
12372 | } | |
12373 | _ACEOF | |
12374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12376 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12377 | ac_status=$? |
ac1cb8d3 VS |
12378 | grep -v '^ *+' conftest.er1 >conftest.err |
12379 | rm -f conftest.er1 | |
12380 | cat conftest.err >&5 | |
a848cd7e SC |
12381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12382 | (exit $ac_status); } && | |
5294a27e | 12383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12385 | (eval $ac_try) 2>&5 | |
12386 | ac_status=$? | |
12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12388 | (exit $ac_status); }; } && | |
12389 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12391 | (eval $ac_try) 2>&5 | |
12392 | ac_status=$? | |
12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12394 | (exit $ac_status); }; }; then | |
12395 | ac_cv_lib_cExt_drand48=yes | |
12396 | else | |
12397 | echo "$as_me: failed program was:" >&5 | |
12398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12399 | ||
12400 | ac_cv_lib_cExt_drand48=no | |
12401 | fi | |
ac1cb8d3 VS |
12402 | rm -f conftest.err conftest.$ac_objext \ |
12403 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12404 | LIBS=$ac_check_lib_save_LIBS |
12405 | fi | |
12406 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12407 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12408 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12409 | LIBS="$LIBS -lcExt" | |
12410 | fi | |
12411 | ||
12412 | else | |
12413 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12414 | fi | |
12415 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12416 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12417 | if test "${wx_cv_gccversion+set}" = set; then | |
12418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12419 | else | |
12420 | ||
12421 | cat >conftest.$ac_ext <<_ACEOF | |
12422 | /* confdefs.h. */ | |
12423 | _ACEOF | |
12424 | cat confdefs.h >>conftest.$ac_ext | |
12425 | cat >>conftest.$ac_ext <<_ACEOF | |
12426 | /* end confdefs.h. */ | |
12427 | ||
12428 | int | |
12429 | main () | |
12430 | { | |
12431 | ||
12432 | #if (__GNUC__ < 3) | |
12433 | #error old gcc | |
12434 | #endif | |
12435 | ||
12436 | ; | |
12437 | return 0; | |
12438 | } | |
12439 | _ACEOF | |
12440 | rm -f conftest.$ac_objext | |
12441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12442 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12443 | ac_status=$? |
ac1cb8d3 VS |
12444 | grep -v '^ *+' conftest.er1 >conftest.err |
12445 | rm -f conftest.er1 | |
12446 | cat conftest.err >&5 | |
a848cd7e SC |
12447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12448 | (exit $ac_status); } && | |
5294a27e | 12449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12451 | (eval $ac_try) 2>&5 | |
12452 | ac_status=$? | |
12453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12454 | (exit $ac_status); }; } && | |
12455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12457 | (eval $ac_try) 2>&5 | |
12458 | ac_status=$? | |
12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12460 | (exit $ac_status); }; }; then | |
12461 | ||
12462 | cat >conftest.$ac_ext <<_ACEOF | |
12463 | /* confdefs.h. */ | |
12464 | _ACEOF | |
12465 | cat confdefs.h >>conftest.$ac_ext | |
12466 | cat >>conftest.$ac_ext <<_ACEOF | |
12467 | /* end confdefs.h. */ | |
12468 | ||
12469 | int | |
12470 | main () | |
12471 | { | |
12472 | ||
12473 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12474 | #error intermediate gcc | |
12475 | #endif | |
12476 | ||
12477 | ; | |
12478 | return 0; | |
12479 | } | |
12480 | _ACEOF | |
12481 | rm -f conftest.$ac_objext | |
12482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12484 | ac_status=$? |
ac1cb8d3 VS |
12485 | grep -v '^ *+' conftest.er1 >conftest.err |
12486 | rm -f conftest.er1 | |
12487 | cat conftest.err >&5 | |
a848cd7e SC |
12488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12489 | (exit $ac_status); } && | |
5294a27e | 12490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12492 | (eval $ac_try) 2>&5 | |
12493 | ac_status=$? | |
12494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12495 | (exit $ac_status); }; } && | |
12496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12498 | (eval $ac_try) 2>&5 | |
12499 | ac_status=$? | |
12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12501 | (exit $ac_status); }; }; then | |
12502 | ||
12503 | wx_cv_gccversion=Innotek | |
12504 | ||
12505 | else | |
12506 | echo "$as_me: failed program was:" >&5 | |
12507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12508 | ||
12509 | ||
12510 | wx_cv_gccversion=3 | |
12511 | ||
12512 | ||
12513 | fi | |
ac1cb8d3 | 12514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12515 | |
12516 | else | |
12517 | echo "$as_me: failed program was:" >&5 | |
12518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12519 | ||
12520 | ||
12521 | wx_cv_gccversion=2 | |
12522 | ||
12523 | ||
12524 | fi | |
ac1cb8d3 | 12525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12526 | |
12527 | fi | |
12528 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12529 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12530 | if test "$wx_cv_gccversion" = "2"; then | |
12531 | LIBS="$LIBS -lstdcpp" | |
12532 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12533 | else | |
12534 | if test "$wx_cv_gccversion" = "3"; then | |
12535 | LIBS="$LIBS -lstdcxx" | |
12536 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12537 | else | |
12538 | LIBS="$LIBS -lstdc++" | |
12539 | fi | |
12540 | fi | |
12541 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12542 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12543 | fi |
12544 | ;; | |
12545 | *) | |
12546 | ||
12547 | ||
12548 | ||
12549 | ac_ext=cc | |
12550 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12551 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12552 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12553 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12554 | ||
12555 | ||
12556 | ||
12557 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12558 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12559 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12561 | else | |
12562 | ||
12563 | cat >conftest.$ac_ext <<_ACEOF | |
12564 | /* confdefs.h. */ | |
12565 | _ACEOF | |
12566 | cat confdefs.h >>conftest.$ac_ext | |
12567 | cat >>conftest.$ac_ext <<_ACEOF | |
12568 | /* end confdefs.h. */ | |
12569 | ||
12570 | #include <string.h> | |
12571 | ||
12572 | int | |
12573 | main () | |
12574 | { | |
12575 | ||
12576 | strcasecmp("foo", "bar"); | |
12577 | ||
12578 | ; | |
12579 | return 0; | |
12580 | } | |
12581 | _ACEOF | |
12582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12584 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12585 | ac_status=$? |
ac1cb8d3 VS |
12586 | grep -v '^ *+' conftest.er1 >conftest.err |
12587 | rm -f conftest.er1 | |
12588 | cat conftest.err >&5 | |
a848cd7e SC |
12589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12590 | (exit $ac_status); } && | |
5294a27e | 12591 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12593 | (eval $ac_try) 2>&5 | |
12594 | ac_status=$? | |
12595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12596 | (exit $ac_status); }; } && | |
12597 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12599 | (eval $ac_try) 2>&5 | |
12600 | ac_status=$? | |
12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12602 | (exit $ac_status); }; }; then | |
12603 | ac_cv_string_strcasecmp=yes | |
12604 | else | |
12605 | echo "$as_me: failed program was:" >&5 | |
12606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12607 | ||
12608 | ac_cv_string_strcasecmp=no | |
12609 | ||
12610 | fi | |
ac1cb8d3 VS |
12611 | rm -f conftest.err conftest.$ac_objext \ |
12612 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12613 | |
12614 | fi | |
12615 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12616 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12617 | ||
12618 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12619 | cat >>confdefs.h <<\_ACEOF | |
12620 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12621 | _ACEOF | |
12622 | ||
12623 | else | |
12624 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12625 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12626 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12628 | else | |
12629 | ||
12630 | cat >conftest.$ac_ext <<_ACEOF | |
12631 | /* confdefs.h. */ | |
12632 | _ACEOF | |
12633 | cat confdefs.h >>conftest.$ac_ext | |
12634 | cat >>conftest.$ac_ext <<_ACEOF | |
12635 | /* end confdefs.h. */ | |
12636 | ||
12637 | #include <strings.h> | |
12638 | ||
12639 | int | |
12640 | main () | |
12641 | { | |
12642 | ||
12643 | strcasecmp("foo", "bar"); | |
12644 | ||
12645 | ; | |
12646 | return 0; | |
12647 | } | |
12648 | _ACEOF | |
12649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12651 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12652 | ac_status=$? |
ac1cb8d3 VS |
12653 | grep -v '^ *+' conftest.er1 >conftest.err |
12654 | rm -f conftest.er1 | |
12655 | cat conftest.err >&5 | |
a848cd7e SC |
12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12657 | (exit $ac_status); } && | |
5294a27e | 12658 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12660 | (eval $ac_try) 2>&5 | |
12661 | ac_status=$? | |
12662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12663 | (exit $ac_status); }; } && | |
12664 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12666 | (eval $ac_try) 2>&5 | |
12667 | ac_status=$? | |
12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12669 | (exit $ac_status); }; }; then | |
12670 | ac_cv_strings_strcasecmp=yes | |
12671 | else | |
12672 | echo "$as_me: failed program was:" >&5 | |
12673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12674 | ||
12675 | ac_cv_strings_strcasecmp=no | |
12676 | ||
12677 | fi | |
ac1cb8d3 VS |
12678 | rm -f conftest.err conftest.$ac_objext \ |
12679 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12680 | |
12681 | fi | |
12682 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12683 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12684 | ||
0c3c69fc | 12685 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12686 | cat >>confdefs.h <<\_ACEOF |
12687 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12688 | _ACEOF | |
12689 | ||
12690 | else | |
12691 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12692 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12693 | { (exit 1); exit 1; }; } | |
12694 | fi | |
12695 | fi | |
12696 | ||
12697 | ac_ext=c | |
12698 | ac_cpp='$CPP $CPPFLAGS' | |
12699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12702 | ||
12703 | ;; | |
12704 | esac | |
12705 | ||
12706 | ||
12707 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12708 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12709 | if test "${ac_cv_header_stdc+set}" = set; then | |
12710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12711 | else | |
12712 | cat >conftest.$ac_ext <<_ACEOF | |
12713 | /* confdefs.h. */ | |
12714 | _ACEOF | |
12715 | cat confdefs.h >>conftest.$ac_ext | |
12716 | cat >>conftest.$ac_ext <<_ACEOF | |
12717 | /* end confdefs.h. */ | |
12718 | #include <stdlib.h> | |
12719 | #include <stdarg.h> | |
12720 | #include <string.h> | |
12721 | #include <float.h> | |
12722 | ||
12723 | int | |
12724 | main () | |
12725 | { | |
12726 | ||
12727 | ; | |
12728 | return 0; | |
12729 | } | |
12730 | _ACEOF | |
12731 | rm -f conftest.$ac_objext | |
12732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12733 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12734 | ac_status=$? |
ac1cb8d3 VS |
12735 | grep -v '^ *+' conftest.er1 >conftest.err |
12736 | rm -f conftest.er1 | |
12737 | cat conftest.err >&5 | |
a848cd7e SC |
12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12739 | (exit $ac_status); } && | |
5294a27e | 12740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12742 | (eval $ac_try) 2>&5 | |
12743 | ac_status=$? | |
12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12745 | (exit $ac_status); }; } && | |
12746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12748 | (eval $ac_try) 2>&5 | |
12749 | ac_status=$? | |
12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12751 | (exit $ac_status); }; }; then | |
12752 | ac_cv_header_stdc=yes | |
12753 | else | |
12754 | echo "$as_me: failed program was:" >&5 | |
12755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12756 | ||
12757 | ac_cv_header_stdc=no | |
12758 | fi | |
ac1cb8d3 | 12759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12760 | |
12761 | if test $ac_cv_header_stdc = yes; then | |
12762 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12763 | cat >conftest.$ac_ext <<_ACEOF | |
12764 | /* confdefs.h. */ | |
12765 | _ACEOF | |
12766 | cat confdefs.h >>conftest.$ac_ext | |
12767 | cat >>conftest.$ac_ext <<_ACEOF | |
12768 | /* end confdefs.h. */ | |
12769 | #include <string.h> | |
12770 | ||
12771 | _ACEOF | |
12772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12773 | $EGREP "memchr" >/dev/null 2>&1; then | |
12774 | : | |
12775 | else | |
12776 | ac_cv_header_stdc=no | |
12777 | fi | |
12778 | rm -f conftest* | |
12779 | ||
12780 | fi | |
12781 | ||
12782 | if test $ac_cv_header_stdc = yes; then | |
12783 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12784 | cat >conftest.$ac_ext <<_ACEOF | |
12785 | /* confdefs.h. */ | |
12786 | _ACEOF | |
12787 | cat confdefs.h >>conftest.$ac_ext | |
12788 | cat >>conftest.$ac_ext <<_ACEOF | |
12789 | /* end confdefs.h. */ | |
12790 | #include <stdlib.h> | |
12791 | ||
12792 | _ACEOF | |
12793 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12794 | $EGREP "free" >/dev/null 2>&1; then | |
12795 | : | |
12796 | else | |
12797 | ac_cv_header_stdc=no | |
12798 | fi | |
12799 | rm -f conftest* | |
12800 | ||
12801 | fi | |
12802 | ||
12803 | if test $ac_cv_header_stdc = yes; then | |
12804 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12805 | if test "$cross_compiling" = yes; then | |
12806 | : | |
12807 | else | |
12808 | cat >conftest.$ac_ext <<_ACEOF | |
12809 | /* confdefs.h. */ | |
12810 | _ACEOF | |
12811 | cat confdefs.h >>conftest.$ac_ext | |
12812 | cat >>conftest.$ac_ext <<_ACEOF | |
12813 | /* end confdefs.h. */ | |
12814 | #include <ctype.h> | |
12815 | #if ((' ' & 0x0FF) == 0x020) | |
12816 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12817 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12818 | #else | |
12819 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12820 | (('a' <= (c) && (c) <= 'i') \ |
12821 | || ('j' <= (c) && (c) <= 'r') \ | |
12822 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12823 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12824 | #endif | |
12825 | ||
12826 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12827 | int | |
12828 | main () | |
12829 | { | |
12830 | int i; | |
12831 | for (i = 0; i < 256; i++) | |
12832 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12833 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12834 | exit(2); |
12835 | exit (0); | |
12836 | } | |
12837 | _ACEOF | |
12838 | rm -f conftest$ac_exeext | |
12839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12840 | (eval $ac_link) 2>&5 | |
12841 | ac_status=$? | |
12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12843 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12845 | (eval $ac_try) 2>&5 | |
12846 | ac_status=$? | |
12847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12848 | (exit $ac_status); }; }; then | |
12849 | : | |
12850 | else | |
12851 | echo "$as_me: program exited with status $ac_status" >&5 | |
12852 | echo "$as_me: failed program was:" >&5 | |
12853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12854 | ||
12855 | ( exit $ac_status ) | |
12856 | ac_cv_header_stdc=no | |
12857 | fi | |
ac1cb8d3 | 12858 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12859 | fi |
12860 | fi | |
12861 | fi | |
12862 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12863 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12864 | if test $ac_cv_header_stdc = yes; then | |
12865 | ||
12866 | cat >>confdefs.h <<\_ACEOF | |
12867 | #define STDC_HEADERS 1 | |
12868 | _ACEOF | |
12869 | ||
12870 | fi | |
12871 | ||
12872 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12873 | ||
12874 | ||
12875 | ||
12876 | ||
12877 | ||
12878 | ||
12879 | ||
12880 | ||
12881 | ||
12882 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12883 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12884 | do |
12885 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12886 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12890 | else | |
12891 | cat >conftest.$ac_ext <<_ACEOF | |
12892 | /* confdefs.h. */ | |
12893 | _ACEOF | |
12894 | cat confdefs.h >>conftest.$ac_ext | |
12895 | cat >>conftest.$ac_ext <<_ACEOF | |
12896 | /* end confdefs.h. */ | |
12897 | $ac_includes_default | |
12898 | ||
12899 | #include <$ac_header> | |
12900 | _ACEOF | |
12901 | rm -f conftest.$ac_objext | |
12902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12903 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12904 | ac_status=$? |
ac1cb8d3 VS |
12905 | grep -v '^ *+' conftest.er1 >conftest.err |
12906 | rm -f conftest.er1 | |
12907 | cat conftest.err >&5 | |
a848cd7e SC |
12908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12909 | (exit $ac_status); } && | |
5294a27e | 12910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12912 | (eval $ac_try) 2>&5 | |
12913 | ac_status=$? | |
12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12915 | (exit $ac_status); }; } && | |
12916 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12918 | (eval $ac_try) 2>&5 | |
12919 | ac_status=$? | |
12920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12921 | (exit $ac_status); }; }; then | |
12922 | eval "$as_ac_Header=yes" | |
12923 | else | |
12924 | echo "$as_me: failed program was:" >&5 | |
12925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12926 | ||
12927 | eval "$as_ac_Header=no" | |
12928 | fi | |
ac1cb8d3 | 12929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12930 | fi |
12931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12932 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12934 | cat >>confdefs.h <<_ACEOF | |
12935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12936 | _ACEOF | |
12937 | ||
12938 | fi | |
12939 | ||
12940 | done | |
12941 | ||
12942 | ||
12943 | ||
12944 | for ac_header in stdlib.h | |
12945 | do | |
12946 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12948 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12949 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12950 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12952 | fi | |
12953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12954 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12955 | else | |
12956 | # Is the header compilable? | |
12957 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12958 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12959 | cat >conftest.$ac_ext <<_ACEOF | |
12960 | /* confdefs.h. */ | |
12961 | _ACEOF | |
12962 | cat confdefs.h >>conftest.$ac_ext | |
12963 | cat >>conftest.$ac_ext <<_ACEOF | |
12964 | /* end confdefs.h. */ | |
12965 | $ac_includes_default | |
12966 | #include <$ac_header> | |
12967 | _ACEOF | |
12968 | rm -f conftest.$ac_objext | |
12969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12970 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12971 | ac_status=$? |
ac1cb8d3 VS |
12972 | grep -v '^ *+' conftest.er1 >conftest.err |
12973 | rm -f conftest.er1 | |
12974 | cat conftest.err >&5 | |
a848cd7e SC |
12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12976 | (exit $ac_status); } && | |
5294a27e | 12977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
12983 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12985 | (eval $ac_try) 2>&5 | |
12986 | ac_status=$? | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); }; }; then | |
12989 | ac_header_compiler=yes | |
12990 | else | |
12991 | echo "$as_me: failed program was:" >&5 | |
12992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12993 | ||
12994 | ac_header_compiler=no | |
12995 | fi | |
ac1cb8d3 | 12996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12998 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12999 | ||
13000 | # Is the header present? | |
13001 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13002 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13003 | cat >conftest.$ac_ext <<_ACEOF | |
13004 | /* confdefs.h. */ | |
13005 | _ACEOF | |
13006 | cat confdefs.h >>conftest.$ac_ext | |
13007 | cat >>conftest.$ac_ext <<_ACEOF | |
13008 | /* end confdefs.h. */ | |
13009 | #include <$ac_header> | |
13010 | _ACEOF | |
13011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13013 | ac_status=$? | |
13014 | grep -v '^ *+' conftest.er1 >conftest.err | |
13015 | rm -f conftest.er1 | |
13016 | cat conftest.err >&5 | |
13017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13018 | (exit $ac_status); } >/dev/null; then | |
13019 | if test -s conftest.err; then | |
13020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13022 | else |
13023 | ac_cpp_err= | |
13024 | fi | |
13025 | else | |
13026 | ac_cpp_err=yes | |
13027 | fi | |
13028 | if test -z "$ac_cpp_err"; then | |
13029 | ac_header_preproc=yes | |
13030 | else | |
13031 | echo "$as_me: failed program was:" >&5 | |
13032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13033 | ||
13034 | ac_header_preproc=no | |
13035 | fi | |
13036 | rm -f conftest.err conftest.$ac_ext | |
13037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13038 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13039 | ||
13040 | # So? What about this header? | |
ac1cb8d3 VS |
13041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13042 | yes:no: ) | |
a848cd7e SC |
13043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13046 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13047 | ac_header_preproc=yes | |
a848cd7e | 13048 | ;; |
ac1cb8d3 | 13049 | no:yes:* ) |
a848cd7e SC |
13050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13054 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13055 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13056 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13057 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13060 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13061 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13062 | ( |
13063 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13064 | ## ----------------------------------------- ## |
13065 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13066 | ## ----------------------------------------- ## | |
a848cd7e SC |
13067 | _ASBOX |
13068 | ) | | |
13069 | sed "s/^/$as_me: WARNING: /" >&2 | |
13070 | ;; | |
13071 | esac | |
13072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13076 | else | |
ac1cb8d3 | 13077 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13078 | fi |
13079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13081 | ||
13082 | fi | |
13083 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13084 | cat >>confdefs.h <<_ACEOF | |
13085 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13086 | _ACEOF | |
13087 | ||
13088 | fi | |
13089 | ||
13090 | done | |
13091 | ||
13092 | ||
13093 | for ac_header in malloc.h | |
13094 | do | |
13095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13097 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13101 | fi | |
13102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13104 | else | |
13105 | # Is the header compilable? | |
13106 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13108 | cat >conftest.$ac_ext <<_ACEOF | |
13109 | /* confdefs.h. */ | |
13110 | _ACEOF | |
13111 | cat confdefs.h >>conftest.$ac_ext | |
13112 | cat >>conftest.$ac_ext <<_ACEOF | |
13113 | /* end confdefs.h. */ | |
13114 | $ac_includes_default | |
13115 | #include <$ac_header> | |
13116 | _ACEOF | |
13117 | rm -f conftest.$ac_objext | |
13118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13120 | ac_status=$? |
ac1cb8d3 VS |
13121 | grep -v '^ *+' conftest.er1 >conftest.err |
13122 | rm -f conftest.er1 | |
13123 | cat conftest.err >&5 | |
a848cd7e SC |
13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13125 | (exit $ac_status); } && | |
5294a27e | 13126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13128 | (eval $ac_try) 2>&5 | |
13129 | ac_status=$? | |
13130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13131 | (exit $ac_status); }; } && | |
13132 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13134 | (eval $ac_try) 2>&5 | |
13135 | ac_status=$? | |
13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13137 | (exit $ac_status); }; }; then | |
13138 | ac_header_compiler=yes | |
13139 | else | |
13140 | echo "$as_me: failed program was:" >&5 | |
13141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13142 | ||
13143 | ac_header_compiler=no | |
13144 | fi | |
ac1cb8d3 | 13145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13146 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13147 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13148 | ||
13149 | # Is the header present? | |
13150 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13151 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13152 | cat >conftest.$ac_ext <<_ACEOF | |
13153 | /* confdefs.h. */ | |
13154 | _ACEOF | |
13155 | cat confdefs.h >>conftest.$ac_ext | |
13156 | cat >>conftest.$ac_ext <<_ACEOF | |
13157 | /* end confdefs.h. */ | |
13158 | #include <$ac_header> | |
13159 | _ACEOF | |
13160 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13161 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13162 | ac_status=$? | |
13163 | grep -v '^ *+' conftest.er1 >conftest.err | |
13164 | rm -f conftest.er1 | |
13165 | cat conftest.err >&5 | |
13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13167 | (exit $ac_status); } >/dev/null; then | |
13168 | if test -s conftest.err; then | |
13169 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13170 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13171 | else |
13172 | ac_cpp_err= | |
13173 | fi | |
13174 | else | |
13175 | ac_cpp_err=yes | |
13176 | fi | |
13177 | if test -z "$ac_cpp_err"; then | |
13178 | ac_header_preproc=yes | |
13179 | else | |
13180 | echo "$as_me: failed program was:" >&5 | |
13181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13182 | ||
13183 | ac_header_preproc=no | |
13184 | fi | |
13185 | rm -f conftest.err conftest.$ac_ext | |
13186 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13187 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13188 | ||
13189 | # So? What about this header? | |
ac1cb8d3 VS |
13190 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13191 | yes:no: ) | |
a848cd7e SC |
13192 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13193 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13194 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13195 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13196 | ac_header_preproc=yes | |
a848cd7e | 13197 | ;; |
ac1cb8d3 | 13198 | no:yes:* ) |
a848cd7e SC |
13199 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13200 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13201 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13202 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13203 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13204 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13205 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13206 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13208 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13209 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13210 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13211 | ( |
13212 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13213 | ## ----------------------------------------- ## |
13214 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13215 | ## ----------------------------------------- ## | |
a848cd7e SC |
13216 | _ASBOX |
13217 | ) | | |
13218 | sed "s/^/$as_me: WARNING: /" >&2 | |
13219 | ;; | |
13220 | esac | |
13221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13225 | else | |
ac1cb8d3 | 13226 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13227 | fi |
13228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13229 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13230 | ||
13231 | fi | |
13232 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13233 | cat >>confdefs.h <<_ACEOF | |
13234 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13235 | _ACEOF | |
13236 | ||
13237 | fi | |
13238 | ||
13239 | done | |
13240 | ||
13241 | ||
13242 | for ac_header in unistd.h | |
13243 | do | |
13244 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13246 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13248 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13250 | fi | |
13251 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13252 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13253 | else | |
13254 | # Is the header compilable? | |
13255 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13256 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13257 | cat >conftest.$ac_ext <<_ACEOF | |
13258 | /* confdefs.h. */ | |
13259 | _ACEOF | |
13260 | cat confdefs.h >>conftest.$ac_ext | |
13261 | cat >>conftest.$ac_ext <<_ACEOF | |
13262 | /* end confdefs.h. */ | |
13263 | $ac_includes_default | |
13264 | #include <$ac_header> | |
13265 | _ACEOF | |
13266 | rm -f conftest.$ac_objext | |
13267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13269 | ac_status=$? |
ac1cb8d3 VS |
13270 | grep -v '^ *+' conftest.er1 >conftest.err |
13271 | rm -f conftest.er1 | |
13272 | cat conftest.err >&5 | |
a848cd7e SC |
13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13274 | (exit $ac_status); } && | |
5294a27e | 13275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13277 | (eval $ac_try) 2>&5 | |
13278 | ac_status=$? | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13280 | (exit $ac_status); }; } && | |
13281 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13283 | (eval $ac_try) 2>&5 | |
13284 | ac_status=$? | |
13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13286 | (exit $ac_status); }; }; then | |
13287 | ac_header_compiler=yes | |
13288 | else | |
13289 | echo "$as_me: failed program was:" >&5 | |
13290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13291 | ||
13292 | ac_header_compiler=no | |
13293 | fi | |
ac1cb8d3 | 13294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13297 | ||
13298 | # Is the header present? | |
13299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13301 | cat >conftest.$ac_ext <<_ACEOF | |
13302 | /* confdefs.h. */ | |
13303 | _ACEOF | |
13304 | cat confdefs.h >>conftest.$ac_ext | |
13305 | cat >>conftest.$ac_ext <<_ACEOF | |
13306 | /* end confdefs.h. */ | |
13307 | #include <$ac_header> | |
13308 | _ACEOF | |
13309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13311 | ac_status=$? | |
13312 | grep -v '^ *+' conftest.er1 >conftest.err | |
13313 | rm -f conftest.er1 | |
13314 | cat conftest.err >&5 | |
13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13316 | (exit $ac_status); } >/dev/null; then | |
13317 | if test -s conftest.err; then | |
13318 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13320 | else |
13321 | ac_cpp_err= | |
13322 | fi | |
13323 | else | |
13324 | ac_cpp_err=yes | |
13325 | fi | |
13326 | if test -z "$ac_cpp_err"; then | |
13327 | ac_header_preproc=yes | |
13328 | else | |
13329 | echo "$as_me: failed program was:" >&5 | |
13330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13331 | ||
13332 | ac_header_preproc=no | |
13333 | fi | |
13334 | rm -f conftest.err conftest.$ac_ext | |
13335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13337 | ||
13338 | # So? What about this header? | |
ac1cb8d3 VS |
13339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13340 | yes:no: ) | |
a848cd7e SC |
13341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13345 | ac_header_preproc=yes | |
a848cd7e | 13346 | ;; |
ac1cb8d3 | 13347 | no:yes:* ) |
a848cd7e SC |
13348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13360 | ( |
13361 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13362 | ## ----------------------------------------- ## |
13363 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13364 | ## ----------------------------------------- ## | |
a848cd7e SC |
13365 | _ASBOX |
13366 | ) | | |
13367 | sed "s/^/$as_me: WARNING: /" >&2 | |
13368 | ;; | |
13369 | esac | |
13370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13374 | else | |
ac1cb8d3 | 13375 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13376 | fi |
13377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13379 | ||
13380 | fi | |
13381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13382 | cat >>confdefs.h <<_ACEOF | |
13383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13384 | _ACEOF | |
13385 | ||
13386 | fi | |
13387 | ||
13388 | done | |
13389 | ||
13390 | ||
13391 | for ac_header in wchar.h | |
13392 | do | |
13393 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13394 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13395 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13399 | fi | |
13400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13401 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13402 | else | |
13403 | # Is the header compilable? | |
13404 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13405 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13406 | cat >conftest.$ac_ext <<_ACEOF | |
13407 | /* confdefs.h. */ | |
13408 | _ACEOF | |
13409 | cat confdefs.h >>conftest.$ac_ext | |
13410 | cat >>conftest.$ac_ext <<_ACEOF | |
13411 | /* end confdefs.h. */ | |
13412 | $ac_includes_default | |
13413 | #include <$ac_header> | |
13414 | _ACEOF | |
13415 | rm -f conftest.$ac_objext | |
13416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13418 | ac_status=$? |
ac1cb8d3 VS |
13419 | grep -v '^ *+' conftest.er1 >conftest.err |
13420 | rm -f conftest.er1 | |
13421 | cat conftest.err >&5 | |
a848cd7e SC |
13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13423 | (exit $ac_status); } && | |
5294a27e | 13424 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13426 | (eval $ac_try) 2>&5 | |
13427 | ac_status=$? | |
13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13429 | (exit $ac_status); }; } && | |
13430 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13432 | (eval $ac_try) 2>&5 | |
13433 | ac_status=$? | |
13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13435 | (exit $ac_status); }; }; then | |
13436 | ac_header_compiler=yes | |
13437 | else | |
13438 | echo "$as_me: failed program was:" >&5 | |
13439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13440 | ||
13441 | ac_header_compiler=no | |
13442 | fi | |
ac1cb8d3 | 13443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13445 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13446 | ||
13447 | # Is the header present? | |
13448 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13449 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13450 | cat >conftest.$ac_ext <<_ACEOF | |
13451 | /* confdefs.h. */ | |
13452 | _ACEOF | |
13453 | cat confdefs.h >>conftest.$ac_ext | |
13454 | cat >>conftest.$ac_ext <<_ACEOF | |
13455 | /* end confdefs.h. */ | |
13456 | #include <$ac_header> | |
13457 | _ACEOF | |
13458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13460 | ac_status=$? | |
13461 | grep -v '^ *+' conftest.er1 >conftest.err | |
13462 | rm -f conftest.er1 | |
13463 | cat conftest.err >&5 | |
13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13465 | (exit $ac_status); } >/dev/null; then | |
13466 | if test -s conftest.err; then | |
13467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13469 | else |
13470 | ac_cpp_err= | |
13471 | fi | |
13472 | else | |
13473 | ac_cpp_err=yes | |
13474 | fi | |
13475 | if test -z "$ac_cpp_err"; then | |
13476 | ac_header_preproc=yes | |
13477 | else | |
13478 | echo "$as_me: failed program was:" >&5 | |
13479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13480 | ||
13481 | ac_header_preproc=no | |
13482 | fi | |
13483 | rm -f conftest.err conftest.$ac_ext | |
13484 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13485 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13486 | ||
13487 | # So? What about this header? | |
ac1cb8d3 VS |
13488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13489 | yes:no: ) | |
a848cd7e SC |
13490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13494 | ac_header_preproc=yes | |
a848cd7e | 13495 | ;; |
ac1cb8d3 | 13496 | no:yes:* ) |
a848cd7e SC |
13497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13509 | ( |
13510 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13511 | ## ----------------------------------------- ## |
13512 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13513 | ## ----------------------------------------- ## | |
a848cd7e SC |
13514 | _ASBOX |
13515 | ) | | |
13516 | sed "s/^/$as_me: WARNING: /" >&2 | |
13517 | ;; | |
13518 | esac | |
13519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13523 | else | |
ac1cb8d3 | 13524 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13525 | fi |
13526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13528 | ||
13529 | fi | |
13530 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13531 | cat >>confdefs.h <<_ACEOF | |
13532 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13533 | _ACEOF | |
13534 | ||
13535 | fi | |
13536 | ||
13537 | done | |
13538 | ||
13539 | ||
13540 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13541 | ||
13542 | for ac_header in wcstr.h | |
13543 | do | |
13544 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13545 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13546 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13548 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13550 | fi | |
13551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13552 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13553 | else | |
13554 | # Is the header compilable? | |
13555 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13556 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13557 | cat >conftest.$ac_ext <<_ACEOF | |
13558 | /* confdefs.h. */ | |
13559 | _ACEOF | |
13560 | cat confdefs.h >>conftest.$ac_ext | |
13561 | cat >>conftest.$ac_ext <<_ACEOF | |
13562 | /* end confdefs.h. */ | |
13563 | $ac_includes_default | |
13564 | #include <$ac_header> | |
13565 | _ACEOF | |
13566 | rm -f conftest.$ac_objext | |
13567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13568 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13569 | ac_status=$? |
ac1cb8d3 VS |
13570 | grep -v '^ *+' conftest.er1 >conftest.err |
13571 | rm -f conftest.er1 | |
13572 | cat conftest.err >&5 | |
a848cd7e SC |
13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13574 | (exit $ac_status); } && | |
5294a27e | 13575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13577 | (eval $ac_try) 2>&5 | |
13578 | ac_status=$? | |
13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13580 | (exit $ac_status); }; } && | |
13581 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13583 | (eval $ac_try) 2>&5 | |
13584 | ac_status=$? | |
13585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13586 | (exit $ac_status); }; }; then | |
13587 | ac_header_compiler=yes | |
13588 | else | |
13589 | echo "$as_me: failed program was:" >&5 | |
13590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13591 | ||
13592 | ac_header_compiler=no | |
13593 | fi | |
ac1cb8d3 | 13594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13595 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13596 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13597 | ||
13598 | # Is the header present? | |
13599 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13600 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13601 | cat >conftest.$ac_ext <<_ACEOF | |
13602 | /* confdefs.h. */ | |
13603 | _ACEOF | |
13604 | cat confdefs.h >>conftest.$ac_ext | |
13605 | cat >>conftest.$ac_ext <<_ACEOF | |
13606 | /* end confdefs.h. */ | |
13607 | #include <$ac_header> | |
13608 | _ACEOF | |
13609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13611 | ac_status=$? | |
13612 | grep -v '^ *+' conftest.er1 >conftest.err | |
13613 | rm -f conftest.er1 | |
13614 | cat conftest.err >&5 | |
13615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13616 | (exit $ac_status); } >/dev/null; then | |
13617 | if test -s conftest.err; then | |
13618 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13619 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13620 | else |
13621 | ac_cpp_err= | |
13622 | fi | |
13623 | else | |
13624 | ac_cpp_err=yes | |
13625 | fi | |
13626 | if test -z "$ac_cpp_err"; then | |
13627 | ac_header_preproc=yes | |
13628 | else | |
13629 | echo "$as_me: failed program was:" >&5 | |
13630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13631 | ||
13632 | ac_header_preproc=no | |
13633 | fi | |
13634 | rm -f conftest.err conftest.$ac_ext | |
13635 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13636 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13637 | ||
13638 | # So? What about this header? | |
ac1cb8d3 VS |
13639 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13640 | yes:no: ) | |
a848cd7e SC |
13641 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13642 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13644 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13645 | ac_header_preproc=yes | |
a848cd7e | 13646 | ;; |
ac1cb8d3 | 13647 | no:yes:* ) |
a848cd7e SC |
13648 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13649 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13650 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13651 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13652 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13653 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13654 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13655 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13657 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13658 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13659 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13660 | ( |
13661 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13662 | ## ----------------------------------------- ## |
13663 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13664 | ## ----------------------------------------- ## | |
a848cd7e SC |
13665 | _ASBOX |
13666 | ) | | |
13667 | sed "s/^/$as_me: WARNING: /" >&2 | |
13668 | ;; | |
13669 | esac | |
13670 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13674 | else | |
ac1cb8d3 | 13675 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13676 | fi |
13677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13679 | ||
13680 | fi | |
13681 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13682 | cat >>confdefs.h <<_ACEOF | |
13683 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13684 | _ACEOF | |
13685 | ||
13686 | fi | |
13687 | ||
13688 | done | |
13689 | ||
13690 | fi | |
13691 | ||
13692 | ||
13693 | for ac_header in fnmatch.h | |
13694 | do | |
13695 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13701 | fi | |
13702 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13703 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13704 | else | |
13705 | # Is the header compilable? | |
13706 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13707 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13708 | cat >conftest.$ac_ext <<_ACEOF | |
13709 | /* confdefs.h. */ | |
13710 | _ACEOF | |
13711 | cat confdefs.h >>conftest.$ac_ext | |
13712 | cat >>conftest.$ac_ext <<_ACEOF | |
13713 | /* end confdefs.h. */ | |
13714 | $ac_includes_default | |
13715 | #include <$ac_header> | |
13716 | _ACEOF | |
13717 | rm -f conftest.$ac_objext | |
13718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13719 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13720 | ac_status=$? |
ac1cb8d3 VS |
13721 | grep -v '^ *+' conftest.er1 >conftest.err |
13722 | rm -f conftest.er1 | |
13723 | cat conftest.err >&5 | |
a848cd7e SC |
13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13725 | (exit $ac_status); } && | |
5294a27e | 13726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13728 | (eval $ac_try) 2>&5 | |
13729 | ac_status=$? | |
13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13731 | (exit $ac_status); }; } && | |
13732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13734 | (eval $ac_try) 2>&5 | |
13735 | ac_status=$? | |
13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13737 | (exit $ac_status); }; }; then | |
13738 | ac_header_compiler=yes | |
13739 | else | |
13740 | echo "$as_me: failed program was:" >&5 | |
13741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13742 | ||
13743 | ac_header_compiler=no | |
13744 | fi | |
ac1cb8d3 | 13745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13747 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13748 | ||
13749 | # Is the header present? | |
13750 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13752 | cat >conftest.$ac_ext <<_ACEOF | |
13753 | /* confdefs.h. */ | |
13754 | _ACEOF | |
13755 | cat confdefs.h >>conftest.$ac_ext | |
13756 | cat >>conftest.$ac_ext <<_ACEOF | |
13757 | /* end confdefs.h. */ | |
13758 | #include <$ac_header> | |
13759 | _ACEOF | |
13760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13762 | ac_status=$? | |
13763 | grep -v '^ *+' conftest.er1 >conftest.err | |
13764 | rm -f conftest.er1 | |
13765 | cat conftest.err >&5 | |
13766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13767 | (exit $ac_status); } >/dev/null; then | |
13768 | if test -s conftest.err; then | |
13769 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13771 | else |
13772 | ac_cpp_err= | |
13773 | fi | |
13774 | else | |
13775 | ac_cpp_err=yes | |
13776 | fi | |
13777 | if test -z "$ac_cpp_err"; then | |
13778 | ac_header_preproc=yes | |
13779 | else | |
13780 | echo "$as_me: failed program was:" >&5 | |
13781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13782 | ||
13783 | ac_header_preproc=no | |
13784 | fi | |
13785 | rm -f conftest.err conftest.$ac_ext | |
13786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13787 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13788 | ||
13789 | # So? What about this header? | |
ac1cb8d3 VS |
13790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13791 | yes:no: ) | |
a848cd7e SC |
13792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13795 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13796 | ac_header_preproc=yes | |
a848cd7e | 13797 | ;; |
ac1cb8d3 | 13798 | no:yes:* ) |
a848cd7e SC |
13799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13803 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13804 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13805 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13806 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13808 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13809 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13810 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13811 | ( |
13812 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13813 | ## ----------------------------------------- ## |
13814 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13815 | ## ----------------------------------------- ## | |
a848cd7e SC |
13816 | _ASBOX |
13817 | ) | | |
13818 | sed "s/^/$as_me: WARNING: /" >&2 | |
13819 | ;; | |
13820 | esac | |
13821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13825 | else | |
ac1cb8d3 | 13826 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13827 | fi |
13828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13830 | ||
13831 | fi | |
13832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13833 | cat >>confdefs.h <<_ACEOF | |
13834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13835 | _ACEOF | |
13836 | ||
13837 | fi | |
13838 | ||
13839 | done | |
13840 | ||
13841 | ||
13842 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13843 | ||
13844 | for ac_func in fnmatch | |
13845 | do | |
13846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13847 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13849 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13851 | else | |
13852 | cat >conftest.$ac_ext <<_ACEOF | |
13853 | /* confdefs.h. */ | |
13854 | _ACEOF | |
13855 | cat confdefs.h >>conftest.$ac_ext | |
13856 | cat >>conftest.$ac_ext <<_ACEOF | |
13857 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13858 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13860 | #define $ac_func innocuous_$ac_func | |
13861 | ||
a848cd7e SC |
13862 | /* System header to define __stub macros and hopefully few prototypes, |
13863 | which can conflict with char $ac_func (); below. | |
13864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13865 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13866 | |
a848cd7e SC |
13867 | #ifdef __STDC__ |
13868 | # include <limits.h> | |
13869 | #else | |
13870 | # include <assert.h> | |
13871 | #endif | |
ac1cb8d3 VS |
13872 | |
13873 | #undef $ac_func | |
13874 | ||
a848cd7e SC |
13875 | /* Override any gcc2 internal prototype to avoid an error. */ |
13876 | #ifdef __cplusplus | |
13877 | extern "C" | |
13878 | { | |
13879 | #endif | |
13880 | /* We use char because int might match the return type of a gcc2 | |
13881 | builtin and then its argument prototype would still apply. */ | |
13882 | char $ac_func (); | |
13883 | /* The GNU C library defines this for functions which it implements | |
13884 | to always fail with ENOSYS. Some functions are actually named | |
13885 | something starting with __ and the normal name is an alias. */ | |
13886 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13887 | choke me | |
13888 | #else | |
13889 | char (*f) () = $ac_func; | |
13890 | #endif | |
13891 | #ifdef __cplusplus | |
13892 | } | |
13893 | #endif | |
13894 | ||
13895 | int | |
13896 | main () | |
13897 | { | |
13898 | return f != $ac_func; | |
13899 | ; | |
13900 | return 0; | |
13901 | } | |
13902 | _ACEOF | |
13903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13905 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13906 | ac_status=$? |
ac1cb8d3 VS |
13907 | grep -v '^ *+' conftest.er1 >conftest.err |
13908 | rm -f conftest.er1 | |
13909 | cat conftest.err >&5 | |
a848cd7e SC |
13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13911 | (exit $ac_status); } && | |
5294a27e | 13912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13914 | (eval $ac_try) 2>&5 | |
13915 | ac_status=$? | |
13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13917 | (exit $ac_status); }; } && | |
13918 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13920 | (eval $ac_try) 2>&5 | |
13921 | ac_status=$? | |
13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13923 | (exit $ac_status); }; }; then | |
13924 | eval "$as_ac_var=yes" | |
13925 | else | |
13926 | echo "$as_me: failed program was:" >&5 | |
13927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13928 | ||
13929 | eval "$as_ac_var=no" | |
13930 | fi | |
ac1cb8d3 VS |
13931 | rm -f conftest.err conftest.$ac_objext \ |
13932 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13933 | fi |
13934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13935 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13936 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13937 | cat >>confdefs.h <<_ACEOF | |
13938 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13939 | _ACEOF | |
13940 | ||
13941 | fi | |
13942 | done | |
13943 | ||
13944 | fi | |
13945 | ||
13946 | ||
13947 | for ac_header in langinfo.h | |
13948 | do | |
13949 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13950 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13951 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13955 | fi | |
13956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13958 | else | |
13959 | # Is the header compilable? | |
13960 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13961 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13962 | cat >conftest.$ac_ext <<_ACEOF | |
13963 | /* confdefs.h. */ | |
13964 | _ACEOF | |
13965 | cat confdefs.h >>conftest.$ac_ext | |
13966 | cat >>conftest.$ac_ext <<_ACEOF | |
13967 | /* end confdefs.h. */ | |
13968 | $ac_includes_default | |
13969 | #include <$ac_header> | |
13970 | _ACEOF | |
13971 | rm -f conftest.$ac_objext | |
13972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13973 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13974 | ac_status=$? |
ac1cb8d3 VS |
13975 | grep -v '^ *+' conftest.er1 >conftest.err |
13976 | rm -f conftest.er1 | |
13977 | cat conftest.err >&5 | |
a848cd7e SC |
13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13979 | (exit $ac_status); } && | |
5294a27e | 13980 | { ac_try='test -z "$ac_c_werror_flag" || 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_objext' | |
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 | ac_header_compiler=yes | |
13993 | else | |
13994 | echo "$as_me: failed program was:" >&5 | |
13995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13996 | ||
13997 | ac_header_compiler=no | |
13998 | fi | |
ac1cb8d3 | 13999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14000 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14001 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14002 | ||
14003 | # Is the header present? | |
14004 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14005 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14006 | cat >conftest.$ac_ext <<_ACEOF | |
14007 | /* confdefs.h. */ | |
14008 | _ACEOF | |
14009 | cat confdefs.h >>conftest.$ac_ext | |
14010 | cat >>conftest.$ac_ext <<_ACEOF | |
14011 | /* end confdefs.h. */ | |
14012 | #include <$ac_header> | |
14013 | _ACEOF | |
14014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14016 | ac_status=$? | |
14017 | grep -v '^ *+' conftest.er1 >conftest.err | |
14018 | rm -f conftest.er1 | |
14019 | cat conftest.err >&5 | |
14020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14021 | (exit $ac_status); } >/dev/null; then | |
14022 | if test -s conftest.err; then | |
14023 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14025 | else |
14026 | ac_cpp_err= | |
14027 | fi | |
14028 | else | |
14029 | ac_cpp_err=yes | |
14030 | fi | |
14031 | if test -z "$ac_cpp_err"; then | |
14032 | ac_header_preproc=yes | |
14033 | else | |
14034 | echo "$as_me: failed program was:" >&5 | |
14035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14036 | ||
14037 | ac_header_preproc=no | |
14038 | fi | |
14039 | rm -f conftest.err conftest.$ac_ext | |
14040 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14041 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14042 | ||
14043 | # So? What about this header? | |
ac1cb8d3 VS |
14044 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14045 | yes:no: ) | |
a848cd7e SC |
14046 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14047 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14048 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14049 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14050 | ac_header_preproc=yes | |
a848cd7e | 14051 | ;; |
ac1cb8d3 | 14052 | no:yes:* ) |
a848cd7e SC |
14053 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14054 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14055 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14056 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14057 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14058 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14059 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14060 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14061 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14062 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14063 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14064 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14065 | ( |
14066 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14067 | ## ----------------------------------------- ## |
14068 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14069 | ## ----------------------------------------- ## | |
a848cd7e SC |
14070 | _ASBOX |
14071 | ) | | |
14072 | sed "s/^/$as_me: WARNING: /" >&2 | |
14073 | ;; | |
14074 | esac | |
14075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14079 | else | |
ac1cb8d3 | 14080 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14081 | fi |
14082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14084 | ||
14085 | fi | |
14086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14087 | cat >>confdefs.h <<_ACEOF | |
14088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14089 | _ACEOF | |
14090 | ||
14091 | fi | |
14092 | ||
14093 | done | |
14094 | ||
14095 | ||
14096 | case "${host}" in | |
14097 | *-pc-os2_emx | *-pc-os2-emx ) | |
14098 | if test $ac_cv_header_langinfo_h = "yes"; then | |
14099 | LIBS="$LIBS -lintl" | |
14100 | fi | |
14101 | ;; | |
14102 | esac | |
14103 | ||
14104 | if test "$wxUSE_GUI" = "yes"; then | |
14105 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14106 | ||
14107 | for ac_header in X11/Xlib.h | |
14108 | do | |
14109 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14110 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14115 | fi | |
14116 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14117 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14118 | else | |
14119 | # Is the header compilable? | |
14120 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14121 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14122 | cat >conftest.$ac_ext <<_ACEOF | |
14123 | /* confdefs.h. */ | |
14124 | _ACEOF | |
14125 | cat confdefs.h >>conftest.$ac_ext | |
14126 | cat >>conftest.$ac_ext <<_ACEOF | |
14127 | /* end confdefs.h. */ | |
14128 | $ac_includes_default | |
14129 | #include <$ac_header> | |
14130 | _ACEOF | |
14131 | rm -f conftest.$ac_objext | |
14132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14134 | ac_status=$? |
ac1cb8d3 VS |
14135 | grep -v '^ *+' conftest.er1 >conftest.err |
14136 | rm -f conftest.er1 | |
14137 | cat conftest.err >&5 | |
a848cd7e SC |
14138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14139 | (exit $ac_status); } && | |
5294a27e | 14140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14142 | (eval $ac_try) 2>&5 | |
14143 | ac_status=$? | |
14144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14145 | (exit $ac_status); }; } && | |
14146 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14148 | (eval $ac_try) 2>&5 | |
14149 | ac_status=$? | |
14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14151 | (exit $ac_status); }; }; then | |
14152 | ac_header_compiler=yes | |
14153 | else | |
14154 | echo "$as_me: failed program was:" >&5 | |
14155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14156 | ||
14157 | ac_header_compiler=no | |
14158 | fi | |
ac1cb8d3 | 14159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14160 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14161 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14162 | ||
14163 | # Is the header present? | |
14164 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14165 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14166 | cat >conftest.$ac_ext <<_ACEOF | |
14167 | /* confdefs.h. */ | |
14168 | _ACEOF | |
14169 | cat confdefs.h >>conftest.$ac_ext | |
14170 | cat >>conftest.$ac_ext <<_ACEOF | |
14171 | /* end confdefs.h. */ | |
14172 | #include <$ac_header> | |
14173 | _ACEOF | |
14174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14176 | ac_status=$? | |
14177 | grep -v '^ *+' conftest.er1 >conftest.err | |
14178 | rm -f conftest.er1 | |
14179 | cat conftest.err >&5 | |
14180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14181 | (exit $ac_status); } >/dev/null; then | |
14182 | if test -s conftest.err; then | |
14183 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14185 | else |
14186 | ac_cpp_err= | |
14187 | fi | |
14188 | else | |
14189 | ac_cpp_err=yes | |
14190 | fi | |
14191 | if test -z "$ac_cpp_err"; then | |
14192 | ac_header_preproc=yes | |
14193 | else | |
14194 | echo "$as_me: failed program was:" >&5 | |
14195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14196 | ||
14197 | ac_header_preproc=no | |
14198 | fi | |
14199 | rm -f conftest.err conftest.$ac_ext | |
14200 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14201 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14202 | ||
14203 | # So? What about this header? | |
ac1cb8d3 VS |
14204 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14205 | yes:no: ) | |
a848cd7e SC |
14206 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14207 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14209 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14210 | ac_header_preproc=yes | |
a848cd7e | 14211 | ;; |
ac1cb8d3 | 14212 | no:yes:* ) |
a848cd7e SC |
14213 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14214 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14215 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14216 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14217 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14218 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14219 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14220 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14221 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14222 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14223 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14224 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14225 | ( |
14226 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14227 | ## ----------------------------------------- ## |
14228 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14229 | ## ----------------------------------------- ## | |
a848cd7e SC |
14230 | _ASBOX |
14231 | ) | | |
14232 | sed "s/^/$as_me: WARNING: /" >&2 | |
14233 | ;; | |
14234 | esac | |
14235 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14239 | else | |
ac1cb8d3 | 14240 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14241 | fi |
14242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14244 | ||
14245 | fi | |
14246 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14247 | cat >>confdefs.h <<_ACEOF | |
14248 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14249 | _ACEOF | |
14250 | ||
14251 | fi | |
14252 | ||
14253 | done | |
14254 | ||
14255 | ||
14256 | for ac_header in X11/XKBlib.h | |
14257 | do | |
14258 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14259 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14261 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14263 | else | |
14264 | cat >conftest.$ac_ext <<_ACEOF | |
14265 | /* confdefs.h. */ | |
14266 | _ACEOF | |
14267 | cat confdefs.h >>conftest.$ac_ext | |
14268 | cat >>conftest.$ac_ext <<_ACEOF | |
14269 | /* end confdefs.h. */ | |
14270 | ||
14271 | #if HAVE_X11_XLIB_H | |
14272 | #include <X11/Xlib.h> | |
14273 | #endif | |
14274 | ||
14275 | ||
14276 | #include <$ac_header> | |
14277 | _ACEOF | |
14278 | rm -f conftest.$ac_objext | |
14279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14281 | ac_status=$? |
ac1cb8d3 VS |
14282 | grep -v '^ *+' conftest.er1 >conftest.err |
14283 | rm -f conftest.er1 | |
14284 | cat conftest.err >&5 | |
a848cd7e SC |
14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14286 | (exit $ac_status); } && | |
5294a27e | 14287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14289 | (eval $ac_try) 2>&5 | |
14290 | ac_status=$? | |
14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14292 | (exit $ac_status); }; } && | |
14293 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14295 | (eval $ac_try) 2>&5 | |
14296 | ac_status=$? | |
14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14298 | (exit $ac_status); }; }; then | |
14299 | eval "$as_ac_Header=yes" | |
14300 | else | |
14301 | echo "$as_me: failed program was:" >&5 | |
14302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14303 | ||
14304 | eval "$as_ac_Header=no" | |
14305 | fi | |
ac1cb8d3 | 14306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14307 | fi |
14308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14309 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14310 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14311 | cat >>confdefs.h <<_ACEOF | |
14312 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14313 | _ACEOF | |
14314 | ||
14315 | fi | |
14316 | ||
14317 | done | |
14318 | ||
14319 | fi | |
14320 | fi | |
14321 | ||
14322 | ||
14323 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14324 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14325 | if test "${ac_cv_c_const+set}" = set; then | |
14326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14327 | else | |
14328 | cat >conftest.$ac_ext <<_ACEOF | |
14329 | /* confdefs.h. */ | |
14330 | _ACEOF | |
14331 | cat confdefs.h >>conftest.$ac_ext | |
14332 | cat >>conftest.$ac_ext <<_ACEOF | |
14333 | /* end confdefs.h. */ | |
14334 | ||
14335 | int | |
14336 | main () | |
14337 | { | |
14338 | /* FIXME: Include the comments suggested by Paul. */ | |
14339 | #ifndef __cplusplus | |
14340 | /* Ultrix mips cc rejects this. */ | |
14341 | typedef int charset[2]; | |
14342 | const charset x; | |
14343 | /* SunOS 4.1.1 cc rejects this. */ | |
14344 | char const *const *ccp; | |
14345 | char **p; | |
14346 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14347 | struct point {int x, y;}; | |
14348 | static struct point const zero = {0,0}; | |
14349 | /* AIX XL C 1.02.0.0 rejects this. | |
14350 | It does not let you subtract one const X* pointer from another in | |
14351 | an arm of an if-expression whose if-part is not a constant | |
14352 | expression */ | |
14353 | const char *g = "string"; | |
14354 | ccp = &g + (g ? g-g : 0); | |
14355 | /* HPUX 7.0 cc rejects these. */ | |
14356 | ++ccp; | |
14357 | p = (char**) ccp; | |
14358 | ccp = (char const *const *) p; | |
14359 | { /* SCO 3.2v4 cc rejects this. */ | |
14360 | char *t; | |
14361 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14362 | ||
14363 | *t++ = 0; | |
14364 | } | |
14365 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14366 | int x[] = {25, 17}; | |
14367 | const int *foo = &x[0]; | |
14368 | ++foo; | |
14369 | } | |
14370 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14371 | typedef const int *iptr; | |
14372 | iptr p = 0; | |
14373 | ++p; | |
14374 | } | |
14375 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14376 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14377 | struct s { int j; const int *ap[3]; }; | |
14378 | struct s *b; b->j = 5; | |
14379 | } | |
14380 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14381 | const int foo = 10; | |
14382 | } | |
14383 | #endif | |
14384 | ||
14385 | ; | |
14386 | return 0; | |
14387 | } | |
14388 | _ACEOF | |
14389 | rm -f conftest.$ac_objext | |
14390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14392 | ac_status=$? |
ac1cb8d3 VS |
14393 | grep -v '^ *+' conftest.er1 >conftest.err |
14394 | rm -f conftest.er1 | |
14395 | cat conftest.err >&5 | |
a848cd7e SC |
14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14397 | (exit $ac_status); } && | |
5294a27e | 14398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14400 | (eval $ac_try) 2>&5 | |
14401 | ac_status=$? | |
14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14403 | (exit $ac_status); }; } && | |
14404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14406 | (eval $ac_try) 2>&5 | |
14407 | ac_status=$? | |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14409 | (exit $ac_status); }; }; then | |
14410 | ac_cv_c_const=yes | |
14411 | else | |
14412 | echo "$as_me: failed program was:" >&5 | |
14413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14414 | ||
14415 | ac_cv_c_const=no | |
14416 | fi | |
ac1cb8d3 | 14417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14418 | fi |
14419 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14420 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14421 | if test $ac_cv_c_const = no; then | |
14422 | ||
14423 | cat >>confdefs.h <<\_ACEOF | |
14424 | #define const | |
14425 | _ACEOF | |
14426 | ||
14427 | fi | |
14428 | ||
14429 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14430 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14431 | if test "${ac_cv_c_inline+set}" = set; then | |
14432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14433 | else | |
14434 | ac_cv_c_inline=no | |
14435 | for ac_kw in inline __inline__ __inline; do | |
14436 | cat >conftest.$ac_ext <<_ACEOF | |
14437 | /* confdefs.h. */ | |
14438 | _ACEOF | |
14439 | cat confdefs.h >>conftest.$ac_ext | |
14440 | cat >>conftest.$ac_ext <<_ACEOF | |
14441 | /* end confdefs.h. */ | |
14442 | #ifndef __cplusplus | |
14443 | typedef int foo_t; | |
14444 | static $ac_kw foo_t static_foo () {return 0; } | |
14445 | $ac_kw foo_t foo () {return 0; } | |
14446 | #endif | |
14447 | ||
14448 | _ACEOF | |
14449 | rm -f conftest.$ac_objext | |
14450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14451 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14452 | ac_status=$? |
ac1cb8d3 VS |
14453 | grep -v '^ *+' conftest.er1 >conftest.err |
14454 | rm -f conftest.er1 | |
14455 | cat conftest.err >&5 | |
a848cd7e SC |
14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14457 | (exit $ac_status); } && | |
5294a27e | 14458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14460 | (eval $ac_try) 2>&5 | |
14461 | ac_status=$? | |
14462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14463 | (exit $ac_status); }; } && | |
14464 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14466 | (eval $ac_try) 2>&5 | |
14467 | ac_status=$? | |
14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14469 | (exit $ac_status); }; }; then | |
14470 | ac_cv_c_inline=$ac_kw; break | |
14471 | else | |
14472 | echo "$as_me: failed program was:" >&5 | |
14473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14474 | ||
14475 | fi | |
ac1cb8d3 | 14476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14477 | done |
14478 | ||
14479 | fi | |
14480 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14481 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14482 | |
14483 | ||
a848cd7e SC |
14484 | case $ac_cv_c_inline in |
14485 | inline | yes) ;; | |
ac1cb8d3 VS |
14486 | *) |
14487 | case $ac_cv_c_inline in | |
14488 | no) ac_val=;; | |
14489 | *) ac_val=$ac_cv_c_inline;; | |
14490 | esac | |
14491 | cat >>confdefs.h <<_ACEOF | |
14492 | #ifndef __cplusplus | |
14493 | #define inline $ac_val | |
14494 | #endif | |
de59c161 | 14495 | _ACEOF |
ac1cb8d3 | 14496 | ;; |
a848cd7e SC |
14497 | esac |
14498 | ||
14499 | ||
14500 | echo "$as_me:$LINENO: checking for char" >&5 | |
14501 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14502 | if test "${ac_cv_type_char+set}" = set; then | |
14503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14504 | else | |
14505 | cat >conftest.$ac_ext <<_ACEOF | |
14506 | /* confdefs.h. */ | |
14507 | _ACEOF | |
14508 | cat confdefs.h >>conftest.$ac_ext | |
14509 | cat >>conftest.$ac_ext <<_ACEOF | |
14510 | /* end confdefs.h. */ | |
14511 | $ac_includes_default | |
14512 | int | |
14513 | main () | |
14514 | { | |
14515 | if ((char *) 0) | |
14516 | return 0; | |
14517 | if (sizeof (char)) | |
14518 | return 0; | |
14519 | ; | |
14520 | return 0; | |
14521 | } | |
14522 | _ACEOF | |
14523 | rm -f conftest.$ac_objext | |
14524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14525 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14526 | ac_status=$? |
ac1cb8d3 VS |
14527 | grep -v '^ *+' conftest.er1 >conftest.err |
14528 | rm -f conftest.er1 | |
14529 | cat conftest.err >&5 | |
a848cd7e SC |
14530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14531 | (exit $ac_status); } && | |
5294a27e | 14532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14534 | (eval $ac_try) 2>&5 | |
14535 | ac_status=$? | |
14536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14537 | (exit $ac_status); }; } && | |
14538 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14540 | (eval $ac_try) 2>&5 | |
14541 | ac_status=$? | |
14542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14543 | (exit $ac_status); }; }; then | |
14544 | ac_cv_type_char=yes | |
14545 | else | |
14546 | echo "$as_me: failed program was:" >&5 | |
14547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14548 | ||
14549 | ac_cv_type_char=no | |
14550 | fi | |
ac1cb8d3 | 14551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14552 | fi |
14553 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14554 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14555 | ||
14556 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14557 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14558 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14560 | else | |
14561 | if test "$ac_cv_type_char" = yes; then | |
14562 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14563 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14564 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14565 | # This bug is HP SR number 8606223364. | |
14566 | if test "$cross_compiling" = yes; then | |
14567 | # Depending upon the size, compute the lo and hi bounds. | |
14568 | cat >conftest.$ac_ext <<_ACEOF | |
14569 | /* confdefs.h. */ | |
14570 | _ACEOF | |
14571 | cat confdefs.h >>conftest.$ac_ext | |
14572 | cat >>conftest.$ac_ext <<_ACEOF | |
14573 | /* end confdefs.h. */ | |
14574 | $ac_includes_default | |
14575 | int | |
14576 | main () | |
14577 | { | |
14578 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14579 | test_array [0] = 0 | |
14580 | ||
14581 | ; | |
14582 | return 0; | |
14583 | } | |
14584 | _ACEOF | |
14585 | rm -f conftest.$ac_objext | |
14586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14588 | ac_status=$? |
ac1cb8d3 VS |
14589 | grep -v '^ *+' conftest.er1 >conftest.err |
14590 | rm -f conftest.er1 | |
14591 | cat conftest.err >&5 | |
a848cd7e SC |
14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14593 | (exit $ac_status); } && | |
5294a27e | 14594 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14596 | (eval $ac_try) 2>&5 | |
14597 | ac_status=$? | |
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14599 | (exit $ac_status); }; } && | |
14600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14602 | (eval $ac_try) 2>&5 | |
14603 | ac_status=$? | |
14604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14605 | (exit $ac_status); }; }; then | |
14606 | ac_lo=0 ac_mid=0 | |
14607 | while :; do | |
14608 | cat >conftest.$ac_ext <<_ACEOF | |
14609 | /* confdefs.h. */ | |
14610 | _ACEOF | |
14611 | cat confdefs.h >>conftest.$ac_ext | |
14612 | cat >>conftest.$ac_ext <<_ACEOF | |
14613 | /* end confdefs.h. */ | |
14614 | $ac_includes_default | |
14615 | int | |
14616 | main () | |
14617 | { | |
14618 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14619 | test_array [0] = 0 | |
14620 | ||
14621 | ; | |
14622 | return 0; | |
14623 | } | |
14624 | _ACEOF | |
14625 | rm -f conftest.$ac_objext | |
14626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14627 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14628 | ac_status=$? |
ac1cb8d3 VS |
14629 | grep -v '^ *+' conftest.er1 >conftest.err |
14630 | rm -f conftest.er1 | |
14631 | cat conftest.err >&5 | |
a848cd7e SC |
14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14633 | (exit $ac_status); } && | |
5294a27e | 14634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14636 | (eval $ac_try) 2>&5 | |
14637 | ac_status=$? | |
14638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14639 | (exit $ac_status); }; } && | |
14640 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14642 | (eval $ac_try) 2>&5 | |
14643 | ac_status=$? | |
14644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14645 | (exit $ac_status); }; }; then | |
14646 | ac_hi=$ac_mid; break | |
14647 | else | |
14648 | echo "$as_me: failed program was:" >&5 | |
14649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14650 | ||
14651 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14652 | if test $ac_lo -le $ac_mid; then |
14653 | ac_lo= ac_hi= | |
14654 | break | |
14655 | fi | |
14656 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14657 | fi |
ac1cb8d3 | 14658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14659 | done |
14660 | else | |
14661 | echo "$as_me: failed program was:" >&5 | |
14662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14663 | ||
14664 | cat >conftest.$ac_ext <<_ACEOF | |
14665 | /* confdefs.h. */ | |
14666 | _ACEOF | |
14667 | cat confdefs.h >>conftest.$ac_ext | |
14668 | cat >>conftest.$ac_ext <<_ACEOF | |
14669 | /* end confdefs.h. */ | |
14670 | $ac_includes_default | |
14671 | int | |
14672 | main () | |
14673 | { | |
14674 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14675 | test_array [0] = 0 | |
14676 | ||
14677 | ; | |
14678 | return 0; | |
14679 | } | |
14680 | _ACEOF | |
14681 | rm -f conftest.$ac_objext | |
14682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14683 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14684 | ac_status=$? |
ac1cb8d3 VS |
14685 | grep -v '^ *+' conftest.er1 >conftest.err |
14686 | rm -f conftest.er1 | |
14687 | cat conftest.err >&5 | |
a848cd7e SC |
14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14689 | (exit $ac_status); } && | |
5294a27e | 14690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14692 | (eval $ac_try) 2>&5 | |
14693 | ac_status=$? | |
14694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14695 | (exit $ac_status); }; } && | |
14696 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14698 | (eval $ac_try) 2>&5 | |
14699 | ac_status=$? | |
14700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14701 | (exit $ac_status); }; }; then | |
14702 | ac_hi=-1 ac_mid=-1 | |
14703 | while :; do | |
14704 | cat >conftest.$ac_ext <<_ACEOF | |
14705 | /* confdefs.h. */ | |
14706 | _ACEOF | |
14707 | cat confdefs.h >>conftest.$ac_ext | |
14708 | cat >>conftest.$ac_ext <<_ACEOF | |
14709 | /* end confdefs.h. */ | |
14710 | $ac_includes_default | |
14711 | int | |
14712 | main () | |
14713 | { | |
14714 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14715 | test_array [0] = 0 | |
14716 | ||
14717 | ; | |
14718 | return 0; | |
14719 | } | |
14720 | _ACEOF | |
14721 | rm -f conftest.$ac_objext | |
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14723 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14724 | ac_status=$? |
ac1cb8d3 VS |
14725 | grep -v '^ *+' conftest.er1 >conftest.err |
14726 | rm -f conftest.er1 | |
14727 | cat conftest.err >&5 | |
a848cd7e SC |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14729 | (exit $ac_status); } && | |
5294a27e | 14730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14732 | (eval $ac_try) 2>&5 | |
14733 | ac_status=$? | |
14734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14735 | (exit $ac_status); }; } && | |
14736 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14738 | (eval $ac_try) 2>&5 | |
14739 | ac_status=$? | |
14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14741 | (exit $ac_status); }; }; then | |
14742 | ac_lo=$ac_mid; break | |
14743 | else | |
14744 | echo "$as_me: failed program was:" >&5 | |
14745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14746 | ||
14747 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14748 | if test $ac_mid -le $ac_hi; then |
14749 | ac_lo= ac_hi= | |
14750 | break | |
14751 | fi | |
14752 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14753 | fi |
ac1cb8d3 | 14754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14755 | done |
14756 | else | |
14757 | echo "$as_me: failed program was:" >&5 | |
14758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14759 | ||
14760 | ac_lo= ac_hi= | |
14761 | fi | |
ac1cb8d3 | 14762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14763 | fi |
ac1cb8d3 | 14764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14765 | # Binary search between lo and hi bounds. |
14766 | while test "x$ac_lo" != "x$ac_hi"; do | |
14767 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14768 | cat >conftest.$ac_ext <<_ACEOF | |
14769 | /* confdefs.h. */ | |
14770 | _ACEOF | |
14771 | cat confdefs.h >>conftest.$ac_ext | |
14772 | cat >>conftest.$ac_ext <<_ACEOF | |
14773 | /* end confdefs.h. */ | |
14774 | $ac_includes_default | |
14775 | int | |
14776 | main () | |
14777 | { | |
14778 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14779 | test_array [0] = 0 | |
14780 | ||
14781 | ; | |
14782 | return 0; | |
14783 | } | |
14784 | _ACEOF | |
14785 | rm -f conftest.$ac_objext | |
14786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14787 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14788 | ac_status=$? |
ac1cb8d3 VS |
14789 | grep -v '^ *+' conftest.er1 >conftest.err |
14790 | rm -f conftest.er1 | |
14791 | cat conftest.err >&5 | |
a848cd7e SC |
14792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14793 | (exit $ac_status); } && | |
5294a27e | 14794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14796 | (eval $ac_try) 2>&5 | |
14797 | ac_status=$? | |
14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14799 | (exit $ac_status); }; } && | |
14800 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14802 | (eval $ac_try) 2>&5 | |
14803 | ac_status=$? | |
14804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14805 | (exit $ac_status); }; }; then | |
14806 | ac_hi=$ac_mid | |
14807 | else | |
14808 | echo "$as_me: failed program was:" >&5 | |
14809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14810 | ||
14811 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14812 | fi | |
ac1cb8d3 | 14813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14814 | done |
14815 | case $ac_lo in | |
14816 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14817 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14818 | See \`config.log' for more details." >&5 | |
14819 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14820 | See \`config.log' for more details." >&2;} | |
14821 | { (exit 1); exit 1; }; } ;; | |
14822 | esac | |
14823 | else | |
14824 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
14825 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14826 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
14827 | { (exit 1); exit 1; }; } |
14828 | else | |
14829 | cat >conftest.$ac_ext <<_ACEOF | |
14830 | /* confdefs.h. */ | |
14831 | _ACEOF | |
14832 | cat confdefs.h >>conftest.$ac_ext | |
14833 | cat >>conftest.$ac_ext <<_ACEOF | |
14834 | /* end confdefs.h. */ | |
14835 | $ac_includes_default | |
14836 | long longval () { return (long) (sizeof (char)); } | |
14837 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14838 | #include <stdio.h> | |
14839 | #include <stdlib.h> | |
14840 | int | |
14841 | main () | |
14842 | { | |
14843 | ||
14844 | FILE *f = fopen ("conftest.val", "w"); | |
14845 | if (! f) | |
14846 | exit (1); | |
14847 | if (((long) (sizeof (char))) < 0) | |
14848 | { | |
14849 | long i = longval (); | |
14850 | if (i != ((long) (sizeof (char)))) | |
14851 | exit (1); | |
14852 | fprintf (f, "%ld\n", i); | |
14853 | } | |
14854 | else | |
14855 | { | |
14856 | unsigned long i = ulongval (); | |
14857 | if (i != ((long) (sizeof (char)))) | |
14858 | exit (1); | |
14859 | fprintf (f, "%lu\n", i); | |
14860 | } | |
14861 | exit (ferror (f) || fclose (f) != 0); | |
14862 | ||
14863 | ; | |
14864 | return 0; | |
14865 | } | |
14866 | _ACEOF | |
14867 | rm -f conftest$ac_exeext | |
14868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14869 | (eval $ac_link) 2>&5 | |
14870 | ac_status=$? | |
14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14872 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14874 | (eval $ac_try) 2>&5 | |
14875 | ac_status=$? | |
14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14877 | (exit $ac_status); }; }; then | |
14878 | ac_cv_sizeof_char=`cat conftest.val` | |
14879 | else | |
14880 | echo "$as_me: program exited with status $ac_status" >&5 | |
14881 | echo "$as_me: failed program was:" >&5 | |
14882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14883 | ||
14884 | ( exit $ac_status ) | |
14885 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14886 | See \`config.log' for more details." >&5 | |
14887 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14888 | See \`config.log' for more details." >&2;} | |
14889 | { (exit 1); exit 1; }; } | |
14890 | fi | |
ac1cb8d3 | 14891 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14892 | fi |
14893 | fi | |
14894 | rm -f conftest.val | |
14895 | else | |
14896 | ac_cv_sizeof_char=0 | |
14897 | fi | |
14898 | fi | |
14899 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14900 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14901 | cat >>confdefs.h <<_ACEOF | |
14902 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14903 | _ACEOF | |
14904 | ||
14905 | ||
14906 | echo "$as_me:$LINENO: checking for short" >&5 | |
14907 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14908 | if test "${ac_cv_type_short+set}" = set; then | |
14909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14910 | else | |
14911 | cat >conftest.$ac_ext <<_ACEOF | |
14912 | /* confdefs.h. */ | |
14913 | _ACEOF | |
14914 | cat confdefs.h >>conftest.$ac_ext | |
14915 | cat >>conftest.$ac_ext <<_ACEOF | |
14916 | /* end confdefs.h. */ | |
14917 | $ac_includes_default | |
14918 | int | |
14919 | main () | |
14920 | { | |
14921 | if ((short *) 0) | |
14922 | return 0; | |
14923 | if (sizeof (short)) | |
14924 | return 0; | |
14925 | ; | |
14926 | return 0; | |
14927 | } | |
14928 | _ACEOF | |
14929 | rm -f conftest.$ac_objext | |
14930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14931 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14932 | ac_status=$? |
ac1cb8d3 VS |
14933 | grep -v '^ *+' conftest.er1 >conftest.err |
14934 | rm -f conftest.er1 | |
14935 | cat conftest.err >&5 | |
a848cd7e SC |
14936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14937 | (exit $ac_status); } && | |
5294a27e | 14938 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14940 | (eval $ac_try) 2>&5 | |
14941 | ac_status=$? | |
14942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14943 | (exit $ac_status); }; } && | |
14944 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14946 | (eval $ac_try) 2>&5 | |
14947 | ac_status=$? | |
14948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14949 | (exit $ac_status); }; }; then | |
14950 | ac_cv_type_short=yes | |
14951 | else | |
14952 | echo "$as_me: failed program was:" >&5 | |
14953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14954 | ||
14955 | ac_cv_type_short=no | |
14956 | fi | |
ac1cb8d3 | 14957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14958 | fi |
14959 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14960 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14961 | ||
14962 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14963 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14964 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14966 | else | |
14967 | if test "$ac_cv_type_short" = yes; then | |
14968 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14969 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14970 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14971 | # This bug is HP SR number 8606223364. | |
14972 | if test "$cross_compiling" = yes; then | |
14973 | # Depending upon the size, compute the lo and hi bounds. | |
14974 | cat >conftest.$ac_ext <<_ACEOF | |
14975 | /* confdefs.h. */ | |
14976 | _ACEOF | |
14977 | cat confdefs.h >>conftest.$ac_ext | |
14978 | cat >>conftest.$ac_ext <<_ACEOF | |
14979 | /* end confdefs.h. */ | |
14980 | $ac_includes_default | |
14981 | int | |
14982 | main () | |
14983 | { | |
14984 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14985 | test_array [0] = 0 | |
14986 | ||
14987 | ; | |
14988 | return 0; | |
14989 | } | |
14990 | _ACEOF | |
14991 | rm -f conftest.$ac_objext | |
14992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14993 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14994 | ac_status=$? |
ac1cb8d3 VS |
14995 | grep -v '^ *+' conftest.er1 >conftest.err |
14996 | rm -f conftest.er1 | |
14997 | cat conftest.err >&5 | |
a848cd7e SC |
14998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14999 | (exit $ac_status); } && | |
5294a27e | 15000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15002 | (eval $ac_try) 2>&5 | |
15003 | ac_status=$? | |
15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15005 | (exit $ac_status); }; } && | |
15006 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15008 | (eval $ac_try) 2>&5 | |
15009 | ac_status=$? | |
15010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15011 | (exit $ac_status); }; }; then | |
15012 | ac_lo=0 ac_mid=0 | |
15013 | while :; do | |
15014 | cat >conftest.$ac_ext <<_ACEOF | |
15015 | /* confdefs.h. */ | |
15016 | _ACEOF | |
15017 | cat confdefs.h >>conftest.$ac_ext | |
15018 | cat >>conftest.$ac_ext <<_ACEOF | |
15019 | /* end confdefs.h. */ | |
15020 | $ac_includes_default | |
15021 | int | |
15022 | main () | |
15023 | { | |
15024 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15025 | test_array [0] = 0 | |
15026 | ||
15027 | ; | |
15028 | return 0; | |
15029 | } | |
15030 | _ACEOF | |
15031 | rm -f conftest.$ac_objext | |
15032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15033 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15034 | ac_status=$? |
ac1cb8d3 VS |
15035 | grep -v '^ *+' conftest.er1 >conftest.err |
15036 | rm -f conftest.er1 | |
15037 | cat conftest.err >&5 | |
a848cd7e SC |
15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15039 | (exit $ac_status); } && | |
5294a27e | 15040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15042 | (eval $ac_try) 2>&5 | |
15043 | ac_status=$? | |
15044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15045 | (exit $ac_status); }; } && | |
15046 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15048 | (eval $ac_try) 2>&5 | |
15049 | ac_status=$? | |
15050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15051 | (exit $ac_status); }; }; then | |
15052 | ac_hi=$ac_mid; break | |
15053 | else | |
15054 | echo "$as_me: failed program was:" >&5 | |
15055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15056 | ||
15057 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15058 | if test $ac_lo -le $ac_mid; then |
15059 | ac_lo= ac_hi= | |
15060 | break | |
15061 | fi | |
15062 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15063 | fi |
ac1cb8d3 | 15064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15065 | done |
15066 | else | |
15067 | echo "$as_me: failed program was:" >&5 | |
15068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15069 | ||
15070 | cat >conftest.$ac_ext <<_ACEOF | |
15071 | /* confdefs.h. */ | |
15072 | _ACEOF | |
15073 | cat confdefs.h >>conftest.$ac_ext | |
15074 | cat >>conftest.$ac_ext <<_ACEOF | |
15075 | /* end confdefs.h. */ | |
15076 | $ac_includes_default | |
15077 | int | |
15078 | main () | |
15079 | { | |
15080 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15081 | test_array [0] = 0 | |
15082 | ||
15083 | ; | |
15084 | return 0; | |
15085 | } | |
15086 | _ACEOF | |
15087 | rm -f conftest.$ac_objext | |
15088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15089 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15090 | ac_status=$? |
ac1cb8d3 VS |
15091 | grep -v '^ *+' conftest.er1 >conftest.err |
15092 | rm -f conftest.er1 | |
15093 | cat conftest.err >&5 | |
a848cd7e SC |
15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15095 | (exit $ac_status); } && | |
5294a27e | 15096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15098 | (eval $ac_try) 2>&5 | |
15099 | ac_status=$? | |
15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15101 | (exit $ac_status); }; } && | |
15102 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15104 | (eval $ac_try) 2>&5 | |
15105 | ac_status=$? | |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15107 | (exit $ac_status); }; }; then | |
15108 | ac_hi=-1 ac_mid=-1 | |
15109 | while :; do | |
15110 | cat >conftest.$ac_ext <<_ACEOF | |
15111 | /* confdefs.h. */ | |
15112 | _ACEOF | |
15113 | cat confdefs.h >>conftest.$ac_ext | |
15114 | cat >>conftest.$ac_ext <<_ACEOF | |
15115 | /* end confdefs.h. */ | |
15116 | $ac_includes_default | |
15117 | int | |
15118 | main () | |
15119 | { | |
15120 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15121 | test_array [0] = 0 | |
15122 | ||
15123 | ; | |
15124 | return 0; | |
15125 | } | |
15126 | _ACEOF | |
15127 | rm -f conftest.$ac_objext | |
15128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15129 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15130 | ac_status=$? |
ac1cb8d3 VS |
15131 | grep -v '^ *+' conftest.er1 >conftest.err |
15132 | rm -f conftest.er1 | |
15133 | cat conftest.err >&5 | |
a848cd7e SC |
15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15135 | (exit $ac_status); } && | |
5294a27e | 15136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15138 | (eval $ac_try) 2>&5 | |
15139 | ac_status=$? | |
15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15141 | (exit $ac_status); }; } && | |
15142 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15144 | (eval $ac_try) 2>&5 | |
15145 | ac_status=$? | |
15146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15147 | (exit $ac_status); }; }; then | |
15148 | ac_lo=$ac_mid; break | |
15149 | else | |
15150 | echo "$as_me: failed program was:" >&5 | |
15151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15152 | ||
15153 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15154 | if test $ac_mid -le $ac_hi; then |
15155 | ac_lo= ac_hi= | |
15156 | break | |
15157 | fi | |
15158 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15159 | fi |
ac1cb8d3 | 15160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15161 | done |
15162 | else | |
15163 | echo "$as_me: failed program was:" >&5 | |
15164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15165 | ||
15166 | ac_lo= ac_hi= | |
15167 | fi | |
ac1cb8d3 | 15168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15169 | fi |
ac1cb8d3 | 15170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15171 | # Binary search between lo and hi bounds. |
15172 | while test "x$ac_lo" != "x$ac_hi"; do | |
15173 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15174 | cat >conftest.$ac_ext <<_ACEOF | |
15175 | /* confdefs.h. */ | |
15176 | _ACEOF | |
15177 | cat confdefs.h >>conftest.$ac_ext | |
15178 | cat >>conftest.$ac_ext <<_ACEOF | |
15179 | /* end confdefs.h. */ | |
15180 | $ac_includes_default | |
15181 | int | |
15182 | main () | |
15183 | { | |
15184 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15185 | test_array [0] = 0 | |
15186 | ||
15187 | ; | |
15188 | return 0; | |
15189 | } | |
15190 | _ACEOF | |
15191 | rm -f conftest.$ac_objext | |
15192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15193 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15194 | ac_status=$? |
ac1cb8d3 VS |
15195 | grep -v '^ *+' conftest.er1 >conftest.err |
15196 | rm -f conftest.er1 | |
15197 | cat conftest.err >&5 | |
a848cd7e SC |
15198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15199 | (exit $ac_status); } && | |
5294a27e | 15200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15202 | (eval $ac_try) 2>&5 | |
15203 | ac_status=$? | |
15204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15205 | (exit $ac_status); }; } && | |
15206 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15208 | (eval $ac_try) 2>&5 | |
15209 | ac_status=$? | |
15210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15211 | (exit $ac_status); }; }; then | |
15212 | ac_hi=$ac_mid | |
15213 | else | |
15214 | echo "$as_me: failed program was:" >&5 | |
15215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15216 | ||
15217 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15218 | fi | |
ac1cb8d3 | 15219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15220 | done |
15221 | case $ac_lo in | |
15222 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15223 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15224 | See \`config.log' for more details." >&5 | |
15225 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15226 | See \`config.log' for more details." >&2;} | |
15227 | { (exit 1); exit 1; }; } ;; | |
15228 | esac | |
15229 | else | |
15230 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
15231 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15232 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15233 | { (exit 1); exit 1; }; } |
15234 | else | |
15235 | cat >conftest.$ac_ext <<_ACEOF | |
15236 | /* confdefs.h. */ | |
15237 | _ACEOF | |
15238 | cat confdefs.h >>conftest.$ac_ext | |
15239 | cat >>conftest.$ac_ext <<_ACEOF | |
15240 | /* end confdefs.h. */ | |
15241 | $ac_includes_default | |
15242 | long longval () { return (long) (sizeof (short)); } | |
15243 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15244 | #include <stdio.h> | |
15245 | #include <stdlib.h> | |
15246 | int | |
15247 | main () | |
15248 | { | |
15249 | ||
15250 | FILE *f = fopen ("conftest.val", "w"); | |
15251 | if (! f) | |
15252 | exit (1); | |
15253 | if (((long) (sizeof (short))) < 0) | |
15254 | { | |
15255 | long i = longval (); | |
15256 | if (i != ((long) (sizeof (short)))) | |
15257 | exit (1); | |
15258 | fprintf (f, "%ld\n", i); | |
15259 | } | |
15260 | else | |
15261 | { | |
15262 | unsigned long i = ulongval (); | |
15263 | if (i != ((long) (sizeof (short)))) | |
15264 | exit (1); | |
15265 | fprintf (f, "%lu\n", i); | |
15266 | } | |
15267 | exit (ferror (f) || fclose (f) != 0); | |
15268 | ||
15269 | ; | |
15270 | return 0; | |
15271 | } | |
15272 | _ACEOF | |
15273 | rm -f conftest$ac_exeext | |
15274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15275 | (eval $ac_link) 2>&5 | |
15276 | ac_status=$? | |
15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15278 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15280 | (eval $ac_try) 2>&5 | |
15281 | ac_status=$? | |
15282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15283 | (exit $ac_status); }; }; then | |
15284 | ac_cv_sizeof_short=`cat conftest.val` | |
15285 | else | |
15286 | echo "$as_me: program exited with status $ac_status" >&5 | |
15287 | echo "$as_me: failed program was:" >&5 | |
15288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15289 | ||
15290 | ( exit $ac_status ) | |
15291 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15292 | See \`config.log' for more details." >&5 | |
15293 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15294 | See \`config.log' for more details." >&2;} | |
15295 | { (exit 1); exit 1; }; } | |
15296 | fi | |
ac1cb8d3 | 15297 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15298 | fi |
15299 | fi | |
15300 | rm -f conftest.val | |
15301 | else | |
15302 | ac_cv_sizeof_short=0 | |
15303 | fi | |
15304 | fi | |
15305 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15306 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15307 | cat >>confdefs.h <<_ACEOF | |
15308 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15309 | _ACEOF | |
15310 | ||
15311 | ||
15312 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15313 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15314 | if test "${ac_cv_type_void_p+set}" = set; then | |
15315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15316 | else | |
15317 | cat >conftest.$ac_ext <<_ACEOF | |
15318 | /* confdefs.h. */ | |
15319 | _ACEOF | |
15320 | cat confdefs.h >>conftest.$ac_ext | |
15321 | cat >>conftest.$ac_ext <<_ACEOF | |
15322 | /* end confdefs.h. */ | |
15323 | $ac_includes_default | |
15324 | int | |
15325 | main () | |
15326 | { | |
15327 | if ((void * *) 0) | |
15328 | return 0; | |
15329 | if (sizeof (void *)) | |
15330 | return 0; | |
15331 | ; | |
15332 | return 0; | |
15333 | } | |
15334 | _ACEOF | |
15335 | rm -f conftest.$ac_objext | |
15336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15338 | ac_status=$? |
ac1cb8d3 VS |
15339 | grep -v '^ *+' conftest.er1 >conftest.err |
15340 | rm -f conftest.er1 | |
15341 | cat conftest.err >&5 | |
a848cd7e SC |
15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15343 | (exit $ac_status); } && | |
5294a27e | 15344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15346 | (eval $ac_try) 2>&5 | |
15347 | ac_status=$? | |
15348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15349 | (exit $ac_status); }; } && | |
15350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15352 | (eval $ac_try) 2>&5 | |
15353 | ac_status=$? | |
15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15355 | (exit $ac_status); }; }; then | |
15356 | ac_cv_type_void_p=yes | |
15357 | else | |
15358 | echo "$as_me: failed program was:" >&5 | |
15359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15360 | ||
15361 | ac_cv_type_void_p=no | |
15362 | fi | |
ac1cb8d3 | 15363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15364 | fi |
15365 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15366 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15367 | ||
15368 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15369 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15370 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15372 | else | |
15373 | if test "$ac_cv_type_void_p" = yes; then | |
15374 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15375 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15376 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15377 | # This bug is HP SR number 8606223364. | |
15378 | if test "$cross_compiling" = yes; then | |
15379 | # Depending upon the size, compute the lo and hi bounds. | |
15380 | cat >conftest.$ac_ext <<_ACEOF | |
15381 | /* confdefs.h. */ | |
15382 | _ACEOF | |
15383 | cat confdefs.h >>conftest.$ac_ext | |
15384 | cat >>conftest.$ac_ext <<_ACEOF | |
15385 | /* end confdefs.h. */ | |
15386 | $ac_includes_default | |
15387 | int | |
15388 | main () | |
15389 | { | |
15390 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15391 | test_array [0] = 0 | |
15392 | ||
15393 | ; | |
15394 | return 0; | |
15395 | } | |
15396 | _ACEOF | |
15397 | rm -f conftest.$ac_objext | |
15398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15399 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15400 | ac_status=$? |
ac1cb8d3 VS |
15401 | grep -v '^ *+' conftest.er1 >conftest.err |
15402 | rm -f conftest.er1 | |
15403 | cat conftest.err >&5 | |
a848cd7e SC |
15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15405 | (exit $ac_status); } && | |
5294a27e | 15406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15408 | (eval $ac_try) 2>&5 | |
15409 | ac_status=$? | |
15410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15411 | (exit $ac_status); }; } && | |
15412 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15414 | (eval $ac_try) 2>&5 | |
15415 | ac_status=$? | |
15416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15417 | (exit $ac_status); }; }; then | |
15418 | ac_lo=0 ac_mid=0 | |
15419 | while :; do | |
15420 | cat >conftest.$ac_ext <<_ACEOF | |
15421 | /* confdefs.h. */ | |
15422 | _ACEOF | |
15423 | cat confdefs.h >>conftest.$ac_ext | |
15424 | cat >>conftest.$ac_ext <<_ACEOF | |
15425 | /* end confdefs.h. */ | |
15426 | $ac_includes_default | |
15427 | int | |
15428 | main () | |
15429 | { | |
15430 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15431 | test_array [0] = 0 | |
15432 | ||
15433 | ; | |
15434 | return 0; | |
15435 | } | |
15436 | _ACEOF | |
15437 | rm -f conftest.$ac_objext | |
15438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15440 | ac_status=$? |
ac1cb8d3 VS |
15441 | grep -v '^ *+' conftest.er1 >conftest.err |
15442 | rm -f conftest.er1 | |
15443 | cat conftest.err >&5 | |
a848cd7e SC |
15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15445 | (exit $ac_status); } && | |
5294a27e | 15446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15448 | (eval $ac_try) 2>&5 | |
15449 | ac_status=$? | |
15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15451 | (exit $ac_status); }; } && | |
15452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15454 | (eval $ac_try) 2>&5 | |
15455 | ac_status=$? | |
15456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15457 | (exit $ac_status); }; }; then | |
15458 | ac_hi=$ac_mid; break | |
15459 | else | |
15460 | echo "$as_me: failed program was:" >&5 | |
15461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15462 | ||
15463 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15464 | if test $ac_lo -le $ac_mid; then |
15465 | ac_lo= ac_hi= | |
15466 | break | |
15467 | fi | |
15468 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15469 | fi |
ac1cb8d3 | 15470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15471 | done |
15472 | else | |
15473 | echo "$as_me: failed program was:" >&5 | |
15474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15475 | ||
15476 | cat >conftest.$ac_ext <<_ACEOF | |
15477 | /* confdefs.h. */ | |
15478 | _ACEOF | |
15479 | cat confdefs.h >>conftest.$ac_ext | |
15480 | cat >>conftest.$ac_ext <<_ACEOF | |
15481 | /* end confdefs.h. */ | |
15482 | $ac_includes_default | |
15483 | int | |
15484 | main () | |
15485 | { | |
15486 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15487 | test_array [0] = 0 | |
15488 | ||
15489 | ; | |
15490 | return 0; | |
15491 | } | |
15492 | _ACEOF | |
15493 | rm -f conftest.$ac_objext | |
15494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15495 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15496 | ac_status=$? |
ac1cb8d3 VS |
15497 | grep -v '^ *+' conftest.er1 >conftest.err |
15498 | rm -f conftest.er1 | |
15499 | cat conftest.err >&5 | |
a848cd7e SC |
15500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15501 | (exit $ac_status); } && | |
5294a27e | 15502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15504 | (eval $ac_try) 2>&5 | |
15505 | ac_status=$? | |
15506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15507 | (exit $ac_status); }; } && | |
15508 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15510 | (eval $ac_try) 2>&5 | |
15511 | ac_status=$? | |
15512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15513 | (exit $ac_status); }; }; then | |
15514 | ac_hi=-1 ac_mid=-1 | |
15515 | while :; do | |
15516 | cat >conftest.$ac_ext <<_ACEOF | |
15517 | /* confdefs.h. */ | |
15518 | _ACEOF | |
15519 | cat confdefs.h >>conftest.$ac_ext | |
15520 | cat >>conftest.$ac_ext <<_ACEOF | |
15521 | /* end confdefs.h. */ | |
15522 | $ac_includes_default | |
15523 | int | |
15524 | main () | |
15525 | { | |
15526 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15527 | test_array [0] = 0 | |
15528 | ||
15529 | ; | |
15530 | return 0; | |
15531 | } | |
15532 | _ACEOF | |
15533 | rm -f conftest.$ac_objext | |
15534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15535 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15536 | ac_status=$? |
ac1cb8d3 VS |
15537 | grep -v '^ *+' conftest.er1 >conftest.err |
15538 | rm -f conftest.er1 | |
15539 | cat conftest.err >&5 | |
a848cd7e SC |
15540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15541 | (exit $ac_status); } && | |
5294a27e | 15542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15544 | (eval $ac_try) 2>&5 | |
15545 | ac_status=$? | |
15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15547 | (exit $ac_status); }; } && | |
15548 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15550 | (eval $ac_try) 2>&5 | |
15551 | ac_status=$? | |
15552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15553 | (exit $ac_status); }; }; then | |
15554 | ac_lo=$ac_mid; break | |
15555 | else | |
15556 | echo "$as_me: failed program was:" >&5 | |
15557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15558 | ||
15559 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15560 | if test $ac_mid -le $ac_hi; then |
15561 | ac_lo= ac_hi= | |
15562 | break | |
15563 | fi | |
15564 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15565 | fi |
ac1cb8d3 | 15566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15567 | done |
15568 | else | |
15569 | echo "$as_me: failed program was:" >&5 | |
15570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15571 | ||
15572 | ac_lo= ac_hi= | |
15573 | fi | |
ac1cb8d3 | 15574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15575 | fi |
ac1cb8d3 | 15576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15577 | # Binary search between lo and hi bounds. |
15578 | while test "x$ac_lo" != "x$ac_hi"; do | |
15579 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15580 | cat >conftest.$ac_ext <<_ACEOF | |
15581 | /* confdefs.h. */ | |
15582 | _ACEOF | |
15583 | cat confdefs.h >>conftest.$ac_ext | |
15584 | cat >>conftest.$ac_ext <<_ACEOF | |
15585 | /* end confdefs.h. */ | |
15586 | $ac_includes_default | |
15587 | int | |
15588 | main () | |
15589 | { | |
15590 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15591 | test_array [0] = 0 | |
15592 | ||
15593 | ; | |
15594 | return 0; | |
15595 | } | |
15596 | _ACEOF | |
15597 | rm -f conftest.$ac_objext | |
15598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15599 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15600 | ac_status=$? |
ac1cb8d3 VS |
15601 | grep -v '^ *+' conftest.er1 >conftest.err |
15602 | rm -f conftest.er1 | |
15603 | cat conftest.err >&5 | |
a848cd7e SC |
15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15605 | (exit $ac_status); } && | |
5294a27e | 15606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15608 | (eval $ac_try) 2>&5 | |
15609 | ac_status=$? | |
15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15611 | (exit $ac_status); }; } && | |
15612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15614 | (eval $ac_try) 2>&5 | |
15615 | ac_status=$? | |
15616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15617 | (exit $ac_status); }; }; then | |
15618 | ac_hi=$ac_mid | |
15619 | else | |
15620 | echo "$as_me: failed program was:" >&5 | |
15621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15622 | ||
15623 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15624 | fi | |
ac1cb8d3 | 15625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15626 | done |
15627 | case $ac_lo in | |
15628 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15629 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15630 | See \`config.log' for more details." >&5 | |
15631 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15632 | See \`config.log' for more details." >&2;} | |
15633 | { (exit 1); exit 1; }; } ;; | |
15634 | esac | |
15635 | else | |
15636 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
15637 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15638 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15639 | { (exit 1); exit 1; }; } |
15640 | else | |
15641 | cat >conftest.$ac_ext <<_ACEOF | |
15642 | /* confdefs.h. */ | |
15643 | _ACEOF | |
15644 | cat confdefs.h >>conftest.$ac_ext | |
15645 | cat >>conftest.$ac_ext <<_ACEOF | |
15646 | /* end confdefs.h. */ | |
15647 | $ac_includes_default | |
15648 | long longval () { return (long) (sizeof (void *)); } | |
15649 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15650 | #include <stdio.h> | |
15651 | #include <stdlib.h> | |
15652 | int | |
15653 | main () | |
15654 | { | |
15655 | ||
15656 | FILE *f = fopen ("conftest.val", "w"); | |
15657 | if (! f) | |
15658 | exit (1); | |
15659 | if (((long) (sizeof (void *))) < 0) | |
15660 | { | |
15661 | long i = longval (); | |
15662 | if (i != ((long) (sizeof (void *)))) | |
15663 | exit (1); | |
15664 | fprintf (f, "%ld\n", i); | |
15665 | } | |
15666 | else | |
15667 | { | |
15668 | unsigned long i = ulongval (); | |
15669 | if (i != ((long) (sizeof (void *)))) | |
15670 | exit (1); | |
15671 | fprintf (f, "%lu\n", i); | |
15672 | } | |
15673 | exit (ferror (f) || fclose (f) != 0); | |
15674 | ||
15675 | ; | |
15676 | return 0; | |
15677 | } | |
15678 | _ACEOF | |
15679 | rm -f conftest$ac_exeext | |
15680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15681 | (eval $ac_link) 2>&5 | |
15682 | ac_status=$? | |
15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15686 | (eval $ac_try) 2>&5 | |
15687 | ac_status=$? | |
15688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15689 | (exit $ac_status); }; }; then | |
15690 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15691 | else | |
15692 | echo "$as_me: program exited with status $ac_status" >&5 | |
15693 | echo "$as_me: failed program was:" >&5 | |
15694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15695 | ||
15696 | ( exit $ac_status ) | |
15697 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15698 | See \`config.log' for more details." >&5 | |
15699 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15700 | See \`config.log' for more details." >&2;} | |
15701 | { (exit 1); exit 1; }; } | |
15702 | fi | |
ac1cb8d3 | 15703 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15704 | fi |
15705 | fi | |
15706 | rm -f conftest.val | |
15707 | else | |
15708 | ac_cv_sizeof_void_p=0 | |
15709 | fi | |
15710 | fi | |
15711 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15712 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15713 | cat >>confdefs.h <<_ACEOF | |
15714 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15715 | _ACEOF | |
15716 | ||
15717 | ||
15718 | echo "$as_me:$LINENO: checking for int" >&5 | |
15719 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15720 | if test "${ac_cv_type_int+set}" = set; then | |
15721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15722 | else | |
15723 | cat >conftest.$ac_ext <<_ACEOF | |
15724 | /* confdefs.h. */ | |
15725 | _ACEOF | |
15726 | cat confdefs.h >>conftest.$ac_ext | |
15727 | cat >>conftest.$ac_ext <<_ACEOF | |
15728 | /* end confdefs.h. */ | |
15729 | $ac_includes_default | |
15730 | int | |
15731 | main () | |
15732 | { | |
15733 | if ((int *) 0) | |
15734 | return 0; | |
15735 | if (sizeof (int)) | |
15736 | return 0; | |
15737 | ; | |
15738 | return 0; | |
15739 | } | |
15740 | _ACEOF | |
15741 | rm -f conftest.$ac_objext | |
15742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15743 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15744 | ac_status=$? |
ac1cb8d3 VS |
15745 | grep -v '^ *+' conftest.er1 >conftest.err |
15746 | rm -f conftest.er1 | |
15747 | cat conftest.err >&5 | |
a848cd7e SC |
15748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15749 | (exit $ac_status); } && | |
5294a27e | 15750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15752 | (eval $ac_try) 2>&5 | |
15753 | ac_status=$? | |
15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15755 | (exit $ac_status); }; } && | |
15756 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15758 | (eval $ac_try) 2>&5 | |
15759 | ac_status=$? | |
15760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15761 | (exit $ac_status); }; }; then | |
15762 | ac_cv_type_int=yes | |
15763 | else | |
15764 | echo "$as_me: failed program was:" >&5 | |
15765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15766 | ||
15767 | ac_cv_type_int=no | |
15768 | fi | |
ac1cb8d3 | 15769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15770 | fi |
15771 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15772 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15773 | ||
15774 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15775 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15776 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15778 | else | |
15779 | if test "$ac_cv_type_int" = yes; then | |
15780 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15781 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15782 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15783 | # This bug is HP SR number 8606223364. | |
15784 | if test "$cross_compiling" = yes; then | |
15785 | # Depending upon the size, compute the lo and hi bounds. | |
15786 | cat >conftest.$ac_ext <<_ACEOF | |
15787 | /* confdefs.h. */ | |
15788 | _ACEOF | |
15789 | cat confdefs.h >>conftest.$ac_ext | |
15790 | cat >>conftest.$ac_ext <<_ACEOF | |
15791 | /* end confdefs.h. */ | |
15792 | $ac_includes_default | |
15793 | int | |
15794 | main () | |
15795 | { | |
15796 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15797 | test_array [0] = 0 | |
15798 | ||
15799 | ; | |
15800 | return 0; | |
15801 | } | |
15802 | _ACEOF | |
15803 | rm -f conftest.$ac_objext | |
15804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15805 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15806 | ac_status=$? |
ac1cb8d3 VS |
15807 | grep -v '^ *+' conftest.er1 >conftest.err |
15808 | rm -f conftest.er1 | |
15809 | cat conftest.err >&5 | |
a848cd7e SC |
15810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15811 | (exit $ac_status); } && | |
5294a27e | 15812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15814 | (eval $ac_try) 2>&5 | |
15815 | ac_status=$? | |
15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15817 | (exit $ac_status); }; } && | |
15818 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15820 | (eval $ac_try) 2>&5 | |
15821 | ac_status=$? | |
15822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15823 | (exit $ac_status); }; }; then | |
15824 | ac_lo=0 ac_mid=0 | |
15825 | while :; do | |
15826 | cat >conftest.$ac_ext <<_ACEOF | |
15827 | /* confdefs.h. */ | |
15828 | _ACEOF | |
15829 | cat confdefs.h >>conftest.$ac_ext | |
15830 | cat >>conftest.$ac_ext <<_ACEOF | |
15831 | /* end confdefs.h. */ | |
15832 | $ac_includes_default | |
15833 | int | |
15834 | main () | |
15835 | { | |
15836 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15837 | test_array [0] = 0 | |
15838 | ||
15839 | ; | |
15840 | return 0; | |
15841 | } | |
15842 | _ACEOF | |
15843 | rm -f conftest.$ac_objext | |
15844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15845 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15846 | ac_status=$? |
ac1cb8d3 VS |
15847 | grep -v '^ *+' conftest.er1 >conftest.err |
15848 | rm -f conftest.er1 | |
15849 | cat conftest.err >&5 | |
a848cd7e SC |
15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15851 | (exit $ac_status); } && | |
5294a27e | 15852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15854 | (eval $ac_try) 2>&5 | |
15855 | ac_status=$? | |
15856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15857 | (exit $ac_status); }; } && | |
15858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15860 | (eval $ac_try) 2>&5 | |
15861 | ac_status=$? | |
15862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15863 | (exit $ac_status); }; }; then | |
15864 | ac_hi=$ac_mid; break | |
15865 | else | |
15866 | echo "$as_me: failed program was:" >&5 | |
15867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15868 | ||
15869 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15870 | if test $ac_lo -le $ac_mid; then |
15871 | ac_lo= ac_hi= | |
15872 | break | |
15873 | fi | |
15874 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15875 | fi |
ac1cb8d3 | 15876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15877 | done |
15878 | else | |
15879 | echo "$as_me: failed program was:" >&5 | |
15880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15881 | ||
15882 | cat >conftest.$ac_ext <<_ACEOF | |
15883 | /* confdefs.h. */ | |
15884 | _ACEOF | |
15885 | cat confdefs.h >>conftest.$ac_ext | |
15886 | cat >>conftest.$ac_ext <<_ACEOF | |
15887 | /* end confdefs.h. */ | |
15888 | $ac_includes_default | |
15889 | int | |
15890 | main () | |
15891 | { | |
15892 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15893 | test_array [0] = 0 | |
15894 | ||
15895 | ; | |
15896 | return 0; | |
15897 | } | |
15898 | _ACEOF | |
15899 | rm -f conftest.$ac_objext | |
15900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15901 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15902 | ac_status=$? |
ac1cb8d3 VS |
15903 | grep -v '^ *+' conftest.er1 >conftest.err |
15904 | rm -f conftest.er1 | |
15905 | cat conftest.err >&5 | |
a848cd7e SC |
15906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15907 | (exit $ac_status); } && | |
5294a27e | 15908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15910 | (eval $ac_try) 2>&5 | |
15911 | ac_status=$? | |
15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15913 | (exit $ac_status); }; } && | |
15914 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15916 | (eval $ac_try) 2>&5 | |
15917 | ac_status=$? | |
15918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15919 | (exit $ac_status); }; }; then | |
15920 | ac_hi=-1 ac_mid=-1 | |
15921 | while :; do | |
15922 | cat >conftest.$ac_ext <<_ACEOF | |
15923 | /* confdefs.h. */ | |
15924 | _ACEOF | |
15925 | cat confdefs.h >>conftest.$ac_ext | |
15926 | cat >>conftest.$ac_ext <<_ACEOF | |
15927 | /* end confdefs.h. */ | |
15928 | $ac_includes_default | |
15929 | int | |
15930 | main () | |
15931 | { | |
15932 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15933 | test_array [0] = 0 | |
15934 | ||
15935 | ; | |
15936 | return 0; | |
15937 | } | |
15938 | _ACEOF | |
15939 | rm -f conftest.$ac_objext | |
15940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15941 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15942 | ac_status=$? |
ac1cb8d3 VS |
15943 | grep -v '^ *+' conftest.er1 >conftest.err |
15944 | rm -f conftest.er1 | |
15945 | cat conftest.err >&5 | |
a848cd7e SC |
15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15947 | (exit $ac_status); } && | |
5294a27e | 15948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15950 | (eval $ac_try) 2>&5 | |
15951 | ac_status=$? | |
15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15953 | (exit $ac_status); }; } && | |
15954 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15956 | (eval $ac_try) 2>&5 | |
15957 | ac_status=$? | |
15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15959 | (exit $ac_status); }; }; then | |
15960 | ac_lo=$ac_mid; break | |
15961 | else | |
15962 | echo "$as_me: failed program was:" >&5 | |
15963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15964 | ||
15965 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15966 | if test $ac_mid -le $ac_hi; then |
15967 | ac_lo= ac_hi= | |
15968 | break | |
15969 | fi | |
15970 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15971 | fi |
ac1cb8d3 | 15972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15973 | done |
15974 | else | |
15975 | echo "$as_me: failed program was:" >&5 | |
15976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15977 | ||
15978 | ac_lo= ac_hi= | |
15979 | fi | |
ac1cb8d3 | 15980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15981 | fi |
ac1cb8d3 | 15982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15983 | # Binary search between lo and hi bounds. |
15984 | while test "x$ac_lo" != "x$ac_hi"; do | |
15985 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15986 | cat >conftest.$ac_ext <<_ACEOF | |
15987 | /* confdefs.h. */ | |
15988 | _ACEOF | |
15989 | cat confdefs.h >>conftest.$ac_ext | |
15990 | cat >>conftest.$ac_ext <<_ACEOF | |
15991 | /* end confdefs.h. */ | |
15992 | $ac_includes_default | |
15993 | int | |
15994 | main () | |
15995 | { | |
15996 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15997 | test_array [0] = 0 | |
15998 | ||
15999 | ; | |
16000 | return 0; | |
16001 | } | |
16002 | _ACEOF | |
16003 | rm -f conftest.$ac_objext | |
16004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16005 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16006 | ac_status=$? |
ac1cb8d3 VS |
16007 | grep -v '^ *+' conftest.er1 >conftest.err |
16008 | rm -f conftest.er1 | |
16009 | cat conftest.err >&5 | |
a848cd7e SC |
16010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16011 | (exit $ac_status); } && | |
5294a27e | 16012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16014 | (eval $ac_try) 2>&5 | |
16015 | ac_status=$? | |
16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16017 | (exit $ac_status); }; } && | |
16018 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16020 | (eval $ac_try) 2>&5 | |
16021 | ac_status=$? | |
16022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16023 | (exit $ac_status); }; }; then | |
16024 | ac_hi=$ac_mid | |
16025 | else | |
16026 | echo "$as_me: failed program was:" >&5 | |
16027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16028 | ||
16029 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16030 | fi | |
ac1cb8d3 | 16031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16032 | done |
16033 | case $ac_lo in | |
16034 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16035 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16036 | See \`config.log' for more details." >&5 | |
16037 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16038 | See \`config.log' for more details." >&2;} | |
16039 | { (exit 1); exit 1; }; } ;; | |
16040 | esac | |
16041 | else | |
16042 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
16043 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16044 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16045 | { (exit 1); exit 1; }; } |
16046 | else | |
16047 | cat >conftest.$ac_ext <<_ACEOF | |
16048 | /* confdefs.h. */ | |
16049 | _ACEOF | |
16050 | cat confdefs.h >>conftest.$ac_ext | |
16051 | cat >>conftest.$ac_ext <<_ACEOF | |
16052 | /* end confdefs.h. */ | |
16053 | $ac_includes_default | |
16054 | long longval () { return (long) (sizeof (int)); } | |
16055 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16056 | #include <stdio.h> | |
16057 | #include <stdlib.h> | |
16058 | int | |
16059 | main () | |
16060 | { | |
16061 | ||
16062 | FILE *f = fopen ("conftest.val", "w"); | |
16063 | if (! f) | |
16064 | exit (1); | |
16065 | if (((long) (sizeof (int))) < 0) | |
16066 | { | |
16067 | long i = longval (); | |
16068 | if (i != ((long) (sizeof (int)))) | |
16069 | exit (1); | |
16070 | fprintf (f, "%ld\n", i); | |
16071 | } | |
16072 | else | |
16073 | { | |
16074 | unsigned long i = ulongval (); | |
16075 | if (i != ((long) (sizeof (int)))) | |
16076 | exit (1); | |
16077 | fprintf (f, "%lu\n", i); | |
16078 | } | |
16079 | exit (ferror (f) || fclose (f) != 0); | |
16080 | ||
16081 | ; | |
16082 | return 0; | |
16083 | } | |
16084 | _ACEOF | |
16085 | rm -f conftest$ac_exeext | |
16086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16087 | (eval $ac_link) 2>&5 | |
16088 | ac_status=$? | |
16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16090 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16092 | (eval $ac_try) 2>&5 | |
16093 | ac_status=$? | |
16094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16095 | (exit $ac_status); }; }; then | |
16096 | ac_cv_sizeof_int=`cat conftest.val` | |
16097 | else | |
16098 | echo "$as_me: program exited with status $ac_status" >&5 | |
16099 | echo "$as_me: failed program was:" >&5 | |
16100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16101 | ||
16102 | ( exit $ac_status ) | |
16103 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16104 | See \`config.log' for more details." >&5 | |
16105 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16106 | See \`config.log' for more details." >&2;} | |
16107 | { (exit 1); exit 1; }; } | |
16108 | fi | |
ac1cb8d3 | 16109 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16110 | fi |
16111 | fi | |
16112 | rm -f conftest.val | |
16113 | else | |
16114 | ac_cv_sizeof_int=0 | |
16115 | fi | |
16116 | fi | |
16117 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16118 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16119 | cat >>confdefs.h <<_ACEOF | |
16120 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16121 | _ACEOF | |
16122 | ||
16123 | ||
16124 | echo "$as_me:$LINENO: checking for long" >&5 | |
16125 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16126 | if test "${ac_cv_type_long+set}" = set; then | |
16127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16128 | else | |
16129 | cat >conftest.$ac_ext <<_ACEOF | |
16130 | /* confdefs.h. */ | |
16131 | _ACEOF | |
16132 | cat confdefs.h >>conftest.$ac_ext | |
16133 | cat >>conftest.$ac_ext <<_ACEOF | |
16134 | /* end confdefs.h. */ | |
16135 | $ac_includes_default | |
16136 | int | |
16137 | main () | |
16138 | { | |
16139 | if ((long *) 0) | |
16140 | return 0; | |
16141 | if (sizeof (long)) | |
16142 | return 0; | |
16143 | ; | |
16144 | return 0; | |
16145 | } | |
16146 | _ACEOF | |
16147 | rm -f conftest.$ac_objext | |
16148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16149 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16150 | ac_status=$? |
ac1cb8d3 VS |
16151 | grep -v '^ *+' conftest.er1 >conftest.err |
16152 | rm -f conftest.er1 | |
16153 | cat conftest.err >&5 | |
a848cd7e SC |
16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16155 | (exit $ac_status); } && | |
5294a27e | 16156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16158 | (eval $ac_try) 2>&5 | |
16159 | ac_status=$? | |
16160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16161 | (exit $ac_status); }; } && | |
16162 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16164 | (eval $ac_try) 2>&5 | |
16165 | ac_status=$? | |
16166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16167 | (exit $ac_status); }; }; then | |
16168 | ac_cv_type_long=yes | |
16169 | else | |
16170 | echo "$as_me: failed program was:" >&5 | |
16171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16172 | ||
16173 | ac_cv_type_long=no | |
16174 | fi | |
ac1cb8d3 | 16175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16176 | fi |
16177 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16178 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16179 | ||
16180 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16181 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16182 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16184 | else | |
16185 | if test "$ac_cv_type_long" = yes; then | |
16186 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16187 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16188 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16189 | # This bug is HP SR number 8606223364. | |
16190 | if test "$cross_compiling" = yes; then | |
16191 | # Depending upon the size, compute the lo and hi bounds. | |
16192 | cat >conftest.$ac_ext <<_ACEOF | |
16193 | /* confdefs.h. */ | |
16194 | _ACEOF | |
16195 | cat confdefs.h >>conftest.$ac_ext | |
16196 | cat >>conftest.$ac_ext <<_ACEOF | |
16197 | /* end confdefs.h. */ | |
16198 | $ac_includes_default | |
16199 | int | |
16200 | main () | |
16201 | { | |
16202 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16203 | test_array [0] = 0 | |
16204 | ||
16205 | ; | |
16206 | return 0; | |
16207 | } | |
16208 | _ACEOF | |
16209 | rm -f conftest.$ac_objext | |
16210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16211 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16212 | ac_status=$? |
ac1cb8d3 VS |
16213 | grep -v '^ *+' conftest.er1 >conftest.err |
16214 | rm -f conftest.er1 | |
16215 | cat conftest.err >&5 | |
a848cd7e SC |
16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16217 | (exit $ac_status); } && | |
5294a27e | 16218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16220 | (eval $ac_try) 2>&5 | |
16221 | ac_status=$? | |
16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16223 | (exit $ac_status); }; } && | |
16224 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16226 | (eval $ac_try) 2>&5 | |
16227 | ac_status=$? | |
16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16229 | (exit $ac_status); }; }; then | |
16230 | ac_lo=0 ac_mid=0 | |
16231 | while :; do | |
16232 | cat >conftest.$ac_ext <<_ACEOF | |
16233 | /* confdefs.h. */ | |
16234 | _ACEOF | |
16235 | cat confdefs.h >>conftest.$ac_ext | |
16236 | cat >>conftest.$ac_ext <<_ACEOF | |
16237 | /* end confdefs.h. */ | |
16238 | $ac_includes_default | |
16239 | int | |
16240 | main () | |
16241 | { | |
16242 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16243 | test_array [0] = 0 | |
16244 | ||
16245 | ; | |
16246 | return 0; | |
16247 | } | |
16248 | _ACEOF | |
16249 | rm -f conftest.$ac_objext | |
16250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16252 | ac_status=$? |
ac1cb8d3 VS |
16253 | grep -v '^ *+' conftest.er1 >conftest.err |
16254 | rm -f conftest.er1 | |
16255 | cat conftest.err >&5 | |
a848cd7e SC |
16256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16257 | (exit $ac_status); } && | |
5294a27e | 16258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16260 | (eval $ac_try) 2>&5 | |
16261 | ac_status=$? | |
16262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16263 | (exit $ac_status); }; } && | |
16264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16266 | (eval $ac_try) 2>&5 | |
16267 | ac_status=$? | |
16268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16269 | (exit $ac_status); }; }; then | |
16270 | ac_hi=$ac_mid; break | |
16271 | else | |
16272 | echo "$as_me: failed program was:" >&5 | |
16273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16274 | ||
16275 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16276 | if test $ac_lo -le $ac_mid; then |
16277 | ac_lo= ac_hi= | |
16278 | break | |
16279 | fi | |
16280 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16281 | fi |
ac1cb8d3 | 16282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16283 | done |
16284 | else | |
16285 | echo "$as_me: failed program was:" >&5 | |
16286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16287 | ||
16288 | cat >conftest.$ac_ext <<_ACEOF | |
16289 | /* confdefs.h. */ | |
16290 | _ACEOF | |
16291 | cat confdefs.h >>conftest.$ac_ext | |
16292 | cat >>conftest.$ac_ext <<_ACEOF | |
16293 | /* end confdefs.h. */ | |
16294 | $ac_includes_default | |
16295 | int | |
16296 | main () | |
16297 | { | |
16298 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16299 | test_array [0] = 0 | |
16300 | ||
16301 | ; | |
16302 | return 0; | |
16303 | } | |
16304 | _ACEOF | |
16305 | rm -f conftest.$ac_objext | |
16306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16307 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16308 | ac_status=$? |
ac1cb8d3 VS |
16309 | grep -v '^ *+' conftest.er1 >conftest.err |
16310 | rm -f conftest.er1 | |
16311 | cat conftest.err >&5 | |
a848cd7e SC |
16312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16313 | (exit $ac_status); } && | |
5294a27e | 16314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16316 | (eval $ac_try) 2>&5 | |
16317 | ac_status=$? | |
16318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16319 | (exit $ac_status); }; } && | |
16320 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16322 | (eval $ac_try) 2>&5 | |
16323 | ac_status=$? | |
16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16325 | (exit $ac_status); }; }; then | |
16326 | ac_hi=-1 ac_mid=-1 | |
16327 | while :; do | |
16328 | cat >conftest.$ac_ext <<_ACEOF | |
16329 | /* confdefs.h. */ | |
16330 | _ACEOF | |
16331 | cat confdefs.h >>conftest.$ac_ext | |
16332 | cat >>conftest.$ac_ext <<_ACEOF | |
16333 | /* end confdefs.h. */ | |
16334 | $ac_includes_default | |
16335 | int | |
16336 | main () | |
16337 | { | |
16338 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16339 | test_array [0] = 0 | |
16340 | ||
16341 | ; | |
16342 | return 0; | |
16343 | } | |
16344 | _ACEOF | |
16345 | rm -f conftest.$ac_objext | |
16346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16347 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16348 | ac_status=$? |
ac1cb8d3 VS |
16349 | grep -v '^ *+' conftest.er1 >conftest.err |
16350 | rm -f conftest.er1 | |
16351 | cat conftest.err >&5 | |
a848cd7e SC |
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16353 | (exit $ac_status); } && | |
5294a27e | 16354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16356 | (eval $ac_try) 2>&5 | |
16357 | ac_status=$? | |
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16359 | (exit $ac_status); }; } && | |
16360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16362 | (eval $ac_try) 2>&5 | |
16363 | ac_status=$? | |
16364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16365 | (exit $ac_status); }; }; then | |
16366 | ac_lo=$ac_mid; break | |
16367 | else | |
16368 | echo "$as_me: failed program was:" >&5 | |
16369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16370 | ||
16371 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16372 | if test $ac_mid -le $ac_hi; then |
16373 | ac_lo= ac_hi= | |
16374 | break | |
16375 | fi | |
16376 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16377 | fi |
ac1cb8d3 | 16378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16379 | done |
16380 | else | |
16381 | echo "$as_me: failed program was:" >&5 | |
16382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16383 | ||
16384 | ac_lo= ac_hi= | |
16385 | fi | |
ac1cb8d3 | 16386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16387 | fi |
ac1cb8d3 | 16388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16389 | # Binary search between lo and hi bounds. |
16390 | while test "x$ac_lo" != "x$ac_hi"; do | |
16391 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16392 | cat >conftest.$ac_ext <<_ACEOF | |
16393 | /* confdefs.h. */ | |
16394 | _ACEOF | |
16395 | cat confdefs.h >>conftest.$ac_ext | |
16396 | cat >>conftest.$ac_ext <<_ACEOF | |
16397 | /* end confdefs.h. */ | |
16398 | $ac_includes_default | |
16399 | int | |
16400 | main () | |
16401 | { | |
16402 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16403 | test_array [0] = 0 | |
16404 | ||
16405 | ; | |
16406 | return 0; | |
16407 | } | |
16408 | _ACEOF | |
16409 | rm -f conftest.$ac_objext | |
16410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16412 | ac_status=$? |
ac1cb8d3 VS |
16413 | grep -v '^ *+' conftest.er1 >conftest.err |
16414 | rm -f conftest.er1 | |
16415 | cat conftest.err >&5 | |
a848cd7e SC |
16416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16417 | (exit $ac_status); } && | |
5294a27e | 16418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16420 | (eval $ac_try) 2>&5 | |
16421 | ac_status=$? | |
16422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16423 | (exit $ac_status); }; } && | |
16424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16426 | (eval $ac_try) 2>&5 | |
16427 | ac_status=$? | |
16428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16429 | (exit $ac_status); }; }; then | |
16430 | ac_hi=$ac_mid | |
16431 | else | |
16432 | echo "$as_me: failed program was:" >&5 | |
16433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16434 | ||
16435 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16436 | fi | |
ac1cb8d3 | 16437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16438 | done |
16439 | case $ac_lo in | |
16440 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16441 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16442 | See \`config.log' for more details." >&5 | |
16443 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16444 | See \`config.log' for more details." >&2;} | |
16445 | { (exit 1); exit 1; }; } ;; | |
16446 | esac | |
16447 | else | |
16448 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
16449 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16450 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16451 | { (exit 1); exit 1; }; } |
16452 | else | |
16453 | cat >conftest.$ac_ext <<_ACEOF | |
16454 | /* confdefs.h. */ | |
16455 | _ACEOF | |
16456 | cat confdefs.h >>conftest.$ac_ext | |
16457 | cat >>conftest.$ac_ext <<_ACEOF | |
16458 | /* end confdefs.h. */ | |
16459 | $ac_includes_default | |
16460 | long longval () { return (long) (sizeof (long)); } | |
16461 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16462 | #include <stdio.h> | |
16463 | #include <stdlib.h> | |
16464 | int | |
16465 | main () | |
16466 | { | |
16467 | ||
16468 | FILE *f = fopen ("conftest.val", "w"); | |
16469 | if (! f) | |
16470 | exit (1); | |
16471 | if (((long) (sizeof (long))) < 0) | |
16472 | { | |
16473 | long i = longval (); | |
16474 | if (i != ((long) (sizeof (long)))) | |
16475 | exit (1); | |
16476 | fprintf (f, "%ld\n", i); | |
16477 | } | |
16478 | else | |
16479 | { | |
16480 | unsigned long i = ulongval (); | |
16481 | if (i != ((long) (sizeof (long)))) | |
16482 | exit (1); | |
16483 | fprintf (f, "%lu\n", i); | |
16484 | } | |
16485 | exit (ferror (f) || fclose (f) != 0); | |
16486 | ||
16487 | ; | |
16488 | return 0; | |
16489 | } | |
16490 | _ACEOF | |
16491 | rm -f conftest$ac_exeext | |
16492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16493 | (eval $ac_link) 2>&5 | |
16494 | ac_status=$? | |
16495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16498 | (eval $ac_try) 2>&5 | |
16499 | ac_status=$? | |
16500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16501 | (exit $ac_status); }; }; then | |
16502 | ac_cv_sizeof_long=`cat conftest.val` | |
16503 | else | |
16504 | echo "$as_me: program exited with status $ac_status" >&5 | |
16505 | echo "$as_me: failed program was:" >&5 | |
16506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16507 | ||
16508 | ( exit $ac_status ) | |
16509 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16510 | See \`config.log' for more details." >&5 | |
16511 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16512 | See \`config.log' for more details." >&2;} | |
16513 | { (exit 1); exit 1; }; } | |
16514 | fi | |
ac1cb8d3 | 16515 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16516 | fi |
16517 | fi | |
16518 | rm -f conftest.val | |
16519 | else | |
16520 | ac_cv_sizeof_long=0 | |
16521 | fi | |
16522 | fi | |
16523 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16524 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16525 | cat >>confdefs.h <<_ACEOF | |
16526 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16527 | _ACEOF | |
16528 | ||
16529 | ||
16530 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16531 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16532 | if test "${ac_cv_type_size_t+set}" = set; then | |
16533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16534 | else | |
16535 | cat >conftest.$ac_ext <<_ACEOF | |
16536 | /* confdefs.h. */ | |
16537 | _ACEOF | |
16538 | cat confdefs.h >>conftest.$ac_ext | |
16539 | cat >>conftest.$ac_ext <<_ACEOF | |
16540 | /* end confdefs.h. */ | |
16541 | $ac_includes_default | |
16542 | int | |
16543 | main () | |
16544 | { | |
16545 | if ((size_t *) 0) | |
16546 | return 0; | |
16547 | if (sizeof (size_t)) | |
16548 | return 0; | |
16549 | ; | |
16550 | return 0; | |
16551 | } | |
16552 | _ACEOF | |
16553 | rm -f conftest.$ac_objext | |
16554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16556 | ac_status=$? |
ac1cb8d3 VS |
16557 | grep -v '^ *+' conftest.er1 >conftest.err |
16558 | rm -f conftest.er1 | |
16559 | cat conftest.err >&5 | |
a848cd7e SC |
16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16561 | (exit $ac_status); } && | |
5294a27e | 16562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16564 | (eval $ac_try) 2>&5 | |
16565 | ac_status=$? | |
16566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16567 | (exit $ac_status); }; } && | |
16568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16570 | (eval $ac_try) 2>&5 | |
16571 | ac_status=$? | |
16572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16573 | (exit $ac_status); }; }; then | |
16574 | ac_cv_type_size_t=yes | |
16575 | else | |
16576 | echo "$as_me: failed program was:" >&5 | |
16577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16578 | ||
16579 | ac_cv_type_size_t=no | |
16580 | fi | |
ac1cb8d3 | 16581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16582 | fi |
16583 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16584 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16585 | ||
16586 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16587 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16588 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16590 | else | |
16591 | if test "$ac_cv_type_size_t" = yes; then | |
16592 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16593 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16594 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16595 | # This bug is HP SR number 8606223364. | |
16596 | if test "$cross_compiling" = yes; then | |
16597 | # Depending upon the size, compute the lo and hi bounds. | |
16598 | cat >conftest.$ac_ext <<_ACEOF | |
16599 | /* confdefs.h. */ | |
16600 | _ACEOF | |
16601 | cat confdefs.h >>conftest.$ac_ext | |
16602 | cat >>conftest.$ac_ext <<_ACEOF | |
16603 | /* end confdefs.h. */ | |
16604 | $ac_includes_default | |
16605 | int | |
16606 | main () | |
16607 | { | |
16608 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16609 | test_array [0] = 0 | |
16610 | ||
16611 | ; | |
16612 | return 0; | |
16613 | } | |
16614 | _ACEOF | |
16615 | rm -f conftest.$ac_objext | |
16616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16618 | ac_status=$? |
ac1cb8d3 VS |
16619 | grep -v '^ *+' conftest.er1 >conftest.err |
16620 | rm -f conftest.er1 | |
16621 | cat conftest.err >&5 | |
a848cd7e SC |
16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16623 | (exit $ac_status); } && | |
5294a27e | 16624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16626 | (eval $ac_try) 2>&5 | |
16627 | ac_status=$? | |
16628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16629 | (exit $ac_status); }; } && | |
16630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16632 | (eval $ac_try) 2>&5 | |
16633 | ac_status=$? | |
16634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16635 | (exit $ac_status); }; }; then | |
16636 | ac_lo=0 ac_mid=0 | |
16637 | while :; do | |
16638 | cat >conftest.$ac_ext <<_ACEOF | |
16639 | /* confdefs.h. */ | |
16640 | _ACEOF | |
16641 | cat confdefs.h >>conftest.$ac_ext | |
16642 | cat >>conftest.$ac_ext <<_ACEOF | |
16643 | /* end confdefs.h. */ | |
16644 | $ac_includes_default | |
16645 | int | |
16646 | main () | |
16647 | { | |
16648 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16649 | test_array [0] = 0 | |
16650 | ||
16651 | ; | |
16652 | return 0; | |
16653 | } | |
16654 | _ACEOF | |
16655 | rm -f conftest.$ac_objext | |
16656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16657 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16658 | ac_status=$? |
ac1cb8d3 VS |
16659 | grep -v '^ *+' conftest.er1 >conftest.err |
16660 | rm -f conftest.er1 | |
16661 | cat conftest.err >&5 | |
a848cd7e SC |
16662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16663 | (exit $ac_status); } && | |
5294a27e | 16664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16666 | (eval $ac_try) 2>&5 | |
16667 | ac_status=$? | |
16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16669 | (exit $ac_status); }; } && | |
16670 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16672 | (eval $ac_try) 2>&5 | |
16673 | ac_status=$? | |
16674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16675 | (exit $ac_status); }; }; then | |
16676 | ac_hi=$ac_mid; break | |
16677 | else | |
16678 | echo "$as_me: failed program was:" >&5 | |
16679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16680 | ||
16681 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16682 | if test $ac_lo -le $ac_mid; then |
16683 | ac_lo= ac_hi= | |
16684 | break | |
16685 | fi | |
16686 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16687 | fi |
ac1cb8d3 | 16688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16689 | done |
16690 | else | |
16691 | echo "$as_me: failed program was:" >&5 | |
16692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16693 | ||
16694 | cat >conftest.$ac_ext <<_ACEOF | |
16695 | /* confdefs.h. */ | |
16696 | _ACEOF | |
16697 | cat confdefs.h >>conftest.$ac_ext | |
16698 | cat >>conftest.$ac_ext <<_ACEOF | |
16699 | /* end confdefs.h. */ | |
16700 | $ac_includes_default | |
16701 | int | |
16702 | main () | |
16703 | { | |
16704 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16705 | test_array [0] = 0 | |
16706 | ||
16707 | ; | |
16708 | return 0; | |
16709 | } | |
16710 | _ACEOF | |
16711 | rm -f conftest.$ac_objext | |
16712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16714 | ac_status=$? |
ac1cb8d3 VS |
16715 | grep -v '^ *+' conftest.er1 >conftest.err |
16716 | rm -f conftest.er1 | |
16717 | cat conftest.err >&5 | |
a848cd7e SC |
16718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16719 | (exit $ac_status); } && | |
5294a27e | 16720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16722 | (eval $ac_try) 2>&5 | |
16723 | ac_status=$? | |
16724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16725 | (exit $ac_status); }; } && | |
16726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16728 | (eval $ac_try) 2>&5 | |
16729 | ac_status=$? | |
16730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16731 | (exit $ac_status); }; }; then | |
16732 | ac_hi=-1 ac_mid=-1 | |
16733 | while :; do | |
16734 | cat >conftest.$ac_ext <<_ACEOF | |
16735 | /* confdefs.h. */ | |
16736 | _ACEOF | |
16737 | cat confdefs.h >>conftest.$ac_ext | |
16738 | cat >>conftest.$ac_ext <<_ACEOF | |
16739 | /* end confdefs.h. */ | |
16740 | $ac_includes_default | |
16741 | int | |
16742 | main () | |
16743 | { | |
16744 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16745 | test_array [0] = 0 | |
16746 | ||
16747 | ; | |
16748 | return 0; | |
16749 | } | |
16750 | _ACEOF | |
16751 | rm -f conftest.$ac_objext | |
16752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16753 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16754 | ac_status=$? |
ac1cb8d3 VS |
16755 | grep -v '^ *+' conftest.er1 >conftest.err |
16756 | rm -f conftest.er1 | |
16757 | cat conftest.err >&5 | |
a848cd7e SC |
16758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16759 | (exit $ac_status); } && | |
5294a27e | 16760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16762 | (eval $ac_try) 2>&5 | |
16763 | ac_status=$? | |
16764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16765 | (exit $ac_status); }; } && | |
16766 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16768 | (eval $ac_try) 2>&5 | |
16769 | ac_status=$? | |
16770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16771 | (exit $ac_status); }; }; then | |
16772 | ac_lo=$ac_mid; break | |
16773 | else | |
16774 | echo "$as_me: failed program was:" >&5 | |
16775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16776 | ||
16777 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16778 | if test $ac_mid -le $ac_hi; then |
16779 | ac_lo= ac_hi= | |
16780 | break | |
16781 | fi | |
16782 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16783 | fi |
ac1cb8d3 | 16784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16785 | done |
16786 | else | |
16787 | echo "$as_me: failed program was:" >&5 | |
16788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16789 | ||
16790 | ac_lo= ac_hi= | |
16791 | fi | |
ac1cb8d3 | 16792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16793 | fi |
ac1cb8d3 | 16794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16795 | # Binary search between lo and hi bounds. |
16796 | while test "x$ac_lo" != "x$ac_hi"; do | |
16797 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16798 | cat >conftest.$ac_ext <<_ACEOF | |
16799 | /* confdefs.h. */ | |
16800 | _ACEOF | |
16801 | cat confdefs.h >>conftest.$ac_ext | |
16802 | cat >>conftest.$ac_ext <<_ACEOF | |
16803 | /* end confdefs.h. */ | |
16804 | $ac_includes_default | |
16805 | int | |
16806 | main () | |
16807 | { | |
16808 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16809 | test_array [0] = 0 | |
16810 | ||
16811 | ; | |
16812 | return 0; | |
16813 | } | |
16814 | _ACEOF | |
16815 | rm -f conftest.$ac_objext | |
16816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16817 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16818 | ac_status=$? |
ac1cb8d3 VS |
16819 | grep -v '^ *+' conftest.er1 >conftest.err |
16820 | rm -f conftest.er1 | |
16821 | cat conftest.err >&5 | |
a848cd7e SC |
16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16823 | (exit $ac_status); } && | |
5294a27e | 16824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16826 | (eval $ac_try) 2>&5 | |
16827 | ac_status=$? | |
16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16829 | (exit $ac_status); }; } && | |
16830 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16832 | (eval $ac_try) 2>&5 | |
16833 | ac_status=$? | |
16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16835 | (exit $ac_status); }; }; then | |
16836 | ac_hi=$ac_mid | |
16837 | else | |
16838 | echo "$as_me: failed program was:" >&5 | |
16839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16840 | ||
16841 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16842 | fi | |
ac1cb8d3 | 16843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16844 | done |
16845 | case $ac_lo in | |
16846 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16847 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16848 | See \`config.log' for more details." >&5 | |
16849 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16850 | See \`config.log' for more details." >&2;} | |
16851 | { (exit 1); exit 1; }; } ;; | |
16852 | esac | |
16853 | else | |
16854 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
16855 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16856 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16857 | { (exit 1); exit 1; }; } |
16858 | else | |
16859 | cat >conftest.$ac_ext <<_ACEOF | |
16860 | /* confdefs.h. */ | |
16861 | _ACEOF | |
16862 | cat confdefs.h >>conftest.$ac_ext | |
16863 | cat >>conftest.$ac_ext <<_ACEOF | |
16864 | /* end confdefs.h. */ | |
16865 | $ac_includes_default | |
16866 | long longval () { return (long) (sizeof (size_t)); } | |
16867 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16868 | #include <stdio.h> | |
16869 | #include <stdlib.h> | |
16870 | int | |
16871 | main () | |
16872 | { | |
16873 | ||
16874 | FILE *f = fopen ("conftest.val", "w"); | |
16875 | if (! f) | |
16876 | exit (1); | |
16877 | if (((long) (sizeof (size_t))) < 0) | |
16878 | { | |
16879 | long i = longval (); | |
16880 | if (i != ((long) (sizeof (size_t)))) | |
16881 | exit (1); | |
16882 | fprintf (f, "%ld\n", i); | |
16883 | } | |
16884 | else | |
16885 | { | |
16886 | unsigned long i = ulongval (); | |
16887 | if (i != ((long) (sizeof (size_t)))) | |
16888 | exit (1); | |
16889 | fprintf (f, "%lu\n", i); | |
16890 | } | |
16891 | exit (ferror (f) || fclose (f) != 0); | |
16892 | ||
16893 | ; | |
16894 | return 0; | |
16895 | } | |
16896 | _ACEOF | |
16897 | rm -f conftest$ac_exeext | |
16898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16899 | (eval $ac_link) 2>&5 | |
16900 | ac_status=$? | |
16901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16902 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16904 | (eval $ac_try) 2>&5 | |
16905 | ac_status=$? | |
16906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16907 | (exit $ac_status); }; }; then | |
16908 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16909 | else | |
16910 | echo "$as_me: program exited with status $ac_status" >&5 | |
16911 | echo "$as_me: failed program was:" >&5 | |
16912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16913 | ||
16914 | ( exit $ac_status ) | |
16915 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16916 | See \`config.log' for more details." >&5 | |
16917 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16918 | See \`config.log' for more details." >&2;} | |
16919 | { (exit 1); exit 1; }; } | |
16920 | fi | |
ac1cb8d3 | 16921 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16922 | fi |
16923 | fi | |
16924 | rm -f conftest.val | |
16925 | else | |
16926 | ac_cv_sizeof_size_t=0 | |
16927 | fi | |
16928 | fi | |
16929 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16930 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16931 | cat >>confdefs.h <<_ACEOF | |
16932 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16933 | _ACEOF | |
16934 | ||
16935 | ||
16936 | ||
16937 | case "${host}" in | |
16938 | arm-*-linux* ) | |
16939 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16940 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16941 | if test "${ac_cv_type_long_long+set}" = set; then | |
16942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16943 | else | |
16944 | cat >conftest.$ac_ext <<_ACEOF | |
16945 | /* confdefs.h. */ | |
16946 | _ACEOF | |
16947 | cat confdefs.h >>conftest.$ac_ext | |
16948 | cat >>conftest.$ac_ext <<_ACEOF | |
16949 | /* end confdefs.h. */ | |
16950 | $ac_includes_default | |
16951 | int | |
16952 | main () | |
16953 | { | |
16954 | if ((long long *) 0) | |
16955 | return 0; | |
16956 | if (sizeof (long long)) | |
16957 | return 0; | |
16958 | ; | |
16959 | return 0; | |
16960 | } | |
16961 | _ACEOF | |
16962 | rm -f conftest.$ac_objext | |
16963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16964 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16965 | ac_status=$? |
ac1cb8d3 VS |
16966 | grep -v '^ *+' conftest.er1 >conftest.err |
16967 | rm -f conftest.er1 | |
16968 | cat conftest.err >&5 | |
a848cd7e SC |
16969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16970 | (exit $ac_status); } && | |
5294a27e | 16971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16973 | (eval $ac_try) 2>&5 | |
16974 | ac_status=$? | |
16975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16976 | (exit $ac_status); }; } && | |
16977 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16979 | (eval $ac_try) 2>&5 | |
16980 | ac_status=$? | |
16981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16982 | (exit $ac_status); }; }; then | |
16983 | ac_cv_type_long_long=yes | |
16984 | else | |
16985 | echo "$as_me: failed program was:" >&5 | |
16986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16987 | ||
16988 | ac_cv_type_long_long=no | |
16989 | fi | |
ac1cb8d3 | 16990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16991 | fi |
16992 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16993 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16994 | ||
16995 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16996 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16997 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16999 | else | |
17000 | if test "$ac_cv_type_long_long" = yes; then | |
17001 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17002 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17003 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17004 | # This bug is HP SR number 8606223364. | |
17005 | if test "$cross_compiling" = yes; then | |
17006 | # Depending upon the size, compute the lo and hi bounds. | |
17007 | cat >conftest.$ac_ext <<_ACEOF | |
17008 | /* confdefs.h. */ | |
17009 | _ACEOF | |
17010 | cat confdefs.h >>conftest.$ac_ext | |
17011 | cat >>conftest.$ac_ext <<_ACEOF | |
17012 | /* end confdefs.h. */ | |
17013 | $ac_includes_default | |
17014 | int | |
17015 | main () | |
17016 | { | |
17017 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17018 | test_array [0] = 0 | |
17019 | ||
17020 | ; | |
17021 | return 0; | |
17022 | } | |
17023 | _ACEOF | |
17024 | rm -f conftest.$ac_objext | |
17025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17026 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17027 | ac_status=$? |
ac1cb8d3 VS |
17028 | grep -v '^ *+' conftest.er1 >conftest.err |
17029 | rm -f conftest.er1 | |
17030 | cat conftest.err >&5 | |
a848cd7e SC |
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17032 | (exit $ac_status); } && | |
5294a27e | 17033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17035 | (eval $ac_try) 2>&5 | |
17036 | ac_status=$? | |
17037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17038 | (exit $ac_status); }; } && | |
17039 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17041 | (eval $ac_try) 2>&5 | |
17042 | ac_status=$? | |
17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17044 | (exit $ac_status); }; }; then | |
17045 | ac_lo=0 ac_mid=0 | |
17046 | while :; do | |
17047 | cat >conftest.$ac_ext <<_ACEOF | |
17048 | /* confdefs.h. */ | |
17049 | _ACEOF | |
17050 | cat confdefs.h >>conftest.$ac_ext | |
17051 | cat >>conftest.$ac_ext <<_ACEOF | |
17052 | /* end confdefs.h. */ | |
17053 | $ac_includes_default | |
17054 | int | |
17055 | main () | |
17056 | { | |
17057 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17058 | test_array [0] = 0 | |
17059 | ||
17060 | ; | |
17061 | return 0; | |
17062 | } | |
17063 | _ACEOF | |
17064 | rm -f conftest.$ac_objext | |
17065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17066 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17067 | ac_status=$? |
ac1cb8d3 VS |
17068 | grep -v '^ *+' conftest.er1 >conftest.err |
17069 | rm -f conftest.er1 | |
17070 | cat conftest.err >&5 | |
a848cd7e SC |
17071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17072 | (exit $ac_status); } && | |
5294a27e | 17073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17075 | (eval $ac_try) 2>&5 | |
17076 | ac_status=$? | |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17078 | (exit $ac_status); }; } && | |
17079 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17081 | (eval $ac_try) 2>&5 | |
17082 | ac_status=$? | |
17083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17084 | (exit $ac_status); }; }; then | |
17085 | ac_hi=$ac_mid; break | |
17086 | else | |
17087 | echo "$as_me: failed program was:" >&5 | |
17088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17089 | ||
17090 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17091 | if test $ac_lo -le $ac_mid; then |
17092 | ac_lo= ac_hi= | |
17093 | break | |
17094 | fi | |
17095 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17096 | fi |
ac1cb8d3 | 17097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17098 | done |
17099 | else | |
17100 | echo "$as_me: failed program was:" >&5 | |
17101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17102 | ||
17103 | cat >conftest.$ac_ext <<_ACEOF | |
17104 | /* confdefs.h. */ | |
17105 | _ACEOF | |
17106 | cat confdefs.h >>conftest.$ac_ext | |
17107 | cat >>conftest.$ac_ext <<_ACEOF | |
17108 | /* end confdefs.h. */ | |
17109 | $ac_includes_default | |
17110 | int | |
17111 | main () | |
17112 | { | |
17113 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17114 | test_array [0] = 0 | |
17115 | ||
17116 | ; | |
17117 | return 0; | |
17118 | } | |
17119 | _ACEOF | |
17120 | rm -f conftest.$ac_objext | |
17121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17122 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17123 | ac_status=$? |
ac1cb8d3 VS |
17124 | grep -v '^ *+' conftest.er1 >conftest.err |
17125 | rm -f conftest.er1 | |
17126 | cat conftest.err >&5 | |
a848cd7e SC |
17127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17128 | (exit $ac_status); } && | |
5294a27e | 17129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17131 | (eval $ac_try) 2>&5 | |
17132 | ac_status=$? | |
17133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17134 | (exit $ac_status); }; } && | |
17135 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17137 | (eval $ac_try) 2>&5 | |
17138 | ac_status=$? | |
17139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17140 | (exit $ac_status); }; }; then | |
17141 | ac_hi=-1 ac_mid=-1 | |
17142 | while :; do | |
17143 | cat >conftest.$ac_ext <<_ACEOF | |
17144 | /* confdefs.h. */ | |
17145 | _ACEOF | |
17146 | cat confdefs.h >>conftest.$ac_ext | |
17147 | cat >>conftest.$ac_ext <<_ACEOF | |
17148 | /* end confdefs.h. */ | |
17149 | $ac_includes_default | |
17150 | int | |
17151 | main () | |
17152 | { | |
17153 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17154 | test_array [0] = 0 | |
17155 | ||
17156 | ; | |
17157 | return 0; | |
17158 | } | |
17159 | _ACEOF | |
17160 | rm -f conftest.$ac_objext | |
17161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17163 | ac_status=$? |
ac1cb8d3 VS |
17164 | grep -v '^ *+' conftest.er1 >conftest.err |
17165 | rm -f conftest.er1 | |
17166 | cat conftest.err >&5 | |
a848cd7e SC |
17167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17168 | (exit $ac_status); } && | |
5294a27e | 17169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17171 | (eval $ac_try) 2>&5 | |
17172 | ac_status=$? | |
17173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17174 | (exit $ac_status); }; } && | |
17175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17177 | (eval $ac_try) 2>&5 | |
17178 | ac_status=$? | |
17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17180 | (exit $ac_status); }; }; then | |
17181 | ac_lo=$ac_mid; break | |
17182 | else | |
17183 | echo "$as_me: failed program was:" >&5 | |
17184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17185 | ||
17186 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17187 | if test $ac_mid -le $ac_hi; then |
17188 | ac_lo= ac_hi= | |
17189 | break | |
17190 | fi | |
17191 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17192 | fi |
ac1cb8d3 | 17193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17194 | done |
17195 | else | |
17196 | echo "$as_me: failed program was:" >&5 | |
17197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17198 | ||
17199 | ac_lo= ac_hi= | |
17200 | fi | |
ac1cb8d3 | 17201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17202 | fi |
ac1cb8d3 | 17203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17204 | # Binary search between lo and hi bounds. |
17205 | while test "x$ac_lo" != "x$ac_hi"; do | |
17206 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17207 | cat >conftest.$ac_ext <<_ACEOF | |
17208 | /* confdefs.h. */ | |
17209 | _ACEOF | |
17210 | cat confdefs.h >>conftest.$ac_ext | |
17211 | cat >>conftest.$ac_ext <<_ACEOF | |
17212 | /* end confdefs.h. */ | |
17213 | $ac_includes_default | |
17214 | int | |
17215 | main () | |
17216 | { | |
17217 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17218 | test_array [0] = 0 | |
17219 | ||
17220 | ; | |
17221 | return 0; | |
17222 | } | |
17223 | _ACEOF | |
17224 | rm -f conftest.$ac_objext | |
17225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17227 | ac_status=$? |
ac1cb8d3 VS |
17228 | grep -v '^ *+' conftest.er1 >conftest.err |
17229 | rm -f conftest.er1 | |
17230 | cat conftest.err >&5 | |
a848cd7e SC |
17231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17232 | (exit $ac_status); } && | |
5294a27e | 17233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17235 | (eval $ac_try) 2>&5 | |
17236 | ac_status=$? | |
17237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17238 | (exit $ac_status); }; } && | |
17239 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17241 | (eval $ac_try) 2>&5 | |
17242 | ac_status=$? | |
17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17244 | (exit $ac_status); }; }; then | |
17245 | ac_hi=$ac_mid | |
17246 | else | |
17247 | echo "$as_me: failed program was:" >&5 | |
17248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17249 | ||
17250 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17251 | fi | |
ac1cb8d3 | 17252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17253 | done |
17254 | case $ac_lo in | |
17255 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17256 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17257 | See \`config.log' for more details." >&5 | |
17258 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17259 | See \`config.log' for more details." >&2;} | |
17260 | { (exit 1); exit 1; }; } ;; | |
17261 | esac | |
17262 | else | |
17263 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
17264 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17265 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17266 | { (exit 1); exit 1; }; } |
17267 | else | |
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 | long longval () { return (long) (sizeof (long long)); } | |
17276 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17277 | #include <stdio.h> | |
17278 | #include <stdlib.h> | |
17279 | int | |
17280 | main () | |
17281 | { | |
17282 | ||
17283 | FILE *f = fopen ("conftest.val", "w"); | |
17284 | if (! f) | |
17285 | exit (1); | |
17286 | if (((long) (sizeof (long long))) < 0) | |
17287 | { | |
17288 | long i = longval (); | |
17289 | if (i != ((long) (sizeof (long long)))) | |
17290 | exit (1); | |
17291 | fprintf (f, "%ld\n", i); | |
17292 | } | |
17293 | else | |
17294 | { | |
17295 | unsigned long i = ulongval (); | |
17296 | if (i != ((long) (sizeof (long long)))) | |
17297 | exit (1); | |
17298 | fprintf (f, "%lu\n", i); | |
17299 | } | |
17300 | exit (ferror (f) || fclose (f) != 0); | |
17301 | ||
17302 | ; | |
17303 | return 0; | |
17304 | } | |
17305 | _ACEOF | |
17306 | rm -f conftest$ac_exeext | |
17307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17308 | (eval $ac_link) 2>&5 | |
17309 | ac_status=$? | |
17310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17313 | (eval $ac_try) 2>&5 | |
17314 | ac_status=$? | |
17315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17316 | (exit $ac_status); }; }; then | |
17317 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17318 | else | |
17319 | echo "$as_me: program exited with status $ac_status" >&5 | |
17320 | echo "$as_me: failed program was:" >&5 | |
17321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17322 | ||
17323 | ( exit $ac_status ) | |
17324 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17325 | See \`config.log' for more details." >&5 | |
17326 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17327 | See \`config.log' for more details." >&2;} | |
17328 | { (exit 1); exit 1; }; } | |
17329 | fi | |
ac1cb8d3 | 17330 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17331 | fi |
17332 | fi | |
17333 | rm -f conftest.val | |
17334 | else | |
17335 | ac_cv_sizeof_long_long=0 | |
17336 | fi | |
17337 | fi | |
17338 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17339 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17340 | cat >>confdefs.h <<_ACEOF | |
17341 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17342 | _ACEOF | |
17343 | ||
17344 | ||
17345 | ;; | |
17346 | *-hp-hpux* ) | |
17347 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17348 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17349 | if test "${ac_cv_type_long_long+set}" = set; then | |
17350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17351 | else | |
17352 | cat >conftest.$ac_ext <<_ACEOF | |
17353 | /* confdefs.h. */ | |
17354 | _ACEOF | |
17355 | cat confdefs.h >>conftest.$ac_ext | |
17356 | cat >>conftest.$ac_ext <<_ACEOF | |
17357 | /* end confdefs.h. */ | |
17358 | $ac_includes_default | |
17359 | int | |
17360 | main () | |
17361 | { | |
17362 | if ((long long *) 0) | |
17363 | return 0; | |
17364 | if (sizeof (long long)) | |
17365 | return 0; | |
17366 | ; | |
17367 | return 0; | |
17368 | } | |
17369 | _ACEOF | |
17370 | rm -f conftest.$ac_objext | |
17371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17372 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17373 | ac_status=$? |
ac1cb8d3 VS |
17374 | grep -v '^ *+' conftest.er1 >conftest.err |
17375 | rm -f conftest.er1 | |
17376 | cat conftest.err >&5 | |
a848cd7e SC |
17377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17378 | (exit $ac_status); } && | |
5294a27e | 17379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17381 | (eval $ac_try) 2>&5 | |
17382 | ac_status=$? | |
17383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17384 | (exit $ac_status); }; } && | |
17385 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17387 | (eval $ac_try) 2>&5 | |
17388 | ac_status=$? | |
17389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17390 | (exit $ac_status); }; }; then | |
17391 | ac_cv_type_long_long=yes | |
17392 | else | |
17393 | echo "$as_me: failed program was:" >&5 | |
17394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17395 | ||
17396 | ac_cv_type_long_long=no | |
17397 | fi | |
ac1cb8d3 | 17398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17399 | fi |
17400 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17401 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17402 | ||
17403 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17404 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17405 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17407 | else | |
17408 | if test "$ac_cv_type_long_long" = yes; then | |
17409 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17410 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17411 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17412 | # This bug is HP SR number 8606223364. | |
17413 | if test "$cross_compiling" = yes; then | |
17414 | # Depending upon the size, compute the lo and hi bounds. | |
17415 | cat >conftest.$ac_ext <<_ACEOF | |
17416 | /* confdefs.h. */ | |
17417 | _ACEOF | |
17418 | cat confdefs.h >>conftest.$ac_ext | |
17419 | cat >>conftest.$ac_ext <<_ACEOF | |
17420 | /* end confdefs.h. */ | |
17421 | $ac_includes_default | |
17422 | int | |
17423 | main () | |
17424 | { | |
17425 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17426 | test_array [0] = 0 | |
17427 | ||
17428 | ; | |
17429 | return 0; | |
17430 | } | |
17431 | _ACEOF | |
17432 | rm -f conftest.$ac_objext | |
17433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17435 | ac_status=$? |
ac1cb8d3 VS |
17436 | grep -v '^ *+' conftest.er1 >conftest.err |
17437 | rm -f conftest.er1 | |
17438 | cat conftest.err >&5 | |
a848cd7e SC |
17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17440 | (exit $ac_status); } && | |
5294a27e | 17441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17443 | (eval $ac_try) 2>&5 | |
17444 | ac_status=$? | |
17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17446 | (exit $ac_status); }; } && | |
17447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17449 | (eval $ac_try) 2>&5 | |
17450 | ac_status=$? | |
17451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17452 | (exit $ac_status); }; }; then | |
17453 | ac_lo=0 ac_mid=0 | |
17454 | while :; do | |
17455 | cat >conftest.$ac_ext <<_ACEOF | |
17456 | /* confdefs.h. */ | |
17457 | _ACEOF | |
17458 | cat confdefs.h >>conftest.$ac_ext | |
17459 | cat >>conftest.$ac_ext <<_ACEOF | |
17460 | /* end confdefs.h. */ | |
17461 | $ac_includes_default | |
17462 | int | |
17463 | main () | |
17464 | { | |
17465 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17466 | test_array [0] = 0 | |
17467 | ||
17468 | ; | |
17469 | return 0; | |
17470 | } | |
17471 | _ACEOF | |
17472 | rm -f conftest.$ac_objext | |
17473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17474 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17475 | ac_status=$? |
ac1cb8d3 VS |
17476 | grep -v '^ *+' conftest.er1 >conftest.err |
17477 | rm -f conftest.er1 | |
17478 | cat conftest.err >&5 | |
a848cd7e SC |
17479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17480 | (exit $ac_status); } && | |
5294a27e | 17481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17483 | (eval $ac_try) 2>&5 | |
17484 | ac_status=$? | |
17485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17486 | (exit $ac_status); }; } && | |
17487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17489 | (eval $ac_try) 2>&5 | |
17490 | ac_status=$? | |
17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17492 | (exit $ac_status); }; }; then | |
17493 | ac_hi=$ac_mid; break | |
17494 | else | |
17495 | echo "$as_me: failed program was:" >&5 | |
17496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17497 | ||
17498 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17499 | if test $ac_lo -le $ac_mid; then |
17500 | ac_lo= ac_hi= | |
17501 | break | |
17502 | fi | |
17503 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17504 | fi |
ac1cb8d3 | 17505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17506 | done |
17507 | else | |
17508 | echo "$as_me: failed program was:" >&5 | |
17509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17510 | ||
17511 | cat >conftest.$ac_ext <<_ACEOF | |
17512 | /* confdefs.h. */ | |
17513 | _ACEOF | |
17514 | cat confdefs.h >>conftest.$ac_ext | |
17515 | cat >>conftest.$ac_ext <<_ACEOF | |
17516 | /* end confdefs.h. */ | |
17517 | $ac_includes_default | |
17518 | int | |
17519 | main () | |
17520 | { | |
17521 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17522 | test_array [0] = 0 | |
17523 | ||
17524 | ; | |
17525 | return 0; | |
17526 | } | |
17527 | _ACEOF | |
17528 | rm -f conftest.$ac_objext | |
17529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17531 | ac_status=$? |
ac1cb8d3 VS |
17532 | grep -v '^ *+' conftest.er1 >conftest.err |
17533 | rm -f conftest.er1 | |
17534 | cat conftest.err >&5 | |
a848cd7e SC |
17535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17536 | (exit $ac_status); } && | |
5294a27e | 17537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17539 | (eval $ac_try) 2>&5 | |
17540 | ac_status=$? | |
17541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17542 | (exit $ac_status); }; } && | |
17543 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17545 | (eval $ac_try) 2>&5 | |
17546 | ac_status=$? | |
17547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17548 | (exit $ac_status); }; }; then | |
17549 | ac_hi=-1 ac_mid=-1 | |
17550 | while :; do | |
17551 | cat >conftest.$ac_ext <<_ACEOF | |
17552 | /* confdefs.h. */ | |
17553 | _ACEOF | |
17554 | cat confdefs.h >>conftest.$ac_ext | |
17555 | cat >>conftest.$ac_ext <<_ACEOF | |
17556 | /* end confdefs.h. */ | |
17557 | $ac_includes_default | |
17558 | int | |
17559 | main () | |
17560 | { | |
17561 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17562 | test_array [0] = 0 | |
17563 | ||
17564 | ; | |
17565 | return 0; | |
17566 | } | |
17567 | _ACEOF | |
17568 | rm -f conftest.$ac_objext | |
17569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17570 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17571 | ac_status=$? |
ac1cb8d3 VS |
17572 | grep -v '^ *+' conftest.er1 >conftest.err |
17573 | rm -f conftest.er1 | |
17574 | cat conftest.err >&5 | |
a848cd7e SC |
17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17576 | (exit $ac_status); } && | |
5294a27e | 17577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17579 | (eval $ac_try) 2>&5 | |
17580 | ac_status=$? | |
17581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17582 | (exit $ac_status); }; } && | |
17583 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17585 | (eval $ac_try) 2>&5 | |
17586 | ac_status=$? | |
17587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17588 | (exit $ac_status); }; }; then | |
17589 | ac_lo=$ac_mid; break | |
17590 | else | |
17591 | echo "$as_me: failed program was:" >&5 | |
17592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17593 | ||
17594 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17595 | if test $ac_mid -le $ac_hi; then |
17596 | ac_lo= ac_hi= | |
17597 | break | |
17598 | fi | |
17599 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17600 | fi |
ac1cb8d3 | 17601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17602 | done |
17603 | else | |
17604 | echo "$as_me: failed program was:" >&5 | |
17605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17606 | ||
17607 | ac_lo= ac_hi= | |
17608 | fi | |
ac1cb8d3 | 17609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17610 | fi |
ac1cb8d3 | 17611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17612 | # Binary search between lo and hi bounds. |
17613 | while test "x$ac_lo" != "x$ac_hi"; do | |
17614 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17615 | cat >conftest.$ac_ext <<_ACEOF | |
17616 | /* confdefs.h. */ | |
17617 | _ACEOF | |
17618 | cat confdefs.h >>conftest.$ac_ext | |
17619 | cat >>conftest.$ac_ext <<_ACEOF | |
17620 | /* end confdefs.h. */ | |
17621 | $ac_includes_default | |
17622 | int | |
17623 | main () | |
17624 | { | |
17625 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17626 | test_array [0] = 0 | |
17627 | ||
17628 | ; | |
17629 | return 0; | |
17630 | } | |
17631 | _ACEOF | |
17632 | rm -f conftest.$ac_objext | |
17633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17634 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17635 | ac_status=$? |
ac1cb8d3 VS |
17636 | grep -v '^ *+' conftest.er1 >conftest.err |
17637 | rm -f conftest.er1 | |
17638 | cat conftest.err >&5 | |
a848cd7e SC |
17639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17640 | (exit $ac_status); } && | |
5294a27e | 17641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17643 | (eval $ac_try) 2>&5 | |
17644 | ac_status=$? | |
17645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17646 | (exit $ac_status); }; } && | |
17647 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17649 | (eval $ac_try) 2>&5 | |
17650 | ac_status=$? | |
17651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17652 | (exit $ac_status); }; }; then | |
17653 | ac_hi=$ac_mid | |
17654 | else | |
17655 | echo "$as_me: failed program was:" >&5 | |
17656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17657 | ||
17658 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17659 | fi | |
ac1cb8d3 | 17660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17661 | done |
17662 | case $ac_lo in | |
17663 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17664 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17665 | See \`config.log' for more details." >&5 | |
17666 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17667 | See \`config.log' for more details." >&2;} | |
17668 | { (exit 1); exit 1; }; } ;; | |
17669 | esac | |
17670 | else | |
17671 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
17672 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17673 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17674 | { (exit 1); exit 1; }; } |
17675 | else | |
17676 | cat >conftest.$ac_ext <<_ACEOF | |
17677 | /* confdefs.h. */ | |
17678 | _ACEOF | |
17679 | cat confdefs.h >>conftest.$ac_ext | |
17680 | cat >>conftest.$ac_ext <<_ACEOF | |
17681 | /* end confdefs.h. */ | |
17682 | $ac_includes_default | |
17683 | long longval () { return (long) (sizeof (long long)); } | |
17684 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17685 | #include <stdio.h> | |
17686 | #include <stdlib.h> | |
17687 | int | |
17688 | main () | |
17689 | { | |
17690 | ||
17691 | FILE *f = fopen ("conftest.val", "w"); | |
17692 | if (! f) | |
17693 | exit (1); | |
17694 | if (((long) (sizeof (long long))) < 0) | |
17695 | { | |
17696 | long i = longval (); | |
17697 | if (i != ((long) (sizeof (long long)))) | |
17698 | exit (1); | |
17699 | fprintf (f, "%ld\n", i); | |
17700 | } | |
17701 | else | |
17702 | { | |
17703 | unsigned long i = ulongval (); | |
17704 | if (i != ((long) (sizeof (long long)))) | |
17705 | exit (1); | |
17706 | fprintf (f, "%lu\n", i); | |
17707 | } | |
17708 | exit (ferror (f) || fclose (f) != 0); | |
17709 | ||
17710 | ; | |
17711 | return 0; | |
17712 | } | |
17713 | _ACEOF | |
17714 | rm -f conftest$ac_exeext | |
17715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17716 | (eval $ac_link) 2>&5 | |
17717 | ac_status=$? | |
17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17721 | (eval $ac_try) 2>&5 | |
17722 | ac_status=$? | |
17723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17724 | (exit $ac_status); }; }; then | |
17725 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17726 | else | |
17727 | echo "$as_me: program exited with status $ac_status" >&5 | |
17728 | echo "$as_me: failed program was:" >&5 | |
17729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17730 | ||
17731 | ( exit $ac_status ) | |
17732 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17733 | See \`config.log' for more details." >&5 | |
17734 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17735 | See \`config.log' for more details." >&2;} | |
17736 | { (exit 1); exit 1; }; } | |
17737 | fi | |
ac1cb8d3 | 17738 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17739 | fi |
17740 | fi | |
17741 | rm -f conftest.val | |
17742 | else | |
17743 | ac_cv_sizeof_long_long=0 | |
17744 | fi | |
17745 | fi | |
17746 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17747 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17748 | cat >>confdefs.h <<_ACEOF | |
17749 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17750 | _ACEOF | |
17751 | ||
17752 | ||
17753 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17754 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17755 | fi | |
17756 | ;; | |
17757 | * ) | |
17758 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17759 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17760 | if test "${ac_cv_type_long_long+set}" = set; then | |
17761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17762 | else | |
17763 | cat >conftest.$ac_ext <<_ACEOF | |
17764 | /* confdefs.h. */ | |
17765 | _ACEOF | |
17766 | cat confdefs.h >>conftest.$ac_ext | |
17767 | cat >>conftest.$ac_ext <<_ACEOF | |
17768 | /* end confdefs.h. */ | |
17769 | $ac_includes_default | |
17770 | int | |
17771 | main () | |
17772 | { | |
17773 | if ((long long *) 0) | |
17774 | return 0; | |
17775 | if (sizeof (long long)) | |
17776 | return 0; | |
17777 | ; | |
17778 | return 0; | |
17779 | } | |
17780 | _ACEOF | |
17781 | rm -f conftest.$ac_objext | |
17782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17783 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17784 | ac_status=$? |
ac1cb8d3 VS |
17785 | grep -v '^ *+' conftest.er1 >conftest.err |
17786 | rm -f conftest.er1 | |
17787 | cat conftest.err >&5 | |
a848cd7e SC |
17788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17789 | (exit $ac_status); } && | |
5294a27e | 17790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17792 | (eval $ac_try) 2>&5 | |
17793 | ac_status=$? | |
17794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17795 | (exit $ac_status); }; } && | |
17796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17798 | (eval $ac_try) 2>&5 | |
17799 | ac_status=$? | |
17800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17801 | (exit $ac_status); }; }; then | |
17802 | ac_cv_type_long_long=yes | |
17803 | else | |
17804 | echo "$as_me: failed program was:" >&5 | |
17805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17806 | ||
17807 | ac_cv_type_long_long=no | |
17808 | fi | |
ac1cb8d3 | 17809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17810 | fi |
17811 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17812 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17813 | ||
17814 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17815 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17816 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17818 | else | |
17819 | if test "$ac_cv_type_long_long" = yes; then | |
17820 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17823 | # This bug is HP SR number 8606223364. | |
17824 | if test "$cross_compiling" = yes; then | |
17825 | # Depending upon the size, compute the lo and hi bounds. | |
17826 | cat >conftest.$ac_ext <<_ACEOF | |
17827 | /* confdefs.h. */ | |
17828 | _ACEOF | |
17829 | cat confdefs.h >>conftest.$ac_ext | |
17830 | cat >>conftest.$ac_ext <<_ACEOF | |
17831 | /* end confdefs.h. */ | |
17832 | $ac_includes_default | |
17833 | int | |
17834 | main () | |
17835 | { | |
17836 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17837 | test_array [0] = 0 | |
17838 | ||
17839 | ; | |
17840 | return 0; | |
17841 | } | |
17842 | _ACEOF | |
17843 | rm -f conftest.$ac_objext | |
17844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17845 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17846 | ac_status=$? |
ac1cb8d3 VS |
17847 | grep -v '^ *+' conftest.er1 >conftest.err |
17848 | rm -f conftest.er1 | |
17849 | cat conftest.err >&5 | |
a848cd7e SC |
17850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17851 | (exit $ac_status); } && | |
5294a27e | 17852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17854 | (eval $ac_try) 2>&5 | |
17855 | ac_status=$? | |
17856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17857 | (exit $ac_status); }; } && | |
17858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17860 | (eval $ac_try) 2>&5 | |
17861 | ac_status=$? | |
17862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17863 | (exit $ac_status); }; }; then | |
17864 | ac_lo=0 ac_mid=0 | |
17865 | while :; do | |
17866 | cat >conftest.$ac_ext <<_ACEOF | |
17867 | /* confdefs.h. */ | |
17868 | _ACEOF | |
17869 | cat confdefs.h >>conftest.$ac_ext | |
17870 | cat >>conftest.$ac_ext <<_ACEOF | |
17871 | /* end confdefs.h. */ | |
17872 | $ac_includes_default | |
17873 | int | |
17874 | main () | |
17875 | { | |
17876 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17877 | test_array [0] = 0 | |
17878 | ||
17879 | ; | |
17880 | return 0; | |
17881 | } | |
17882 | _ACEOF | |
17883 | rm -f conftest.$ac_objext | |
17884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17885 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17886 | ac_status=$? |
ac1cb8d3 VS |
17887 | grep -v '^ *+' conftest.er1 >conftest.err |
17888 | rm -f conftest.er1 | |
17889 | cat conftest.err >&5 | |
a848cd7e SC |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17891 | (exit $ac_status); } && | |
5294a27e | 17892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17894 | (eval $ac_try) 2>&5 | |
17895 | ac_status=$? | |
17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17897 | (exit $ac_status); }; } && | |
17898 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17900 | (eval $ac_try) 2>&5 | |
17901 | ac_status=$? | |
17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17903 | (exit $ac_status); }; }; then | |
17904 | ac_hi=$ac_mid; break | |
17905 | else | |
17906 | echo "$as_me: failed program was:" >&5 | |
17907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17908 | ||
17909 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17910 | if test $ac_lo -le $ac_mid; then |
17911 | ac_lo= ac_hi= | |
17912 | break | |
17913 | fi | |
17914 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17915 | fi |
ac1cb8d3 | 17916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17917 | done |
17918 | else | |
17919 | echo "$as_me: failed program was:" >&5 | |
17920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17921 | ||
17922 | cat >conftest.$ac_ext <<_ACEOF | |
17923 | /* confdefs.h. */ | |
17924 | _ACEOF | |
17925 | cat confdefs.h >>conftest.$ac_ext | |
17926 | cat >>conftest.$ac_ext <<_ACEOF | |
17927 | /* end confdefs.h. */ | |
17928 | $ac_includes_default | |
17929 | int | |
17930 | main () | |
17931 | { | |
17932 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17933 | test_array [0] = 0 | |
17934 | ||
17935 | ; | |
17936 | return 0; | |
17937 | } | |
17938 | _ACEOF | |
17939 | rm -f conftest.$ac_objext | |
17940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17941 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17942 | ac_status=$? |
ac1cb8d3 VS |
17943 | grep -v '^ *+' conftest.er1 >conftest.err |
17944 | rm -f conftest.er1 | |
17945 | cat conftest.err >&5 | |
a848cd7e SC |
17946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17947 | (exit $ac_status); } && | |
5294a27e | 17948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17950 | (eval $ac_try) 2>&5 | |
17951 | ac_status=$? | |
17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17953 | (exit $ac_status); }; } && | |
17954 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17956 | (eval $ac_try) 2>&5 | |
17957 | ac_status=$? | |
17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17959 | (exit $ac_status); }; }; then | |
17960 | ac_hi=-1 ac_mid=-1 | |
17961 | while :; do | |
17962 | cat >conftest.$ac_ext <<_ACEOF | |
17963 | /* confdefs.h. */ | |
17964 | _ACEOF | |
17965 | cat confdefs.h >>conftest.$ac_ext | |
17966 | cat >>conftest.$ac_ext <<_ACEOF | |
17967 | /* end confdefs.h. */ | |
17968 | $ac_includes_default | |
17969 | int | |
17970 | main () | |
17971 | { | |
17972 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17973 | test_array [0] = 0 | |
17974 | ||
17975 | ; | |
17976 | return 0; | |
17977 | } | |
17978 | _ACEOF | |
17979 | rm -f conftest.$ac_objext | |
17980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17982 | ac_status=$? |
ac1cb8d3 VS |
17983 | grep -v '^ *+' conftest.er1 >conftest.err |
17984 | rm -f conftest.er1 | |
17985 | cat conftest.err >&5 | |
a848cd7e SC |
17986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17987 | (exit $ac_status); } && | |
5294a27e | 17988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17990 | (eval $ac_try) 2>&5 | |
17991 | ac_status=$? | |
17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17993 | (exit $ac_status); }; } && | |
17994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17996 | (eval $ac_try) 2>&5 | |
17997 | ac_status=$? | |
17998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17999 | (exit $ac_status); }; }; then | |
18000 | ac_lo=$ac_mid; break | |
18001 | else | |
18002 | echo "$as_me: failed program was:" >&5 | |
18003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18004 | ||
18005 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18006 | if test $ac_mid -le $ac_hi; then |
18007 | ac_lo= ac_hi= | |
18008 | break | |
18009 | fi | |
18010 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18011 | fi |
ac1cb8d3 | 18012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18013 | done |
18014 | else | |
18015 | echo "$as_me: failed program was:" >&5 | |
18016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18017 | ||
18018 | ac_lo= ac_hi= | |
18019 | fi | |
ac1cb8d3 | 18020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18021 | fi |
ac1cb8d3 | 18022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18023 | # Binary search between lo and hi bounds. |
18024 | while test "x$ac_lo" != "x$ac_hi"; do | |
18025 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18026 | cat >conftest.$ac_ext <<_ACEOF | |
18027 | /* confdefs.h. */ | |
18028 | _ACEOF | |
18029 | cat confdefs.h >>conftest.$ac_ext | |
18030 | cat >>conftest.$ac_ext <<_ACEOF | |
18031 | /* end confdefs.h. */ | |
18032 | $ac_includes_default | |
18033 | int | |
18034 | main () | |
18035 | { | |
18036 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18037 | test_array [0] = 0 | |
18038 | ||
18039 | ; | |
18040 | return 0; | |
18041 | } | |
18042 | _ACEOF | |
18043 | rm -f conftest.$ac_objext | |
18044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18045 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18046 | ac_status=$? |
ac1cb8d3 VS |
18047 | grep -v '^ *+' conftest.er1 >conftest.err |
18048 | rm -f conftest.er1 | |
18049 | cat conftest.err >&5 | |
a848cd7e SC |
18050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18051 | (exit $ac_status); } && | |
5294a27e | 18052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18054 | (eval $ac_try) 2>&5 | |
18055 | ac_status=$? | |
18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18057 | (exit $ac_status); }; } && | |
18058 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18060 | (eval $ac_try) 2>&5 | |
18061 | ac_status=$? | |
18062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18063 | (exit $ac_status); }; }; then | |
18064 | ac_hi=$ac_mid | |
18065 | else | |
18066 | echo "$as_me: failed program was:" >&5 | |
18067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18068 | ||
18069 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18070 | fi | |
ac1cb8d3 | 18071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18072 | done |
18073 | case $ac_lo in | |
18074 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18075 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18076 | See \`config.log' for more details." >&5 | |
18077 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18078 | See \`config.log' for more details." >&2;} | |
18079 | { (exit 1); exit 1; }; } ;; | |
18080 | esac | |
18081 | else | |
18082 | if test "$cross_compiling" = yes; then | |
5294a27e VZ |
18083 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18084 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18085 | { (exit 1); exit 1; }; } |
18086 | else | |
18087 | cat >conftest.$ac_ext <<_ACEOF | |
18088 | /* confdefs.h. */ | |
18089 | _ACEOF | |
18090 | cat confdefs.h >>conftest.$ac_ext | |
18091 | cat >>conftest.$ac_ext <<_ACEOF | |
18092 | /* end confdefs.h. */ | |
18093 | $ac_includes_default | |
18094 | long longval () { return (long) (sizeof (long long)); } | |
18095 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18096 | #include <stdio.h> | |
18097 | #include <stdlib.h> | |
18098 | int | |
18099 | main () | |
18100 | { | |
18101 | ||
18102 | FILE *f = fopen ("conftest.val", "w"); | |
18103 | if (! f) | |
18104 | exit (1); | |
18105 | if (((long) (sizeof (long long))) < 0) | |
18106 | { | |
18107 | long i = longval (); | |
18108 | if (i != ((long) (sizeof (long long)))) | |
18109 | exit (1); | |
18110 | fprintf (f, "%ld\n", i); | |
18111 | } | |
18112 | else | |
18113 | { | |
18114 | unsigned long i = ulongval (); | |
18115 | if (i != ((long) (sizeof (long long)))) | |
18116 | exit (1); | |
18117 | fprintf (f, "%lu\n", i); | |
18118 | } | |
18119 | exit (ferror (f) || fclose (f) != 0); | |
18120 | ||
18121 | ; | |
18122 | return 0; | |
18123 | } | |
18124 | _ACEOF | |
18125 | rm -f conftest$ac_exeext | |
18126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18127 | (eval $ac_link) 2>&5 | |
18128 | ac_status=$? | |
18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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); }; }; then | |
18136 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18137 | else | |
18138 | echo "$as_me: program exited with status $ac_status" >&5 | |
18139 | echo "$as_me: failed program was:" >&5 | |
18140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18141 | ||
18142 | ( exit $ac_status ) | |
18143 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18144 | See \`config.log' for more details." >&5 | |
18145 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18146 | See \`config.log' for more details." >&2;} | |
18147 | { (exit 1); exit 1; }; } | |
18148 | fi | |
ac1cb8d3 | 18149 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18150 | fi |
18151 | fi | |
18152 | rm -f conftest.val | |
18153 | else | |
18154 | ac_cv_sizeof_long_long=0 | |
18155 | fi | |
18156 | fi | |
18157 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18158 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18159 | cat >>confdefs.h <<_ACEOF | |
18160 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18161 | _ACEOF | |
18162 | ||
18163 | ||
18164 | esac | |
18165 | ||
18166 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18167 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18168 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18170 | else | |
18171 | ||
18172 | if test "$cross_compiling" = yes; then | |
18173 | ||
18174 | case "${host}" in | |
18175 | *-pc-msdosdjgpp ) | |
18176 | wx_cv_sizeof_wchar_t=0 | |
18177 | ;; | |
18178 | * ) | |
18179 | wx_cv_sizeof_wchar_t=4 | |
18180 | ;; | |
18181 | esac | |
18182 | ||
18183 | ||
18184 | else | |
18185 | cat >conftest.$ac_ext <<_ACEOF | |
18186 | /* confdefs.h. */ | |
18187 | _ACEOF | |
18188 | cat confdefs.h >>conftest.$ac_ext | |
18189 | cat >>conftest.$ac_ext <<_ACEOF | |
18190 | /* end confdefs.h. */ | |
18191 | ||
18192 | /* DJGPP only has fake wchar_t: */ | |
18193 | #ifdef __DJGPP__ | |
18194 | # error "fake wchar_t" | |
18195 | #endif | |
18196 | #ifdef HAVE_WCHAR_H | |
18197 | # ifdef __CYGWIN__ | |
18198 | # include <stddef.h> | |
18199 | # endif | |
18200 | # include <wchar.h> | |
18201 | #endif | |
18202 | #ifdef HAVE_STDLIB_H | |
18203 | # include <stdlib.h> | |
18204 | #endif | |
18205 | #include <stdio.h> | |
18206 | int main() | |
18207 | { | |
18208 | FILE *f=fopen("conftestval", "w"); | |
18209 | if (!f) exit(1); | |
18210 | fprintf(f, "%i", sizeof(wchar_t)); | |
18211 | exit(0); | |
18212 | } | |
18213 | ||
18214 | _ACEOF | |
18215 | rm -f conftest$ac_exeext | |
18216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18217 | (eval $ac_link) 2>&5 | |
18218 | ac_status=$? | |
18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18222 | (eval $ac_try) 2>&5 | |
18223 | ac_status=$? | |
18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18225 | (exit $ac_status); }; }; then | |
18226 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18227 | else | |
18228 | echo "$as_me: program exited with status $ac_status" >&5 | |
18229 | echo "$as_me: failed program was:" >&5 | |
18230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18231 | ||
18232 | ( exit $ac_status ) | |
18233 | wx_cv_sizeof_wchar_t=0 | |
18234 | fi | |
ac1cb8d3 | 18235 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18236 | fi |
18237 | ||
18238 | fi | |
18239 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18240 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18241 | ||
18242 | cat >>confdefs.h <<_ACEOF | |
18243 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18244 | _ACEOF | |
18245 | ||
18246 | ||
ba3d13e1 VZ |
18247 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18248 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18249 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18251 | else | |
18252 | ||
18253 | cat >conftest.$ac_ext <<_ACEOF | |
18254 | ||
18255 | #include <stdarg.h> | |
18256 | void foo(char *f, ...) | |
18257 | { | |
18258 | va_list ap1, ap2; | |
18259 | va_start(ap1, f); | |
18260 | va_copy(ap2, ap1); | |
18261 | va_end(ap2); | |
18262 | va_end(ap1); | |
18263 | } | |
5886b072 VZ |
18264 | int main() |
18265 | { | |
b902e639 VZ |
18266 | foo("hi", 17); |
18267 | return 0; | |
5886b072 | 18268 | } |
ba3d13e1 VZ |
18269 | _ACEOF |
18270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18272 | (eval $ac_link) 2>conftest.er1 | |
18273 | ac_status=$? | |
18274 | grep -v '^ *+' conftest.er1 >conftest.err | |
18275 | rm -f conftest.er1 | |
18276 | cat conftest.err >&5 | |
18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18278 | (exit $ac_status); } && | |
5294a27e | 18279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
18280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18281 | (eval $ac_try) 2>&5 | |
18282 | ac_status=$? | |
18283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18284 | (exit $ac_status); }; } && | |
18285 | { ac_try='test -s conftest$ac_exeext' | |
18286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18287 | (eval $ac_try) 2>&5 | |
18288 | ac_status=$? | |
18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18290 | (exit $ac_status); }; }; then | |
18291 | wx_cv_func_va_copy=yes | |
18292 | else | |
18293 | echo "$as_me: failed program was:" >&5 | |
18294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18295 | ||
18296 | wx_cv_func_va_copy=no | |
18297 | ||
18298 | fi | |
18299 | rm -f conftest.err conftest.$ac_objext \ | |
18300 | conftest$ac_exeext conftest.$ac_ext | |
18301 | ||
18302 | ||
18303 | fi | |
18304 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18305 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18306 | ||
18307 | if test $wx_cv_func_va_copy = "yes"; then | |
18308 | cat >>confdefs.h <<\_ACEOF | |
18309 | #define HAVE_VA_COPY 1 | |
18310 | _ACEOF | |
18311 | ||
18312 | else | |
18313 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18314 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18315 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18317 | else | |
18318 | ||
18319 | if test "$cross_compiling" = yes; then | |
18320 | wx_cv_type_va_list_lvalue=yes | |
18321 | ||
18322 | else | |
18323 | cat >conftest.$ac_ext <<_ACEOF | |
18324 | ||
18325 | #include <stdarg.h> | |
18326 | int foo(char *f, ...) | |
18327 | { | |
18328 | va_list ap1, ap2; | |
18329 | va_start(ap1, f); | |
18330 | ap2 = ap1; | |
18331 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18332 | return 1; | |
18333 | va_end(ap2); | |
18334 | va_end(ap1); | |
18335 | return 0; | |
18336 | } | |
18337 | int main() | |
18338 | { | |
18339 | return foo("hi", 17); | |
18340 | } | |
18341 | _ACEOF | |
18342 | rm -f conftest$ac_exeext | |
18343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18344 | (eval $ac_link) 2>&5 | |
18345 | ac_status=$? | |
18346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18349 | (eval $ac_try) 2>&5 | |
18350 | ac_status=$? | |
18351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18352 | (exit $ac_status); }; }; then | |
18353 | wx_cv_type_va_list_lvalue=yes | |
18354 | else | |
18355 | echo "$as_me: program exited with status $ac_status" >&5 | |
18356 | echo "$as_me: failed program was:" >&5 | |
18357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18358 | ||
18359 | ( exit $ac_status ) | |
18360 | wx_cv_type_va_list_lvalue=no | |
18361 | fi | |
18362 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18363 | fi | |
18364 | ||
18365 | ||
18366 | fi | |
18367 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18368 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18369 | ||
18370 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18371 | cat >>confdefs.h <<\_ACEOF | |
18372 | #define VA_LIST_IS_ARRAY 1 | |
18373 | _ACEOF | |
18374 | ||
18375 | fi | |
18376 | fi | |
18377 | ||
a848cd7e SC |
18378 | # Check whether --enable-largefile or --disable-largefile was given. |
18379 | if test "${enable_largefile+set}" = set; then | |
18380 | enableval="$enable_largefile" | |
18381 | ||
18382 | fi; | |
18383 | if test "$enable_largefile" != no; then | |
18384 | wx_largefile=no | |
18385 | ||
18386 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18387 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18388 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18390 | else | |
18391 | ||
18392 | cat >conftest.$ac_ext <<_ACEOF | |
18393 | /* confdefs.h. */ | |
18394 | _ACEOF | |
18395 | cat confdefs.h >>conftest.$ac_ext | |
18396 | cat >>conftest.$ac_ext <<_ACEOF | |
18397 | /* end confdefs.h. */ | |
18398 | #define _FILE_OFFSET_BITS 64 | |
18399 | #include <sys/types.h> | |
18400 | int | |
18401 | main () | |
18402 | { | |
18403 | typedef struct { | |
18404 | unsigned int field: sizeof(off_t) == 8; | |
18405 | } wxlf; | |
18406 | ||
18407 | ; | |
18408 | return 0; | |
18409 | } | |
18410 | _ACEOF | |
18411 | rm -f conftest.$ac_objext | |
18412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18413 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18414 | ac_status=$? |
ac1cb8d3 VS |
18415 | grep -v '^ *+' conftest.er1 >conftest.err |
18416 | rm -f conftest.er1 | |
18417 | cat conftest.err >&5 | |
a848cd7e SC |
18418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18419 | (exit $ac_status); } && | |
5294a27e | 18420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18422 | (eval $ac_try) 2>&5 | |
18423 | ac_status=$? | |
18424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18425 | (exit $ac_status); }; } && | |
18426 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18428 | (eval $ac_try) 2>&5 | |
18429 | ac_status=$? | |
18430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18431 | (exit $ac_status); }; }; then | |
18432 | ac_cv_sys_file_offset_bits=64 | |
18433 | else | |
18434 | echo "$as_me: failed program was:" >&5 | |
18435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18436 | ||
18437 | ac_cv_sys_file_offset_bits=no | |
18438 | fi | |
ac1cb8d3 | 18439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18440 | |
18441 | ||
18442 | fi | |
18443 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18444 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18445 | ||
18446 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18447 | wx_largefile=yes | |
18448 | cat >>confdefs.h <<_ACEOF | |
18449 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18450 | _ACEOF | |
18451 | ||
18452 | fi | |
18453 | ||
18454 | if test "x$wx_largefile" != "xyes"; then | |
18455 | ||
18456 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18457 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18458 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18460 | else | |
18461 | ||
18462 | cat >conftest.$ac_ext <<_ACEOF | |
18463 | /* confdefs.h. */ | |
18464 | _ACEOF | |
18465 | cat confdefs.h >>conftest.$ac_ext | |
18466 | cat >>conftest.$ac_ext <<_ACEOF | |
18467 | /* end confdefs.h. */ | |
18468 | #define _LARGE_FILES 1 | |
18469 | #include <sys/types.h> | |
18470 | int | |
18471 | main () | |
18472 | { | |
18473 | typedef struct { | |
18474 | unsigned int field: sizeof(off_t) == 8; | |
18475 | } wxlf; | |
18476 | ||
18477 | ; | |
18478 | return 0; | |
18479 | } | |
18480 | _ACEOF | |
18481 | rm -f conftest.$ac_objext | |
18482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18484 | ac_status=$? |
ac1cb8d3 VS |
18485 | grep -v '^ *+' conftest.er1 >conftest.err |
18486 | rm -f conftest.er1 | |
18487 | cat conftest.err >&5 | |
a848cd7e SC |
18488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18489 | (exit $ac_status); } && | |
5294a27e | 18490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18492 | (eval $ac_try) 2>&5 | |
18493 | ac_status=$? | |
18494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18495 | (exit $ac_status); }; } && | |
18496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18498 | (eval $ac_try) 2>&5 | |
18499 | ac_status=$? | |
18500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18501 | (exit $ac_status); }; }; then | |
18502 | ac_cv_sys_large_files=1 | |
18503 | else | |
18504 | echo "$as_me: failed program was:" >&5 | |
18505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18506 | ||
18507 | ac_cv_sys_large_files=no | |
18508 | fi | |
ac1cb8d3 | 18509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18510 | |
18511 | ||
18512 | fi | |
18513 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18514 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18515 | ||
18516 | if test "$ac_cv_sys_large_files" != no; then | |
18517 | wx_largefile=yes | |
18518 | cat >>confdefs.h <<_ACEOF | |
18519 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18520 | _ACEOF | |
18521 | ||
18522 | fi | |
18523 | ||
18524 | fi | |
18525 | ||
18526 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18527 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18528 | if test "x$wx_largefile" = "xyes"; then | |
18529 | cat >>confdefs.h <<\_ACEOF | |
18530 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18531 | _ACEOF | |
18532 | ||
18533 | fi | |
18534 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18535 | echo "${ECHO_T}$wx_largefile" >&6 | |
18536 | fi | |
18537 | ||
5b674b9d DE |
18538 | |
18539 | if test "x$wx_largefile" = "xyes"; then | |
18540 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18541 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18542 | else | |
18543 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18544 | fi | |
18545 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
18546 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
18547 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
18548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18549 | else | |
18550 | while :; do | |
18551 | ac_cv_sys_largefile_source=no | |
18552 | cat >conftest.$ac_ext <<_ACEOF | |
18553 | /* confdefs.h. */ | |
18554 | _ACEOF | |
18555 | cat confdefs.h >>conftest.$ac_ext | |
18556 | cat >>conftest.$ac_ext <<_ACEOF | |
18557 | /* end confdefs.h. */ | |
18558 | #include <stdio.h> | |
18559 | int | |
18560 | main () | |
18561 | { | |
18562 | return !fseeko; | |
18563 | ; | |
18564 | return 0; | |
18565 | } | |
18566 | _ACEOF | |
18567 | rm -f conftest.$ac_objext | |
18568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18569 | (eval $ac_compile) 2>conftest.er1 | |
18570 | ac_status=$? | |
18571 | grep -v '^ *+' conftest.er1 >conftest.err | |
18572 | rm -f conftest.er1 | |
18573 | cat conftest.err >&5 | |
18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18575 | (exit $ac_status); } && | |
18576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
18577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18578 | (eval $ac_try) 2>&5 | |
18579 | ac_status=$? | |
18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18581 | (exit $ac_status); }; } && | |
18582 | { ac_try='test -s conftest.$ac_objext' | |
18583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18584 | (eval $ac_try) 2>&5 | |
18585 | ac_status=$? | |
18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18587 | (exit $ac_status); }; }; then | |
18588 | break | |
18589 | else | |
18590 | echo "$as_me: failed program was:" >&5 | |
18591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18592 | ||
18593 | fi | |
18594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18595 | cat >conftest.$ac_ext <<_ACEOF | |
18596 | /* confdefs.h. */ | |
18597 | _ACEOF | |
18598 | cat confdefs.h >>conftest.$ac_ext | |
18599 | cat >>conftest.$ac_ext <<_ACEOF | |
18600 | /* end confdefs.h. */ | |
18601 | #define _LARGEFILE_SOURCE 1 | |
18602 | #include <stdio.h> | |
18603 | int | |
18604 | main () | |
18605 | { | |
18606 | return !fseeko; | |
18607 | ; | |
18608 | return 0; | |
18609 | } | |
18610 | _ACEOF | |
18611 | rm -f conftest.$ac_objext | |
18612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18613 | (eval $ac_compile) 2>conftest.er1 | |
18614 | ac_status=$? | |
18615 | grep -v '^ *+' conftest.er1 >conftest.err | |
18616 | rm -f conftest.er1 | |
18617 | cat conftest.err >&5 | |
18618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18619 | (exit $ac_status); } && | |
18620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
18621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18622 | (eval $ac_try) 2>&5 | |
18623 | ac_status=$? | |
18624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18625 | (exit $ac_status); }; } && | |
18626 | { ac_try='test -s conftest.$ac_objext' | |
18627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18628 | (eval $ac_try) 2>&5 | |
18629 | ac_status=$? | |
18630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18631 | (exit $ac_status); }; }; then | |
18632 | ac_cv_sys_largefile_source=1; break | |
18633 | else | |
18634 | echo "$as_me: failed program was:" >&5 | |
18635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18636 | ||
18637 | fi | |
18638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18639 | break | |
18640 | done | |
18641 | fi | |
18642 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
18643 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
18644 | if test "$ac_cv_sys_largefile_source" != no; then | |
18645 | ||
18646 | cat >>confdefs.h <<_ACEOF | |
18647 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
18648 | _ACEOF | |
18649 | ||
18650 | fi | |
18651 | rm -f conftest* | |
18652 | ||
18653 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
18654 | # in glibc 2.1.3, but that breaks too many other things. | |
18655 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
18656 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
18657 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
18658 | if test "${ac_cv_func_fseeko+set}" = set; then | |
18659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18660 | else | |
18661 | cat >conftest.$ac_ext <<_ACEOF | |
18662 | /* confdefs.h. */ | |
18663 | _ACEOF | |
18664 | cat confdefs.h >>conftest.$ac_ext | |
18665 | cat >>conftest.$ac_ext <<_ACEOF | |
18666 | /* end confdefs.h. */ | |
18667 | #include <stdio.h> | |
18668 | int | |
18669 | main () | |
18670 | { | |
18671 | return fseeko && fseeko (stdin, 0, 0); | |
18672 | ; | |
18673 | return 0; | |
18674 | } | |
18675 | _ACEOF | |
18676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18678 | (eval $ac_link) 2>conftest.er1 | |
18679 | ac_status=$? | |
18680 | grep -v '^ *+' conftest.er1 >conftest.err | |
18681 | rm -f conftest.er1 | |
18682 | cat conftest.err >&5 | |
18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18684 | (exit $ac_status); } && | |
18685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
18686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18687 | (eval $ac_try) 2>&5 | |
18688 | ac_status=$? | |
18689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18690 | (exit $ac_status); }; } && | |
18691 | { ac_try='test -s conftest$ac_exeext' | |
18692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18693 | (eval $ac_try) 2>&5 | |
18694 | ac_status=$? | |
18695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18696 | (exit $ac_status); }; }; then | |
18697 | ac_cv_func_fseeko=yes | |
18698 | else | |
18699 | echo "$as_me: failed program was:" >&5 | |
18700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18701 | ||
18702 | ac_cv_func_fseeko=no | |
18703 | fi | |
18704 | rm -f conftest.err conftest.$ac_objext \ | |
18705 | conftest$ac_exeext conftest.$ac_ext | |
18706 | fi | |
18707 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
18708 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
18709 | if test $ac_cv_func_fseeko = yes; then | |
18710 | ||
18711 | cat >>confdefs.h <<\_ACEOF | |
18712 | #define HAVE_FSEEKO 1 | |
18713 | _ACEOF | |
18714 | ||
18715 | fi | |
18716 | ||
5b674b9d DE |
18717 | if test "$ac_cv_sys_largefile_source" != no; then |
18718 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
18719 | fi |
18720 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18721 | fi | |
18722 | ||
18723 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18724 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18725 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18727 | else | |
18728 | ac_cv_c_bigendian=unknown | |
18729 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18730 | cat >conftest.$ac_ext <<_ACEOF | |
18731 | /* confdefs.h. */ | |
18732 | _ACEOF | |
18733 | cat confdefs.h >>conftest.$ac_ext | |
18734 | cat >>conftest.$ac_ext <<_ACEOF | |
18735 | /* end confdefs.h. */ | |
18736 | #include <sys/types.h> | |
18737 | #include <sys/param.h> | |
18738 | int | |
18739 | main () | |
18740 | { | |
18741 | ||
18742 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18743 | bogus endian macros | |
18744 | #endif | |
18745 | ; | |
18746 | return 0; | |
18747 | } | |
18748 | _ACEOF | |
18749 | rm -f conftest.$ac_objext | |
18750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18752 | ac_status=$? |
ac1cb8d3 VS |
18753 | grep -v '^ *+' conftest.er1 >conftest.err |
18754 | rm -f conftest.er1 | |
18755 | cat conftest.err >&5 | |
a848cd7e SC |
18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18757 | (exit $ac_status); } && | |
5294a27e | 18758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18760 | (eval $ac_try) 2>&5 | |
18761 | ac_status=$? | |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18763 | (exit $ac_status); }; } && | |
18764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18766 | (eval $ac_try) 2>&5 | |
18767 | ac_status=$? | |
18768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18769 | (exit $ac_status); }; }; then | |
18770 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18771 | cat >conftest.$ac_ext <<_ACEOF | |
18772 | /* confdefs.h. */ | |
18773 | _ACEOF | |
18774 | cat confdefs.h >>conftest.$ac_ext | |
18775 | cat >>conftest.$ac_ext <<_ACEOF | |
18776 | /* end confdefs.h. */ | |
18777 | #include <sys/types.h> | |
18778 | #include <sys/param.h> | |
18779 | int | |
18780 | main () | |
18781 | { | |
18782 | ||
18783 | #if BYTE_ORDER != BIG_ENDIAN | |
18784 | not big endian | |
18785 | #endif | |
18786 | ; | |
18787 | return 0; | |
18788 | } | |
18789 | _ACEOF | |
18790 | rm -f conftest.$ac_objext | |
18791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18792 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18793 | ac_status=$? |
ac1cb8d3 VS |
18794 | grep -v '^ *+' conftest.er1 >conftest.err |
18795 | rm -f conftest.er1 | |
18796 | cat conftest.err >&5 | |
a848cd7e SC |
18797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18798 | (exit $ac_status); } && | |
5294a27e | 18799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18801 | (eval $ac_try) 2>&5 | |
18802 | ac_status=$? | |
18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18804 | (exit $ac_status); }; } && | |
18805 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18807 | (eval $ac_try) 2>&5 | |
18808 | ac_status=$? | |
18809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18810 | (exit $ac_status); }; }; then | |
18811 | ac_cv_c_bigendian=yes | |
18812 | else | |
18813 | echo "$as_me: failed program was:" >&5 | |
18814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18815 | ||
18816 | ac_cv_c_bigendian=no | |
18817 | fi | |
ac1cb8d3 | 18818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18819 | else |
18820 | echo "$as_me: failed program was:" >&5 | |
18821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18822 | ||
18823 | fi | |
ac1cb8d3 | 18824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18825 | if test $ac_cv_c_bigendian = unknown; then |
18826 | if test "$cross_compiling" = yes; then | |
18827 | ac_cv_c_bigendian=unknown | |
18828 | else | |
18829 | cat >conftest.$ac_ext <<_ACEOF | |
18830 | /* confdefs.h. */ | |
18831 | _ACEOF | |
18832 | cat confdefs.h >>conftest.$ac_ext | |
18833 | cat >>conftest.$ac_ext <<_ACEOF | |
18834 | /* end confdefs.h. */ | |
18835 | main () { | |
18836 | /* Are we little or big endian? From Harbison&Steele. */ | |
18837 | union | |
18838 | { | |
18839 | long l; | |
18840 | char c[sizeof (long)]; | |
18841 | } u; | |
18842 | u.l = 1; | |
18843 | exit (u.c[sizeof (long) - 1] == 1); | |
18844 | } | |
18845 | _ACEOF | |
18846 | rm -f conftest$ac_exeext | |
18847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18848 | (eval $ac_link) 2>&5 | |
18849 | ac_status=$? | |
18850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18851 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18853 | (eval $ac_try) 2>&5 | |
18854 | ac_status=$? | |
18855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18856 | (exit $ac_status); }; }; then | |
18857 | ac_cv_c_bigendian=no | |
18858 | else | |
18859 | echo "$as_me: program exited with status $ac_status" >&5 | |
18860 | echo "$as_me: failed program was:" >&5 | |
18861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18862 | ||
18863 | ( exit $ac_status ) | |
18864 | ac_cv_c_bigendian=yes | |
18865 | fi | |
ac1cb8d3 | 18866 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18867 | fi |
18868 | fi | |
18869 | fi | |
18870 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18871 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18872 | if test $ac_cv_c_bigendian = unknown; then | |
18873 | { 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 | |
18874 | 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;} | |
18875 | fi | |
18876 | if test $ac_cv_c_bigendian = yes; then | |
18877 | cat >>confdefs.h <<\_ACEOF | |
18878 | #define WORDS_BIGENDIAN 1 | |
18879 | _ACEOF | |
18880 | ||
18881 | fi | |
18882 | ||
18883 | ||
18884 | ac_ext=cc | |
18885 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18886 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18887 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18888 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18889 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18890 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18891 | if test -z "$CXXCPP"; then | |
18892 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18894 | else | |
18895 | # Double quotes because CXXCPP needs to be expanded | |
18896 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18897 | do | |
18898 | ac_preproc_ok=false | |
18899 | for ac_cxx_preproc_warn_flag in '' yes | |
18900 | do | |
18901 | # Use a header file that comes with gcc, so configuring glibc | |
18902 | # with a fresh cross-compiler works. | |
18903 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18904 | # <limits.h> exists even on freestanding compilers. | |
18905 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18906 | # not just through cpp. "Syntax error" is here to catch this case. | |
18907 | cat >conftest.$ac_ext <<_ACEOF | |
18908 | /* confdefs.h. */ | |
18909 | _ACEOF | |
18910 | cat confdefs.h >>conftest.$ac_ext | |
18911 | cat >>conftest.$ac_ext <<_ACEOF | |
18912 | /* end confdefs.h. */ | |
18913 | #ifdef __STDC__ | |
18914 | # include <limits.h> | |
18915 | #else | |
18916 | # include <assert.h> | |
18917 | #endif | |
ac1cb8d3 | 18918 | Syntax error |
a848cd7e SC |
18919 | _ACEOF |
18920 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18921 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18922 | ac_status=$? | |
18923 | grep -v '^ *+' conftest.er1 >conftest.err | |
18924 | rm -f conftest.er1 | |
18925 | cat conftest.err >&5 | |
18926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18927 | (exit $ac_status); } >/dev/null; then | |
18928 | if test -s conftest.err; then | |
18929 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18930 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18931 | else |
18932 | ac_cpp_err= | |
18933 | fi | |
18934 | else | |
18935 | ac_cpp_err=yes | |
18936 | fi | |
18937 | if test -z "$ac_cpp_err"; then | |
18938 | : | |
18939 | else | |
18940 | echo "$as_me: failed program was:" >&5 | |
18941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18942 | ||
18943 | # Broken: fails on valid input. | |
18944 | continue | |
18945 | fi | |
18946 | rm -f conftest.err conftest.$ac_ext | |
18947 | ||
18948 | # OK, works on sane cases. Now check whether non-existent headers | |
18949 | # can be detected and how. | |
18950 | cat >conftest.$ac_ext <<_ACEOF | |
18951 | /* confdefs.h. */ | |
18952 | _ACEOF | |
18953 | cat confdefs.h >>conftest.$ac_ext | |
18954 | cat >>conftest.$ac_ext <<_ACEOF | |
18955 | /* end confdefs.h. */ | |
18956 | #include <ac_nonexistent.h> | |
18957 | _ACEOF | |
18958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18960 | ac_status=$? | |
18961 | grep -v '^ *+' conftest.er1 >conftest.err | |
18962 | rm -f conftest.er1 | |
18963 | cat conftest.err >&5 | |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18965 | (exit $ac_status); } >/dev/null; then | |
18966 | if test -s conftest.err; then | |
18967 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18968 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18969 | else |
18970 | ac_cpp_err= | |
18971 | fi | |
18972 | else | |
18973 | ac_cpp_err=yes | |
18974 | fi | |
18975 | if test -z "$ac_cpp_err"; then | |
18976 | # Broken: success on invalid input. | |
18977 | continue | |
18978 | else | |
18979 | echo "$as_me: failed program was:" >&5 | |
18980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18981 | ||
18982 | # Passes both tests. | |
18983 | ac_preproc_ok=: | |
18984 | break | |
18985 | fi | |
18986 | rm -f conftest.err conftest.$ac_ext | |
18987 | ||
18988 | done | |
18989 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18990 | rm -f conftest.err conftest.$ac_ext | |
18991 | if $ac_preproc_ok; then | |
18992 | break | |
18993 | fi | |
18994 | ||
18995 | done | |
18996 | ac_cv_prog_CXXCPP=$CXXCPP | |
18997 | ||
18998 | fi | |
18999 | CXXCPP=$ac_cv_prog_CXXCPP | |
19000 | else | |
19001 | ac_cv_prog_CXXCPP=$CXXCPP | |
19002 | fi | |
19003 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
19004 | echo "${ECHO_T}$CXXCPP" >&6 | |
19005 | ac_preproc_ok=false | |
19006 | for ac_cxx_preproc_warn_flag in '' yes | |
19007 | do | |
19008 | # Use a header file that comes with gcc, so configuring glibc | |
19009 | # with a fresh cross-compiler works. | |
19010 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19011 | # <limits.h> exists even on freestanding compilers. | |
19012 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19013 | # not just through cpp. "Syntax error" is here to catch this case. | |
19014 | cat >conftest.$ac_ext <<_ACEOF | |
19015 | /* confdefs.h. */ | |
19016 | _ACEOF | |
19017 | cat confdefs.h >>conftest.$ac_ext | |
19018 | cat >>conftest.$ac_ext <<_ACEOF | |
19019 | /* end confdefs.h. */ | |
19020 | #ifdef __STDC__ | |
19021 | # include <limits.h> | |
19022 | #else | |
19023 | # include <assert.h> | |
19024 | #endif | |
ac1cb8d3 | 19025 | Syntax error |
a848cd7e SC |
19026 | _ACEOF |
19027 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19028 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19029 | ac_status=$? | |
19030 | grep -v '^ *+' conftest.er1 >conftest.err | |
19031 | rm -f conftest.er1 | |
19032 | cat conftest.err >&5 | |
19033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19034 | (exit $ac_status); } >/dev/null; then | |
19035 | if test -s conftest.err; then | |
19036 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19037 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19038 | else |
19039 | ac_cpp_err= | |
19040 | fi | |
19041 | else | |
19042 | ac_cpp_err=yes | |
19043 | fi | |
19044 | if test -z "$ac_cpp_err"; then | |
19045 | : | |
19046 | else | |
19047 | echo "$as_me: failed program was:" >&5 | |
19048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19049 | ||
19050 | # Broken: fails on valid input. | |
19051 | continue | |
19052 | fi | |
19053 | rm -f conftest.err conftest.$ac_ext | |
19054 | ||
19055 | # OK, works on sane cases. Now check whether non-existent headers | |
19056 | # can be detected and how. | |
19057 | cat >conftest.$ac_ext <<_ACEOF | |
19058 | /* confdefs.h. */ | |
19059 | _ACEOF | |
19060 | cat confdefs.h >>conftest.$ac_ext | |
19061 | cat >>conftest.$ac_ext <<_ACEOF | |
19062 | /* end confdefs.h. */ | |
19063 | #include <ac_nonexistent.h> | |
19064 | _ACEOF | |
19065 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19066 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19067 | ac_status=$? | |
19068 | grep -v '^ *+' conftest.er1 >conftest.err | |
19069 | rm -f conftest.er1 | |
19070 | cat conftest.err >&5 | |
19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19072 | (exit $ac_status); } >/dev/null; then | |
19073 | if test -s conftest.err; then | |
19074 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19075 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19076 | else |
19077 | ac_cpp_err= | |
19078 | fi | |
19079 | else | |
19080 | ac_cpp_err=yes | |
19081 | fi | |
19082 | if test -z "$ac_cpp_err"; then | |
19083 | # Broken: success on invalid input. | |
19084 | continue | |
19085 | else | |
19086 | echo "$as_me: failed program was:" >&5 | |
19087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19088 | ||
19089 | # Passes both tests. | |
19090 | ac_preproc_ok=: | |
19091 | break | |
19092 | fi | |
19093 | rm -f conftest.err conftest.$ac_ext | |
19094 | ||
19095 | done | |
19096 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19097 | rm -f conftest.err conftest.$ac_ext | |
19098 | if $ac_preproc_ok; then | |
19099 | : | |
19100 | else | |
19101 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19102 | See \`config.log' for more details." >&5 | |
19103 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19104 | See \`config.log' for more details." >&2;} | |
19105 | { (exit 1); exit 1; }; } | |
19106 | fi | |
19107 | ||
19108 | ac_ext=cc | |
19109 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19113 | ||
19114 | ||
19115 | ||
19116 | ||
19117 | ||
19118 | ac_ext=cc | |
19119 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19123 | ||
19124 | ||
19125 | ||
19126 | for ac_header in iostream | |
19127 | do | |
19128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19129 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19130 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19134 | fi | |
19135 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19136 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19137 | else | |
19138 | # Is the header compilable? | |
19139 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19140 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19141 | cat >conftest.$ac_ext <<_ACEOF | |
19142 | /* confdefs.h. */ | |
19143 | _ACEOF | |
19144 | cat confdefs.h >>conftest.$ac_ext | |
19145 | cat >>conftest.$ac_ext <<_ACEOF | |
19146 | /* end confdefs.h. */ | |
19147 | $ac_includes_default | |
19148 | #include <$ac_header> | |
19149 | _ACEOF | |
19150 | rm -f conftest.$ac_objext | |
19151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19152 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19153 | ac_status=$? |
ac1cb8d3 VS |
19154 | grep -v '^ *+' conftest.er1 >conftest.err |
19155 | rm -f conftest.er1 | |
19156 | cat conftest.err >&5 | |
a848cd7e SC |
19157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19158 | (exit $ac_status); } && | |
5294a27e | 19159 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19161 | (eval $ac_try) 2>&5 | |
19162 | ac_status=$? | |
19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19164 | (exit $ac_status); }; } && | |
19165 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19167 | (eval $ac_try) 2>&5 | |
19168 | ac_status=$? | |
19169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19170 | (exit $ac_status); }; }; then | |
19171 | ac_header_compiler=yes | |
19172 | else | |
19173 | echo "$as_me: failed program was:" >&5 | |
19174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19175 | ||
19176 | ac_header_compiler=no | |
19177 | fi | |
ac1cb8d3 | 19178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19179 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19180 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19181 | ||
19182 | # Is the header present? | |
19183 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19184 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19185 | cat >conftest.$ac_ext <<_ACEOF | |
19186 | /* confdefs.h. */ | |
19187 | _ACEOF | |
19188 | cat confdefs.h >>conftest.$ac_ext | |
19189 | cat >>conftest.$ac_ext <<_ACEOF | |
19190 | /* end confdefs.h. */ | |
19191 | #include <$ac_header> | |
19192 | _ACEOF | |
19193 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19194 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19195 | ac_status=$? | |
19196 | grep -v '^ *+' conftest.er1 >conftest.err | |
19197 | rm -f conftest.er1 | |
19198 | cat conftest.err >&5 | |
19199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19200 | (exit $ac_status); } >/dev/null; then | |
19201 | if test -s conftest.err; then | |
19202 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19203 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19204 | else |
19205 | ac_cpp_err= | |
19206 | fi | |
19207 | else | |
19208 | ac_cpp_err=yes | |
19209 | fi | |
19210 | if test -z "$ac_cpp_err"; then | |
19211 | ac_header_preproc=yes | |
19212 | else | |
19213 | echo "$as_me: failed program was:" >&5 | |
19214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19215 | ||
19216 | ac_header_preproc=no | |
19217 | fi | |
19218 | rm -f conftest.err conftest.$ac_ext | |
19219 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19220 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19221 | ||
19222 | # So? What about this header? | |
ac1cb8d3 VS |
19223 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19224 | yes:no: ) | |
a848cd7e SC |
19225 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19226 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19228 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19229 | ac_header_preproc=yes | |
a848cd7e | 19230 | ;; |
ac1cb8d3 | 19231 | no:yes:* ) |
a848cd7e SC |
19232 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19233 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19234 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19235 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19236 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19237 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19238 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19239 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19240 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19241 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19242 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19243 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19244 | ( |
19245 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19246 | ## ----------------------------------------- ## |
19247 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19248 | ## ----------------------------------------- ## | |
a848cd7e SC |
19249 | _ASBOX |
19250 | ) | | |
19251 | sed "s/^/$as_me: WARNING: /" >&2 | |
19252 | ;; | |
19253 | esac | |
19254 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19258 | else | |
ac1cb8d3 | 19259 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19260 | fi |
19261 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19262 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19263 | ||
19264 | fi | |
19265 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19266 | cat >>confdefs.h <<_ACEOF | |
19267 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19268 | _ACEOF | |
19269 | ||
19270 | fi | |
19271 | ||
19272 | done | |
19273 | ||
19274 | ||
19275 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19276 | : | |
19277 | else | |
19278 | cat >>confdefs.h <<\_ACEOF | |
19279 | #define wxUSE_IOSTREAMH 1 | |
19280 | _ACEOF | |
19281 | ||
19282 | fi | |
19283 | ||
19284 | ac_ext=c | |
19285 | ac_cpp='$CPP $CPPFLAGS' | |
19286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19289 | ||
19290 | ||
19291 | ||
19292 | ||
19293 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19294 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19295 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19297 | else | |
19298 | ||
19299 | ||
19300 | ||
19301 | ac_ext=cc | |
19302 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19303 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19304 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19305 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19306 | ||
19307 | ||
19308 | cat >conftest.$ac_ext <<_ACEOF | |
19309 | /* confdefs.h. */ | |
19310 | _ACEOF | |
19311 | cat confdefs.h >>conftest.$ac_ext | |
19312 | cat >>conftest.$ac_ext <<_ACEOF | |
19313 | /* end confdefs.h. */ | |
19314 | ||
19315 | ||
19316 | int | |
19317 | main () | |
19318 | { | |
19319 | ||
19320 | bool b = true; | |
19321 | ||
19322 | return 0; | |
19323 | ||
19324 | ; | |
19325 | return 0; | |
19326 | } | |
19327 | _ACEOF | |
19328 | rm -f conftest.$ac_objext | |
19329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19330 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19331 | ac_status=$? |
ac1cb8d3 VS |
19332 | grep -v '^ *+' conftest.er1 >conftest.err |
19333 | rm -f conftest.er1 | |
19334 | cat conftest.err >&5 | |
a848cd7e SC |
19335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19336 | (exit $ac_status); } && | |
5294a27e | 19337 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19339 | (eval $ac_try) 2>&5 | |
19340 | ac_status=$? | |
19341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19342 | (exit $ac_status); }; } && | |
19343 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19345 | (eval $ac_try) 2>&5 | |
19346 | ac_status=$? | |
19347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19348 | (exit $ac_status); }; }; then | |
19349 | ||
19350 | wx_cv_cpp_bool=yes | |
19351 | ||
19352 | else | |
19353 | echo "$as_me: failed program was:" >&5 | |
19354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19355 | ||
19356 | ||
19357 | wx_cv_cpp_bool=no | |
19358 | ||
19359 | ||
19360 | fi | |
ac1cb8d3 | 19361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19362 | |
19363 | ac_ext=c | |
19364 | ac_cpp='$CPP $CPPFLAGS' | |
19365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19368 | ||
19369 | ||
19370 | fi | |
19371 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19372 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19373 | ||
19374 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19375 | cat >>confdefs.h <<\_ACEOF | |
19376 | #define HAVE_BOOL 1 | |
19377 | _ACEOF | |
19378 | ||
19379 | fi | |
19380 | ||
19381 | ||
19382 | ||
19383 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19384 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19385 | if test "${wx_cv_explicit+set}" = set; then | |
19386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19387 | else | |
19388 | ||
19389 | ||
19390 | ||
19391 | ac_ext=cc | |
19392 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19393 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19394 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19395 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19396 | ||
19397 | ||
19398 | cat >conftest.$ac_ext <<_ACEOF | |
19399 | /* confdefs.h. */ | |
19400 | _ACEOF | |
19401 | cat confdefs.h >>conftest.$ac_ext | |
19402 | cat >>conftest.$ac_ext <<_ACEOF | |
19403 | /* end confdefs.h. */ | |
19404 | ||
19405 | class Foo { public: explicit Foo(int) {} }; | |
19406 | ||
19407 | int | |
19408 | main () | |
19409 | { | |
19410 | ||
19411 | return 0; | |
19412 | ||
19413 | ; | |
19414 | return 0; | |
19415 | } | |
19416 | _ACEOF | |
19417 | rm -f conftest.$ac_objext | |
19418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19419 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19420 | ac_status=$? |
ac1cb8d3 VS |
19421 | grep -v '^ *+' conftest.er1 >conftest.err |
19422 | rm -f conftest.er1 | |
19423 | cat conftest.err >&5 | |
a848cd7e SC |
19424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19425 | (exit $ac_status); } && | |
5294a27e | 19426 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19428 | (eval $ac_try) 2>&5 | |
19429 | ac_status=$? | |
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19431 | (exit $ac_status); }; } && | |
19432 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19434 | (eval $ac_try) 2>&5 | |
19435 | ac_status=$? | |
19436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19437 | (exit $ac_status); }; }; then | |
19438 | ||
19439 | cat >conftest.$ac_ext <<_ACEOF | |
19440 | /* confdefs.h. */ | |
19441 | _ACEOF | |
19442 | cat confdefs.h >>conftest.$ac_ext | |
19443 | cat >>conftest.$ac_ext <<_ACEOF | |
19444 | /* end confdefs.h. */ | |
19445 | ||
19446 | class Foo { public: explicit Foo(int) {} }; | |
19447 | static void TakeFoo(const Foo& foo) { } | |
19448 | ||
19449 | int | |
19450 | main () | |
19451 | { | |
19452 | ||
19453 | TakeFoo(17); | |
19454 | return 0; | |
19455 | ||
19456 | ; | |
19457 | return 0; | |
19458 | } | |
19459 | _ACEOF | |
19460 | rm -f conftest.$ac_objext | |
19461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19462 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19463 | ac_status=$? |
ac1cb8d3 VS |
19464 | grep -v '^ *+' conftest.er1 >conftest.err |
19465 | rm -f conftest.er1 | |
19466 | cat conftest.err >&5 | |
a848cd7e SC |
19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19468 | (exit $ac_status); } && | |
5294a27e | 19469 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19471 | (eval $ac_try) 2>&5 | |
19472 | ac_status=$? | |
19473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19474 | (exit $ac_status); }; } && | |
19475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19477 | (eval $ac_try) 2>&5 | |
19478 | ac_status=$? | |
19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19480 | (exit $ac_status); }; }; then | |
19481 | wx_cv_explicit=no | |
19482 | else | |
19483 | echo "$as_me: failed program was:" >&5 | |
19484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19485 | ||
19486 | wx_cv_explicit=yes | |
19487 | ||
19488 | fi | |
ac1cb8d3 | 19489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19490 | |
19491 | else | |
19492 | echo "$as_me: failed program was:" >&5 | |
19493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19494 | ||
19495 | wx_cv_explicit=no | |
19496 | ||
19497 | fi | |
ac1cb8d3 | 19498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19499 | |
19500 | ac_ext=c | |
19501 | ac_cpp='$CPP $CPPFLAGS' | |
19502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19505 | ||
19506 | ||
19507 | fi | |
19508 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19509 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19510 | ||
19511 | if test "$wx_cv_explicit" = "yes"; then | |
19512 | cat >>confdefs.h <<\_ACEOF | |
19513 | #define HAVE_EXPLICIT 1 | |
19514 | _ACEOF | |
19515 | ||
19516 | fi | |
19517 | ||
19518 | ||
19519 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19520 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19521 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19523 | else | |
19524 | ||
19525 | ||
19526 | ac_ext=cc | |
19527 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19528 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19529 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19530 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19531 | ||
19532 | cat >conftest.$ac_ext <<_ACEOF | |
19533 | /* confdefs.h. */ | |
19534 | _ACEOF | |
19535 | cat confdefs.h >>conftest.$ac_ext | |
19536 | cat >>conftest.$ac_ext <<_ACEOF | |
19537 | /* end confdefs.h. */ | |
19538 | ||
19539 | int | |
19540 | main () | |
19541 | { | |
19542 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19543 | ; | |
19544 | return 0; | |
19545 | } | |
19546 | _ACEOF | |
19547 | rm -f conftest.$ac_objext | |
19548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19549 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19550 | ac_status=$? |
ac1cb8d3 VS |
19551 | grep -v '^ *+' conftest.er1 >conftest.err |
19552 | rm -f conftest.er1 | |
19553 | cat conftest.err >&5 | |
a848cd7e SC |
19554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19555 | (exit $ac_status); } && | |
5294a27e | 19556 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19558 | (eval $ac_try) 2>&5 | |
19559 | ac_status=$? | |
19560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19561 | (exit $ac_status); }; } && | |
19562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19564 | (eval $ac_try) 2>&5 | |
19565 | ac_status=$? | |
19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19567 | (exit $ac_status); }; }; then | |
19568 | ac_cv_cxx_const_cast=yes | |
19569 | else | |
19570 | echo "$as_me: failed program was:" >&5 | |
19571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19572 | ||
19573 | ac_cv_cxx_const_cast=no | |
19574 | fi | |
ac1cb8d3 | 19575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19576 | ac_ext=c |
19577 | ac_cpp='$CPP $CPPFLAGS' | |
19578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19581 | ||
19582 | ||
19583 | fi | |
19584 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19585 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19586 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19587 | ||
19588 | cat >>confdefs.h <<\_ACEOF | |
19589 | #define HAVE_CONST_CAST | |
19590 | _ACEOF | |
19591 | ||
19592 | fi | |
19593 | ||
7714864e RL |
19594 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19595 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19596 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19598 | else | |
19599 | ||
19600 | ||
19601 | ac_ext=cc | |
19602 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19603 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19604 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19605 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19606 | ||
19607 | cat >conftest.$ac_ext <<_ACEOF | |
19608 | /* confdefs.h. */ | |
19609 | _ACEOF | |
19610 | cat confdefs.h >>conftest.$ac_ext | |
19611 | cat >>conftest.$ac_ext <<_ACEOF | |
19612 | /* end confdefs.h. */ | |
19613 | #include <typeinfo> | |
19614 | class Base { public : Base () {} virtual void f () = 0;}; | |
19615 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19616 | class Unrelated { public : Unrelated () {} }; | |
19617 | int g (Unrelated&) { return 0; } | |
19618 | int | |
19619 | main () | |
19620 | { | |
19621 | ||
19622 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19623 | ; | |
19624 | return 0; | |
19625 | } | |
19626 | _ACEOF | |
19627 | rm -f conftest.$ac_objext | |
19628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19629 | (eval $ac_compile) 2>conftest.er1 | |
19630 | ac_status=$? | |
19631 | grep -v '^ *+' conftest.er1 >conftest.err | |
19632 | rm -f conftest.er1 | |
19633 | cat conftest.err >&5 | |
19634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19635 | (exit $ac_status); } && | |
5294a27e | 19636 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
19637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19638 | (eval $ac_try) 2>&5 | |
19639 | ac_status=$? | |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19641 | (exit $ac_status); }; } && | |
19642 | { ac_try='test -s conftest.$ac_objext' | |
19643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19644 | (eval $ac_try) 2>&5 | |
19645 | ac_status=$? | |
19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19647 | (exit $ac_status); }; }; then | |
19648 | ac_cv_cxx_reinterpret_cast=yes | |
19649 | else | |
19650 | echo "$as_me: failed program was:" >&5 | |
19651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19652 | ||
19653 | ac_cv_cxx_reinterpret_cast=no | |
19654 | fi | |
19655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19656 | ac_ext=c | |
19657 | ac_cpp='$CPP $CPPFLAGS' | |
19658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19661 | ||
19662 | ||
19663 | fi | |
19664 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
19665 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
19666 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
19667 | ||
19668 | cat >>confdefs.h <<\_ACEOF | |
19669 | #define HAVE_REINTERPRET_CAST | |
19670 | _ACEOF | |
19671 | ||
19672 | fi | |
19673 | ||
a848cd7e SC |
19674 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19675 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19676 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19678 | else | |
19679 | ||
19680 | ||
19681 | ac_ext=cc | |
19682 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19683 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19684 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19685 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19686 | ||
19687 | cat >conftest.$ac_ext <<_ACEOF | |
19688 | /* confdefs.h. */ | |
19689 | _ACEOF | |
19690 | cat confdefs.h >>conftest.$ac_ext | |
19691 | cat >>conftest.$ac_ext <<_ACEOF | |
19692 | /* end confdefs.h. */ | |
19693 | #include <typeinfo> | |
19694 | class Base { public : Base () {} virtual void f () = 0; }; | |
19695 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19696 | int g (Derived&) { return 0; } | |
19697 | int | |
19698 | main () | |
19699 | { | |
19700 | ||
19701 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19702 | ; | |
19703 | return 0; | |
19704 | } | |
19705 | _ACEOF | |
19706 | rm -f conftest.$ac_objext | |
19707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19709 | ac_status=$? |
ac1cb8d3 VS |
19710 | grep -v '^ *+' conftest.er1 >conftest.err |
19711 | rm -f conftest.er1 | |
19712 | cat conftest.err >&5 | |
a848cd7e SC |
19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19714 | (exit $ac_status); } && | |
5294a27e | 19715 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19717 | (eval $ac_try) 2>&5 | |
19718 | ac_status=$? | |
19719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19720 | (exit $ac_status); }; } && | |
19721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19723 | (eval $ac_try) 2>&5 | |
19724 | ac_status=$? | |
19725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19726 | (exit $ac_status); }; }; then | |
19727 | ac_cv_cxx_static_cast=yes | |
19728 | else | |
19729 | echo "$as_me: failed program was:" >&5 | |
19730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19731 | ||
19732 | ac_cv_cxx_static_cast=no | |
19733 | fi | |
ac1cb8d3 | 19734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19735 | ac_ext=c |
19736 | ac_cpp='$CPP $CPPFLAGS' | |
19737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19740 | ||
19741 | ||
19742 | fi | |
19743 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19744 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19745 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19746 | ||
19747 | cat >>confdefs.h <<\_ACEOF | |
19748 | #define HAVE_STATIC_CAST | |
19749 | _ACEOF | |
19750 | ||
19751 | fi | |
19752 | ||
19753 | ||
19754 | if test "$wxUSE_STL" = "yes"; then | |
19755 | ac_ext=cc | |
19756 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19757 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19758 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19759 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19760 | ||
19761 | ||
19762 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19763 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19764 | cat >conftest.$ac_ext <<_ACEOF | |
19765 | /* confdefs.h. */ | |
19766 | _ACEOF | |
19767 | cat confdefs.h >>conftest.$ac_ext | |
19768 | cat >>conftest.$ac_ext <<_ACEOF | |
19769 | /* end confdefs.h. */ | |
19770 | #include <string> | |
19771 | #include <functional> | |
19772 | #include <algorithm> | |
19773 | #include <vector> | |
19774 | #include <list> | |
19775 | int | |
19776 | main () | |
19777 | { | |
19778 | std::vector<int> moo; | |
19779 | std::list<int> foo; | |
19780 | std::vector<int>::iterator it = | |
19781 | std::find_if(moo.begin(), moo.end(), | |
19782 | std::bind2nd(std::less<int>(), 3)); | |
19783 | ; | |
19784 | return 0; | |
19785 | } | |
19786 | _ACEOF | |
19787 | rm -f conftest.$ac_objext | |
19788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19789 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19790 | ac_status=$? |
ac1cb8d3 VS |
19791 | grep -v '^ *+' conftest.er1 >conftest.err |
19792 | rm -f conftest.er1 | |
19793 | cat conftest.err >&5 | |
a848cd7e SC |
19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19795 | (exit $ac_status); } && | |
5294a27e | 19796 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19798 | (eval $ac_try) 2>&5 | |
19799 | ac_status=$? | |
19800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19801 | (exit $ac_status); }; } && | |
19802 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19804 | (eval $ac_try) 2>&5 | |
19805 | ac_status=$? | |
19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19807 | (exit $ac_status); }; }; then | |
19808 | echo "$as_me:$LINENO: result: yes" >&5 | |
19809 | echo "${ECHO_T}yes" >&6 | |
19810 | else | |
19811 | echo "$as_me: failed program was:" >&5 | |
19812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19813 | ||
19814 | echo "$as_me:$LINENO: result: no" >&5 | |
19815 | echo "${ECHO_T}no" >&6 | |
19816 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19817 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19818 | { (exit 1); exit 1; }; } | |
19819 | fi | |
ac1cb8d3 | 19820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19821 | |
19822 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19823 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19824 | cat >conftest.$ac_ext <<_ACEOF | |
19825 | /* confdefs.h. */ | |
19826 | _ACEOF | |
19827 | cat confdefs.h >>conftest.$ac_ext | |
19828 | cat >>conftest.$ac_ext <<_ACEOF | |
19829 | /* end confdefs.h. */ | |
19830 | #include <string> | |
19831 | int | |
19832 | main () | |
19833 | { | |
19834 | std::wstring foo; | |
19835 | ; | |
19836 | return 0; | |
19837 | } | |
19838 | _ACEOF | |
19839 | rm -f conftest.$ac_objext | |
19840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19841 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19842 | ac_status=$? |
ac1cb8d3 VS |
19843 | grep -v '^ *+' conftest.er1 >conftest.err |
19844 | rm -f conftest.er1 | |
19845 | cat conftest.err >&5 | |
a848cd7e SC |
19846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19847 | (exit $ac_status); } && | |
5294a27e | 19848 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19850 | (eval $ac_try) 2>&5 | |
19851 | ac_status=$? | |
19852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19853 | (exit $ac_status); }; } && | |
19854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19856 | (eval $ac_try) 2>&5 | |
19857 | ac_status=$? | |
19858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19859 | (exit $ac_status); }; }; then | |
19860 | echo "$as_me:$LINENO: result: yes" >&5 | |
19861 | echo "${ECHO_T}yes" >&6 | |
19862 | cat >>confdefs.h <<\_ACEOF | |
19863 | #define HAVE_STD_WSTRING 1 | |
19864 | _ACEOF | |
19865 | ||
19866 | else | |
19867 | echo "$as_me: failed program was:" >&5 | |
19868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19869 | ||
19870 | echo "$as_me:$LINENO: result: no" >&5 | |
19871 | echo "${ECHO_T}no" >&6 | |
19872 | fi | |
ac1cb8d3 | 19873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19874 | |
19875 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19876 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19877 | cat >conftest.$ac_ext <<_ACEOF | |
19878 | /* confdefs.h. */ | |
19879 | _ACEOF | |
19880 | cat confdefs.h >>conftest.$ac_ext | |
19881 | cat >>conftest.$ac_ext <<_ACEOF | |
19882 | /* end confdefs.h. */ | |
19883 | #include <string> | |
19884 | int | |
19885 | main () | |
19886 | { | |
19887 | std::string foo, bar; | |
19888 | foo.compare(bar); | |
19889 | foo.compare(1, 1, bar); | |
19890 | foo.compare(1, 1, bar, 1, 1); | |
19891 | foo.compare(""); | |
19892 | foo.compare(1, 1, ""); | |
19893 | foo.compare(1, 1, "", 2); | |
19894 | ; | |
19895 | return 0; | |
19896 | } | |
19897 | _ACEOF | |
19898 | rm -f conftest.$ac_objext | |
19899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19901 | ac_status=$? |
ac1cb8d3 VS |
19902 | grep -v '^ *+' conftest.er1 >conftest.err |
19903 | rm -f conftest.er1 | |
19904 | cat conftest.err >&5 | |
a848cd7e SC |
19905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19906 | (exit $ac_status); } && | |
5294a27e | 19907 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19909 | (eval $ac_try) 2>&5 | |
19910 | ac_status=$? | |
19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19912 | (exit $ac_status); }; } && | |
19913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19915 | (eval $ac_try) 2>&5 | |
19916 | ac_status=$? | |
19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19918 | (exit $ac_status); }; }; then | |
19919 | echo "$as_me:$LINENO: result: yes" >&5 | |
19920 | echo "${ECHO_T}yes" >&6 | |
19921 | cat >>confdefs.h <<\_ACEOF | |
19922 | #define HAVE_STD_STRING_COMPARE 1 | |
19923 | _ACEOF | |
19924 | ||
19925 | else | |
19926 | echo "$as_me: failed program was:" >&5 | |
19927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19928 | ||
19929 | echo "$as_me:$LINENO: result: no" >&5 | |
19930 | echo "${ECHO_T}no" >&6 | |
19931 | fi | |
ac1cb8d3 | 19932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19933 | |
19934 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19935 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19936 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19937 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19939 | fi | |
19940 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19941 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19942 | else | |
19943 | # Is the header compilable? | |
19944 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19945 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19946 | cat >conftest.$ac_ext <<_ACEOF | |
19947 | /* confdefs.h. */ | |
19948 | _ACEOF | |
19949 | cat confdefs.h >>conftest.$ac_ext | |
19950 | cat >>conftest.$ac_ext <<_ACEOF | |
19951 | /* end confdefs.h. */ | |
19952 | $ac_includes_default | |
19953 | #include <hash_map> | |
19954 | _ACEOF | |
19955 | rm -f conftest.$ac_objext | |
19956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19957 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19958 | ac_status=$? |
ac1cb8d3 VS |
19959 | grep -v '^ *+' conftest.er1 >conftest.err |
19960 | rm -f conftest.er1 | |
19961 | cat conftest.err >&5 | |
bdcade0a MB |
19962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19963 | (exit $ac_status); } && | |
5294a27e | 19964 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19966 | (eval $ac_try) 2>&5 | |
19967 | ac_status=$? | |
19968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19969 | (exit $ac_status); }; } && | |
19970 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19972 | (eval $ac_try) 2>&5 | |
19973 | ac_status=$? | |
19974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19975 | (exit $ac_status); }; }; then | |
19976 | ac_header_compiler=yes | |
19977 | else | |
19978 | echo "$as_me: failed program was:" >&5 | |
19979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19980 | ||
19981 | ac_header_compiler=no | |
19982 | fi | |
ac1cb8d3 | 19983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19984 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19985 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19986 | ||
19987 | # Is the header present? | |
19988 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19989 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19990 | cat >conftest.$ac_ext <<_ACEOF | |
19991 | /* confdefs.h. */ | |
19992 | _ACEOF | |
19993 | cat confdefs.h >>conftest.$ac_ext | |
19994 | cat >>conftest.$ac_ext <<_ACEOF | |
19995 | /* end confdefs.h. */ | |
19996 | #include <hash_map> | |
19997 | _ACEOF | |
19998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20000 | ac_status=$? | |
20001 | grep -v '^ *+' conftest.er1 >conftest.err | |
20002 | rm -f conftest.er1 | |
20003 | cat conftest.err >&5 | |
20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20005 | (exit $ac_status); } >/dev/null; then | |
20006 | if test -s conftest.err; then | |
20007 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20008 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20009 | else |
20010 | ac_cpp_err= | |
20011 | fi | |
20012 | else | |
20013 | ac_cpp_err=yes | |
20014 | fi | |
20015 | if test -z "$ac_cpp_err"; then | |
20016 | ac_header_preproc=yes | |
20017 | else | |
20018 | echo "$as_me: failed program was:" >&5 | |
20019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20020 | ||
20021 | ac_header_preproc=no | |
20022 | fi | |
20023 | rm -f conftest.err conftest.$ac_ext | |
20024 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20025 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20026 | ||
20027 | # So? What about this header? | |
ac1cb8d3 VS |
20028 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20029 | yes:no: ) | |
bdcade0a MB |
20030 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20031 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20032 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
20033 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
20034 | ac_header_preproc=yes | |
bdcade0a | 20035 | ;; |
ac1cb8d3 | 20036 | no:yes:* ) |
bdcade0a MB |
20037 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
20038 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20039 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
20040 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
20041 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
20042 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
20043 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20044 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20045 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
20046 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20047 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
20048 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20049 | ( |
20050 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20051 | ## ----------------------------------------- ## |
20052 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20053 | ## ----------------------------------------- ## | |
bdcade0a MB |
20054 | _ASBOX |
20055 | ) | | |
20056 | sed "s/^/$as_me: WARNING: /" >&2 | |
20057 | ;; | |
20058 | esac | |
20059 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20060 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20061 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20063 | else | |
20064 | ac_cv_header_hash_map=$ac_header_preproc | |
20065 | fi | |
20066 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20067 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20068 | ||
20069 | fi | |
20070 | if test $ac_cv_header_hash_map = yes; then | |
20071 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20072 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20073 | cat >conftest.$ac_ext <<_ACEOF | |
20074 | /* confdefs.h. */ | |
20075 | _ACEOF | |
20076 | cat confdefs.h >>conftest.$ac_ext | |
20077 | cat >>conftest.$ac_ext <<_ACEOF | |
20078 | /* end confdefs.h. */ | |
20079 | #include <hash_map> | |
20080 | #include <hash_set> | |
20081 | int | |
20082 | main () | |
20083 | { | |
20084 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
20085 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
20086 | ; | |
20087 | return 0; | |
20088 | } | |
20089 | _ACEOF | |
20090 | rm -f conftest.$ac_objext | |
20091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20092 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20093 | ac_status=$? |
ac1cb8d3 VS |
20094 | grep -v '^ *+' conftest.er1 >conftest.err |
20095 | rm -f conftest.er1 | |
20096 | cat conftest.err >&5 | |
bdcade0a MB |
20097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20098 | (exit $ac_status); } && | |
5294a27e | 20099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20101 | (eval $ac_try) 2>&5 | |
20102 | ac_status=$? | |
20103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20104 | (exit $ac_status); }; } && | |
20105 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20107 | (eval $ac_try) 2>&5 | |
20108 | ac_status=$? | |
20109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20110 | (exit $ac_status); }; }; then | |
20111 | echo "$as_me:$LINENO: result: yes" >&5 | |
20112 | echo "${ECHO_T}yes" >&6 | |
20113 | cat >>confdefs.h <<\_ACEOF | |
20114 | #define HAVE_HASH_MAP 1 | |
20115 | _ACEOF | |
20116 | ||
20117 | cat >>confdefs.h <<\_ACEOF | |
20118 | #define HAVE_STD_HASH_MAP 1 | |
20119 | _ACEOF | |
20120 | ||
20121 | else | |
20122 | echo "$as_me: failed program was:" >&5 | |
20123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20124 | ||
20125 | echo "$as_me:$LINENO: result: no" >&5 | |
20126 | echo "${ECHO_T}no" >&6 | |
20127 | fi | |
ac1cb8d3 | 20128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20129 | |
20130 | fi | |
20131 | ||
20132 | ||
20133 | ||
20134 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20135 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20136 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20137 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20139 | fi | |
20140 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20141 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20142 | else | |
20143 | # Is the header compilable? | |
20144 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
20145 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
20146 | cat >conftest.$ac_ext <<_ACEOF | |
20147 | /* confdefs.h. */ | |
20148 | _ACEOF | |
20149 | cat confdefs.h >>conftest.$ac_ext | |
20150 | cat >>conftest.$ac_ext <<_ACEOF | |
20151 | /* end confdefs.h. */ | |
20152 | $ac_includes_default | |
20153 | #include <ext/hash_map> | |
20154 | _ACEOF | |
20155 | rm -f conftest.$ac_objext | |
20156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20157 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20158 | ac_status=$? |
ac1cb8d3 VS |
20159 | grep -v '^ *+' conftest.er1 >conftest.err |
20160 | rm -f conftest.er1 | |
20161 | cat conftest.err >&5 | |
bdcade0a MB |
20162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20163 | (exit $ac_status); } && | |
5294a27e | 20164 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20166 | (eval $ac_try) 2>&5 | |
20167 | ac_status=$? | |
20168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20169 | (exit $ac_status); }; } && | |
20170 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20172 | (eval $ac_try) 2>&5 | |
20173 | ac_status=$? | |
20174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20175 | (exit $ac_status); }; }; then | |
20176 | ac_header_compiler=yes | |
20177 | else | |
20178 | echo "$as_me: failed program was:" >&5 | |
20179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20180 | ||
20181 | ac_header_compiler=no | |
20182 | fi | |
ac1cb8d3 | 20183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20184 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20185 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20186 | ||
20187 | # Is the header present? | |
20188 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
20189 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
20190 | cat >conftest.$ac_ext <<_ACEOF | |
20191 | /* confdefs.h. */ | |
20192 | _ACEOF | |
20193 | cat confdefs.h >>conftest.$ac_ext | |
20194 | cat >>conftest.$ac_ext <<_ACEOF | |
20195 | /* end confdefs.h. */ | |
20196 | #include <ext/hash_map> | |
20197 | _ACEOF | |
20198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20200 | ac_status=$? | |
20201 | grep -v '^ *+' conftest.er1 >conftest.err | |
20202 | rm -f conftest.er1 | |
20203 | cat conftest.err >&5 | |
20204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20205 | (exit $ac_status); } >/dev/null; then | |
20206 | if test -s conftest.err; then | |
20207 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20208 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20209 | else |
20210 | ac_cpp_err= | |
20211 | fi | |
20212 | else | |
20213 | ac_cpp_err=yes | |
20214 | fi | |
20215 | if test -z "$ac_cpp_err"; then | |
20216 | ac_header_preproc=yes | |
20217 | else | |
20218 | echo "$as_me: failed program was:" >&5 | |
20219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20220 | ||
20221 | ac_header_preproc=no | |
20222 | fi | |
20223 | rm -f conftest.err conftest.$ac_ext | |
20224 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20225 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20226 | ||
20227 | # So? What about this header? | |
ac1cb8d3 VS |
20228 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20229 | yes:no: ) | |
bdcade0a MB |
20230 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20231 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20232 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
20233 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20234 | ac_header_preproc=yes | |
bdcade0a | 20235 | ;; |
ac1cb8d3 | 20236 | no:yes:* ) |
bdcade0a MB |
20237 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20238 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20239 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20240 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20241 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20242 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20243 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20244 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20245 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20246 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20247 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20248 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20249 | ( |
20250 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20251 | ## ----------------------------------------- ## |
20252 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20253 | ## ----------------------------------------- ## | |
bdcade0a MB |
20254 | _ASBOX |
20255 | ) | | |
20256 | sed "s/^/$as_me: WARNING: /" >&2 | |
20257 | ;; | |
20258 | esac | |
20259 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20260 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20261 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20263 | else | |
20264 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20265 | fi | |
20266 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20267 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20268 | ||
20269 | fi | |
20270 | if test $ac_cv_header_ext_hash_map = yes; then | |
20271 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20272 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20273 | cat >conftest.$ac_ext <<_ACEOF | |
20274 | /* confdefs.h. */ | |
20275 | _ACEOF | |
20276 | cat confdefs.h >>conftest.$ac_ext | |
20277 | cat >>conftest.$ac_ext <<_ACEOF | |
20278 | /* end confdefs.h. */ | |
20279 | #include <ext/hash_map> | |
20280 | #include <ext/hash_set> | |
20281 | int | |
20282 | main () | |
20283 | { | |
20284 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20285 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20286 | ; | |
20287 | return 0; | |
20288 | } | |
20289 | _ACEOF | |
20290 | rm -f conftest.$ac_objext | |
20291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20292 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20293 | ac_status=$? |
ac1cb8d3 VS |
20294 | grep -v '^ *+' conftest.er1 >conftest.err |
20295 | rm -f conftest.er1 | |
20296 | cat conftest.err >&5 | |
bdcade0a MB |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20298 | (exit $ac_status); } && | |
5294a27e | 20299 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20301 | (eval $ac_try) 2>&5 | |
20302 | ac_status=$? | |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20304 | (exit $ac_status); }; } && | |
20305 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20307 | (eval $ac_try) 2>&5 | |
20308 | ac_status=$? | |
20309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20310 | (exit $ac_status); }; }; then | |
20311 | echo "$as_me:$LINENO: result: yes" >&5 | |
20312 | echo "${ECHO_T}yes" >&6 | |
20313 | cat >>confdefs.h <<\_ACEOF | |
20314 | #define HAVE_EXT_HASH_MAP 1 | |
20315 | _ACEOF | |
20316 | ||
20317 | cat >>confdefs.h <<\_ACEOF | |
20318 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20319 | _ACEOF | |
20320 | ||
20321 | else | |
20322 | echo "$as_me: failed program was:" >&5 | |
20323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20324 | ||
20325 | echo "$as_me:$LINENO: result: no" >&5 | |
20326 | echo "${ECHO_T}no" >&6 | |
20327 | fi | |
ac1cb8d3 | 20328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20329 | |
20330 | fi | |
20331 | ||
20332 | ||
a848cd7e SC |
20333 | |
20334 | ac_ext=c | |
20335 | ac_cpp='$CPP $CPPFLAGS' | |
20336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20339 | ||
20340 | fi | |
20341 | ||
20342 | ||
20343 | SEARCH_INCLUDE="\ | |
20344 | /usr/local/include \ | |
20345 | \ | |
20346 | /usr/Motif-2.1/include \ | |
20347 | /usr/Motif-1.2/include \ | |
20348 | /usr/include/Motif1.2 \ | |
20349 | /opt/xpm/include/X11 \ | |
20350 | /opt/GBxpm/include/ \ | |
20351 | /opt/GBxpm/X11/include/ \ | |
20352 | \ | |
20353 | /usr/dt/include \ | |
20354 | /usr/openwin/include \ | |
20355 | \ | |
20356 | /usr/include/Xm \ | |
20357 | \ | |
20358 | /usr/X11R6/include \ | |
20359 | /usr/X11R6.4/include \ | |
20360 | /usr/X11R5/include \ | |
20361 | /usr/X11R4/include \ | |
20362 | \ | |
20363 | /usr/include/X11R6 \ | |
20364 | /usr/include/X11R5 \ | |
20365 | /usr/include/X11R4 \ | |
20366 | \ | |
20367 | /usr/local/X11R6/include \ | |
20368 | /usr/local/X11R5/include \ | |
20369 | /usr/local/X11R4/include \ | |
20370 | \ | |
20371 | /usr/local/include/X11R6 \ | |
20372 | /usr/local/include/X11R5 \ | |
20373 | /usr/local/include/X11R4 \ | |
20374 | \ | |
20375 | /usr/X11/include \ | |
20376 | /usr/include/X11 \ | |
20377 | /usr/local/X11/include \ | |
20378 | /usr/local/include/X11 \ | |
20379 | \ | |
20380 | /usr/X386/include \ | |
20381 | /usr/x386/include \ | |
20382 | /usr/XFree86/include/X11 \ | |
20383 | \ | |
20384 | X:/XFree86/include \ | |
20385 | X:/XFree86/include/X11 \ | |
20386 | \ | |
20387 | /usr/include/gtk \ | |
20388 | /usr/local/include/gtk \ | |
20389 | /usr/include/glib \ | |
20390 | /usr/local/include/glib \ | |
20391 | \ | |
20392 | /usr/include/qt \ | |
20393 | /usr/local/include/qt \ | |
20394 | \ | |
20395 | /usr/local/arm/3.3.2/include \ | |
20396 | \ | |
20397 | /usr/include/windows \ | |
20398 | /usr/include/wine \ | |
20399 | /usr/local/include/wine \ | |
20400 | \ | |
20401 | /usr/unsupported/include \ | |
20402 | /usr/athena/include \ | |
20403 | /usr/local/x11r5/include \ | |
20404 | /usr/lpp/Xamples/include \ | |
20405 | \ | |
20406 | /usr/openwin/share/include" | |
20407 | ||
20408 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20409 | ||
20410 | ||
20411 | cat >confcache <<\_ACEOF | |
20412 | # This file is a shell script that caches the results of configure | |
20413 | # tests run on this system so they can be shared between configure | |
20414 | # scripts and configure runs, see configure's option --config-cache. | |
20415 | # It is not useful on other systems. If it contains results you don't | |
20416 | # want to keep, you may remove or edit it. | |
20417 | # | |
20418 | # config.status only pays attention to the cache file if you give it | |
20419 | # the --recheck option to rerun configure. | |
20420 | # | |
20421 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20422 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20423 | # following values. | |
20424 | ||
20425 | _ACEOF | |
20426 | ||
20427 | # The following way of writing the cache mishandles newlines in values, | |
20428 | # but we know of no workaround that is simple, portable, and efficient. | |
20429 | # So, don't put newlines in cache variables' values. | |
20430 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20431 | # and sets the high bit in the cache file unless we assign to the vars. | |
20432 | { | |
20433 | (set) 2>&1 | | |
20434 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20435 | *ac_space=\ *) | |
20436 | # `set' does not quote correctly, so add quotes (double-quote | |
20437 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20438 | sed -n \ | |
ac1cb8d3 VS |
20439 | "s/'/'\\\\''/g; |
20440 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20441 | ;; |
20442 | *) | |
20443 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20444 | sed -n \ | |
ac1cb8d3 | 20445 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20446 | ;; |
20447 | esac; | |
20448 | } | | |
20449 | sed ' | |
20450 | t clear | |
20451 | : clear | |
20452 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20453 | t end | |
20454 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20455 | : end' >>confcache | |
20456 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20457 | if test -w $cache_file; then | |
20458 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20459 | cat confcache >$cache_file | |
20460 | else | |
20461 | echo "not updating unwritable cache $cache_file" | |
20462 | fi | |
20463 | fi | |
20464 | rm -f confcache | |
20465 | ||
20466 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20467 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20468 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20469 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20471 | else | |
20472 | ||
20473 | cat >conftest.$ac_ext <<_ACEOF | |
20474 | /* confdefs.h. */ | |
20475 | _ACEOF | |
20476 | cat confdefs.h >>conftest.$ac_ext | |
20477 | cat >>conftest.$ac_ext <<_ACEOF | |
20478 | /* end confdefs.h. */ | |
20479 | #include <features.h> | |
20480 | int | |
20481 | main () | |
20482 | { | |
20483 | ||
20484 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20485 | #error not glibc2.1 | |
20486 | #endif | |
20487 | ||
20488 | ; | |
20489 | return 0; | |
20490 | } | |
20491 | _ACEOF | |
20492 | rm -f conftest.$ac_objext | |
20493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20494 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20495 | ac_status=$? |
ac1cb8d3 VS |
20496 | grep -v '^ *+' conftest.er1 >conftest.err |
20497 | rm -f conftest.er1 | |
20498 | cat conftest.err >&5 | |
a848cd7e SC |
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20500 | (exit $ac_status); } && | |
5294a27e | 20501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20503 | (eval $ac_try) 2>&5 | |
20504 | ac_status=$? | |
20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20506 | (exit $ac_status); }; } && | |
20507 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20509 | (eval $ac_try) 2>&5 | |
20510 | ac_status=$? | |
20511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20512 | (exit $ac_status); }; }; then | |
20513 | ||
20514 | wx_cv_lib_glibc21=yes | |
20515 | ||
20516 | else | |
20517 | echo "$as_me: failed program was:" >&5 | |
20518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20519 | ||
20520 | ||
20521 | wx_cv_lib_glibc21=no | |
20522 | ||
20523 | ||
20524 | fi | |
ac1cb8d3 | 20525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20526 | |
20527 | fi | |
20528 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20529 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20530 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20531 | cat >>confdefs.h <<\_ACEOF | |
20532 | #define wxHAVE_GLIBC2 1 | |
20533 | _ACEOF | |
20534 | ||
20535 | fi | |
20536 | fi | |
20537 | ||
20538 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20539 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20540 | cat >>confdefs.h <<\_ACEOF | |
20541 | #define _GNU_SOURCE 1 | |
20542 | _ACEOF | |
20543 | ||
20544 | fi | |
20545 | fi | |
20546 | ||
20547 | ||
20548 | ||
20549 | if test "$wxUSE_REGEX" != "no"; then | |
20550 | cat >>confdefs.h <<\_ACEOF | |
20551 | #define wxUSE_REGEX 1 | |
20552 | _ACEOF | |
20553 | ||
20554 | ||
20555 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20556 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20557 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20558 | wxUSE_REGEX=builtin | |
20559 | fi | |
20560 | ||
20561 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20562 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20563 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20564 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20565 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20567 | fi | |
20568 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20569 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20570 | else | |
20571 | # Is the header compilable? | |
20572 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20573 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20574 | cat >conftest.$ac_ext <<_ACEOF | |
20575 | /* confdefs.h. */ | |
20576 | _ACEOF | |
20577 | cat confdefs.h >>conftest.$ac_ext | |
20578 | cat >>conftest.$ac_ext <<_ACEOF | |
20579 | /* end confdefs.h. */ | |
20580 | $ac_includes_default | |
20581 | #include <regex.h> | |
20582 | _ACEOF | |
20583 | rm -f conftest.$ac_objext | |
20584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20586 | ac_status=$? |
ac1cb8d3 VS |
20587 | grep -v '^ *+' conftest.er1 >conftest.err |
20588 | rm -f conftest.er1 | |
20589 | cat conftest.err >&5 | |
a848cd7e SC |
20590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20591 | (exit $ac_status); } && | |
5294a27e | 20592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20594 | (eval $ac_try) 2>&5 | |
20595 | ac_status=$? | |
20596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20597 | (exit $ac_status); }; } && | |
20598 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20600 | (eval $ac_try) 2>&5 | |
20601 | ac_status=$? | |
20602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20603 | (exit $ac_status); }; }; then | |
20604 | ac_header_compiler=yes | |
20605 | else | |
20606 | echo "$as_me: failed program was:" >&5 | |
20607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20608 | ||
20609 | ac_header_compiler=no | |
20610 | fi | |
ac1cb8d3 | 20611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20612 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20613 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20614 | ||
20615 | # Is the header present? | |
20616 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20617 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20618 | cat >conftest.$ac_ext <<_ACEOF | |
20619 | /* confdefs.h. */ | |
20620 | _ACEOF | |
20621 | cat confdefs.h >>conftest.$ac_ext | |
20622 | cat >>conftest.$ac_ext <<_ACEOF | |
20623 | /* end confdefs.h. */ | |
20624 | #include <regex.h> | |
20625 | _ACEOF | |
20626 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20627 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20628 | ac_status=$? | |
20629 | grep -v '^ *+' conftest.er1 >conftest.err | |
20630 | rm -f conftest.er1 | |
20631 | cat conftest.err >&5 | |
20632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20633 | (exit $ac_status); } >/dev/null; then | |
20634 | if test -s conftest.err; then | |
20635 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20636 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20637 | else |
20638 | ac_cpp_err= | |
20639 | fi | |
20640 | else | |
20641 | ac_cpp_err=yes | |
20642 | fi | |
20643 | if test -z "$ac_cpp_err"; then | |
20644 | ac_header_preproc=yes | |
20645 | else | |
20646 | echo "$as_me: failed program was:" >&5 | |
20647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20648 | ||
20649 | ac_header_preproc=no | |
20650 | fi | |
20651 | rm -f conftest.err conftest.$ac_ext | |
20652 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20653 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20654 | ||
20655 | # So? What about this header? | |
ac1cb8d3 VS |
20656 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20657 | yes:no: ) | |
a848cd7e SC |
20658 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20659 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20660 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20661 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20662 | ac_header_preproc=yes | |
a848cd7e | 20663 | ;; |
ac1cb8d3 | 20664 | no:yes:* ) |
a848cd7e SC |
20665 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20666 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20667 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20668 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20669 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20670 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20671 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20672 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20673 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20674 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20675 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20676 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20677 | ( |
20678 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20679 | ## ----------------------------------------- ## |
20680 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20681 | ## ----------------------------------------- ## | |
a848cd7e SC |
20682 | _ASBOX |
20683 | ) | | |
20684 | sed "s/^/$as_me: WARNING: /" >&2 | |
20685 | ;; | |
20686 | esac | |
20687 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20688 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20689 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20691 | else | |
20692 | ac_cv_header_regex_h=$ac_header_preproc | |
20693 | fi | |
20694 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20695 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20696 | ||
20697 | fi | |
20698 | if test $ac_cv_header_regex_h = yes; then | |
20699 | ||
20700 | for ac_func in regcomp | |
20701 | do | |
20702 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20703 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20704 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20705 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20707 | else | |
20708 | cat >conftest.$ac_ext <<_ACEOF | |
20709 | /* confdefs.h. */ | |
20710 | _ACEOF | |
20711 | cat confdefs.h >>conftest.$ac_ext | |
20712 | cat >>conftest.$ac_ext <<_ACEOF | |
20713 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20714 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20716 | #define $ac_func innocuous_$ac_func | |
20717 | ||
a848cd7e SC |
20718 | /* System header to define __stub macros and hopefully few prototypes, |
20719 | which can conflict with char $ac_func (); below. | |
20720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20721 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20722 | |
a848cd7e SC |
20723 | #ifdef __STDC__ |
20724 | # include <limits.h> | |
20725 | #else | |
20726 | # include <assert.h> | |
20727 | #endif | |
ac1cb8d3 VS |
20728 | |
20729 | #undef $ac_func | |
20730 | ||
a848cd7e SC |
20731 | /* Override any gcc2 internal prototype to avoid an error. */ |
20732 | #ifdef __cplusplus | |
20733 | extern "C" | |
20734 | { | |
20735 | #endif | |
20736 | /* We use char because int might match the return type of a gcc2 | |
20737 | builtin and then its argument prototype would still apply. */ | |
20738 | char $ac_func (); | |
20739 | /* The GNU C library defines this for functions which it implements | |
20740 | to always fail with ENOSYS. Some functions are actually named | |
20741 | something starting with __ and the normal name is an alias. */ | |
20742 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20743 | choke me | |
20744 | #else | |
20745 | char (*f) () = $ac_func; | |
20746 | #endif | |
20747 | #ifdef __cplusplus | |
20748 | } | |
20749 | #endif | |
20750 | ||
20751 | int | |
20752 | main () | |
20753 | { | |
20754 | return f != $ac_func; | |
20755 | ; | |
20756 | return 0; | |
20757 | } | |
20758 | _ACEOF | |
20759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20761 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20762 | ac_status=$? |
ac1cb8d3 VS |
20763 | grep -v '^ *+' conftest.er1 >conftest.err |
20764 | rm -f conftest.er1 | |
20765 | cat conftest.err >&5 | |
a848cd7e SC |
20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20767 | (exit $ac_status); } && | |
5294a27e | 20768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20770 | (eval $ac_try) 2>&5 | |
20771 | ac_status=$? | |
20772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20773 | (exit $ac_status); }; } && | |
20774 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20776 | (eval $ac_try) 2>&5 | |
20777 | ac_status=$? | |
20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20779 | (exit $ac_status); }; }; then | |
20780 | eval "$as_ac_var=yes" | |
20781 | else | |
20782 | echo "$as_me: failed program was:" >&5 | |
20783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20784 | ||
20785 | eval "$as_ac_var=no" | |
20786 | fi | |
ac1cb8d3 VS |
20787 | rm -f conftest.err conftest.$ac_objext \ |
20788 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20789 | fi |
20790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20791 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20792 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20793 | cat >>confdefs.h <<_ACEOF | |
20794 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20795 | _ACEOF | |
20796 | ||
20797 | fi | |
20798 | done | |
20799 | ||
20800 | fi | |
20801 | ||
20802 | ||
20803 | ||
20804 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20805 | if test "$wxUSE_REGEX" = "sys" ; then | |
20806 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20807 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20808 | { (exit 1); exit 1; }; } | |
20809 | else | |
20810 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20811 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20812 | wxUSE_REGEX=builtin | |
20813 | fi | |
20814 | else | |
20815 | wxUSE_REGEX=sys | |
20816 | cat >>confdefs.h <<\_ACEOF | |
20817 | #define WX_NO_REGEX_ADVANCED 1 | |
20818 | _ACEOF | |
20819 | ||
20820 | fi | |
20821 | fi | |
20822 | fi | |
20823 | ||
20824 | ||
20825 | ZLIB_LINK= | |
20826 | if test "$wxUSE_ZLIB" != "no" ; then | |
20827 | cat >>confdefs.h <<\_ACEOF | |
20828 | #define wxUSE_ZLIB 1 | |
20829 | _ACEOF | |
20830 | ||
20831 | ||
20832 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20833 | if test "$USE_DARWIN" = 1; then | |
20834 | system_zlib_h_ok="yes" | |
20835 | else | |
20836 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20837 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20838 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20840 | else | |
20841 | if test "$cross_compiling" = yes; then | |
20842 | unset ac_cv_header_zlib_h | |
20843 | ||
20844 | else | |
20845 | cat >conftest.$ac_ext <<_ACEOF | |
20846 | /* confdefs.h. */ | |
20847 | _ACEOF | |
20848 | cat confdefs.h >>conftest.$ac_ext | |
20849 | cat >>conftest.$ac_ext <<_ACEOF | |
20850 | /* end confdefs.h. */ | |
20851 | ||
20852 | #include <zlib.h> | |
20853 | #include <stdio.h> | |
20854 | ||
20855 | int main() | |
20856 | { | |
20857 | FILE *f=fopen("conftestval", "w"); | |
20858 | if (!f) exit(1); | |
20859 | fprintf(f, "%s", | |
20860 | ZLIB_VERSION[0] == '1' && | |
20861 | (ZLIB_VERSION[2] > '1' || | |
20862 | (ZLIB_VERSION[2] == '1' && | |
20863 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20864 | exit(0); | |
20865 | } | |
20866 | ||
20867 | _ACEOF | |
20868 | rm -f conftest$ac_exeext | |
20869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20870 | (eval $ac_link) 2>&5 | |
20871 | ac_status=$? | |
20872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20873 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20875 | (eval $ac_try) 2>&5 | |
20876 | ac_status=$? | |
20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20878 | (exit $ac_status); }; }; then | |
20879 | ac_cv_header_zlib_h=`cat conftestval` | |
20880 | else | |
20881 | echo "$as_me: program exited with status $ac_status" >&5 | |
20882 | echo "$as_me: failed program was:" >&5 | |
20883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20884 | ||
20885 | ( exit $ac_status ) | |
20886 | ac_cv_header_zlib_h=no | |
20887 | fi | |
ac1cb8d3 | 20888 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20889 | fi |
20890 | ||
20891 | fi | |
20892 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20893 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20894 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20895 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20896 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20897 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20899 | fi | |
20900 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20901 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20902 | else | |
20903 | # Is the header compilable? | |
20904 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20905 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20906 | cat >conftest.$ac_ext <<_ACEOF | |
20907 | /* confdefs.h. */ | |
20908 | _ACEOF | |
20909 | cat confdefs.h >>conftest.$ac_ext | |
20910 | cat >>conftest.$ac_ext <<_ACEOF | |
20911 | /* end confdefs.h. */ | |
20912 | $ac_includes_default | |
20913 | #include <zlib.h> | |
20914 | _ACEOF | |
20915 | rm -f conftest.$ac_objext | |
20916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20917 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20918 | ac_status=$? |
ac1cb8d3 VS |
20919 | grep -v '^ *+' conftest.er1 >conftest.err |
20920 | rm -f conftest.er1 | |
20921 | cat conftest.err >&5 | |
a848cd7e SC |
20922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20923 | (exit $ac_status); } && | |
5294a27e | 20924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20926 | (eval $ac_try) 2>&5 | |
20927 | ac_status=$? | |
20928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20929 | (exit $ac_status); }; } && | |
20930 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20932 | (eval $ac_try) 2>&5 | |
20933 | ac_status=$? | |
20934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20935 | (exit $ac_status); }; }; then | |
20936 | ac_header_compiler=yes | |
20937 | else | |
20938 | echo "$as_me: failed program was:" >&5 | |
20939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20940 | ||
20941 | ac_header_compiler=no | |
20942 | fi | |
ac1cb8d3 | 20943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20944 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20945 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20946 | ||
20947 | # Is the header present? | |
20948 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20949 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20950 | cat >conftest.$ac_ext <<_ACEOF | |
20951 | /* confdefs.h. */ | |
20952 | _ACEOF | |
20953 | cat confdefs.h >>conftest.$ac_ext | |
20954 | cat >>conftest.$ac_ext <<_ACEOF | |
20955 | /* end confdefs.h. */ | |
20956 | #include <zlib.h> | |
20957 | _ACEOF | |
20958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20960 | ac_status=$? | |
20961 | grep -v '^ *+' conftest.er1 >conftest.err | |
20962 | rm -f conftest.er1 | |
20963 | cat conftest.err >&5 | |
20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 | (exit $ac_status); } >/dev/null; then | |
20966 | if test -s conftest.err; then | |
20967 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20968 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20969 | else |
20970 | ac_cpp_err= | |
20971 | fi | |
20972 | else | |
20973 | ac_cpp_err=yes | |
20974 | fi | |
20975 | if test -z "$ac_cpp_err"; then | |
20976 | ac_header_preproc=yes | |
20977 | else | |
20978 | echo "$as_me: failed program was:" >&5 | |
20979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20980 | ||
20981 | ac_header_preproc=no | |
20982 | fi | |
20983 | rm -f conftest.err conftest.$ac_ext | |
20984 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20985 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20986 | ||
20987 | # So? What about this header? | |
ac1cb8d3 VS |
20988 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20989 | yes:no: ) | |
a848cd7e SC |
20990 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20991 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20992 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20993 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20994 | ac_header_preproc=yes | |
a848cd7e | 20995 | ;; |
ac1cb8d3 | 20996 | no:yes:* ) |
a848cd7e SC |
20997 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20998 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20999 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
21000 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
21001 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
21002 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
21003 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21004 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21005 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
21006 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21007 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
21008 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21009 | ( |
21010 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21011 | ## ----------------------------------------- ## |
21012 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21013 | ## ----------------------------------------- ## | |
a848cd7e SC |
21014 | _ASBOX |
21015 | ) | | |
21016 | sed "s/^/$as_me: WARNING: /" >&2 | |
21017 | ;; | |
21018 | esac | |
21019 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21020 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21021 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21023 | else | |
21024 | ac_cv_header_zlib_h=$ac_header_preproc | |
21025 | fi | |
21026 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21027 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21028 | ||
21029 | fi | |
21030 | ||
21031 | ||
21032 | ||
21033 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
21034 | fi | |
21035 | ||
21036 | if test "$system_zlib_h_ok" = "yes"; then | |
21037 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
21038 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
21039 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
21040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21041 | else | |
21042 | ac_check_lib_save_LIBS=$LIBS | |
21043 | LIBS="-lz $LIBS" | |
21044 | cat >conftest.$ac_ext <<_ACEOF | |
21045 | /* confdefs.h. */ | |
21046 | _ACEOF | |
21047 | cat confdefs.h >>conftest.$ac_ext | |
21048 | cat >>conftest.$ac_ext <<_ACEOF | |
21049 | /* end confdefs.h. */ | |
21050 | ||
21051 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21052 | #ifdef __cplusplus | |
21053 | extern "C" | |
21054 | #endif | |
21055 | /* We use char because int might match the return type of a gcc2 | |
21056 | builtin and then its argument prototype would still apply. */ | |
21057 | char deflate (); | |
21058 | int | |
21059 | main () | |
21060 | { | |
21061 | deflate (); | |
21062 | ; | |
21063 | return 0; | |
21064 | } | |
21065 | _ACEOF | |
21066 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21068 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21069 | ac_status=$? |
ac1cb8d3 VS |
21070 | grep -v '^ *+' conftest.er1 >conftest.err |
21071 | rm -f conftest.er1 | |
21072 | cat conftest.err >&5 | |
a848cd7e SC |
21073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21074 | (exit $ac_status); } && | |
5294a27e | 21075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21077 | (eval $ac_try) 2>&5 | |
21078 | ac_status=$? | |
21079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21080 | (exit $ac_status); }; } && | |
21081 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21083 | (eval $ac_try) 2>&5 | |
21084 | ac_status=$? | |
21085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21086 | (exit $ac_status); }; }; then | |
21087 | ac_cv_lib_z_deflate=yes | |
21088 | else | |
21089 | echo "$as_me: failed program was:" >&5 | |
21090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21091 | ||
21092 | ac_cv_lib_z_deflate=no | |
21093 | fi | |
ac1cb8d3 VS |
21094 | rm -f conftest.err conftest.$ac_objext \ |
21095 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21096 | LIBS=$ac_check_lib_save_LIBS |
21097 | fi | |
21098 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
21099 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
21100 | if test $ac_cv_lib_z_deflate = yes; then | |
21101 | ZLIB_LINK=" -lz" | |
21102 | fi | |
21103 | ||
21104 | fi | |
21105 | ||
21106 | if test "x$ZLIB_LINK" = "x" ; then | |
21107 | if test "$wxUSE_ZLIB" = "sys" ; then | |
21108 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
21109 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
21110 | { (exit 1); exit 1; }; } | |
21111 | else | |
21112 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
21113 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21114 | wxUSE_ZLIB=builtin | |
21115 | fi | |
21116 | else | |
21117 | wxUSE_ZLIB=sys | |
21118 | fi | |
21119 | fi | |
21120 | fi | |
21121 | ||
21122 | ||
21123 | PNG_LINK= | |
21124 | if test "$wxUSE_LIBPNG" != "no" ; then | |
21125 | cat >>confdefs.h <<\_ACEOF | |
21126 | #define wxUSE_LIBPNG 1 | |
21127 | _ACEOF | |
21128 | ||
21129 | ||
21130 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
21131 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
21132 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21133 | wxUSE_LIBPNG=sys | |
21134 | fi | |
21135 | ||
21136 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
21137 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
21138 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21139 | wxUSE_LIBPNG=builtin | |
21140 | fi | |
21141 | ||
21142 | if test "$wxUSE_MGL" != 1 ; then | |
21143 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
21144 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
21145 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
21146 | if test "${ac_cv_header_png_h+set}" = set; then | |
21147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21148 | else | |
21149 | if test "$cross_compiling" = yes; then | |
21150 | unset ac_cv_header_png_h | |
21151 | ||
21152 | else | |
21153 | cat >conftest.$ac_ext <<_ACEOF | |
21154 | /* confdefs.h. */ | |
21155 | _ACEOF | |
21156 | cat confdefs.h >>conftest.$ac_ext | |
21157 | cat >>conftest.$ac_ext <<_ACEOF | |
21158 | /* end confdefs.h. */ | |
21159 | ||
21160 | #include <png.h> | |
21161 | #include <stdio.h> | |
21162 | ||
21163 | int main() | |
21164 | { | |
21165 | FILE *f=fopen("conftestval", "w"); | |
21166 | if (!f) exit(1); | |
21167 | fprintf(f, "%s", | |
21168 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
21169 | exit(0); | |
21170 | } | |
21171 | ||
21172 | _ACEOF | |
21173 | rm -f conftest$ac_exeext | |
21174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21175 | (eval $ac_link) 2>&5 | |
21176 | ac_status=$? | |
21177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21178 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21180 | (eval $ac_try) 2>&5 | |
21181 | ac_status=$? | |
21182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21183 | (exit $ac_status); }; }; then | |
21184 | ac_cv_header_png_h=`cat conftestval` | |
21185 | else | |
21186 | echo "$as_me: program exited with status $ac_status" >&5 | |
21187 | echo "$as_me: failed program was:" >&5 | |
21188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21189 | ||
21190 | ( exit $ac_status ) | |
21191 | ac_cv_header_png_h=no | |
21192 | fi | |
ac1cb8d3 | 21193 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21194 | fi |
21195 | ||
21196 | fi | |
21197 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21198 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21199 | if test "${ac_cv_header_png_h+set}" = set; then | |
21200 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21201 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21202 | if test "${ac_cv_header_png_h+set}" = set; then | |
21203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21204 | fi | |
21205 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21206 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21207 | else | |
21208 | # Is the header compilable? | |
21209 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
21210 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
21211 | cat >conftest.$ac_ext <<_ACEOF | |
21212 | /* confdefs.h. */ | |
21213 | _ACEOF | |
21214 | cat confdefs.h >>conftest.$ac_ext | |
21215 | cat >>conftest.$ac_ext <<_ACEOF | |
21216 | /* end confdefs.h. */ | |
21217 | $ac_includes_default | |
21218 | #include <png.h> | |
21219 | _ACEOF | |
21220 | rm -f conftest.$ac_objext | |
21221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21222 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21223 | ac_status=$? |
ac1cb8d3 VS |
21224 | grep -v '^ *+' conftest.er1 >conftest.err |
21225 | rm -f conftest.er1 | |
21226 | cat conftest.err >&5 | |
a848cd7e SC |
21227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21228 | (exit $ac_status); } && | |
5294a27e | 21229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21231 | (eval $ac_try) 2>&5 | |
21232 | ac_status=$? | |
21233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21234 | (exit $ac_status); }; } && | |
21235 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21237 | (eval $ac_try) 2>&5 | |
21238 | ac_status=$? | |
21239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21240 | (exit $ac_status); }; }; then | |
21241 | ac_header_compiler=yes | |
21242 | else | |
21243 | echo "$as_me: failed program was:" >&5 | |
21244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21245 | ||
21246 | ac_header_compiler=no | |
21247 | fi | |
ac1cb8d3 | 21248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21249 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21250 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21251 | ||
21252 | # Is the header present? | |
21253 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21254 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21255 | cat >conftest.$ac_ext <<_ACEOF | |
21256 | /* confdefs.h. */ | |
21257 | _ACEOF | |
21258 | cat confdefs.h >>conftest.$ac_ext | |
21259 | cat >>conftest.$ac_ext <<_ACEOF | |
21260 | /* end confdefs.h. */ | |
21261 | #include <png.h> | |
21262 | _ACEOF | |
21263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21265 | ac_status=$? | |
21266 | grep -v '^ *+' conftest.er1 >conftest.err | |
21267 | rm -f conftest.er1 | |
21268 | cat conftest.err >&5 | |
21269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21270 | (exit $ac_status); } >/dev/null; then | |
21271 | if test -s conftest.err; then | |
21272 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21273 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21274 | else |
21275 | ac_cpp_err= | |
21276 | fi | |
21277 | else | |
21278 | ac_cpp_err=yes | |
21279 | fi | |
21280 | if test -z "$ac_cpp_err"; then | |
21281 | ac_header_preproc=yes | |
21282 | else | |
21283 | echo "$as_me: failed program was:" >&5 | |
21284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21285 | ||
21286 | ac_header_preproc=no | |
21287 | fi | |
21288 | rm -f conftest.err conftest.$ac_ext | |
21289 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21290 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21291 | ||
21292 | # So? What about this header? | |
ac1cb8d3 VS |
21293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21294 | yes:no: ) | |
a848cd7e SC |
21295 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21296 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21297 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21298 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21299 | ac_header_preproc=yes | |
a848cd7e | 21300 | ;; |
ac1cb8d3 | 21301 | no:yes:* ) |
a848cd7e SC |
21302 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21303 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21304 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21305 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21306 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21307 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21308 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21309 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21310 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21311 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21312 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21313 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21314 | ( |
21315 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21316 | ## ----------------------------------------- ## |
21317 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21318 | ## ----------------------------------------- ## | |
a848cd7e SC |
21319 | _ASBOX |
21320 | ) | | |
21321 | sed "s/^/$as_me: WARNING: /" >&2 | |
21322 | ;; | |
21323 | esac | |
21324 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21325 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21326 | if test "${ac_cv_header_png_h+set}" = set; then | |
21327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21328 | else | |
21329 | ac_cv_header_png_h=$ac_header_preproc | |
21330 | fi | |
21331 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21332 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21333 | ||
21334 | fi | |
21335 | ||
21336 | ||
21337 | ||
21338 | if test "$ac_cv_header_png_h" = "yes"; then | |
21339 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21340 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21341 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21343 | else | |
21344 | ac_check_lib_save_LIBS=$LIBS | |
21345 | LIBS="-lpng -lz -lm $LIBS" | |
21346 | cat >conftest.$ac_ext <<_ACEOF | |
21347 | /* confdefs.h. */ | |
21348 | _ACEOF | |
21349 | cat confdefs.h >>conftest.$ac_ext | |
21350 | cat >>conftest.$ac_ext <<_ACEOF | |
21351 | /* end confdefs.h. */ | |
21352 | ||
21353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21354 | #ifdef __cplusplus | |
21355 | extern "C" | |
21356 | #endif | |
21357 | /* We use char because int might match the return type of a gcc2 | |
21358 | builtin and then its argument prototype would still apply. */ | |
21359 | char png_check_sig (); | |
21360 | int | |
21361 | main () | |
21362 | { | |
21363 | png_check_sig (); | |
21364 | ; | |
21365 | return 0; | |
21366 | } | |
21367 | _ACEOF | |
21368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21370 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21371 | ac_status=$? |
ac1cb8d3 VS |
21372 | grep -v '^ *+' conftest.er1 >conftest.err |
21373 | rm -f conftest.er1 | |
21374 | cat conftest.err >&5 | |
a848cd7e SC |
21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21376 | (exit $ac_status); } && | |
5294a27e | 21377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21379 | (eval $ac_try) 2>&5 | |
21380 | ac_status=$? | |
21381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21382 | (exit $ac_status); }; } && | |
21383 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21385 | (eval $ac_try) 2>&5 | |
21386 | ac_status=$? | |
21387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21388 | (exit $ac_status); }; }; then | |
21389 | ac_cv_lib_png_png_check_sig=yes | |
21390 | else | |
21391 | echo "$as_me: failed program was:" >&5 | |
21392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21393 | ||
21394 | ac_cv_lib_png_png_check_sig=no | |
21395 | fi | |
ac1cb8d3 VS |
21396 | rm -f conftest.err conftest.$ac_objext \ |
21397 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21398 | LIBS=$ac_check_lib_save_LIBS |
21399 | fi | |
21400 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21401 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21402 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21403 | PNG_LINK=" -lpng -lz" | |
21404 | fi | |
21405 | ||
21406 | fi | |
21407 | ||
21408 | if test "x$PNG_LINK" = "x" ; then | |
21409 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21410 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21411 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21412 | { (exit 1); exit 1; }; } | |
21413 | else | |
21414 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21415 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21416 | wxUSE_LIBPNG=builtin | |
21417 | fi | |
21418 | else | |
21419 | wxUSE_LIBPNG=sys | |
21420 | fi | |
21421 | fi | |
21422 | fi | |
21423 | ||
21424 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21425 | fi | |
21426 | ||
21427 | ||
21428 | JPEG_LINK= | |
21429 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21430 | cat >>confdefs.h <<\_ACEOF | |
21431 | #define wxUSE_LIBJPEG 1 | |
21432 | _ACEOF | |
21433 | ||
21434 | ||
21435 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21436 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21437 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21438 | wxUSE_LIBJPEG=sys | |
21439 | fi | |
21440 | ||
21441 | if test "$wxUSE_MGL" != 1 ; then | |
21442 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21443 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21444 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21445 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21447 | else | |
21448 | cat >conftest.$ac_ext <<_ACEOF | |
21449 | /* confdefs.h. */ | |
21450 | _ACEOF | |
21451 | cat confdefs.h >>conftest.$ac_ext | |
21452 | cat >>conftest.$ac_ext <<_ACEOF | |
21453 | /* end confdefs.h. */ | |
21454 | ||
21455 | #undef HAVE_STDLIB_H | |
21456 | #include <stdio.h> | |
21457 | #include <jpeglib.h> | |
21458 | ||
21459 | int | |
21460 | main () | |
21461 | { | |
21462 | ||
21463 | ||
21464 | ; | |
21465 | return 0; | |
21466 | } | |
21467 | _ACEOF | |
21468 | rm -f conftest.$ac_objext | |
21469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21470 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21471 | ac_status=$? |
ac1cb8d3 VS |
21472 | grep -v '^ *+' conftest.er1 >conftest.err |
21473 | rm -f conftest.er1 | |
21474 | cat conftest.err >&5 | |
a848cd7e SC |
21475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21476 | (exit $ac_status); } && | |
5294a27e | 21477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21479 | (eval $ac_try) 2>&5 | |
21480 | ac_status=$? | |
21481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21482 | (exit $ac_status); }; } && | |
21483 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21485 | (eval $ac_try) 2>&5 | |
21486 | ac_status=$? | |
21487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21488 | (exit $ac_status); }; }; then | |
21489 | ac_cv_header_jpeglib_h=yes | |
21490 | else | |
21491 | echo "$as_me: failed program was:" >&5 | |
21492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21493 | ||
21494 | ac_cv_header_jpeglib_h=no | |
21495 | ||
21496 | fi | |
ac1cb8d3 | 21497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21498 | |
21499 | fi | |
21500 | ||
21501 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21502 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21503 | ||
21504 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21505 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21506 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21507 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21509 | else | |
21510 | ac_check_lib_save_LIBS=$LIBS | |
21511 | LIBS="-ljpeg $LIBS" | |
21512 | cat >conftest.$ac_ext <<_ACEOF | |
21513 | /* confdefs.h. */ | |
21514 | _ACEOF | |
21515 | cat confdefs.h >>conftest.$ac_ext | |
21516 | cat >>conftest.$ac_ext <<_ACEOF | |
21517 | /* end confdefs.h. */ | |
21518 | ||
21519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21520 | #ifdef __cplusplus | |
21521 | extern "C" | |
21522 | #endif | |
21523 | /* We use char because int might match the return type of a gcc2 | |
21524 | builtin and then its argument prototype would still apply. */ | |
21525 | char jpeg_read_header (); | |
21526 | int | |
21527 | main () | |
21528 | { | |
21529 | jpeg_read_header (); | |
21530 | ; | |
21531 | return 0; | |
21532 | } | |
21533 | _ACEOF | |
21534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21536 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21537 | ac_status=$? |
ac1cb8d3 VS |
21538 | grep -v '^ *+' conftest.er1 >conftest.err |
21539 | rm -f conftest.er1 | |
21540 | cat conftest.err >&5 | |
a848cd7e SC |
21541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21542 | (exit $ac_status); } && | |
5294a27e | 21543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21545 | (eval $ac_try) 2>&5 | |
21546 | ac_status=$? | |
21547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21548 | (exit $ac_status); }; } && | |
21549 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21551 | (eval $ac_try) 2>&5 | |
21552 | ac_status=$? | |
21553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21554 | (exit $ac_status); }; }; then | |
21555 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21556 | else | |
21557 | echo "$as_me: failed program was:" >&5 | |
21558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21559 | ||
21560 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21561 | fi | |
ac1cb8d3 VS |
21562 | rm -f conftest.err conftest.$ac_objext \ |
21563 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21564 | LIBS=$ac_check_lib_save_LIBS |
21565 | fi | |
21566 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21567 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21568 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21569 | JPEG_LINK=" -ljpeg" | |
21570 | fi | |
21571 | ||
21572 | fi | |
21573 | ||
21574 | if test "x$JPEG_LINK" = "x" ; then | |
21575 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21576 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21577 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21578 | { (exit 1); exit 1; }; } | |
21579 | else | |
21580 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21581 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21582 | wxUSE_LIBJPEG=builtin | |
21583 | fi | |
21584 | else | |
21585 | wxUSE_LIBJPEG=sys | |
21586 | fi | |
21587 | fi | |
21588 | fi | |
21589 | fi | |
21590 | ||
21591 | ||
21592 | TIFF_LINK= | |
21593 | TIFF_PREREQ_LINKS=-lm | |
21594 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21595 | cat >>confdefs.h <<\_ACEOF | |
21596 | #define wxUSE_LIBTIFF 1 | |
21597 | _ACEOF | |
21598 | ||
21599 | ||
21600 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21601 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21602 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21603 | fi | |
21604 | if test "$wxUSE_ZLIB" = "sys"; then | |
21605 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21606 | fi | |
21607 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21608 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21609 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21610 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21612 | fi | |
21613 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21614 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21615 | else | |
21616 | # Is the header compilable? | |
21617 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21618 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21619 | cat >conftest.$ac_ext <<_ACEOF | |
21620 | /* confdefs.h. */ | |
21621 | _ACEOF | |
21622 | cat confdefs.h >>conftest.$ac_ext | |
21623 | cat >>conftest.$ac_ext <<_ACEOF | |
21624 | /* end confdefs.h. */ | |
21625 | $ac_includes_default | |
21626 | #include <tiffio.h> | |
21627 | _ACEOF | |
21628 | rm -f conftest.$ac_objext | |
21629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21631 | ac_status=$? |
ac1cb8d3 VS |
21632 | grep -v '^ *+' conftest.er1 >conftest.err |
21633 | rm -f conftest.er1 | |
21634 | cat conftest.err >&5 | |
a848cd7e SC |
21635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21636 | (exit $ac_status); } && | |
5294a27e | 21637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21639 | (eval $ac_try) 2>&5 | |
21640 | ac_status=$? | |
21641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21642 | (exit $ac_status); }; } && | |
21643 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21645 | (eval $ac_try) 2>&5 | |
21646 | ac_status=$? | |
21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21648 | (exit $ac_status); }; }; then | |
21649 | ac_header_compiler=yes | |
21650 | else | |
21651 | echo "$as_me: failed program was:" >&5 | |
21652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21653 | ||
21654 | ac_header_compiler=no | |
21655 | fi | |
ac1cb8d3 | 21656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21657 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21658 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21659 | ||
21660 | # Is the header present? | |
21661 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21662 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21663 | cat >conftest.$ac_ext <<_ACEOF | |
21664 | /* confdefs.h. */ | |
21665 | _ACEOF | |
21666 | cat confdefs.h >>conftest.$ac_ext | |
21667 | cat >>conftest.$ac_ext <<_ACEOF | |
21668 | /* end confdefs.h. */ | |
21669 | #include <tiffio.h> | |
21670 | _ACEOF | |
21671 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21672 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21673 | ac_status=$? | |
21674 | grep -v '^ *+' conftest.er1 >conftest.err | |
21675 | rm -f conftest.er1 | |
21676 | cat conftest.err >&5 | |
21677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21678 | (exit $ac_status); } >/dev/null; then | |
21679 | if test -s conftest.err; then | |
21680 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21682 | else |
21683 | ac_cpp_err= | |
21684 | fi | |
21685 | else | |
21686 | ac_cpp_err=yes | |
21687 | fi | |
21688 | if test -z "$ac_cpp_err"; then | |
21689 | ac_header_preproc=yes | |
21690 | else | |
21691 | echo "$as_me: failed program was:" >&5 | |
21692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21693 | ||
21694 | ac_header_preproc=no | |
21695 | fi | |
21696 | rm -f conftest.err conftest.$ac_ext | |
21697 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21698 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21699 | ||
21700 | # So? What about this header? | |
ac1cb8d3 VS |
21701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21702 | yes:no: ) | |
a848cd7e SC |
21703 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21704 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21705 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21706 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21707 | ac_header_preproc=yes | |
a848cd7e | 21708 | ;; |
ac1cb8d3 | 21709 | no:yes:* ) |
a848cd7e SC |
21710 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21711 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21712 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21713 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21714 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21715 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21716 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21717 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21718 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21719 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21720 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21721 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21722 | ( |
21723 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21724 | ## ----------------------------------------- ## |
21725 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21726 | ## ----------------------------------------- ## | |
a848cd7e SC |
21727 | _ASBOX |
21728 | ) | | |
21729 | sed "s/^/$as_me: WARNING: /" >&2 | |
21730 | ;; | |
21731 | esac | |
21732 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21733 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21734 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21736 | else | |
21737 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21738 | fi | |
21739 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21740 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21741 | ||
21742 | fi | |
21743 | if test $ac_cv_header_tiffio_h = yes; then | |
21744 | ||
21745 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21746 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21747 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21749 | else | |
21750 | ac_check_lib_save_LIBS=$LIBS | |
21751 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21752 | cat >conftest.$ac_ext <<_ACEOF | |
21753 | /* confdefs.h. */ | |
21754 | _ACEOF | |
21755 | cat confdefs.h >>conftest.$ac_ext | |
21756 | cat >>conftest.$ac_ext <<_ACEOF | |
21757 | /* end confdefs.h. */ | |
21758 | ||
21759 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21760 | #ifdef __cplusplus | |
21761 | extern "C" | |
21762 | #endif | |
21763 | /* We use char because int might match the return type of a gcc2 | |
21764 | builtin and then its argument prototype would still apply. */ | |
21765 | char TIFFError (); | |
21766 | int | |
21767 | main () | |
21768 | { | |
21769 | TIFFError (); | |
21770 | ; | |
21771 | return 0; | |
21772 | } | |
21773 | _ACEOF | |
21774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21776 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21777 | ac_status=$? |
ac1cb8d3 VS |
21778 | grep -v '^ *+' conftest.er1 >conftest.err |
21779 | rm -f conftest.er1 | |
21780 | cat conftest.err >&5 | |
a848cd7e SC |
21781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21782 | (exit $ac_status); } && | |
5294a27e | 21783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21785 | (eval $ac_try) 2>&5 | |
21786 | ac_status=$? | |
21787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21788 | (exit $ac_status); }; } && | |
21789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21791 | (eval $ac_try) 2>&5 | |
21792 | ac_status=$? | |
21793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21794 | (exit $ac_status); }; }; then | |
21795 | ac_cv_lib_tiff_TIFFError=yes | |
21796 | else | |
21797 | echo "$as_me: failed program was:" >&5 | |
21798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21799 | ||
21800 | ac_cv_lib_tiff_TIFFError=no | |
21801 | fi | |
ac1cb8d3 VS |
21802 | rm -f conftest.err conftest.$ac_objext \ |
21803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21804 | LIBS=$ac_check_lib_save_LIBS |
21805 | fi | |
21806 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21807 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21808 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21809 | TIFF_LINK=" -ltiff" | |
21810 | fi | |
21811 | ||
21812 | ||
21813 | ||
21814 | fi | |
21815 | ||
21816 | ||
21817 | ||
21818 | if test "x$TIFF_LINK" = "x" ; then | |
21819 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21820 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21821 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21822 | { (exit 1); exit 1; }; } | |
21823 | else | |
21824 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21825 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21826 | wxUSE_LIBTIFF=builtin | |
21827 | fi | |
21828 | else | |
21829 | wxUSE_LIBTIFF=sys | |
21830 | fi | |
21831 | fi | |
21832 | fi | |
21833 | ||
21834 | ||
21835 | if test "$wxUSE_EXPAT" != "no"; then | |
21836 | wxUSE_XML=yes | |
21837 | cat >>confdefs.h <<\_ACEOF | |
21838 | #define wxUSE_EXPAT 1 | |
21839 | _ACEOF | |
21840 | ||
21841 | cat >>confdefs.h <<\_ACEOF | |
21842 | #define wxUSE_XML 1 | |
21843 | _ACEOF | |
21844 | ||
21845 | ||
21846 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21847 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21848 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21849 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21850 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21852 | fi | |
21853 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21854 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21855 | else | |
21856 | # Is the header compilable? | |
21857 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21858 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21859 | cat >conftest.$ac_ext <<_ACEOF | |
21860 | /* confdefs.h. */ | |
21861 | _ACEOF | |
21862 | cat confdefs.h >>conftest.$ac_ext | |
21863 | cat >>conftest.$ac_ext <<_ACEOF | |
21864 | /* end confdefs.h. */ | |
21865 | $ac_includes_default | |
21866 | #include <expat.h> | |
21867 | _ACEOF | |
21868 | rm -f conftest.$ac_objext | |
21869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21870 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21871 | ac_status=$? |
ac1cb8d3 VS |
21872 | grep -v '^ *+' conftest.er1 >conftest.err |
21873 | rm -f conftest.er1 | |
21874 | cat conftest.err >&5 | |
a848cd7e SC |
21875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21876 | (exit $ac_status); } && | |
5294a27e | 21877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21879 | (eval $ac_try) 2>&5 | |
21880 | ac_status=$? | |
21881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21882 | (exit $ac_status); }; } && | |
21883 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21885 | (eval $ac_try) 2>&5 | |
21886 | ac_status=$? | |
21887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21888 | (exit $ac_status); }; }; then | |
21889 | ac_header_compiler=yes | |
21890 | else | |
21891 | echo "$as_me: failed program was:" >&5 | |
21892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21893 | ||
21894 | ac_header_compiler=no | |
21895 | fi | |
ac1cb8d3 | 21896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21897 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21898 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21899 | ||
21900 | # Is the header present? | |
21901 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21902 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21903 | cat >conftest.$ac_ext <<_ACEOF | |
21904 | /* confdefs.h. */ | |
21905 | _ACEOF | |
21906 | cat confdefs.h >>conftest.$ac_ext | |
21907 | cat >>conftest.$ac_ext <<_ACEOF | |
21908 | /* end confdefs.h. */ | |
21909 | #include <expat.h> | |
21910 | _ACEOF | |
21911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21913 | ac_status=$? | |
21914 | grep -v '^ *+' conftest.er1 >conftest.err | |
21915 | rm -f conftest.er1 | |
21916 | cat conftest.err >&5 | |
21917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21918 | (exit $ac_status); } >/dev/null; then | |
21919 | if test -s conftest.err; then | |
21920 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21921 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21922 | else |
21923 | ac_cpp_err= | |
21924 | fi | |
21925 | else | |
21926 | ac_cpp_err=yes | |
21927 | fi | |
21928 | if test -z "$ac_cpp_err"; then | |
21929 | ac_header_preproc=yes | |
21930 | else | |
21931 | echo "$as_me: failed program was:" >&5 | |
21932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21933 | ||
21934 | ac_header_preproc=no | |
21935 | fi | |
21936 | rm -f conftest.err conftest.$ac_ext | |
21937 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21938 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21939 | ||
21940 | # So? What about this header? | |
ac1cb8d3 VS |
21941 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21942 | yes:no: ) | |
a848cd7e SC |
21943 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21944 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21945 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21946 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21947 | ac_header_preproc=yes | |
a848cd7e | 21948 | ;; |
ac1cb8d3 | 21949 | no:yes:* ) |
a848cd7e SC |
21950 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21951 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21952 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21953 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21954 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21955 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21956 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21957 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21958 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21959 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21960 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21961 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21962 | ( |
21963 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21964 | ## ----------------------------------------- ## |
21965 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21966 | ## ----------------------------------------- ## | |
a848cd7e SC |
21967 | _ASBOX |
21968 | ) | | |
21969 | sed "s/^/$as_me: WARNING: /" >&2 | |
21970 | ;; | |
21971 | esac | |
21972 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21973 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21974 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21976 | else | |
21977 | ac_cv_header_expat_h=$ac_header_preproc | |
21978 | fi | |
21979 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21980 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21981 | ||
21982 | fi | |
21983 | if test $ac_cv_header_expat_h = yes; then | |
21984 | found_expat_h=1 | |
21985 | fi | |
21986 | ||
21987 | ||
21988 | if test "x$found_expat_h" = "x1"; then | |
21989 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21990 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21991 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21993 | else | |
21994 | ||
21995 | ||
21996 | ||
21997 | ac_ext=cc | |
21998 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21999 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22000 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22001 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22002 | ||
22003 | cat >conftest.$ac_ext <<_ACEOF | |
22004 | /* confdefs.h. */ | |
22005 | _ACEOF | |
22006 | cat confdefs.h >>conftest.$ac_ext | |
22007 | cat >>conftest.$ac_ext <<_ACEOF | |
22008 | /* end confdefs.h. */ | |
22009 | #include <expat.h> | |
22010 | int | |
22011 | main () | |
22012 | { | |
22013 | ||
22014 | ; | |
22015 | return 0; | |
22016 | } | |
22017 | _ACEOF | |
22018 | rm -f conftest.$ac_objext | |
22019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22020 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22021 | ac_status=$? |
ac1cb8d3 VS |
22022 | grep -v '^ *+' conftest.er1 >conftest.err |
22023 | rm -f conftest.er1 | |
22024 | cat conftest.err >&5 | |
a848cd7e SC |
22025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22026 | (exit $ac_status); } && | |
5294a27e | 22027 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22029 | (eval $ac_try) 2>&5 | |
22030 | ac_status=$? | |
22031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22032 | (exit $ac_status); }; } && | |
22033 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22035 | (eval $ac_try) 2>&5 | |
22036 | ac_status=$? | |
22037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22038 | (exit $ac_status); }; }; then | |
22039 | wx_cv_expat_is_not_broken=yes | |
22040 | else | |
22041 | echo "$as_me: failed program was:" >&5 | |
22042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22043 | ||
22044 | wx_cv_expat_is_not_broken=no | |
22045 | ||
22046 | fi | |
ac1cb8d3 | 22047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22048 | ac_ext=c |
22049 | ac_cpp='$CPP $CPPFLAGS' | |
22050 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22051 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22052 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22053 | ||
22054 | ||
22055 | ||
22056 | fi | |
22057 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
22058 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
22059 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
22060 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
22061 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
22062 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
22063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22064 | else | |
22065 | ac_check_lib_save_LIBS=$LIBS | |
22066 | LIBS="-lexpat $LIBS" | |
22067 | cat >conftest.$ac_ext <<_ACEOF | |
22068 | /* confdefs.h. */ | |
22069 | _ACEOF | |
22070 | cat confdefs.h >>conftest.$ac_ext | |
22071 | cat >>conftest.$ac_ext <<_ACEOF | |
22072 | /* end confdefs.h. */ | |
22073 | ||
22074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22075 | #ifdef __cplusplus | |
22076 | extern "C" | |
22077 | #endif | |
22078 | /* We use char because int might match the return type of a gcc2 | |
22079 | builtin and then its argument prototype would still apply. */ | |
22080 | char XML_ParserCreate (); | |
22081 | int | |
22082 | main () | |
22083 | { | |
22084 | XML_ParserCreate (); | |
22085 | ; | |
22086 | return 0; | |
22087 | } | |
22088 | _ACEOF | |
22089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22091 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22092 | ac_status=$? |
ac1cb8d3 VS |
22093 | grep -v '^ *+' conftest.er1 >conftest.err |
22094 | rm -f conftest.er1 | |
22095 | cat conftest.err >&5 | |
a848cd7e SC |
22096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22097 | (exit $ac_status); } && | |
5294a27e | 22098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22100 | (eval $ac_try) 2>&5 | |
22101 | ac_status=$? | |
22102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22103 | (exit $ac_status); }; } && | |
22104 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22106 | (eval $ac_try) 2>&5 | |
22107 | ac_status=$? | |
22108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22109 | (exit $ac_status); }; }; then | |
22110 | ac_cv_lib_expat_XML_ParserCreate=yes | |
22111 | else | |
22112 | echo "$as_me: failed program was:" >&5 | |
22113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22114 | ||
22115 | ac_cv_lib_expat_XML_ParserCreate=no | |
22116 | fi | |
ac1cb8d3 VS |
22117 | rm -f conftest.err conftest.$ac_objext \ |
22118 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22119 | LIBS=$ac_check_lib_save_LIBS |
22120 | fi | |
22121 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
22122 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
22123 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
22124 | EXPAT_LINK=" -lexpat" | |
22125 | fi | |
22126 | ||
22127 | fi | |
22128 | fi | |
22129 | if test "x$EXPAT_LINK" = "x" ; then | |
22130 | if test "$wxUSE_EXPAT" = "sys" ; then | |
22131 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
22132 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
22133 | { (exit 1); exit 1; }; } | |
22134 | else | |
22135 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
22136 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
22137 | wxUSE_EXPAT=builtin | |
22138 | fi | |
22139 | else | |
22140 | wxUSE_EXPAT=sys | |
22141 | fi | |
22142 | fi | |
22143 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
22144 | ||
22145 | ||
22146 | subdirs="$subdirs src/expat" | |
22147 | ||
22148 | fi | |
22149 | fi | |
22150 | ||
22151 | ||
22152 | ||
22153 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
22154 | ||
22155 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22156 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22157 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22158 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22160 | fi | |
22161 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22162 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22163 | else | |
22164 | # Is the header compilable? | |
22165 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
22166 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
22167 | cat >conftest.$ac_ext <<_ACEOF | |
22168 | /* confdefs.h. */ | |
22169 | _ACEOF | |
22170 | cat confdefs.h >>conftest.$ac_ext | |
22171 | cat >>conftest.$ac_ext <<_ACEOF | |
22172 | /* end confdefs.h. */ | |
22173 | $ac_includes_default | |
22174 | #include <mspack.h> | |
22175 | _ACEOF | |
22176 | rm -f conftest.$ac_objext | |
22177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22178 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22179 | ac_status=$? |
ac1cb8d3 VS |
22180 | grep -v '^ *+' conftest.er1 >conftest.err |
22181 | rm -f conftest.er1 | |
22182 | cat conftest.err >&5 | |
a848cd7e SC |
22183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22184 | (exit $ac_status); } && | |
5294a27e | 22185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22187 | (eval $ac_try) 2>&5 | |
22188 | ac_status=$? | |
22189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22190 | (exit $ac_status); }; } && | |
22191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22193 | (eval $ac_try) 2>&5 | |
22194 | ac_status=$? | |
22195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22196 | (exit $ac_status); }; }; then | |
22197 | ac_header_compiler=yes | |
22198 | else | |
22199 | echo "$as_me: failed program was:" >&5 | |
22200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22201 | ||
22202 | ac_header_compiler=no | |
22203 | fi | |
ac1cb8d3 | 22204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22206 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22207 | ||
22208 | # Is the header present? | |
22209 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
22210 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
22211 | cat >conftest.$ac_ext <<_ACEOF | |
22212 | /* confdefs.h. */ | |
22213 | _ACEOF | |
22214 | cat confdefs.h >>conftest.$ac_ext | |
22215 | cat >>conftest.$ac_ext <<_ACEOF | |
22216 | /* end confdefs.h. */ | |
22217 | #include <mspack.h> | |
22218 | _ACEOF | |
22219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22221 | ac_status=$? | |
22222 | grep -v '^ *+' conftest.er1 >conftest.err | |
22223 | rm -f conftest.er1 | |
22224 | cat conftest.err >&5 | |
22225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22226 | (exit $ac_status); } >/dev/null; then | |
22227 | if test -s conftest.err; then | |
22228 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22230 | else |
22231 | ac_cpp_err= | |
22232 | fi | |
22233 | else | |
22234 | ac_cpp_err=yes | |
22235 | fi | |
22236 | if test -z "$ac_cpp_err"; then | |
22237 | ac_header_preproc=yes | |
22238 | else | |
22239 | echo "$as_me: failed program was:" >&5 | |
22240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22241 | ||
22242 | ac_header_preproc=no | |
22243 | fi | |
22244 | rm -f conftest.err conftest.$ac_ext | |
22245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22246 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22247 | ||
22248 | # So? What about this header? | |
ac1cb8d3 VS |
22249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22250 | yes:no: ) | |
a848cd7e SC |
22251 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22252 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22253 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22254 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22255 | ac_header_preproc=yes | |
a848cd7e | 22256 | ;; |
ac1cb8d3 | 22257 | no:yes:* ) |
a848cd7e SC |
22258 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22259 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22260 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22261 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22262 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22263 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22264 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22265 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22266 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22267 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22268 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22269 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22270 | ( |
22271 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22272 | ## ----------------------------------------- ## |
22273 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22274 | ## ----------------------------------------- ## | |
a848cd7e SC |
22275 | _ASBOX |
22276 | ) | | |
22277 | sed "s/^/$as_me: WARNING: /" >&2 | |
22278 | ;; | |
22279 | esac | |
22280 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22281 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22282 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22284 | else | |
22285 | ac_cv_header_mspack_h=$ac_header_preproc | |
22286 | fi | |
22287 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22288 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22289 | ||
22290 | fi | |
22291 | if test $ac_cv_header_mspack_h = yes; then | |
22292 | found_mspack_h=1 | |
22293 | fi | |
22294 | ||
22295 | ||
22296 | if test "x$found_mspack_h" = "x1"; then | |
22297 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22298 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22299 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22301 | else | |
22302 | ac_check_lib_save_LIBS=$LIBS | |
22303 | LIBS="-lmspack $LIBS" | |
22304 | cat >conftest.$ac_ext <<_ACEOF | |
22305 | /* confdefs.h. */ | |
22306 | _ACEOF | |
22307 | cat confdefs.h >>conftest.$ac_ext | |
22308 | cat >>conftest.$ac_ext <<_ACEOF | |
22309 | /* end confdefs.h. */ | |
22310 | ||
22311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22312 | #ifdef __cplusplus | |
22313 | extern "C" | |
22314 | #endif | |
22315 | /* We use char because int might match the return type of a gcc2 | |
22316 | builtin and then its argument prototype would still apply. */ | |
22317 | char mspack_create_chm_decompressor (); | |
22318 | int | |
22319 | main () | |
22320 | { | |
22321 | mspack_create_chm_decompressor (); | |
22322 | ; | |
22323 | return 0; | |
22324 | } | |
22325 | _ACEOF | |
22326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22328 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22329 | ac_status=$? |
ac1cb8d3 VS |
22330 | grep -v '^ *+' conftest.er1 >conftest.err |
22331 | rm -f conftest.er1 | |
22332 | cat conftest.err >&5 | |
a848cd7e SC |
22333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22334 | (exit $ac_status); } && | |
5294a27e | 22335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22337 | (eval $ac_try) 2>&5 | |
22338 | ac_status=$? | |
22339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22340 | (exit $ac_status); }; } && | |
22341 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22343 | (eval $ac_try) 2>&5 | |
22344 | ac_status=$? | |
22345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22346 | (exit $ac_status); }; }; then | |
22347 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22348 | else | |
22349 | echo "$as_me: failed program was:" >&5 | |
22350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22351 | ||
22352 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22353 | fi | |
ac1cb8d3 VS |
22354 | rm -f conftest.err conftest.$ac_objext \ |
22355 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22356 | LIBS=$ac_check_lib_save_LIBS |
22357 | fi | |
22358 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22359 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22360 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22361 | MSPACK_LINK=" -lmspack" | |
22362 | fi | |
22363 | ||
22364 | fi | |
22365 | if test "x$MSPACK_LINK" = "x" ; then | |
22366 | wxUSE_LIBMSPACK=no | |
22367 | else | |
22368 | cat >>confdefs.h <<\_ACEOF | |
22369 | #define wxUSE_LIBMSPACK 1 | |
22370 | _ACEOF | |
22371 | ||
22372 | fi | |
22373 | fi | |
22374 | ||
22375 | ||
22376 | ||
22377 | AFMINSTALL= | |
22378 | WIN32INSTALL= | |
22379 | ||
22380 | TOOLKIT= | |
22381 | TOOLKIT_INCLUDE= | |
22382 | WIDGET_SET= | |
22383 | ||
22384 | if test "$USE_WIN32" = 1 ; then | |
22385 | ||
22386 | for ac_header in w32api.h | |
22387 | do | |
22388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22389 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22394 | fi | |
22395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22396 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22397 | else | |
22398 | # Is the header compilable? | |
22399 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22400 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22401 | cat >conftest.$ac_ext <<_ACEOF | |
22402 | /* confdefs.h. */ | |
22403 | _ACEOF | |
22404 | cat confdefs.h >>conftest.$ac_ext | |
22405 | cat >>conftest.$ac_ext <<_ACEOF | |
22406 | /* end confdefs.h. */ | |
22407 | $ac_includes_default | |
22408 | #include <$ac_header> | |
22409 | _ACEOF | |
22410 | rm -f conftest.$ac_objext | |
22411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22412 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22413 | ac_status=$? |
ac1cb8d3 VS |
22414 | grep -v '^ *+' conftest.er1 >conftest.err |
22415 | rm -f conftest.er1 | |
22416 | cat conftest.err >&5 | |
a848cd7e SC |
22417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22418 | (exit $ac_status); } && | |
5294a27e | 22419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22421 | (eval $ac_try) 2>&5 | |
22422 | ac_status=$? | |
22423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22424 | (exit $ac_status); }; } && | |
22425 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22427 | (eval $ac_try) 2>&5 | |
22428 | ac_status=$? | |
22429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22430 | (exit $ac_status); }; }; then | |
22431 | ac_header_compiler=yes | |
22432 | else | |
22433 | echo "$as_me: failed program was:" >&5 | |
22434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22435 | ||
22436 | ac_header_compiler=no | |
22437 | fi | |
ac1cb8d3 | 22438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22439 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22440 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22441 | ||
22442 | # Is the header present? | |
22443 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22444 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22445 | cat >conftest.$ac_ext <<_ACEOF | |
22446 | /* confdefs.h. */ | |
22447 | _ACEOF | |
22448 | cat confdefs.h >>conftest.$ac_ext | |
22449 | cat >>conftest.$ac_ext <<_ACEOF | |
22450 | /* end confdefs.h. */ | |
22451 | #include <$ac_header> | |
22452 | _ACEOF | |
22453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22455 | ac_status=$? | |
22456 | grep -v '^ *+' conftest.er1 >conftest.err | |
22457 | rm -f conftest.er1 | |
22458 | cat conftest.err >&5 | |
22459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22460 | (exit $ac_status); } >/dev/null; then | |
22461 | if test -s conftest.err; then | |
22462 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22464 | else |
22465 | ac_cpp_err= | |
22466 | fi | |
22467 | else | |
22468 | ac_cpp_err=yes | |
22469 | fi | |
22470 | if test -z "$ac_cpp_err"; then | |
22471 | ac_header_preproc=yes | |
22472 | else | |
22473 | echo "$as_me: failed program was:" >&5 | |
22474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22475 | ||
22476 | ac_header_preproc=no | |
22477 | fi | |
22478 | rm -f conftest.err conftest.$ac_ext | |
22479 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22480 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22481 | ||
22482 | # So? What about this header? | |
ac1cb8d3 VS |
22483 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22484 | yes:no: ) | |
a848cd7e SC |
22485 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22486 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22487 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22488 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22489 | ac_header_preproc=yes | |
a848cd7e | 22490 | ;; |
ac1cb8d3 | 22491 | no:yes:* ) |
a848cd7e SC |
22492 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22493 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22494 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22495 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22496 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22497 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22498 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22499 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22500 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22501 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22502 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22503 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22504 | ( |
22505 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22506 | ## ----------------------------------------- ## |
22507 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22508 | ## ----------------------------------------- ## | |
a848cd7e SC |
22509 | _ASBOX |
22510 | ) | | |
22511 | sed "s/^/$as_me: WARNING: /" >&2 | |
22512 | ;; | |
22513 | esac | |
22514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22518 | else | |
ac1cb8d3 | 22519 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22520 | fi |
22521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22522 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22523 | ||
22524 | fi | |
22525 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22526 | cat >>confdefs.h <<_ACEOF | |
22527 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22528 | _ACEOF | |
22529 | ||
22530 | fi | |
22531 | ||
22532 | done | |
22533 | ||
22534 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22535 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22536 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22537 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22539 | fi | |
22540 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22541 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22542 | else | |
22543 | # Is the header compilable? | |
22544 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22545 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22546 | cat >conftest.$ac_ext <<_ACEOF | |
22547 | /* confdefs.h. */ | |
22548 | _ACEOF | |
22549 | cat confdefs.h >>conftest.$ac_ext | |
22550 | cat >>conftest.$ac_ext <<_ACEOF | |
22551 | /* end confdefs.h. */ | |
22552 | $ac_includes_default | |
22553 | #include <windows.h> | |
22554 | _ACEOF | |
22555 | rm -f conftest.$ac_objext | |
22556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22558 | ac_status=$? |
ac1cb8d3 VS |
22559 | grep -v '^ *+' conftest.er1 >conftest.err |
22560 | rm -f conftest.er1 | |
22561 | cat conftest.err >&5 | |
a848cd7e SC |
22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22563 | (exit $ac_status); } && | |
5294a27e | 22564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22566 | (eval $ac_try) 2>&5 | |
22567 | ac_status=$? | |
22568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22569 | (exit $ac_status); }; } && | |
22570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22572 | (eval $ac_try) 2>&5 | |
22573 | ac_status=$? | |
22574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22575 | (exit $ac_status); }; }; then | |
22576 | ac_header_compiler=yes | |
22577 | else | |
22578 | echo "$as_me: failed program was:" >&5 | |
22579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22580 | ||
22581 | ac_header_compiler=no | |
22582 | fi | |
ac1cb8d3 | 22583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22584 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22585 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22586 | ||
22587 | # Is the header present? | |
22588 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22589 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22590 | cat >conftest.$ac_ext <<_ACEOF | |
22591 | /* confdefs.h. */ | |
22592 | _ACEOF | |
22593 | cat confdefs.h >>conftest.$ac_ext | |
22594 | cat >>conftest.$ac_ext <<_ACEOF | |
22595 | /* end confdefs.h. */ | |
22596 | #include <windows.h> | |
22597 | _ACEOF | |
22598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22600 | ac_status=$? | |
22601 | grep -v '^ *+' conftest.er1 >conftest.err | |
22602 | rm -f conftest.er1 | |
22603 | cat conftest.err >&5 | |
22604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22605 | (exit $ac_status); } >/dev/null; then | |
22606 | if test -s conftest.err; then | |
22607 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22609 | else |
22610 | ac_cpp_err= | |
22611 | fi | |
22612 | else | |
22613 | ac_cpp_err=yes | |
22614 | fi | |
22615 | if test -z "$ac_cpp_err"; then | |
22616 | ac_header_preproc=yes | |
22617 | else | |
22618 | echo "$as_me: failed program was:" >&5 | |
22619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22620 | ||
22621 | ac_header_preproc=no | |
22622 | fi | |
22623 | rm -f conftest.err conftest.$ac_ext | |
22624 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22625 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22626 | ||
22627 | # So? What about this header? | |
ac1cb8d3 VS |
22628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22629 | yes:no: ) | |
a848cd7e SC |
22630 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22631 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22632 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22633 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22634 | ac_header_preproc=yes | |
a848cd7e | 22635 | ;; |
ac1cb8d3 | 22636 | no:yes:* ) |
a848cd7e SC |
22637 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22638 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22639 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22640 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22641 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22642 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22643 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22644 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22645 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22646 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22647 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22648 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22649 | ( |
22650 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22651 | ## ----------------------------------------- ## |
22652 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22653 | ## ----------------------------------------- ## | |
a848cd7e SC |
22654 | _ASBOX |
22655 | ) | | |
22656 | sed "s/^/$as_me: WARNING: /" >&2 | |
22657 | ;; | |
22658 | esac | |
22659 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22660 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22661 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22663 | else | |
22664 | ac_cv_header_windows_h=$ac_header_preproc | |
22665 | fi | |
22666 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22667 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22668 | ||
22669 | fi | |
22670 | if test $ac_cv_header_windows_h = yes; then | |
22671 | : | |
22672 | else | |
22673 | ||
22674 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22675 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22676 | { (exit 1); exit 1; }; } | |
22677 | ||
22678 | fi | |
22679 | ||
22680 | ||
22681 | ||
22682 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22683 | ||
22684 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22685 | LIBS="$LIBS -loleacc" | |
22686 | fi | |
22687 | ||
22688 | case "${host}" in | |
22689 | *-*-cygwin* ) | |
22690 | LIBS="$LIBS -lkernel32 -luser32" | |
22691 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22692 | esac | |
22693 | ||
22694 | if test "$wxUSE_ODBC" = "sys" ; then | |
22695 | wxUSE_ODBC = "yes" | |
22696 | fi | |
22697 | if test "$wxUSE_ODBC" = "yes" ; then | |
22698 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22699 | cat >>confdefs.h <<\_ACEOF | |
22700 | #define wxUSE_ODBC 1 | |
22701 | _ACEOF | |
22702 | ||
22703 | fi | |
22704 | ||
22705 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22706 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22707 | ||
22708 | WIN32INSTALL=win32install | |
22709 | fi | |
22710 | ||
22711 | if test "$wxUSE_GUI" = "yes"; then | |
22712 | USE_GUI=1 | |
22713 | ||
22714 | GUI_TK_LIBRARY= | |
22715 | ||
22716 | WXGTK12= | |
22717 | WXGTK127= | |
22718 | WXGTK20= | |
22719 | WXGPE= | |
22720 | ||
207bc66c RN |
22721 | if test "$wxUSE_COCOA" = 1 ; then |
22722 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
22723 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
22724 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
22725 | wxUSE_PRINTING_ARCHITECTURE=no | |
22726 | fi | |
22727 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
22728 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
22729 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
22730 | wxUSE_DRAG_AND_DROP=no | |
22731 | fi | |
22732 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
22733 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
22734 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
22735 | wxUSE_DRAGIMAGE=no | |
22736 | fi | |
22737 | fi | |
22738 | ||
a848cd7e SC |
22739 | if test "$wxUSE_MSW" = 1 ; then |
22740 | TOOLKIT=MSW | |
22741 | GUIDIST=MSW_DIST | |
22742 | ||
ceec2216 | 22743 | case "${host}" in |
a848cd7e SC |
22744 | *-*-mingw32* ) |
22745 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22746 | esac | |
22747 | fi | |
22748 | ||
22749 | if test "$wxUSE_GTK" = 1; then | |
22750 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22751 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22752 | ||
22753 | gtk_version_cached=1 | |
22754 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22756 | else | |
22757 | ||
22758 | gtk_version_cached=0 | |
22759 | echo "$as_me:$LINENO: result: " >&5 | |
22760 | echo "${ECHO_T}" >&6 | |
22761 | ||
22762 | GTK_MODULES= | |
22763 | if test "$wxUSE_THREADS" = "yes"; then | |
22764 | GTK_MODULES=gthread | |
22765 | fi | |
22766 | ||
22767 | wx_cv_lib_gtk= | |
22768 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22769 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22770 | if test "${enable_gtktest+set}" = set; then | |
22771 | enableval="$enable_gtktest" | |
22772 | ||
22773 | else | |
22774 | enable_gtktest=yes | |
22775 | fi; | |
22776 | ||
22777 | pkg_config_args=gtk+-2.0 | |
22778 | for module in . $GTK_MODULES | |
22779 | do | |
22780 | case "$module" in | |
22781 | gthread) | |
22782 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22783 | ;; | |
22784 | esac | |
22785 | done | |
22786 | ||
22787 | no_gtk="" | |
22788 | ||
22789 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22790 | set dummy pkg-config; ac_word=$2 | |
22791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22793 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22795 | else | |
22796 | case $PKG_CONFIG in | |
22797 | [\\/]* | ?:[\\/]*) | |
22798 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22799 | ;; | |
22800 | *) | |
22801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22802 | for as_dir in $PATH | |
22803 | do | |
22804 | IFS=$as_save_IFS | |
22805 | test -z "$as_dir" && as_dir=. | |
22806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22808 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22810 | break 2 | |
22811 | fi | |
22812 | done | |
22813 | done | |
22814 | ||
22815 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22816 | ;; | |
22817 | esac | |
22818 | fi | |
22819 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22820 | ||
22821 | if test -n "$PKG_CONFIG"; then | |
22822 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22823 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22824 | else | |
22825 | echo "$as_me:$LINENO: result: no" >&5 | |
22826 | echo "${ECHO_T}no" >&6 | |
22827 | fi | |
22828 | ||
22829 | ||
22830 | if test x$PKG_CONFIG != xno ; then | |
22831 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22832 | : | |
22833 | else | |
c2218763 | 22834 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22835 | no_gtk=yes |
22836 | PKG_CONFIG=no | |
22837 | fi | |
22838 | else | |
22839 | no_gtk=yes | |
22840 | fi | |
22841 | ||
22842 | min_gtk_version=2.0.0 | |
22843 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22844 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22845 | ||
22846 | if test x$PKG_CONFIG != xno ; then | |
22847 | ## don't try to run the test against uninstalled libtool libs | |
22848 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22849 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22850 | enable_gtktest=no | |
22851 | fi | |
22852 | ||
22853 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22854 | : | |
22855 | else | |
22856 | no_gtk=yes | |
22857 | fi | |
22858 | fi | |
22859 | ||
22860 | if test x"$no_gtk" = x ; then | |
22861 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22862 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22863 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22864 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22865 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22866 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22867 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22868 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22869 | if test "x$enable_gtktest" = "xyes" ; then | |
22870 | ac_save_CFLAGS="$CFLAGS" | |
22871 | ac_save_LIBS="$LIBS" | |
22872 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22873 | LIBS="$GTK_LIBS $LIBS" | |
22874 | rm -f conf.gtktest | |
22875 | if test "$cross_compiling" = yes; then | |
22876 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22877 | else | |
22878 | cat >conftest.$ac_ext <<_ACEOF | |
22879 | /* confdefs.h. */ | |
22880 | _ACEOF | |
22881 | cat confdefs.h >>conftest.$ac_ext | |
22882 | cat >>conftest.$ac_ext <<_ACEOF | |
22883 | /* end confdefs.h. */ | |
22884 | ||
22885 | #include <gtk/gtk.h> | |
22886 | #include <stdio.h> | |
22887 | #include <stdlib.h> | |
22888 | ||
22889 | int | |
22890 | main () | |
22891 | { | |
22892 | int major, minor, micro; | |
22893 | char *tmp_version; | |
22894 | ||
22895 | system ("touch conf.gtktest"); | |
22896 | ||
22897 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22898 | tmp_version = g_strdup("$min_gtk_version"); | |
22899 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22900 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22901 | exit(1); | |
22902 | } | |
22903 | ||
22904 | if ((gtk_major_version != $gtk_config_major_version) || | |
22905 | (gtk_minor_version != $gtk_config_minor_version) || | |
22906 | (gtk_micro_version != $gtk_config_micro_version)) | |
22907 | { | |
22908 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22909 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22910 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22911 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22912 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22913 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22914 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22915 | printf("*** required on your system.\n"); | |
22916 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22917 | printf("*** to point to the correct configuration files\n"); | |
22918 | } | |
22919 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22920 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22921 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22922 | { | |
22923 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22924 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22925 | printf("*** library (version %d.%d.%d)\n", | |
22926 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22927 | } | |
22928 | else | |
22929 | { | |
22930 | if ((gtk_major_version > major) || | |
22931 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22932 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22933 | { | |
22934 | return 0; | |
22935 | } | |
22936 | else | |
22937 | { | |
22938 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22939 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22940 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22941 | major, minor, micro); | |
22942 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22943 | printf("***\n"); | |
22944 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22945 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22946 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22947 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22948 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22949 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22950 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22951 | } | |
22952 | } | |
22953 | return 1; | |
22954 | } | |
22955 | ||
22956 | _ACEOF | |
22957 | rm -f conftest$ac_exeext | |
22958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22959 | (eval $ac_link) 2>&5 | |
22960 | ac_status=$? | |
22961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22962 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22964 | (eval $ac_try) 2>&5 | |
22965 | ac_status=$? | |
22966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22967 | (exit $ac_status); }; }; then | |
22968 | : | |
22969 | else | |
22970 | echo "$as_me: program exited with status $ac_status" >&5 | |
22971 | echo "$as_me: failed program was:" >&5 | |
22972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22973 | ||
22974 | ( exit $ac_status ) | |
22975 | no_gtk=yes | |
22976 | fi | |
ac1cb8d3 | 22977 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22978 | fi |
22979 | CFLAGS="$ac_save_CFLAGS" | |
22980 | LIBS="$ac_save_LIBS" | |
22981 | fi | |
22982 | fi | |
22983 | if test "x$no_gtk" = x ; then | |
22984 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22985 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22986 | wx_cv_lib_gtk=2.0 | |
22987 | else | |
22988 | echo "$as_me:$LINENO: result: no" >&5 | |
22989 | echo "${ECHO_T}no" >&6 | |
22990 | if test "$PKG_CONFIG" = "no" ; then | |
22991 | echo "*** A new enough version of pkg-config was not found." | |
22992 | echo "*** See http://pkgconfig.sourceforge.net" | |
22993 | else | |
22994 | if test -f conf.gtktest ; then | |
22995 | : | |
22996 | else | |
22997 | echo "*** Could not run GTK+ test program, checking why..." | |
22998 | ac_save_CFLAGS="$CFLAGS" | |
22999 | ac_save_LIBS="$LIBS" | |
23000 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23001 | LIBS="$LIBS $GTK_LIBS" | |
23002 | cat >conftest.$ac_ext <<_ACEOF | |
23003 | /* confdefs.h. */ | |
23004 | _ACEOF | |
23005 | cat confdefs.h >>conftest.$ac_ext | |
23006 | cat >>conftest.$ac_ext <<_ACEOF | |
23007 | /* end confdefs.h. */ | |
23008 | ||
23009 | #include <gtk/gtk.h> | |
23010 | #include <stdio.h> | |
23011 | ||
23012 | int | |
23013 | main () | |
23014 | { | |
23015 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23016 | ; | |
23017 | return 0; | |
23018 | } | |
23019 | _ACEOF | |
23020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23022 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23023 | ac_status=$? |
ac1cb8d3 VS |
23024 | grep -v '^ *+' conftest.er1 >conftest.err |
23025 | rm -f conftest.er1 | |
23026 | cat conftest.err >&5 | |
a848cd7e SC |
23027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23028 | (exit $ac_status); } && | |
5294a27e | 23029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23031 | (eval $ac_try) 2>&5 | |
23032 | ac_status=$? | |
23033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23034 | (exit $ac_status); }; } && | |
23035 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23037 | (eval $ac_try) 2>&5 | |
23038 | ac_status=$? | |
23039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23040 | (exit $ac_status); }; }; then | |
23041 | echo "*** The test program compiled, but did not run. This usually means" | |
23042 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
23043 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
23044 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23045 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23046 | echo "*** is required on your system" | |
23047 | echo "***" | |
23048 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23049 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23050 | else | |
23051 | echo "$as_me: failed program was:" >&5 | |
23052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23053 | ||
23054 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23055 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
23056 | fi | |
ac1cb8d3 VS |
23057 | rm -f conftest.err conftest.$ac_objext \ |
23058 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23059 | CFLAGS="$ac_save_CFLAGS" |
23060 | LIBS="$ac_save_LIBS" | |
23061 | fi | |
23062 | fi | |
23063 | GTK_CFLAGS="" | |
23064 | GTK_LIBS="" | |
23065 | : | |
23066 | fi | |
23067 | ||
23068 | ||
23069 | rm -f conf.gtktest | |
23070 | ||
23071 | else | |
23072 | ||
23073 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23074 | if test "${with_gtk_prefix+set}" = set; then | |
23075 | withval="$with_gtk_prefix" | |
23076 | gtk_config_prefix="$withval" | |
23077 | else | |
23078 | gtk_config_prefix="" | |
23079 | fi; | |
23080 | ||
23081 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23082 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23083 | withval="$with_gtk_exec_prefix" | |
23084 | gtk_config_exec_prefix="$withval" | |
23085 | else | |
23086 | gtk_config_exec_prefix="" | |
23087 | fi; | |
23088 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23089 | if test "${enable_gtktest+set}" = set; then | |
23090 | enableval="$enable_gtktest" | |
23091 | ||
23092 | else | |
23093 | enable_gtktest=yes | |
23094 | fi; | |
23095 | ||
23096 | for module in . $GTK_MODULES | |
23097 | do | |
23098 | case "$module" in | |
23099 | gthread) | |
23100 | gtk_config_args="$gtk_config_args gthread" | |
23101 | ;; | |
23102 | esac | |
23103 | done | |
23104 | ||
23105 | if test x$gtk_config_exec_prefix != x ; then | |
23106 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23107 | if test x${GTK_CONFIG+set} != xset ; then | |
23108 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23109 | fi | |
23110 | fi | |
23111 | if test x$gtk_config_prefix != x ; then | |
23112 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23113 | if test x${GTK_CONFIG+set} != xset ; then | |
23114 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23115 | fi | |
23116 | fi | |
23117 | ||
23118 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23119 | set dummy gtk-config; ac_word=$2 | |
23120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23122 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23124 | else | |
23125 | case $GTK_CONFIG in | |
23126 | [\\/]* | ?:[\\/]*) | |
23127 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23128 | ;; | |
23129 | *) | |
23130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23131 | for as_dir in $PATH | |
23132 | do | |
23133 | IFS=$as_save_IFS | |
23134 | test -z "$as_dir" && as_dir=. | |
23135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23137 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23138 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23139 | break 2 | |
23140 | fi | |
23141 | done | |
23142 | done | |
23143 | ||
23144 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23145 | ;; | |
23146 | esac | |
23147 | fi | |
23148 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23149 | ||
23150 | if test -n "$GTK_CONFIG"; then | |
23151 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23152 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23153 | else | |
23154 | echo "$as_me:$LINENO: result: no" >&5 | |
23155 | echo "${ECHO_T}no" >&6 | |
23156 | fi | |
23157 | ||
23158 | min_gtk_version=1.2.7 | |
23159 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23160 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23161 | no_gtk="" | |
23162 | if test "$GTK_CONFIG" = "no" ; then | |
23163 | no_gtk=yes | |
23164 | else | |
23165 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23166 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23167 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23168 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23169 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23170 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23171 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23172 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23173 | if test "x$enable_gtktest" = "xyes" ; then | |
23174 | ac_save_CFLAGS="$CFLAGS" | |
23175 | ac_save_LIBS="$LIBS" | |
23176 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23177 | LIBS="$GTK_LIBS $LIBS" | |
23178 | rm -f conf.gtktest | |
23179 | if test "$cross_compiling" = yes; then | |
23180 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23181 | else | |
23182 | cat >conftest.$ac_ext <<_ACEOF | |
23183 | /* confdefs.h. */ | |
23184 | _ACEOF | |
23185 | cat confdefs.h >>conftest.$ac_ext | |
23186 | cat >>conftest.$ac_ext <<_ACEOF | |
23187 | /* end confdefs.h. */ | |
23188 | ||
23189 | #include <gtk/gtk.h> | |
23190 | #include <stdio.h> | |
23191 | #include <stdlib.h> | |
23192 | ||
23193 | int | |
23194 | main () | |
23195 | { | |
23196 | int major, minor, micro; | |
23197 | char *tmp_version; | |
23198 | ||
23199 | system ("touch conf.gtktest"); | |
23200 | ||
23201 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23202 | tmp_version = g_strdup("$min_gtk_version"); | |
23203 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23204 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23205 | exit(1); | |
23206 | } | |
23207 | ||
23208 | if ((gtk_major_version != $gtk_config_major_version) || | |
23209 | (gtk_minor_version != $gtk_config_minor_version) || | |
23210 | (gtk_micro_version != $gtk_config_micro_version)) | |
23211 | { | |
23212 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23213 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23214 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23215 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23216 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23217 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23218 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23219 | printf("*** required on your system.\n"); | |
23220 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23221 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23222 | printf("*** before re-running configure\n"); | |
23223 | } | |
23224 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23225 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23226 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23227 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23228 | { | |
23229 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23230 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23231 | printf("*** library (version %d.%d.%d)\n", | |
23232 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23233 | } | |
23234 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23235 | else | |
23236 | { | |
23237 | if ((gtk_major_version > major) || | |
23238 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23239 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23240 | { | |
23241 | return 0; | |
23242 | } | |
23243 | else | |
23244 | { | |
23245 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23246 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23247 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23248 | major, minor, micro); | |
23249 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23250 | printf("***\n"); | |
23251 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23252 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23253 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23254 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23255 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23256 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23257 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23258 | } | |
23259 | } | |
23260 | return 1; | |
23261 | } | |
23262 | ||
23263 | _ACEOF | |
23264 | rm -f conftest$ac_exeext | |
23265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23266 | (eval $ac_link) 2>&5 | |
23267 | ac_status=$? | |
23268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23269 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23271 | (eval $ac_try) 2>&5 | |
23272 | ac_status=$? | |
23273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23274 | (exit $ac_status); }; }; then | |
23275 | : | |
23276 | else | |
23277 | echo "$as_me: program exited with status $ac_status" >&5 | |
23278 | echo "$as_me: failed program was:" >&5 | |
23279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23280 | ||
23281 | ( exit $ac_status ) | |
23282 | no_gtk=yes | |
23283 | fi | |
ac1cb8d3 | 23284 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23285 | fi |
23286 | CFLAGS="$ac_save_CFLAGS" | |
23287 | LIBS="$ac_save_LIBS" | |
23288 | fi | |
23289 | fi | |
23290 | if test "x$no_gtk" = x ; then | |
23291 | echo "$as_me:$LINENO: result: yes" >&5 | |
23292 | echo "${ECHO_T}yes" >&6 | |
23293 | wx_cv_lib_gtk=1.2.7 | |
23294 | else | |
23295 | echo "$as_me:$LINENO: result: no" >&5 | |
23296 | echo "${ECHO_T}no" >&6 | |
23297 | if test "$GTK_CONFIG" = "no" ; then | |
23298 | echo "*** The gtk-config script installed by GTK could not be found" | |
23299 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23300 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23301 | echo "*** full path to gtk-config." | |
23302 | else | |
23303 | if test -f conf.gtktest ; then | |
23304 | : | |
23305 | else | |
23306 | echo "*** Could not run GTK test program, checking why..." | |
23307 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23308 | LIBS="$LIBS $GTK_LIBS" | |
23309 | cat >conftest.$ac_ext <<_ACEOF | |
23310 | /* confdefs.h. */ | |
23311 | _ACEOF | |
23312 | cat confdefs.h >>conftest.$ac_ext | |
23313 | cat >>conftest.$ac_ext <<_ACEOF | |
23314 | /* end confdefs.h. */ | |
23315 | ||
23316 | #include <gtk/gtk.h> | |
23317 | #include <stdio.h> | |
23318 | ||
23319 | int | |
23320 | main () | |
23321 | { | |
23322 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23323 | ; | |
23324 | return 0; | |
23325 | } | |
23326 | _ACEOF | |
23327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23329 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23330 | ac_status=$? |
ac1cb8d3 VS |
23331 | grep -v '^ *+' conftest.er1 >conftest.err |
23332 | rm -f conftest.er1 | |
23333 | cat conftest.err >&5 | |
a848cd7e SC |
23334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23335 | (exit $ac_status); } && | |
5294a27e | 23336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23338 | (eval $ac_try) 2>&5 | |
23339 | ac_status=$? | |
23340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23341 | (exit $ac_status); }; } && | |
23342 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23344 | (eval $ac_try) 2>&5 | |
23345 | ac_status=$? | |
23346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23347 | (exit $ac_status); }; }; then | |
23348 | echo "*** The test program compiled, but did not run. This usually means" | |
23349 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23350 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23351 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23352 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23353 | echo "*** is required on your system" | |
23354 | echo "***" | |
23355 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23356 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23357 | echo "***" | |
23358 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23359 | echo "*** came with the system with the command" | |
23360 | echo "***" | |
23361 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23362 | else | |
23363 | echo "$as_me: failed program was:" >&5 | |
23364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23365 | ||
23366 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23367 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23368 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23369 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23370 | fi | |
ac1cb8d3 VS |
23371 | rm -f conftest.err conftest.$ac_objext \ |
23372 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23373 | CFLAGS="$ac_save_CFLAGS" |
23374 | LIBS="$ac_save_LIBS" | |
23375 | fi | |
23376 | fi | |
23377 | GTK_CFLAGS="" | |
23378 | GTK_LIBS="" | |
23379 | : | |
23380 | fi | |
23381 | ||
23382 | ||
23383 | rm -f conf.gtktest | |
23384 | ||
23385 | ||
23386 | if test -z "$wx_cv_lib_gtk"; then | |
23387 | ||
23388 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23389 | if test "${with_gtk_prefix+set}" = set; then | |
23390 | withval="$with_gtk_prefix" | |
23391 | gtk_config_prefix="$withval" | |
23392 | else | |
23393 | gtk_config_prefix="" | |
23394 | fi; | |
23395 | ||
23396 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23397 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23398 | withval="$with_gtk_exec_prefix" | |
23399 | gtk_config_exec_prefix="$withval" | |
23400 | else | |
23401 | gtk_config_exec_prefix="" | |
23402 | fi; | |
23403 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23404 | if test "${enable_gtktest+set}" = set; then | |
23405 | enableval="$enable_gtktest" | |
23406 | ||
23407 | else | |
23408 | enable_gtktest=yes | |
23409 | fi; | |
23410 | ||
23411 | for module in . $GTK_MODULES | |
23412 | do | |
23413 | case "$module" in | |
23414 | gthread) | |
23415 | gtk_config_args="$gtk_config_args gthread" | |
23416 | ;; | |
23417 | esac | |
23418 | done | |
23419 | ||
23420 | if test x$gtk_config_exec_prefix != x ; then | |
23421 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23422 | if test x${GTK_CONFIG+set} != xset ; then | |
23423 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23424 | fi | |
23425 | fi | |
23426 | if test x$gtk_config_prefix != x ; then | |
23427 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23428 | if test x${GTK_CONFIG+set} != xset ; then | |
23429 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23430 | fi | |
23431 | fi | |
23432 | ||
23433 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23434 | set dummy gtk-config; ac_word=$2 | |
23435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23437 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23439 | else | |
23440 | case $GTK_CONFIG in | |
23441 | [\\/]* | ?:[\\/]*) | |
23442 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23443 | ;; | |
23444 | *) | |
23445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23446 | for as_dir in $PATH | |
23447 | do | |
23448 | IFS=$as_save_IFS | |
23449 | test -z "$as_dir" && as_dir=. | |
23450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23452 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23454 | break 2 | |
23455 | fi | |
23456 | done | |
23457 | done | |
23458 | ||
23459 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23460 | ;; | |
23461 | esac | |
23462 | fi | |
23463 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23464 | ||
23465 | if test -n "$GTK_CONFIG"; then | |
23466 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23467 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23468 | else | |
23469 | echo "$as_me:$LINENO: result: no" >&5 | |
23470 | echo "${ECHO_T}no" >&6 | |
23471 | fi | |
23472 | ||
23473 | min_gtk_version=1.2.3 | |
23474 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23475 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23476 | no_gtk="" | |
23477 | if test "$GTK_CONFIG" = "no" ; then | |
23478 | no_gtk=yes | |
23479 | else | |
23480 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23481 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23482 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23483 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23484 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23485 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23486 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23487 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23488 | if test "x$enable_gtktest" = "xyes" ; then | |
23489 | ac_save_CFLAGS="$CFLAGS" | |
23490 | ac_save_LIBS="$LIBS" | |
23491 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23492 | LIBS="$GTK_LIBS $LIBS" | |
23493 | rm -f conf.gtktest | |
23494 | if test "$cross_compiling" = yes; then | |
23495 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23496 | else | |
23497 | cat >conftest.$ac_ext <<_ACEOF | |
23498 | /* confdefs.h. */ | |
23499 | _ACEOF | |
23500 | cat confdefs.h >>conftest.$ac_ext | |
23501 | cat >>conftest.$ac_ext <<_ACEOF | |
23502 | /* end confdefs.h. */ | |
23503 | ||
23504 | #include <gtk/gtk.h> | |
23505 | #include <stdio.h> | |
23506 | #include <stdlib.h> | |
23507 | ||
23508 | int | |
23509 | main () | |
23510 | { | |
23511 | int major, minor, micro; | |
23512 | char *tmp_version; | |
23513 | ||
23514 | system ("touch conf.gtktest"); | |
23515 | ||
23516 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23517 | tmp_version = g_strdup("$min_gtk_version"); | |
23518 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23519 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23520 | exit(1); | |
23521 | } | |
23522 | ||
23523 | if ((gtk_major_version != $gtk_config_major_version) || | |
23524 | (gtk_minor_version != $gtk_config_minor_version) || | |
23525 | (gtk_micro_version != $gtk_config_micro_version)) | |
23526 | { | |
23527 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23528 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23529 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23530 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23531 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23532 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23533 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23534 | printf("*** required on your system.\n"); | |
23535 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23536 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23537 | printf("*** before re-running configure\n"); | |
23538 | } | |
23539 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23540 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23541 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23542 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23543 | { | |
23544 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23545 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23546 | printf("*** library (version %d.%d.%d)\n", | |
23547 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23548 | } | |
23549 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23550 | else | |
23551 | { | |
23552 | if ((gtk_major_version > major) || | |
23553 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23554 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23555 | { | |
23556 | return 0; | |
23557 | } | |
23558 | else | |
23559 | { | |
23560 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23561 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23562 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23563 | major, minor, micro); | |
23564 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23565 | printf("***\n"); | |
23566 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23567 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23568 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23569 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23570 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23571 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23572 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23573 | } | |
23574 | } | |
23575 | return 1; | |
23576 | } | |
23577 | ||
23578 | _ACEOF | |
23579 | rm -f conftest$ac_exeext | |
23580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23581 | (eval $ac_link) 2>&5 | |
23582 | ac_status=$? | |
23583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23586 | (eval $ac_try) 2>&5 | |
23587 | ac_status=$? | |
23588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23589 | (exit $ac_status); }; }; then | |
23590 | : | |
23591 | else | |
23592 | echo "$as_me: program exited with status $ac_status" >&5 | |
23593 | echo "$as_me: failed program was:" >&5 | |
23594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23595 | ||
23596 | ( exit $ac_status ) | |
23597 | no_gtk=yes | |
23598 | fi | |
ac1cb8d3 | 23599 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23600 | fi |
23601 | CFLAGS="$ac_save_CFLAGS" | |
23602 | LIBS="$ac_save_LIBS" | |
23603 | fi | |
23604 | fi | |
23605 | if test "x$no_gtk" = x ; then | |
23606 | echo "$as_me:$LINENO: result: yes" >&5 | |
23607 | echo "${ECHO_T}yes" >&6 | |
23608 | wx_cv_lib_gtk=1.2.3 | |
23609 | else | |
23610 | echo "$as_me:$LINENO: result: no" >&5 | |
23611 | echo "${ECHO_T}no" >&6 | |
23612 | if test "$GTK_CONFIG" = "no" ; then | |
23613 | echo "*** The gtk-config script installed by GTK could not be found" | |
23614 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23615 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23616 | echo "*** full path to gtk-config." | |
23617 | else | |
23618 | if test -f conf.gtktest ; then | |
23619 | : | |
23620 | else | |
23621 | echo "*** Could not run GTK test program, checking why..." | |
23622 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23623 | LIBS="$LIBS $GTK_LIBS" | |
23624 | cat >conftest.$ac_ext <<_ACEOF | |
23625 | /* confdefs.h. */ | |
23626 | _ACEOF | |
23627 | cat confdefs.h >>conftest.$ac_ext | |
23628 | cat >>conftest.$ac_ext <<_ACEOF | |
23629 | /* end confdefs.h. */ | |
23630 | ||
23631 | #include <gtk/gtk.h> | |
23632 | #include <stdio.h> | |
23633 | ||
23634 | int | |
23635 | main () | |
23636 | { | |
23637 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23638 | ; | |
23639 | return 0; | |
23640 | } | |
23641 | _ACEOF | |
23642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23644 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23645 | ac_status=$? |
ac1cb8d3 VS |
23646 | grep -v '^ *+' conftest.er1 >conftest.err |
23647 | rm -f conftest.er1 | |
23648 | cat conftest.err >&5 | |
a848cd7e SC |
23649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23650 | (exit $ac_status); } && | |
5294a27e | 23651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23653 | (eval $ac_try) 2>&5 | |
23654 | ac_status=$? | |
23655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23656 | (exit $ac_status); }; } && | |
23657 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23659 | (eval $ac_try) 2>&5 | |
23660 | ac_status=$? | |
23661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23662 | (exit $ac_status); }; }; then | |
23663 | echo "*** The test program compiled, but did not run. This usually means" | |
23664 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23665 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23666 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23667 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23668 | echo "*** is required on your system" | |
23669 | echo "***" | |
23670 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23671 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23672 | echo "***" | |
23673 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23674 | echo "*** came with the system with the command" | |
23675 | echo "***" | |
23676 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23677 | else | |
23678 | echo "$as_me: failed program was:" >&5 | |
23679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23680 | ||
23681 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23682 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23683 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23684 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23685 | fi | |
ac1cb8d3 VS |
23686 | rm -f conftest.err conftest.$ac_objext \ |
23687 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23688 | CFLAGS="$ac_save_CFLAGS" |
23689 | LIBS="$ac_save_LIBS" | |
23690 | fi | |
23691 | fi | |
23692 | GTK_CFLAGS="" | |
23693 | GTK_LIBS="" | |
23694 | : | |
23695 | fi | |
23696 | ||
23697 | ||
23698 | rm -f conf.gtktest | |
23699 | ||
23700 | fi | |
23701 | fi | |
23702 | ||
23703 | if test -z "$wx_cv_lib_gtk"; then | |
23704 | wx_cv_lib_gtk=none | |
23705 | else | |
23706 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23707 | wx_cv_libs_gtk=$GTK_LIBS | |
23708 | fi | |
23709 | ||
23710 | ||
23711 | fi | |
23712 | ||
23713 | ||
23714 | if test "$gtk_version_cached" = 1; then | |
23715 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23716 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23717 | fi | |
23718 | ||
23719 | case "$wx_cv_lib_gtk" in | |
23720 | 2.0) WXGTK20=1 | |
23721 | TOOLKIT_VERSION=2 | |
23722 | ;; | |
23723 | 1.2.7) WXGTK127=1 | |
23724 | WXGTK12=1 | |
23725 | ;; | |
23726 | 1.2.3) WXGTK12=1 | |
23727 | ;; | |
23728 | *) { { echo "$as_me:$LINENO: error: | |
23729 | Please check that gtk-config is in path, the directory | |
23730 | where GTK+ libraries are installed (returned by | |
23731 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23732 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23733 | " >&5 | |
23734 | echo "$as_me: error: | |
23735 | Please check that gtk-config is in path, the directory | |
23736 | where GTK+ libraries are installed (returned by | |
23737 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23738 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23739 | " >&2;} | |
23740 | { (exit 1); exit 1; }; } | |
23741 | ;; | |
23742 | esac | |
23743 | ||
23744 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
23745 | save_CFLAGS="$CFLAGS" |
23746 | save_LIBS="$LIBS" | |
23747 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23748 | LIBS="$LIBS $GTK_LIBS" | |
23749 | ||
9755e73b | 23750 | |
304205f1 VS |
23751 | for ac_func in pango_font_family_is_monospace |
23752 | do | |
23753 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23754 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23755 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23756 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23758 | else | |
23759 | cat >conftest.$ac_ext <<_ACEOF | |
23760 | /* confdefs.h. */ | |
23761 | _ACEOF | |
23762 | cat confdefs.h >>conftest.$ac_ext | |
23763 | cat >>conftest.$ac_ext <<_ACEOF | |
23764 | /* end confdefs.h. */ | |
23765 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23766 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23767 | #define $ac_func innocuous_$ac_func | |
23768 | ||
23769 | /* System header to define __stub macros and hopefully few prototypes, | |
23770 | which can conflict with char $ac_func (); below. | |
23771 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23772 | <limits.h> exists even on freestanding compilers. */ | |
23773 | ||
23774 | #ifdef __STDC__ | |
23775 | # include <limits.h> | |
23776 | #else | |
23777 | # include <assert.h> | |
23778 | #endif | |
23779 | ||
23780 | #undef $ac_func | |
23781 | ||
23782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23783 | #ifdef __cplusplus | |
23784 | extern "C" | |
23785 | { | |
23786 | #endif | |
23787 | /* We use char because int might match the return type of a gcc2 | |
23788 | builtin and then its argument prototype would still apply. */ | |
23789 | char $ac_func (); | |
23790 | /* The GNU C library defines this for functions which it implements | |
23791 | to always fail with ENOSYS. Some functions are actually named | |
23792 | something starting with __ and the normal name is an alias. */ | |
23793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23794 | choke me | |
23795 | #else | |
23796 | char (*f) () = $ac_func; | |
23797 | #endif | |
23798 | #ifdef __cplusplus | |
23799 | } | |
23800 | #endif | |
23801 | ||
23802 | int | |
23803 | main () | |
23804 | { | |
23805 | return f != $ac_func; | |
23806 | ; | |
23807 | return 0; | |
23808 | } | |
23809 | _ACEOF | |
23810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23812 | (eval $ac_link) 2>conftest.er1 | |
23813 | ac_status=$? | |
23814 | grep -v '^ *+' conftest.er1 >conftest.err | |
23815 | rm -f conftest.er1 | |
23816 | cat conftest.err >&5 | |
23817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23818 | (exit $ac_status); } && | |
5294a27e | 23819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
23820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23821 | (eval $ac_try) 2>&5 | |
23822 | ac_status=$? | |
23823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23824 | (exit $ac_status); }; } && | |
23825 | { ac_try='test -s conftest$ac_exeext' | |
23826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23827 | (eval $ac_try) 2>&5 | |
23828 | ac_status=$? | |
23829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23830 | (exit $ac_status); }; }; then | |
23831 | eval "$as_ac_var=yes" | |
23832 | else | |
23833 | echo "$as_me: failed program was:" >&5 | |
23834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23835 | ||
23836 | eval "$as_ac_var=no" | |
23837 | fi | |
23838 | rm -f conftest.err conftest.$ac_objext \ | |
23839 | conftest$ac_exeext conftest.$ac_ext | |
23840 | fi | |
23841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23842 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23843 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23844 | cat >>confdefs.h <<_ACEOF | |
23845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23846 | _ACEOF | |
23847 | ||
23848 | fi | |
23849 | done | |
23850 | ||
9755e73b VS |
23851 | |
23852 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
23853 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
23854 | cat >conftest.$ac_ext <<_ACEOF | |
23855 | /* confdefs.h. */ | |
23856 | _ACEOF | |
23857 | cat confdefs.h >>conftest.$ac_ext | |
23858 | cat >>conftest.$ac_ext <<_ACEOF | |
23859 | /* end confdefs.h. */ | |
23860 | ||
23861 | #include <gtk/gtk.h> | |
23862 | ||
23863 | int | |
23864 | main () | |
23865 | { | |
23866 | ||
23867 | #if !GTK_CHECK_VERSION(2,4,0) | |
23868 | #error "Not GTK+ 2.4" | |
23869 | #endif | |
23870 | ||
23871 | ; | |
23872 | return 0; | |
23873 | } | |
23874 | _ACEOF | |
23875 | rm -f conftest.$ac_objext | |
23876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23877 | (eval $ac_compile) 2>conftest.er1 | |
23878 | ac_status=$? | |
23879 | grep -v '^ *+' conftest.er1 >conftest.err | |
23880 | rm -f conftest.er1 | |
23881 | cat conftest.err >&5 | |
23882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23883 | (exit $ac_status); } && | |
5294a27e | 23884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
23885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23886 | (eval $ac_try) 2>&5 | |
23887 | ac_status=$? | |
23888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23889 | (exit $ac_status); }; } && | |
23890 | { ac_try='test -s conftest.$ac_objext' | |
23891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23892 | (eval $ac_try) 2>&5 | |
23893 | ac_status=$? | |
23894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23895 | (exit $ac_status); }; }; then | |
23896 | ||
23897 | cat >>confdefs.h <<\_ACEOF | |
23898 | #define __WXGTK24__ 1 | |
23899 | _ACEOF | |
23900 | ||
23901 | echo "$as_me:$LINENO: result: yes" >&5 | |
23902 | echo "${ECHO_T}yes" >&6 | |
23903 | ||
23904 | else | |
23905 | echo "$as_me: failed program was:" >&5 | |
23906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23907 | ||
23908 | ||
23909 | echo "$as_me:$LINENO: result: no" >&5 | |
23910 | echo "${ECHO_T}no" >&6 | |
23911 | ||
23912 | fi | |
23913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23914 | ||
304205f1 VS |
23915 | CFLAGS="$save_CFLAGS" |
23916 | LIBS="$save_LIBS" | |
a848cd7e SC |
23917 | else |
23918 | if test "$wxUSE_UNICODE" = "yes"; then | |
23919 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23920 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23921 | wxUSE_UNICODE=no | |
23922 | fi | |
23923 | fi | |
23924 | ||
23925 | if test "$USE_DARWIN" != 1; then | |
23926 | ||
23927 | for ac_func in poll | |
23928 | do | |
23929 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23930 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23932 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23934 | else | |
23935 | cat >conftest.$ac_ext <<_ACEOF | |
23936 | /* confdefs.h. */ | |
23937 | _ACEOF | |
23938 | cat confdefs.h >>conftest.$ac_ext | |
23939 | cat >>conftest.$ac_ext <<_ACEOF | |
23940 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23941 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23942 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23943 | #define $ac_func innocuous_$ac_func | |
23944 | ||
a848cd7e SC |
23945 | /* System header to define __stub macros and hopefully few prototypes, |
23946 | which can conflict with char $ac_func (); below. | |
23947 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23948 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23949 | |
a848cd7e SC |
23950 | #ifdef __STDC__ |
23951 | # include <limits.h> | |
23952 | #else | |
23953 | # include <assert.h> | |
23954 | #endif | |
ac1cb8d3 VS |
23955 | |
23956 | #undef $ac_func | |
23957 | ||
a848cd7e SC |
23958 | /* Override any gcc2 internal prototype to avoid an error. */ |
23959 | #ifdef __cplusplus | |
23960 | extern "C" | |
23961 | { | |
23962 | #endif | |
23963 | /* We use char because int might match the return type of a gcc2 | |
23964 | builtin and then its argument prototype would still apply. */ | |
23965 | char $ac_func (); | |
23966 | /* The GNU C library defines this for functions which it implements | |
23967 | to always fail with ENOSYS. Some functions are actually named | |
23968 | something starting with __ and the normal name is an alias. */ | |
23969 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23970 | choke me | |
23971 | #else | |
23972 | char (*f) () = $ac_func; | |
23973 | #endif | |
23974 | #ifdef __cplusplus | |
23975 | } | |
23976 | #endif | |
23977 | ||
23978 | int | |
23979 | main () | |
23980 | { | |
23981 | return f != $ac_func; | |
23982 | ; | |
23983 | return 0; | |
23984 | } | |
23985 | _ACEOF | |
23986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23988 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23989 | ac_status=$? |
ac1cb8d3 VS |
23990 | grep -v '^ *+' conftest.er1 >conftest.err |
23991 | rm -f conftest.er1 | |
23992 | cat conftest.err >&5 | |
a848cd7e SC |
23993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23994 | (exit $ac_status); } && | |
5294a27e | 23995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23997 | (eval $ac_try) 2>&5 | |
23998 | ac_status=$? | |
23999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24000 | (exit $ac_status); }; } && | |
24001 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24003 | (eval $ac_try) 2>&5 | |
24004 | ac_status=$? | |
24005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24006 | (exit $ac_status); }; }; then | |
24007 | eval "$as_ac_var=yes" | |
24008 | else | |
24009 | echo "$as_me: failed program was:" >&5 | |
24010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24011 | ||
24012 | eval "$as_ac_var=no" | |
24013 | fi | |
ac1cb8d3 VS |
24014 | rm -f conftest.err conftest.$ac_objext \ |
24015 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24016 | fi |
24017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24018 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24019 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24020 | cat >>confdefs.h <<_ACEOF | |
24021 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24022 | _ACEOF | |
24023 | ||
24024 | fi | |
24025 | done | |
24026 | ||
24027 | fi | |
24028 | ||
24029 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
24030 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
24031 | ||
24032 | AFMINSTALL=afminstall | |
24033 | TOOLKIT=GTK | |
24034 | GUIDIST=GTK_DIST | |
24035 | ||
24036 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
24037 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
24038 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
24039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24040 | else | |
24041 | ac_check_lib_save_LIBS=$LIBS | |
24042 | LIBS="-lgdk $LIBS" | |
24043 | cat >conftest.$ac_ext <<_ACEOF | |
24044 | /* confdefs.h. */ | |
24045 | _ACEOF | |
24046 | cat confdefs.h >>conftest.$ac_ext | |
24047 | cat >>conftest.$ac_ext <<_ACEOF | |
24048 | /* end confdefs.h. */ | |
24049 | ||
24050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24051 | #ifdef __cplusplus | |
24052 | extern "C" | |
24053 | #endif | |
24054 | /* We use char because int might match the return type of a gcc2 | |
24055 | builtin and then its argument prototype would still apply. */ | |
24056 | char gdk_im_open (); | |
24057 | int | |
24058 | main () | |
24059 | { | |
24060 | gdk_im_open (); | |
24061 | ; | |
24062 | return 0; | |
24063 | } | |
24064 | _ACEOF | |
24065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24067 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24068 | ac_status=$? |
ac1cb8d3 VS |
24069 | grep -v '^ *+' conftest.er1 >conftest.err |
24070 | rm -f conftest.er1 | |
24071 | cat conftest.err >&5 | |
a848cd7e SC |
24072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24073 | (exit $ac_status); } && | |
5294a27e | 24074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24076 | (eval $ac_try) 2>&5 | |
24077 | ac_status=$? | |
24078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24079 | (exit $ac_status); }; } && | |
24080 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24082 | (eval $ac_try) 2>&5 | |
24083 | ac_status=$? | |
24084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24085 | (exit $ac_status); }; }; then | |
24086 | ac_cv_lib_gdk_gdk_im_open=yes | |
24087 | else | |
24088 | echo "$as_me: failed program was:" >&5 | |
24089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24090 | ||
24091 | ac_cv_lib_gdk_gdk_im_open=no | |
24092 | fi | |
ac1cb8d3 VS |
24093 | rm -f conftest.err conftest.$ac_objext \ |
24094 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24095 | LIBS=$ac_check_lib_save_LIBS |
24096 | fi | |
24097 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
24098 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
24099 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
24100 | cat >>confdefs.h <<\_ACEOF | |
24101 | #define HAVE_XIM 1 | |
24102 | _ACEOF | |
24103 | ||
24104 | fi | |
24105 | ||
24106 | ||
24107 | ||
24108 | if test "$wxUSE_GPE" = "yes"; then | |
24109 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
24110 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
24111 | ||
24112 | ac_find_libraries= | |
24113 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24114 | do | |
24115 | for ac_extension in a so sl dylib; do | |
24116 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
24117 | ac_find_libraries=$ac_dir | |
24118 | break 2 | |
24119 | fi | |
24120 | done | |
24121 | done | |
24122 | ||
24123 | if test "$ac_find_libraries" != "" ; then | |
24124 | ||
24125 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24126 | result=$? | |
24127 | if test $result = 0; then | |
24128 | ac_path_to_link="" | |
24129 | else | |
24130 | ac_path_to_link=" -L$ac_find_libraries" | |
24131 | fi | |
24132 | ||
24133 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
24134 | WXGPE=1 | |
24135 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24136 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24137 | else | |
24138 | echo "$as_me:$LINENO: result: not found" >&5 | |
24139 | echo "${ECHO_T}not found" >&6 | |
24140 | fi | |
24141 | ||
24142 | fi | |
24143 | fi | |
24144 | ||
24145 | if test "$wxUSE_MGL" = 1; then | |
24146 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
24147 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
24148 | if test "x$MGL_ROOT" = x ; then | |
24149 | echo "$as_me:$LINENO: result: not found" >&5 | |
24150 | echo "${ECHO_T}not found" >&6 | |
24151 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
24152 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
24153 | { (exit 1); exit 1; }; } | |
24154 | else | |
24155 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
24156 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
24157 | fi | |
24158 | ||
24159 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
24160 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
24161 | case "${host}" in | |
24162 | *-*-linux* ) | |
24163 | if test "x$wxUSE_SHARED" = xyes ; then | |
24164 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
24165 | else | |
24166 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
24167 | fi | |
24168 | ;; | |
24169 | *-pc-msdosdjgpp ) | |
24170 | mgl_os_candidates="dos32/dj2" | |
24171 | ;; | |
24172 | *) | |
24173 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
24174 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
24175 | { (exit 1); exit 1; }; } | |
24176 | esac | |
24177 | ||
24178 | mgl_lib_type="" | |
24179 | mgl_os="" | |
24180 | ||
24181 | for mgl_os_i in $mgl_os_candidates ; do | |
24182 | if test "x$mgl_os" = x ; then | |
24183 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
24184 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
24185 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
24186 | mgl_lib_type=debug | |
24187 | mgl_os=$mgl_os_i | |
24188 | fi | |
24189 | fi | |
24190 | if test "x$mgl_lib_type" = x ; then | |
24191 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
24192 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
24193 | mgl_lib_type=release | |
24194 | mgl_os=$mgl_os_i | |
24195 | fi | |
24196 | fi | |
24197 | fi | |
24198 | done | |
24199 | ||
24200 | if test "x$mgl_os" = x ; then | |
24201 | echo "$as_me:$LINENO: result: not found" >&5 | |
24202 | echo "${ECHO_T}not found" >&6 | |
24203 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
24204 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
24205 | { (exit 1); exit 1; }; } | |
24206 | fi | |
24207 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
24208 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
24209 | ||
24210 | wxUSE_UNIVERSAL="yes" | |
24211 | ||
24212 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
24213 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
24214 | ||
24215 | AFMINSTALL=afminstall | |
24216 | TOOLKIT=MGL | |
24217 | GUIDIST=MGL_DIST | |
24218 | fi | |
24219 | ||
24220 | if test "$wxUSE_MICROWIN" = 1; then | |
24221 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
24222 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
24223 | if test "x$MICROWINDOWS" = x ; then | |
24224 | echo "$as_me:$LINENO: result: not found" >&5 | |
24225 | echo "${ECHO_T}not found" >&6 | |
24226 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
24227 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
24228 | { (exit 1); exit 1; }; } | |
24229 | else | |
24230 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
24231 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
24232 | fi | |
24233 | ||
24234 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
24235 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
24236 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
24237 | else | |
24238 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
24239 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
24240 | { (exit 1); exit 1; }; } | |
24241 | fi | |
24242 | ||
24243 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
24244 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
24245 | ||
24246 | wxUSE_UNIVERSAL="yes" | |
24247 | ||
24248 | AFMINSTALL=afminstall | |
24249 | TOOLKIT=MICROWIN | |
24250 | GUIDIST=MICROWIN_DIST | |
24251 | ||
24252 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24253 | fi | |
24254 | ||
74b84332 | 24255 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
5294a27e VZ |
24256 | |
24257 | if test "x$ac_path_x_has_been_run" != xyes; then | |
24258 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
24259 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
24260 | ||
5294a27e | 24261 | ac_path_x_has_been_run=yes |
a848cd7e SC |
24262 | |
24263 | # Check whether --with-x or --without-x was given. | |
24264 | if test "${with_x+set}" = set; then | |
24265 | withval="$with_x" | |
24266 | ||
24267 | fi; | |
24268 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24269 | if test "x$with_x" = xno; then | |
24270 | # The user explicitly disabled X. | |
24271 | have_x=disabled | |
24272 | else | |
24273 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24274 | # Both variables are already set. | |
24275 | have_x=yes | |
24276 | else | |
24277 | if test "${ac_cv_have_x+set}" = set; then | |
24278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24279 | else | |
24280 | # One or both of the vars are not set, and there is no cached value. | |
24281 | ac_x_includes=no ac_x_libraries=no | |
24282 | rm -fr conftest.dir | |
24283 | if mkdir conftest.dir; then | |
24284 | cd conftest.dir | |
24285 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24286 | cat >Imakefile <<'_ACEOF' | |
24287 | acfindx: | |
24288 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24289 | _ACEOF | |
24290 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24291 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24292 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24293 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24294 | for ac_extension in a so sl; do | |
24295 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24296 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24297 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24298 | fi |
24299 | done | |
24300 | # Screen out bogus values from the imake configuration. They are | |
24301 | # bogus both because they are the default anyway, and because | |
24302 | # using them would break gcc on systems where it needs fixed includes. | |
24303 | case $ac_im_incroot in | |
24304 | /usr/include) ;; | |
24305 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24306 | esac | |
24307 | case $ac_im_usrlibdir in | |
24308 | /usr/lib | /lib) ;; | |
24309 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24310 | esac | |
24311 | fi | |
24312 | cd .. | |
24313 | rm -fr conftest.dir | |
24314 | fi | |
24315 | ||
24316 | # Standard set of common directories for X headers. | |
24317 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24318 | ac_x_header_dirs=' | |
24319 | /usr/X11/include | |
24320 | /usr/X11R6/include | |
24321 | /usr/X11R5/include | |
24322 | /usr/X11R4/include | |
24323 | ||
24324 | /usr/include/X11 | |
24325 | /usr/include/X11R6 | |
24326 | /usr/include/X11R5 | |
24327 | /usr/include/X11R4 | |
24328 | ||
24329 | /usr/local/X11/include | |
24330 | /usr/local/X11R6/include | |
24331 | /usr/local/X11R5/include | |
24332 | /usr/local/X11R4/include | |
24333 | ||
24334 | /usr/local/include/X11 | |
24335 | /usr/local/include/X11R6 | |
24336 | /usr/local/include/X11R5 | |
24337 | /usr/local/include/X11R4 | |
24338 | ||
24339 | /usr/X386/include | |
24340 | /usr/x386/include | |
24341 | /usr/XFree86/include/X11 | |
24342 | ||
24343 | /usr/include | |
24344 | /usr/local/include | |
24345 | /usr/unsupported/include | |
24346 | /usr/athena/include | |
24347 | /usr/local/x11r5/include | |
24348 | /usr/lpp/Xamples/include | |
24349 | ||
24350 | /usr/openwin/include | |
24351 | /usr/openwin/share/include' | |
24352 | ||
24353 | if test "$ac_x_includes" = no; then | |
5294a27e | 24354 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
24355 | # First, try using that file with no special directory specified. |
24356 | cat >conftest.$ac_ext <<_ACEOF | |
24357 | /* confdefs.h. */ | |
24358 | _ACEOF | |
24359 | cat confdefs.h >>conftest.$ac_ext | |
24360 | cat >>conftest.$ac_ext <<_ACEOF | |
24361 | /* end confdefs.h. */ | |
24362 | #include <X11/Intrinsic.h> | |
24363 | _ACEOF | |
24364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24366 | ac_status=$? | |
24367 | grep -v '^ *+' conftest.er1 >conftest.err | |
24368 | rm -f conftest.er1 | |
24369 | cat conftest.err >&5 | |
24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24371 | (exit $ac_status); } >/dev/null; then | |
24372 | if test -s conftest.err; then | |
24373 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24375 | else |
24376 | ac_cpp_err= | |
24377 | fi | |
24378 | else | |
24379 | ac_cpp_err=yes | |
24380 | fi | |
24381 | if test -z "$ac_cpp_err"; then | |
24382 | # We can compile using X headers with no special include directory. | |
24383 | ac_x_includes= | |
24384 | else | |
24385 | echo "$as_me: failed program was:" >&5 | |
24386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24387 | ||
24388 | for ac_dir in $ac_x_header_dirs; do | |
24389 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24390 | ac_x_includes=$ac_dir | |
24391 | break | |
24392 | fi | |
24393 | done | |
24394 | fi | |
24395 | rm -f conftest.err conftest.$ac_ext | |
24396 | fi # $ac_x_includes = no | |
24397 | ||
24398 | if test "$ac_x_libraries" = no; then | |
24399 | # Check for the libraries. | |
24400 | # See if we find them without any special options. | |
24401 | # Don't add to $LIBS permanently. | |
24402 | ac_save_LIBS=$LIBS | |
24403 | LIBS="-lXt $LIBS" | |
24404 | cat >conftest.$ac_ext <<_ACEOF | |
24405 | /* confdefs.h. */ | |
24406 | _ACEOF | |
24407 | cat confdefs.h >>conftest.$ac_ext | |
24408 | cat >>conftest.$ac_ext <<_ACEOF | |
24409 | /* end confdefs.h. */ | |
24410 | #include <X11/Intrinsic.h> | |
24411 | int | |
24412 | main () | |
24413 | { | |
24414 | XtMalloc (0) | |
24415 | ; | |
24416 | return 0; | |
24417 | } | |
24418 | _ACEOF | |
24419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24421 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24422 | ac_status=$? |
ac1cb8d3 VS |
24423 | grep -v '^ *+' conftest.er1 >conftest.err |
24424 | rm -f conftest.er1 | |
24425 | cat conftest.err >&5 | |
a848cd7e SC |
24426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24427 | (exit $ac_status); } && | |
5294a27e | 24428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24430 | (eval $ac_try) 2>&5 | |
24431 | ac_status=$? | |
24432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24433 | (exit $ac_status); }; } && | |
24434 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24436 | (eval $ac_try) 2>&5 | |
24437 | ac_status=$? | |
24438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24439 | (exit $ac_status); }; }; then | |
24440 | LIBS=$ac_save_LIBS | |
24441 | # We can link X programs with no special library path. | |
24442 | ac_x_libraries= | |
24443 | else | |
24444 | echo "$as_me: failed program was:" >&5 | |
24445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24446 | ||
24447 | LIBS=$ac_save_LIBS | |
24448 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24449 | do | |
24450 | # Don't even attempt the hair of trying to link an X program! | |
24451 | for ac_extension in a so sl; do | |
24452 | if test -r $ac_dir/libXt.$ac_extension; then | |
24453 | ac_x_libraries=$ac_dir | |
24454 | break 2 | |
24455 | fi | |
24456 | done | |
24457 | done | |
24458 | fi | |
ac1cb8d3 VS |
24459 | rm -f conftest.err conftest.$ac_objext \ |
24460 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24461 | fi # $ac_x_libraries = no |
24462 | ||
24463 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24464 | # Didn't find X anywhere. Cache the known absence of X. | |
24465 | ac_cv_have_x="have_x=no" | |
24466 | else | |
24467 | # Record where we found X for the cache. | |
24468 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24469 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24470 | fi |
24471 | fi | |
24472 | ||
24473 | fi | |
24474 | eval "$ac_cv_have_x" | |
24475 | fi # $with_x != no | |
24476 | ||
24477 | if test "$have_x" != yes; then | |
24478 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24479 | echo "${ECHO_T}$have_x" >&6 | |
24480 | no_x=yes | |
24481 | else | |
24482 | # If each of the values was on the command line, it overrides each guess. | |
24483 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24484 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24485 | # Update the cache value to reflect the command line values. | |
24486 | ac_cv_have_x="have_x=yes \ | |
24487 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
5294a27e VZ |
24488 | # It might be that x_includes is empty (headers are found in the |
24489 | # standard search path. Then output the corresponding message | |
24490 | ac_out_x_includes=$x_includes | |
24491 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
24492 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
24493 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
24494 | fi |
24495 | ||
5294a27e | 24496 | fi |
a848cd7e SC |
24497 | if test "$no_x" = yes; then |
24498 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24499 | ||
24500 | cat >>confdefs.h <<\_ACEOF | |
24501 | #define X_DISPLAY_MISSING 1 | |
24502 | _ACEOF | |
24503 | ||
24504 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24505 | else | |
24506 | if test -n "$x_includes"; then | |
24507 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24508 | fi | |
24509 | ||
24510 | # It would also be nice to do this for all -L options, not just this one. | |
24511 | if test -n "$x_libraries"; then | |
24512 | X_LIBS="$X_LIBS -L$x_libraries" | |
24513 | # For Solaris; some versions of Sun CC require a space after -R and | |
24514 | # others require no space. Words are not sufficient . . . . | |
24515 | case `(uname -sr) 2>/dev/null` in | |
24516 | "SunOS 5"*) | |
24517 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24518 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24519 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24520 | cat >conftest.$ac_ext <<_ACEOF | |
24521 | /* confdefs.h. */ | |
24522 | _ACEOF | |
24523 | cat confdefs.h >>conftest.$ac_ext | |
24524 | cat >>conftest.$ac_ext <<_ACEOF | |
24525 | /* end confdefs.h. */ | |
24526 | ||
24527 | int | |
24528 | main () | |
24529 | { | |
24530 | ||
24531 | ; | |
24532 | return 0; | |
24533 | } | |
24534 | _ACEOF | |
24535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24538 | ac_status=$? |
ac1cb8d3 VS |
24539 | grep -v '^ *+' conftest.er1 >conftest.err |
24540 | rm -f conftest.er1 | |
24541 | cat conftest.err >&5 | |
a848cd7e SC |
24542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24543 | (exit $ac_status); } && | |
5294a27e | 24544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24546 | (eval $ac_try) 2>&5 | |
24547 | ac_status=$? | |
24548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24549 | (exit $ac_status); }; } && | |
24550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24552 | (eval $ac_try) 2>&5 | |
24553 | ac_status=$? | |
24554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24555 | (exit $ac_status); }; }; then | |
24556 | ac_R_nospace=yes | |
24557 | else | |
24558 | echo "$as_me: failed program was:" >&5 | |
24559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24560 | ||
24561 | ac_R_nospace=no | |
24562 | fi | |
ac1cb8d3 VS |
24563 | rm -f conftest.err conftest.$ac_objext \ |
24564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24565 | if test $ac_R_nospace = yes; then |
24566 | echo "$as_me:$LINENO: result: no" >&5 | |
24567 | echo "${ECHO_T}no" >&6 | |
24568 | X_LIBS="$X_LIBS -R$x_libraries" | |
24569 | else | |
24570 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24571 | cat >conftest.$ac_ext <<_ACEOF | |
24572 | /* confdefs.h. */ | |
24573 | _ACEOF | |
24574 | cat confdefs.h >>conftest.$ac_ext | |
24575 | cat >>conftest.$ac_ext <<_ACEOF | |
24576 | /* end confdefs.h. */ | |
24577 | ||
24578 | int | |
24579 | main () | |
24580 | { | |
24581 | ||
24582 | ; | |
24583 | return 0; | |
24584 | } | |
24585 | _ACEOF | |
24586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24588 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24589 | ac_status=$? |
ac1cb8d3 VS |
24590 | grep -v '^ *+' conftest.er1 >conftest.err |
24591 | rm -f conftest.er1 | |
24592 | cat conftest.err >&5 | |
a848cd7e SC |
24593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24594 | (exit $ac_status); } && | |
5294a27e | 24595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24597 | (eval $ac_try) 2>&5 | |
24598 | ac_status=$? | |
24599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24600 | (exit $ac_status); }; } && | |
24601 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24603 | (eval $ac_try) 2>&5 | |
24604 | ac_status=$? | |
24605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24606 | (exit $ac_status); }; }; then | |
24607 | ac_R_space=yes | |
24608 | else | |
24609 | echo "$as_me: failed program was:" >&5 | |
24610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24611 | ||
24612 | ac_R_space=no | |
24613 | fi | |
ac1cb8d3 VS |
24614 | rm -f conftest.err conftest.$ac_objext \ |
24615 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24616 | if test $ac_R_space = yes; then |
24617 | echo "$as_me:$LINENO: result: yes" >&5 | |
24618 | echo "${ECHO_T}yes" >&6 | |
24619 | X_LIBS="$X_LIBS -R $x_libraries" | |
24620 | else | |
24621 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24622 | echo "${ECHO_T}neither works" >&6 | |
24623 | fi | |
24624 | fi | |
24625 | LIBS=$ac_xsave_LIBS | |
24626 | esac | |
24627 | fi | |
24628 | ||
24629 | # Check for system-dependent libraries X programs must link with. | |
24630 | # Do this before checking for the system-independent R6 libraries | |
24631 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24632 | ||
24633 | if test "$ISC" = yes; then | |
24634 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24635 | else | |
24636 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24637 | # libraries were built with DECnet support. And Karl Berry says | |
24638 | # the Alpha needs dnet_stub (dnet does not exist). | |
24639 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24640 | cat >conftest.$ac_ext <<_ACEOF | |
24641 | /* confdefs.h. */ | |
24642 | _ACEOF | |
24643 | cat confdefs.h >>conftest.$ac_ext | |
24644 | cat >>conftest.$ac_ext <<_ACEOF | |
24645 | /* end confdefs.h. */ | |
24646 | ||
24647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24648 | #ifdef __cplusplus | |
24649 | extern "C" | |
24650 | #endif | |
24651 | /* We use char because int might match the return type of a gcc2 | |
24652 | builtin and then its argument prototype would still apply. */ | |
24653 | char XOpenDisplay (); | |
24654 | int | |
24655 | main () | |
24656 | { | |
24657 | XOpenDisplay (); | |
24658 | ; | |
24659 | return 0; | |
24660 | } | |
24661 | _ACEOF | |
24662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24664 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24665 | ac_status=$? |
ac1cb8d3 VS |
24666 | grep -v '^ *+' conftest.er1 >conftest.err |
24667 | rm -f conftest.er1 | |
24668 | cat conftest.err >&5 | |
a848cd7e SC |
24669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24670 | (exit $ac_status); } && | |
5294a27e | 24671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24673 | (eval $ac_try) 2>&5 | |
24674 | ac_status=$? | |
24675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24676 | (exit $ac_status); }; } && | |
24677 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24679 | (eval $ac_try) 2>&5 | |
24680 | ac_status=$? | |
24681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24682 | (exit $ac_status); }; }; then | |
24683 | : | |
24684 | else | |
24685 | echo "$as_me: failed program was:" >&5 | |
24686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24687 | ||
24688 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24689 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24690 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24692 | else | |
24693 | ac_check_lib_save_LIBS=$LIBS | |
24694 | LIBS="-ldnet $LIBS" | |
24695 | cat >conftest.$ac_ext <<_ACEOF | |
24696 | /* confdefs.h. */ | |
24697 | _ACEOF | |
24698 | cat confdefs.h >>conftest.$ac_ext | |
24699 | cat >>conftest.$ac_ext <<_ACEOF | |
24700 | /* end confdefs.h. */ | |
24701 | ||
24702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24703 | #ifdef __cplusplus | |
24704 | extern "C" | |
24705 | #endif | |
24706 | /* We use char because int might match the return type of a gcc2 | |
24707 | builtin and then its argument prototype would still apply. */ | |
24708 | char dnet_ntoa (); | |
24709 | int | |
24710 | main () | |
24711 | { | |
24712 | dnet_ntoa (); | |
24713 | ; | |
24714 | return 0; | |
24715 | } | |
24716 | _ACEOF | |
24717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24719 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24720 | ac_status=$? |
ac1cb8d3 VS |
24721 | grep -v '^ *+' conftest.er1 >conftest.err |
24722 | rm -f conftest.er1 | |
24723 | cat conftest.err >&5 | |
a848cd7e SC |
24724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24725 | (exit $ac_status); } && | |
5294a27e | 24726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24728 | (eval $ac_try) 2>&5 | |
24729 | ac_status=$? | |
24730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24731 | (exit $ac_status); }; } && | |
24732 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24734 | (eval $ac_try) 2>&5 | |
24735 | ac_status=$? | |
24736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24737 | (exit $ac_status); }; }; then | |
24738 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24739 | else | |
24740 | echo "$as_me: failed program was:" >&5 | |
24741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24742 | ||
24743 | ac_cv_lib_dnet_dnet_ntoa=no | |
24744 | fi | |
ac1cb8d3 VS |
24745 | rm -f conftest.err conftest.$ac_objext \ |
24746 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24747 | LIBS=$ac_check_lib_save_LIBS |
24748 | fi | |
24749 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24750 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24751 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24752 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24753 | fi | |
24754 | ||
24755 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24756 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24757 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24758 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24760 | else | |
24761 | ac_check_lib_save_LIBS=$LIBS | |
24762 | LIBS="-ldnet_stub $LIBS" | |
24763 | cat >conftest.$ac_ext <<_ACEOF | |
24764 | /* confdefs.h. */ | |
24765 | _ACEOF | |
24766 | cat confdefs.h >>conftest.$ac_ext | |
24767 | cat >>conftest.$ac_ext <<_ACEOF | |
24768 | /* end confdefs.h. */ | |
24769 | ||
24770 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24771 | #ifdef __cplusplus | |
24772 | extern "C" | |
24773 | #endif | |
24774 | /* We use char because int might match the return type of a gcc2 | |
24775 | builtin and then its argument prototype would still apply. */ | |
24776 | char dnet_ntoa (); | |
24777 | int | |
24778 | main () | |
24779 | { | |
24780 | dnet_ntoa (); | |
24781 | ; | |
24782 | return 0; | |
24783 | } | |
24784 | _ACEOF | |
24785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24787 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24788 | ac_status=$? |
ac1cb8d3 VS |
24789 | grep -v '^ *+' conftest.er1 >conftest.err |
24790 | rm -f conftest.er1 | |
24791 | cat conftest.err >&5 | |
a848cd7e SC |
24792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24793 | (exit $ac_status); } && | |
5294a27e | 24794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24796 | (eval $ac_try) 2>&5 | |
24797 | ac_status=$? | |
24798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24799 | (exit $ac_status); }; } && | |
24800 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24802 | (eval $ac_try) 2>&5 | |
24803 | ac_status=$? | |
24804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24805 | (exit $ac_status); }; }; then | |
24806 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24807 | else | |
24808 | echo "$as_me: failed program was:" >&5 | |
24809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24810 | ||
24811 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24812 | fi | |
ac1cb8d3 VS |
24813 | rm -f conftest.err conftest.$ac_objext \ |
24814 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24815 | LIBS=$ac_check_lib_save_LIBS |
24816 | fi | |
24817 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24818 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24819 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24820 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24821 | fi | |
24822 | ||
24823 | fi | |
24824 | fi | |
ac1cb8d3 VS |
24825 | rm -f conftest.err conftest.$ac_objext \ |
24826 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24827 | LIBS="$ac_xsave_LIBS" |
24828 | ||
24829 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24830 | # to get the SysV transport functions. | |
24831 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24832 | # needs -lnsl. | |
24833 | # The nsl library prevents programs from opening the X display | |
24834 | # on Irix 5.2, according to T.E. Dickey. | |
24835 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24836 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24837 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24838 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24839 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24841 | else | |
24842 | cat >conftest.$ac_ext <<_ACEOF | |
24843 | /* confdefs.h. */ | |
24844 | _ACEOF | |
24845 | cat confdefs.h >>conftest.$ac_ext | |
24846 | cat >>conftest.$ac_ext <<_ACEOF | |
24847 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24848 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24850 | #define gethostbyname innocuous_gethostbyname | |
24851 | ||
a848cd7e SC |
24852 | /* System header to define __stub macros and hopefully few prototypes, |
24853 | which can conflict with char gethostbyname (); below. | |
24854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24855 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24856 | |
a848cd7e SC |
24857 | #ifdef __STDC__ |
24858 | # include <limits.h> | |
24859 | #else | |
24860 | # include <assert.h> | |
24861 | #endif | |
ac1cb8d3 VS |
24862 | |
24863 | #undef gethostbyname | |
24864 | ||
a848cd7e SC |
24865 | /* Override any gcc2 internal prototype to avoid an error. */ |
24866 | #ifdef __cplusplus | |
24867 | extern "C" | |
24868 | { | |
24869 | #endif | |
24870 | /* We use char because int might match the return type of a gcc2 | |
24871 | builtin and then its argument prototype would still apply. */ | |
24872 | char gethostbyname (); | |
24873 | /* The GNU C library defines this for functions which it implements | |
24874 | to always fail with ENOSYS. Some functions are actually named | |
24875 | something starting with __ and the normal name is an alias. */ | |
24876 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24877 | choke me | |
24878 | #else | |
24879 | char (*f) () = gethostbyname; | |
24880 | #endif | |
24881 | #ifdef __cplusplus | |
24882 | } | |
24883 | #endif | |
24884 | ||
24885 | int | |
24886 | main () | |
24887 | { | |
24888 | return f != gethostbyname; | |
24889 | ; | |
24890 | return 0; | |
24891 | } | |
24892 | _ACEOF | |
24893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24895 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24896 | ac_status=$? |
ac1cb8d3 VS |
24897 | grep -v '^ *+' conftest.er1 >conftest.err |
24898 | rm -f conftest.er1 | |
24899 | cat conftest.err >&5 | |
a848cd7e SC |
24900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24901 | (exit $ac_status); } && | |
5294a27e | 24902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24904 | (eval $ac_try) 2>&5 | |
24905 | ac_status=$? | |
24906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24907 | (exit $ac_status); }; } && | |
24908 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24910 | (eval $ac_try) 2>&5 | |
24911 | ac_status=$? | |
24912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24913 | (exit $ac_status); }; }; then | |
24914 | ac_cv_func_gethostbyname=yes | |
24915 | else | |
24916 | echo "$as_me: failed program was:" >&5 | |
24917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24918 | ||
24919 | ac_cv_func_gethostbyname=no | |
24920 | fi | |
ac1cb8d3 VS |
24921 | rm -f conftest.err conftest.$ac_objext \ |
24922 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24923 | fi |
24924 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24925 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24926 | ||
24927 | if test $ac_cv_func_gethostbyname = no; then | |
24928 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24929 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24930 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24932 | else | |
24933 | ac_check_lib_save_LIBS=$LIBS | |
24934 | LIBS="-lnsl $LIBS" | |
24935 | cat >conftest.$ac_ext <<_ACEOF | |
24936 | /* confdefs.h. */ | |
24937 | _ACEOF | |
24938 | cat confdefs.h >>conftest.$ac_ext | |
24939 | cat >>conftest.$ac_ext <<_ACEOF | |
24940 | /* end confdefs.h. */ | |
24941 | ||
24942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24943 | #ifdef __cplusplus | |
24944 | extern "C" | |
24945 | #endif | |
24946 | /* We use char because int might match the return type of a gcc2 | |
24947 | builtin and then its argument prototype would still apply. */ | |
24948 | char gethostbyname (); | |
24949 | int | |
24950 | main () | |
24951 | { | |
24952 | gethostbyname (); | |
24953 | ; | |
24954 | return 0; | |
24955 | } | |
24956 | _ACEOF | |
24957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24959 | (eval $ac_link) 2>conftest.er1 |
24960 | ac_status=$? | |
24961 | grep -v '^ *+' conftest.er1 >conftest.err | |
24962 | rm -f conftest.er1 | |
24963 | cat conftest.err >&5 | |
24964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24965 | (exit $ac_status); } && | |
5294a27e | 24966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24968 | (eval $ac_try) 2>&5 | |
24969 | ac_status=$? | |
24970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24971 | (exit $ac_status); }; } && | |
24972 | { ac_try='test -s conftest$ac_exeext' | |
24973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24974 | (eval $ac_try) 2>&5 | |
24975 | ac_status=$? | |
24976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24977 | (exit $ac_status); }; }; then | |
24978 | ac_cv_lib_nsl_gethostbyname=yes | |
24979 | else | |
24980 | echo "$as_me: failed program was:" >&5 | |
24981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24982 | ||
24983 | ac_cv_lib_nsl_gethostbyname=no | |
24984 | fi | |
24985 | rm -f conftest.err conftest.$ac_objext \ | |
24986 | conftest$ac_exeext conftest.$ac_ext | |
24987 | LIBS=$ac_check_lib_save_LIBS | |
24988 | fi | |
24989 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24990 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24991 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24992 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24993 | fi | |
24994 | ||
24995 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24996 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24997 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24998 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25000 | else | |
25001 | ac_check_lib_save_LIBS=$LIBS | |
25002 | LIBS="-lbsd $LIBS" | |
25003 | cat >conftest.$ac_ext <<_ACEOF | |
25004 | /* confdefs.h. */ | |
25005 | _ACEOF | |
25006 | cat confdefs.h >>conftest.$ac_ext | |
25007 | cat >>conftest.$ac_ext <<_ACEOF | |
25008 | /* end confdefs.h. */ | |
25009 | ||
25010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25011 | #ifdef __cplusplus | |
25012 | extern "C" | |
25013 | #endif | |
25014 | /* We use char because int might match the return type of a gcc2 | |
25015 | builtin and then its argument prototype would still apply. */ | |
25016 | char gethostbyname (); | |
25017 | int | |
25018 | main () | |
25019 | { | |
25020 | gethostbyname (); | |
25021 | ; | |
25022 | return 0; | |
25023 | } | |
25024 | _ACEOF | |
25025 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25027 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 25028 | ac_status=$? |
ac1cb8d3 VS |
25029 | grep -v '^ *+' conftest.er1 >conftest.err |
25030 | rm -f conftest.er1 | |
25031 | cat conftest.err >&5 | |
a848cd7e SC |
25032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25033 | (exit $ac_status); } && | |
5294a27e | 25034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
25035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25036 | (eval $ac_try) 2>&5 | |
25037 | ac_status=$? | |
25038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
25039 | (exit $ac_status); }; } && |
25040 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25042 | (eval $ac_try) 2>&5 | |
25043 | ac_status=$? | |
25044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25045 | (exit $ac_status); }; }; then | |
25046 | ac_cv_lib_bsd_gethostbyname=yes | |
25047 | else | |
25048 | echo "$as_me: failed program was:" >&5 | |
25049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25050 | ||
25051 | ac_cv_lib_bsd_gethostbyname=no | |
25052 | fi | |
ac1cb8d3 VS |
25053 | rm -f conftest.err conftest.$ac_objext \ |
25054 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25055 | LIBS=$ac_check_lib_save_LIBS |
25056 | fi | |
25057 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25058 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25059 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25060 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
25061 | fi | |
25062 | ||
25063 | fi | |
25064 | fi | |
25065 | ||
25066 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
25067 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25068 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
25069 | # on later versions), says Simon Leinen: it contains gethostby* | |
25070 | # variants that don't use the name server (or something). -lsocket | |
25071 | # must be given before -lnsl if both are needed. We assume that | |
25072 | # if connect needs -lnsl, so does gethostbyname. | |
25073 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25074 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25075 | if test "${ac_cv_func_connect+set}" = set; then | |
25076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25077 | else | |
25078 | cat >conftest.$ac_ext <<_ACEOF | |
25079 | /* confdefs.h. */ | |
25080 | _ACEOF | |
25081 | cat confdefs.h >>conftest.$ac_ext | |
25082 | cat >>conftest.$ac_ext <<_ACEOF | |
25083 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25084 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25085 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25086 | #define connect innocuous_connect | |
25087 | ||
a848cd7e SC |
25088 | /* System header to define __stub macros and hopefully few prototypes, |
25089 | which can conflict with char connect (); below. | |
25090 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25091 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25092 | |
a848cd7e SC |
25093 | #ifdef __STDC__ |
25094 | # include <limits.h> | |
25095 | #else | |
25096 | # include <assert.h> | |
25097 | #endif | |
ac1cb8d3 VS |
25098 | |
25099 | #undef connect | |
25100 | ||
a848cd7e SC |
25101 | /* Override any gcc2 internal prototype to avoid an error. */ |
25102 | #ifdef __cplusplus | |
25103 | extern "C" | |
25104 | { | |
25105 | #endif | |
25106 | /* We use char because int might match the return type of a gcc2 | |
25107 | builtin and then its argument prototype would still apply. */ | |
25108 | char connect (); | |
25109 | /* The GNU C library defines this for functions which it implements | |
25110 | to always fail with ENOSYS. Some functions are actually named | |
25111 | something starting with __ and the normal name is an alias. */ | |
25112 | #if defined (__stub_connect) || defined (__stub___connect) | |
25113 | choke me | |
25114 | #else | |
25115 | char (*f) () = connect; | |
25116 | #endif | |
25117 | #ifdef __cplusplus | |
25118 | } | |
25119 | #endif | |
25120 | ||
25121 | int | |
25122 | main () | |
25123 | { | |
25124 | return f != connect; | |
25125 | ; | |
25126 | return 0; | |
25127 | } | |
25128 | _ACEOF | |
25129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25131 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25132 | ac_status=$? |
ac1cb8d3 VS |
25133 | grep -v '^ *+' conftest.er1 >conftest.err |
25134 | rm -f conftest.er1 | |
25135 | cat conftest.err >&5 | |
a848cd7e SC |
25136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25137 | (exit $ac_status); } && | |
5294a27e | 25138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25140 | (eval $ac_try) 2>&5 | |
25141 | ac_status=$? | |
25142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25143 | (exit $ac_status); }; } && | |
25144 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25146 | (eval $ac_try) 2>&5 | |
25147 | ac_status=$? | |
25148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25149 | (exit $ac_status); }; }; then | |
25150 | ac_cv_func_connect=yes | |
25151 | else | |
25152 | echo "$as_me: failed program was:" >&5 | |
25153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25154 | ||
25155 | ac_cv_func_connect=no | |
25156 | fi | |
ac1cb8d3 VS |
25157 | rm -f conftest.err conftest.$ac_objext \ |
25158 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25159 | fi |
25160 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25161 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
25162 | ||
25163 | if test $ac_cv_func_connect = no; then | |
25164 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
25165 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25166 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25168 | else | |
25169 | ac_check_lib_save_LIBS=$LIBS | |
25170 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
25171 | cat >conftest.$ac_ext <<_ACEOF | |
25172 | /* confdefs.h. */ | |
25173 | _ACEOF | |
25174 | cat confdefs.h >>conftest.$ac_ext | |
25175 | cat >>conftest.$ac_ext <<_ACEOF | |
25176 | /* end confdefs.h. */ | |
25177 | ||
25178 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25179 | #ifdef __cplusplus | |
25180 | extern "C" | |
25181 | #endif | |
25182 | /* We use char because int might match the return type of a gcc2 | |
25183 | builtin and then its argument prototype would still apply. */ | |
25184 | char connect (); | |
25185 | int | |
25186 | main () | |
25187 | { | |
25188 | connect (); | |
25189 | ; | |
25190 | return 0; | |
25191 | } | |
25192 | _ACEOF | |
25193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25195 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25196 | ac_status=$? |
ac1cb8d3 VS |
25197 | grep -v '^ *+' conftest.er1 >conftest.err |
25198 | rm -f conftest.er1 | |
25199 | cat conftest.err >&5 | |
a848cd7e SC |
25200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25201 | (exit $ac_status); } && | |
5294a27e | 25202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25204 | (eval $ac_try) 2>&5 | |
25205 | ac_status=$? | |
25206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25207 | (exit $ac_status); }; } && | |
25208 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25210 | (eval $ac_try) 2>&5 | |
25211 | ac_status=$? | |
25212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25213 | (exit $ac_status); }; }; then | |
25214 | ac_cv_lib_socket_connect=yes | |
25215 | else | |
25216 | echo "$as_me: failed program was:" >&5 | |
25217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25218 | ||
25219 | ac_cv_lib_socket_connect=no | |
25220 | fi | |
ac1cb8d3 VS |
25221 | rm -f conftest.err conftest.$ac_objext \ |
25222 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25223 | LIBS=$ac_check_lib_save_LIBS |
25224 | fi | |
25225 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25226 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25227 | if test $ac_cv_lib_socket_connect = yes; then | |
25228 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
25229 | fi | |
25230 | ||
25231 | fi | |
25232 | ||
25233 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
25234 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25235 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25236 | if test "${ac_cv_func_remove+set}" = set; then | |
25237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25238 | else | |
25239 | cat >conftest.$ac_ext <<_ACEOF | |
25240 | /* confdefs.h. */ | |
25241 | _ACEOF | |
25242 | cat confdefs.h >>conftest.$ac_ext | |
25243 | cat >>conftest.$ac_ext <<_ACEOF | |
25244 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25245 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25247 | #define remove innocuous_remove | |
25248 | ||
a848cd7e SC |
25249 | /* System header to define __stub macros and hopefully few prototypes, |
25250 | which can conflict with char remove (); below. | |
25251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25252 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25253 | |
a848cd7e SC |
25254 | #ifdef __STDC__ |
25255 | # include <limits.h> | |
25256 | #else | |
25257 | # include <assert.h> | |
25258 | #endif | |
ac1cb8d3 VS |
25259 | |
25260 | #undef remove | |
25261 | ||
a848cd7e SC |
25262 | /* Override any gcc2 internal prototype to avoid an error. */ |
25263 | #ifdef __cplusplus | |
25264 | extern "C" | |
25265 | { | |
25266 | #endif | |
25267 | /* We use char because int might match the return type of a gcc2 | |
25268 | builtin and then its argument prototype would still apply. */ | |
25269 | char remove (); | |
25270 | /* The GNU C library defines this for functions which it implements | |
25271 | to always fail with ENOSYS. Some functions are actually named | |
25272 | something starting with __ and the normal name is an alias. */ | |
25273 | #if defined (__stub_remove) || defined (__stub___remove) | |
25274 | choke me | |
25275 | #else | |
25276 | char (*f) () = remove; | |
25277 | #endif | |
25278 | #ifdef __cplusplus | |
25279 | } | |
25280 | #endif | |
25281 | ||
25282 | int | |
25283 | main () | |
25284 | { | |
25285 | return f != remove; | |
25286 | ; | |
25287 | return 0; | |
25288 | } | |
25289 | _ACEOF | |
25290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25292 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25293 | ac_status=$? |
ac1cb8d3 VS |
25294 | grep -v '^ *+' conftest.er1 >conftest.err |
25295 | rm -f conftest.er1 | |
25296 | cat conftest.err >&5 | |
a848cd7e SC |
25297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25298 | (exit $ac_status); } && | |
5294a27e | 25299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25301 | (eval $ac_try) 2>&5 | |
25302 | ac_status=$? | |
25303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25304 | (exit $ac_status); }; } && | |
25305 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25307 | (eval $ac_try) 2>&5 | |
25308 | ac_status=$? | |
25309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25310 | (exit $ac_status); }; }; then | |
25311 | ac_cv_func_remove=yes | |
25312 | else | |
25313 | echo "$as_me: failed program was:" >&5 | |
25314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25315 | ||
25316 | ac_cv_func_remove=no | |
25317 | fi | |
ac1cb8d3 VS |
25318 | rm -f conftest.err conftest.$ac_objext \ |
25319 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25320 | fi |
25321 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25322 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25323 | ||
25324 | if test $ac_cv_func_remove = no; then | |
25325 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25326 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25327 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25329 | else | |
25330 | ac_check_lib_save_LIBS=$LIBS | |
25331 | LIBS="-lposix $LIBS" | |
25332 | cat >conftest.$ac_ext <<_ACEOF | |
25333 | /* confdefs.h. */ | |
25334 | _ACEOF | |
25335 | cat confdefs.h >>conftest.$ac_ext | |
25336 | cat >>conftest.$ac_ext <<_ACEOF | |
25337 | /* end confdefs.h. */ | |
25338 | ||
25339 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25340 | #ifdef __cplusplus | |
25341 | extern "C" | |
25342 | #endif | |
25343 | /* We use char because int might match the return type of a gcc2 | |
25344 | builtin and then its argument prototype would still apply. */ | |
25345 | char remove (); | |
25346 | int | |
25347 | main () | |
25348 | { | |
25349 | remove (); | |
25350 | ; | |
25351 | return 0; | |
25352 | } | |
25353 | _ACEOF | |
25354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25356 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25357 | ac_status=$? |
ac1cb8d3 VS |
25358 | grep -v '^ *+' conftest.er1 >conftest.err |
25359 | rm -f conftest.er1 | |
25360 | cat conftest.err >&5 | |
a848cd7e SC |
25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25362 | (exit $ac_status); } && | |
5294a27e | 25363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25365 | (eval $ac_try) 2>&5 | |
25366 | ac_status=$? | |
25367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25368 | (exit $ac_status); }; } && | |
25369 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25371 | (eval $ac_try) 2>&5 | |
25372 | ac_status=$? | |
25373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25374 | (exit $ac_status); }; }; then | |
25375 | ac_cv_lib_posix_remove=yes | |
25376 | else | |
25377 | echo "$as_me: failed program was:" >&5 | |
25378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25379 | ||
25380 | ac_cv_lib_posix_remove=no | |
25381 | fi | |
ac1cb8d3 VS |
25382 | rm -f conftest.err conftest.$ac_objext \ |
25383 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25384 | LIBS=$ac_check_lib_save_LIBS |
25385 | fi | |
25386 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25387 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25388 | if test $ac_cv_lib_posix_remove = yes; then | |
25389 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25390 | fi | |
25391 | ||
25392 | fi | |
25393 | ||
25394 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25395 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25396 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25397 | if test "${ac_cv_func_shmat+set}" = set; then | |
25398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25399 | else | |
25400 | cat >conftest.$ac_ext <<_ACEOF | |
25401 | /* confdefs.h. */ | |
25402 | _ACEOF | |
25403 | cat confdefs.h >>conftest.$ac_ext | |
25404 | cat >>conftest.$ac_ext <<_ACEOF | |
25405 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25406 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25407 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25408 | #define shmat innocuous_shmat | |
25409 | ||
a848cd7e SC |
25410 | /* System header to define __stub macros and hopefully few prototypes, |
25411 | which can conflict with char shmat (); below. | |
25412 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25413 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25414 | |
a848cd7e SC |
25415 | #ifdef __STDC__ |
25416 | # include <limits.h> | |
25417 | #else | |
25418 | # include <assert.h> | |
25419 | #endif | |
ac1cb8d3 VS |
25420 | |
25421 | #undef shmat | |
25422 | ||
a848cd7e SC |
25423 | /* Override any gcc2 internal prototype to avoid an error. */ |
25424 | #ifdef __cplusplus | |
25425 | extern "C" | |
25426 | { | |
25427 | #endif | |
25428 | /* We use char because int might match the return type of a gcc2 | |
25429 | builtin and then its argument prototype would still apply. */ | |
25430 | char shmat (); | |
25431 | /* The GNU C library defines this for functions which it implements | |
25432 | to always fail with ENOSYS. Some functions are actually named | |
25433 | something starting with __ and the normal name is an alias. */ | |
25434 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25435 | choke me | |
25436 | #else | |
25437 | char (*f) () = shmat; | |
25438 | #endif | |
25439 | #ifdef __cplusplus | |
25440 | } | |
25441 | #endif | |
25442 | ||
25443 | int | |
25444 | main () | |
25445 | { | |
25446 | return f != shmat; | |
25447 | ; | |
25448 | return 0; | |
25449 | } | |
25450 | _ACEOF | |
25451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25453 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25454 | ac_status=$? |
ac1cb8d3 VS |
25455 | grep -v '^ *+' conftest.er1 >conftest.err |
25456 | rm -f conftest.er1 | |
25457 | cat conftest.err >&5 | |
a848cd7e SC |
25458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25459 | (exit $ac_status); } && | |
5294a27e | 25460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25462 | (eval $ac_try) 2>&5 | |
25463 | ac_status=$? | |
25464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25465 | (exit $ac_status); }; } && | |
25466 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25468 | (eval $ac_try) 2>&5 | |
25469 | ac_status=$? | |
25470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25471 | (exit $ac_status); }; }; then | |
25472 | ac_cv_func_shmat=yes | |
25473 | else | |
25474 | echo "$as_me: failed program was:" >&5 | |
25475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25476 | ||
25477 | ac_cv_func_shmat=no | |
25478 | fi | |
ac1cb8d3 VS |
25479 | rm -f conftest.err conftest.$ac_objext \ |
25480 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25481 | fi |
25482 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25483 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25484 | ||
25485 | if test $ac_cv_func_shmat = no; then | |
25486 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25487 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25488 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25490 | else | |
25491 | ac_check_lib_save_LIBS=$LIBS | |
25492 | LIBS="-lipc $LIBS" | |
25493 | cat >conftest.$ac_ext <<_ACEOF | |
25494 | /* confdefs.h. */ | |
25495 | _ACEOF | |
25496 | cat confdefs.h >>conftest.$ac_ext | |
25497 | cat >>conftest.$ac_ext <<_ACEOF | |
25498 | /* end confdefs.h. */ | |
25499 | ||
25500 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25501 | #ifdef __cplusplus | |
25502 | extern "C" | |
25503 | #endif | |
25504 | /* We use char because int might match the return type of a gcc2 | |
25505 | builtin and then its argument prototype would still apply. */ | |
25506 | char shmat (); | |
25507 | int | |
25508 | main () | |
25509 | { | |
25510 | shmat (); | |
25511 | ; | |
25512 | return 0; | |
25513 | } | |
25514 | _ACEOF | |
25515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25517 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25518 | ac_status=$? |
ac1cb8d3 VS |
25519 | grep -v '^ *+' conftest.er1 >conftest.err |
25520 | rm -f conftest.er1 | |
25521 | cat conftest.err >&5 | |
a848cd7e SC |
25522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25523 | (exit $ac_status); } && | |
5294a27e | 25524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25526 | (eval $ac_try) 2>&5 | |
25527 | ac_status=$? | |
25528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25529 | (exit $ac_status); }; } && | |
25530 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25532 | (eval $ac_try) 2>&5 | |
25533 | ac_status=$? | |
25534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25535 | (exit $ac_status); }; }; then | |
25536 | ac_cv_lib_ipc_shmat=yes | |
25537 | else | |
25538 | echo "$as_me: failed program was:" >&5 | |
25539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25540 | ||
25541 | ac_cv_lib_ipc_shmat=no | |
25542 | fi | |
ac1cb8d3 VS |
25543 | rm -f conftest.err conftest.$ac_objext \ |
25544 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25545 | LIBS=$ac_check_lib_save_LIBS |
25546 | fi | |
25547 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25548 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25549 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25550 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25551 | fi | |
25552 | ||
25553 | fi | |
25554 | fi | |
25555 | ||
25556 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25557 | ac_save_LDFLAGS=$LDFLAGS | |
25558 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25559 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25560 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25561 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25562 | # These have to be linked with before -lX11, unlike the other | |
25563 | # libraries we check for below, so use a different variable. | |
25564 | # John Interrante, Karl Berry | |
25565 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25566 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25567 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25569 | else | |
25570 | ac_check_lib_save_LIBS=$LIBS | |
25571 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25572 | cat >conftest.$ac_ext <<_ACEOF | |
25573 | /* confdefs.h. */ | |
25574 | _ACEOF | |
25575 | cat confdefs.h >>conftest.$ac_ext | |
25576 | cat >>conftest.$ac_ext <<_ACEOF | |
25577 | /* end confdefs.h. */ | |
25578 | ||
25579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25580 | #ifdef __cplusplus | |
25581 | extern "C" | |
25582 | #endif | |
25583 | /* We use char because int might match the return type of a gcc2 | |
25584 | builtin and then its argument prototype would still apply. */ | |
25585 | char IceConnectionNumber (); | |
25586 | int | |
25587 | main () | |
25588 | { | |
25589 | IceConnectionNumber (); | |
25590 | ; | |
25591 | return 0; | |
25592 | } | |
25593 | _ACEOF | |
25594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25597 | ac_status=$? |
ac1cb8d3 VS |
25598 | grep -v '^ *+' conftest.er1 >conftest.err |
25599 | rm -f conftest.er1 | |
25600 | cat conftest.err >&5 | |
a848cd7e SC |
25601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25602 | (exit $ac_status); } && | |
5294a27e | 25603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25605 | (eval $ac_try) 2>&5 | |
25606 | ac_status=$? | |
25607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25608 | (exit $ac_status); }; } && | |
25609 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25611 | (eval $ac_try) 2>&5 | |
25612 | ac_status=$? | |
25613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25614 | (exit $ac_status); }; }; then | |
25615 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25616 | else | |
25617 | echo "$as_me: failed program was:" >&5 | |
25618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25619 | ||
25620 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25621 | fi | |
ac1cb8d3 VS |
25622 | rm -f conftest.err conftest.$ac_objext \ |
25623 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25624 | LIBS=$ac_check_lib_save_LIBS |
25625 | fi | |
25626 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25627 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25628 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25629 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25630 | fi | |
25631 | ||
25632 | LDFLAGS=$ac_save_LDFLAGS | |
25633 | ||
25634 | fi | |
25635 | ||
25636 | ||
25637 | if test "$no_x" = "yes"; then | |
25638 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25639 | echo "$as_me: error: X11 not found" >&2;} | |
25640 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25641 | fi | |
25642 | ||
74b84332 VS |
25643 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25644 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25645 | AFMINSTALL=afminstall |
25646 | COMPILED_X_PROGRAM=0 | |
25647 | ||
74b84332 VS |
25648 | fi |
25649 | ||
25650 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25651 | if test "$wxUSE_NANOX" = "yes"; then |
25652 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25653 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25654 | if test "x$MICROWIN" = x ; then | |
25655 | echo "$as_me:$LINENO: result: not found" >&5 | |
25656 | echo "${ECHO_T}not found" >&6 | |
25657 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25658 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25659 | { (exit 1); exit 1; }; } | |
25660 | else | |
25661 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25662 | echo "${ECHO_T}$MICROWIN" >&6 | |
25663 | cat >>confdefs.h <<\_ACEOF | |
25664 | #define wxUSE_NANOX 1 | |
25665 | _ACEOF | |
25666 | ||
25667 | fi | |
25668 | fi | |
25669 | ||
25670 | if test "$wxUSE_UNICODE" = "yes"; then | |
25671 | ||
25672 | succeeded=no | |
25673 | ||
25674 | if test -z "$PKG_CONFIG"; then | |
25675 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25676 | set dummy pkg-config; ac_word=$2 | |
25677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25679 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25681 | else | |
25682 | case $PKG_CONFIG in | |
25683 | [\\/]* | ?:[\\/]*) | |
25684 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25685 | ;; | |
25686 | *) | |
25687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25688 | for as_dir in $PATH | |
25689 | do | |
25690 | IFS=$as_save_IFS | |
25691 | test -z "$as_dir" && as_dir=. | |
25692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25694 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25696 | break 2 | |
25697 | fi | |
25698 | done | |
25699 | done | |
25700 | ||
25701 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25702 | ;; | |
25703 | esac | |
25704 | fi | |
25705 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25706 | ||
25707 | if test -n "$PKG_CONFIG"; then | |
25708 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25709 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25710 | else | |
25711 | echo "$as_me:$LINENO: result: no" >&5 | |
25712 | echo "${ECHO_T}no" >&6 | |
25713 | fi | |
25714 | ||
25715 | fi | |
25716 | ||
25717 | if test "$PKG_CONFIG" = "no" ; then | |
25718 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25719 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25720 | echo "*** to the full path to pkg-config." | |
25721 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25722 | else | |
25723 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25724 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25725 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25726 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25727 | ||
25728 | if $PKG_CONFIG --exists "pangox" ; then | |
25729 | echo "$as_me:$LINENO: result: yes" >&5 | |
25730 | echo "${ECHO_T}yes" >&6 | |
25731 | succeeded=yes | |
25732 | ||
25733 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25734 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25735 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25736 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25737 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25738 | ||
25739 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25740 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25741 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25742 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25743 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25744 | else | |
25745 | PANGOX_CFLAGS="" | |
25746 | PANGOX_LIBS="" | |
25747 | ## If we have a custom action on failure, don't print errors, but | |
25748 | ## do set a variable so people can do so. | |
25749 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25750 | ||
25751 | fi | |
25752 | ||
25753 | ||
25754 | ||
25755 | else | |
25756 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25757 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25758 | fi | |
25759 | fi | |
25760 | ||
25761 | if test $succeeded = yes; then | |
25762 | ||
25763 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25764 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25765 | ||
25766 | else | |
25767 | ||
25768 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25769 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25770 | { (exit 1); exit 1; }; } | |
25771 | ||
25772 | ||
25773 | fi | |
25774 | ||
25775 | ||
25776 | succeeded=no | |
25777 | ||
25778 | if test -z "$PKG_CONFIG"; then | |
25779 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25780 | set dummy pkg-config; ac_word=$2 | |
25781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25783 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25785 | else | |
25786 | case $PKG_CONFIG in | |
25787 | [\\/]* | ?:[\\/]*) | |
25788 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25789 | ;; | |
25790 | *) | |
25791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25792 | for as_dir in $PATH | |
25793 | do | |
25794 | IFS=$as_save_IFS | |
25795 | test -z "$as_dir" && as_dir=. | |
25796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25798 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25800 | break 2 | |
25801 | fi | |
25802 | done | |
25803 | done | |
25804 | ||
25805 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25806 | ;; | |
25807 | esac | |
25808 | fi | |
25809 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25810 | ||
25811 | if test -n "$PKG_CONFIG"; then | |
25812 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25813 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25814 | else | |
25815 | echo "$as_me:$LINENO: result: no" >&5 | |
25816 | echo "${ECHO_T}no" >&6 | |
25817 | fi | |
25818 | ||
25819 | fi | |
25820 | ||
25821 | if test "$PKG_CONFIG" = "no" ; then | |
25822 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25823 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25824 | echo "*** to the full path to pkg-config." | |
25825 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25826 | else | |
25827 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25828 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25829 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25830 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25831 | ||
25832 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25833 | echo "$as_me:$LINENO: result: yes" >&5 | |
25834 | echo "${ECHO_T}yes" >&6 | |
25835 | succeeded=yes | |
25836 | ||
25837 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25838 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25839 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25840 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25841 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25842 | ||
25843 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25844 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25845 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25846 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25847 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25848 | else | |
25849 | PANGOFT2_CFLAGS="" | |
25850 | PANGOFT2_LIBS="" | |
25851 | ## If we have a custom action on failure, don't print errors, but | |
25852 | ## do set a variable so people can do so. | |
25853 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25854 | ||
25855 | fi | |
25856 | ||
25857 | ||
25858 | ||
25859 | else | |
25860 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25861 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25862 | fi | |
25863 | fi | |
25864 | ||
25865 | if test $succeeded = yes; then | |
25866 | ||
25867 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25868 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25869 | ||
25870 | else | |
25871 | ||
25872 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25873 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25874 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25875 | ||
25876 | ||
25877 | fi | |
25878 | ||
25879 | ||
25880 | succeeded=no | |
25881 | ||
25882 | if test -z "$PKG_CONFIG"; then | |
25883 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25884 | set dummy pkg-config; ac_word=$2 | |
25885 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25887 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25889 | else | |
25890 | case $PKG_CONFIG in | |
25891 | [\\/]* | ?:[\\/]*) | |
25892 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25893 | ;; | |
25894 | *) | |
25895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25896 | for as_dir in $PATH | |
25897 | do | |
25898 | IFS=$as_save_IFS | |
25899 | test -z "$as_dir" && as_dir=. | |
25900 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25901 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25902 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25904 | break 2 | |
25905 | fi | |
25906 | done | |
25907 | done | |
25908 | ||
25909 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25910 | ;; | |
25911 | esac | |
25912 | fi | |
25913 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25914 | ||
25915 | if test -n "$PKG_CONFIG"; then | |
25916 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25917 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25918 | else | |
25919 | echo "$as_me:$LINENO: result: no" >&5 | |
25920 | echo "${ECHO_T}no" >&6 | |
25921 | fi | |
25922 | ||
25923 | fi | |
25924 | ||
25925 | if test "$PKG_CONFIG" = "no" ; then | |
25926 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25927 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25928 | echo "*** to the full path to pkg-config." | |
25929 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25930 | else | |
25931 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25932 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25933 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25934 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25935 | ||
25936 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25937 | echo "$as_me:$LINENO: result: yes" >&5 | |
25938 | echo "${ECHO_T}yes" >&6 | |
25939 | succeeded=yes | |
25940 | ||
25941 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25942 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25943 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25944 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25945 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25946 | ||
25947 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25948 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25949 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25950 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25951 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25952 | else | |
25953 | PANGOXFT_CFLAGS="" | |
25954 | PANGOXFT_LIBS="" | |
25955 | ## If we have a custom action on failure, don't print errors, but | |
25956 | ## do set a variable so people can do so. | |
25957 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25958 | ||
25959 | fi | |
25960 | ||
25961 | ||
25962 | ||
25963 | else | |
25964 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25965 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25966 | fi | |
25967 | fi | |
25968 | ||
25969 | if test $succeeded = yes; then | |
25970 | ||
4ae1af05 MB |
25971 | cat >>confdefs.h <<\_ACEOF |
25972 | #define HAVE_PANGO_XFT 1 | |
25973 | _ACEOF | |
25974 | ||
a848cd7e SC |
25975 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
25976 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25977 | ||
25978 | else | |
25979 | ||
25980 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25981 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25982 | ||
25983 | ||
25984 | fi | |
25985 | ||
304205f1 VS |
25986 | save_CFLAGS="$CFLAGS" |
25987 | save_LIBS="$LIBS" | |
25988 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25989 | LIBS="$LIBS $PANGOX_LIBS" | |
25990 | ||
25991 | for ac_func in pango_font_family_is_monospace | |
25992 | do | |
25993 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25994 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25995 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25996 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25998 | else | |
25999 | cat >conftest.$ac_ext <<_ACEOF | |
26000 | /* confdefs.h. */ | |
26001 | _ACEOF | |
26002 | cat confdefs.h >>conftest.$ac_ext | |
26003 | cat >>conftest.$ac_ext <<_ACEOF | |
26004 | /* end confdefs.h. */ | |
26005 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26007 | #define $ac_func innocuous_$ac_func | |
26008 | ||
26009 | /* System header to define __stub macros and hopefully few prototypes, | |
26010 | which can conflict with char $ac_func (); below. | |
26011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26012 | <limits.h> exists even on freestanding compilers. */ | |
26013 | ||
26014 | #ifdef __STDC__ | |
26015 | # include <limits.h> | |
26016 | #else | |
26017 | # include <assert.h> | |
26018 | #endif | |
26019 | ||
26020 | #undef $ac_func | |
26021 | ||
26022 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26023 | #ifdef __cplusplus | |
26024 | extern "C" | |
26025 | { | |
26026 | #endif | |
26027 | /* We use char because int might match the return type of a gcc2 | |
26028 | builtin and then its argument prototype would still apply. */ | |
26029 | char $ac_func (); | |
26030 | /* The GNU C library defines this for functions which it implements | |
26031 | to always fail with ENOSYS. Some functions are actually named | |
26032 | something starting with __ and the normal name is an alias. */ | |
26033 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26034 | choke me | |
26035 | #else | |
26036 | char (*f) () = $ac_func; | |
26037 | #endif | |
26038 | #ifdef __cplusplus | |
26039 | } | |
26040 | #endif | |
26041 | ||
26042 | int | |
26043 | main () | |
26044 | { | |
26045 | return f != $ac_func; | |
26046 | ; | |
26047 | return 0; | |
26048 | } | |
26049 | _ACEOF | |
26050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26052 | (eval $ac_link) 2>conftest.er1 | |
26053 | ac_status=$? | |
26054 | grep -v '^ *+' conftest.er1 >conftest.err | |
26055 | rm -f conftest.er1 | |
26056 | cat conftest.err >&5 | |
26057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26058 | (exit $ac_status); } && | |
5294a27e | 26059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
26060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26061 | (eval $ac_try) 2>&5 | |
26062 | ac_status=$? | |
26063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26064 | (exit $ac_status); }; } && | |
26065 | { ac_try='test -s conftest$ac_exeext' | |
26066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26067 | (eval $ac_try) 2>&5 | |
26068 | ac_status=$? | |
26069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26070 | (exit $ac_status); }; }; then | |
26071 | eval "$as_ac_var=yes" | |
26072 | else | |
26073 | echo "$as_me: failed program was:" >&5 | |
26074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26075 | ||
26076 | eval "$as_ac_var=no" | |
26077 | fi | |
26078 | rm -f conftest.err conftest.$ac_objext \ | |
26079 | conftest$ac_exeext conftest.$ac_ext | |
26080 | fi | |
26081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26082 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26083 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26084 | cat >>confdefs.h <<_ACEOF | |
26085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26086 | _ACEOF | |
26087 | ||
26088 | fi | |
26089 | done | |
26090 | ||
26091 | CFLAGS="$save_CFLAGS" | |
26092 | LIBS="$save_LIBS" | |
a848cd7e SC |
26093 | fi |
26094 | ||
26095 | wxUSE_UNIVERSAL="yes" | |
26096 | ||
26097 | if test "$wxUSE_NANOX" = "yes"; then | |
26098 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
26099 | 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" | |
26100 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
26101 | else | |
26102 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
26103 | fi | |
26104 | ||
a848cd7e SC |
26105 | TOOLKIT=X11 |
26106 | GUIDIST=X11_DIST | |
26107 | fi | |
26108 | ||
26109 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
26110 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
26111 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 26112 | |
74b84332 VS |
26113 | ac_find_includes= |
26114 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26115 | do | |
26116 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26117 | ac_find_includes=$ac_dir | |
26118 | break | |
26119 | fi | |
26120 | done | |
a848cd7e | 26121 | |
74b84332 VS |
26122 | if test "$ac_find_includes" != "" ; then |
26123 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26124 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26125 | ||
26126 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26127 | ac_path_to_include="" | |
26128 | else | |
26129 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
26130 | result=$? | |
26131 | if test $result = 0; then | |
26132 | ac_path_to_include="" | |
26133 | else | |
26134 | ac_path_to_include=" -I$ac_find_includes" | |
26135 | fi | |
a848cd7e SC |
26136 | fi |
26137 | ||
74b84332 VS |
26138 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
26139 | else | |
26140 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26141 | /* confdefs.h. */ |
26142 | _ACEOF | |
26143 | cat confdefs.h >>conftest.$ac_ext | |
26144 | cat >>conftest.$ac_ext <<_ACEOF | |
26145 | /* end confdefs.h. */ | |
26146 | ||
74b84332 VS |
26147 | #include <Xm/Xm.h> |
26148 | ||
a848cd7e SC |
26149 | int |
26150 | main () | |
26151 | { | |
26152 | ||
74b84332 VS |
26153 | int version; |
26154 | version = xmUseVersion; | |
26155 | ||
a848cd7e SC |
26156 | ; |
26157 | return 0; | |
26158 | } | |
26159 | _ACEOF | |
74b84332 VS |
26160 | rm -f conftest.$ac_objext |
26161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26162 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26163 | ac_status=$? |
ac1cb8d3 VS |
26164 | grep -v '^ *+' conftest.er1 >conftest.err |
26165 | rm -f conftest.er1 | |
26166 | cat conftest.err >&5 | |
a848cd7e SC |
26167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26168 | (exit $ac_status); } && | |
5294a27e | 26169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26171 | (eval $ac_try) 2>&5 | |
26172 | ac_status=$? | |
26173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26174 | (exit $ac_status); }; } && | |
74b84332 | 26175 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26177 | (eval $ac_try) 2>&5 | |
26178 | ac_status=$? | |
26179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26180 | (exit $ac_status); }; }; then | |
74b84332 VS |
26181 | |
26182 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26183 | echo "${ECHO_T}found in default search path" >&6 | |
26184 | COMPILED_X_PROGRAM=1 | |
26185 | ||
a848cd7e SC |
26186 | else |
26187 | echo "$as_me: failed program was:" >&5 | |
26188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26189 | ||
a848cd7e | 26190 | |
74b84332 VS |
26191 | echo "$as_me:$LINENO: result: no" >&5 |
26192 | echo "${ECHO_T}no" >&6 | |
26193 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26194 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26195 | { (exit 1); exit 1; }; } | |
a848cd7e | 26196 | |
a848cd7e | 26197 | |
a848cd7e | 26198 | fi |
74b84332 VS |
26199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
26200 | fi | |
26201 | ||
26202 | if test "$COMPILED_X_PROGRAM" = 0; then | |
26203 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
26204 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26205 | ||
26206 | ac_find_libraries= | |
26207 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26208 | do | |
26209 | for ac_extension in a so sl dylib; do | |
26210 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26211 | ac_find_libraries=$ac_dir | |
26212 | break 2 | |
a848cd7e | 26213 | fi |
74b84332 VS |
26214 | done |
26215 | done | |
a848cd7e | 26216 | |
74b84332 VS |
26217 | if test "$ac_find_libraries" != "" ; then |
26218 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26219 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 26220 | |
74b84332 VS |
26221 | |
26222 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26223 | result=$? | |
26224 | if test $result = 0; then | |
26225 | ac_path_to_link="" | |
a848cd7e | 26226 | else |
74b84332 VS |
26227 | ac_path_to_link=" -L$ac_find_libraries" |
26228 | fi | |
26229 | ||
26230 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26231 | else | |
26232 | save_CFLAGS=$CFLAGS | |
26233 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26234 | ||
26235 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26236 | /* confdefs.h. */ |
26237 | _ACEOF | |
26238 | cat confdefs.h >>conftest.$ac_ext | |
26239 | cat >>conftest.$ac_ext <<_ACEOF | |
26240 | /* end confdefs.h. */ | |
26241 | ||
74b84332 VS |
26242 | #include <Xm/Xm.h> |
26243 | ||
a848cd7e SC |
26244 | int |
26245 | main () | |
26246 | { | |
74b84332 VS |
26247 | |
26248 | int version; | |
26249 | version = xmUseVersion; | |
26250 | ||
a848cd7e SC |
26251 | ; |
26252 | return 0; | |
26253 | } | |
26254 | _ACEOF | |
74b84332 VS |
26255 | rm -f conftest.$ac_objext |
26256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26257 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26258 | ac_status=$? |
ac1cb8d3 VS |
26259 | grep -v '^ *+' conftest.er1 >conftest.err |
26260 | rm -f conftest.er1 | |
26261 | cat conftest.err >&5 | |
a848cd7e SC |
26262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26263 | (exit $ac_status); } && | |
5294a27e | 26264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26266 | (eval $ac_try) 2>&5 | |
26267 | ac_status=$? | |
26268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26269 | (exit $ac_status); }; } && | |
74b84332 | 26270 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26272 | (eval $ac_try) 2>&5 | |
26273 | ac_status=$? | |
26274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26275 | (exit $ac_status); }; }; then | |
74b84332 VS |
26276 | |
26277 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26278 | echo "${ECHO_T}found in default search path" >&6 | |
26279 | COMPILED_X_PROGRAM=1 | |
26280 | ||
a848cd7e SC |
26281 | else |
26282 | echo "$as_me: failed program was:" >&5 | |
26283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26284 | ||
74b84332 VS |
26285 | |
26286 | echo "$as_me:$LINENO: result: no" >&5 | |
26287 | echo "${ECHO_T}no" >&6 | |
26288 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26289 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26290 | { (exit 1); exit 1; }; } | |
26291 | ||
26292 | ||
26293 | fi | |
26294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26295 | ||
26296 | CFLAGS=$save_CFLAGS | |
26297 | fi | |
26298 | fi | |
26299 | ||
26300 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26301 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26302 | libp_link="" | |
26303 | libsm_ice_link="" | |
26304 | libs_found=0 | |
26305 | for libp in "" " -lXp"; do | |
26306 | if test "$libs_found" = "0"; then | |
26307 | for libsm_ice in "" " -lSM -lICE"; do | |
26308 | if test "$libs_found" = "0"; then | |
26309 | save_LIBS="$LIBS" | |
26310 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26311 | save_CFLAGS=$CFLAGS | |
26312 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26313 | ||
26314 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26315 | /* confdefs.h. */ |
26316 | _ACEOF | |
26317 | cat confdefs.h >>conftest.$ac_ext | |
26318 | cat >>conftest.$ac_ext <<_ACEOF | |
26319 | /* end confdefs.h. */ | |
26320 | ||
74b84332 VS |
26321 | #include <Xm/Xm.h> |
26322 | #include <Xm/List.h> | |
26323 | ||
a848cd7e SC |
26324 | int |
26325 | main () | |
26326 | { | |
74b84332 VS |
26327 | |
26328 | XmString string = NULL; | |
26329 | Widget w = NULL; | |
26330 | int position = 0; | |
26331 | XmListAddItem(w, string, position); | |
26332 | ||
a848cd7e SC |
26333 | ; |
26334 | return 0; | |
26335 | } | |
26336 | _ACEOF | |
26337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26339 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26340 | ac_status=$? |
ac1cb8d3 VS |
26341 | grep -v '^ *+' conftest.er1 >conftest.err |
26342 | rm -f conftest.er1 | |
26343 | cat conftest.err >&5 | |
a848cd7e SC |
26344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26345 | (exit $ac_status); } && | |
5294a27e | 26346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26348 | (eval $ac_try) 2>&5 | |
26349 | ac_status=$? | |
26350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26351 | (exit $ac_status); }; } && | |
26352 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26354 | (eval $ac_try) 2>&5 | |
26355 | ac_status=$? | |
26356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26357 | (exit $ac_status); }; }; then | |
26358 | ||
26359 | libp_link="$libp" | |
26360 | libsm_ice_link="$libsm_ice" | |
26361 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26362 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26363 | libs_found=1 | |
26364 | ||
26365 | else | |
26366 | echo "$as_me: failed program was:" >&5 | |
26367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26368 | ||
26369 | ||
26370 | ||
26371 | fi | |
ac1cb8d3 VS |
26372 | rm -f conftest.err conftest.$ac_objext \ |
26373 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26374 | |
26375 | LIBS="$save_LIBS" | |
26376 | CFLAGS=$save_CFLAGS | |
26377 | fi | |
26378 | done | |
26379 | fi | |
26380 | done | |
26381 | ||
26382 | if test "$libs_found" = "0"; then | |
26383 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26384 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26385 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26386 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26387 | { (exit 1); exit 1; }; } | |
26388 | fi | |
26389 | ||
26390 | save_CFLAGS=$CFLAGS | |
26391 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26392 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26393 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26394 | cat >conftest.$ac_ext <<_ACEOF | |
26395 | /* confdefs.h. */ | |
26396 | _ACEOF | |
26397 | cat confdefs.h >>conftest.$ac_ext | |
26398 | cat >>conftest.$ac_ext <<_ACEOF | |
26399 | /* end confdefs.h. */ | |
26400 | ||
26401 | #include <Xm/Xm.h> | |
26402 | ||
26403 | int | |
26404 | main () | |
26405 | { | |
26406 | ||
26407 | #if XmVersion < 2000 | |
26408 | #error "Not Motif 2" | |
26409 | #endif | |
26410 | ||
26411 | ; | |
26412 | return 0; | |
26413 | } | |
26414 | _ACEOF | |
26415 | rm -f conftest.$ac_objext | |
26416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26418 | ac_status=$? |
ac1cb8d3 VS |
26419 | grep -v '^ *+' conftest.er1 >conftest.err |
26420 | rm -f conftest.er1 | |
26421 | cat conftest.err >&5 | |
a848cd7e SC |
26422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26423 | (exit $ac_status); } && | |
5294a27e | 26424 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26426 | (eval $ac_try) 2>&5 | |
26427 | ac_status=$? | |
26428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26429 | (exit $ac_status); }; } && | |
26430 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26432 | (eval $ac_try) 2>&5 | |
26433 | ac_status=$? | |
26434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26435 | (exit $ac_status); }; }; then | |
26436 | ||
26437 | cat >>confdefs.h <<\_ACEOF | |
26438 | #define __WXMOTIF20__ 1 | |
26439 | _ACEOF | |
26440 | ||
26441 | echo "$as_me:$LINENO: result: found" >&5 | |
26442 | echo "${ECHO_T}found" >&6 | |
26443 | ||
26444 | else | |
26445 | echo "$as_me: failed program was:" >&5 | |
26446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26447 | ||
26448 | ||
26449 | cat >>confdefs.h <<\_ACEOF | |
26450 | #define __WXMOTIF20__ 0 | |
26451 | _ACEOF | |
26452 | ||
26453 | echo "$as_me:$LINENO: result: not found" >&5 | |
26454 | echo "${ECHO_T}not found" >&6 | |
26455 | ||
26456 | fi | |
ac1cb8d3 | 26457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26458 | CFLAGS=$save_CFLAGS |
26459 | ||
26460 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26461 | TOOLKIT=MOTIF |
26462 | GUIDIST=MOTIF_DIST | |
26463 | fi | |
26464 | ||
74b84332 | 26465 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26466 | if test "$wxUSE_LIBXPM" = "sys"; then |
26467 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26468 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26469 | ||
26470 | ac_find_libraries= | |
26471 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26472 | do | |
26473 | for ac_extension in a so sl dylib; do | |
26474 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26475 | ac_find_libraries=$ac_dir | |
26476 | break 2 | |
26477 | fi | |
26478 | done | |
26479 | done | |
26480 | ||
26481 | if test "$ac_find_libraries" != "" ; then | |
26482 | ||
26483 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26484 | result=$? | |
26485 | if test $result = 0; then | |
26486 | ac_path_to_link="" | |
26487 | else | |
26488 | ac_path_to_link=" -L$ac_find_libraries" | |
26489 | fi | |
26490 | ||
26491 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26492 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26493 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26494 | ||
26495 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26496 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26497 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26499 | else | |
26500 | ||
26501 | save_CFLAGS=$CFLAGS | |
26502 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26503 | ||
26504 | cat >conftest.$ac_ext <<_ACEOF | |
26505 | /* confdefs.h. */ | |
26506 | _ACEOF | |
26507 | cat confdefs.h >>conftest.$ac_ext | |
26508 | cat >>conftest.$ac_ext <<_ACEOF | |
26509 | /* end confdefs.h. */ | |
26510 | ||
26511 | #include <X11/xpm.h> | |
26512 | ||
26513 | int | |
26514 | main () | |
26515 | { | |
26516 | ||
26517 | int version; | |
26518 | version = XpmLibraryVersion(); | |
26519 | ||
26520 | ; | |
26521 | return 0; | |
26522 | } | |
26523 | _ACEOF | |
26524 | rm -f conftest.$ac_objext | |
26525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26526 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26527 | ac_status=$? |
ac1cb8d3 VS |
26528 | grep -v '^ *+' conftest.er1 >conftest.err |
26529 | rm -f conftest.er1 | |
26530 | cat conftest.err >&5 | |
a848cd7e SC |
26531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26532 | (exit $ac_status); } && | |
5294a27e | 26533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26535 | (eval $ac_try) 2>&5 | |
26536 | ac_status=$? | |
26537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26538 | (exit $ac_status); }; } && | |
26539 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26541 | (eval $ac_try) 2>&5 | |
26542 | ac_status=$? | |
26543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26544 | (exit $ac_status); }; }; then | |
26545 | wx_cv_x11_xpm_h=yes | |
26546 | else | |
26547 | echo "$as_me: failed program was:" >&5 | |
26548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26549 | ||
26550 | wx_cv_x11_xpm_h=no | |
26551 | ||
26552 | fi | |
ac1cb8d3 | 26553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26554 | |
26555 | CFLAGS=$save_CFLAGS | |
26556 | ||
26557 | ||
26558 | fi | |
26559 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26560 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26561 | ||
26562 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26563 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26564 | cat >>confdefs.h <<\_ACEOF | |
26565 | #define wxHAVE_LIB_XPM 1 | |
26566 | _ACEOF | |
26567 | ||
26568 | else | |
26569 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26570 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26571 | fi | |
26572 | fi | |
26573 | ||
26574 | fi | |
26575 | ||
26576 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26577 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26578 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26580 | else | |
26581 | ac_check_lib_save_LIBS=$LIBS | |
26582 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26583 | cat >conftest.$ac_ext <<_ACEOF | |
26584 | /* confdefs.h. */ | |
26585 | _ACEOF | |
26586 | cat confdefs.h >>conftest.$ac_ext | |
26587 | cat >>conftest.$ac_ext <<_ACEOF | |
26588 | /* end confdefs.h. */ | |
26589 | ||
26590 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26591 | #ifdef __cplusplus | |
26592 | extern "C" | |
26593 | #endif | |
26594 | /* We use char because int might match the return type of a gcc2 | |
26595 | builtin and then its argument prototype would still apply. */ | |
26596 | char XShapeQueryExtension (); | |
26597 | int | |
26598 | main () | |
26599 | { | |
26600 | XShapeQueryExtension (); | |
26601 | ; | |
26602 | return 0; | |
26603 | } | |
26604 | _ACEOF | |
26605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26607 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26608 | ac_status=$? |
ac1cb8d3 VS |
26609 | grep -v '^ *+' conftest.er1 >conftest.err |
26610 | rm -f conftest.er1 | |
26611 | cat conftest.err >&5 | |
a848cd7e SC |
26612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26613 | (exit $ac_status); } && | |
5294a27e | 26614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26616 | (eval $ac_try) 2>&5 | |
26617 | ac_status=$? | |
26618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26619 | (exit $ac_status); }; } && | |
26620 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26622 | (eval $ac_try) 2>&5 | |
26623 | ac_status=$? | |
26624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26625 | (exit $ac_status); }; }; then | |
26626 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26627 | else | |
26628 | echo "$as_me: failed program was:" >&5 | |
26629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26630 | ||
26631 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26632 | fi | |
ac1cb8d3 VS |
26633 | rm -f conftest.err conftest.$ac_objext \ |
26634 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26635 | LIBS=$ac_check_lib_save_LIBS |
26636 | fi | |
26637 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26638 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26639 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26640 | ||
26641 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26642 | wxHAVE_XEXT_LIB=1 | |
26643 | ||
26644 | fi | |
26645 | ||
26646 | ||
26647 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26648 | save_CFLAGS="$CFLAGS" | |
26649 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26650 | ||
26651 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26652 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26653 | cat >conftest.$ac_ext <<_ACEOF | |
26654 | /* confdefs.h. */ | |
26655 | _ACEOF | |
26656 | cat confdefs.h >>conftest.$ac_ext | |
26657 | cat >>conftest.$ac_ext <<_ACEOF | |
26658 | /* end confdefs.h. */ | |
26659 | ||
26660 | #include <X11/Xlib.h> | |
26661 | #include <X11/extensions/shape.h> | |
26662 | ||
26663 | int | |
26664 | main () | |
26665 | { | |
26666 | ||
26667 | int dummy1, dummy2; | |
26668 | XShapeQueryExtension((Display*)NULL, | |
26669 | (int*)NULL, (int*)NULL); | |
26670 | ||
26671 | ; | |
26672 | return 0; | |
26673 | } | |
26674 | _ACEOF | |
26675 | rm -f conftest.$ac_objext | |
26676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26678 | ac_status=$? |
ac1cb8d3 VS |
26679 | grep -v '^ *+' conftest.er1 >conftest.err |
26680 | rm -f conftest.er1 | |
26681 | cat conftest.err >&5 | |
a848cd7e SC |
26682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26683 | (exit $ac_status); } && | |
5294a27e | 26684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26686 | (eval $ac_try) 2>&5 | |
26687 | ac_status=$? | |
26688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26689 | (exit $ac_status); }; } && | |
26690 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26692 | (eval $ac_try) 2>&5 | |
26693 | ac_status=$? | |
26694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26695 | (exit $ac_status); }; }; then | |
26696 | ||
26697 | cat >>confdefs.h <<\_ACEOF | |
26698 | #define HAVE_XSHAPE 1 | |
26699 | _ACEOF | |
26700 | ||
26701 | echo "$as_me:$LINENO: result: found" >&5 | |
26702 | echo "${ECHO_T}found" >&6 | |
26703 | ||
26704 | else | |
26705 | echo "$as_me: failed program was:" >&5 | |
26706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26707 | ||
26708 | ||
26709 | echo "$as_me:$LINENO: result: not found" >&5 | |
26710 | echo "${ECHO_T}not found" >&6 | |
26711 | ||
26712 | fi | |
ac1cb8d3 | 26713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26714 | CFLAGS="$save_CFLAGS" |
26715 | ||
26716 | fi | |
26717 | fi | |
26718 | ||
26719 | if test "$wxUSE_MAC" = 1; then | |
26720 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26721 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26722 | if test "$GCC" = yes; then | |
26723 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26724 | echo "${ECHO_T}gcc" >&6 | |
26725 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26726 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26727 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26728 | echo "${ECHO_T}xlc" >&6 | |
26729 | CPPFLAGS_PASCAL="-qmacpstr" | |
26730 | else | |
26731 | echo "$as_me:$LINENO: result: none" >&5 | |
26732 | echo "${ECHO_T}none" >&6 | |
26733 | fi | |
26734 | ||
1e9e8aba DE |
26735 | if test "x$wxUSE_UNIX" = "xyes"; then |
26736 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26737 | else | |
26738 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
26739 | fi | |
a848cd7e | 26740 | |
a848cd7e SC |
26741 | TOOLKIT=MAC |
26742 | GUIDIST=MACX_DIST | |
dd21ced8 | 26743 | WXBASEPORT="_carbon" |
a848cd7e SC |
26744 | fi |
26745 | ||
26746 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26747 | TOOLKIT=COCOA |
26748 | GUIDIST=COCOA_DIST | |
26749 | fi | |
26750 | ||
26751 | if test "$wxUSE_PM" = 1; then | |
26752 | TOOLKIT=PM | |
de59c161 RD |
26753 | GUIDIST=PM_DIST |
26754 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26755 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26756 | if test "${wx_cv_spbcdata+set}" = set; then | |
26757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26758 | else | |
26759 | ||
26760 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26761 | /* confdefs.h. */ |
26762 | _ACEOF | |
26763 | cat confdefs.h >>conftest.$ac_ext | |
26764 | cat >>conftest.$ac_ext <<_ACEOF | |
26765 | /* end confdefs.h. */ | |
26766 | ||
26767 | #define INCL_PM | |
26768 | #include <os2.h> | |
26769 | ||
26770 | int | |
26771 | main () | |
26772 | { | |
26773 | ||
26774 | SPBCDATA test; | |
26775 | ||
26776 | ; | |
26777 | return 0; | |
26778 | } | |
26779 | _ACEOF | |
26780 | rm -f conftest.$ac_objext | |
26781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26782 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26783 | ac_status=$? |
ac1cb8d3 VS |
26784 | grep -v '^ *+' conftest.er1 >conftest.err |
26785 | rm -f conftest.er1 | |
26786 | cat conftest.err >&5 | |
de59c161 RD |
26787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26788 | (exit $ac_status); } && | |
5294a27e | 26789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26791 | (eval $ac_try) 2>&5 | |
26792 | ac_status=$? | |
26793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26794 | (exit $ac_status); }; } && | |
26795 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26797 | (eval $ac_try) 2>&5 | |
26798 | ac_status=$? | |
26799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26800 | (exit $ac_status); }; }; then | |
26801 | wx_cv_spbcdata=yes | |
26802 | else | |
26803 | echo "$as_me: failed program was:" >&5 | |
26804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26805 | ||
26806 | wx_cv_spbcdata=no | |
26807 | ||
26808 | fi | |
ac1cb8d3 | 26809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26810 | |
26811 | ||
26812 | fi | |
26813 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26814 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26815 | ||
26816 | if test $wx_cv_spbcdata = "yes"; then | |
26817 | cat >>confdefs.h <<\_ACEOF | |
26818 | #define HAVE_SPBCDATA 1 | |
26819 | _ACEOF | |
26820 | ||
26821 | fi | |
a848cd7e SC |
26822 | fi |
26823 | ||
26824 | if test "$TOOLKIT" = "PM" ; then | |
26825 | TOOLKIT_DIR="os2" | |
26826 | else | |
26827 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26828 | fi | |
26829 | ||
a848cd7e | 26830 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26831 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26832 | WIDGET_SET=univ | |
a848cd7e SC |
26833 | fi |
26834 | ||
26835 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26836 | DISTDIR="wx\$(TOOLKIT)" | |
26837 | else | |
26838 | USE_GUI=0 | |
26839 | ||
26840 | TOOLKIT_DIR="base" | |
26841 | ||
26842 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26843 | TOOLKIT="MSW" |
a848cd7e SC |
26844 | fi |
26845 | ||
a848cd7e SC |
26846 | GUIDIST="BASE_DIST" |
26847 | DISTDIR="wxBase" | |
26848 | fi | |
26849 | ||
26850 | ||
26851 | ||
26852 | ||
26853 | IODBC_C_SRC="" | |
26854 | ||
26855 | ||
26856 | if test "$TOOLKIT" != "MSW" ; then | |
26857 | ||
26858 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26859 | ||
26860 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26861 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26862 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26863 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26865 | fi | |
26866 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26867 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26868 | else | |
26869 | # Is the header compilable? | |
26870 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26871 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26872 | cat >conftest.$ac_ext <<_ACEOF | |
26873 | /* confdefs.h. */ | |
26874 | _ACEOF | |
26875 | cat confdefs.h >>conftest.$ac_ext | |
26876 | cat >>conftest.$ac_ext <<_ACEOF | |
26877 | /* end confdefs.h. */ | |
26878 | $ac_includes_default | |
26879 | #include <sql.h> | |
26880 | _ACEOF | |
26881 | rm -f conftest.$ac_objext | |
26882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26883 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26884 | ac_status=$? |
ac1cb8d3 VS |
26885 | grep -v '^ *+' conftest.er1 >conftest.err |
26886 | rm -f conftest.er1 | |
26887 | cat conftest.err >&5 | |
a848cd7e SC |
26888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26889 | (exit $ac_status); } && | |
5294a27e | 26890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26892 | (eval $ac_try) 2>&5 | |
26893 | ac_status=$? | |
26894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26895 | (exit $ac_status); }; } && | |
26896 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26898 | (eval $ac_try) 2>&5 | |
26899 | ac_status=$? | |
26900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26901 | (exit $ac_status); }; }; then | |
26902 | ac_header_compiler=yes | |
26903 | else | |
26904 | echo "$as_me: failed program was:" >&5 | |
26905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26906 | ||
26907 | ac_header_compiler=no | |
26908 | fi | |
ac1cb8d3 | 26909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26910 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26911 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26912 | ||
26913 | # Is the header present? | |
26914 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26915 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26916 | cat >conftest.$ac_ext <<_ACEOF | |
26917 | /* confdefs.h. */ | |
26918 | _ACEOF | |
26919 | cat confdefs.h >>conftest.$ac_ext | |
26920 | cat >>conftest.$ac_ext <<_ACEOF | |
26921 | /* end confdefs.h. */ | |
26922 | #include <sql.h> | |
26923 | _ACEOF | |
26924 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26926 | ac_status=$? | |
26927 | grep -v '^ *+' conftest.er1 >conftest.err | |
26928 | rm -f conftest.er1 | |
26929 | cat conftest.err >&5 | |
26930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26931 | (exit $ac_status); } >/dev/null; then | |
26932 | if test -s conftest.err; then | |
26933 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26934 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26935 | else |
26936 | ac_cpp_err= | |
26937 | fi | |
26938 | else | |
26939 | ac_cpp_err=yes | |
26940 | fi | |
26941 | if test -z "$ac_cpp_err"; then | |
26942 | ac_header_preproc=yes | |
26943 | else | |
26944 | echo "$as_me: failed program was:" >&5 | |
26945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26946 | ||
26947 | ac_header_preproc=no | |
26948 | fi | |
26949 | rm -f conftest.err conftest.$ac_ext | |
26950 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26951 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26952 | ||
26953 | # So? What about this header? | |
ac1cb8d3 VS |
26954 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26955 | yes:no: ) | |
a848cd7e SC |
26956 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26957 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26958 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26959 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26960 | ac_header_preproc=yes | |
a848cd7e | 26961 | ;; |
ac1cb8d3 | 26962 | no:yes:* ) |
a848cd7e SC |
26963 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26964 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26965 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26966 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26967 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26968 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26969 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26970 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26971 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26972 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26973 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26974 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26975 | ( |
26976 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26977 | ## ----------------------------------------- ## |
26978 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26979 | ## ----------------------------------------- ## | |
a848cd7e SC |
26980 | _ASBOX |
26981 | ) | | |
26982 | sed "s/^/$as_me: WARNING: /" >&2 | |
26983 | ;; | |
26984 | esac | |
26985 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26986 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26987 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26989 | else | |
26990 | ac_cv_header_sql_h=$ac_header_preproc | |
26991 | fi | |
26992 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26993 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26994 | ||
26995 | fi | |
26996 | if test $ac_cv_header_sql_h = yes; then | |
26997 | found_sql_h=1 | |
26998 | fi | |
26999 | ||
27000 | ||
27001 | if test "x$found_sql_h" = "x1" ; then | |
27002 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
27003 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27004 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
27005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27006 | else | |
27007 | ac_check_lib_save_LIBS=$LIBS | |
27008 | LIBS="-liodbc $LIBS" | |
27009 | cat >conftest.$ac_ext <<_ACEOF | |
27010 | /* confdefs.h. */ | |
27011 | _ACEOF | |
27012 | cat confdefs.h >>conftest.$ac_ext | |
27013 | cat >>conftest.$ac_ext <<_ACEOF | |
27014 | /* end confdefs.h. */ | |
27015 | ||
27016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27017 | #ifdef __cplusplus | |
27018 | extern "C" | |
27019 | #endif | |
27020 | /* We use char because int might match the return type of a gcc2 | |
27021 | builtin and then its argument prototype would still apply. */ | |
27022 | char SQLAllocEnv (); | |
27023 | int | |
27024 | main () | |
27025 | { | |
27026 | SQLAllocEnv (); | |
27027 | ; | |
27028 | return 0; | |
27029 | } | |
27030 | _ACEOF | |
27031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27033 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27034 | ac_status=$? |
ac1cb8d3 VS |
27035 | grep -v '^ *+' conftest.er1 >conftest.err |
27036 | rm -f conftest.er1 | |
27037 | cat conftest.err >&5 | |
a848cd7e SC |
27038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27039 | (exit $ac_status); } && | |
5294a27e | 27040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27042 | (eval $ac_try) 2>&5 | |
27043 | ac_status=$? | |
27044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27045 | (exit $ac_status); }; } && | |
27046 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27048 | (eval $ac_try) 2>&5 | |
27049 | ac_status=$? | |
27050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27051 | (exit $ac_status); }; }; then | |
27052 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
27053 | else | |
27054 | echo "$as_me: failed program was:" >&5 | |
27055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27056 | ||
27057 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
27058 | fi | |
ac1cb8d3 VS |
27059 | rm -f conftest.err conftest.$ac_objext \ |
27060 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27061 | LIBS=$ac_check_lib_save_LIBS |
27062 | fi | |
27063 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
27064 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
27065 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
27066 | ODBC_LINK=" -liodbc" | |
27067 | else | |
27068 | ||
27069 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
27070 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
27071 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
27072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27073 | else | |
27074 | ac_check_lib_save_LIBS=$LIBS | |
27075 | LIBS="-lunixodbc $LIBS" | |
27076 | cat >conftest.$ac_ext <<_ACEOF | |
27077 | /* confdefs.h. */ | |
27078 | _ACEOF | |
27079 | cat confdefs.h >>conftest.$ac_ext | |
27080 | cat >>conftest.$ac_ext <<_ACEOF | |
27081 | /* end confdefs.h. */ | |
27082 | ||
27083 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27084 | #ifdef __cplusplus | |
27085 | extern "C" | |
27086 | #endif | |
27087 | /* We use char because int might match the return type of a gcc2 | |
27088 | builtin and then its argument prototype would still apply. */ | |
27089 | char SQLAllocEnv (); | |
27090 | int | |
27091 | main () | |
27092 | { | |
27093 | SQLAllocEnv (); | |
27094 | ; | |
27095 | return 0; | |
27096 | } | |
27097 | _ACEOF | |
27098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27100 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27101 | ac_status=$? |
ac1cb8d3 VS |
27102 | grep -v '^ *+' conftest.er1 >conftest.err |
27103 | rm -f conftest.er1 | |
27104 | cat conftest.err >&5 | |
a848cd7e SC |
27105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27106 | (exit $ac_status); } && | |
5294a27e | 27107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
27113 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27115 | (eval $ac_try) 2>&5 | |
27116 | ac_status=$? | |
27117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27118 | (exit $ac_status); }; }; then | |
27119 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
27120 | else | |
27121 | echo "$as_me: failed program was:" >&5 | |
27122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27123 | ||
27124 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
27125 | fi | |
ac1cb8d3 VS |
27126 | rm -f conftest.err conftest.$ac_objext \ |
27127 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27128 | LIBS=$ac_check_lib_save_LIBS |
27129 | fi | |
27130 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
27131 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27132 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
27133 | ODBC_LINK=" -lunixodbc" | |
27134 | else | |
27135 | ||
27136 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
27137 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27138 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
27139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27140 | else | |
27141 | ac_check_lib_save_LIBS=$LIBS | |
27142 | LIBS="-lodbc $LIBS" | |
27143 | cat >conftest.$ac_ext <<_ACEOF | |
27144 | /* confdefs.h. */ | |
27145 | _ACEOF | |
27146 | cat confdefs.h >>conftest.$ac_ext | |
27147 | cat >>conftest.$ac_ext <<_ACEOF | |
27148 | /* end confdefs.h. */ | |
27149 | ||
27150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27151 | #ifdef __cplusplus | |
27152 | extern "C" | |
27153 | #endif | |
27154 | /* We use char because int might match the return type of a gcc2 | |
27155 | builtin and then its argument prototype would still apply. */ | |
27156 | char SQLAllocEnv (); | |
27157 | int | |
27158 | main () | |
27159 | { | |
27160 | SQLAllocEnv (); | |
27161 | ; | |
27162 | return 0; | |
27163 | } | |
27164 | _ACEOF | |
27165 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27167 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27168 | ac_status=$? |
ac1cb8d3 VS |
27169 | grep -v '^ *+' conftest.er1 >conftest.err |
27170 | rm -f conftest.er1 | |
27171 | cat conftest.err >&5 | |
a848cd7e SC |
27172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27173 | (exit $ac_status); } && | |
5294a27e | 27174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27176 | (eval $ac_try) 2>&5 | |
27177 | ac_status=$? | |
27178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27179 | (exit $ac_status); }; } && | |
27180 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27182 | (eval $ac_try) 2>&5 | |
27183 | ac_status=$? | |
27184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27185 | (exit $ac_status); }; }; then | |
27186 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
27187 | else | |
27188 | echo "$as_me: failed program was:" >&5 | |
27189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27190 | ||
27191 | ac_cv_lib_odbc_SQLAllocEnv=no | |
27192 | fi | |
ac1cb8d3 VS |
27193 | rm -f conftest.err conftest.$ac_objext \ |
27194 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27195 | LIBS=$ac_check_lib_save_LIBS |
27196 | fi | |
27197 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
27198 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27199 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
27200 | ODBC_LINK=" -lodbc" | |
27201 | fi | |
27202 | ||
27203 | ||
27204 | fi | |
27205 | ||
27206 | ||
27207 | fi | |
27208 | ||
27209 | fi | |
27210 | if test "x$ODBC_LINK" = "x" ; then | |
27211 | if test "$wxUSE_ODBC" = "sys" ; then | |
27212 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27213 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27214 | { (exit 1); exit 1; }; } | |
27215 | else | |
27216 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27217 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27218 | wxUSE_ODBC=builtin | |
27219 | fi | |
27220 | else | |
27221 | wxUSE_ODBC=sys | |
27222 | fi | |
27223 | fi | |
27224 | if test "$wxUSE_ODBC" != "no" ; then | |
27225 | cat >>confdefs.h <<\_ACEOF | |
27226 | #define wxUSE_ODBC 1 | |
27227 | _ACEOF | |
27228 | ||
27229 | if test "$wxUSE_ODBC" = "builtin" ; then | |
27230 | cat >>confdefs.h <<\_ACEOF | |
27231 | #define wxUSE_BUILTIN_IODBC 1 | |
27232 | _ACEOF | |
27233 | ||
27234 | fi | |
27235 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
27236 | ||
27237 | WXODBCFLAG="-D_IODBC_" | |
27238 | fi | |
27239 | fi | |
27240 | ||
a848cd7e | 27241 | |
01cb68df | 27242 | |
a848cd7e | 27243 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 27244 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
27245 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
27246 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27247 | ||
27248 | ac_find_libraries= | |
27249 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27250 | do | |
27251 | for ac_extension in a so sl dylib; do | |
27252 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27253 | ac_find_libraries=$ac_dir | |
27254 | break 2 | |
27255 | fi | |
27256 | done | |
27257 | done | |
27258 | ||
27259 | if test "$ac_find_libraries" != "" ; then | |
27260 | ||
27261 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27262 | result=$? | |
27263 | if test $result = 0; then | |
27264 | ac_path_to_link="" | |
27265 | else | |
27266 | ac_path_to_link=" -L$ac_find_libraries" | |
27267 | fi | |
27268 | ||
27269 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27270 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27271 | fi | |
27272 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27273 | echo "$as_me:$LINENO: result: yes" >&5 | |
27274 | echo "${ECHO_T}yes" >&6 | |
27275 | ||
27276 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27277 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27278 | ||
27279 | ac_find_libraries= | |
27280 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27281 | do | |
27282 | for ac_extension in a so sl dylib; do | |
27283 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27284 | ac_find_libraries=$ac_dir | |
27285 | break 2 | |
27286 | fi | |
27287 | done | |
27288 | done | |
27289 | ||
27290 | if test "$ac_find_libraries" != "" ; then | |
27291 | echo "$as_me:$LINENO: result: yes" >&5 | |
27292 | echo "${ECHO_T}yes" >&6 | |
27293 | ||
27294 | for ac_header in X11/extensions/xf86vmode.h | |
27295 | do | |
27296 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27301 | else | |
27302 | cat >conftest.$ac_ext <<_ACEOF | |
27303 | /* confdefs.h. */ | |
27304 | _ACEOF | |
27305 | cat confdefs.h >>conftest.$ac_ext | |
27306 | cat >>conftest.$ac_ext <<_ACEOF | |
27307 | /* end confdefs.h. */ | |
27308 | ||
27309 | #if HAVE_X11_XLIB_H | |
27310 | #include <X11/Xlib.h> | |
27311 | #endif | |
27312 | ||
27313 | ||
27314 | #include <$ac_header> | |
27315 | _ACEOF | |
27316 | rm -f conftest.$ac_objext | |
27317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27319 | ac_status=$? |
ac1cb8d3 VS |
27320 | grep -v '^ *+' conftest.er1 >conftest.err |
27321 | rm -f conftest.er1 | |
27322 | cat conftest.err >&5 | |
a848cd7e SC |
27323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27324 | (exit $ac_status); } && | |
5294a27e | 27325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27327 | (eval $ac_try) 2>&5 | |
27328 | ac_status=$? | |
27329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27330 | (exit $ac_status); }; } && | |
27331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27333 | (eval $ac_try) 2>&5 | |
27334 | ac_status=$? | |
27335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27336 | (exit $ac_status); }; }; then | |
27337 | eval "$as_ac_Header=yes" | |
27338 | else | |
27339 | echo "$as_me: failed program was:" >&5 | |
27340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27341 | ||
27342 | eval "$as_ac_Header=no" | |
27343 | fi | |
ac1cb8d3 | 27344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27345 | fi |
27346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27348 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27349 | cat >>confdefs.h <<_ACEOF | |
27350 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27351 | _ACEOF | |
27352 | ||
27353 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27354 | ||
27355 | fi | |
27356 | ||
27357 | done | |
27358 | ||
27359 | else | |
27360 | echo "$as_me:$LINENO: result: no" >&5 | |
27361 | echo "${ECHO_T}no" >&6 | |
27362 | fi | |
27363 | ||
27364 | else | |
27365 | echo "$as_me:$LINENO: result: no" >&5 | |
27366 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27367 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27368 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27369 | wxUSE_DISPLAY="no" |
27370 | fi | |
01cb68df RG |
27371 | elif test "$wxUSE_MSW" = 1; then |
27372 | ||
27373 | ||
27374 | for ac_header in multimon.h ddraw.h | |
27375 | do | |
27376 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 27377 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
27378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
27379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 27381 | else |
5294a27e | 27382 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
27383 | /* confdefs.h. */ |
27384 | _ACEOF | |
27385 | cat confdefs.h >>conftest.$ac_ext | |
27386 | cat >>conftest.$ac_ext <<_ACEOF | |
27387 | /* end confdefs.h. */ | |
5294a27e VZ |
27388 | #include <windows.h> |
27389 | ||
01cb68df RG |
27390 | #include <$ac_header> |
27391 | _ACEOF | |
27392 | rm -f conftest.$ac_objext | |
27393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27394 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27395 | ac_status=$? |
ac1cb8d3 VS |
27396 | grep -v '^ *+' conftest.er1 >conftest.err |
27397 | rm -f conftest.er1 | |
27398 | cat conftest.err >&5 | |
01cb68df RG |
27399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27400 | (exit $ac_status); } && | |
5294a27e | 27401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27403 | (eval $ac_try) 2>&5 | |
27404 | ac_status=$? | |
27405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27406 | (exit $ac_status); }; } && | |
27407 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27409 | (eval $ac_try) 2>&5 | |
27410 | ac_status=$? | |
27411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27412 | (exit $ac_status); }; }; then | |
5294a27e | 27413 | eval "$as_ac_Header=yes" |
01cb68df RG |
27414 | else |
27415 | echo "$as_me: failed program was:" >&5 | |
27416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27417 | ||
5294a27e | 27418 | eval "$as_ac_Header=no" |
01cb68df | 27419 | fi |
ac1cb8d3 | 27420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27421 | fi |
27422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
27424 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
27425 | cat >>confdefs.h <<_ACEOF | |
27426 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27427 | _ACEOF | |
27428 | ||
27429 | else | |
27430 | ||
5294a27e VZ |
27431 | wxUSE_DISPLAY="no" |
27432 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 27433 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
27434 | |
27435 | fi | |
27436 | ||
27437 | done | |
27438 | ||
a848cd7e SC |
27439 | fi |
27440 | fi | |
27441 | ||
27442 | ||
3b57de8b RL |
27443 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
27444 | if test "$wxUSE_MSW" = 1; then | |
27445 | wxUSE_DIRECTSHOW="yes" | |
27446 | ||
27447 | for ac_header in dshow.h | |
27448 | do | |
27449 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 27450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3b57de8b RL |
27451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
27452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3b57de8b | 27454 | else |
5294a27e | 27455 | cat >conftest.$ac_ext <<_ACEOF |
3b57de8b RL |
27456 | /* confdefs.h. */ |
27457 | _ACEOF | |
27458 | cat confdefs.h >>conftest.$ac_ext | |
27459 | cat >>conftest.$ac_ext <<_ACEOF | |
27460 | /* end confdefs.h. */ | |
5294a27e VZ |
27461 | #include <windows.h> |
27462 | ||
3b57de8b RL |
27463 | #include <$ac_header> |
27464 | _ACEOF | |
27465 | rm -f conftest.$ac_objext | |
27466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27467 | (eval $ac_compile) 2>conftest.er1 | |
27468 | ac_status=$? | |
27469 | grep -v '^ *+' conftest.er1 >conftest.err | |
27470 | rm -f conftest.er1 | |
27471 | cat conftest.err >&5 | |
27472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27473 | (exit $ac_status); } && | |
5294a27e | 27474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3b57de8b RL |
27475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27476 | (eval $ac_try) 2>&5 | |
27477 | ac_status=$? | |
27478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27479 | (exit $ac_status); }; } && | |
27480 | { ac_try='test -s conftest.$ac_objext' | |
27481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27482 | (eval $ac_try) 2>&5 | |
27483 | ac_status=$? | |
27484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27485 | (exit $ac_status); }; }; then | |
5294a27e | 27486 | eval "$as_ac_Header=yes" |
3b57de8b RL |
27487 | else |
27488 | echo "$as_me: failed program was:" >&5 | |
27489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27490 | ||
5294a27e | 27491 | eval "$as_ac_Header=no" |
3b57de8b RL |
27492 | fi |
27493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3b57de8b RL |
27494 | fi |
27495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3b57de8b RL |
27497 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
27498 | cat >>confdefs.h <<_ACEOF | |
27499 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27500 | _ACEOF | |
27501 | ||
27502 | else | |
27503 | ||
5294a27e VZ |
27504 | wxUSE_DIRECTSHOW="no" |
27505 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
3b57de8b RL |
27506 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} |
27507 | ||
27508 | fi | |
27509 | ||
27510 | done | |
27511 | ||
27512 | ||
27513 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
5294a27e | 27514 | cat >>confdefs.h <<\_ACEOF |
3b57de8b RL |
27515 | #define wxUSE_DIRECTSHOW 1 |
27516 | _ACEOF | |
27517 | ||
5294a27e | 27518 | LIBS="$LIBS -lstrmiids" |
a98bf0c0 | 27519 | fi |
3b57de8b | 27520 | fi |
7e4a1c28 | 27521 | |
fa9ad408 | 27522 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" |
7e4a1c28 RN |
27523 | cat >>confdefs.h <<\_ACEOF |
27524 | #define wxUSE_MEDIACTRL 1 | |
27525 | _ACEOF | |
27526 | ||
3b57de8b RL |
27527 | fi |
27528 | ||
27529 | ||
a848cd7e SC |
27530 | USE_OPENGL=0 |
27531 | if test "$wxUSE_OPENGL" = "yes"; then | |
27532 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27533 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27534 | elif test "$wxUSE_MSW" = 1; then | |
27535 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27536 | else | |
27537 | ||
27538 | ||
27539 | ac_find_includes= | |
27540 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27541 | do | |
27542 | if test -f "$ac_dir/GL/gl.h"; then | |
27543 | ac_find_includes=$ac_dir | |
27544 | break | |
27545 | fi | |
27546 | done | |
27547 | ||
27548 | if test "$ac_find_includes" != "" ; then | |
27549 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27550 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27551 | ||
27552 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27553 | ac_path_to_include="" | |
27554 | else | |
27555 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27556 | result=$? | |
27557 | if test $result = 0; then | |
27558 | ac_path_to_include="" | |
27559 | else | |
27560 | ac_path_to_include=" -I$ac_find_includes" | |
27561 | fi | |
27562 | fi | |
27563 | ||
27564 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27565 | fi | |
27566 | ||
27567 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27568 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27569 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27570 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27572 | fi | |
27573 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27574 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27575 | else | |
27576 | # Is the header compilable? | |
27577 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27578 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27579 | cat >conftest.$ac_ext <<_ACEOF | |
27580 | /* confdefs.h. */ | |
27581 | _ACEOF | |
27582 | cat confdefs.h >>conftest.$ac_ext | |
27583 | cat >>conftest.$ac_ext <<_ACEOF | |
27584 | /* end confdefs.h. */ | |
27585 | $ac_includes_default | |
27586 | #include <GL/gl.h> | |
27587 | _ACEOF | |
27588 | rm -f conftest.$ac_objext | |
27589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27590 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27591 | ac_status=$? |
ac1cb8d3 VS |
27592 | grep -v '^ *+' conftest.er1 >conftest.err |
27593 | rm -f conftest.er1 | |
27594 | cat conftest.err >&5 | |
a848cd7e SC |
27595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27596 | (exit $ac_status); } && | |
5294a27e | 27597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27599 | (eval $ac_try) 2>&5 | |
27600 | ac_status=$? | |
27601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27602 | (exit $ac_status); }; } && | |
27603 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27605 | (eval $ac_try) 2>&5 | |
27606 | ac_status=$? | |
27607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27608 | (exit $ac_status); }; }; then | |
27609 | ac_header_compiler=yes | |
27610 | else | |
27611 | echo "$as_me: failed program was:" >&5 | |
27612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27613 | ||
27614 | ac_header_compiler=no | |
27615 | fi | |
ac1cb8d3 | 27616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27617 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27618 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27619 | ||
27620 | # Is the header present? | |
27621 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27622 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27623 | cat >conftest.$ac_ext <<_ACEOF | |
27624 | /* confdefs.h. */ | |
27625 | _ACEOF | |
27626 | cat confdefs.h >>conftest.$ac_ext | |
27627 | cat >>conftest.$ac_ext <<_ACEOF | |
27628 | /* end confdefs.h. */ | |
27629 | #include <GL/gl.h> | |
27630 | _ACEOF | |
27631 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27632 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27633 | ac_status=$? | |
27634 | grep -v '^ *+' conftest.er1 >conftest.err | |
27635 | rm -f conftest.er1 | |
27636 | cat conftest.err >&5 | |
27637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27638 | (exit $ac_status); } >/dev/null; then | |
27639 | if test -s conftest.err; then | |
27640 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27641 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27642 | else |
27643 | ac_cpp_err= | |
27644 | fi | |
27645 | else | |
27646 | ac_cpp_err=yes | |
27647 | fi | |
27648 | if test -z "$ac_cpp_err"; then | |
27649 | ac_header_preproc=yes | |
27650 | else | |
27651 | echo "$as_me: failed program was:" >&5 | |
27652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27653 | ||
27654 | ac_header_preproc=no | |
27655 | fi | |
27656 | rm -f conftest.err conftest.$ac_ext | |
27657 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27658 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27659 | ||
27660 | # So? What about this header? | |
ac1cb8d3 VS |
27661 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27662 | yes:no: ) | |
a848cd7e SC |
27663 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27664 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27665 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27666 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27667 | ac_header_preproc=yes | |
a848cd7e | 27668 | ;; |
ac1cb8d3 | 27669 | no:yes:* ) |
a848cd7e SC |
27670 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27671 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27672 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27673 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27674 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27675 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27676 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27677 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27678 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27679 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27680 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27681 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27682 | ( |
27683 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27684 | ## ----------------------------------------- ## |
27685 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27686 | ## ----------------------------------------- ## | |
a848cd7e SC |
27687 | _ASBOX |
27688 | ) | | |
27689 | sed "s/^/$as_me: WARNING: /" >&2 | |
27690 | ;; | |
27691 | esac | |
27692 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27693 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27694 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27696 | else | |
27697 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27698 | fi | |
27699 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27700 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27701 | ||
27702 | fi | |
27703 | if test $ac_cv_header_GL_gl_h = yes; then | |
27704 | ||
27705 | found_gl=0 | |
27706 | ||
27707 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27708 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27709 | ||
27710 | ac_find_libraries= | |
27711 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27712 | do | |
27713 | for ac_extension in a so sl dylib; do | |
27714 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27715 | ac_find_libraries=$ac_dir | |
27716 | break 2 | |
27717 | fi | |
27718 | done | |
27719 | done | |
27720 | ||
27721 | if test "$ac_find_libraries" != "" ; then | |
27722 | ||
27723 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27724 | result=$? | |
27725 | if test $result = 0; then | |
27726 | ac_path_to_link="" | |
27727 | else | |
27728 | ac_path_to_link=" -L$ac_find_libraries" | |
27729 | fi | |
27730 | ||
27731 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27732 | LDFLAGS_GL="$ac_path_to_link" | |
27733 | fi | |
27734 | ||
27735 | ||
27736 | ac_find_libraries= | |
27737 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27738 | do | |
27739 | for ac_extension in a so sl dylib; do | |
27740 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27741 | ac_find_libraries=$ac_dir | |
27742 | break 2 | |
27743 | fi | |
27744 | done | |
27745 | done | |
27746 | ||
27747 | if test "$ac_find_libraries" != "" ; then | |
27748 | ||
27749 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27750 | result=$? | |
27751 | if test $result = 0; then | |
27752 | ac_path_to_link="" | |
27753 | else | |
27754 | ac_path_to_link=" -L$ac_find_libraries" | |
27755 | fi | |
27756 | ||
27757 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27758 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27759 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27760 | fi | |
27761 | ||
27762 | found_gl=1 | |
27763 | OPENGL_LIBS="-lGL -lGLU" | |
27764 | echo "$as_me:$LINENO: result: yes" >&5 | |
27765 | echo "${ECHO_T}yes" >&6 | |
27766 | fi | |
27767 | fi | |
27768 | ||
27769 | if test "$found_gl" != 1; then | |
27770 | echo "$as_me:$LINENO: result: no" >&5 | |
27771 | echo "${ECHO_T}no" >&6 | |
27772 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27773 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27774 | ||
27775 | ac_find_libraries= | |
27776 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27777 | do | |
27778 | for ac_extension in a so sl dylib; do | |
27779 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27780 | ac_find_libraries=$ac_dir | |
27781 | break 2 | |
27782 | fi | |
27783 | done | |
27784 | done | |
27785 | ||
27786 | if test "$ac_find_libraries" != "" ; then | |
27787 | ||
27788 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27789 | result=$? | |
27790 | if test $result = 0; then | |
27791 | ac_path_to_link="" | |
27792 | else | |
27793 | ac_path_to_link=" -L$ac_find_libraries" | |
27794 | fi | |
27795 | ||
27796 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27797 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27798 | echo "$as_me:$LINENO: result: yes" >&5 | |
27799 | echo "${ECHO_T}yes" >&6 | |
27800 | else | |
27801 | echo "$as_me:$LINENO: result: no" >&5 | |
27802 | echo "${ECHO_T}no" >&6 | |
27803 | fi | |
27804 | fi | |
27805 | ||
27806 | fi | |
27807 | ||
27808 | ||
27809 | ||
27810 | if test "x$OPENGL_LIBS" = "x"; then | |
27811 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27812 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27813 | { (exit 1); exit 1; }; } | |
27814 | fi | |
27815 | fi | |
27816 | ||
27817 | if test "$wxUSE_OPENGL" = "yes"; then | |
27818 | USE_OPENGL=1 | |
27819 | cat >>confdefs.h <<\_ACEOF | |
27820 | #define wxUSE_OPENGL 1 | |
27821 | _ACEOF | |
27822 | ||
27823 | cat >>confdefs.h <<\_ACEOF | |
27824 | #define wxUSE_GLCANVAS 1 | |
27825 | _ACEOF | |
27826 | ||
27827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27828 | fi | |
27829 | fi | |
27830 | ||
a848cd7e SC |
27831 | |
27832 | if test -n "$TOOLKIT" ; then | |
27833 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27834 | fi | |
27835 | ||
a848cd7e SC |
27836 | |
27837 | ||
27838 | if test "$wxUSE_SHARED" = "yes"; then | |
27839 | case "${host}" in | |
27840 | *-pc-msdosdjgpp ) | |
27841 | wxUSE_SHARED=no | |
27842 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27843 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27844 | ;; | |
27845 | esac | |
27846 | fi | |
27847 | ||
a848cd7e | 27848 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
27849 | |
27850 | ||
27851 | found_versioning=no | |
27852 | ||
27853 | ||
27854 | if test $found_versioning = no ; then | |
27855 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27856 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27857 | if test "${wx_cv_version_script+set}" = set; then | |
27858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27859 | else | |
27860 | ||
27861 | echo "VER_1 { *; };" >conftest.sym | |
27862 | echo "int main() { return 0; }" >conftest.cpp | |
27863 | ||
27864 | if { ac_try=' | |
27865 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27866 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27868 | (eval $ac_try) 2>&5 | |
27869 | ac_status=$? | |
27870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27871 | (exit $ac_status); }; } ; then | |
27872 | if test -s conftest.stderr ; then | |
27873 | wx_cv_version_script=no | |
27874 | else | |
27875 | wx_cv_version_script=yes | |
27876 | fi | |
27877 | else | |
27878 | wx_cv_version_script=no | |
27879 | fi | |
27880 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27881 | ||
27882 | fi | |
27883 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27884 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27885 | if test $wx_cv_version_script = yes ; then | |
27886 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27887 | fi | |
27888 | fi | |
27889 | ||
27890 | ||
27891 | case "${host}" in | |
27892 | *-*-linux* | *-*-gnu* ) | |
27893 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27894 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27895 | ;; |
27896 | ||
27897 | *-*-solaris2* ) | |
27898 | if test "$GCC" = yes ; then | |
27899 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27900 | ||
27901 | saveLdflags="$LDFLAGS" | |
27902 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27903 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27904 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27905 | cat >conftest.$ac_ext <<_ACEOF | |
27906 | /* confdefs.h. */ | |
27907 | _ACEOF | |
27908 | cat confdefs.h >>conftest.$ac_ext | |
27909 | cat >>conftest.$ac_ext <<_ACEOF | |
27910 | /* end confdefs.h. */ | |
27911 | ||
27912 | int | |
27913 | main () | |
27914 | { | |
27915 | ||
27916 | ; | |
27917 | return 0; | |
27918 | } | |
27919 | _ACEOF | |
27920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27922 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27923 | ac_status=$? |
ac1cb8d3 VS |
27924 | grep -v '^ *+' conftest.er1 >conftest.err |
27925 | rm -f conftest.er1 | |
27926 | cat conftest.err >&5 | |
a848cd7e SC |
27927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27928 | (exit $ac_status); } && | |
5294a27e | 27929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27931 | (eval $ac_try) 2>&5 | |
27932 | ac_status=$? | |
27933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27934 | (exit $ac_status); }; } && | |
27935 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27937 | (eval $ac_try) 2>&5 | |
27938 | ac_status=$? | |
27939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27940 | (exit $ac_status); }; }; then | |
27941 | ||
27942 | echo "$as_me:$LINENO: result: yes" >&5 | |
27943 | echo "${ECHO_T}yes" >&6 | |
27944 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27945 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27946 | |
27947 | else | |
27948 | echo "$as_me: failed program was:" >&5 | |
27949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27950 | ||
27951 | ||
27952 | echo "$as_me:$LINENO: result: no" >&5 | |
27953 | echo "${ECHO_T}no" >&6 | |
27954 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27955 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27956 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27957 | cat >conftest.$ac_ext <<_ACEOF | |
27958 | /* confdefs.h. */ | |
27959 | _ACEOF | |
27960 | cat confdefs.h >>conftest.$ac_ext | |
27961 | cat >>conftest.$ac_ext <<_ACEOF | |
27962 | /* end confdefs.h. */ | |
27963 | ||
27964 | int | |
27965 | main () | |
27966 | { | |
27967 | ||
27968 | ; | |
27969 | return 0; | |
27970 | } | |
27971 | _ACEOF | |
27972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27974 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27975 | ac_status=$? |
ac1cb8d3 VS |
27976 | grep -v '^ *+' conftest.er1 >conftest.err |
27977 | rm -f conftest.er1 | |
27978 | cat conftest.err >&5 | |
a848cd7e SC |
27979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27980 | (exit $ac_status); } && | |
5294a27e | 27981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27983 | (eval $ac_try) 2>&5 | |
27984 | ac_status=$? | |
27985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27986 | (exit $ac_status); }; } && | |
27987 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27989 | (eval $ac_try) 2>&5 | |
27990 | ac_status=$? | |
27991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27992 | (exit $ac_status); }; }; then | |
27993 | ||
ffa0583f | 27994 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 27995 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
27996 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
27997 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
27998 | ||
a848cd7e SC |
27999 | else |
28000 | echo "$as_me: failed program was:" >&5 | |
28001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28002 | ||
28003 | ||
28004 | echo "$as_me:$LINENO: result: no" >&5 | |
28005 | echo "${ECHO_T}no" >&6 | |
28006 | ||
28007 | fi | |
ac1cb8d3 VS |
28008 | rm -f conftest.err conftest.$ac_objext \ |
28009 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28010 | |
28011 | fi | |
ac1cb8d3 VS |
28012 | rm -f conftest.err conftest.$ac_objext \ |
28013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28014 | LDFLAGS="$saveLdflags" |
28015 | else | |
a848cd7e | 28016 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 28017 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
28018 | fi |
28019 | ;; | |
28020 | ||
28021 | powerpc-*-darwin* ) | |
28022 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
28023 | cat <<EOF >change-install-names | |
28024 | #!/bin/sh | |
28025 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28026 | inst_cmd="install_name_tool " | |
28027 | for i in \${libnames} ; do | |
28028 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28029 | done | |
28030 | \${inst_cmd} \${3} | |
28031 | EOF | |
28032 | chmod +x change-install-names | |
28033 | ;; | |
28034 | ||
28035 | *-*-cygwin* | *-*-mingw32* ) | |
28036 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
28037 | ;; | |
28038 | ||
28039 | esac | |
ceec2216 | 28040 | |
ffa0583f RL |
28041 | if test $wxUSE_RPATH = "no"; then |
28042 | SAMPLES_RPATH_FLAG='' | |
28043 | SAMPLES_RPATH_POSTLINK='' | |
28044 | WXCONFIG_RPATH='' | |
28045 | fi | |
28046 | ||
28047 | SHARED=1 | |
28048 | ||
28049 | else | |
28050 | ||
ceec2216 RL |
28051 | config_linkage_component="-static" |
28052 | SHARED=0 | |
ffa0583f | 28053 | |
ceec2216 | 28054 | fi |
a848cd7e | 28055 | |
a848cd7e | 28056 | |
ceec2216 RL |
28057 | UNICODE=0 |
28058 | lib_unicode_suffix= | |
28059 | WX_CHARTYPE="ansi" | |
28060 | if test "$wxUSE_UNICODE" = "yes"; then | |
28061 | lib_unicode_suffix=u | |
28062 | WX_CHARTYPE="unicode" | |
28063 | UNICODE=1 | |
a848cd7e SC |
28064 | fi |
28065 | ||
ceec2216 RL |
28066 | lib_debug_suffix= |
28067 | WX_DEBUGTYPE="release" | |
28068 | DEBUG_FLAG=0 | |
28069 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
28070 | lib_debug_suffix=d | |
28071 | WX_DEBUGTYPE="debug" | |
28072 | DEBUG_FLAG=1 | |
28073 | fi | |
a848cd7e | 28074 | |
ceec2216 RL |
28075 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
28076 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 28077 | |
ceec2216 RL |
28078 | DEBUG_INFO=0 |
28079 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
28080 | DEBUG_INFO=1 | |
28081 | fi | |
a848cd7e | 28082 | |
ceec2216 | 28083 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 28084 | |
ceec2216 | 28085 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 28086 | |
ceec2216 | 28087 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 28088 | |
ceec2216 RL |
28089 | if test "$cross_compiling" = "yes"; then |
28090 | HOST_SUFFIX="-$host_alias" | |
28091 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
28092 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
28093 | fi |
28094 | ||
dd21ced8 | 28095 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
28096 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
28097 | ||
28098 | ||
28099 | ||
a848cd7e | 28100 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
28101 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
28102 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 28103 | |
a848cd7e | 28104 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
28105 | |
28106 | # Extract the first word of "Rez", so it can be a program name with args. | |
28107 | set dummy Rez; ac_word=$2 | |
28108 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28110 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28112 | else | |
28113 | if test -n "$RESCOMP"; then | |
28114 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28115 | else | |
28116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28117 | for as_dir in $PATH | |
28118 | do | |
28119 | IFS=$as_save_IFS | |
28120 | test -z "$as_dir" && as_dir=. | |
28121 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28122 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28123 | ac_cv_prog_RESCOMP="Rez" | |
28124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28125 | break 2 | |
28126 | fi | |
28127 | done | |
28128 | done | |
28129 | ||
28130 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
28131 | fi | |
28132 | fi | |
28133 | RESCOMP=$ac_cv_prog_RESCOMP | |
28134 | if test -n "$RESCOMP"; then | |
28135 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28136 | echo "${ECHO_T}$RESCOMP" >&6 | |
28137 | else | |
28138 | echo "$as_me:$LINENO: result: no" >&5 | |
28139 | echo "${ECHO_T}no" >&6 | |
28140 | fi | |
28141 | ||
28142 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28143 | set dummy DeRez; ac_word=$2 | |
28144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28146 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28148 | else | |
28149 | if test -n "$DEREZ"; then | |
28150 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28151 | else | |
28152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28153 | for as_dir in $PATH | |
28154 | do | |
28155 | IFS=$as_save_IFS | |
28156 | test -z "$as_dir" && as_dir=. | |
28157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28158 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28159 | ac_cv_prog_DEREZ="DeRez" | |
28160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28161 | break 2 | |
28162 | fi | |
28163 | done | |
28164 | done | |
28165 | ||
28166 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28167 | fi | |
28168 | fi | |
28169 | DEREZ=$ac_cv_prog_DEREZ | |
28170 | if test -n "$DEREZ"; then | |
28171 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28172 | echo "${ECHO_T}$DEREZ" >&6 | |
28173 | else | |
28174 | echo "$as_me:$LINENO: result: no" >&5 | |
28175 | echo "${ECHO_T}no" >&6 | |
28176 | fi | |
28177 | ||
28178 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28179 | set dummy SetFile; ac_word=$2 | |
28180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28182 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28184 | else | |
28185 | if test -n "$SETFILE"; then | |
28186 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28187 | else | |
28188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28189 | for as_dir in $PATH | |
28190 | do | |
28191 | IFS=$as_save_IFS | |
28192 | test -z "$as_dir" && as_dir=. | |
28193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28194 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28195 | ac_cv_prog_SETFILE="SetFile" | |
28196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28197 | break 2 | |
28198 | fi | |
28199 | done | |
28200 | done | |
28201 | ||
28202 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28203 | fi | |
28204 | fi | |
28205 | SETFILE=$ac_cv_prog_SETFILE | |
28206 | if test -n "$SETFILE"; then | |
28207 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28208 | echo "${ECHO_T}$SETFILE" >&6 | |
28209 | else | |
28210 | echo "$as_me:$LINENO: result: no" >&5 | |
28211 | echo "${ECHO_T}no" >&6 | |
28212 | fi | |
28213 | ||
28214 | ||
28215 | MACSETFILE="\$(SETFILE)" | |
28216 | ||
28217 | if test "$wxUSE_MAC" = 1; then | |
28218 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28219 | ||
28220 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28221 | else | |
28222 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28223 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28224 | fi | |
28225 | else | |
ffa0583f RL |
28226 | MACSETFILE="@true" |
28227 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
28228 | |
28229 | if test "$wxUSE_PM" = 1; then | |
28230 | MACRESCOMP="emxbind -ep" | |
28231 | else | |
ffa0583f | 28232 | MACRESCOMP="@true" |
a848cd7e SC |
28233 | fi |
28234 | fi | |
28235 | ||
28236 | ||
28237 | ||
28238 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28239 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28240 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28242 | else | |
28243 | cat >conftest.$ac_ext <<_ACEOF | |
28244 | /* confdefs.h. */ | |
28245 | _ACEOF | |
28246 | cat confdefs.h >>conftest.$ac_ext | |
28247 | cat >>conftest.$ac_ext <<_ACEOF | |
28248 | /* end confdefs.h. */ | |
28249 | $ac_includes_default | |
28250 | int | |
28251 | main () | |
28252 | { | |
28253 | if ((mode_t *) 0) | |
28254 | return 0; | |
28255 | if (sizeof (mode_t)) | |
28256 | return 0; | |
28257 | ; | |
28258 | return 0; | |
28259 | } | |
28260 | _ACEOF | |
28261 | rm -f conftest.$ac_objext | |
28262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28264 | ac_status=$? |
ac1cb8d3 VS |
28265 | grep -v '^ *+' conftest.er1 >conftest.err |
28266 | rm -f conftest.er1 | |
28267 | cat conftest.err >&5 | |
a848cd7e SC |
28268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28269 | (exit $ac_status); } && | |
5294a27e | 28270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28272 | (eval $ac_try) 2>&5 | |
28273 | ac_status=$? | |
28274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28275 | (exit $ac_status); }; } && | |
28276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28278 | (eval $ac_try) 2>&5 | |
28279 | ac_status=$? | |
28280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28281 | (exit $ac_status); }; }; then | |
28282 | ac_cv_type_mode_t=yes | |
28283 | else | |
28284 | echo "$as_me: failed program was:" >&5 | |
28285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28286 | ||
28287 | ac_cv_type_mode_t=no | |
28288 | fi | |
ac1cb8d3 | 28289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28290 | fi |
28291 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28292 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28293 | if test $ac_cv_type_mode_t = yes; then | |
28294 | : | |
28295 | else | |
28296 | ||
28297 | cat >>confdefs.h <<_ACEOF | |
28298 | #define mode_t int | |
28299 | _ACEOF | |
28300 | ||
28301 | fi | |
28302 | ||
28303 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28304 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28305 | if test "${ac_cv_type_off_t+set}" = set; then | |
28306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28307 | else | |
28308 | cat >conftest.$ac_ext <<_ACEOF | |
28309 | /* confdefs.h. */ | |
28310 | _ACEOF | |
28311 | cat confdefs.h >>conftest.$ac_ext | |
28312 | cat >>conftest.$ac_ext <<_ACEOF | |
28313 | /* end confdefs.h. */ | |
28314 | $ac_includes_default | |
28315 | int | |
28316 | main () | |
28317 | { | |
28318 | if ((off_t *) 0) | |
28319 | return 0; | |
28320 | if (sizeof (off_t)) | |
28321 | return 0; | |
28322 | ; | |
28323 | return 0; | |
28324 | } | |
28325 | _ACEOF | |
28326 | rm -f conftest.$ac_objext | |
28327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28328 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28329 | ac_status=$? |
ac1cb8d3 VS |
28330 | grep -v '^ *+' conftest.er1 >conftest.err |
28331 | rm -f conftest.er1 | |
28332 | cat conftest.err >&5 | |
a848cd7e SC |
28333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28334 | (exit $ac_status); } && | |
5294a27e | 28335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28337 | (eval $ac_try) 2>&5 | |
28338 | ac_status=$? | |
28339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28340 | (exit $ac_status); }; } && | |
28341 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28343 | (eval $ac_try) 2>&5 | |
28344 | ac_status=$? | |
28345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28346 | (exit $ac_status); }; }; then | |
28347 | ac_cv_type_off_t=yes | |
28348 | else | |
28349 | echo "$as_me: failed program was:" >&5 | |
28350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28351 | ||
28352 | ac_cv_type_off_t=no | |
28353 | fi | |
ac1cb8d3 | 28354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28355 | fi |
28356 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28357 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28358 | if test $ac_cv_type_off_t = yes; then | |
28359 | : | |
28360 | else | |
28361 | ||
28362 | cat >>confdefs.h <<_ACEOF | |
28363 | #define off_t long | |
28364 | _ACEOF | |
28365 | ||
28366 | fi | |
28367 | ||
28368 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28369 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28370 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28372 | else | |
28373 | cat >conftest.$ac_ext <<_ACEOF | |
28374 | /* confdefs.h. */ | |
28375 | _ACEOF | |
28376 | cat confdefs.h >>conftest.$ac_ext | |
28377 | cat >>conftest.$ac_ext <<_ACEOF | |
28378 | /* end confdefs.h. */ | |
28379 | $ac_includes_default | |
28380 | int | |
28381 | main () | |
28382 | { | |
28383 | if ((pid_t *) 0) | |
28384 | return 0; | |
28385 | if (sizeof (pid_t)) | |
28386 | return 0; | |
28387 | ; | |
28388 | return 0; | |
28389 | } | |
28390 | _ACEOF | |
28391 | rm -f conftest.$ac_objext | |
28392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28393 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28394 | ac_status=$? |
ac1cb8d3 VS |
28395 | grep -v '^ *+' conftest.er1 >conftest.err |
28396 | rm -f conftest.er1 | |
28397 | cat conftest.err >&5 | |
a848cd7e SC |
28398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28399 | (exit $ac_status); } && | |
5294a27e | 28400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28402 | (eval $ac_try) 2>&5 | |
28403 | ac_status=$? | |
28404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28405 | (exit $ac_status); }; } && | |
28406 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28408 | (eval $ac_try) 2>&5 | |
28409 | ac_status=$? | |
28410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28411 | (exit $ac_status); }; }; then | |
28412 | ac_cv_type_pid_t=yes | |
28413 | else | |
28414 | echo "$as_me: failed program was:" >&5 | |
28415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28416 | ||
28417 | ac_cv_type_pid_t=no | |
28418 | fi | |
ac1cb8d3 | 28419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28420 | fi |
28421 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28422 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28423 | if test $ac_cv_type_pid_t = yes; then | |
28424 | : | |
28425 | else | |
28426 | ||
28427 | cat >>confdefs.h <<_ACEOF | |
28428 | #define pid_t int | |
28429 | _ACEOF | |
28430 | ||
28431 | fi | |
28432 | ||
28433 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28434 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28435 | if test "${ac_cv_type_size_t+set}" = set; then | |
28436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28437 | else | |
28438 | cat >conftest.$ac_ext <<_ACEOF | |
28439 | /* confdefs.h. */ | |
28440 | _ACEOF | |
28441 | cat confdefs.h >>conftest.$ac_ext | |
28442 | cat >>conftest.$ac_ext <<_ACEOF | |
28443 | /* end confdefs.h. */ | |
28444 | $ac_includes_default | |
28445 | int | |
28446 | main () | |
28447 | { | |
28448 | if ((size_t *) 0) | |
28449 | return 0; | |
28450 | if (sizeof (size_t)) | |
28451 | return 0; | |
28452 | ; | |
28453 | return 0; | |
28454 | } | |
28455 | _ACEOF | |
28456 | rm -f conftest.$ac_objext | |
28457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28458 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28459 | ac_status=$? |
ac1cb8d3 VS |
28460 | grep -v '^ *+' conftest.er1 >conftest.err |
28461 | rm -f conftest.er1 | |
28462 | cat conftest.err >&5 | |
a848cd7e SC |
28463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28464 | (exit $ac_status); } && | |
5294a27e | 28465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28467 | (eval $ac_try) 2>&5 | |
28468 | ac_status=$? | |
28469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28470 | (exit $ac_status); }; } && | |
28471 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28473 | (eval $ac_try) 2>&5 | |
28474 | ac_status=$? | |
28475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28476 | (exit $ac_status); }; }; then | |
28477 | ac_cv_type_size_t=yes | |
28478 | else | |
28479 | echo "$as_me: failed program was:" >&5 | |
28480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28481 | ||
28482 | ac_cv_type_size_t=no | |
28483 | fi | |
ac1cb8d3 | 28484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28485 | fi |
28486 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28487 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28488 | if test $ac_cv_type_size_t = yes; then | |
28489 | : | |
28490 | else | |
28491 | ||
28492 | cat >>confdefs.h <<_ACEOF | |
28493 | #define size_t unsigned | |
28494 | _ACEOF | |
28495 | ||
28496 | fi | |
28497 | ||
28498 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28499 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28500 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28502 | else | |
28503 | cat >conftest.$ac_ext <<_ACEOF | |
28504 | /* confdefs.h. */ | |
28505 | _ACEOF | |
28506 | cat confdefs.h >>conftest.$ac_ext | |
28507 | cat >>conftest.$ac_ext <<_ACEOF | |
28508 | /* end confdefs.h. */ | |
28509 | #include <sys/types.h> | |
28510 | ||
28511 | _ACEOF | |
28512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28513 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28514 | ac_cv_type_uid_t=yes | |
28515 | else | |
28516 | ac_cv_type_uid_t=no | |
28517 | fi | |
28518 | rm -f conftest* | |
28519 | ||
28520 | fi | |
28521 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28522 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28523 | if test $ac_cv_type_uid_t = no; then | |
28524 | ||
28525 | cat >>confdefs.h <<\_ACEOF | |
28526 | #define uid_t int | |
28527 | _ACEOF | |
28528 | ||
28529 | ||
28530 | cat >>confdefs.h <<\_ACEOF | |
28531 | #define gid_t int | |
28532 | _ACEOF | |
28533 | ||
28534 | fi | |
28535 | ||
28536 | ||
d51253e8 RL |
28537 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
28538 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
28539 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
28540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28541 | else | |
28542 | cat >conftest.$ac_ext <<_ACEOF | |
28543 | /* confdefs.h. */ | |
28544 | _ACEOF | |
28545 | cat confdefs.h >>conftest.$ac_ext | |
28546 | cat >>conftest.$ac_ext <<_ACEOF | |
28547 | /* end confdefs.h. */ | |
28548 | $ac_includes_default | |
28549 | int | |
28550 | main () | |
28551 | { | |
28552 | if ((ssize_t *) 0) | |
28553 | return 0; | |
28554 | if (sizeof (ssize_t)) | |
28555 | return 0; | |
28556 | ; | |
28557 | return 0; | |
28558 | } | |
28559 | _ACEOF | |
28560 | rm -f conftest.$ac_objext | |
28561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28562 | (eval $ac_compile) 2>conftest.er1 | |
28563 | ac_status=$? | |
28564 | grep -v '^ *+' conftest.er1 >conftest.err | |
28565 | rm -f conftest.er1 | |
28566 | cat conftest.err >&5 | |
28567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28568 | (exit $ac_status); } && | |
5294a27e | 28569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
28570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28571 | (eval $ac_try) 2>&5 | |
28572 | ac_status=$? | |
28573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28574 | (exit $ac_status); }; } && | |
28575 | { ac_try='test -s conftest.$ac_objext' | |
28576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28577 | (eval $ac_try) 2>&5 | |
28578 | ac_status=$? | |
28579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28580 | (exit $ac_status); }; }; then | |
28581 | ac_cv_type_ssize_t=yes | |
28582 | else | |
28583 | echo "$as_me: failed program was:" >&5 | |
28584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28585 | ||
28586 | ac_cv_type_ssize_t=no | |
28587 | fi | |
28588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28589 | fi | |
28590 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
28591 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
28592 | if test $ac_cv_type_ssize_t = yes; then | |
28593 | ||
28594 | cat >>confdefs.h <<_ACEOF | |
28595 | #define HAVE_SSIZE_T 1 | |
28596 | _ACEOF | |
28597 | ||
28598 | ||
28599 | fi | |
28600 | ||
28601 | ||
a848cd7e SC |
28602 | |
28603 | ||
28604 | ac_ext=cc | |
28605 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28606 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28607 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28608 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28609 | ||
28610 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28611 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28612 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28614 | else | |
28615 | ||
28616 | cat >conftest.$ac_ext <<_ACEOF | |
28617 | /* confdefs.h. */ | |
28618 | _ACEOF | |
28619 | cat confdefs.h >>conftest.$ac_ext | |
28620 | cat >>conftest.$ac_ext <<_ACEOF | |
28621 | /* end confdefs.h. */ | |
28622 | #include <stddef.h> | |
28623 | int | |
28624 | main () | |
28625 | { | |
28626 | ||
28627 | return 0; } | |
28628 | ||
28629 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28630 | ||
28631 | int bar() { | |
28632 | ||
28633 | ; | |
28634 | return 0; | |
28635 | } | |
28636 | _ACEOF | |
28637 | rm -f conftest.$ac_objext | |
28638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28639 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28640 | ac_status=$? |
ac1cb8d3 VS |
28641 | grep -v '^ *+' conftest.er1 >conftest.err |
28642 | rm -f conftest.er1 | |
28643 | cat conftest.err >&5 | |
a848cd7e SC |
28644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28645 | (exit $ac_status); } && | |
5294a27e | 28646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28648 | (eval $ac_try) 2>&5 | |
28649 | ac_status=$? | |
28650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28651 | (exit $ac_status); }; } && | |
28652 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28654 | (eval $ac_try) 2>&5 | |
28655 | ac_status=$? | |
28656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28657 | (exit $ac_status); }; }; then | |
28658 | wx_cv_size_t_is_uint=no | |
28659 | else | |
28660 | echo "$as_me: failed program was:" >&5 | |
28661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28662 | ||
28663 | wx_cv_size_t_is_uint=yes | |
28664 | ||
28665 | fi | |
ac1cb8d3 | 28666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28667 | |
28668 | ||
28669 | fi | |
28670 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28671 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28672 | ||
28673 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28674 | cat >>confdefs.h <<\_ACEOF | |
28675 | #define wxSIZE_T_IS_UINT 1 | |
28676 | _ACEOF | |
28677 | ||
28678 | else | |
28679 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28680 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28681 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28683 | else | |
28684 | cat >conftest.$ac_ext <<_ACEOF | |
28685 | /* confdefs.h. */ | |
28686 | _ACEOF | |
28687 | cat confdefs.h >>conftest.$ac_ext | |
28688 | cat >>conftest.$ac_ext <<_ACEOF | |
28689 | /* end confdefs.h. */ | |
28690 | #include <stddef.h> | |
28691 | int | |
28692 | main () | |
28693 | { | |
28694 | ||
28695 | return 0; } | |
28696 | ||
28697 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28698 | ||
28699 | int bar() { | |
28700 | ||
28701 | ; | |
28702 | return 0; | |
28703 | } | |
28704 | _ACEOF | |
28705 | rm -f conftest.$ac_objext | |
28706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28707 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28708 | ac_status=$? |
ac1cb8d3 VS |
28709 | grep -v '^ *+' conftest.er1 >conftest.err |
28710 | rm -f conftest.er1 | |
28711 | cat conftest.err >&5 | |
a848cd7e SC |
28712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28713 | (exit $ac_status); } && | |
5294a27e | 28714 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28716 | (eval $ac_try) 2>&5 | |
28717 | ac_status=$? | |
28718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28719 | (exit $ac_status); }; } && | |
28720 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28722 | (eval $ac_try) 2>&5 | |
28723 | ac_status=$? | |
28724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28725 | (exit $ac_status); }; }; then | |
28726 | wx_cv_size_t_is_ulong=no | |
28727 | else | |
28728 | echo "$as_me: failed program was:" >&5 | |
28729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28730 | ||
28731 | wx_cv_size_t_is_ulong=yes | |
28732 | ||
28733 | fi | |
ac1cb8d3 | 28734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28735 | |
28736 | fi | |
28737 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28738 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28739 | ||
28740 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28741 | cat >>confdefs.h <<\_ACEOF | |
28742 | #define wxSIZE_T_IS_ULONG 1 | |
28743 | _ACEOF | |
28744 | ||
28745 | fi | |
28746 | fi | |
28747 | ||
28748 | ac_ext=c | |
28749 | ac_cpp='$CPP $CPPFLAGS' | |
28750 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28751 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28752 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28753 | ||
28754 | ||
28755 | ||
28756 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28757 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28758 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28760 | else | |
28761 | ||
28762 | cat >conftest.$ac_ext <<_ACEOF | |
28763 | /* confdefs.h. */ | |
28764 | _ACEOF | |
28765 | cat confdefs.h >>conftest.$ac_ext | |
28766 | cat >>conftest.$ac_ext <<_ACEOF | |
28767 | /* end confdefs.h. */ | |
28768 | #include <pwd.h> | |
28769 | int | |
28770 | main () | |
28771 | { | |
28772 | ||
28773 | char *p; | |
28774 | struct passwd *pw; | |
28775 | p = pw->pw_gecos; | |
28776 | ||
28777 | ; | |
28778 | return 0; | |
28779 | } | |
28780 | _ACEOF | |
28781 | rm -f conftest.$ac_objext | |
28782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28783 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28784 | ac_status=$? |
ac1cb8d3 VS |
28785 | grep -v '^ *+' conftest.er1 >conftest.err |
28786 | rm -f conftest.er1 | |
28787 | cat conftest.err >&5 | |
a848cd7e SC |
28788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28789 | (exit $ac_status); } && | |
5294a27e | 28790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28792 | (eval $ac_try) 2>&5 | |
28793 | ac_status=$? | |
28794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28795 | (exit $ac_status); }; } && | |
28796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28798 | (eval $ac_try) 2>&5 | |
28799 | ac_status=$? | |
28800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28801 | (exit $ac_status); }; }; then | |
28802 | ||
28803 | wx_cv_struct_pw_gecos=yes | |
28804 | ||
28805 | else | |
28806 | echo "$as_me: failed program was:" >&5 | |
28807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28808 | ||
28809 | ||
28810 | wx_cv_struct_pw_gecos=no | |
28811 | ||
28812 | ||
28813 | fi | |
ac1cb8d3 | 28814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28815 | |
28816 | ||
28817 | fi | |
28818 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28819 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28820 | ||
28821 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28822 | cat >>confdefs.h <<\_ACEOF | |
28823 | #define HAVE_PW_GECOS 1 | |
28824 | _ACEOF | |
28825 | ||
28826 | fi | |
28827 | ||
28828 | ||
28829 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28830 | cat >>confdefs.h <<\_ACEOF | |
28831 | #define wxUSE_WCHAR_T 1 | |
28832 | _ACEOF | |
28833 | ||
28834 | ||
28835 | WCSLEN_FOUND=0 | |
28836 | WCHAR_LINK= | |
28837 | ||
28838 | for ac_func in wcslen | |
28839 | do | |
28840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28843 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28845 | else | |
28846 | cat >conftest.$ac_ext <<_ACEOF | |
28847 | /* confdefs.h. */ | |
28848 | _ACEOF | |
28849 | cat confdefs.h >>conftest.$ac_ext | |
28850 | cat >>conftest.$ac_ext <<_ACEOF | |
28851 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28854 | #define $ac_func innocuous_$ac_func | |
28855 | ||
a848cd7e SC |
28856 | /* System header to define __stub macros and hopefully few prototypes, |
28857 | which can conflict with char $ac_func (); below. | |
28858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28859 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28860 | |
a848cd7e SC |
28861 | #ifdef __STDC__ |
28862 | # include <limits.h> | |
28863 | #else | |
28864 | # include <assert.h> | |
28865 | #endif | |
ac1cb8d3 VS |
28866 | |
28867 | #undef $ac_func | |
28868 | ||
a848cd7e SC |
28869 | /* Override any gcc2 internal prototype to avoid an error. */ |
28870 | #ifdef __cplusplus | |
28871 | extern "C" | |
28872 | { | |
28873 | #endif | |
28874 | /* We use char because int might match the return type of a gcc2 | |
28875 | builtin and then its argument prototype would still apply. */ | |
28876 | char $ac_func (); | |
28877 | /* The GNU C library defines this for functions which it implements | |
28878 | to always fail with ENOSYS. Some functions are actually named | |
28879 | something starting with __ and the normal name is an alias. */ | |
28880 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28881 | choke me | |
28882 | #else | |
28883 | char (*f) () = $ac_func; | |
28884 | #endif | |
28885 | #ifdef __cplusplus | |
28886 | } | |
28887 | #endif | |
28888 | ||
28889 | int | |
28890 | main () | |
28891 | { | |
28892 | return f != $ac_func; | |
28893 | ; | |
28894 | return 0; | |
28895 | } | |
28896 | _ACEOF | |
28897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28899 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28900 | ac_status=$? |
ac1cb8d3 VS |
28901 | grep -v '^ *+' conftest.er1 >conftest.err |
28902 | rm -f conftest.er1 | |
28903 | cat conftest.err >&5 | |
a848cd7e SC |
28904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28905 | (exit $ac_status); } && | |
5294a27e | 28906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28908 | (eval $ac_try) 2>&5 | |
28909 | ac_status=$? | |
28910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28911 | (exit $ac_status); }; } && | |
28912 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28914 | (eval $ac_try) 2>&5 | |
28915 | ac_status=$? | |
28916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28917 | (exit $ac_status); }; }; then | |
28918 | eval "$as_ac_var=yes" | |
28919 | else | |
28920 | echo "$as_me: failed program was:" >&5 | |
28921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28922 | ||
28923 | eval "$as_ac_var=no" | |
28924 | fi | |
ac1cb8d3 VS |
28925 | rm -f conftest.err conftest.$ac_objext \ |
28926 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28927 | fi |
28928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28929 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28930 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28931 | cat >>confdefs.h <<_ACEOF | |
28932 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28933 | _ACEOF | |
28934 | WCSLEN_FOUND=1 | |
28935 | fi | |
28936 | done | |
28937 | ||
28938 | ||
28939 | if test "$WCSLEN_FOUND" = 0; then | |
28940 | if test "$TOOLKIT" = "MSW"; then | |
28941 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28942 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28943 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28945 | else | |
28946 | ac_check_lib_save_LIBS=$LIBS | |
28947 | LIBS="-lmsvcrt $LIBS" | |
28948 | cat >conftest.$ac_ext <<_ACEOF | |
28949 | /* confdefs.h. */ | |
28950 | _ACEOF | |
28951 | cat confdefs.h >>conftest.$ac_ext | |
28952 | cat >>conftest.$ac_ext <<_ACEOF | |
28953 | /* end confdefs.h. */ | |
28954 | ||
28955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28956 | #ifdef __cplusplus | |
28957 | extern "C" | |
28958 | #endif | |
28959 | /* We use char because int might match the return type of a gcc2 | |
28960 | builtin and then its argument prototype would still apply. */ | |
28961 | char wcslen (); | |
28962 | int | |
28963 | main () | |
28964 | { | |
28965 | wcslen (); | |
28966 | ; | |
28967 | return 0; | |
28968 | } | |
28969 | _ACEOF | |
28970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28972 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28973 | ac_status=$? |
ac1cb8d3 VS |
28974 | grep -v '^ *+' conftest.er1 >conftest.err |
28975 | rm -f conftest.er1 | |
28976 | cat conftest.err >&5 | |
a848cd7e SC |
28977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28978 | (exit $ac_status); } && | |
5294a27e | 28979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28981 | (eval $ac_try) 2>&5 | |
28982 | ac_status=$? | |
28983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28984 | (exit $ac_status); }; } && | |
28985 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28987 | (eval $ac_try) 2>&5 | |
28988 | ac_status=$? | |
28989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28990 | (exit $ac_status); }; }; then | |
28991 | ac_cv_lib_msvcrt_wcslen=yes | |
28992 | else | |
28993 | echo "$as_me: failed program was:" >&5 | |
28994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28995 | ||
28996 | ac_cv_lib_msvcrt_wcslen=no | |
28997 | fi | |
ac1cb8d3 VS |
28998 | rm -f conftest.err conftest.$ac_objext \ |
28999 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29000 | LIBS=$ac_check_lib_save_LIBS |
29001 | fi | |
29002 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29003 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
29004 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
29005 | WCHAR_OK=1 | |
29006 | fi | |
29007 | ||
29008 | else | |
29009 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
29010 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
29011 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
29012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29013 | else | |
29014 | ac_check_lib_save_LIBS=$LIBS | |
29015 | LIBS="-lw $LIBS" | |
29016 | cat >conftest.$ac_ext <<_ACEOF | |
29017 | /* confdefs.h. */ | |
29018 | _ACEOF | |
29019 | cat confdefs.h >>conftest.$ac_ext | |
29020 | cat >>conftest.$ac_ext <<_ACEOF | |
29021 | /* end confdefs.h. */ | |
29022 | ||
29023 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29024 | #ifdef __cplusplus | |
29025 | extern "C" | |
29026 | #endif | |
29027 | /* We use char because int might match the return type of a gcc2 | |
29028 | builtin and then its argument prototype would still apply. */ | |
29029 | char wcslen (); | |
29030 | int | |
29031 | main () | |
29032 | { | |
29033 | wcslen (); | |
29034 | ; | |
29035 | return 0; | |
29036 | } | |
29037 | _ACEOF | |
29038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29040 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29041 | ac_status=$? |
ac1cb8d3 VS |
29042 | grep -v '^ *+' conftest.er1 >conftest.err |
29043 | rm -f conftest.er1 | |
29044 | cat conftest.err >&5 | |
a848cd7e SC |
29045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29046 | (exit $ac_status); } && | |
5294a27e | 29047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29049 | (eval $ac_try) 2>&5 | |
29050 | ac_status=$? | |
29051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29052 | (exit $ac_status); }; } && | |
29053 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29055 | (eval $ac_try) 2>&5 | |
29056 | ac_status=$? | |
29057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29058 | (exit $ac_status); }; }; then | |
29059 | ac_cv_lib_w_wcslen=yes | |
29060 | else | |
29061 | echo "$as_me: failed program was:" >&5 | |
29062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29063 | ||
29064 | ac_cv_lib_w_wcslen=no | |
29065 | fi | |
ac1cb8d3 VS |
29066 | rm -f conftest.err conftest.$ac_objext \ |
29067 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29068 | LIBS=$ac_check_lib_save_LIBS |
29069 | fi | |
29070 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
29071 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
29072 | if test $ac_cv_lib_w_wcslen = yes; then | |
29073 | ||
29074 | WCHAR_LINK=" -lw" | |
29075 | WCSLEN_FOUND=1 | |
29076 | ||
29077 | fi | |
29078 | ||
29079 | fi | |
29080 | fi | |
29081 | ||
29082 | if test "$WCSLEN_FOUND" = 1; then | |
29083 | cat >>confdefs.h <<\_ACEOF | |
29084 | #define HAVE_WCSLEN 1 | |
29085 | _ACEOF | |
29086 | ||
29087 | fi | |
29088 | ||
473276a9 VS |
29089 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
29090 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
29091 | fi | |
29092 | ||
a848cd7e SC |
29093 | |
29094 | for ac_func in wcsrtombs | |
29095 | do | |
29096 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29097 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29098 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29099 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29101 | else | |
29102 | cat >conftest.$ac_ext <<_ACEOF | |
29103 | /* confdefs.h. */ | |
29104 | _ACEOF | |
29105 | cat confdefs.h >>conftest.$ac_ext | |
29106 | cat >>conftest.$ac_ext <<_ACEOF | |
29107 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29108 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29109 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29110 | #define $ac_func innocuous_$ac_func | |
29111 | ||
a848cd7e SC |
29112 | /* System header to define __stub macros and hopefully few prototypes, |
29113 | which can conflict with char $ac_func (); below. | |
29114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29115 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29116 | |
a848cd7e SC |
29117 | #ifdef __STDC__ |
29118 | # include <limits.h> | |
29119 | #else | |
29120 | # include <assert.h> | |
29121 | #endif | |
ac1cb8d3 VS |
29122 | |
29123 | #undef $ac_func | |
29124 | ||
a848cd7e SC |
29125 | /* Override any gcc2 internal prototype to avoid an error. */ |
29126 | #ifdef __cplusplus | |
29127 | extern "C" | |
29128 | { | |
29129 | #endif | |
29130 | /* We use char because int might match the return type of a gcc2 | |
29131 | builtin and then its argument prototype would still apply. */ | |
29132 | char $ac_func (); | |
29133 | /* The GNU C library defines this for functions which it implements | |
29134 | to always fail with ENOSYS. Some functions are actually named | |
29135 | something starting with __ and the normal name is an alias. */ | |
29136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29137 | choke me | |
29138 | #else | |
29139 | char (*f) () = $ac_func; | |
29140 | #endif | |
29141 | #ifdef __cplusplus | |
29142 | } | |
29143 | #endif | |
29144 | ||
29145 | int | |
29146 | main () | |
29147 | { | |
29148 | return f != $ac_func; | |
29149 | ; | |
29150 | return 0; | |
29151 | } | |
29152 | _ACEOF | |
29153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29155 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29156 | ac_status=$? |
ac1cb8d3 VS |
29157 | grep -v '^ *+' conftest.er1 >conftest.err |
29158 | rm -f conftest.er1 | |
29159 | cat conftest.err >&5 | |
a848cd7e SC |
29160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29161 | (exit $ac_status); } && | |
5294a27e | 29162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29164 | (eval $ac_try) 2>&5 | |
29165 | ac_status=$? | |
29166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29167 | (exit $ac_status); }; } && | |
29168 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29170 | (eval $ac_try) 2>&5 | |
29171 | ac_status=$? | |
29172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29173 | (exit $ac_status); }; }; then | |
29174 | eval "$as_ac_var=yes" | |
29175 | else | |
29176 | echo "$as_me: failed program was:" >&5 | |
29177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29178 | ||
29179 | eval "$as_ac_var=no" | |
29180 | fi | |
ac1cb8d3 VS |
29181 | rm -f conftest.err conftest.$ac_objext \ |
29182 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29183 | fi |
29184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29185 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29186 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29187 | cat >>confdefs.h <<_ACEOF | |
29188 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29189 | _ACEOF | |
29190 | ||
29191 | fi | |
29192 | done | |
29193 | ||
29194 | else | |
29195 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29196 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29197 | fi | |
29198 | ||
29199 | ||
29200 | ||
29201 | ac_ext=cc | |
29202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29204 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29205 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29206 | ||
29207 | ||
29208 | ||
29209 | for ac_func in vsnprintf | |
29210 | do | |
29211 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29212 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29213 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29214 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29216 | else | |
29217 | cat >conftest.$ac_ext <<_ACEOF | |
29218 | /* confdefs.h. */ | |
29219 | _ACEOF | |
29220 | cat confdefs.h >>conftest.$ac_ext | |
29221 | cat >>conftest.$ac_ext <<_ACEOF | |
29222 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29223 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29224 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29225 | #define $ac_func innocuous_$ac_func | |
29226 | ||
a848cd7e SC |
29227 | /* System header to define __stub macros and hopefully few prototypes, |
29228 | which can conflict with char $ac_func (); below. | |
29229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29230 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29231 | |
a848cd7e SC |
29232 | #ifdef __STDC__ |
29233 | # include <limits.h> | |
29234 | #else | |
29235 | # include <assert.h> | |
29236 | #endif | |
ac1cb8d3 VS |
29237 | |
29238 | #undef $ac_func | |
29239 | ||
a848cd7e SC |
29240 | /* Override any gcc2 internal prototype to avoid an error. */ |
29241 | #ifdef __cplusplus | |
29242 | extern "C" | |
29243 | { | |
29244 | #endif | |
29245 | /* We use char because int might match the return type of a gcc2 | |
29246 | builtin and then its argument prototype would still apply. */ | |
29247 | char $ac_func (); | |
29248 | /* The GNU C library defines this for functions which it implements | |
29249 | to always fail with ENOSYS. Some functions are actually named | |
29250 | something starting with __ and the normal name is an alias. */ | |
29251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29252 | choke me | |
29253 | #else | |
29254 | char (*f) () = $ac_func; | |
29255 | #endif | |
29256 | #ifdef __cplusplus | |
29257 | } | |
29258 | #endif | |
29259 | ||
29260 | int | |
29261 | main () | |
29262 | { | |
29263 | return f != $ac_func; | |
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); } && | |
5294a27e | 29277 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29279 | (eval $ac_try) 2>&5 | |
29280 | ac_status=$? | |
29281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29282 | (exit $ac_status); }; } && | |
29283 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29285 | (eval $ac_try) 2>&5 | |
29286 | ac_status=$? | |
29287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29288 | (exit $ac_status); }; }; then | |
29289 | eval "$as_ac_var=yes" | |
29290 | else | |
29291 | echo "$as_me: failed program was:" >&5 | |
29292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29293 | ||
29294 | eval "$as_ac_var=no" | |
29295 | fi | |
ac1cb8d3 VS |
29296 | rm -f conftest.err conftest.$ac_objext \ |
29297 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29298 | fi |
29299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29300 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29301 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29302 | cat >>confdefs.h <<_ACEOF | |
29303 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29304 | _ACEOF | |
29305 | ||
29306 | fi | |
29307 | done | |
29308 | ||
29309 | ||
29310 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
29311 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
29312 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29313 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29315 | else | |
29316 | ||
29317 | cat >conftest.$ac_ext <<_ACEOF | |
29318 | /* confdefs.h. */ | |
29319 | _ACEOF | |
29320 | cat confdefs.h >>conftest.$ac_ext | |
29321 | cat >>conftest.$ac_ext <<_ACEOF | |
29322 | /* end confdefs.h. */ | |
29323 | ||
29324 | #include <stdio.h> | |
29325 | #include <stdarg.h> | |
29326 | ||
29327 | int | |
29328 | main () | |
29329 | { | |
29330 | ||
29331 | char *buf; | |
29332 | va_list ap; | |
29333 | vsnprintf(buf, 10u, "%s", ap); | |
29334 | ||
29335 | ; | |
29336 | return 0; | |
29337 | } | |
29338 | _ACEOF | |
29339 | rm -f conftest.$ac_objext | |
29340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29341 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29342 | ac_status=$? |
ac1cb8d3 VS |
29343 | grep -v '^ *+' conftest.er1 >conftest.err |
29344 | rm -f conftest.er1 | |
29345 | cat conftest.err >&5 | |
a848cd7e SC |
29346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29347 | (exit $ac_status); } && | |
5294a27e | 29348 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29350 | (eval $ac_try) 2>&5 | |
29351 | ac_status=$? | |
29352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29353 | (exit $ac_status); }; } && | |
29354 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29356 | (eval $ac_try) 2>&5 | |
29357 | ac_status=$? | |
29358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29359 | (exit $ac_status); }; }; then | |
29360 | wx_cv_func_vsnprintf_decl=yes | |
29361 | else | |
29362 | echo "$as_me: failed program was:" >&5 | |
29363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29364 | ||
29365 | wx_cv_func_vsnprintf_decl=no | |
29366 | ||
29367 | fi | |
ac1cb8d3 | 29368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29369 | |
29370 | ||
29371 | fi | |
29372 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29373 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29374 | ||
29375 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29376 | cat >>confdefs.h <<\_ACEOF | |
29377 | #define HAVE_VSNPRINTF_DECL 1 | |
29378 | _ACEOF | |
29379 | ||
29380 | fi | |
29381 | fi | |
29382 | ||
29383 | if test "$wxUSE_UNICODE" = yes; then | |
29384 | ||
29385 | ||
29386 | ||
fbe47c7b VS |
29387 | |
29388 | ||
29389 | ||
29390 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29391 | do |
29392 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29393 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29394 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29395 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29397 | else | |
29398 | cat >conftest.$ac_ext <<_ACEOF | |
29399 | /* confdefs.h. */ | |
29400 | _ACEOF | |
29401 | cat confdefs.h >>conftest.$ac_ext | |
29402 | cat >>conftest.$ac_ext <<_ACEOF | |
29403 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29404 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29405 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29406 | #define $ac_func innocuous_$ac_func | |
29407 | ||
a848cd7e SC |
29408 | /* System header to define __stub macros and hopefully few prototypes, |
29409 | which can conflict with char $ac_func (); below. | |
29410 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29411 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29412 | |
a848cd7e SC |
29413 | #ifdef __STDC__ |
29414 | # include <limits.h> | |
29415 | #else | |
29416 | # include <assert.h> | |
29417 | #endif | |
ac1cb8d3 VS |
29418 | |
29419 | #undef $ac_func | |
29420 | ||
a848cd7e SC |
29421 | /* Override any gcc2 internal prototype to avoid an error. */ |
29422 | #ifdef __cplusplus | |
29423 | extern "C" | |
29424 | { | |
29425 | #endif | |
29426 | /* We use char because int might match the return type of a gcc2 | |
29427 | builtin and then its argument prototype would still apply. */ | |
29428 | char $ac_func (); | |
29429 | /* The GNU C library defines this for functions which it implements | |
29430 | to always fail with ENOSYS. Some functions are actually named | |
29431 | something starting with __ and the normal name is an alias. */ | |
29432 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29433 | choke me | |
29434 | #else | |
29435 | char (*f) () = $ac_func; | |
29436 | #endif | |
29437 | #ifdef __cplusplus | |
29438 | } | |
29439 | #endif | |
29440 | ||
29441 | int | |
29442 | main () | |
29443 | { | |
29444 | return f != $ac_func; | |
29445 | ; | |
29446 | return 0; | |
29447 | } | |
29448 | _ACEOF | |
29449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29451 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29452 | ac_status=$? |
ac1cb8d3 VS |
29453 | grep -v '^ *+' conftest.er1 >conftest.err |
29454 | rm -f conftest.er1 | |
29455 | cat conftest.err >&5 | |
a848cd7e SC |
29456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29457 | (exit $ac_status); } && | |
5294a27e | 29458 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29460 | (eval $ac_try) 2>&5 | |
29461 | ac_status=$? | |
29462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29463 | (exit $ac_status); }; } && | |
29464 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29466 | (eval $ac_try) 2>&5 | |
29467 | ac_status=$? | |
29468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29469 | (exit $ac_status); }; }; then | |
29470 | eval "$as_ac_var=yes" | |
29471 | else | |
29472 | echo "$as_me: failed program was:" >&5 | |
29473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29474 | ||
29475 | eval "$as_ac_var=no" | |
29476 | fi | |
ac1cb8d3 VS |
29477 | rm -f conftest.err conftest.$ac_objext \ |
29478 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29479 | fi |
29480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29481 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29482 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29483 | cat >>confdefs.h <<_ACEOF | |
29484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29485 | _ACEOF | |
29486 | ||
29487 | fi | |
29488 | done | |
29489 | ||
29490 | ||
29491 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29492 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29493 | cat >conftest.$ac_ext <<_ACEOF | |
29494 | /* confdefs.h. */ | |
29495 | _ACEOF | |
29496 | cat confdefs.h >>conftest.$ac_ext | |
29497 | cat >>conftest.$ac_ext <<_ACEOF | |
29498 | /* end confdefs.h. */ | |
29499 | #include <wchar.h> | |
29500 | int | |
29501 | main () | |
29502 | { | |
29503 | &_vsnwprintf; | |
29504 | ; | |
29505 | return 0; | |
29506 | } | |
29507 | _ACEOF | |
29508 | rm -f conftest.$ac_objext | |
29509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29510 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29511 | ac_status=$? |
ac1cb8d3 VS |
29512 | grep -v '^ *+' conftest.er1 >conftest.err |
29513 | rm -f conftest.er1 | |
29514 | cat conftest.err >&5 | |
a848cd7e SC |
29515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29516 | (exit $ac_status); } && | |
5294a27e | 29517 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29519 | (eval $ac_try) 2>&5 | |
29520 | ac_status=$? | |
29521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29522 | (exit $ac_status); }; } && | |
29523 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29525 | (eval $ac_try) 2>&5 | |
29526 | ac_status=$? | |
29527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29528 | (exit $ac_status); }; }; then | |
29529 | echo "$as_me:$LINENO: result: yes" >&5 | |
29530 | echo "${ECHO_T}yes" >&6 | |
29531 | cat >>confdefs.h <<\_ACEOF | |
29532 | #define HAVE__VSNWPRINTF 1 | |
29533 | _ACEOF | |
29534 | ||
29535 | else | |
29536 | echo "$as_me: failed program was:" >&5 | |
29537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29538 | ||
29539 | echo "$as_me:$LINENO: result: no" >&5 | |
29540 | echo "${ECHO_T}no" >&6 | |
29541 | fi | |
ac1cb8d3 | 29542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29543 | fi |
29544 | ||
29545 | ac_ext=c | |
29546 | ac_cpp='$CPP $CPPFLAGS' | |
29547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29550 | ||
29551 | ||
29552 | ||
29553 | ||
29554 | if test "$TOOLKIT" != "MSW"; then | |
29555 | ||
29556 | ||
29557 | ||
29558 | ||
29559 | ac_ext=cc | |
29560 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29561 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29562 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29563 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29564 | ||
29565 | ||
29566 | ||
29567 | ||
29568 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29569 | if test "${with_libiconv_prefix+set}" = set; then | |
29570 | withval="$with_libiconv_prefix" | |
29571 | ||
29572 | for dir in `echo "$withval" | tr : ' '`; do | |
29573 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29574 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29575 | done | |
29576 | ||
29577 | fi; | |
29578 | ||
29579 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29580 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29581 | if test "${am_cv_func_iconv+set}" = set; then | |
29582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29583 | else | |
29584 | ||
29585 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29586 | am_cv_lib_iconv=no | |
29587 | cat >conftest.$ac_ext <<_ACEOF | |
29588 | /* confdefs.h. */ | |
29589 | _ACEOF | |
29590 | cat confdefs.h >>conftest.$ac_ext | |
29591 | cat >>conftest.$ac_ext <<_ACEOF | |
29592 | /* end confdefs.h. */ | |
29593 | #include <stdlib.h> | |
29594 | #include <iconv.h> | |
29595 | int | |
29596 | main () | |
29597 | { | |
29598 | iconv_t cd = iconv_open("",""); | |
29599 | iconv(cd,NULL,NULL,NULL,NULL); | |
29600 | iconv_close(cd); | |
29601 | ; | |
29602 | return 0; | |
29603 | } | |
29604 | _ACEOF | |
29605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29607 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29608 | ac_status=$? |
ac1cb8d3 VS |
29609 | grep -v '^ *+' conftest.er1 >conftest.err |
29610 | rm -f conftest.er1 | |
29611 | cat conftest.err >&5 | |
a848cd7e SC |
29612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29613 | (exit $ac_status); } && | |
5294a27e | 29614 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29616 | (eval $ac_try) 2>&5 | |
29617 | ac_status=$? | |
29618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29619 | (exit $ac_status); }; } && | |
29620 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29622 | (eval $ac_try) 2>&5 | |
29623 | ac_status=$? | |
29624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29625 | (exit $ac_status); }; }; then | |
29626 | am_cv_func_iconv=yes | |
29627 | else | |
29628 | echo "$as_me: failed program was:" >&5 | |
29629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29630 | ||
29631 | fi | |
ac1cb8d3 VS |
29632 | rm -f conftest.err conftest.$ac_objext \ |
29633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29634 | if test "$am_cv_func_iconv" != yes; then |
29635 | am_save_LIBS="$LIBS" | |
29636 | LIBS="$LIBS -liconv" | |
29637 | cat >conftest.$ac_ext <<_ACEOF | |
29638 | /* confdefs.h. */ | |
29639 | _ACEOF | |
29640 | cat confdefs.h >>conftest.$ac_ext | |
29641 | cat >>conftest.$ac_ext <<_ACEOF | |
29642 | /* end confdefs.h. */ | |
29643 | #include <stdlib.h> | |
29644 | #include <iconv.h> | |
29645 | int | |
29646 | main () | |
29647 | { | |
29648 | iconv_t cd = iconv_open("",""); | |
29649 | iconv(cd,NULL,NULL,NULL,NULL); | |
29650 | iconv_close(cd); | |
29651 | ; | |
29652 | return 0; | |
29653 | } | |
29654 | _ACEOF | |
29655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29657 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29658 | ac_status=$? |
ac1cb8d3 VS |
29659 | grep -v '^ *+' conftest.er1 >conftest.err |
29660 | rm -f conftest.er1 | |
29661 | cat conftest.err >&5 | |
a848cd7e SC |
29662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29663 | (exit $ac_status); } && | |
5294a27e | 29664 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29666 | (eval $ac_try) 2>&5 | |
29667 | ac_status=$? | |
29668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29669 | (exit $ac_status); }; } && | |
29670 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29672 | (eval $ac_try) 2>&5 | |
29673 | ac_status=$? | |
29674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29675 | (exit $ac_status); }; }; then | |
29676 | am_cv_lib_iconv=yes | |
29677 | am_cv_func_iconv=yes | |
29678 | else | |
29679 | echo "$as_me: failed program was:" >&5 | |
29680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29681 | ||
29682 | fi | |
ac1cb8d3 VS |
29683 | rm -f conftest.err conftest.$ac_objext \ |
29684 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29685 | LIBS="$am_save_LIBS" |
29686 | fi | |
29687 | ||
29688 | fi | |
29689 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29690 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29691 | if test "$am_cv_func_iconv" = yes; then | |
29692 | ||
29693 | cat >>confdefs.h <<\_ACEOF | |
29694 | #define HAVE_ICONV 1 | |
29695 | _ACEOF | |
29696 | ||
29697 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29698 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29699 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29701 | else | |
29702 | cat >conftest.$ac_ext <<_ACEOF | |
29703 | /* confdefs.h. */ | |
29704 | _ACEOF | |
29705 | cat confdefs.h >>conftest.$ac_ext | |
29706 | cat >>conftest.$ac_ext <<_ACEOF | |
29707 | /* end confdefs.h. */ | |
29708 | ||
29709 | #include <stdlib.h> | |
29710 | #include <iconv.h> | |
29711 | extern | |
29712 | #ifdef __cplusplus | |
29713 | "C" | |
29714 | #endif | |
29715 | #if defined(__STDC__) || defined(__cplusplus) | |
29716 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29717 | #else | |
29718 | size_t iconv(); | |
29719 | #endif | |
29720 | ||
29721 | int | |
29722 | main () | |
29723 | { | |
29724 | ||
29725 | ; | |
29726 | return 0; | |
29727 | } | |
29728 | _ACEOF | |
29729 | rm -f conftest.$ac_objext | |
29730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29732 | ac_status=$? |
ac1cb8d3 VS |
29733 | grep -v '^ *+' conftest.er1 >conftest.err |
29734 | rm -f conftest.er1 | |
29735 | cat conftest.err >&5 | |
a848cd7e SC |
29736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29737 | (exit $ac_status); } && | |
5294a27e | 29738 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29740 | (eval $ac_try) 2>&5 | |
29741 | ac_status=$? | |
29742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29743 | (exit $ac_status); }; } && | |
29744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29746 | (eval $ac_try) 2>&5 | |
29747 | ac_status=$? | |
29748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29749 | (exit $ac_status); }; }; then | |
29750 | wx_cv_func_iconv_const="no" | |
29751 | else | |
29752 | echo "$as_me: failed program was:" >&5 | |
29753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29754 | ||
29755 | wx_cv_func_iconv_const="yes" | |
29756 | ||
29757 | fi | |
ac1cb8d3 | 29758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29759 | |
29760 | fi | |
29761 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29762 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29763 | ||
29764 | iconv_const= | |
29765 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29766 | iconv_const="const" | |
29767 | fi | |
29768 | ||
29769 | ||
29770 | cat >>confdefs.h <<_ACEOF | |
29771 | #define ICONV_CONST $iconv_const | |
29772 | _ACEOF | |
29773 | ||
29774 | fi | |
29775 | LIBICONV= | |
29776 | if test "$am_cv_lib_iconv" = yes; then | |
29777 | LIBICONV="-liconv" | |
29778 | fi | |
29779 | ||
29780 | ||
29781 | LIBS="$LIBICONV $LIBS" | |
29782 | ac_ext=c | |
29783 | ac_cpp='$CPP $CPPFLAGS' | |
29784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29787 | ||
29788 | ||
29789 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29790 | ||
29791 | for ac_func in sigaction | |
29792 | do | |
29793 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29794 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29795 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29796 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29798 | else | |
29799 | cat >conftest.$ac_ext <<_ACEOF | |
29800 | /* confdefs.h. */ | |
29801 | _ACEOF | |
29802 | cat confdefs.h >>conftest.$ac_ext | |
29803 | cat >>conftest.$ac_ext <<_ACEOF | |
29804 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29805 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29807 | #define $ac_func innocuous_$ac_func | |
29808 | ||
a848cd7e SC |
29809 | /* System header to define __stub macros and hopefully few prototypes, |
29810 | which can conflict with char $ac_func (); below. | |
29811 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29812 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29813 | |
a848cd7e SC |
29814 | #ifdef __STDC__ |
29815 | # include <limits.h> | |
29816 | #else | |
29817 | # include <assert.h> | |
29818 | #endif | |
ac1cb8d3 VS |
29819 | |
29820 | #undef $ac_func | |
29821 | ||
a848cd7e SC |
29822 | /* Override any gcc2 internal prototype to avoid an error. */ |
29823 | #ifdef __cplusplus | |
29824 | extern "C" | |
29825 | { | |
29826 | #endif | |
29827 | /* We use char because int might match the return type of a gcc2 | |
29828 | builtin and then its argument prototype would still apply. */ | |
29829 | char $ac_func (); | |
29830 | /* The GNU C library defines this for functions which it implements | |
29831 | to always fail with ENOSYS. Some functions are actually named | |
29832 | something starting with __ and the normal name is an alias. */ | |
29833 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29834 | choke me | |
29835 | #else | |
29836 | char (*f) () = $ac_func; | |
29837 | #endif | |
29838 | #ifdef __cplusplus | |
29839 | } | |
29840 | #endif | |
29841 | ||
29842 | int | |
29843 | main () | |
29844 | { | |
29845 | return f != $ac_func; | |
29846 | ; | |
29847 | return 0; | |
29848 | } | |
29849 | _ACEOF | |
29850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29852 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29853 | ac_status=$? |
ac1cb8d3 VS |
29854 | grep -v '^ *+' conftest.er1 >conftest.err |
29855 | rm -f conftest.er1 | |
29856 | cat conftest.err >&5 | |
a848cd7e SC |
29857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29858 | (exit $ac_status); } && | |
5294a27e | 29859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29861 | (eval $ac_try) 2>&5 | |
29862 | ac_status=$? | |
29863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29864 | (exit $ac_status); }; } && | |
29865 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29867 | (eval $ac_try) 2>&5 | |
29868 | ac_status=$? | |
29869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29870 | (exit $ac_status); }; }; then | |
29871 | eval "$as_ac_var=yes" | |
29872 | else | |
29873 | echo "$as_me: failed program was:" >&5 | |
29874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29875 | ||
29876 | eval "$as_ac_var=no" | |
29877 | fi | |
ac1cb8d3 VS |
29878 | rm -f conftest.err conftest.$ac_objext \ |
29879 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29880 | fi |
29881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29882 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29883 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29884 | cat >>confdefs.h <<_ACEOF | |
29885 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29886 | _ACEOF | |
29887 | ||
29888 | fi | |
29889 | done | |
29890 | ||
29891 | ||
29892 | if test "$ac_cv_func_sigaction" = "no"; then | |
29893 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29894 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29895 | wxUSE_ON_FATAL_EXCEPTION=no | |
29896 | fi | |
29897 | ||
29898 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29899 | ||
29900 | ||
29901 | ac_ext=cc | |
29902 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29906 | ||
29907 | ||
29908 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29909 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29910 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29912 | else | |
29913 | ||
29914 | cat >conftest.$ac_ext <<_ACEOF | |
29915 | /* confdefs.h. */ | |
29916 | _ACEOF | |
29917 | cat confdefs.h >>conftest.$ac_ext | |
29918 | cat >>conftest.$ac_ext <<_ACEOF | |
29919 | /* end confdefs.h. */ | |
29920 | #include <signal.h> | |
29921 | int | |
29922 | main () | |
29923 | { | |
29924 | ||
29925 | extern void testSigHandler(int); | |
29926 | ||
29927 | struct sigaction sa; | |
29928 | sa.sa_handler = testSigHandler; | |
29929 | ||
29930 | ; | |
29931 | return 0; | |
29932 | } | |
29933 | _ACEOF | |
29934 | rm -f conftest.$ac_objext | |
29935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29936 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29937 | ac_status=$? |
ac1cb8d3 VS |
29938 | grep -v '^ *+' conftest.er1 >conftest.err |
29939 | rm -f conftest.er1 | |
29940 | cat conftest.err >&5 | |
a848cd7e SC |
29941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29942 | (exit $ac_status); } && | |
5294a27e | 29943 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29945 | (eval $ac_try) 2>&5 | |
29946 | ac_status=$? | |
29947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29948 | (exit $ac_status); }; } && | |
29949 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29951 | (eval $ac_try) 2>&5 | |
29952 | ac_status=$? | |
29953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29954 | (exit $ac_status); }; }; then | |
29955 | ||
29956 | wx_cv_type_sa_handler=int | |
29957 | ||
29958 | else | |
29959 | echo "$as_me: failed program was:" >&5 | |
29960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29961 | ||
29962 | ||
29963 | wx_cv_type_sa_handler=void | |
29964 | ||
29965 | fi | |
ac1cb8d3 | 29966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29967 | |
29968 | fi | |
29969 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29970 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29971 | ||
29972 | ac_ext=c | |
29973 | ac_cpp='$CPP $CPPFLAGS' | |
29974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29977 | ||
29978 | ||
29979 | cat >>confdefs.h <<_ACEOF | |
29980 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29981 | _ACEOF | |
29982 | ||
29983 | fi | |
29984 | fi | |
29985 | ||
29986 | ||
29987 | ||
29988 | for ac_func in mkstemp mktemp | |
29989 | do | |
29990 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29991 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29992 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29993 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29995 | else | |
29996 | cat >conftest.$ac_ext <<_ACEOF | |
29997 | /* confdefs.h. */ | |
29998 | _ACEOF | |
29999 | cat confdefs.h >>conftest.$ac_ext | |
30000 | cat >>conftest.$ac_ext <<_ACEOF | |
30001 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30002 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30003 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30004 | #define $ac_func innocuous_$ac_func | |
30005 | ||
a848cd7e SC |
30006 | /* System header to define __stub macros and hopefully few prototypes, |
30007 | which can conflict with char $ac_func (); below. | |
30008 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30009 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30010 | |
a848cd7e SC |
30011 | #ifdef __STDC__ |
30012 | # include <limits.h> | |
30013 | #else | |
30014 | # include <assert.h> | |
30015 | #endif | |
ac1cb8d3 VS |
30016 | |
30017 | #undef $ac_func | |
30018 | ||
a848cd7e SC |
30019 | /* Override any gcc2 internal prototype to avoid an error. */ |
30020 | #ifdef __cplusplus | |
30021 | extern "C" | |
30022 | { | |
30023 | #endif | |
30024 | /* We use char because int might match the return type of a gcc2 | |
30025 | builtin and then its argument prototype would still apply. */ | |
30026 | char $ac_func (); | |
30027 | /* The GNU C library defines this for functions which it implements | |
30028 | to always fail with ENOSYS. Some functions are actually named | |
30029 | something starting with __ and the normal name is an alias. */ | |
30030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30031 | choke me | |
30032 | #else | |
30033 | char (*f) () = $ac_func; | |
30034 | #endif | |
30035 | #ifdef __cplusplus | |
30036 | } | |
30037 | #endif | |
30038 | ||
30039 | int | |
30040 | main () | |
30041 | { | |
30042 | return f != $ac_func; | |
30043 | ; | |
30044 | return 0; | |
30045 | } | |
30046 | _ACEOF | |
30047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30049 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30050 | ac_status=$? |
ac1cb8d3 VS |
30051 | grep -v '^ *+' conftest.er1 >conftest.err |
30052 | rm -f conftest.er1 | |
30053 | cat conftest.err >&5 | |
a848cd7e SC |
30054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30055 | (exit $ac_status); } && | |
5294a27e | 30056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30058 | (eval $ac_try) 2>&5 | |
30059 | ac_status=$? | |
30060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30061 | (exit $ac_status); }; } && | |
30062 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30064 | (eval $ac_try) 2>&5 | |
30065 | ac_status=$? | |
30066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30067 | (exit $ac_status); }; }; then | |
30068 | eval "$as_ac_var=yes" | |
30069 | else | |
30070 | echo "$as_me: failed program was:" >&5 | |
30071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30072 | ||
30073 | eval "$as_ac_var=no" | |
30074 | fi | |
ac1cb8d3 VS |
30075 | rm -f conftest.err conftest.$ac_objext \ |
30076 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30077 | fi |
30078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30079 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30080 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30081 | cat >>confdefs.h <<_ACEOF | |
30082 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30083 | _ACEOF | |
30084 | break | |
30085 | fi | |
30086 | done | |
30087 | ||
30088 | ||
30089 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
30090 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
30091 | if test "${wx_cv_func_statfs+set}" = set; then | |
30092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30093 | else | |
30094 | cat >conftest.$ac_ext <<_ACEOF | |
30095 | /* confdefs.h. */ | |
30096 | _ACEOF | |
30097 | cat confdefs.h >>conftest.$ac_ext | |
30098 | cat >>conftest.$ac_ext <<_ACEOF | |
30099 | /* end confdefs.h. */ | |
30100 | ||
30101 | #if defined(__BSD__) | |
30102 | #include <sys/param.h> | |
30103 | #include <sys/mount.h> | |
30104 | #else | |
30105 | #include <sys/vfs.h> | |
30106 | #endif | |
30107 | ||
30108 | int | |
30109 | main () | |
30110 | { | |
30111 | ||
30112 | long l; | |
30113 | struct statfs fs; | |
30114 | statfs("/", &fs); | |
30115 | l = fs.f_bsize; | |
30116 | l += fs.f_blocks; | |
30117 | l += fs.f_bavail; | |
30118 | ||
30119 | ; | |
30120 | return 0; | |
30121 | } | |
30122 | _ACEOF | |
30123 | rm -f conftest.$ac_objext | |
30124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30125 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30126 | ac_status=$? |
ac1cb8d3 VS |
30127 | grep -v '^ *+' conftest.er1 >conftest.err |
30128 | rm -f conftest.er1 | |
30129 | cat conftest.err >&5 | |
a848cd7e SC |
30130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30131 | (exit $ac_status); } && | |
5294a27e | 30132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30134 | (eval $ac_try) 2>&5 | |
30135 | ac_status=$? | |
30136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30137 | (exit $ac_status); }; } && | |
30138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30140 | (eval $ac_try) 2>&5 | |
30141 | ac_status=$? | |
30142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30143 | (exit $ac_status); }; }; then | |
30144 | ||
30145 | wx_cv_func_statfs=yes | |
30146 | ||
30147 | else | |
30148 | echo "$as_me: failed program was:" >&5 | |
30149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30150 | ||
30151 | ||
30152 | wx_cv_func_statfs=no | |
30153 | ||
30154 | ||
30155 | fi | |
ac1cb8d3 | 30156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30157 | |
30158 | fi | |
30159 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30160 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
30161 | ||
30162 | if test "$wx_cv_func_statfs" = "yes"; then | |
30163 | wx_cv_type_statvfs_t="struct statfs" | |
30164 | cat >>confdefs.h <<\_ACEOF | |
30165 | #define HAVE_STATFS 1 | |
30166 | _ACEOF | |
30167 | ||
30168 | else | |
30169 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
30170 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
30171 | if test "${wx_cv_func_statvfs+set}" = set; then | |
30172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30173 | else | |
30174 | cat >conftest.$ac_ext <<_ACEOF | |
30175 | /* confdefs.h. */ | |
30176 | _ACEOF | |
30177 | cat confdefs.h >>conftest.$ac_ext | |
30178 | cat >>conftest.$ac_ext <<_ACEOF | |
30179 | /* end confdefs.h. */ | |
30180 | ||
30181 | #include <stddef.h> | |
30182 | #include <sys/statvfs.h> | |
30183 | ||
30184 | int | |
30185 | main () | |
30186 | { | |
30187 | ||
30188 | statvfs("/", NULL); | |
30189 | ||
30190 | ; | |
30191 | return 0; | |
30192 | } | |
30193 | _ACEOF | |
30194 | rm -f conftest.$ac_objext | |
30195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30196 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30197 | ac_status=$? |
ac1cb8d3 VS |
30198 | grep -v '^ *+' conftest.er1 >conftest.err |
30199 | rm -f conftest.er1 | |
30200 | cat conftest.err >&5 | |
a848cd7e SC |
30201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30202 | (exit $ac_status); } && | |
5294a27e | 30203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30205 | (eval $ac_try) 2>&5 | |
30206 | ac_status=$? | |
30207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30208 | (exit $ac_status); }; } && | |
30209 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30211 | (eval $ac_try) 2>&5 | |
30212 | ac_status=$? | |
30213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30214 | (exit $ac_status); }; }; then | |
30215 | wx_cv_func_statvfs=yes | |
30216 | else | |
30217 | echo "$as_me: failed program was:" >&5 | |
30218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30219 | ||
30220 | wx_cv_func_statvfs=no | |
30221 | ||
30222 | fi | |
ac1cb8d3 | 30223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30224 | |
30225 | fi | |
30226 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30227 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
30228 | ||
30229 | if test "$wx_cv_func_statvfs" = "yes"; then | |
30230 | ||
30231 | ||
30232 | ac_ext=cc | |
30233 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30234 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30235 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30236 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30237 | ||
30238 | ||
30239 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
30240 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30241 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30243 | else | |
30244 | cat >conftest.$ac_ext <<_ACEOF | |
30245 | /* confdefs.h. */ | |
30246 | _ACEOF | |
30247 | cat confdefs.h >>conftest.$ac_ext | |
30248 | cat >>conftest.$ac_ext <<_ACEOF | |
30249 | /* end confdefs.h. */ | |
30250 | ||
30251 | #include <sys/statvfs.h> | |
30252 | ||
30253 | int | |
30254 | main () | |
30255 | { | |
30256 | ||
30257 | long l; | |
30258 | statvfs_t fs; | |
30259 | statvfs("/", &fs); | |
30260 | l = fs.f_bsize; | |
30261 | l += fs.f_blocks; | |
30262 | l += fs.f_bavail; | |
30263 | ||
30264 | ; | |
30265 | return 0; | |
30266 | } | |
30267 | _ACEOF | |
30268 | rm -f conftest.$ac_objext | |
30269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30271 | ac_status=$? |
ac1cb8d3 VS |
30272 | grep -v '^ *+' conftest.er1 >conftest.err |
30273 | rm -f conftest.er1 | |
30274 | cat conftest.err >&5 | |
a848cd7e SC |
30275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30276 | (exit $ac_status); } && | |
5294a27e | 30277 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30279 | (eval $ac_try) 2>&5 | |
30280 | ac_status=$? | |
30281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30282 | (exit $ac_status); }; } && | |
30283 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30285 | (eval $ac_try) 2>&5 | |
30286 | ac_status=$? | |
30287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30288 | (exit $ac_status); }; }; then | |
30289 | wx_cv_type_statvfs_t=statvfs_t | |
30290 | else | |
30291 | echo "$as_me: failed program was:" >&5 | |
30292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30293 | ||
30294 | ||
30295 | cat >conftest.$ac_ext <<_ACEOF | |
30296 | /* confdefs.h. */ | |
30297 | _ACEOF | |
30298 | cat confdefs.h >>conftest.$ac_ext | |
30299 | cat >>conftest.$ac_ext <<_ACEOF | |
30300 | /* end confdefs.h. */ | |
30301 | ||
30302 | #include <sys/statvfs.h> | |
30303 | ||
30304 | int | |
30305 | main () | |
30306 | { | |
30307 | ||
30308 | long l; | |
30309 | struct statvfs fs; | |
30310 | statvfs("/", &fs); | |
30311 | l = fs.f_bsize; | |
30312 | l += fs.f_blocks; | |
30313 | l += fs.f_bavail; | |
30314 | ||
30315 | ; | |
30316 | return 0; | |
30317 | } | |
30318 | _ACEOF | |
30319 | rm -f conftest.$ac_objext | |
30320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30321 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30322 | ac_status=$? |
ac1cb8d3 VS |
30323 | grep -v '^ *+' conftest.er1 >conftest.err |
30324 | rm -f conftest.er1 | |
30325 | cat conftest.err >&5 | |
a848cd7e SC |
30326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30327 | (exit $ac_status); } && | |
5294a27e | 30328 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30330 | (eval $ac_try) 2>&5 | |
30331 | ac_status=$? | |
30332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30333 | (exit $ac_status); }; } && | |
30334 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30336 | (eval $ac_try) 2>&5 | |
30337 | ac_status=$? | |
30338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30339 | (exit $ac_status); }; }; then | |
30340 | wx_cv_type_statvfs_t="struct statvfs" | |
30341 | else | |
30342 | echo "$as_me: failed program was:" >&5 | |
30343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30344 | ||
30345 | wx_cv_type_statvfs_t="unknown" | |
30346 | ||
30347 | fi | |
ac1cb8d3 | 30348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30349 | |
30350 | ||
30351 | fi | |
ac1cb8d3 | 30352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30353 | |
30354 | fi | |
30355 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30356 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30357 | ||
30358 | ac_ext=c | |
30359 | ac_cpp='$CPP $CPPFLAGS' | |
30360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30363 | ||
30364 | ||
30365 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30366 | cat >>confdefs.h <<\_ACEOF | |
30367 | #define HAVE_STATVFS 1 | |
30368 | _ACEOF | |
30369 | ||
30370 | fi | |
30371 | else | |
30372 | wx_cv_type_statvfs_t="unknown" | |
30373 | fi | |
30374 | fi | |
30375 | ||
30376 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30377 | cat >>confdefs.h <<_ACEOF | |
30378 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30379 | _ACEOF | |
30380 | ||
30381 | else | |
30382 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30383 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30384 | fi | |
30385 | ||
30386 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30387 | ||
30388 | ||
30389 | for ac_func in fcntl flock | |
30390 | do | |
30391 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30392 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30393 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30394 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30396 | else | |
30397 | cat >conftest.$ac_ext <<_ACEOF | |
30398 | /* confdefs.h. */ | |
30399 | _ACEOF | |
30400 | cat confdefs.h >>conftest.$ac_ext | |
30401 | cat >>conftest.$ac_ext <<_ACEOF | |
30402 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30403 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30404 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30405 | #define $ac_func innocuous_$ac_func | |
30406 | ||
a848cd7e SC |
30407 | /* System header to define __stub macros and hopefully few prototypes, |
30408 | which can conflict with char $ac_func (); below. | |
30409 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30410 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30411 | |
a848cd7e SC |
30412 | #ifdef __STDC__ |
30413 | # include <limits.h> | |
30414 | #else | |
30415 | # include <assert.h> | |
30416 | #endif | |
ac1cb8d3 VS |
30417 | |
30418 | #undef $ac_func | |
30419 | ||
a848cd7e SC |
30420 | /* Override any gcc2 internal prototype to avoid an error. */ |
30421 | #ifdef __cplusplus | |
30422 | extern "C" | |
30423 | { | |
30424 | #endif | |
30425 | /* We use char because int might match the return type of a gcc2 | |
30426 | builtin and then its argument prototype would still apply. */ | |
30427 | char $ac_func (); | |
30428 | /* The GNU C library defines this for functions which it implements | |
30429 | to always fail with ENOSYS. Some functions are actually named | |
30430 | something starting with __ and the normal name is an alias. */ | |
30431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30432 | choke me | |
30433 | #else | |
30434 | char (*f) () = $ac_func; | |
30435 | #endif | |
30436 | #ifdef __cplusplus | |
30437 | } | |
30438 | #endif | |
30439 | ||
30440 | int | |
30441 | main () | |
30442 | { | |
30443 | return f != $ac_func; | |
30444 | ; | |
30445 | return 0; | |
30446 | } | |
30447 | _ACEOF | |
30448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30450 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30451 | ac_status=$? |
ac1cb8d3 VS |
30452 | grep -v '^ *+' conftest.er1 >conftest.err |
30453 | rm -f conftest.er1 | |
30454 | cat conftest.err >&5 | |
a848cd7e SC |
30455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30456 | (exit $ac_status); } && | |
5294a27e | 30457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30459 | (eval $ac_try) 2>&5 | |
30460 | ac_status=$? | |
30461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30462 | (exit $ac_status); }; } && | |
30463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30465 | (eval $ac_try) 2>&5 | |
30466 | ac_status=$? | |
30467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30468 | (exit $ac_status); }; }; then | |
30469 | eval "$as_ac_var=yes" | |
30470 | else | |
30471 | echo "$as_me: failed program was:" >&5 | |
30472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30473 | ||
30474 | eval "$as_ac_var=no" | |
30475 | fi | |
ac1cb8d3 VS |
30476 | rm -f conftest.err conftest.$ac_objext \ |
30477 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30478 | fi |
30479 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30480 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30481 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30482 | cat >>confdefs.h <<_ACEOF | |
30483 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30484 | _ACEOF | |
30485 | break | |
30486 | fi | |
30487 | done | |
30488 | ||
30489 | ||
30490 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30491 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30492 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30493 | wxUSE_SNGLINST_CHECKER=no | |
30494 | fi | |
30495 | fi | |
30496 | ||
30497 | ||
30498 | for ac_func in timegm | |
30499 | do | |
30500 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30501 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30502 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30503 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30505 | else | |
30506 | cat >conftest.$ac_ext <<_ACEOF | |
30507 | /* confdefs.h. */ | |
30508 | _ACEOF | |
30509 | cat confdefs.h >>conftest.$ac_ext | |
30510 | cat >>conftest.$ac_ext <<_ACEOF | |
30511 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30512 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30513 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30514 | #define $ac_func innocuous_$ac_func | |
30515 | ||
a848cd7e SC |
30516 | /* System header to define __stub macros and hopefully few prototypes, |
30517 | which can conflict with char $ac_func (); below. | |
30518 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30519 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30520 | |
a848cd7e SC |
30521 | #ifdef __STDC__ |
30522 | # include <limits.h> | |
30523 | #else | |
30524 | # include <assert.h> | |
30525 | #endif | |
ac1cb8d3 VS |
30526 | |
30527 | #undef $ac_func | |
30528 | ||
a848cd7e SC |
30529 | /* Override any gcc2 internal prototype to avoid an error. */ |
30530 | #ifdef __cplusplus | |
30531 | extern "C" | |
30532 | { | |
30533 | #endif | |
30534 | /* We use char because int might match the return type of a gcc2 | |
30535 | builtin and then its argument prototype would still apply. */ | |
30536 | char $ac_func (); | |
30537 | /* The GNU C library defines this for functions which it implements | |
30538 | to always fail with ENOSYS. Some functions are actually named | |
30539 | something starting with __ and the normal name is an alias. */ | |
30540 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30541 | choke me | |
30542 | #else | |
30543 | char (*f) () = $ac_func; | |
30544 | #endif | |
30545 | #ifdef __cplusplus | |
30546 | } | |
30547 | #endif | |
30548 | ||
30549 | int | |
30550 | main () | |
30551 | { | |
30552 | return f != $ac_func; | |
30553 | ; | |
30554 | return 0; | |
30555 | } | |
30556 | _ACEOF | |
30557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30559 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30560 | ac_status=$? |
ac1cb8d3 VS |
30561 | grep -v '^ *+' conftest.er1 >conftest.err |
30562 | rm -f conftest.er1 | |
30563 | cat conftest.err >&5 | |
a848cd7e SC |
30564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30565 | (exit $ac_status); } && | |
5294a27e | 30566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30568 | (eval $ac_try) 2>&5 | |
30569 | ac_status=$? | |
30570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30571 | (exit $ac_status); }; } && | |
30572 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30574 | (eval $ac_try) 2>&5 | |
30575 | ac_status=$? | |
30576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30577 | (exit $ac_status); }; }; then | |
30578 | eval "$as_ac_var=yes" | |
30579 | else | |
30580 | echo "$as_me: failed program was:" >&5 | |
30581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30582 | ||
30583 | eval "$as_ac_var=no" | |
30584 | fi | |
ac1cb8d3 VS |
30585 | rm -f conftest.err conftest.$ac_objext \ |
30586 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30587 | fi |
30588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30589 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30590 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30591 | cat >>confdefs.h <<_ACEOF | |
30592 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30593 | _ACEOF | |
30594 | ||
30595 | fi | |
30596 | done | |
30597 | ||
30598 | ||
30599 | ||
30600 | ||
30601 | for ac_func in putenv setenv | |
30602 | do | |
30603 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30604 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30605 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30606 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30608 | else | |
30609 | cat >conftest.$ac_ext <<_ACEOF | |
30610 | /* confdefs.h. */ | |
30611 | _ACEOF | |
30612 | cat confdefs.h >>conftest.$ac_ext | |
30613 | cat >>conftest.$ac_ext <<_ACEOF | |
30614 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30615 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30617 | #define $ac_func innocuous_$ac_func | |
30618 | ||
a848cd7e SC |
30619 | /* System header to define __stub macros and hopefully few prototypes, |
30620 | which can conflict with char $ac_func (); below. | |
30621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30622 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30623 | |
a848cd7e SC |
30624 | #ifdef __STDC__ |
30625 | # include <limits.h> | |
30626 | #else | |
30627 | # include <assert.h> | |
30628 | #endif | |
ac1cb8d3 VS |
30629 | |
30630 | #undef $ac_func | |
30631 | ||
a848cd7e SC |
30632 | /* Override any gcc2 internal prototype to avoid an error. */ |
30633 | #ifdef __cplusplus | |
30634 | extern "C" | |
30635 | { | |
30636 | #endif | |
30637 | /* We use char because int might match the return type of a gcc2 | |
30638 | builtin and then its argument prototype would still apply. */ | |
30639 | char $ac_func (); | |
30640 | /* The GNU C library defines this for functions which it implements | |
30641 | to always fail with ENOSYS. Some functions are actually named | |
30642 | something starting with __ and the normal name is an alias. */ | |
30643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30644 | choke me | |
30645 | #else | |
30646 | char (*f) () = $ac_func; | |
30647 | #endif | |
30648 | #ifdef __cplusplus | |
30649 | } | |
30650 | #endif | |
30651 | ||
30652 | int | |
30653 | main () | |
30654 | { | |
30655 | return f != $ac_func; | |
30656 | ; | |
30657 | return 0; | |
30658 | } | |
30659 | _ACEOF | |
30660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30662 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30663 | ac_status=$? |
ac1cb8d3 VS |
30664 | grep -v '^ *+' conftest.er1 >conftest.err |
30665 | rm -f conftest.er1 | |
30666 | cat conftest.err >&5 | |
a848cd7e SC |
30667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30668 | (exit $ac_status); } && | |
5294a27e | 30669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30671 | (eval $ac_try) 2>&5 | |
30672 | ac_status=$? | |
30673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30674 | (exit $ac_status); }; } && | |
30675 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30677 | (eval $ac_try) 2>&5 | |
30678 | ac_status=$? | |
30679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30680 | (exit $ac_status); }; }; then | |
30681 | eval "$as_ac_var=yes" | |
30682 | else | |
30683 | echo "$as_me: failed program was:" >&5 | |
30684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30685 | ||
30686 | eval "$as_ac_var=no" | |
30687 | fi | |
ac1cb8d3 VS |
30688 | rm -f conftest.err conftest.$ac_objext \ |
30689 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30690 | fi |
30691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30692 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30693 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30694 | cat >>confdefs.h <<_ACEOF | |
30695 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30696 | _ACEOF | |
30697 | break | |
30698 | fi | |
30699 | done | |
30700 | ||
30701 | ||
30702 | HAVE_SOME_SLEEP_FUNC=0 | |
30703 | if test "$USE_BEOS" = 1; then | |
30704 | cat >>confdefs.h <<\_ACEOF | |
30705 | #define HAVE_SLEEP 1 | |
30706 | _ACEOF | |
30707 | ||
30708 | HAVE_SOME_SLEEP_FUNC=1 | |
30709 | fi | |
30710 | ||
30711 | if test "$USE_DARWIN" = 1; then | |
30712 | cat >>confdefs.h <<\_ACEOF | |
30713 | #define HAVE_USLEEP 1 | |
30714 | _ACEOF | |
30715 | ||
30716 | HAVE_SOME_SLEEP_FUNC=1 | |
30717 | fi | |
30718 | ||
30719 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30720 | POSIX4_LINK= | |
30721 | ||
30722 | for ac_func in nanosleep | |
30723 | do | |
30724 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30725 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30726 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30727 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30729 | else | |
30730 | cat >conftest.$ac_ext <<_ACEOF | |
30731 | /* confdefs.h. */ | |
30732 | _ACEOF | |
30733 | cat confdefs.h >>conftest.$ac_ext | |
30734 | cat >>conftest.$ac_ext <<_ACEOF | |
30735 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30736 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30738 | #define $ac_func innocuous_$ac_func | |
30739 | ||
a848cd7e SC |
30740 | /* System header to define __stub macros and hopefully few prototypes, |
30741 | which can conflict with char $ac_func (); below. | |
30742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30743 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30744 | |
a848cd7e SC |
30745 | #ifdef __STDC__ |
30746 | # include <limits.h> | |
30747 | #else | |
30748 | # include <assert.h> | |
30749 | #endif | |
ac1cb8d3 VS |
30750 | |
30751 | #undef $ac_func | |
30752 | ||
a848cd7e SC |
30753 | /* Override any gcc2 internal prototype to avoid an error. */ |
30754 | #ifdef __cplusplus | |
30755 | extern "C" | |
30756 | { | |
30757 | #endif | |
30758 | /* We use char because int might match the return type of a gcc2 | |
30759 | builtin and then its argument prototype would still apply. */ | |
30760 | char $ac_func (); | |
30761 | /* The GNU C library defines this for functions which it implements | |
30762 | to always fail with ENOSYS. Some functions are actually named | |
30763 | something starting with __ and the normal name is an alias. */ | |
30764 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30765 | choke me | |
30766 | #else | |
30767 | char (*f) () = $ac_func; | |
30768 | #endif | |
30769 | #ifdef __cplusplus | |
30770 | } | |
30771 | #endif | |
30772 | ||
30773 | int | |
30774 | main () | |
30775 | { | |
30776 | return f != $ac_func; | |
30777 | ; | |
30778 | return 0; | |
30779 | } | |
30780 | _ACEOF | |
30781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30783 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30784 | ac_status=$? |
ac1cb8d3 VS |
30785 | grep -v '^ *+' conftest.er1 >conftest.err |
30786 | rm -f conftest.er1 | |
30787 | cat conftest.err >&5 | |
a848cd7e SC |
30788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30789 | (exit $ac_status); } && | |
5294a27e | 30790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30792 | (eval $ac_try) 2>&5 | |
30793 | ac_status=$? | |
30794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30795 | (exit $ac_status); }; } && | |
30796 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30798 | (eval $ac_try) 2>&5 | |
30799 | ac_status=$? | |
30800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30801 | (exit $ac_status); }; }; then | |
30802 | eval "$as_ac_var=yes" | |
30803 | else | |
30804 | echo "$as_me: failed program was:" >&5 | |
30805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30806 | ||
30807 | eval "$as_ac_var=no" | |
30808 | fi | |
ac1cb8d3 VS |
30809 | rm -f conftest.err conftest.$ac_objext \ |
30810 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30811 | fi |
30812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30813 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30814 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30815 | cat >>confdefs.h <<_ACEOF | |
30816 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30817 | _ACEOF | |
30818 | cat >>confdefs.h <<\_ACEOF | |
30819 | #define HAVE_NANOSLEEP 1 | |
30820 | _ACEOF | |
30821 | ||
30822 | else | |
30823 | ||
30824 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30825 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30826 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30828 | else | |
30829 | ac_check_lib_save_LIBS=$LIBS | |
30830 | LIBS="-lposix4 $LIBS" | |
30831 | cat >conftest.$ac_ext <<_ACEOF | |
30832 | /* confdefs.h. */ | |
30833 | _ACEOF | |
30834 | cat confdefs.h >>conftest.$ac_ext | |
30835 | cat >>conftest.$ac_ext <<_ACEOF | |
30836 | /* end confdefs.h. */ | |
30837 | ||
30838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30839 | #ifdef __cplusplus | |
30840 | extern "C" | |
30841 | #endif | |
30842 | /* We use char because int might match the return type of a gcc2 | |
30843 | builtin and then its argument prototype would still apply. */ | |
30844 | char nanosleep (); | |
30845 | int | |
30846 | main () | |
30847 | { | |
30848 | nanosleep (); | |
30849 | ; | |
30850 | return 0; | |
30851 | } | |
30852 | _ACEOF | |
30853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30856 | ac_status=$? |
ac1cb8d3 VS |
30857 | grep -v '^ *+' conftest.er1 >conftest.err |
30858 | rm -f conftest.er1 | |
30859 | cat conftest.err >&5 | |
a848cd7e SC |
30860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30861 | (exit $ac_status); } && | |
5294a27e | 30862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30864 | (eval $ac_try) 2>&5 | |
30865 | ac_status=$? | |
30866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30867 | (exit $ac_status); }; } && | |
30868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30870 | (eval $ac_try) 2>&5 | |
30871 | ac_status=$? | |
30872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30873 | (exit $ac_status); }; }; then | |
30874 | ac_cv_lib_posix4_nanosleep=yes | |
30875 | else | |
30876 | echo "$as_me: failed program was:" >&5 | |
30877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30878 | ||
30879 | ac_cv_lib_posix4_nanosleep=no | |
30880 | fi | |
ac1cb8d3 VS |
30881 | rm -f conftest.err conftest.$ac_objext \ |
30882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30883 | LIBS=$ac_check_lib_save_LIBS |
30884 | fi | |
30885 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30886 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30887 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30888 | ||
30889 | cat >>confdefs.h <<\_ACEOF | |
30890 | #define HAVE_NANOSLEEP 1 | |
30891 | _ACEOF | |
30892 | ||
30893 | POSIX4_LINK=" -lposix4" | |
30894 | ||
30895 | else | |
30896 | ||
30897 | ||
30898 | for ac_func in usleep | |
30899 | do | |
30900 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30901 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30902 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30903 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30905 | else | |
30906 | cat >conftest.$ac_ext <<_ACEOF | |
30907 | /* confdefs.h. */ | |
30908 | _ACEOF | |
30909 | cat confdefs.h >>conftest.$ac_ext | |
30910 | cat >>conftest.$ac_ext <<_ACEOF | |
30911 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30912 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30913 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30914 | #define $ac_func innocuous_$ac_func | |
30915 | ||
a848cd7e SC |
30916 | /* System header to define __stub macros and hopefully few prototypes, |
30917 | which can conflict with char $ac_func (); below. | |
30918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30919 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30920 | |
a848cd7e SC |
30921 | #ifdef __STDC__ |
30922 | # include <limits.h> | |
30923 | #else | |
30924 | # include <assert.h> | |
30925 | #endif | |
ac1cb8d3 VS |
30926 | |
30927 | #undef $ac_func | |
30928 | ||
a848cd7e SC |
30929 | /* Override any gcc2 internal prototype to avoid an error. */ |
30930 | #ifdef __cplusplus | |
30931 | extern "C" | |
30932 | { | |
30933 | #endif | |
30934 | /* We use char because int might match the return type of a gcc2 | |
30935 | builtin and then its argument prototype would still apply. */ | |
30936 | char $ac_func (); | |
30937 | /* The GNU C library defines this for functions which it implements | |
30938 | to always fail with ENOSYS. Some functions are actually named | |
30939 | something starting with __ and the normal name is an alias. */ | |
30940 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30941 | choke me | |
30942 | #else | |
30943 | char (*f) () = $ac_func; | |
30944 | #endif | |
30945 | #ifdef __cplusplus | |
30946 | } | |
30947 | #endif | |
30948 | ||
30949 | int | |
30950 | main () | |
30951 | { | |
30952 | return f != $ac_func; | |
30953 | ; | |
30954 | return 0; | |
30955 | } | |
30956 | _ACEOF | |
30957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30959 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30960 | ac_status=$? |
ac1cb8d3 VS |
30961 | grep -v '^ *+' conftest.er1 >conftest.err |
30962 | rm -f conftest.er1 | |
30963 | cat conftest.err >&5 | |
a848cd7e SC |
30964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30965 | (exit $ac_status); } && | |
5294a27e | 30966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30968 | (eval $ac_try) 2>&5 | |
30969 | ac_status=$? | |
30970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30971 | (exit $ac_status); }; } && | |
30972 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30974 | (eval $ac_try) 2>&5 | |
30975 | ac_status=$? | |
30976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30977 | (exit $ac_status); }; }; then | |
30978 | eval "$as_ac_var=yes" | |
30979 | else | |
30980 | echo "$as_me: failed program was:" >&5 | |
30981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30982 | ||
30983 | eval "$as_ac_var=no" | |
30984 | fi | |
ac1cb8d3 VS |
30985 | rm -f conftest.err conftest.$ac_objext \ |
30986 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30987 | fi |
30988 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30989 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30990 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30991 | cat >>confdefs.h <<_ACEOF | |
30992 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30993 | _ACEOF | |
30994 | cat >>confdefs.h <<\_ACEOF | |
30995 | #define HAVE_USLEEP 1 | |
30996 | _ACEOF | |
30997 | ||
30998 | else | |
30999 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
31000 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
31001 | ||
31002 | fi | |
31003 | done | |
31004 | ||
31005 | ||
31006 | ||
31007 | fi | |
31008 | ||
31009 | ||
31010 | ||
31011 | fi | |
31012 | done | |
31013 | ||
31014 | fi | |
31015 | ||
31016 | ||
31017 | ||
31018 | for ac_func in uname gethostname | |
31019 | do | |
31020 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31021 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31022 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31023 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31025 | else | |
31026 | cat >conftest.$ac_ext <<_ACEOF | |
31027 | /* confdefs.h. */ | |
31028 | _ACEOF | |
31029 | cat confdefs.h >>conftest.$ac_ext | |
31030 | cat >>conftest.$ac_ext <<_ACEOF | |
31031 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31032 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31034 | #define $ac_func innocuous_$ac_func | |
31035 | ||
a848cd7e SC |
31036 | /* System header to define __stub macros and hopefully few prototypes, |
31037 | which can conflict with char $ac_func (); below. | |
31038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31039 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31040 | |
a848cd7e SC |
31041 | #ifdef __STDC__ |
31042 | # include <limits.h> | |
31043 | #else | |
31044 | # include <assert.h> | |
31045 | #endif | |
ac1cb8d3 VS |
31046 | |
31047 | #undef $ac_func | |
31048 | ||
a848cd7e SC |
31049 | /* Override any gcc2 internal prototype to avoid an error. */ |
31050 | #ifdef __cplusplus | |
31051 | extern "C" | |
31052 | { | |
31053 | #endif | |
31054 | /* We use char because int might match the return type of a gcc2 | |
31055 | builtin and then its argument prototype would still apply. */ | |
31056 | char $ac_func (); | |
31057 | /* The GNU C library defines this for functions which it implements | |
31058 | to always fail with ENOSYS. Some functions are actually named | |
31059 | something starting with __ and the normal name is an alias. */ | |
31060 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31061 | choke me | |
31062 | #else | |
31063 | char (*f) () = $ac_func; | |
31064 | #endif | |
31065 | #ifdef __cplusplus | |
31066 | } | |
31067 | #endif | |
31068 | ||
31069 | int | |
31070 | main () | |
31071 | { | |
31072 | return f != $ac_func; | |
31073 | ; | |
31074 | return 0; | |
31075 | } | |
31076 | _ACEOF | |
31077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31079 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31080 | ac_status=$? |
ac1cb8d3 VS |
31081 | grep -v '^ *+' conftest.er1 >conftest.err |
31082 | rm -f conftest.er1 | |
31083 | cat conftest.err >&5 | |
a848cd7e SC |
31084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31085 | (exit $ac_status); } && | |
5294a27e | 31086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31088 | (eval $ac_try) 2>&5 | |
31089 | ac_status=$? | |
31090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31091 | (exit $ac_status); }; } && | |
31092 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31094 | (eval $ac_try) 2>&5 | |
31095 | ac_status=$? | |
31096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31097 | (exit $ac_status); }; }; then | |
31098 | eval "$as_ac_var=yes" | |
31099 | else | |
31100 | echo "$as_me: failed program was:" >&5 | |
31101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31102 | ||
31103 | eval "$as_ac_var=no" | |
31104 | fi | |
ac1cb8d3 VS |
31105 | rm -f conftest.err conftest.$ac_objext \ |
31106 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31107 | fi |
31108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31109 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31110 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31111 | cat >>confdefs.h <<_ACEOF | |
31112 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31113 | _ACEOF | |
31114 | break | |
31115 | fi | |
31116 | done | |
31117 | ||
31118 | ||
31119 | ||
31120 | ||
31121 | ac_ext=cc | |
31122 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31126 | ||
31127 | ||
31128 | ||
31129 | for ac_func in strtok_r | |
31130 | do | |
31131 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31132 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31133 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31134 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31136 | else | |
31137 | cat >conftest.$ac_ext <<_ACEOF | |
31138 | /* confdefs.h. */ | |
31139 | _ACEOF | |
31140 | cat confdefs.h >>conftest.$ac_ext | |
31141 | cat >>conftest.$ac_ext <<_ACEOF | |
31142 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31143 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31144 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31145 | #define $ac_func innocuous_$ac_func | |
31146 | ||
a848cd7e SC |
31147 | /* System header to define __stub macros and hopefully few prototypes, |
31148 | which can conflict with char $ac_func (); below. | |
31149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31150 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31151 | |
a848cd7e SC |
31152 | #ifdef __STDC__ |
31153 | # include <limits.h> | |
31154 | #else | |
31155 | # include <assert.h> | |
31156 | #endif | |
ac1cb8d3 VS |
31157 | |
31158 | #undef $ac_func | |
31159 | ||
a848cd7e SC |
31160 | /* Override any gcc2 internal prototype to avoid an error. */ |
31161 | #ifdef __cplusplus | |
31162 | extern "C" | |
31163 | { | |
31164 | #endif | |
31165 | /* We use char because int might match the return type of a gcc2 | |
31166 | builtin and then its argument prototype would still apply. */ | |
31167 | char $ac_func (); | |
31168 | /* The GNU C library defines this for functions which it implements | |
31169 | to always fail with ENOSYS. Some functions are actually named | |
31170 | something starting with __ and the normal name is an alias. */ | |
31171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31172 | choke me | |
31173 | #else | |
31174 | char (*f) () = $ac_func; | |
31175 | #endif | |
31176 | #ifdef __cplusplus | |
31177 | } | |
31178 | #endif | |
31179 | ||
31180 | int | |
31181 | main () | |
31182 | { | |
31183 | return f != $ac_func; | |
31184 | ; | |
31185 | return 0; | |
31186 | } | |
31187 | _ACEOF | |
31188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31190 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31191 | ac_status=$? |
ac1cb8d3 VS |
31192 | grep -v '^ *+' conftest.er1 >conftest.err |
31193 | rm -f conftest.er1 | |
31194 | cat conftest.err >&5 | |
a848cd7e SC |
31195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31196 | (exit $ac_status); } && | |
5294a27e | 31197 | { ac_try='test -z "$ac_cxx_werror_flag" || 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 | ||
31226 | fi | |
31227 | done | |
31228 | ||
31229 | ||
31230 | ac_ext=c | |
31231 | ac_cpp='$CPP $CPPFLAGS' | |
31232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31235 | ||
31236 | ||
31237 | INET_LINK= | |
31238 | ||
31239 | for ac_func in inet_addr | |
31240 | do | |
31241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31242 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31244 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31246 | else | |
31247 | cat >conftest.$ac_ext <<_ACEOF | |
31248 | /* confdefs.h. */ | |
31249 | _ACEOF | |
31250 | cat confdefs.h >>conftest.$ac_ext | |
31251 | cat >>conftest.$ac_ext <<_ACEOF | |
31252 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31255 | #define $ac_func innocuous_$ac_func | |
31256 | ||
a848cd7e SC |
31257 | /* System header to define __stub macros and hopefully few prototypes, |
31258 | which can conflict with char $ac_func (); below. | |
31259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31260 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31261 | |
a848cd7e SC |
31262 | #ifdef __STDC__ |
31263 | # include <limits.h> | |
31264 | #else | |
31265 | # include <assert.h> | |
31266 | #endif | |
ac1cb8d3 VS |
31267 | |
31268 | #undef $ac_func | |
31269 | ||
a848cd7e SC |
31270 | /* Override any gcc2 internal prototype to avoid an error. */ |
31271 | #ifdef __cplusplus | |
31272 | extern "C" | |
31273 | { | |
31274 | #endif | |
31275 | /* We use char because int might match the return type of a gcc2 | |
31276 | builtin and then its argument prototype would still apply. */ | |
31277 | char $ac_func (); | |
31278 | /* The GNU C library defines this for functions which it implements | |
31279 | to always fail with ENOSYS. Some functions are actually named | |
31280 | something starting with __ and the normal name is an alias. */ | |
31281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31282 | choke me | |
31283 | #else | |
31284 | char (*f) () = $ac_func; | |
31285 | #endif | |
31286 | #ifdef __cplusplus | |
31287 | } | |
31288 | #endif | |
31289 | ||
31290 | int | |
31291 | main () | |
31292 | { | |
31293 | return f != $ac_func; | |
31294 | ; | |
31295 | return 0; | |
31296 | } | |
31297 | _ACEOF | |
31298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31300 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31301 | ac_status=$? |
ac1cb8d3 VS |
31302 | grep -v '^ *+' conftest.er1 >conftest.err |
31303 | rm -f conftest.er1 | |
31304 | cat conftest.err >&5 | |
a848cd7e SC |
31305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31306 | (exit $ac_status); } && | |
5294a27e | 31307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31309 | (eval $ac_try) 2>&5 | |
31310 | ac_status=$? | |
31311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31312 | (exit $ac_status); }; } && | |
31313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31315 | (eval $ac_try) 2>&5 | |
31316 | ac_status=$? | |
31317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31318 | (exit $ac_status); }; }; then | |
31319 | eval "$as_ac_var=yes" | |
31320 | else | |
31321 | echo "$as_me: failed program was:" >&5 | |
31322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31323 | ||
31324 | eval "$as_ac_var=no" | |
31325 | fi | |
ac1cb8d3 VS |
31326 | rm -f conftest.err conftest.$ac_objext \ |
31327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31328 | fi |
31329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31330 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31331 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31332 | cat >>confdefs.h <<_ACEOF | |
31333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31334 | _ACEOF | |
31335 | cat >>confdefs.h <<\_ACEOF | |
31336 | #define HAVE_INET_ADDR 1 | |
31337 | _ACEOF | |
31338 | ||
31339 | else | |
31340 | ||
31341 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31342 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31343 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31345 | else | |
31346 | ac_check_lib_save_LIBS=$LIBS | |
31347 | LIBS="-lnsl $LIBS" | |
31348 | cat >conftest.$ac_ext <<_ACEOF | |
31349 | /* confdefs.h. */ | |
31350 | _ACEOF | |
31351 | cat confdefs.h >>conftest.$ac_ext | |
31352 | cat >>conftest.$ac_ext <<_ACEOF | |
31353 | /* end confdefs.h. */ | |
31354 | ||
31355 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31356 | #ifdef __cplusplus | |
31357 | extern "C" | |
31358 | #endif | |
31359 | /* We use char because int might match the return type of a gcc2 | |
31360 | builtin and then its argument prototype would still apply. */ | |
31361 | char inet_addr (); | |
31362 | int | |
31363 | main () | |
31364 | { | |
31365 | inet_addr (); | |
31366 | ; | |
31367 | return 0; | |
31368 | } | |
31369 | _ACEOF | |
31370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31372 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31373 | ac_status=$? |
ac1cb8d3 VS |
31374 | grep -v '^ *+' conftest.er1 >conftest.err |
31375 | rm -f conftest.er1 | |
31376 | cat conftest.err >&5 | |
a848cd7e SC |
31377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31378 | (exit $ac_status); } && | |
5294a27e | 31379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31381 | (eval $ac_try) 2>&5 | |
31382 | ac_status=$? | |
31383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31384 | (exit $ac_status); }; } && | |
31385 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31387 | (eval $ac_try) 2>&5 | |
31388 | ac_status=$? | |
31389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31390 | (exit $ac_status); }; }; then | |
31391 | ac_cv_lib_nsl_inet_addr=yes | |
31392 | else | |
31393 | echo "$as_me: failed program was:" >&5 | |
31394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31395 | ||
31396 | ac_cv_lib_nsl_inet_addr=no | |
31397 | fi | |
ac1cb8d3 VS |
31398 | rm -f conftest.err conftest.$ac_objext \ |
31399 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31400 | LIBS=$ac_check_lib_save_LIBS |
31401 | fi | |
31402 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31403 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31404 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31405 | INET_LINK="nsl" | |
31406 | else | |
31407 | ||
31408 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31409 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31410 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31412 | else | |
31413 | ac_check_lib_save_LIBS=$LIBS | |
31414 | LIBS="-lresolv $LIBS" | |
31415 | cat >conftest.$ac_ext <<_ACEOF | |
31416 | /* confdefs.h. */ | |
31417 | _ACEOF | |
31418 | cat confdefs.h >>conftest.$ac_ext | |
31419 | cat >>conftest.$ac_ext <<_ACEOF | |
31420 | /* end confdefs.h. */ | |
31421 | ||
31422 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31423 | #ifdef __cplusplus | |
31424 | extern "C" | |
31425 | #endif | |
31426 | /* We use char because int might match the return type of a gcc2 | |
31427 | builtin and then its argument prototype would still apply. */ | |
31428 | char inet_addr (); | |
31429 | int | |
31430 | main () | |
31431 | { | |
31432 | inet_addr (); | |
31433 | ; | |
31434 | return 0; | |
31435 | } | |
31436 | _ACEOF | |
31437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31439 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31440 | ac_status=$? |
ac1cb8d3 VS |
31441 | grep -v '^ *+' conftest.er1 >conftest.err |
31442 | rm -f conftest.er1 | |
31443 | cat conftest.err >&5 | |
a848cd7e SC |
31444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31445 | (exit $ac_status); } && | |
5294a27e | 31446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31448 | (eval $ac_try) 2>&5 | |
31449 | ac_status=$? | |
31450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31451 | (exit $ac_status); }; } && | |
31452 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31454 | (eval $ac_try) 2>&5 | |
31455 | ac_status=$? | |
31456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31457 | (exit $ac_status); }; }; then | |
31458 | ac_cv_lib_resolv_inet_addr=yes | |
31459 | else | |
31460 | echo "$as_me: failed program was:" >&5 | |
31461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31462 | ||
31463 | ac_cv_lib_resolv_inet_addr=no | |
31464 | fi | |
ac1cb8d3 VS |
31465 | rm -f conftest.err conftest.$ac_objext \ |
31466 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31467 | LIBS=$ac_check_lib_save_LIBS |
31468 | fi | |
31469 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31470 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31471 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31472 | INET_LINK="resolv" | |
31473 | else | |
31474 | ||
31475 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31476 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31477 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31479 | else | |
31480 | ac_check_lib_save_LIBS=$LIBS | |
31481 | LIBS="-lsocket $LIBS" | |
31482 | cat >conftest.$ac_ext <<_ACEOF | |
31483 | /* confdefs.h. */ | |
31484 | _ACEOF | |
31485 | cat confdefs.h >>conftest.$ac_ext | |
31486 | cat >>conftest.$ac_ext <<_ACEOF | |
31487 | /* end confdefs.h. */ | |
31488 | ||
31489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31490 | #ifdef __cplusplus | |
31491 | extern "C" | |
31492 | #endif | |
31493 | /* We use char because int might match the return type of a gcc2 | |
31494 | builtin and then its argument prototype would still apply. */ | |
31495 | char inet_addr (); | |
31496 | int | |
31497 | main () | |
31498 | { | |
31499 | inet_addr (); | |
31500 | ; | |
31501 | return 0; | |
31502 | } | |
31503 | _ACEOF | |
31504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31506 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31507 | ac_status=$? |
ac1cb8d3 VS |
31508 | grep -v '^ *+' conftest.er1 >conftest.err |
31509 | rm -f conftest.er1 | |
31510 | cat conftest.err >&5 | |
a848cd7e SC |
31511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31512 | (exit $ac_status); } && | |
5294a27e | 31513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31515 | (eval $ac_try) 2>&5 | |
31516 | ac_status=$? | |
31517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31518 | (exit $ac_status); }; } && | |
31519 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31521 | (eval $ac_try) 2>&5 | |
31522 | ac_status=$? | |
31523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31524 | (exit $ac_status); }; }; then | |
31525 | ac_cv_lib_socket_inet_addr=yes | |
31526 | else | |
31527 | echo "$as_me: failed program was:" >&5 | |
31528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31529 | ||
31530 | ac_cv_lib_socket_inet_addr=no | |
31531 | fi | |
ac1cb8d3 VS |
31532 | rm -f conftest.err conftest.$ac_objext \ |
31533 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31534 | LIBS=$ac_check_lib_save_LIBS |
31535 | fi | |
31536 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31537 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31538 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31539 | INET_LINK="socket" | |
31540 | ||
31541 | fi | |
31542 | ||
31543 | ||
31544 | ||
31545 | fi | |
31546 | ||
31547 | ||
31548 | ||
31549 | fi | |
31550 | ||
31551 | ||
31552 | ||
31553 | fi | |
31554 | done | |
31555 | ||
31556 | ||
31557 | ||
31558 | for ac_func in inet_aton | |
31559 | do | |
31560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31565 | else | |
31566 | cat >conftest.$ac_ext <<_ACEOF | |
31567 | /* confdefs.h. */ | |
31568 | _ACEOF | |
31569 | cat confdefs.h >>conftest.$ac_ext | |
31570 | cat >>conftest.$ac_ext <<_ACEOF | |
31571 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31574 | #define $ac_func innocuous_$ac_func | |
31575 | ||
a848cd7e SC |
31576 | /* System header to define __stub macros and hopefully few prototypes, |
31577 | which can conflict with char $ac_func (); below. | |
31578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31579 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31580 | |
a848cd7e SC |
31581 | #ifdef __STDC__ |
31582 | # include <limits.h> | |
31583 | #else | |
31584 | # include <assert.h> | |
31585 | #endif | |
ac1cb8d3 VS |
31586 | |
31587 | #undef $ac_func | |
31588 | ||
a848cd7e SC |
31589 | /* Override any gcc2 internal prototype to avoid an error. */ |
31590 | #ifdef __cplusplus | |
31591 | extern "C" | |
31592 | { | |
31593 | #endif | |
31594 | /* We use char because int might match the return type of a gcc2 | |
31595 | builtin and then its argument prototype would still apply. */ | |
31596 | char $ac_func (); | |
31597 | /* The GNU C library defines this for functions which it implements | |
31598 | to always fail with ENOSYS. Some functions are actually named | |
31599 | something starting with __ and the normal name is an alias. */ | |
31600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31601 | choke me | |
31602 | #else | |
31603 | char (*f) () = $ac_func; | |
31604 | #endif | |
31605 | #ifdef __cplusplus | |
31606 | } | |
31607 | #endif | |
31608 | ||
31609 | int | |
31610 | main () | |
31611 | { | |
31612 | return f != $ac_func; | |
31613 | ; | |
31614 | return 0; | |
31615 | } | |
31616 | _ACEOF | |
31617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31619 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31620 | ac_status=$? |
ac1cb8d3 VS |
31621 | grep -v '^ *+' conftest.er1 >conftest.err |
31622 | rm -f conftest.er1 | |
31623 | cat conftest.err >&5 | |
a848cd7e SC |
31624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31625 | (exit $ac_status); } && | |
5294a27e | 31626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31628 | (eval $ac_try) 2>&5 | |
31629 | ac_status=$? | |
31630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31631 | (exit $ac_status); }; } && | |
31632 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31634 | (eval $ac_try) 2>&5 | |
31635 | ac_status=$? | |
31636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31637 | (exit $ac_status); }; }; then | |
31638 | eval "$as_ac_var=yes" | |
31639 | else | |
31640 | echo "$as_me: failed program was:" >&5 | |
31641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31642 | ||
31643 | eval "$as_ac_var=no" | |
31644 | fi | |
ac1cb8d3 VS |
31645 | rm -f conftest.err conftest.$ac_objext \ |
31646 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31647 | fi |
31648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31651 | cat >>confdefs.h <<_ACEOF | |
31652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31653 | _ACEOF | |
31654 | cat >>confdefs.h <<\_ACEOF | |
31655 | #define HAVE_INET_ATON 1 | |
31656 | _ACEOF | |
31657 | ||
31658 | else | |
31659 | ||
31660 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31661 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31662 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31663 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31665 | else | |
31666 | ac_check_lib_save_LIBS=$LIBS | |
31667 | LIBS="-l$INET_LINK $LIBS" | |
31668 | cat >conftest.$ac_ext <<_ACEOF | |
31669 | /* confdefs.h. */ | |
31670 | _ACEOF | |
31671 | cat confdefs.h >>conftest.$ac_ext | |
31672 | cat >>conftest.$ac_ext <<_ACEOF | |
31673 | /* end confdefs.h. */ | |
31674 | ||
31675 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31676 | #ifdef __cplusplus | |
31677 | extern "C" | |
31678 | #endif | |
31679 | /* We use char because int might match the return type of a gcc2 | |
31680 | builtin and then its argument prototype would still apply. */ | |
31681 | char inet_aton (); | |
31682 | int | |
31683 | main () | |
31684 | { | |
31685 | inet_aton (); | |
31686 | ; | |
31687 | return 0; | |
31688 | } | |
31689 | _ACEOF | |
31690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31692 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31693 | ac_status=$? |
ac1cb8d3 VS |
31694 | grep -v '^ *+' conftest.er1 >conftest.err |
31695 | rm -f conftest.er1 | |
31696 | cat conftest.err >&5 | |
a848cd7e SC |
31697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31698 | (exit $ac_status); } && | |
5294a27e | 31699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31701 | (eval $ac_try) 2>&5 | |
31702 | ac_status=$? | |
31703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31704 | (exit $ac_status); }; } && | |
31705 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31707 | (eval $ac_try) 2>&5 | |
31708 | ac_status=$? | |
31709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31710 | (exit $ac_status); }; }; then | |
31711 | eval "$as_ac_Lib=yes" | |
31712 | else | |
31713 | echo "$as_me: failed program was:" >&5 | |
31714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31715 | ||
31716 | eval "$as_ac_Lib=no" | |
31717 | fi | |
ac1cb8d3 VS |
31718 | rm -f conftest.err conftest.$ac_objext \ |
31719 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31720 | LIBS=$ac_check_lib_save_LIBS |
31721 | fi | |
31722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31723 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31724 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31725 | cat >>confdefs.h <<\_ACEOF | |
31726 | #define HAVE_INET_ATON 1 | |
31727 | _ACEOF | |
31728 | ||
31729 | fi | |
31730 | ||
31731 | ||
31732 | fi | |
31733 | done | |
31734 | ||
31735 | ||
31736 | if test "x$INET_LINK" != "x"; then | |
31737 | cat >>confdefs.h <<\_ACEOF | |
31738 | #define HAVE_INET_ADDR 1 | |
31739 | _ACEOF | |
31740 | ||
31741 | INET_LINK=" -l$INET_LINK" | |
31742 | fi | |
31743 | ||
31744 | fi | |
31745 | ||
31746 | ||
31747 | ||
31748 | EXTRALIBS_ESD= | |
31749 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31750 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31751 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31753 | else | |
31754 | ac_check_lib_save_LIBS=$LIBS | |
31755 | LIBS="-lesd $LIBS" | |
31756 | cat >conftest.$ac_ext <<_ACEOF | |
31757 | /* confdefs.h. */ | |
31758 | _ACEOF | |
31759 | cat confdefs.h >>conftest.$ac_ext | |
31760 | cat >>conftest.$ac_ext <<_ACEOF | |
31761 | /* end confdefs.h. */ | |
31762 | ||
31763 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31764 | #ifdef __cplusplus | |
31765 | extern "C" | |
31766 | #endif | |
31767 | /* We use char because int might match the return type of a gcc2 | |
31768 | builtin and then its argument prototype would still apply. */ | |
31769 | char esd_close (); | |
31770 | int | |
31771 | main () | |
31772 | { | |
31773 | esd_close (); | |
31774 | ; | |
31775 | return 0; | |
31776 | } | |
31777 | _ACEOF | |
31778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31780 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31781 | ac_status=$? |
ac1cb8d3 VS |
31782 | grep -v '^ *+' conftest.er1 >conftest.err |
31783 | rm -f conftest.er1 | |
31784 | cat conftest.err >&5 | |
a848cd7e SC |
31785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31786 | (exit $ac_status); } && | |
5294a27e | 31787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31789 | (eval $ac_try) 2>&5 | |
31790 | ac_status=$? | |
31791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31792 | (exit $ac_status); }; } && | |
31793 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31795 | (eval $ac_try) 2>&5 | |
31796 | ac_status=$? | |
31797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31798 | (exit $ac_status); }; }; then | |
31799 | ac_cv_lib_esd_esd_close=yes | |
31800 | else | |
31801 | echo "$as_me: failed program was:" >&5 | |
31802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31803 | ||
31804 | ac_cv_lib_esd_esd_close=no | |
31805 | fi | |
ac1cb8d3 VS |
31806 | rm -f conftest.err conftest.$ac_objext \ |
31807 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31808 | LIBS=$ac_check_lib_save_LIBS |
31809 | fi | |
31810 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31811 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31812 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31813 | ||
31814 | ||
31815 | for ac_header in esd.h | |
31816 | do | |
31817 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31823 | fi | |
31824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31826 | else | |
31827 | # Is the header compilable? | |
31828 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31829 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31830 | cat >conftest.$ac_ext <<_ACEOF | |
31831 | /* confdefs.h. */ | |
31832 | _ACEOF | |
31833 | cat confdefs.h >>conftest.$ac_ext | |
31834 | cat >>conftest.$ac_ext <<_ACEOF | |
31835 | /* end confdefs.h. */ | |
31836 | $ac_includes_default | |
31837 | #include <$ac_header> | |
31838 | _ACEOF | |
31839 | rm -f conftest.$ac_objext | |
31840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31841 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31842 | ac_status=$? |
ac1cb8d3 VS |
31843 | grep -v '^ *+' conftest.er1 >conftest.err |
31844 | rm -f conftest.er1 | |
31845 | cat conftest.err >&5 | |
a848cd7e SC |
31846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31847 | (exit $ac_status); } && | |
5294a27e | 31848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31850 | (eval $ac_try) 2>&5 | |
31851 | ac_status=$? | |
31852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31853 | (exit $ac_status); }; } && | |
31854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31856 | (eval $ac_try) 2>&5 | |
31857 | ac_status=$? | |
31858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31859 | (exit $ac_status); }; }; then | |
31860 | ac_header_compiler=yes | |
31861 | else | |
31862 | echo "$as_me: failed program was:" >&5 | |
31863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31864 | ||
31865 | ac_header_compiler=no | |
31866 | fi | |
ac1cb8d3 | 31867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31868 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31869 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31870 | ||
31871 | # Is the header present? | |
31872 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31873 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31874 | cat >conftest.$ac_ext <<_ACEOF | |
31875 | /* confdefs.h. */ | |
31876 | _ACEOF | |
31877 | cat confdefs.h >>conftest.$ac_ext | |
31878 | cat >>conftest.$ac_ext <<_ACEOF | |
31879 | /* end confdefs.h. */ | |
31880 | #include <$ac_header> | |
31881 | _ACEOF | |
31882 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31883 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31884 | ac_status=$? | |
31885 | grep -v '^ *+' conftest.er1 >conftest.err | |
31886 | rm -f conftest.er1 | |
31887 | cat conftest.err >&5 | |
31888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31889 | (exit $ac_status); } >/dev/null; then | |
31890 | if test -s conftest.err; then | |
31891 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31892 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31893 | else |
31894 | ac_cpp_err= | |
31895 | fi | |
31896 | else | |
31897 | ac_cpp_err=yes | |
31898 | fi | |
31899 | if test -z "$ac_cpp_err"; then | |
31900 | ac_header_preproc=yes | |
31901 | else | |
31902 | echo "$as_me: failed program was:" >&5 | |
31903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31904 | ||
31905 | ac_header_preproc=no | |
31906 | fi | |
31907 | rm -f conftest.err conftest.$ac_ext | |
31908 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31909 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31910 | ||
31911 | # So? What about this header? | |
ac1cb8d3 VS |
31912 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31913 | yes:no: ) | |
a848cd7e SC |
31914 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31915 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31916 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31917 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31918 | ac_header_preproc=yes | |
a848cd7e | 31919 | ;; |
ac1cb8d3 | 31920 | no:yes:* ) |
a848cd7e SC |
31921 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31922 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31923 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31924 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31925 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31926 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31927 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31928 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31929 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31930 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31931 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31932 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31933 | ( |
31934 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31935 | ## ----------------------------------------- ## |
31936 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31937 | ## ----------------------------------------- ## | |
a848cd7e SC |
31938 | _ASBOX |
31939 | ) | | |
31940 | sed "s/^/$as_me: WARNING: /" >&2 | |
31941 | ;; | |
31942 | esac | |
31943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31947 | else | |
ac1cb8d3 | 31948 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31949 | fi |
31950 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31951 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31952 | ||
31953 | fi | |
31954 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31955 | cat >>confdefs.h <<_ACEOF | |
31956 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31957 | _ACEOF | |
31958 | ||
31959 | EXTRALIBS_ESD="-lesd" | |
31960 | ||
31961 | fi | |
31962 | ||
31963 | done | |
31964 | ||
31965 | ||
31966 | fi | |
31967 | ||
31968 | ||
31969 | ||
31970 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31971 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31972 | cat >conftest.$ac_ext <<_ACEOF | |
31973 | /* confdefs.h. */ | |
31974 | _ACEOF | |
31975 | cat confdefs.h >>conftest.$ac_ext | |
31976 | cat >>conftest.$ac_ext <<_ACEOF | |
31977 | /* end confdefs.h. */ | |
31978 | #ifdef __linux__ | |
31979 | #include <linux/cdrom.h> | |
31980 | #else | |
31981 | /* For Solaris */ | |
31982 | #include <sys/cdio.h> | |
31983 | #endif | |
31984 | ||
31985 | int | |
31986 | main () | |
31987 | { | |
31988 | struct cdrom_tocentry entry, old_entry; | |
31989 | ; | |
31990 | return 0; | |
31991 | } | |
31992 | _ACEOF | |
31993 | rm -f conftest.$ac_objext | |
31994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31995 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31996 | ac_status=$? |
ac1cb8d3 VS |
31997 | grep -v '^ *+' conftest.er1 >conftest.err |
31998 | rm -f conftest.er1 | |
31999 | cat conftest.err >&5 | |
a848cd7e SC |
32000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32001 | (exit $ac_status); } && | |
5294a27e | 32002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32004 | (eval $ac_try) 2>&5 | |
32005 | ac_status=$? | |
32006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32007 | (exit $ac_status); }; } && | |
32008 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32010 | (eval $ac_try) 2>&5 | |
32011 | ac_status=$? | |
32012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32013 | (exit $ac_status); }; }; then | |
32014 | echo "$as_me:$LINENO: result: yes" >&5 | |
32015 | echo "${ECHO_T}yes" >&6 | |
32016 | cat >>confdefs.h <<\_ACEOF | |
32017 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
32018 | _ACEOF | |
32019 | ||
32020 | else | |
32021 | echo "$as_me: failed program was:" >&5 | |
32022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32023 | ||
32024 | echo "$as_me:$LINENO: result: no" >&5 | |
32025 | echo "${ECHO_T}no" >&6 | |
32026 | fi | |
ac1cb8d3 | 32027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32028 | |
32029 | ||
32030 | cat >confcache <<\_ACEOF | |
32031 | # This file is a shell script that caches the results of configure | |
32032 | # tests run on this system so they can be shared between configure | |
32033 | # scripts and configure runs, see configure's option --config-cache. | |
32034 | # It is not useful on other systems. If it contains results you don't | |
32035 | # want to keep, you may remove or edit it. | |
32036 | # | |
32037 | # config.status only pays attention to the cache file if you give it | |
32038 | # the --recheck option to rerun configure. | |
32039 | # | |
32040 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
32041 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
32042 | # following values. | |
32043 | ||
32044 | _ACEOF | |
32045 | ||
32046 | # The following way of writing the cache mishandles newlines in values, | |
32047 | # but we know of no workaround that is simple, portable, and efficient. | |
32048 | # So, don't put newlines in cache variables' values. | |
32049 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
32050 | # and sets the high bit in the cache file unless we assign to the vars. | |
32051 | { | |
32052 | (set) 2>&1 | | |
32053 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
32054 | *ac_space=\ *) | |
32055 | # `set' does not quote correctly, so add quotes (double-quote | |
32056 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
32057 | sed -n \ | |
ac1cb8d3 VS |
32058 | "s/'/'\\\\''/g; |
32059 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
32060 | ;; |
32061 | *) | |
32062 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
32063 | sed -n \ | |
ac1cb8d3 | 32064 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
32065 | ;; |
32066 | esac; | |
32067 | } | | |
32068 | sed ' | |
32069 | t clear | |
32070 | : clear | |
32071 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
32072 | t end | |
32073 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
32074 | : end' >>confcache | |
32075 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
32076 | if test -w $cache_file; then | |
32077 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
32078 | cat confcache >$cache_file | |
32079 | else | |
32080 | echo "not updating unwritable cache $cache_file" | |
32081 | fi | |
32082 | fi | |
32083 | rm -f confcache | |
32084 | ||
32085 | ||
32086 | CPP_MT_FLAG= | |
32087 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
32088 | ||
32089 | ||
32090 | THREADS_LINK= | |
32091 | THREADS_CFLAGS= | |
32092 | ||
32093 | if test "$wxUSE_THREADS" = "yes" ; then | |
32094 | if test "$USE_BEOS" = 1; then | |
32095 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
32096 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
32097 | wxUSE_THREADS="no" | |
32098 | fi | |
32099 | fi | |
32100 | ||
32101 | if test "$wxUSE_THREADS" = "yes" ; then | |
32102 | ||
32103 | ||
32104 | THREAD_OPTS="-pthread" | |
32105 | case "${host}" in | |
32106 | *-*-solaris2* | *-*-sunos4* ) | |
32107 | if test "x$GCC" = "xyes"; then | |
32108 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
32109 | else | |
32110 | THREAD_OPTS="-mt $THREAD_OPTS" | |
32111 | fi | |
32112 | ;; | |
32113 | *-*-freebsd*) | |
32114 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
32115 | ;; | |
32116 | *-*-darwin* | *-*-cygwin* ) | |
32117 | THREAD_OPTS="" | |
32118 | ;; | |
32119 | *-*-aix*) | |
32120 | THREAD_OPTS="pthreads" | |
32121 | ;; | |
32122 | *-hp-hpux* ) | |
32123 | if test "x$GCC" != "xyes"; then | |
32124 | THREAD_OPTS="" | |
32125 | fi | |
32126 | ;; | |
32127 | ||
32128 | *-*-irix* ) | |
32129 | if test "x$GCC" = "xyes"; then | |
32130 | THREAD_OPTS="" | |
32131 | fi | |
32132 | ;; | |
32133 | ||
32134 | *-*-*UnixWare*) | |
32135 | if test "x$GCC" != "xyes"; then | |
32136 | THREAD_OPTS="-Ethread" | |
32137 | fi | |
32138 | ;; | |
32139 | esac | |
32140 | ||
32141 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
32142 | ||
32143 | THREADS_OK=no | |
32144 | for flag in $THREAD_OPTS; do | |
32145 | case $flag in | |
32146 | none) | |
32147 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
32148 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
32149 | ;; | |
32150 | ||
32151 | -*) | |
32152 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
32153 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
32154 | THREADS_CFLAGS="$flag" | |
32155 | ;; | |
32156 | ||
32157 | *) | |
32158 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
32159 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
32160 | THREADS_LINK="-l$flag" | |
32161 | ;; | |
32162 | esac | |
32163 | ||
32164 | save_LIBS="$LIBS" | |
32165 | save_CFLAGS="$CFLAGS" | |
32166 | LIBS="$THREADS_LINK $LIBS" | |
32167 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
32168 | ||
32169 | cat >conftest.$ac_ext <<_ACEOF | |
32170 | /* confdefs.h. */ | |
32171 | _ACEOF | |
32172 | cat confdefs.h >>conftest.$ac_ext | |
32173 | cat >>conftest.$ac_ext <<_ACEOF | |
32174 | /* end confdefs.h. */ | |
32175 | #include <pthread.h> | |
32176 | int | |
32177 | main () | |
32178 | { | |
32179 | pthread_create(0,0,0,0); | |
32180 | ; | |
32181 | return 0; | |
32182 | } | |
32183 | _ACEOF | |
32184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32186 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32187 | ac_status=$? |
ac1cb8d3 VS |
32188 | grep -v '^ *+' conftest.er1 >conftest.err |
32189 | rm -f conftest.er1 | |
32190 | cat conftest.err >&5 | |
a848cd7e SC |
32191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32192 | (exit $ac_status); } && | |
5294a27e | 32193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32195 | (eval $ac_try) 2>&5 | |
32196 | ac_status=$? | |
32197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32198 | (exit $ac_status); }; } && | |
32199 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32201 | (eval $ac_try) 2>&5 | |
32202 | ac_status=$? | |
32203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32204 | (exit $ac_status); }; }; then | |
32205 | THREADS_OK=yes | |
32206 | else | |
32207 | echo "$as_me: failed program was:" >&5 | |
32208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32209 | ||
32210 | fi | |
ac1cb8d3 VS |
32211 | rm -f conftest.err conftest.$ac_objext \ |
32212 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32213 | |
32214 | LIBS="$save_LIBS" | |
32215 | CFLAGS="$save_CFLAGS" | |
32216 | ||
32217 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
32218 | echo "${ECHO_T}$THREADS_OK" >&6 | |
32219 | if test "x$THREADS_OK" = "xyes"; then | |
32220 | break; | |
32221 | fi | |
32222 | ||
32223 | THREADS_LINK="" | |
32224 | THREADS_CFLAGS="" | |
32225 | done | |
32226 | ||
32227 | if test "x$THREADS_OK" != "xyes"; then | |
32228 | wxUSE_THREADS=no | |
32229 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
32230 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
32231 | else | |
32232 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
32233 | LIBS="$THREADS_LINK $LIBS" | |
32234 | ||
32235 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
32236 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
32237 | flag=no | |
32238 | case "${host}" in | |
32239 | *-aix*) | |
32240 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32241 | flag="-D_THREAD_SAFE" | |
32242 | ;; | |
32243 | *-freebsd*) | |
32244 | flag="-D_THREAD_SAFE" | |
32245 | ;; | |
32246 | *-hp-hpux* ) | |
32247 | flag="-D_REENTRANT" | |
32248 | if test "x$GCC" != "xyes"; then | |
32249 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
32250 | |
32251 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
32252 | fi |
32253 | ;; | |
32254 | *solaris* | alpha*-osf*) | |
32255 | flag="-D_REENTRANT" | |
32256 | ;; | |
32257 | esac | |
32258 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
32259 | echo "${ECHO_T}${flag}" >&6 | |
32260 | if test "x$flag" != xno; then | |
32261 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
32262 | fi | |
32263 | ||
32264 | if test "x$THREADS_CFLAGS" != "x"; then | |
32265 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
32266 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
32267 | fi | |
32268 | fi | |
32269 | fi | |
32270 | ||
32271 | if test "$wxUSE_THREADS" = "yes" ; then | |
32272 | ||
32273 | for ac_func in thr_setconcurrency | |
32274 | do | |
32275 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32276 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32277 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32278 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32280 | else | |
32281 | cat >conftest.$ac_ext <<_ACEOF | |
32282 | /* confdefs.h. */ | |
32283 | _ACEOF | |
32284 | cat confdefs.h >>conftest.$ac_ext | |
32285 | cat >>conftest.$ac_ext <<_ACEOF | |
32286 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32287 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32289 | #define $ac_func innocuous_$ac_func | |
32290 | ||
a848cd7e SC |
32291 | /* System header to define __stub macros and hopefully few prototypes, |
32292 | which can conflict with char $ac_func (); below. | |
32293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32294 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32295 | |
a848cd7e SC |
32296 | #ifdef __STDC__ |
32297 | # include <limits.h> | |
32298 | #else | |
32299 | # include <assert.h> | |
32300 | #endif | |
ac1cb8d3 VS |
32301 | |
32302 | #undef $ac_func | |
32303 | ||
a848cd7e SC |
32304 | /* Override any gcc2 internal prototype to avoid an error. */ |
32305 | #ifdef __cplusplus | |
32306 | extern "C" | |
32307 | { | |
32308 | #endif | |
32309 | /* We use char because int might match the return type of a gcc2 | |
32310 | builtin and then its argument prototype would still apply. */ | |
32311 | char $ac_func (); | |
32312 | /* The GNU C library defines this for functions which it implements | |
32313 | to always fail with ENOSYS. Some functions are actually named | |
32314 | something starting with __ and the normal name is an alias. */ | |
32315 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32316 | choke me | |
32317 | #else | |
32318 | char (*f) () = $ac_func; | |
32319 | #endif | |
32320 | #ifdef __cplusplus | |
32321 | } | |
32322 | #endif | |
32323 | ||
32324 | int | |
32325 | main () | |
32326 | { | |
32327 | return f != $ac_func; | |
32328 | ; | |
32329 | return 0; | |
32330 | } | |
32331 | _ACEOF | |
32332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32334 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32335 | ac_status=$? |
ac1cb8d3 VS |
32336 | grep -v '^ *+' conftest.er1 >conftest.err |
32337 | rm -f conftest.er1 | |
32338 | cat conftest.err >&5 | |
a848cd7e SC |
32339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32340 | (exit $ac_status); } && | |
5294a27e | 32341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32343 | (eval $ac_try) 2>&5 | |
32344 | ac_status=$? | |
32345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32346 | (exit $ac_status); }; } && | |
32347 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32349 | (eval $ac_try) 2>&5 | |
32350 | ac_status=$? | |
32351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32352 | (exit $ac_status); }; }; then | |
32353 | eval "$as_ac_var=yes" | |
32354 | else | |
32355 | echo "$as_me: failed program was:" >&5 | |
32356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32357 | ||
32358 | eval "$as_ac_var=no" | |
32359 | fi | |
ac1cb8d3 VS |
32360 | rm -f conftest.err conftest.$ac_objext \ |
32361 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32362 | fi |
32363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32364 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32365 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32366 | cat >>confdefs.h <<_ACEOF | |
32367 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32368 | _ACEOF | |
32369 | ||
32370 | fi | |
32371 | done | |
32372 | ||
32373 | ||
32374 | ||
32375 | for ac_header in sched.h | |
32376 | do | |
32377 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32379 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32381 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32383 | fi | |
32384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32385 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32386 | else | |
32387 | # Is the header compilable? | |
32388 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32389 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32390 | cat >conftest.$ac_ext <<_ACEOF | |
32391 | /* confdefs.h. */ | |
32392 | _ACEOF | |
32393 | cat confdefs.h >>conftest.$ac_ext | |
32394 | cat >>conftest.$ac_ext <<_ACEOF | |
32395 | /* end confdefs.h. */ | |
32396 | $ac_includes_default | |
32397 | #include <$ac_header> | |
32398 | _ACEOF | |
32399 | rm -f conftest.$ac_objext | |
32400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32401 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32402 | ac_status=$? |
ac1cb8d3 VS |
32403 | grep -v '^ *+' conftest.er1 >conftest.err |
32404 | rm -f conftest.er1 | |
32405 | cat conftest.err >&5 | |
a848cd7e SC |
32406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32407 | (exit $ac_status); } && | |
5294a27e | 32408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32410 | (eval $ac_try) 2>&5 | |
32411 | ac_status=$? | |
32412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32413 | (exit $ac_status); }; } && | |
32414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32416 | (eval $ac_try) 2>&5 | |
32417 | ac_status=$? | |
32418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32419 | (exit $ac_status); }; }; then | |
32420 | ac_header_compiler=yes | |
32421 | else | |
32422 | echo "$as_me: failed program was:" >&5 | |
32423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32424 | ||
32425 | ac_header_compiler=no | |
32426 | fi | |
ac1cb8d3 | 32427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32428 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32429 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32430 | ||
32431 | # Is the header present? | |
32432 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32433 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32434 | cat >conftest.$ac_ext <<_ACEOF | |
32435 | /* confdefs.h. */ | |
32436 | _ACEOF | |
32437 | cat confdefs.h >>conftest.$ac_ext | |
32438 | cat >>conftest.$ac_ext <<_ACEOF | |
32439 | /* end confdefs.h. */ | |
32440 | #include <$ac_header> | |
32441 | _ACEOF | |
32442 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32443 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32444 | ac_status=$? | |
32445 | grep -v '^ *+' conftest.er1 >conftest.err | |
32446 | rm -f conftest.er1 | |
32447 | cat conftest.err >&5 | |
32448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32449 | (exit $ac_status); } >/dev/null; then | |
32450 | if test -s conftest.err; then | |
32451 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32452 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32453 | else |
32454 | ac_cpp_err= | |
32455 | fi | |
32456 | else | |
32457 | ac_cpp_err=yes | |
32458 | fi | |
32459 | if test -z "$ac_cpp_err"; then | |
32460 | ac_header_preproc=yes | |
32461 | else | |
32462 | echo "$as_me: failed program was:" >&5 | |
32463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32464 | ||
32465 | ac_header_preproc=no | |
32466 | fi | |
32467 | rm -f conftest.err conftest.$ac_ext | |
32468 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32469 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32470 | ||
32471 | # So? What about this header? | |
ac1cb8d3 VS |
32472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32473 | yes:no: ) | |
a848cd7e SC |
32474 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32475 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32476 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32477 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32478 | ac_header_preproc=yes | |
a848cd7e | 32479 | ;; |
ac1cb8d3 | 32480 | no:yes:* ) |
a848cd7e SC |
32481 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32482 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32483 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32484 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32485 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32486 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32487 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32488 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32489 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32490 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32491 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32492 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32493 | ( |
32494 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32495 | ## ----------------------------------------- ## |
32496 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32497 | ## ----------------------------------------- ## | |
a848cd7e SC |
32498 | _ASBOX |
32499 | ) | | |
32500 | sed "s/^/$as_me: WARNING: /" >&2 | |
32501 | ;; | |
32502 | esac | |
32503 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32505 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32507 | else | |
ac1cb8d3 | 32508 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32509 | fi |
32510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32512 | ||
32513 | fi | |
32514 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32515 | cat >>confdefs.h <<_ACEOF | |
32516 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32517 | _ACEOF | |
32518 | ||
32519 | fi | |
32520 | ||
32521 | done | |
32522 | ||
32523 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32524 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32525 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32526 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32528 | else | |
32529 | cat >conftest.$ac_ext <<_ACEOF | |
32530 | /* confdefs.h. */ | |
32531 | _ACEOF | |
32532 | cat confdefs.h >>conftest.$ac_ext | |
32533 | cat >>conftest.$ac_ext <<_ACEOF | |
32534 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32535 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32537 | #define sched_yield innocuous_sched_yield | |
32538 | ||
a848cd7e SC |
32539 | /* System header to define __stub macros and hopefully few prototypes, |
32540 | which can conflict with char sched_yield (); below. | |
32541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32542 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32543 | |
a848cd7e SC |
32544 | #ifdef __STDC__ |
32545 | # include <limits.h> | |
32546 | #else | |
32547 | # include <assert.h> | |
32548 | #endif | |
ac1cb8d3 VS |
32549 | |
32550 | #undef sched_yield | |
32551 | ||
a848cd7e SC |
32552 | /* Override any gcc2 internal prototype to avoid an error. */ |
32553 | #ifdef __cplusplus | |
32554 | extern "C" | |
32555 | { | |
32556 | #endif | |
32557 | /* We use char because int might match the return type of a gcc2 | |
32558 | builtin and then its argument prototype would still apply. */ | |
32559 | char sched_yield (); | |
32560 | /* The GNU C library defines this for functions which it implements | |
32561 | to always fail with ENOSYS. Some functions are actually named | |
32562 | something starting with __ and the normal name is an alias. */ | |
32563 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32564 | choke me | |
32565 | #else | |
32566 | char (*f) () = sched_yield; | |
32567 | #endif | |
32568 | #ifdef __cplusplus | |
32569 | } | |
32570 | #endif | |
32571 | ||
32572 | int | |
32573 | main () | |
32574 | { | |
32575 | return f != sched_yield; | |
32576 | ; | |
32577 | return 0; | |
32578 | } | |
32579 | _ACEOF | |
32580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32582 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32583 | ac_status=$? |
ac1cb8d3 VS |
32584 | grep -v '^ *+' conftest.er1 >conftest.err |
32585 | rm -f conftest.er1 | |
32586 | cat conftest.err >&5 | |
a848cd7e SC |
32587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32588 | (exit $ac_status); } && | |
5294a27e | 32589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32591 | (eval $ac_try) 2>&5 | |
32592 | ac_status=$? | |
32593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32594 | (exit $ac_status); }; } && | |
32595 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32597 | (eval $ac_try) 2>&5 | |
32598 | ac_status=$? | |
32599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32600 | (exit $ac_status); }; }; then | |
32601 | ac_cv_func_sched_yield=yes | |
32602 | else | |
32603 | echo "$as_me: failed program was:" >&5 | |
32604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32605 | ||
32606 | ac_cv_func_sched_yield=no | |
32607 | fi | |
ac1cb8d3 VS |
32608 | rm -f conftest.err conftest.$ac_objext \ |
32609 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32610 | fi |
32611 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32612 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32613 | if test $ac_cv_func_sched_yield = yes; then | |
32614 | cat >>confdefs.h <<\_ACEOF | |
32615 | #define HAVE_SCHED_YIELD 1 | |
32616 | _ACEOF | |
32617 | ||
32618 | else | |
32619 | ||
32620 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32621 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32622 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32624 | else | |
32625 | ac_check_lib_save_LIBS=$LIBS | |
32626 | LIBS="-lposix4 $LIBS" | |
32627 | cat >conftest.$ac_ext <<_ACEOF | |
32628 | /* confdefs.h. */ | |
32629 | _ACEOF | |
32630 | cat confdefs.h >>conftest.$ac_ext | |
32631 | cat >>conftest.$ac_ext <<_ACEOF | |
32632 | /* end confdefs.h. */ | |
32633 | ||
32634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32635 | #ifdef __cplusplus | |
32636 | extern "C" | |
32637 | #endif | |
32638 | /* We use char because int might match the return type of a gcc2 | |
32639 | builtin and then its argument prototype would still apply. */ | |
32640 | char sched_yield (); | |
32641 | int | |
32642 | main () | |
32643 | { | |
32644 | sched_yield (); | |
32645 | ; | |
32646 | return 0; | |
32647 | } | |
32648 | _ACEOF | |
32649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32651 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32652 | ac_status=$? |
ac1cb8d3 VS |
32653 | grep -v '^ *+' conftest.er1 >conftest.err |
32654 | rm -f conftest.er1 | |
32655 | cat conftest.err >&5 | |
a848cd7e SC |
32656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32657 | (exit $ac_status); } && | |
5294a27e | 32658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32660 | (eval $ac_try) 2>&5 | |
32661 | ac_status=$? | |
32662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32663 | (exit $ac_status); }; } && | |
32664 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32666 | (eval $ac_try) 2>&5 | |
32667 | ac_status=$? | |
32668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32669 | (exit $ac_status); }; }; then | |
32670 | ac_cv_lib_posix4_sched_yield=yes | |
32671 | else | |
32672 | echo "$as_me: failed program was:" >&5 | |
32673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32674 | ||
32675 | ac_cv_lib_posix4_sched_yield=no | |
32676 | fi | |
ac1cb8d3 VS |
32677 | rm -f conftest.err conftest.$ac_objext \ |
32678 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32679 | LIBS=$ac_check_lib_save_LIBS |
32680 | fi | |
32681 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32682 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32683 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32684 | cat >>confdefs.h <<\_ACEOF | |
32685 | #define HAVE_SCHED_YIELD 1 | |
32686 | _ACEOF | |
32687 | POSIX4_LINK=" -lposix4" | |
32688 | else | |
32689 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32690 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32691 | ||
32692 | fi | |
32693 | ||
32694 | ||
32695 | ||
32696 | fi | |
32697 | ||
32698 | fi | |
32699 | ||
32700 | HAVE_PRIOR_FUNCS=0 | |
32701 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32702 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32703 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32705 | else | |
32706 | cat >conftest.$ac_ext <<_ACEOF | |
32707 | /* confdefs.h. */ | |
32708 | _ACEOF | |
32709 | cat confdefs.h >>conftest.$ac_ext | |
32710 | cat >>conftest.$ac_ext <<_ACEOF | |
32711 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32712 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32714 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32715 | ||
a848cd7e SC |
32716 | /* System header to define __stub macros and hopefully few prototypes, |
32717 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32719 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32720 | |
a848cd7e SC |
32721 | #ifdef __STDC__ |
32722 | # include <limits.h> | |
32723 | #else | |
32724 | # include <assert.h> | |
32725 | #endif | |
ac1cb8d3 VS |
32726 | |
32727 | #undef pthread_attr_getschedpolicy | |
32728 | ||
a848cd7e SC |
32729 | /* Override any gcc2 internal prototype to avoid an error. */ |
32730 | #ifdef __cplusplus | |
32731 | extern "C" | |
32732 | { | |
32733 | #endif | |
32734 | /* We use char because int might match the return type of a gcc2 | |
32735 | builtin and then its argument prototype would still apply. */ | |
32736 | char pthread_attr_getschedpolicy (); | |
32737 | /* The GNU C library defines this for functions which it implements | |
32738 | to always fail with ENOSYS. Some functions are actually named | |
32739 | something starting with __ and the normal name is an alias. */ | |
32740 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32741 | choke me | |
32742 | #else | |
32743 | char (*f) () = pthread_attr_getschedpolicy; | |
32744 | #endif | |
32745 | #ifdef __cplusplus | |
32746 | } | |
32747 | #endif | |
32748 | ||
32749 | int | |
32750 | main () | |
32751 | { | |
32752 | return f != pthread_attr_getschedpolicy; | |
32753 | ; | |
32754 | return 0; | |
32755 | } | |
32756 | _ACEOF | |
32757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32759 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32760 | ac_status=$? |
ac1cb8d3 VS |
32761 | grep -v '^ *+' conftest.er1 >conftest.err |
32762 | rm -f conftest.er1 | |
32763 | cat conftest.err >&5 | |
a848cd7e SC |
32764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32765 | (exit $ac_status); } && | |
5294a27e | 32766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32768 | (eval $ac_try) 2>&5 | |
32769 | ac_status=$? | |
32770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32771 | (exit $ac_status); }; } && | |
32772 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32774 | (eval $ac_try) 2>&5 | |
32775 | ac_status=$? | |
32776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32777 | (exit $ac_status); }; }; then | |
32778 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32779 | else | |
32780 | echo "$as_me: failed program was:" >&5 | |
32781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32782 | ||
32783 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32784 | fi | |
ac1cb8d3 VS |
32785 | rm -f conftest.err conftest.$ac_objext \ |
32786 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32787 | fi |
32788 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32789 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32790 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32791 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32792 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32793 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32795 | else | |
32796 | cat >conftest.$ac_ext <<_ACEOF | |
32797 | /* confdefs.h. */ | |
32798 | _ACEOF | |
32799 | cat confdefs.h >>conftest.$ac_ext | |
32800 | cat >>conftest.$ac_ext <<_ACEOF | |
32801 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32802 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32803 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32804 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32805 | ||
a848cd7e SC |
32806 | /* System header to define __stub macros and hopefully few prototypes, |
32807 | which can conflict with char pthread_attr_setschedparam (); below. | |
32808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32809 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32810 | |
a848cd7e SC |
32811 | #ifdef __STDC__ |
32812 | # include <limits.h> | |
32813 | #else | |
32814 | # include <assert.h> | |
32815 | #endif | |
ac1cb8d3 VS |
32816 | |
32817 | #undef pthread_attr_setschedparam | |
32818 | ||
a848cd7e SC |
32819 | /* Override any gcc2 internal prototype to avoid an error. */ |
32820 | #ifdef __cplusplus | |
32821 | extern "C" | |
32822 | { | |
32823 | #endif | |
32824 | /* We use char because int might match the return type of a gcc2 | |
32825 | builtin and then its argument prototype would still apply. */ | |
32826 | char pthread_attr_setschedparam (); | |
32827 | /* The GNU C library defines this for functions which it implements | |
32828 | to always fail with ENOSYS. Some functions are actually named | |
32829 | something starting with __ and the normal name is an alias. */ | |
32830 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32831 | choke me | |
32832 | #else | |
32833 | char (*f) () = pthread_attr_setschedparam; | |
32834 | #endif | |
32835 | #ifdef __cplusplus | |
32836 | } | |
32837 | #endif | |
32838 | ||
32839 | int | |
32840 | main () | |
32841 | { | |
32842 | return f != pthread_attr_setschedparam; | |
32843 | ; | |
32844 | return 0; | |
32845 | } | |
32846 | _ACEOF | |
32847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32849 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32850 | ac_status=$? |
ac1cb8d3 VS |
32851 | grep -v '^ *+' conftest.er1 >conftest.err |
32852 | rm -f conftest.er1 | |
32853 | cat conftest.err >&5 | |
a848cd7e SC |
32854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32855 | (exit $ac_status); } && | |
5294a27e | 32856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32858 | (eval $ac_try) 2>&5 | |
32859 | ac_status=$? | |
32860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32861 | (exit $ac_status); }; } && | |
32862 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32864 | (eval $ac_try) 2>&5 | |
32865 | ac_status=$? | |
32866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32867 | (exit $ac_status); }; }; then | |
32868 | ac_cv_func_pthread_attr_setschedparam=yes | |
32869 | else | |
32870 | echo "$as_me: failed program was:" >&5 | |
32871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32872 | ||
32873 | ac_cv_func_pthread_attr_setschedparam=no | |
32874 | fi | |
ac1cb8d3 VS |
32875 | rm -f conftest.err conftest.$ac_objext \ |
32876 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32877 | fi |
32878 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32879 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32880 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32881 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32882 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32883 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32885 | else | |
32886 | cat >conftest.$ac_ext <<_ACEOF | |
32887 | /* confdefs.h. */ | |
32888 | _ACEOF | |
32889 | cat confdefs.h >>conftest.$ac_ext | |
32890 | cat >>conftest.$ac_ext <<_ACEOF | |
32891 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32892 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32893 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32894 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32895 | ||
a848cd7e SC |
32896 | /* System header to define __stub macros and hopefully few prototypes, |
32897 | which can conflict with char sched_get_priority_max (); below. | |
32898 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32899 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32900 | |
a848cd7e SC |
32901 | #ifdef __STDC__ |
32902 | # include <limits.h> | |
32903 | #else | |
32904 | # include <assert.h> | |
32905 | #endif | |
ac1cb8d3 VS |
32906 | |
32907 | #undef sched_get_priority_max | |
32908 | ||
a848cd7e SC |
32909 | /* Override any gcc2 internal prototype to avoid an error. */ |
32910 | #ifdef __cplusplus | |
32911 | extern "C" | |
32912 | { | |
32913 | #endif | |
32914 | /* We use char because int might match the return type of a gcc2 | |
32915 | builtin and then its argument prototype would still apply. */ | |
32916 | char sched_get_priority_max (); | |
32917 | /* The GNU C library defines this for functions which it implements | |
32918 | to always fail with ENOSYS. Some functions are actually named | |
32919 | something starting with __ and the normal name is an alias. */ | |
32920 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32921 | choke me | |
32922 | #else | |
32923 | char (*f) () = sched_get_priority_max; | |
32924 | #endif | |
32925 | #ifdef __cplusplus | |
32926 | } | |
32927 | #endif | |
32928 | ||
32929 | int | |
32930 | main () | |
32931 | { | |
32932 | return f != sched_get_priority_max; | |
32933 | ; | |
32934 | return 0; | |
32935 | } | |
32936 | _ACEOF | |
32937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32939 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32940 | ac_status=$? |
ac1cb8d3 VS |
32941 | grep -v '^ *+' conftest.er1 >conftest.err |
32942 | rm -f conftest.er1 | |
32943 | cat conftest.err >&5 | |
a848cd7e SC |
32944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32945 | (exit $ac_status); } && | |
5294a27e | 32946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32948 | (eval $ac_try) 2>&5 | |
32949 | ac_status=$? | |
32950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32951 | (exit $ac_status); }; } && | |
32952 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32954 | (eval $ac_try) 2>&5 | |
32955 | ac_status=$? | |
32956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32957 | (exit $ac_status); }; }; then | |
32958 | ac_cv_func_sched_get_priority_max=yes | |
32959 | else | |
32960 | echo "$as_me: failed program was:" >&5 | |
32961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32962 | ||
32963 | ac_cv_func_sched_get_priority_max=no | |
32964 | fi | |
ac1cb8d3 VS |
32965 | rm -f conftest.err conftest.$ac_objext \ |
32966 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32967 | fi |
32968 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32969 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32970 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32971 | HAVE_PRIOR_FUNCS=1 | |
32972 | else | |
32973 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32974 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32975 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32977 | else | |
32978 | ac_check_lib_save_LIBS=$LIBS | |
32979 | LIBS="-lposix4 $LIBS" | |
32980 | cat >conftest.$ac_ext <<_ACEOF | |
32981 | /* confdefs.h. */ | |
32982 | _ACEOF | |
32983 | cat confdefs.h >>conftest.$ac_ext | |
32984 | cat >>conftest.$ac_ext <<_ACEOF | |
32985 | /* end confdefs.h. */ | |
32986 | ||
32987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32988 | #ifdef __cplusplus | |
32989 | extern "C" | |
32990 | #endif | |
32991 | /* We use char because int might match the return type of a gcc2 | |
32992 | builtin and then its argument prototype would still apply. */ | |
32993 | char sched_get_priority_max (); | |
32994 | int | |
32995 | main () | |
32996 | { | |
32997 | sched_get_priority_max (); | |
32998 | ; | |
32999 | return 0; | |
33000 | } | |
33001 | _ACEOF | |
33002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33004 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33005 | ac_status=$? |
ac1cb8d3 VS |
33006 | grep -v '^ *+' conftest.er1 >conftest.err |
33007 | rm -f conftest.er1 | |
33008 | cat conftest.err >&5 | |
a848cd7e SC |
33009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33010 | (exit $ac_status); } && | |
5294a27e | 33011 | { ac_try='test -z "$ac_c_werror_flag" || 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_lib_posix4_sched_get_priority_max=yes | |
33024 | else | |
33025 | echo "$as_me: failed program was:" >&5 | |
33026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33027 | ||
33028 | ac_cv_lib_posix4_sched_get_priority_max=no | |
33029 | fi | |
ac1cb8d3 VS |
33030 | rm -f conftest.err conftest.$ac_objext \ |
33031 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33032 | LIBS=$ac_check_lib_save_LIBS |
33033 | fi | |
33034 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
33035 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
33036 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
33037 | ||
33038 | HAVE_PRIOR_FUNCS=1 | |
33039 | POSIX4_LINK=" -lposix4" | |
33040 | ||
33041 | fi | |
33042 | ||
33043 | ||
33044 | fi | |
33045 | ||
33046 | ||
33047 | fi | |
33048 | ||
33049 | ||
33050 | fi | |
33051 | ||
33052 | ||
33053 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
33054 | cat >>confdefs.h <<\_ACEOF | |
33055 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
33056 | _ACEOF | |
33057 | ||
33058 | else | |
33059 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
33060 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
33061 | fi | |
33062 | ||
33063 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
33064 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
33065 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
33066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33067 | else | |
33068 | cat >conftest.$ac_ext <<_ACEOF | |
33069 | /* confdefs.h. */ | |
33070 | _ACEOF | |
33071 | cat confdefs.h >>conftest.$ac_ext | |
33072 | cat >>conftest.$ac_ext <<_ACEOF | |
33073 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33074 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
33075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33076 | #define pthread_cancel innocuous_pthread_cancel | |
33077 | ||
a848cd7e SC |
33078 | /* System header to define __stub macros and hopefully few prototypes, |
33079 | which can conflict with char pthread_cancel (); below. | |
33080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33081 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33082 | |
a848cd7e SC |
33083 | #ifdef __STDC__ |
33084 | # include <limits.h> | |
33085 | #else | |
33086 | # include <assert.h> | |
33087 | #endif | |
ac1cb8d3 VS |
33088 | |
33089 | #undef pthread_cancel | |
33090 | ||
a848cd7e SC |
33091 | /* Override any gcc2 internal prototype to avoid an error. */ |
33092 | #ifdef __cplusplus | |
33093 | extern "C" | |
33094 | { | |
33095 | #endif | |
33096 | /* We use char because int might match the return type of a gcc2 | |
33097 | builtin and then its argument prototype would still apply. */ | |
33098 | char pthread_cancel (); | |
33099 | /* The GNU C library defines this for functions which it implements | |
33100 | to always fail with ENOSYS. Some functions are actually named | |
33101 | something starting with __ and the normal name is an alias. */ | |
33102 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
33103 | choke me | |
33104 | #else | |
33105 | char (*f) () = pthread_cancel; | |
33106 | #endif | |
33107 | #ifdef __cplusplus | |
33108 | } | |
33109 | #endif | |
33110 | ||
33111 | int | |
33112 | main () | |
33113 | { | |
33114 | return f != pthread_cancel; | |
33115 | ; | |
33116 | return 0; | |
33117 | } | |
33118 | _ACEOF | |
33119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33121 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33122 | ac_status=$? |
ac1cb8d3 VS |
33123 | grep -v '^ *+' conftest.er1 >conftest.err |
33124 | rm -f conftest.er1 | |
33125 | cat conftest.err >&5 | |
a848cd7e SC |
33126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33127 | (exit $ac_status); } && | |
5294a27e | 33128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33130 | (eval $ac_try) 2>&5 | |
33131 | ac_status=$? | |
33132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33133 | (exit $ac_status); }; } && | |
33134 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33136 | (eval $ac_try) 2>&5 | |
33137 | ac_status=$? | |
33138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33139 | (exit $ac_status); }; }; then | |
33140 | ac_cv_func_pthread_cancel=yes | |
33141 | else | |
33142 | echo "$as_me: failed program was:" >&5 | |
33143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33144 | ||
33145 | ac_cv_func_pthread_cancel=no | |
33146 | fi | |
ac1cb8d3 VS |
33147 | rm -f conftest.err conftest.$ac_objext \ |
33148 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33149 | fi |
33150 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33151 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33152 | if test $ac_cv_func_pthread_cancel = yes; then | |
33153 | cat >>confdefs.h <<\_ACEOF | |
33154 | #define HAVE_PTHREAD_CANCEL 1 | |
33155 | _ACEOF | |
33156 | ||
33157 | else | |
33158 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
33159 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
33160 | fi | |
33161 | ||
33162 | ||
33163 | ||
33164 | ||
33165 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33166 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33167 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33169 | else | |
33170 | ||
33171 | cat >conftest.$ac_ext <<_ACEOF | |
33172 | /* confdefs.h. */ | |
33173 | _ACEOF | |
33174 | cat confdefs.h >>conftest.$ac_ext | |
33175 | cat >>conftest.$ac_ext <<_ACEOF | |
33176 | /* end confdefs.h. */ | |
33177 | #include <pthread.h> | |
33178 | int | |
33179 | main () | |
33180 | { | |
33181 | ||
33182 | pthread_mutexattr_t attr; | |
33183 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
33184 | ||
33185 | ; | |
33186 | return 0; | |
33187 | } | |
33188 | _ACEOF | |
33189 | rm -f conftest.$ac_objext | |
33190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33191 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33192 | ac_status=$? |
ac1cb8d3 VS |
33193 | grep -v '^ *+' conftest.er1 >conftest.err |
33194 | rm -f conftest.er1 | |
33195 | cat conftest.err >&5 | |
a848cd7e SC |
33196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33197 | (exit $ac_status); } && | |
5294a27e | 33198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33200 | (eval $ac_try) 2>&5 | |
33201 | ac_status=$? | |
33202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33203 | (exit $ac_status); }; } && | |
33204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33206 | (eval $ac_try) 2>&5 | |
33207 | ac_status=$? | |
33208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33209 | (exit $ac_status); }; }; then | |
33210 | ||
33211 | wx_cv_type_pthread_mutexattr_t=yes | |
33212 | ||
33213 | else | |
33214 | echo "$as_me: failed program was:" >&5 | |
33215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33216 | ||
33217 | ||
33218 | wx_cv_type_pthread_mutexattr_t=no | |
33219 | ||
33220 | ||
33221 | fi | |
ac1cb8d3 | 33222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33223 | |
33224 | fi | |
33225 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33226 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
33227 | ||
33228 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
33229 | cat >>confdefs.h <<\_ACEOF | |
33230 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
33231 | _ACEOF | |
33232 | ||
33233 | else | |
33234 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
33235 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33236 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33238 | else | |
33239 | ||
33240 | cat >conftest.$ac_ext <<_ACEOF | |
33241 | /* confdefs.h. */ | |
33242 | _ACEOF | |
33243 | cat confdefs.h >>conftest.$ac_ext | |
33244 | cat >>conftest.$ac_ext <<_ACEOF | |
33245 | /* end confdefs.h. */ | |
33246 | #include <pthread.h> | |
33247 | int | |
33248 | main () | |
33249 | { | |
33250 | ||
33251 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
33252 | ||
33253 | ; | |
33254 | return 0; | |
33255 | } | |
33256 | _ACEOF | |
33257 | rm -f conftest.$ac_objext | |
33258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33260 | ac_status=$? |
ac1cb8d3 VS |
33261 | grep -v '^ *+' conftest.er1 >conftest.err |
33262 | rm -f conftest.er1 | |
33263 | cat conftest.err >&5 | |
a848cd7e SC |
33264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33265 | (exit $ac_status); } && | |
5294a27e | 33266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33268 | (eval $ac_try) 2>&5 | |
33269 | ac_status=$? | |
33270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33271 | (exit $ac_status); }; } && | |
33272 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33274 | (eval $ac_try) 2>&5 | |
33275 | ac_status=$? | |
33276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33277 | (exit $ac_status); }; }; then | |
33278 | ||
33279 | wx_cv_type_pthread_rec_mutex_init=yes | |
33280 | ||
33281 | else | |
33282 | echo "$as_me: failed program was:" >&5 | |
33283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33284 | ||
33285 | ||
33286 | wx_cv_type_pthread_rec_mutex_init=no | |
33287 | ||
33288 | ||
33289 | fi | |
ac1cb8d3 | 33290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33291 | |
33292 | fi | |
33293 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33294 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33295 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33296 | cat >>confdefs.h <<\_ACEOF | |
33297 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33298 | _ACEOF | |
33299 | ||
33300 | else | |
33301 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33302 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33303 | fi | |
33304 | fi | |
33305 | fi | |
33306 | ||
33307 | else | |
33308 | if test "$wxUSE_THREADS" = "yes" ; then | |
33309 | case "${host}" in | |
33310 | *-*-mingw32* ) | |
33311 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33312 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33313 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33315 | else | |
33316 | ||
33317 | CFLAGS_OLD="$CFLAGS" | |
33318 | CFLAGS="$CFLAGS -mthreads" | |
33319 | cat >conftest.$ac_ext <<_ACEOF | |
33320 | /* confdefs.h. */ | |
33321 | _ACEOF | |
33322 | cat confdefs.h >>conftest.$ac_ext | |
33323 | cat >>conftest.$ac_ext <<_ACEOF | |
33324 | /* end confdefs.h. */ | |
33325 | ||
33326 | int | |
33327 | main () | |
33328 | { | |
33329 | ||
33330 | ; | |
33331 | return 0; | |
33332 | } | |
33333 | _ACEOF | |
33334 | rm -f conftest.$ac_objext | |
33335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33337 | ac_status=$? |
ac1cb8d3 VS |
33338 | grep -v '^ *+' conftest.er1 >conftest.err |
33339 | rm -f conftest.er1 | |
33340 | cat conftest.err >&5 | |
a848cd7e SC |
33341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33342 | (exit $ac_status); } && | |
5294a27e | 33343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33345 | (eval $ac_try) 2>&5 | |
33346 | ac_status=$? | |
33347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33348 | (exit $ac_status); }; } && | |
33349 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33351 | (eval $ac_try) 2>&5 | |
33352 | ac_status=$? | |
33353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33354 | (exit $ac_status); }; }; then | |
33355 | wx_cv_cflags_mthread=yes | |
33356 | else | |
33357 | echo "$as_me: failed program was:" >&5 | |
33358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33359 | ||
33360 | wx_cv_cflags_mthread=no | |
33361 | ||
33362 | fi | |
ac1cb8d3 | 33363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33364 | |
33365 | ||
33366 | fi | |
33367 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33368 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33369 | ||
33370 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33371 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33372 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33373 | LDFLAGS="$LDFLAGS -mthreads" | |
33374 | else | |
33375 | CFLAGS="$CFLAGS_OLD" | |
33376 | fi | |
33377 | ;; | |
33378 | *-pc-os2*emx ) | |
33379 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33380 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33381 | LDFLAGS="$LDFLAGS -Zmt" | |
33382 | ;; | |
33383 | esac | |
33384 | fi | |
33385 | fi | |
33386 | ||
33387 | if test "$wxUSE_THREADS" = "yes"; then | |
33388 | cat >>confdefs.h <<\_ACEOF | |
33389 | #define wxUSE_THREADS 1 | |
33390 | _ACEOF | |
33391 | ||
33392 | ||
33393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33394 | else | |
33395 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33396 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33397 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33398 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33399 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33400 | echo "$as_me:$LINENO: result: yes" >&5 | |
33401 | echo "${ECHO_T}yes" >&6 | |
33402 | else | |
33403 | echo "$as_me:$LINENO: result: no" >&5 | |
33404 | echo "${ECHO_T}no" >&6 | |
33405 | fi | |
33406 | fi | |
33407 | fi | |
33408 | ||
33409 | if test "$WXGTK20" = 1 ; then | |
33410 | cat >>confdefs.h <<_ACEOF | |
33411 | #define __WXGTK20__ $WXGTK20 | |
33412 | _ACEOF | |
33413 | ||
33414 | WXGTK12=1 | |
33415 | fi | |
33416 | ||
33417 | if test "$WXGTK12" = 1 ; then | |
33418 | cat >>confdefs.h <<_ACEOF | |
33419 | #define __WXGTK12__ $WXGTK12 | |
33420 | _ACEOF | |
33421 | ||
33422 | fi | |
33423 | ||
33424 | if test "$WXGTK127" = 1 ; then | |
33425 | cat >>confdefs.h <<_ACEOF | |
33426 | #define __WXGTK127__ $WXGTK127 | |
33427 | _ACEOF | |
33428 | ||
33429 | fi | |
33430 | ||
33431 | if test "$WXGPE" = 1 ; then | |
33432 | cat >>confdefs.h <<_ACEOF | |
33433 | #define __WXGPE__ $WXGPE | |
33434 | _ACEOF | |
33435 | ||
33436 | fi | |
33437 | ||
33438 | WXDEBUG= | |
33439 | ||
33440 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33441 | WXDEBUG="-g" | |
33442 | wxUSE_OPTIMISE=no | |
33443 | fi | |
33444 | ||
33445 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33446 | wxUSE_DEBUG_INFO=yes | |
33447 | WXDEBUG="-ggdb" | |
33448 | fi | |
33449 | ||
33450 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33451 | cat >>confdefs.h <<\_ACEOF | |
33452 | #define WXDEBUG 1 | |
33453 | _ACEOF | |
33454 | ||
33455 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33456 | else | |
33457 | if test "$wxUSE_GTK" = 1 ; then | |
33458 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33459 | fi | |
33460 | fi | |
33461 | ||
33462 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33463 | cat >>confdefs.h <<\_ACEOF | |
33464 | #define wxUSE_MEMORY_TRACING 1 | |
33465 | _ACEOF | |
33466 | ||
33467 | cat >>confdefs.h <<\_ACEOF | |
33468 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33469 | _ACEOF | |
33470 | ||
33471 | cat >>confdefs.h <<\_ACEOF | |
33472 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33473 | _ACEOF | |
33474 | ||
33475 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33476 | fi | |
33477 | ||
33478 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33479 | DMALLOC_LIBS="-ldmalloc" | |
33480 | fi | |
33481 | ||
33482 | PROFILE= | |
33483 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33484 | PROFILE=" -pg" | |
33485 | fi | |
33486 | ||
33487 | CODE_GEN_FLAGS= | |
33488 | CODE_GEN_FLAGS_CXX= | |
33489 | if test "$GCC" = "yes" ; then | |
33490 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33491 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33492 | fi | |
33493 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33494 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33495 | fi | |
33496 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33497 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33498 | fi | |
33499 | ||
33500 | case "${host}" in | |
33501 | powerpc*-*-aix* ) | |
33502 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33503 | ;; | |
33504 | *-hppa* ) | |
33505 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33506 | ;; | |
33507 | esac | |
33508 | fi | |
33509 | ||
33510 | OPTIMISE= | |
33511 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33512 | if test "$GCC" = yes ; then | |
33513 | OPTIMISE="-O0" | |
33514 | fi | |
33515 | else | |
33516 | if test "$GCC" = yes ; then | |
33517 | OPTIMISE="-O2" | |
33518 | ||
33519 | case "${host}" in | |
33520 | i586-*-*|i686-*-* ) | |
33521 | OPTIMISE="${OPTIMISE} " | |
33522 | ;; | |
33523 | esac | |
33524 | else | |
33525 | OPTIMISE="-O" | |
33526 | fi | |
33527 | fi | |
33528 | ||
33529 | ||
33530 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33531 | cat >>confdefs.h <<\_ACEOF | |
33532 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33533 | _ACEOF | |
33534 | ||
33535 | ||
33536 | WXWIN_COMPATIBILITY_2_4="yes" | |
33537 | fi | |
33538 | ||
33539 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33540 | cat >>confdefs.h <<\_ACEOF | |
33541 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33542 | _ACEOF | |
33543 | ||
33544 | fi | |
33545 | ||
33546 | ||
33547 | if test "$wxUSE_GUI" = "yes"; then | |
33548 | cat >>confdefs.h <<\_ACEOF | |
33549 | #define wxUSE_GUI 1 | |
33550 | _ACEOF | |
33551 | ||
33552 | ||
33553 | else | |
33554 | cat >>confdefs.h <<\_ACEOF | |
33555 | #define wxUSE_NOGUI 1 | |
33556 | _ACEOF | |
33557 | ||
33558 | fi | |
33559 | ||
33560 | ||
33561 | if test "$wxUSE_UNIX" = "yes"; then | |
33562 | cat >>confdefs.h <<\_ACEOF | |
33563 | #define wxUSE_UNIX 1 | |
33564 | _ACEOF | |
33565 | ||
33566 | fi | |
33567 | ||
33568 | ||
33569 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33570 | ||
33571 | HAVE_DL_FUNCS=0 | |
33572 | HAVE_SHL_FUNCS=0 | |
33573 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33574 | if test "$USE_DARWIN" = 1; then | |
33575 | HAVE_DL_FUNCS=1 | |
33576 | else | |
33577 | ||
33578 | for ac_func in dlopen | |
33579 | do | |
33580 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33581 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33582 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33583 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33585 | else | |
33586 | cat >conftest.$ac_ext <<_ACEOF | |
33587 | /* confdefs.h. */ | |
33588 | _ACEOF | |
33589 | cat confdefs.h >>conftest.$ac_ext | |
33590 | cat >>conftest.$ac_ext <<_ACEOF | |
33591 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33592 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33594 | #define $ac_func innocuous_$ac_func | |
33595 | ||
a848cd7e SC |
33596 | /* System header to define __stub macros and hopefully few prototypes, |
33597 | which can conflict with char $ac_func (); below. | |
33598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33599 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33600 | |
a848cd7e SC |
33601 | #ifdef __STDC__ |
33602 | # include <limits.h> | |
33603 | #else | |
33604 | # include <assert.h> | |
33605 | #endif | |
ac1cb8d3 VS |
33606 | |
33607 | #undef $ac_func | |
33608 | ||
a848cd7e SC |
33609 | /* Override any gcc2 internal prototype to avoid an error. */ |
33610 | #ifdef __cplusplus | |
33611 | extern "C" | |
33612 | { | |
33613 | #endif | |
33614 | /* We use char because int might match the return type of a gcc2 | |
33615 | builtin and then its argument prototype would still apply. */ | |
33616 | char $ac_func (); | |
33617 | /* The GNU C library defines this for functions which it implements | |
33618 | to always fail with ENOSYS. Some functions are actually named | |
33619 | something starting with __ and the normal name is an alias. */ | |
33620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33621 | choke me | |
33622 | #else | |
33623 | char (*f) () = $ac_func; | |
33624 | #endif | |
33625 | #ifdef __cplusplus | |
33626 | } | |
33627 | #endif | |
33628 | ||
33629 | int | |
33630 | main () | |
33631 | { | |
33632 | return f != $ac_func; | |
33633 | ; | |
33634 | return 0; | |
33635 | } | |
33636 | _ACEOF | |
33637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33639 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33640 | ac_status=$? |
ac1cb8d3 VS |
33641 | grep -v '^ *+' conftest.er1 >conftest.err |
33642 | rm -f conftest.er1 | |
33643 | cat conftest.err >&5 | |
a848cd7e SC |
33644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33645 | (exit $ac_status); } && | |
5294a27e | 33646 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33648 | (eval $ac_try) 2>&5 | |
33649 | ac_status=$? | |
33650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33651 | (exit $ac_status); }; } && | |
33652 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33654 | (eval $ac_try) 2>&5 | |
33655 | ac_status=$? | |
33656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33657 | (exit $ac_status); }; }; then | |
33658 | eval "$as_ac_var=yes" | |
33659 | else | |
33660 | echo "$as_me: failed program was:" >&5 | |
33661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33662 | ||
33663 | eval "$as_ac_var=no" | |
33664 | fi | |
ac1cb8d3 VS |
33665 | rm -f conftest.err conftest.$ac_objext \ |
33666 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33667 | fi |
33668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33669 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33670 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33671 | cat >>confdefs.h <<_ACEOF | |
33672 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33673 | _ACEOF | |
33674 | ||
33675 | cat >>confdefs.h <<\_ACEOF | |
33676 | #define HAVE_DLOPEN 1 | |
33677 | _ACEOF | |
33678 | ||
33679 | HAVE_DL_FUNCS=1 | |
33680 | ||
33681 | else | |
33682 | ||
33683 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33684 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33685 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33687 | else | |
33688 | ac_check_lib_save_LIBS=$LIBS | |
33689 | LIBS="-ldl $LIBS" | |
33690 | cat >conftest.$ac_ext <<_ACEOF | |
33691 | /* confdefs.h. */ | |
33692 | _ACEOF | |
33693 | cat confdefs.h >>conftest.$ac_ext | |
33694 | cat >>conftest.$ac_ext <<_ACEOF | |
33695 | /* end confdefs.h. */ | |
33696 | ||
33697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33698 | #ifdef __cplusplus | |
33699 | extern "C" | |
33700 | #endif | |
33701 | /* We use char because int might match the return type of a gcc2 | |
33702 | builtin and then its argument prototype would still apply. */ | |
33703 | char dlopen (); | |
33704 | int | |
33705 | main () | |
33706 | { | |
33707 | dlopen (); | |
33708 | ; | |
33709 | return 0; | |
33710 | } | |
33711 | _ACEOF | |
33712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33715 | ac_status=$? |
ac1cb8d3 VS |
33716 | grep -v '^ *+' conftest.er1 >conftest.err |
33717 | rm -f conftest.er1 | |
33718 | cat conftest.err >&5 | |
a848cd7e SC |
33719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33720 | (exit $ac_status); } && | |
5294a27e | 33721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33723 | (eval $ac_try) 2>&5 | |
33724 | ac_status=$? | |
33725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33726 | (exit $ac_status); }; } && | |
33727 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33729 | (eval $ac_try) 2>&5 | |
33730 | ac_status=$? | |
33731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33732 | (exit $ac_status); }; }; then | |
33733 | ac_cv_lib_dl_dlopen=yes | |
33734 | else | |
33735 | echo "$as_me: failed program was:" >&5 | |
33736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33737 | ||
33738 | ac_cv_lib_dl_dlopen=no | |
33739 | fi | |
ac1cb8d3 VS |
33740 | rm -f conftest.err conftest.$ac_objext \ |
33741 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33742 | LIBS=$ac_check_lib_save_LIBS |
33743 | fi | |
33744 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33745 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33746 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33747 | ||
33748 | cat >>confdefs.h <<\_ACEOF | |
33749 | #define HAVE_DLOPEN 1 | |
33750 | _ACEOF | |
33751 | ||
33752 | HAVE_DL_FUNCS=1 | |
33753 | DL_LINK=" -ldl$DL_LINK" | |
33754 | ||
33755 | else | |
33756 | ||
33757 | ||
33758 | for ac_func in shl_load | |
33759 | do | |
33760 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33761 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33762 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33763 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33765 | else | |
33766 | cat >conftest.$ac_ext <<_ACEOF | |
33767 | /* confdefs.h. */ | |
33768 | _ACEOF | |
33769 | cat confdefs.h >>conftest.$ac_ext | |
33770 | cat >>conftest.$ac_ext <<_ACEOF | |
33771 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33772 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33774 | #define $ac_func innocuous_$ac_func | |
33775 | ||
a848cd7e SC |
33776 | /* System header to define __stub macros and hopefully few prototypes, |
33777 | which can conflict with char $ac_func (); below. | |
33778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33779 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33780 | |
a848cd7e SC |
33781 | #ifdef __STDC__ |
33782 | # include <limits.h> | |
33783 | #else | |
33784 | # include <assert.h> | |
33785 | #endif | |
ac1cb8d3 VS |
33786 | |
33787 | #undef $ac_func | |
33788 | ||
a848cd7e SC |
33789 | /* Override any gcc2 internal prototype to avoid an error. */ |
33790 | #ifdef __cplusplus | |
33791 | extern "C" | |
33792 | { | |
33793 | #endif | |
33794 | /* We use char because int might match the return type of a gcc2 | |
33795 | builtin and then its argument prototype would still apply. */ | |
33796 | char $ac_func (); | |
33797 | /* The GNU C library defines this for functions which it implements | |
33798 | to always fail with ENOSYS. Some functions are actually named | |
33799 | something starting with __ and the normal name is an alias. */ | |
33800 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33801 | choke me | |
33802 | #else | |
33803 | char (*f) () = $ac_func; | |
33804 | #endif | |
33805 | #ifdef __cplusplus | |
33806 | } | |
33807 | #endif | |
33808 | ||
33809 | int | |
33810 | main () | |
33811 | { | |
33812 | return f != $ac_func; | |
33813 | ; | |
33814 | return 0; | |
33815 | } | |
33816 | _ACEOF | |
33817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33819 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33820 | ac_status=$? |
ac1cb8d3 VS |
33821 | grep -v '^ *+' conftest.er1 >conftest.err |
33822 | rm -f conftest.er1 | |
33823 | cat conftest.err >&5 | |
a848cd7e SC |
33824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33825 | (exit $ac_status); } && | |
5294a27e | 33826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33828 | (eval $ac_try) 2>&5 | |
33829 | ac_status=$? | |
33830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33831 | (exit $ac_status); }; } && | |
33832 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33834 | (eval $ac_try) 2>&5 | |
33835 | ac_status=$? | |
33836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33837 | (exit $ac_status); }; }; then | |
33838 | eval "$as_ac_var=yes" | |
33839 | else | |
33840 | echo "$as_me: failed program was:" >&5 | |
33841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33842 | ||
33843 | eval "$as_ac_var=no" | |
33844 | fi | |
ac1cb8d3 VS |
33845 | rm -f conftest.err conftest.$ac_objext \ |
33846 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33847 | fi |
33848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33849 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33850 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33851 | cat >>confdefs.h <<_ACEOF | |
33852 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33853 | _ACEOF | |
33854 | ||
33855 | cat >>confdefs.h <<\_ACEOF | |
33856 | #define HAVE_SHL_LOAD 1 | |
33857 | _ACEOF | |
33858 | ||
33859 | HAVE_SHL_FUNCS=1 | |
33860 | ||
33861 | else | |
33862 | ||
33863 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33864 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33865 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33867 | else | |
33868 | ac_check_lib_save_LIBS=$LIBS | |
33869 | LIBS="-lshl_load $LIBS" | |
33870 | cat >conftest.$ac_ext <<_ACEOF | |
33871 | /* confdefs.h. */ | |
33872 | _ACEOF | |
33873 | cat confdefs.h >>conftest.$ac_ext | |
33874 | cat >>conftest.$ac_ext <<_ACEOF | |
33875 | /* end confdefs.h. */ | |
33876 | ||
33877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33878 | #ifdef __cplusplus | |
33879 | extern "C" | |
33880 | #endif | |
33881 | /* We use char because int might match the return type of a gcc2 | |
33882 | builtin and then its argument prototype would still apply. */ | |
33883 | char dld (); | |
33884 | int | |
33885 | main () | |
33886 | { | |
33887 | dld (); | |
33888 | ; | |
33889 | return 0; | |
33890 | } | |
33891 | _ACEOF | |
33892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33894 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33895 | ac_status=$? |
ac1cb8d3 VS |
33896 | grep -v '^ *+' conftest.er1 >conftest.err |
33897 | rm -f conftest.er1 | |
33898 | cat conftest.err >&5 | |
a848cd7e SC |
33899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33900 | (exit $ac_status); } && | |
5294a27e | 33901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33903 | (eval $ac_try) 2>&5 | |
33904 | ac_status=$? | |
33905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33906 | (exit $ac_status); }; } && | |
33907 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33909 | (eval $ac_try) 2>&5 | |
33910 | ac_status=$? | |
33911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33912 | (exit $ac_status); }; }; then | |
33913 | ac_cv_lib_shl_load_dld=yes | |
33914 | else | |
33915 | echo "$as_me: failed program was:" >&5 | |
33916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33917 | ||
33918 | ac_cv_lib_shl_load_dld=no | |
33919 | fi | |
ac1cb8d3 VS |
33920 | rm -f conftest.err conftest.$ac_objext \ |
33921 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33922 | LIBS=$ac_check_lib_save_LIBS |
33923 | fi | |
33924 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33925 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33926 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33927 | ||
33928 | HAVE_SHL_FUNCS=1 | |
33929 | DL_LINK=" -ldld$DL_LINK" | |
33930 | ||
33931 | fi | |
33932 | ||
33933 | ||
33934 | fi | |
33935 | done | |
33936 | ||
33937 | ||
33938 | fi | |
33939 | ||
33940 | ||
33941 | fi | |
33942 | done | |
33943 | ||
33944 | ||
33945 | if test "$HAVE_DL_FUNCS" = 1; then | |
33946 | ||
33947 | for ac_func in dlerror | |
33948 | do | |
33949 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33950 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33951 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33952 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33954 | else | |
33955 | cat >conftest.$ac_ext <<_ACEOF | |
33956 | /* confdefs.h. */ | |
33957 | _ACEOF | |
33958 | cat confdefs.h >>conftest.$ac_ext | |
33959 | cat >>conftest.$ac_ext <<_ACEOF | |
33960 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33961 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33962 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33963 | #define $ac_func innocuous_$ac_func | |
33964 | ||
a848cd7e SC |
33965 | /* System header to define __stub macros and hopefully few prototypes, |
33966 | which can conflict with char $ac_func (); below. | |
33967 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33968 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33969 | |
a848cd7e SC |
33970 | #ifdef __STDC__ |
33971 | # include <limits.h> | |
33972 | #else | |
33973 | # include <assert.h> | |
33974 | #endif | |
ac1cb8d3 VS |
33975 | |
33976 | #undef $ac_func | |
33977 | ||
a848cd7e SC |
33978 | /* Override any gcc2 internal prototype to avoid an error. */ |
33979 | #ifdef __cplusplus | |
33980 | extern "C" | |
33981 | { | |
33982 | #endif | |
33983 | /* We use char because int might match the return type of a gcc2 | |
33984 | builtin and then its argument prototype would still apply. */ | |
33985 | char $ac_func (); | |
33986 | /* The GNU C library defines this for functions which it implements | |
33987 | to always fail with ENOSYS. Some functions are actually named | |
33988 | something starting with __ and the normal name is an alias. */ | |
33989 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33990 | choke me | |
33991 | #else | |
33992 | char (*f) () = $ac_func; | |
33993 | #endif | |
33994 | #ifdef __cplusplus | |
33995 | } | |
33996 | #endif | |
33997 | ||
33998 | int | |
33999 | main () | |
34000 | { | |
34001 | return f != $ac_func; | |
34002 | ; | |
34003 | return 0; | |
34004 | } | |
34005 | _ACEOF | |
34006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34008 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34009 | ac_status=$? |
ac1cb8d3 VS |
34010 | grep -v '^ *+' conftest.er1 >conftest.err |
34011 | rm -f conftest.er1 | |
34012 | cat conftest.err >&5 | |
a848cd7e SC |
34013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34014 | (exit $ac_status); } && | |
5294a27e | 34015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34017 | (eval $ac_try) 2>&5 | |
34018 | ac_status=$? | |
34019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34020 | (exit $ac_status); }; } && | |
34021 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34023 | (eval $ac_try) 2>&5 | |
34024 | ac_status=$? | |
34025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34026 | (exit $ac_status); }; }; then | |
34027 | eval "$as_ac_var=yes" | |
34028 | else | |
34029 | echo "$as_me: failed program was:" >&5 | |
34030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34031 | ||
34032 | eval "$as_ac_var=no" | |
34033 | fi | |
ac1cb8d3 VS |
34034 | rm -f conftest.err conftest.$ac_objext \ |
34035 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34036 | fi |
34037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34038 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34039 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34040 | cat >>confdefs.h <<_ACEOF | |
34041 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34042 | _ACEOF | |
34043 | cat >>confdefs.h <<\_ACEOF | |
34044 | #define HAVE_DLERROR 1 | |
34045 | _ACEOF | |
34046 | ||
34047 | else | |
34048 | ||
34049 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
34050 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
34051 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
34052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34053 | else | |
34054 | ac_check_lib_save_LIBS=$LIBS | |
34055 | LIBS="-ldl $LIBS" | |
34056 | cat >conftest.$ac_ext <<_ACEOF | |
34057 | /* confdefs.h. */ | |
34058 | _ACEOF | |
34059 | cat confdefs.h >>conftest.$ac_ext | |
34060 | cat >>conftest.$ac_ext <<_ACEOF | |
34061 | /* end confdefs.h. */ | |
34062 | ||
34063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34064 | #ifdef __cplusplus | |
34065 | extern "C" | |
34066 | #endif | |
34067 | /* We use char because int might match the return type of a gcc2 | |
34068 | builtin and then its argument prototype would still apply. */ | |
34069 | char dlerror (); | |
34070 | int | |
34071 | main () | |
34072 | { | |
34073 | dlerror (); | |
34074 | ; | |
34075 | return 0; | |
34076 | } | |
34077 | _ACEOF | |
34078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34080 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34081 | ac_status=$? |
ac1cb8d3 VS |
34082 | grep -v '^ *+' conftest.er1 >conftest.err |
34083 | rm -f conftest.er1 | |
34084 | cat conftest.err >&5 | |
a848cd7e SC |
34085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34086 | (exit $ac_status); } && | |
5294a27e | 34087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34089 | (eval $ac_try) 2>&5 | |
34090 | ac_status=$? | |
34091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34092 | (exit $ac_status); }; } && | |
34093 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34095 | (eval $ac_try) 2>&5 | |
34096 | ac_status=$? | |
34097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34098 | (exit $ac_status); }; }; then | |
34099 | ac_cv_lib_dl_dlerror=yes | |
34100 | else | |
34101 | echo "$as_me: failed program was:" >&5 | |
34102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34103 | ||
34104 | ac_cv_lib_dl_dlerror=no | |
34105 | fi | |
ac1cb8d3 VS |
34106 | rm -f conftest.err conftest.$ac_objext \ |
34107 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34108 | LIBS=$ac_check_lib_save_LIBS |
34109 | fi | |
34110 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34111 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34112 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34113 | cat >>confdefs.h <<\_ACEOF | |
34114 | #define HAVE_DLERROR 1 | |
34115 | _ACEOF | |
34116 | ||
34117 | fi | |
34118 | ||
34119 | ||
34120 | ||
34121 | fi | |
34122 | done | |
34123 | ||
34124 | fi | |
34125 | fi | |
34126 | ||
34127 | if test "$HAVE_DL_FUNCS" = 0; then | |
34128 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34129 | if test "$USE_UNIX" = 1; then | |
34130 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
34131 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
34132 | wxUSE_DYNAMIC_LOADER=no | |
34133 | wxUSE_DYNLIB_CLASS=no | |
34134 | else | |
34135 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
34136 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
34137 | fi | |
34138 | fi | |
34139 | fi | |
34140 | fi | |
34141 | fi | |
34142 | ||
34143 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34144 | cat >>confdefs.h <<\_ACEOF | |
34145 | #define wxUSE_DYNAMIC_LOADER 1 | |
34146 | _ACEOF | |
34147 | ||
34148 | fi | |
34149 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34150 | cat >>confdefs.h <<\_ACEOF | |
34151 | #define wxUSE_DYNLIB_CLASS 1 | |
34152 | _ACEOF | |
34153 | ||
34154 | fi | |
34155 | ||
34156 | ||
34157 | ||
34158 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34159 | if test "$wxUSE_SHARED" = "no" ; then | |
34160 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34161 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34162 | wxUSE_PLUGINS=no | |
34163 | fi | |
34164 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34165 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34166 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34167 | wxUSE_PLUGINS=no | |
34168 | fi | |
34169 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34170 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34171 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34172 | wxUSE_PLUGINS=no | |
34173 | fi | |
34174 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34175 | cat >>confdefs.h <<\_ACEOF | |
34176 | #define wxUSE_PLUGINS 1 | |
34177 | _ACEOF | |
34178 | ||
34179 | fi | |
34180 | fi | |
34181 | ||
34182 | ||
34183 | if test "$wxUSE_STL" = "yes"; then | |
34184 | cat >>confdefs.h <<\_ACEOF | |
34185 | #define wxUSE_STL 1 | |
34186 | _ACEOF | |
34187 | ||
34188 | fi | |
34189 | ||
34190 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34191 | cat >>confdefs.h <<\_ACEOF | |
34192 | #define wxUSE_APPLE_IEEE 1 | |
34193 | _ACEOF | |
34194 | ||
34195 | fi | |
34196 | ||
34197 | if test "$wxUSE_TIMER" = "yes"; then | |
34198 | cat >>confdefs.h <<\_ACEOF | |
34199 | #define wxUSE_TIMER 1 | |
34200 | _ACEOF | |
34201 | ||
34202 | fi | |
34203 | ||
34204 | WITH_PLUGIN_SDL=0 | |
34205 | if test "$wxUSE_SOUND" = "yes"; then | |
34206 | if test "$USE_UNIX" = "1" ; then | |
34207 | ||
34208 | for ac_header in sys/soundcard.h | |
34209 | do | |
34210 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34216 | fi | |
34217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34219 | else | |
34220 | # Is the header compilable? | |
34221 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34222 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34223 | cat >conftest.$ac_ext <<_ACEOF | |
34224 | /* confdefs.h. */ | |
34225 | _ACEOF | |
34226 | cat confdefs.h >>conftest.$ac_ext | |
34227 | cat >>conftest.$ac_ext <<_ACEOF | |
34228 | /* end confdefs.h. */ | |
34229 | $ac_includes_default | |
34230 | #include <$ac_header> | |
34231 | _ACEOF | |
34232 | rm -f conftest.$ac_objext | |
34233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34234 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34235 | ac_status=$? |
ac1cb8d3 VS |
34236 | grep -v '^ *+' conftest.er1 >conftest.err |
34237 | rm -f conftest.er1 | |
34238 | cat conftest.err >&5 | |
a848cd7e SC |
34239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34240 | (exit $ac_status); } && | |
5294a27e | 34241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34243 | (eval $ac_try) 2>&5 | |
34244 | ac_status=$? | |
34245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34246 | (exit $ac_status); }; } && | |
34247 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34249 | (eval $ac_try) 2>&5 | |
34250 | ac_status=$? | |
34251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34252 | (exit $ac_status); }; }; then | |
34253 | ac_header_compiler=yes | |
34254 | else | |
34255 | echo "$as_me: failed program was:" >&5 | |
34256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34257 | ||
34258 | ac_header_compiler=no | |
34259 | fi | |
ac1cb8d3 | 34260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34261 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34262 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34263 | ||
34264 | # Is the header present? | |
34265 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34266 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34267 | cat >conftest.$ac_ext <<_ACEOF | |
34268 | /* confdefs.h. */ | |
34269 | _ACEOF | |
34270 | cat confdefs.h >>conftest.$ac_ext | |
34271 | cat >>conftest.$ac_ext <<_ACEOF | |
34272 | /* end confdefs.h. */ | |
34273 | #include <$ac_header> | |
34274 | _ACEOF | |
34275 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34276 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34277 | ac_status=$? | |
34278 | grep -v '^ *+' conftest.er1 >conftest.err | |
34279 | rm -f conftest.er1 | |
34280 | cat conftest.err >&5 | |
34281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34282 | (exit $ac_status); } >/dev/null; then | |
34283 | if test -s conftest.err; then | |
34284 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34285 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34286 | else |
34287 | ac_cpp_err= | |
34288 | fi | |
34289 | else | |
34290 | ac_cpp_err=yes | |
34291 | fi | |
34292 | if test -z "$ac_cpp_err"; then | |
34293 | ac_header_preproc=yes | |
34294 | else | |
34295 | echo "$as_me: failed program was:" >&5 | |
34296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34297 | ||
34298 | ac_header_preproc=no | |
34299 | fi | |
34300 | rm -f conftest.err conftest.$ac_ext | |
34301 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34302 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34303 | ||
34304 | # So? What about this header? | |
ac1cb8d3 VS |
34305 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34306 | yes:no: ) | |
a848cd7e SC |
34307 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34308 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34309 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34310 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34311 | ac_header_preproc=yes | |
a848cd7e | 34312 | ;; |
ac1cb8d3 | 34313 | no:yes:* ) |
a848cd7e SC |
34314 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34315 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34316 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34317 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34318 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34319 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34320 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34321 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34322 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34323 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34324 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34325 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34326 | ( |
34327 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34328 | ## ----------------------------------------- ## |
34329 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34330 | ## ----------------------------------------- ## | |
a848cd7e SC |
34331 | _ASBOX |
34332 | ) | | |
34333 | sed "s/^/$as_me: WARNING: /" >&2 | |
34334 | ;; | |
34335 | esac | |
34336 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34337 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34338 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34340 | else | |
ac1cb8d3 | 34341 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34342 | fi |
34343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34344 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34345 | ||
34346 | fi | |
34347 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34348 | cat >>confdefs.h <<_ACEOF | |
34349 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34350 | _ACEOF | |
34351 | ||
34352 | fi | |
34353 | ||
34354 | done | |
34355 | ||
34356 | ||
34357 | if test "$wxUSE_LIBSDL" != "no"; then | |
34358 | ||
34359 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34360 | if test "${with_sdl_prefix+set}" = set; then | |
34361 | withval="$with_sdl_prefix" | |
34362 | sdl_prefix="$withval" | |
34363 | else | |
34364 | sdl_prefix="" | |
34365 | fi; | |
34366 | ||
34367 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34368 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34369 | withval="$with_sdl_exec_prefix" | |
34370 | sdl_exec_prefix="$withval" | |
34371 | else | |
34372 | sdl_exec_prefix="" | |
34373 | fi; | |
34374 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34375 | if test "${enable_sdltest+set}" = set; then | |
34376 | enableval="$enable_sdltest" | |
34377 | ||
34378 | else | |
34379 | enable_sdltest=yes | |
34380 | fi; | |
34381 | ||
34382 | if test x$sdl_exec_prefix != x ; then | |
34383 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34384 | if test x${SDL_CONFIG+set} != xset ; then | |
34385 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34386 | fi | |
34387 | fi | |
34388 | if test x$sdl_prefix != x ; then | |
34389 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34390 | if test x${SDL_CONFIG+set} != xset ; then | |
34391 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34392 | fi | |
34393 | fi | |
34394 | ||
34395 | ||
34396 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34397 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34398 | set dummy sdl-config; ac_word=$2 | |
34399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34401 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34403 | else | |
34404 | case $SDL_CONFIG in | |
34405 | [\\/]* | ?:[\\/]*) | |
34406 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34407 | ;; | |
34408 | *) | |
34409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34410 | for as_dir in $PATH | |
34411 | do | |
34412 | IFS=$as_save_IFS | |
34413 | test -z "$as_dir" && as_dir=. | |
34414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34416 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34418 | break 2 | |
34419 | fi | |
34420 | done | |
34421 | done | |
34422 | ||
34423 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34424 | ;; | |
34425 | esac | |
34426 | fi | |
34427 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34428 | ||
34429 | if test -n "$SDL_CONFIG"; then | |
34430 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34431 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34432 | else | |
34433 | echo "$as_me:$LINENO: result: no" >&5 | |
34434 | echo "${ECHO_T}no" >&6 | |
34435 | fi | |
34436 | ||
34437 | min_sdl_version=1.2.0 | |
34438 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34439 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34440 | no_sdl="" | |
34441 | if test "$SDL_CONFIG" = "no" ; then | |
34442 | no_sdl=yes | |
34443 | else | |
34444 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34445 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34446 | ||
34447 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34448 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34449 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34450 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34451 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34452 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34453 | if test "x$enable_sdltest" = "xyes" ; then | |
34454 | ac_save_CFLAGS="$CFLAGS" | |
1e9e8aba | 34455 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
34456 | ac_save_LIBS="$LIBS" |
34457 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
1e9e8aba | 34458 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
34459 | LIBS="$LIBS $SDL_LIBS" |
34460 | rm -f conf.sdltest | |
34461 | if test "$cross_compiling" = yes; then | |
34462 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34463 | else | |
34464 | cat >conftest.$ac_ext <<_ACEOF | |
34465 | /* confdefs.h. */ | |
34466 | _ACEOF | |
34467 | cat confdefs.h >>conftest.$ac_ext | |
34468 | cat >>conftest.$ac_ext <<_ACEOF | |
34469 | /* end confdefs.h. */ | |
34470 | ||
34471 | #include <stdio.h> | |
34472 | #include <stdlib.h> | |
34473 | #include <string.h> | |
34474 | #include "SDL.h" | |
34475 | ||
34476 | char* | |
34477 | my_strdup (char *str) | |
34478 | { | |
34479 | char *new_str; | |
34480 | ||
34481 | if (str) | |
34482 | { | |
34483 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34484 | strcpy (new_str, str); | |
34485 | } | |
34486 | else | |
34487 | new_str = NULL; | |
34488 | ||
34489 | return new_str; | |
34490 | } | |
34491 | ||
34492 | int main (int argc, char *argv[]) | |
34493 | { | |
34494 | int major, minor, micro; | |
34495 | char *tmp_version; | |
34496 | ||
34497 | /* This hangs on some systems (?) | |
34498 | system ("touch conf.sdltest"); | |
34499 | */ | |
34500 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34501 | ||
34502 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34503 | tmp_version = my_strdup("$min_sdl_version"); | |
34504 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34505 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34506 | exit(1); | |
34507 | } | |
34508 | ||
34509 | if (($sdl_major_version > major) || | |
34510 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34511 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34512 | { | |
34513 | return 0; | |
34514 | } | |
34515 | else | |
34516 | { | |
34517 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34518 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34519 | printf("*** best to upgrade to the required version.\n"); | |
34520 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34521 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34522 | printf("*** config.cache before re-running configure\n"); | |
34523 | return 1; | |
34524 | } | |
34525 | } | |
34526 | ||
34527 | ||
34528 | _ACEOF | |
34529 | rm -f conftest$ac_exeext | |
34530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34531 | (eval $ac_link) 2>&5 | |
34532 | ac_status=$? | |
34533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34536 | (eval $ac_try) 2>&5 | |
34537 | ac_status=$? | |
34538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34539 | (exit $ac_status); }; }; then | |
34540 | : | |
34541 | else | |
34542 | echo "$as_me: program exited with status $ac_status" >&5 | |
34543 | echo "$as_me: failed program was:" >&5 | |
34544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34545 | ||
34546 | ( exit $ac_status ) | |
34547 | no_sdl=yes | |
34548 | fi | |
ac1cb8d3 | 34549 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34550 | fi |
34551 | CFLAGS="$ac_save_CFLAGS" | |
1e9e8aba | 34552 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
34553 | LIBS="$ac_save_LIBS" |
34554 | fi | |
34555 | fi | |
34556 | if test "x$no_sdl" = x ; then | |
34557 | echo "$as_me:$LINENO: result: yes" >&5 | |
34558 | echo "${ECHO_T}yes" >&6 | |
34559 | ||
34560 | EXTRALIBS_SDL="$SDL_LIBS" | |
34561 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34562 | cat >>confdefs.h <<\_ACEOF | |
34563 | #define wxUSE_LIBSDL 1 | |
34564 | _ACEOF | |
34565 | ||
34566 | ||
34567 | else | |
34568 | echo "$as_me:$LINENO: result: no" >&5 | |
34569 | echo "${ECHO_T}no" >&6 | |
34570 | if test "$SDL_CONFIG" = "no" ; then | |
34571 | echo "*** The sdl-config script installed by SDL could not be found" | |
34572 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34573 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34574 | echo "*** full path to sdl-config." | |
34575 | else | |
34576 | if test -f conf.sdltest ; then | |
34577 | : | |
34578 | else | |
34579 | echo "*** Could not run SDL test program, checking why..." | |
34580 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
1e9e8aba | 34581 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
34582 | LIBS="$LIBS $SDL_LIBS" |
34583 | cat >conftest.$ac_ext <<_ACEOF | |
34584 | /* confdefs.h. */ | |
34585 | _ACEOF | |
34586 | cat confdefs.h >>conftest.$ac_ext | |
34587 | cat >>conftest.$ac_ext <<_ACEOF | |
34588 | /* end confdefs.h. */ | |
34589 | ||
34590 | #include <stdio.h> | |
34591 | #include "SDL.h" | |
34592 | ||
34593 | int main(int argc, char *argv[]) | |
34594 | { return 0; } | |
34595 | #undef main | |
34596 | #define main K_and_R_C_main | |
34597 | ||
34598 | int | |
34599 | main () | |
34600 | { | |
34601 | return 0; | |
34602 | ; | |
34603 | return 0; | |
34604 | } | |
34605 | _ACEOF | |
34606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34608 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34609 | ac_status=$? |
ac1cb8d3 VS |
34610 | grep -v '^ *+' conftest.er1 >conftest.err |
34611 | rm -f conftest.er1 | |
34612 | cat conftest.err >&5 | |
a848cd7e SC |
34613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34614 | (exit $ac_status); } && | |
5294a27e | 34615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34617 | (eval $ac_try) 2>&5 | |
34618 | ac_status=$? | |
34619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34620 | (exit $ac_status); }; } && | |
34621 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34623 | (eval $ac_try) 2>&5 | |
34624 | ac_status=$? | |
34625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34626 | (exit $ac_status); }; }; then | |
34627 | echo "*** The test program compiled, but did not run. This usually means" | |
34628 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34629 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34630 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34631 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34632 | echo "*** is required on your system" | |
34633 | echo "***" | |
34634 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34635 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34636 | else | |
34637 | echo "$as_me: failed program was:" >&5 | |
34638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34639 | ||
34640 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34641 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34642 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34643 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34644 | fi | |
ac1cb8d3 VS |
34645 | rm -f conftest.err conftest.$ac_objext \ |
34646 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 34647 | CFLAGS="$ac_save_CFLAGS" |
1e9e8aba | 34648 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
34649 | LIBS="$ac_save_LIBS" |
34650 | fi | |
34651 | fi | |
34652 | SDL_CFLAGS="" | |
34653 | SDL_LIBS="" | |
34654 | wxUSE_LIBSDL="no" | |
34655 | fi | |
34656 | ||
34657 | ||
34658 | rm -f conf.sdltest | |
34659 | ||
34660 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34661 | WITH_PLUGIN_SDL=1 | |
34662 | fi | |
34663 | fi | |
34664 | fi | |
34665 | ||
34666 | cat >>confdefs.h <<\_ACEOF | |
34667 | #define wxUSE_SOUND 1 | |
34668 | _ACEOF | |
34669 | ||
34670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34671 | fi | |
34672 | ||
d1c38808 VZ |
34673 | if test "$WXGTK20" = 1; then |
34674 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
34675 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
34676 | ||
34677 | ||
34678 | succeeded=no | |
34679 | ||
34680 | if test -z "$PKG_CONFIG"; then | |
34681 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
34682 | set dummy pkg-config; ac_word=$2 | |
34683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34685 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
34686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34687 | else | |
34688 | case $PKG_CONFIG in | |
34689 | [\\/]* | ?:[\\/]*) | |
34690 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
34691 | ;; | |
34692 | *) | |
34693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34694 | for as_dir in $PATH | |
34695 | do | |
34696 | IFS=$as_save_IFS | |
34697 | test -z "$as_dir" && as_dir=. | |
34698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34700 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34702 | break 2 | |
34703 | fi | |
34704 | done | |
34705 | done | |
34706 | ||
34707 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
34708 | ;; | |
34709 | esac | |
34710 | fi | |
34711 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
34712 | ||
34713 | if test -n "$PKG_CONFIG"; then | |
34714 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
34715 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
34716 | else | |
34717 | echo "$as_me:$LINENO: result: no" >&5 | |
34718 | echo "${ECHO_T}no" >&6 | |
34719 | fi | |
34720 | ||
34721 | fi | |
34722 | ||
34723 | if test "$PKG_CONFIG" = "no" ; then | |
34724 | echo "*** The pkg-config script could not be found. Make sure it is" | |
34725 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
34726 | echo "*** to the full path to pkg-config." | |
34727 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
34728 | else | |
34729 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
34730 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
34731 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
34732 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 34733 | |
ffa762ff | 34734 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
34735 | echo "$as_me:$LINENO: result: yes" >&5 |
34736 | echo "${ECHO_T}yes" >&6 | |
34737 | succeeded=yes | |
34738 | ||
34739 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
34740 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 34741 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
34742 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
34743 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
34744 | ||
34745 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
34746 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 34747 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
34748 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
34749 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
34750 | else | |
34751 | LIBGNOMEPRINTUI_CFLAGS="" | |
34752 | LIBGNOMEPRINTUI_LIBS="" | |
34753 | ## If we have a custom action on failure, don't print errors, but | |
34754 | ## do set a variable so people can do so. | |
ffa762ff | 34755 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
34756 | |
34757 | fi | |
34758 | ||
34759 | ||
34760 | ||
34761 | else | |
34762 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
34763 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
34764 | fi | |
34765 | fi | |
34766 | ||
34767 | if test $succeeded = yes; then | |
34768 | ||
d1c38808 VZ |
34769 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
34770 | cat >>confdefs.h <<\_ACEOF | |
34771 | #define wxUSE_LIBGNOMEPRINT 1 | |
34772 | _ACEOF | |
34773 | ||
34774 | ||
34775 | else | |
34776 | ||
34777 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
34778 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
34779 | wxUSE_LIBGNOMEPRINT="no" | |
34780 | ||
34781 | ||
34782 | fi | |
34783 | ||
34784 | fi | |
34785 | fi | |
34786 | fi | |
34787 | ||
34788 | ||
a848cd7e SC |
34789 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
34790 | cat >>confdefs.h <<\_ACEOF | |
34791 | #define wxUSE_CMDLINE_PARSER 1 | |
34792 | _ACEOF | |
34793 | ||
34794 | fi | |
34795 | ||
34796 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34797 | cat >>confdefs.h <<\_ACEOF | |
34798 | #define wxUSE_STOPWATCH 1 | |
34799 | _ACEOF | |
34800 | ||
34801 | fi | |
34802 | ||
34803 | if test "$wxUSE_DATETIME" = "yes"; then | |
34804 | cat >>confdefs.h <<\_ACEOF | |
34805 | #define wxUSE_DATETIME 1 | |
34806 | _ACEOF | |
34807 | ||
34808 | fi | |
34809 | ||
34810 | if test "$wxUSE_FILE" = "yes"; then | |
34811 | cat >>confdefs.h <<\_ACEOF | |
34812 | #define wxUSE_FILE 1 | |
34813 | _ACEOF | |
34814 | ||
34815 | fi | |
34816 | ||
34817 | if test "$wxUSE_FFILE" = "yes"; then | |
34818 | cat >>confdefs.h <<\_ACEOF | |
34819 | #define wxUSE_FFILE 1 | |
34820 | _ACEOF | |
34821 | ||
34822 | fi | |
34823 | ||
34824 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34825 | cat >>confdefs.h <<\_ACEOF | |
34826 | #define wxUSE_FILESYSTEM 1 | |
34827 | _ACEOF | |
34828 | ||
34829 | fi | |
34830 | ||
34831 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34832 | cat >>confdefs.h <<\_ACEOF | |
34833 | #define wxUSE_FS_ZIP 1 | |
34834 | _ACEOF | |
34835 | ||
34836 | fi | |
34837 | ||
34838 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34839 | cat >>confdefs.h <<\_ACEOF | |
34840 | #define wxUSE_ZIPSTREAM 1 | |
34841 | _ACEOF | |
34842 | ||
34843 | fi | |
34844 | ||
a848cd7e SC |
34845 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34846 | cat >>confdefs.h <<\_ACEOF | |
34847 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34848 | _ACEOF | |
34849 | ||
34850 | fi | |
34851 | ||
34852 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34853 | cat >>confdefs.h <<\_ACEOF | |
34854 | #define wxUSE_SNGLINST_CHECKER 1 | |
34855 | _ACEOF | |
34856 | ||
34857 | fi | |
34858 | ||
34859 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34860 | cat >>confdefs.h <<\_ACEOF | |
34861 | #define wxUSE_BUSYINFO 1 | |
34862 | _ACEOF | |
34863 | ||
34864 | fi | |
34865 | ||
34866 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34867 | cat >>confdefs.h <<\_ACEOF | |
34868 | #define wxUSE_STD_IOSTREAM 1 | |
34869 | _ACEOF | |
34870 | ||
34871 | fi | |
34872 | ||
34873 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34874 | cat >>confdefs.h <<\_ACEOF | |
34875 | #define wxUSE_TEXTBUFFER 1 | |
34876 | _ACEOF | |
34877 | ||
34878 | fi | |
34879 | ||
34880 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34881 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34882 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34883 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34884 | else | |
34885 | cat >>confdefs.h <<\_ACEOF | |
34886 | #define wxUSE_TEXTFILE 1 | |
34887 | _ACEOF | |
34888 | ||
34889 | fi | |
34890 | fi | |
34891 | ||
34892 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34893 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34894 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34895 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34896 | else | |
34897 | cat >>confdefs.h <<\_ACEOF | |
34898 | #define wxUSE_CONFIG 1 | |
34899 | _ACEOF | |
34900 | ||
34901 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34902 | fi | |
34903 | fi | |
34904 | ||
34905 | if test "$wxUSE_INTL" = "yes" ; then | |
34906 | if test "$wxUSE_FILE" != "yes"; then | |
34907 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34908 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34909 | else | |
34910 | cat >>confdefs.h <<\_ACEOF | |
34911 | #define wxUSE_INTL 1 | |
34912 | _ACEOF | |
34913 | ||
34914 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34915 | GUIDIST="$GUIDIST INTL_DIST" | |
34916 | fi | |
34917 | fi | |
34918 | ||
34919 | if test "$wxUSE_LOG" = "yes"; then | |
34920 | cat >>confdefs.h <<\_ACEOF | |
34921 | #define wxUSE_LOG 1 | |
34922 | _ACEOF | |
34923 | ||
34924 | ||
34925 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34926 | cat >>confdefs.h <<\_ACEOF | |
34927 | #define wxUSE_LOGGUI 1 | |
34928 | _ACEOF | |
34929 | ||
34930 | fi | |
34931 | ||
34932 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34933 | cat >>confdefs.h <<\_ACEOF | |
34934 | #define wxUSE_LOGWINDOW 1 | |
34935 | _ACEOF | |
34936 | ||
34937 | fi | |
34938 | ||
34939 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34940 | cat >>confdefs.h <<\_ACEOF | |
34941 | #define wxUSE_LOG_DIALOG 1 | |
34942 | _ACEOF | |
34943 | ||
34944 | fi | |
34945 | fi | |
34946 | ||
34947 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34948 | cat >>confdefs.h <<\_ACEOF | |
34949 | #define wxUSE_LONGLONG 1 | |
34950 | _ACEOF | |
34951 | ||
34952 | fi | |
34953 | ||
34954 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34955 | cat >>confdefs.h <<\_ACEOF | |
34956 | #define wxUSE_GEOMETRY 1 | |
34957 | _ACEOF | |
34958 | ||
34959 | fi | |
34960 | ||
34961 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34962 | cat >>confdefs.h <<\_ACEOF | |
34963 | #define wxUSE_DIALUP_MANAGER 1 | |
34964 | _ACEOF | |
34965 | ||
34966 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34967 | fi | |
34968 | ||
34969 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34970 | cat >>confdefs.h <<\_ACEOF | |
34971 | #define wxUSE_STREAMS 1 | |
34972 | _ACEOF | |
34973 | ||
34974 | fi | |
34975 | ||
34976 | ||
34977 | if test "$wxUSE_DATETIME" = "yes"; then | |
34978 | ||
34979 | for ac_func in strptime | |
34980 | do | |
34981 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34982 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34983 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34984 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34986 | else | |
34987 | cat >conftest.$ac_ext <<_ACEOF | |
34988 | /* confdefs.h. */ | |
34989 | _ACEOF | |
34990 | cat confdefs.h >>conftest.$ac_ext | |
34991 | cat >>conftest.$ac_ext <<_ACEOF | |
34992 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34993 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34995 | #define $ac_func innocuous_$ac_func | |
34996 | ||
a848cd7e SC |
34997 | /* System header to define __stub macros and hopefully few prototypes, |
34998 | which can conflict with char $ac_func (); below. | |
34999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35000 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35001 | |
a848cd7e SC |
35002 | #ifdef __STDC__ |
35003 | # include <limits.h> | |
35004 | #else | |
35005 | # include <assert.h> | |
35006 | #endif | |
ac1cb8d3 VS |
35007 | |
35008 | #undef $ac_func | |
35009 | ||
a848cd7e SC |
35010 | /* Override any gcc2 internal prototype to avoid an error. */ |
35011 | #ifdef __cplusplus | |
35012 | extern "C" | |
35013 | { | |
35014 | #endif | |
35015 | /* We use char because int might match the return type of a gcc2 | |
35016 | builtin and then its argument prototype would still apply. */ | |
35017 | char $ac_func (); | |
35018 | /* The GNU C library defines this for functions which it implements | |
35019 | to always fail with ENOSYS. Some functions are actually named | |
35020 | something starting with __ and the normal name is an alias. */ | |
35021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35022 | choke me | |
35023 | #else | |
35024 | char (*f) () = $ac_func; | |
35025 | #endif | |
35026 | #ifdef __cplusplus | |
35027 | } | |
35028 | #endif | |
35029 | ||
35030 | int | |
35031 | main () | |
35032 | { | |
35033 | return f != $ac_func; | |
35034 | ; | |
35035 | return 0; | |
35036 | } | |
35037 | _ACEOF | |
35038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35040 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35041 | ac_status=$? |
ac1cb8d3 VS |
35042 | grep -v '^ *+' conftest.er1 >conftest.err |
35043 | rm -f conftest.er1 | |
35044 | cat conftest.err >&5 | |
a848cd7e SC |
35045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35046 | (exit $ac_status); } && | |
5294a27e | 35047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35049 | (eval $ac_try) 2>&5 | |
35050 | ac_status=$? | |
35051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35052 | (exit $ac_status); }; } && | |
35053 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35055 | (eval $ac_try) 2>&5 | |
35056 | ac_status=$? | |
35057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35058 | (exit $ac_status); }; }; then | |
35059 | eval "$as_ac_var=yes" | |
35060 | else | |
35061 | echo "$as_me: failed program was:" >&5 | |
35062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35063 | ||
35064 | eval "$as_ac_var=no" | |
35065 | fi | |
ac1cb8d3 VS |
35066 | rm -f conftest.err conftest.$ac_objext \ |
35067 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35068 | fi |
35069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35070 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35071 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35072 | cat >>confdefs.h <<_ACEOF | |
35073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35074 | _ACEOF | |
35075 | ||
35076 | fi | |
35077 | done | |
35078 | ||
35079 | ||
35080 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
35081 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
35082 | if test "${wx_cv_var_timezone+set}" = set; then | |
35083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35084 | else | |
35085 | ||
35086 | cat >conftest.$ac_ext <<_ACEOF | |
35087 | /* confdefs.h. */ | |
35088 | _ACEOF | |
35089 | cat confdefs.h >>conftest.$ac_ext | |
35090 | cat >>conftest.$ac_ext <<_ACEOF | |
35091 | /* end confdefs.h. */ | |
35092 | ||
35093 | #include <time.h> | |
35094 | ||
35095 | int | |
35096 | main () | |
35097 | { | |
35098 | ||
35099 | int tz; | |
35100 | tz = timezone; | |
35101 | ||
35102 | ; | |
35103 | return 0; | |
35104 | } | |
35105 | _ACEOF | |
35106 | rm -f conftest.$ac_objext | |
35107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35108 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35109 | ac_status=$? |
ac1cb8d3 VS |
35110 | grep -v '^ *+' conftest.er1 >conftest.err |
35111 | rm -f conftest.er1 | |
35112 | cat conftest.err >&5 | |
a848cd7e SC |
35113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35114 | (exit $ac_status); } && | |
5294a27e | 35115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35117 | (eval $ac_try) 2>&5 | |
35118 | ac_status=$? | |
35119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35120 | (exit $ac_status); }; } && | |
35121 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35123 | (eval $ac_try) 2>&5 | |
35124 | ac_status=$? | |
35125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35126 | (exit $ac_status); }; }; then | |
35127 | ||
35128 | wx_cv_var_timezone=timezone | |
35129 | ||
35130 | else | |
35131 | echo "$as_me: failed program was:" >&5 | |
35132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35133 | ||
35134 | ||
35135 | cat >conftest.$ac_ext <<_ACEOF | |
35136 | /* confdefs.h. */ | |
35137 | _ACEOF | |
35138 | cat confdefs.h >>conftest.$ac_ext | |
35139 | cat >>conftest.$ac_ext <<_ACEOF | |
35140 | /* end confdefs.h. */ | |
35141 | ||
35142 | #include <time.h> | |
35143 | ||
35144 | int | |
35145 | main () | |
35146 | { | |
35147 | ||
35148 | int tz; | |
35149 | tz = _timezone; | |
35150 | ||
35151 | ; | |
35152 | return 0; | |
35153 | } | |
35154 | _ACEOF | |
35155 | rm -f conftest.$ac_objext | |
35156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35157 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35158 | ac_status=$? |
ac1cb8d3 VS |
35159 | grep -v '^ *+' conftest.er1 >conftest.err |
35160 | rm -f conftest.er1 | |
35161 | cat conftest.err >&5 | |
a848cd7e SC |
35162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35163 | (exit $ac_status); } && | |
5294a27e | 35164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35166 | (eval $ac_try) 2>&5 | |
35167 | ac_status=$? | |
35168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35169 | (exit $ac_status); }; } && | |
35170 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35172 | (eval $ac_try) 2>&5 | |
35173 | ac_status=$? | |
35174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35175 | (exit $ac_status); }; }; then | |
35176 | ||
35177 | wx_cv_var_timezone=_timezone | |
35178 | ||
35179 | else | |
35180 | echo "$as_me: failed program was:" >&5 | |
35181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35182 | ||
35183 | ||
35184 | cat >conftest.$ac_ext <<_ACEOF | |
35185 | /* confdefs.h. */ | |
35186 | _ACEOF | |
35187 | cat confdefs.h >>conftest.$ac_ext | |
35188 | cat >>conftest.$ac_ext <<_ACEOF | |
35189 | /* end confdefs.h. */ | |
35190 | ||
35191 | #include <time.h> | |
35192 | ||
35193 | int | |
35194 | main () | |
35195 | { | |
35196 | ||
35197 | int tz; | |
35198 | tz = __timezone; | |
35199 | ||
35200 | ; | |
35201 | return 0; | |
35202 | } | |
35203 | _ACEOF | |
35204 | rm -f conftest.$ac_objext | |
35205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35206 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35207 | ac_status=$? |
ac1cb8d3 VS |
35208 | grep -v '^ *+' conftest.er1 >conftest.err |
35209 | rm -f conftest.er1 | |
35210 | cat conftest.err >&5 | |
a848cd7e SC |
35211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35212 | (exit $ac_status); } && | |
5294a27e | 35213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35215 | (eval $ac_try) 2>&5 | |
35216 | ac_status=$? | |
35217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35218 | (exit $ac_status); }; } && | |
35219 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35221 | (eval $ac_try) 2>&5 | |
35222 | ac_status=$? | |
35223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35224 | (exit $ac_status); }; }; then | |
35225 | ||
35226 | wx_cv_var_timezone=__timezone | |
35227 | ||
35228 | else | |
35229 | echo "$as_me: failed program was:" >&5 | |
35230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35231 | ||
35232 | ||
35233 | if test "$USE_DOS" = 0 ; then | |
35234 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35235 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35236 | fi | |
35237 | ||
35238 | ||
35239 | fi | |
ac1cb8d3 | 35240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35241 | |
35242 | ||
35243 | fi | |
ac1cb8d3 | 35244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35245 | |
35246 | ||
35247 | fi | |
ac1cb8d3 | 35248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35249 | |
35250 | ||
35251 | fi | |
35252 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
35253 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
35254 | ||
35255 | if test "x$wx_cv_var_timezone" != x ; then | |
35256 | cat >>confdefs.h <<_ACEOF | |
35257 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35258 | _ACEOF | |
35259 | ||
35260 | fi | |
35261 | ||
35262 | ||
35263 | for ac_func in localtime | |
35264 | do | |
35265 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35266 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35267 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35268 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35270 | else | |
35271 | cat >conftest.$ac_ext <<_ACEOF | |
35272 | /* confdefs.h. */ | |
35273 | _ACEOF | |
35274 | cat confdefs.h >>conftest.$ac_ext | |
35275 | cat >>conftest.$ac_ext <<_ACEOF | |
35276 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35277 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35279 | #define $ac_func innocuous_$ac_func | |
35280 | ||
a848cd7e SC |
35281 | /* System header to define __stub macros and hopefully few prototypes, |
35282 | which can conflict with char $ac_func (); below. | |
35283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35284 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35285 | |
a848cd7e SC |
35286 | #ifdef __STDC__ |
35287 | # include <limits.h> | |
35288 | #else | |
35289 | # include <assert.h> | |
35290 | #endif | |
ac1cb8d3 VS |
35291 | |
35292 | #undef $ac_func | |
35293 | ||
a848cd7e SC |
35294 | /* Override any gcc2 internal prototype to avoid an error. */ |
35295 | #ifdef __cplusplus | |
35296 | extern "C" | |
35297 | { | |
35298 | #endif | |
35299 | /* We use char because int might match the return type of a gcc2 | |
35300 | builtin and then its argument prototype would still apply. */ | |
35301 | char $ac_func (); | |
35302 | /* The GNU C library defines this for functions which it implements | |
35303 | to always fail with ENOSYS. Some functions are actually named | |
35304 | something starting with __ and the normal name is an alias. */ | |
35305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35306 | choke me | |
35307 | #else | |
35308 | char (*f) () = $ac_func; | |
35309 | #endif | |
35310 | #ifdef __cplusplus | |
35311 | } | |
35312 | #endif | |
35313 | ||
35314 | int | |
35315 | main () | |
35316 | { | |
35317 | return f != $ac_func; | |
35318 | ; | |
35319 | return 0; | |
35320 | } | |
35321 | _ACEOF | |
35322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35324 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35325 | ac_status=$? |
ac1cb8d3 VS |
35326 | grep -v '^ *+' conftest.er1 >conftest.err |
35327 | rm -f conftest.er1 | |
35328 | cat conftest.err >&5 | |
a848cd7e SC |
35329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35330 | (exit $ac_status); } && | |
5294a27e | 35331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35333 | (eval $ac_try) 2>&5 | |
35334 | ac_status=$? | |
35335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35336 | (exit $ac_status); }; } && | |
35337 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35339 | (eval $ac_try) 2>&5 | |
35340 | ac_status=$? | |
35341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35342 | (exit $ac_status); }; }; then | |
35343 | eval "$as_ac_var=yes" | |
35344 | else | |
35345 | echo "$as_me: failed program was:" >&5 | |
35346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35347 | ||
35348 | eval "$as_ac_var=no" | |
35349 | fi | |
ac1cb8d3 VS |
35350 | rm -f conftest.err conftest.$ac_objext \ |
35351 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35352 | fi |
35353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35354 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35355 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35356 | cat >>confdefs.h <<_ACEOF | |
35357 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35358 | _ACEOF | |
35359 | ||
35360 | fi | |
35361 | done | |
35362 | ||
35363 | ||
35364 | if test "$ac_cv_func_localtime" = "yes"; then | |
35365 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
35366 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
35367 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
35368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35369 | else | |
35370 | ||
35371 | cat >conftest.$ac_ext <<_ACEOF | |
35372 | /* confdefs.h. */ | |
35373 | _ACEOF | |
35374 | cat confdefs.h >>conftest.$ac_ext | |
35375 | cat >>conftest.$ac_ext <<_ACEOF | |
35376 | /* end confdefs.h. */ | |
35377 | ||
35378 | #include <time.h> | |
35379 | ||
35380 | int | |
35381 | main () | |
35382 | { | |
35383 | ||
35384 | struct tm tm; | |
35385 | tm.tm_gmtoff++; | |
35386 | ||
35387 | ; | |
35388 | return 0; | |
35389 | } | |
35390 | _ACEOF | |
35391 | rm -f conftest.$ac_objext | |
35392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35393 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35394 | ac_status=$? |
ac1cb8d3 VS |
35395 | grep -v '^ *+' conftest.er1 >conftest.err |
35396 | rm -f conftest.er1 | |
35397 | cat conftest.err >&5 | |
a848cd7e SC |
35398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35399 | (exit $ac_status); } && | |
5294a27e | 35400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35402 | (eval $ac_try) 2>&5 | |
35403 | ac_status=$? | |
35404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35405 | (exit $ac_status); }; } && | |
35406 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35408 | (eval $ac_try) 2>&5 | |
35409 | ac_status=$? | |
35410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35411 | (exit $ac_status); }; }; then | |
35412 | ||
35413 | wx_cv_struct_tm_has_gmtoff=yes | |
35414 | ||
35415 | else | |
35416 | echo "$as_me: failed program was:" >&5 | |
35417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35418 | ||
35419 | wx_cv_struct_tm_has_gmtoff=no | |
35420 | ||
35421 | fi | |
ac1cb8d3 | 35422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35423 | |
35424 | fi | |
35425 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35426 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35427 | fi | |
35428 | ||
35429 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35430 | cat >>confdefs.h <<\_ACEOF | |
35431 | #define WX_GMTOFF_IN_TM 1 | |
35432 | _ACEOF | |
35433 | ||
35434 | fi | |
35435 | ||
35436 | ||
35437 | ||
35438 | for ac_func in gettimeofday ftime | |
35439 | do | |
35440 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35441 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35442 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35443 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35445 | else | |
35446 | cat >conftest.$ac_ext <<_ACEOF | |
35447 | /* confdefs.h. */ | |
35448 | _ACEOF | |
35449 | cat confdefs.h >>conftest.$ac_ext | |
35450 | cat >>conftest.$ac_ext <<_ACEOF | |
35451 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35452 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35453 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35454 | #define $ac_func innocuous_$ac_func | |
35455 | ||
a848cd7e SC |
35456 | /* System header to define __stub macros and hopefully few prototypes, |
35457 | which can conflict with char $ac_func (); below. | |
35458 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35459 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35460 | |
a848cd7e SC |
35461 | #ifdef __STDC__ |
35462 | # include <limits.h> | |
35463 | #else | |
35464 | # include <assert.h> | |
35465 | #endif | |
ac1cb8d3 VS |
35466 | |
35467 | #undef $ac_func | |
35468 | ||
a848cd7e SC |
35469 | /* Override any gcc2 internal prototype to avoid an error. */ |
35470 | #ifdef __cplusplus | |
35471 | extern "C" | |
35472 | { | |
35473 | #endif | |
35474 | /* We use char because int might match the return type of a gcc2 | |
35475 | builtin and then its argument prototype would still apply. */ | |
35476 | char $ac_func (); | |
35477 | /* The GNU C library defines this for functions which it implements | |
35478 | to always fail with ENOSYS. Some functions are actually named | |
35479 | something starting with __ and the normal name is an alias. */ | |
35480 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35481 | choke me | |
35482 | #else | |
35483 | char (*f) () = $ac_func; | |
35484 | #endif | |
35485 | #ifdef __cplusplus | |
35486 | } | |
35487 | #endif | |
35488 | ||
35489 | int | |
35490 | main () | |
35491 | { | |
35492 | return f != $ac_func; | |
35493 | ; | |
35494 | return 0; | |
35495 | } | |
35496 | _ACEOF | |
35497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35499 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35500 | ac_status=$? |
ac1cb8d3 VS |
35501 | grep -v '^ *+' conftest.er1 >conftest.err |
35502 | rm -f conftest.er1 | |
35503 | cat conftest.err >&5 | |
a848cd7e SC |
35504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35505 | (exit $ac_status); } && | |
5294a27e | 35506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35508 | (eval $ac_try) 2>&5 | |
35509 | ac_status=$? | |
35510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35511 | (exit $ac_status); }; } && | |
35512 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35514 | (eval $ac_try) 2>&5 | |
35515 | ac_status=$? | |
35516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35517 | (exit $ac_status); }; }; then | |
35518 | eval "$as_ac_var=yes" | |
35519 | else | |
35520 | echo "$as_me: failed program was:" >&5 | |
35521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35522 | ||
35523 | eval "$as_ac_var=no" | |
35524 | fi | |
ac1cb8d3 VS |
35525 | rm -f conftest.err conftest.$ac_objext \ |
35526 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35527 | fi |
35528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35529 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35530 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35531 | cat >>confdefs.h <<_ACEOF | |
35532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35533 | _ACEOF | |
35534 | break | |
35535 | fi | |
35536 | done | |
35537 | ||
35538 | ||
35539 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35540 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35541 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35542 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35544 | else | |
35545 | ||
35546 | ||
35547 | ||
35548 | ac_ext=cc | |
35549 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35550 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35551 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35552 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35553 | ||
35554 | ||
35555 | cat >conftest.$ac_ext <<_ACEOF | |
35556 | /* confdefs.h. */ | |
35557 | _ACEOF | |
35558 | cat confdefs.h >>conftest.$ac_ext | |
35559 | cat >>conftest.$ac_ext <<_ACEOF | |
35560 | /* end confdefs.h. */ | |
35561 | ||
35562 | #include <sys/time.h> | |
35563 | #include <unistd.h> | |
35564 | ||
35565 | int | |
35566 | main () | |
35567 | { | |
35568 | ||
35569 | struct timeval tv; | |
35570 | gettimeofday(&tv, NULL); | |
35571 | ||
35572 | ; | |
35573 | return 0; | |
35574 | } | |
35575 | _ACEOF | |
35576 | rm -f conftest.$ac_objext | |
35577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35578 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35579 | ac_status=$? |
ac1cb8d3 VS |
35580 | grep -v '^ *+' conftest.er1 >conftest.err |
35581 | rm -f conftest.er1 | |
35582 | cat conftest.err >&5 | |
a848cd7e SC |
35583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35584 | (exit $ac_status); } && | |
5294a27e | 35585 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35587 | (eval $ac_try) 2>&5 | |
35588 | ac_status=$? | |
35589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35590 | (exit $ac_status); }; } && | |
35591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35593 | (eval $ac_try) 2>&5 | |
35594 | ac_status=$? | |
35595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35596 | (exit $ac_status); }; }; then | |
35597 | wx_cv_func_gettimeofday_has_2_args=yes | |
35598 | else | |
35599 | echo "$as_me: failed program was:" >&5 | |
35600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35601 | ||
35602 | cat >conftest.$ac_ext <<_ACEOF | |
35603 | /* confdefs.h. */ | |
35604 | _ACEOF | |
35605 | cat confdefs.h >>conftest.$ac_ext | |
35606 | cat >>conftest.$ac_ext <<_ACEOF | |
35607 | /* end confdefs.h. */ | |
35608 | ||
35609 | #include <sys/time.h> | |
35610 | #include <unistd.h> | |
35611 | ||
35612 | int | |
35613 | main () | |
35614 | { | |
35615 | ||
35616 | struct timeval tv; | |
35617 | gettimeofday(&tv); | |
35618 | ||
35619 | ; | |
35620 | return 0; | |
35621 | } | |
35622 | _ACEOF | |
35623 | rm -f conftest.$ac_objext | |
35624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35625 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35626 | ac_status=$? |
ac1cb8d3 VS |
35627 | grep -v '^ *+' conftest.er1 >conftest.err |
35628 | rm -f conftest.er1 | |
35629 | cat conftest.err >&5 | |
a848cd7e SC |
35630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35631 | (exit $ac_status); } && | |
5294a27e | 35632 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35634 | (eval $ac_try) 2>&5 | |
35635 | ac_status=$? | |
35636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35637 | (exit $ac_status); }; } && | |
35638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35640 | (eval $ac_try) 2>&5 | |
35641 | ac_status=$? | |
35642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35643 | (exit $ac_status); }; }; then | |
35644 | wx_cv_func_gettimeofday_has_2_args=no | |
35645 | else | |
35646 | echo "$as_me: failed program was:" >&5 | |
35647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35648 | ||
35649 | ||
35650 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35651 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35652 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35653 | ||
35654 | ||
35655 | fi | |
ac1cb8d3 | 35656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35657 | |
35658 | fi | |
ac1cb8d3 | 35659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35660 | ac_ext=c |
35661 | ac_cpp='$CPP $CPPFLAGS' | |
35662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35665 | ||
35666 | ||
35667 | fi | |
35668 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35669 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35670 | ||
35671 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35672 | cat >>confdefs.h <<\_ACEOF | |
35673 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35674 | _ACEOF | |
35675 | ||
35676 | fi | |
35677 | fi | |
35678 | ||
35679 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35680 | fi | |
35681 | ||
35682 | ||
35683 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35684 | if test "$wxUSE_MGL" = "1"; then | |
35685 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35686 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35687 | wxUSE_SOCKETS="no" | |
35688 | fi | |
35689 | fi | |
35690 | ||
35691 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35692 | if test "$TOOLKIT" != "MSW"; then | |
35693 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35694 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35695 | if test "${ac_cv_func_socket+set}" = set; then | |
35696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35697 | else | |
35698 | cat >conftest.$ac_ext <<_ACEOF | |
35699 | /* confdefs.h. */ | |
35700 | _ACEOF | |
35701 | cat confdefs.h >>conftest.$ac_ext | |
35702 | cat >>conftest.$ac_ext <<_ACEOF | |
35703 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35704 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35706 | #define socket innocuous_socket | |
35707 | ||
a848cd7e SC |
35708 | /* System header to define __stub macros and hopefully few prototypes, |
35709 | which can conflict with char socket (); below. | |
35710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35711 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35712 | |
a848cd7e SC |
35713 | #ifdef __STDC__ |
35714 | # include <limits.h> | |
35715 | #else | |
35716 | # include <assert.h> | |
35717 | #endif | |
ac1cb8d3 VS |
35718 | |
35719 | #undef socket | |
35720 | ||
a848cd7e SC |
35721 | /* Override any gcc2 internal prototype to avoid an error. */ |
35722 | #ifdef __cplusplus | |
35723 | extern "C" | |
35724 | { | |
35725 | #endif | |
35726 | /* We use char because int might match the return type of a gcc2 | |
35727 | builtin and then its argument prototype would still apply. */ | |
35728 | char socket (); | |
35729 | /* The GNU C library defines this for functions which it implements | |
35730 | to always fail with ENOSYS. Some functions are actually named | |
35731 | something starting with __ and the normal name is an alias. */ | |
35732 | #if defined (__stub_socket) || defined (__stub___socket) | |
35733 | choke me | |
35734 | #else | |
35735 | char (*f) () = socket; | |
35736 | #endif | |
35737 | #ifdef __cplusplus | |
35738 | } | |
35739 | #endif | |
35740 | ||
35741 | int | |
35742 | main () | |
35743 | { | |
35744 | return f != socket; | |
35745 | ; | |
35746 | return 0; | |
35747 | } | |
35748 | _ACEOF | |
35749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35751 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35752 | ac_status=$? |
ac1cb8d3 VS |
35753 | grep -v '^ *+' conftest.er1 >conftest.err |
35754 | rm -f conftest.er1 | |
35755 | cat conftest.err >&5 | |
a848cd7e SC |
35756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35757 | (exit $ac_status); } && | |
5294a27e | 35758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35760 | (eval $ac_try) 2>&5 | |
35761 | ac_status=$? | |
35762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35763 | (exit $ac_status); }; } && | |
35764 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35766 | (eval $ac_try) 2>&5 | |
35767 | ac_status=$? | |
35768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35769 | (exit $ac_status); }; }; then | |
35770 | ac_cv_func_socket=yes | |
35771 | else | |
35772 | echo "$as_me: failed program was:" >&5 | |
35773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35774 | ||
35775 | ac_cv_func_socket=no | |
35776 | fi | |
ac1cb8d3 VS |
35777 | rm -f conftest.err conftest.$ac_objext \ |
35778 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35779 | fi |
35780 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35781 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35782 | if test $ac_cv_func_socket = yes; then | |
35783 | : | |
35784 | else | |
35785 | ||
35786 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35787 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35788 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35790 | else | |
35791 | ac_check_lib_save_LIBS=$LIBS | |
35792 | LIBS="-lsocket $LIBS" | |
35793 | cat >conftest.$ac_ext <<_ACEOF | |
35794 | /* confdefs.h. */ | |
35795 | _ACEOF | |
35796 | cat confdefs.h >>conftest.$ac_ext | |
35797 | cat >>conftest.$ac_ext <<_ACEOF | |
35798 | /* end confdefs.h. */ | |
35799 | ||
35800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35801 | #ifdef __cplusplus | |
35802 | extern "C" | |
35803 | #endif | |
35804 | /* We use char because int might match the return type of a gcc2 | |
35805 | builtin and then its argument prototype would still apply. */ | |
35806 | char socket (); | |
35807 | int | |
35808 | main () | |
35809 | { | |
35810 | socket (); | |
35811 | ; | |
35812 | return 0; | |
35813 | } | |
35814 | _ACEOF | |
35815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35817 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35818 | ac_status=$? |
ac1cb8d3 VS |
35819 | grep -v '^ *+' conftest.er1 >conftest.err |
35820 | rm -f conftest.er1 | |
35821 | cat conftest.err >&5 | |
a848cd7e SC |
35822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35823 | (exit $ac_status); } && | |
5294a27e | 35824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35826 | (eval $ac_try) 2>&5 | |
35827 | ac_status=$? | |
35828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35829 | (exit $ac_status); }; } && | |
35830 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35832 | (eval $ac_try) 2>&5 | |
35833 | ac_status=$? | |
35834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35835 | (exit $ac_status); }; }; then | |
35836 | ac_cv_lib_socket_socket=yes | |
35837 | else | |
35838 | echo "$as_me: failed program was:" >&5 | |
35839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35840 | ||
35841 | ac_cv_lib_socket_socket=no | |
35842 | fi | |
ac1cb8d3 VS |
35843 | rm -f conftest.err conftest.$ac_objext \ |
35844 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35845 | LIBS=$ac_check_lib_save_LIBS |
35846 | fi | |
35847 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35848 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35849 | if test $ac_cv_lib_socket_socket = yes; then | |
35850 | if test "$INET_LINK" != " -lsocket"; then | |
35851 | INET_LINK="$INET_LINK -lsocket" | |
35852 | fi | |
35853 | else | |
35854 | ||
35855 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35856 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35857 | wxUSE_SOCKETS=no | |
35858 | ||
35859 | ||
35860 | fi | |
35861 | ||
35862 | ||
35863 | ||
35864 | fi | |
35865 | ||
35866 | fi | |
35867 | fi | |
35868 | ||
35869 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35870 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35871 | ac_ext=cc |
35872 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35876 | ||
35877 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35878 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35879 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35881 | else | |
35882 | ||
35883 | cat >conftest.$ac_ext <<_ACEOF | |
35884 | /* confdefs.h. */ | |
35885 | _ACEOF | |
35886 | cat confdefs.h >>conftest.$ac_ext | |
35887 | cat >>conftest.$ac_ext <<_ACEOF | |
35888 | /* end confdefs.h. */ | |
35889 | ||
35890 | #include <sys/types.h> | |
35891 | #include <sys/socket.h> | |
35892 | ||
35893 | int | |
35894 | main () | |
35895 | { | |
35896 | ||
35897 | socklen_t len; | |
35898 | getsockname(0, 0, &len); | |
35899 | ||
35900 | ; | |
35901 | return 0; | |
35902 | } | |
35903 | _ACEOF | |
35904 | rm -f conftest.$ac_objext | |
35905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35906 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35907 | ac_status=$? |
ac1cb8d3 VS |
35908 | grep -v '^ *+' conftest.er1 >conftest.err |
35909 | rm -f conftest.er1 | |
35910 | cat conftest.err >&5 | |
a848cd7e SC |
35911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35912 | (exit $ac_status); } && | |
5294a27e | 35913 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35915 | (eval $ac_try) 2>&5 | |
35916 | ac_status=$? | |
35917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35918 | (exit $ac_status); }; } && | |
35919 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35921 | (eval $ac_try) 2>&5 | |
35922 | ac_status=$? | |
35923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35924 | (exit $ac_status); }; }; then | |
35925 | wx_cv_type_getsockname3=socklen_t | |
35926 | else | |
35927 | echo "$as_me: failed program was:" >&5 | |
35928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35929 | ||
35930 | ||
35931 | CFLAGS_OLD="$CFLAGS" | |
35932 | if test "$GCC" = yes ; then | |
35933 | CFLAGS="$CFLAGS -Werror" | |
35934 | fi | |
35935 | ||
35936 | cat >conftest.$ac_ext <<_ACEOF | |
35937 | /* confdefs.h. */ | |
35938 | _ACEOF | |
35939 | cat confdefs.h >>conftest.$ac_ext | |
35940 | cat >>conftest.$ac_ext <<_ACEOF | |
35941 | /* end confdefs.h. */ | |
35942 | ||
35943 | #include <sys/types.h> | |
35944 | #include <sys/socket.h> | |
35945 | ||
35946 | int | |
35947 | main () | |
35948 | { | |
35949 | ||
35950 | size_t len; | |
35951 | getsockname(0, 0, &len); | |
35952 | ||
35953 | ; | |
35954 | return 0; | |
35955 | } | |
35956 | _ACEOF | |
35957 | rm -f conftest.$ac_objext | |
35958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35960 | ac_status=$? |
ac1cb8d3 VS |
35961 | grep -v '^ *+' conftest.er1 >conftest.err |
35962 | rm -f conftest.er1 | |
35963 | cat conftest.err >&5 | |
a848cd7e SC |
35964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35965 | (exit $ac_status); } && | |
5294a27e | 35966 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35968 | (eval $ac_try) 2>&5 | |
35969 | ac_status=$? | |
35970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35971 | (exit $ac_status); }; } && | |
35972 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35974 | (eval $ac_try) 2>&5 | |
35975 | ac_status=$? | |
35976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35977 | (exit $ac_status); }; }; then | |
35978 | wx_cv_type_getsockname3=size_t | |
35979 | else | |
35980 | echo "$as_me: failed program was:" >&5 | |
35981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35982 | ||
35983 | cat >conftest.$ac_ext <<_ACEOF | |
35984 | /* confdefs.h. */ | |
35985 | _ACEOF | |
35986 | cat confdefs.h >>conftest.$ac_ext | |
35987 | cat >>conftest.$ac_ext <<_ACEOF | |
35988 | /* end confdefs.h. */ | |
35989 | ||
35990 | #include <sys/types.h> | |
35991 | #include <sys/socket.h> | |
35992 | ||
35993 | int | |
35994 | main () | |
35995 | { | |
35996 | ||
35997 | int len; | |
35998 | getsockname(0, 0, &len); | |
35999 | ||
36000 | ; | |
36001 | return 0; | |
36002 | } | |
36003 | _ACEOF | |
36004 | rm -f conftest.$ac_objext | |
36005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36007 | ac_status=$? |
ac1cb8d3 VS |
36008 | grep -v '^ *+' conftest.er1 >conftest.err |
36009 | rm -f conftest.er1 | |
36010 | cat conftest.err >&5 | |
a848cd7e SC |
36011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36012 | (exit $ac_status); } && | |
5294a27e | 36013 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36015 | (eval $ac_try) 2>&5 | |
36016 | ac_status=$? | |
36017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36018 | (exit $ac_status); }; } && | |
36019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36021 | (eval $ac_try) 2>&5 | |
36022 | ac_status=$? | |
36023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36024 | (exit $ac_status); }; }; then | |
36025 | wx_cv_type_getsockname3=int | |
36026 | else | |
36027 | echo "$as_me: failed program was:" >&5 | |
36028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36029 | ||
36030 | wx_cv_type_getsockname3=unknown | |
36031 | ||
36032 | fi | |
ac1cb8d3 | 36033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36034 | |
36035 | fi | |
ac1cb8d3 | 36036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36037 | |
36038 | CFLAGS="$CFLAGS_OLD" | |
36039 | ||
36040 | ||
36041 | fi | |
ac1cb8d3 | 36042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36043 | |
36044 | fi | |
36045 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
36046 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
36047 | ||
36048 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
36049 | wxUSE_SOCKETS=no | |
36050 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36051 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36052 | else | |
36053 | cat >>confdefs.h <<_ACEOF | |
36054 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
36055 | _ACEOF |
36056 | ||
36057 | fi | |
36058 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
36059 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
36060 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
36061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36062 | else | |
36063 | ||
36064 | cat >conftest.$ac_ext <<_ACEOF | |
36065 | /* confdefs.h. */ | |
36066 | _ACEOF | |
36067 | cat confdefs.h >>conftest.$ac_ext | |
36068 | cat >>conftest.$ac_ext <<_ACEOF | |
36069 | /* end confdefs.h. */ | |
36070 | ||
36071 | #include <sys/types.h> | |
36072 | #include <sys/socket.h> | |
36073 | ||
36074 | int | |
36075 | main () | |
36076 | { | |
36077 | ||
36078 | socklen_t len; | |
36079 | getsockopt(0, 0, 0, 0, &len); | |
36080 | ||
36081 | ; | |
36082 | return 0; | |
36083 | } | |
36084 | _ACEOF | |
36085 | rm -f conftest.$ac_objext | |
36086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36087 | (eval $ac_compile) 2>conftest.er1 | |
36088 | ac_status=$? | |
36089 | grep -v '^ *+' conftest.er1 >conftest.err | |
36090 | rm -f conftest.er1 | |
36091 | cat conftest.err >&5 | |
36092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36093 | (exit $ac_status); } && | |
36094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
36095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36096 | (eval $ac_try) 2>&5 | |
36097 | ac_status=$? | |
36098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36099 | (exit $ac_status); }; } && | |
36100 | { ac_try='test -s conftest.$ac_objext' | |
36101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36102 | (eval $ac_try) 2>&5 | |
36103 | ac_status=$? | |
36104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36105 | (exit $ac_status); }; }; then | |
36106 | wx_cv_type_getsockopt5=socklen_t | |
36107 | else | |
36108 | echo "$as_me: failed program was:" >&5 | |
36109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36110 | ||
36111 | ||
36112 | CFLAGS_OLD="$CFLAGS" | |
36113 | if test "$GCC" = yes ; then | |
36114 | CFLAGS="$CFLAGS -Werror" | |
36115 | fi | |
36116 | ||
36117 | cat >conftest.$ac_ext <<_ACEOF | |
36118 | /* confdefs.h. */ | |
36119 | _ACEOF | |
36120 | cat confdefs.h >>conftest.$ac_ext | |
36121 | cat >>conftest.$ac_ext <<_ACEOF | |
36122 | /* end confdefs.h. */ | |
36123 | ||
36124 | #include <sys/types.h> | |
36125 | #include <sys/socket.h> | |
36126 | ||
36127 | int | |
36128 | main () | |
36129 | { | |
36130 | ||
36131 | size_t len; | |
36132 | getsockopt(0, 0, 0, 0, &len); | |
36133 | ||
36134 | ; | |
36135 | return 0; | |
36136 | } | |
36137 | _ACEOF | |
36138 | rm -f conftest.$ac_objext | |
36139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36140 | (eval $ac_compile) 2>conftest.er1 | |
36141 | ac_status=$? | |
36142 | grep -v '^ *+' conftest.er1 >conftest.err | |
36143 | rm -f conftest.er1 | |
36144 | cat conftest.err >&5 | |
36145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36146 | (exit $ac_status); } && | |
36147 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
36148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36149 | (eval $ac_try) 2>&5 | |
36150 | ac_status=$? | |
36151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36152 | (exit $ac_status); }; } && | |
36153 | { ac_try='test -s conftest.$ac_objext' | |
36154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36155 | (eval $ac_try) 2>&5 | |
36156 | ac_status=$? | |
36157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36158 | (exit $ac_status); }; }; then | |
36159 | wx_cv_type_getsockopt5=size_t | |
36160 | else | |
36161 | echo "$as_me: failed program was:" >&5 | |
36162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36163 | ||
36164 | cat >conftest.$ac_ext <<_ACEOF | |
36165 | /* confdefs.h. */ | |
36166 | _ACEOF | |
36167 | cat confdefs.h >>conftest.$ac_ext | |
36168 | cat >>conftest.$ac_ext <<_ACEOF | |
36169 | /* end confdefs.h. */ | |
36170 | ||
36171 | #include <sys/types.h> | |
36172 | #include <sys/socket.h> | |
36173 | ||
36174 | int | |
36175 | main () | |
36176 | { | |
36177 | ||
36178 | int len; | |
36179 | getsockopt(0, 0, 0, 0, &len); | |
36180 | ||
36181 | ; | |
36182 | return 0; | |
36183 | } | |
36184 | _ACEOF | |
36185 | rm -f conftest.$ac_objext | |
36186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36187 | (eval $ac_compile) 2>conftest.er1 | |
36188 | ac_status=$? | |
36189 | grep -v '^ *+' conftest.er1 >conftest.err | |
36190 | rm -f conftest.er1 | |
36191 | cat conftest.err >&5 | |
36192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36193 | (exit $ac_status); } && | |
36194 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
36195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36196 | (eval $ac_try) 2>&5 | |
36197 | ac_status=$? | |
36198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36199 | (exit $ac_status); }; } && | |
36200 | { ac_try='test -s conftest.$ac_objext' | |
36201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36202 | (eval $ac_try) 2>&5 | |
36203 | ac_status=$? | |
36204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36205 | (exit $ac_status); }; }; then | |
36206 | wx_cv_type_getsockopt5=int | |
36207 | else | |
36208 | echo "$as_me: failed program was:" >&5 | |
36209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36210 | ||
36211 | wx_cv_type_getsockopt5=unknown | |
36212 | ||
36213 | fi | |
36214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36215 | ||
36216 | fi | |
36217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36218 | ||
36219 | CFLAGS="$CFLAGS_OLD" | |
36220 | ||
36221 | ||
36222 | fi | |
36223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36224 | ||
36225 | fi | |
36226 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
36227 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
36228 | ||
36229 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
36230 | wxUSE_SOCKETS=no | |
36231 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
36232 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
36233 | else | |
36234 | cat >>confdefs.h <<_ACEOF | |
36235 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
36236 | _ACEOF |
36237 | ||
36238 | fi | |
4d4ff94c VZ |
36239 | ac_ext=c |
36240 | ac_cpp='$CPP $CPPFLAGS' | |
36241 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36242 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36243 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36244 | ||
a848cd7e SC |
36245 | fi |
36246 | fi | |
36247 | ||
36248 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36249 | cat >>confdefs.h <<\_ACEOF | |
36250 | #define wxUSE_SOCKETS 1 | |
36251 | _ACEOF | |
36252 | ||
36253 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
36254 | fi | |
36255 | ||
36256 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36257 | if test "$wxUSE_SOCKETS" != "yes"; then | |
36258 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
36259 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
36260 | wxUSE_PROTOCOL=no | |
36261 | fi | |
36262 | fi | |
36263 | ||
36264 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
36265 | cat >>confdefs.h <<\_ACEOF | |
36266 | #define wxUSE_PROTOCOL 1 | |
36267 | _ACEOF | |
36268 | ||
36269 | ||
36270 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
36271 | cat >>confdefs.h <<\_ACEOF | |
36272 | #define wxUSE_PROTOCOL_HTTP 1 | |
36273 | _ACEOF | |
36274 | ||
36275 | fi | |
36276 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
36277 | cat >>confdefs.h <<\_ACEOF | |
36278 | #define wxUSE_PROTOCOL_FTP 1 | |
36279 | _ACEOF | |
36280 | ||
36281 | fi | |
36282 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
36283 | cat >>confdefs.h <<\_ACEOF | |
36284 | #define wxUSE_PROTOCOL_FILE 1 | |
36285 | _ACEOF | |
36286 | ||
36287 | fi | |
36288 | else | |
36289 | if test "$wxUSE_FS_INET" = "yes"; then | |
36290 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
36291 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
36292 | wxUSE_FS_INET="no" | |
36293 | fi | |
36294 | fi | |
36295 | ||
36296 | if test "$wxUSE_URL" = "yes"; then | |
36297 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
36298 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
36299 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
36300 | wxUSE_URL=no | |
36301 | fi | |
36302 | if test "$wxUSE_URL" = "yes"; then | |
36303 | cat >>confdefs.h <<\_ACEOF | |
36304 | #define wxUSE_URL 1 | |
36305 | _ACEOF | |
36306 | ||
36307 | fi | |
36308 | fi | |
36309 | ||
36310 | if test "$wxUSE_FS_INET" = "yes"; then | |
36311 | cat >>confdefs.h <<\_ACEOF | |
36312 | #define wxUSE_FS_INET 1 | |
36313 | _ACEOF | |
36314 | ||
36315 | fi | |
36316 | ||
36317 | ||
36318 | if test "$wxUSE_GUI" = "yes"; then | |
36319 | ||
36320 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
36321 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
36322 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
36323 | wxUSE_JOYSTICK=no | |
36324 | fi | |
36325 | ||
36326 | if test "$TOOLKIT" != "MSW"; then | |
36327 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36328 | ||
36329 | for ac_header in linux/joystick.h | |
36330 | do | |
36331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36333 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36335 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36337 | fi | |
36338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36339 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36340 | else | |
36341 | # Is the header compilable? | |
36342 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36343 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36344 | cat >conftest.$ac_ext <<_ACEOF | |
36345 | /* confdefs.h. */ | |
36346 | _ACEOF | |
36347 | cat confdefs.h >>conftest.$ac_ext | |
36348 | cat >>conftest.$ac_ext <<_ACEOF | |
36349 | /* end confdefs.h. */ | |
36350 | $ac_includes_default | |
36351 | #include <$ac_header> | |
36352 | _ACEOF | |
36353 | rm -f conftest.$ac_objext | |
36354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36355 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36356 | ac_status=$? |
ac1cb8d3 VS |
36357 | grep -v '^ *+' conftest.er1 >conftest.err |
36358 | rm -f conftest.er1 | |
36359 | cat conftest.err >&5 | |
a848cd7e SC |
36360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36361 | (exit $ac_status); } && | |
5294a27e | 36362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36364 | (eval $ac_try) 2>&5 | |
36365 | ac_status=$? | |
36366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36367 | (exit $ac_status); }; } && | |
36368 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36370 | (eval $ac_try) 2>&5 | |
36371 | ac_status=$? | |
36372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36373 | (exit $ac_status); }; }; then | |
36374 | ac_header_compiler=yes | |
36375 | else | |
36376 | echo "$as_me: failed program was:" >&5 | |
36377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36378 | ||
36379 | ac_header_compiler=no | |
36380 | fi | |
ac1cb8d3 | 36381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36382 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36383 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36384 | ||
36385 | # Is the header present? | |
36386 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36387 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36388 | cat >conftest.$ac_ext <<_ACEOF | |
36389 | /* confdefs.h. */ | |
36390 | _ACEOF | |
36391 | cat confdefs.h >>conftest.$ac_ext | |
36392 | cat >>conftest.$ac_ext <<_ACEOF | |
36393 | /* end confdefs.h. */ | |
36394 | #include <$ac_header> | |
36395 | _ACEOF | |
36396 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36398 | ac_status=$? | |
36399 | grep -v '^ *+' conftest.er1 >conftest.err | |
36400 | rm -f conftest.er1 | |
36401 | cat conftest.err >&5 | |
36402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36403 | (exit $ac_status); } >/dev/null; then | |
36404 | if test -s conftest.err; then | |
36405 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36406 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36407 | else |
36408 | ac_cpp_err= | |
36409 | fi | |
36410 | else | |
36411 | ac_cpp_err=yes | |
36412 | fi | |
36413 | if test -z "$ac_cpp_err"; then | |
36414 | ac_header_preproc=yes | |
36415 | else | |
36416 | echo "$as_me: failed program was:" >&5 | |
36417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36418 | ||
36419 | ac_header_preproc=no | |
36420 | fi | |
36421 | rm -f conftest.err conftest.$ac_ext | |
36422 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36423 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36424 | ||
36425 | # So? What about this header? | |
ac1cb8d3 VS |
36426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36427 | yes:no: ) | |
a848cd7e SC |
36428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36432 | ac_header_preproc=yes | |
a848cd7e | 36433 | ;; |
ac1cb8d3 | 36434 | no:yes:* ) |
a848cd7e SC |
36435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36446 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36447 | ( |
36448 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36449 | ## ----------------------------------------- ## |
36450 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36451 | ## ----------------------------------------- ## | |
a848cd7e SC |
36452 | _ASBOX |
36453 | ) | | |
36454 | sed "s/^/$as_me: WARNING: /" >&2 | |
36455 | ;; | |
36456 | esac | |
36457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36461 | else | |
ac1cb8d3 | 36462 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36463 | fi |
36464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36465 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36466 | ||
36467 | fi | |
36468 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36469 | cat >>confdefs.h <<_ACEOF | |
36470 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36471 | _ACEOF | |
36472 | ||
36473 | fi | |
36474 | ||
36475 | done | |
36476 | ||
36477 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
36478 | wxUSE_JOYSTICK=no | |
36479 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
36480 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
36481 | fi | |
36482 | fi | |
36483 | fi | |
36484 | ||
36485 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36486 | cat >>confdefs.h <<\_ACEOF | |
36487 | #define wxUSE_JOYSTICK 1 | |
36488 | _ACEOF | |
36489 | ||
36490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
36491 | fi | |
36492 | fi | |
36493 | ||
36494 | ||
36495 | ||
36496 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
36497 | cat >>confdefs.h <<\_ACEOF | |
36498 | #define wxUSE_FONTMAP 1 | |
36499 | _ACEOF | |
36500 | ||
36501 | fi | |
36502 | ||
36503 | if test "$wxUSE_UNICODE" = "yes" ; then | |
36504 | cat >>confdefs.h <<\_ACEOF | |
36505 | #define wxUSE_UNICODE 1 | |
36506 | _ACEOF | |
36507 | ||
36508 | ||
36509 | if test "$USE_WIN32" != 1; then | |
36510 | wxUSE_UNICODE_MSLU=no | |
36511 | fi | |
36512 | ||
36513 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
36514 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
36515 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
36516 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
36517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36518 | else | |
36519 | ac_check_lib_save_LIBS=$LIBS | |
36520 | LIBS="-lunicows $LIBS" | |
36521 | cat >conftest.$ac_ext <<_ACEOF | |
36522 | /* confdefs.h. */ | |
36523 | _ACEOF | |
36524 | cat confdefs.h >>conftest.$ac_ext | |
36525 | cat >>conftest.$ac_ext <<_ACEOF | |
36526 | /* end confdefs.h. */ | |
36527 | ||
36528 | ||
36529 | int | |
36530 | main () | |
36531 | { | |
36532 | main (); | |
36533 | ; | |
36534 | return 0; | |
36535 | } | |
36536 | _ACEOF | |
36537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36539 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36540 | ac_status=$? |
ac1cb8d3 VS |
36541 | grep -v '^ *+' conftest.er1 >conftest.err |
36542 | rm -f conftest.er1 | |
36543 | cat conftest.err >&5 | |
a848cd7e SC |
36544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36545 | (exit $ac_status); } && | |
5294a27e | 36546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36548 | (eval $ac_try) 2>&5 | |
36549 | ac_status=$? | |
36550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36551 | (exit $ac_status); }; } && | |
36552 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36554 | (eval $ac_try) 2>&5 | |
36555 | ac_status=$? | |
36556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36557 | (exit $ac_status); }; }; then | |
36558 | ac_cv_lib_unicows_main=yes | |
36559 | else | |
36560 | echo "$as_me: failed program was:" >&5 | |
36561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36562 | ||
36563 | ac_cv_lib_unicows_main=no | |
36564 | fi | |
ac1cb8d3 VS |
36565 | rm -f conftest.err conftest.$ac_objext \ |
36566 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36567 | LIBS=$ac_check_lib_save_LIBS |
36568 | fi | |
36569 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
36570 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
36571 | if test $ac_cv_lib_unicows_main = yes; then | |
36572 | ||
36573 | cat >>confdefs.h <<\_ACEOF | |
36574 | #define wxUSE_UNICODE_MSLU 1 | |
36575 | _ACEOF | |
36576 | ||
36577 | ||
36578 | else | |
36579 | ||
36580 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36581 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36582 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36583 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
36584 | wxUSE_UNICODE_MSLU=no | |
36585 | ||
36586 | fi | |
36587 | ||
36588 | fi | |
36589 | fi | |
36590 | ||
36591 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
36592 | cat >>confdefs.h <<\_ACEOF | |
36593 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
36594 | _ACEOF | |
36595 | ||
36596 | fi | |
36597 | ||
36598 | ||
36599 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
36600 | cat >>confdefs.h <<\_ACEOF | |
36601 | #define wxUSE_POSTSCRIPT 1 | |
36602 | _ACEOF | |
36603 | ||
36604 | fi | |
36605 | ||
36606 | cat >>confdefs.h <<\_ACEOF | |
36607 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
36608 | _ACEOF | |
36609 | ||
36610 | ||
36611 | cat >>confdefs.h <<\_ACEOF | |
36612 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
36613 | _ACEOF | |
36614 | ||
36615 | ||
36616 | ||
36617 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
36618 | cat >>confdefs.h <<\_ACEOF | |
36619 | #define wxUSE_CONSTRAINTS 1 | |
36620 | _ACEOF | |
36621 | ||
36622 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36623 | fi | |
36624 | ||
8a7b1113 VZ |
36625 | if test "$wxUSE_MDI" = "yes"; then |
36626 | cat >>confdefs.h <<\_ACEOF | |
36627 | #define wxUSE_MDI 1 | |
36628 | _ACEOF | |
36629 | ||
36630 | ||
36631 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36632 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36633 | #define wxUSE_MDI_ARCHITECTURE 1 |
36634 | _ACEOF | |
36635 | ||
8a7b1113 VZ |
36636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36637 | fi | |
a848cd7e SC |
36638 | fi |
36639 | ||
36640 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36641 | cat >>confdefs.h <<\_ACEOF | |
36642 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36643 | _ACEOF | |
36644 | ||
36645 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36646 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36648 | fi | |
36649 | fi | |
36650 | ||
36651 | if test "$wxUSE_HELP" = "yes"; then | |
36652 | cat >>confdefs.h <<\_ACEOF | |
36653 | #define wxUSE_HELP 1 | |
36654 | _ACEOF | |
36655 | ||
36656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36657 | ||
36658 | if test "$wxUSE_MSW" = 1; then | |
36659 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36660 | cat >>confdefs.h <<\_ACEOF | |
36661 | #define wxUSE_MS_HTML_HELP 1 | |
36662 | _ACEOF | |
36663 | ||
36664 | fi | |
36665 | fi | |
36666 | ||
36667 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36668 | if test "$wxUSE_HTML" = "yes"; then | |
36669 | cat >>confdefs.h <<\_ACEOF | |
36670 | #define wxUSE_WXHTML_HELP 1 | |
36671 | _ACEOF | |
36672 | ||
36673 | else | |
36674 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36675 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36676 | wxUSE_WXHTML_HELP=no | |
36677 | fi | |
36678 | fi | |
36679 | fi | |
36680 | ||
36681 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36682 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36683 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36684 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36685 | else | |
36686 | cat >>confdefs.h <<\_ACEOF | |
36687 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36688 | _ACEOF | |
36689 | ||
36690 | fi | |
36691 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36692 | fi | |
36693 | ||
36694 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36695 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36696 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36697 | { (exit 1); exit 1; }; } | |
36698 | fi | |
36699 | ||
36700 | ||
36701 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36702 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36703 | -o "$wxUSE_OLE" = "yes" \ | |
36704 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36705 | ||
36706 | for ac_header in ole2.h | |
36707 | do | |
36708 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36710 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36714 | fi | |
36715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36716 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36717 | else | |
36718 | # Is the header compilable? | |
36719 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36720 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36721 | cat >conftest.$ac_ext <<_ACEOF | |
36722 | /* confdefs.h. */ | |
36723 | _ACEOF | |
36724 | cat confdefs.h >>conftest.$ac_ext | |
36725 | cat >>conftest.$ac_ext <<_ACEOF | |
36726 | /* end confdefs.h. */ | |
36727 | $ac_includes_default | |
36728 | #include <$ac_header> | |
36729 | _ACEOF | |
36730 | rm -f conftest.$ac_objext | |
36731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36733 | ac_status=$? |
ac1cb8d3 VS |
36734 | grep -v '^ *+' conftest.er1 >conftest.err |
36735 | rm -f conftest.er1 | |
36736 | cat conftest.err >&5 | |
a848cd7e SC |
36737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36738 | (exit $ac_status); } && | |
5294a27e | 36739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36741 | (eval $ac_try) 2>&5 | |
36742 | ac_status=$? | |
36743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36744 | (exit $ac_status); }; } && | |
36745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36747 | (eval $ac_try) 2>&5 | |
36748 | ac_status=$? | |
36749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36750 | (exit $ac_status); }; }; then | |
36751 | ac_header_compiler=yes | |
36752 | else | |
36753 | echo "$as_me: failed program was:" >&5 | |
36754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36755 | ||
36756 | ac_header_compiler=no | |
36757 | fi | |
ac1cb8d3 | 36758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36759 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36760 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36761 | ||
36762 | # Is the header present? | |
36763 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36764 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36765 | cat >conftest.$ac_ext <<_ACEOF | |
36766 | /* confdefs.h. */ | |
36767 | _ACEOF | |
36768 | cat confdefs.h >>conftest.$ac_ext | |
36769 | cat >>conftest.$ac_ext <<_ACEOF | |
36770 | /* end confdefs.h. */ | |
36771 | #include <$ac_header> | |
36772 | _ACEOF | |
36773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36775 | ac_status=$? | |
36776 | grep -v '^ *+' conftest.er1 >conftest.err | |
36777 | rm -f conftest.er1 | |
36778 | cat conftest.err >&5 | |
36779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36780 | (exit $ac_status); } >/dev/null; then | |
36781 | if test -s conftest.err; then | |
36782 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36784 | else |
36785 | ac_cpp_err= | |
36786 | fi | |
36787 | else | |
36788 | ac_cpp_err=yes | |
36789 | fi | |
36790 | if test -z "$ac_cpp_err"; then | |
36791 | ac_header_preproc=yes | |
36792 | else | |
36793 | echo "$as_me: failed program was:" >&5 | |
36794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36795 | ||
36796 | ac_header_preproc=no | |
36797 | fi | |
36798 | rm -f conftest.err conftest.$ac_ext | |
36799 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36800 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36801 | ||
36802 | # So? What about this header? | |
ac1cb8d3 VS |
36803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36804 | yes:no: ) | |
a848cd7e SC |
36805 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36806 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36808 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36809 | ac_header_preproc=yes | |
a848cd7e | 36810 | ;; |
ac1cb8d3 | 36811 | no:yes:* ) |
a848cd7e SC |
36812 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36813 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36814 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36815 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36816 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36817 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36818 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36819 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36820 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36821 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36822 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36823 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36824 | ( |
36825 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36826 | ## ----------------------------------------- ## |
36827 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36828 | ## ----------------------------------------- ## | |
a848cd7e SC |
36829 | _ASBOX |
36830 | ) | | |
36831 | sed "s/^/$as_me: WARNING: /" >&2 | |
36832 | ;; | |
36833 | esac | |
36834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36838 | else | |
ac1cb8d3 | 36839 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36840 | fi |
36841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36843 | ||
36844 | fi | |
36845 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36846 | cat >>confdefs.h <<_ACEOF | |
36847 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36848 | _ACEOF | |
36849 | ||
36850 | fi | |
36851 | ||
36852 | done | |
36853 | ||
36854 | ||
36855 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36856 | if test "$GCC" = yes ; then | |
36857 | ||
36858 | ||
36859 | ac_ext=cc | |
36860 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36861 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36862 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36863 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36864 | ||
36865 | ||
36866 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36867 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36868 | cat >conftest.$ac_ext <<_ACEOF | |
36869 | /* confdefs.h. */ | |
36870 | _ACEOF | |
36871 | cat confdefs.h >>conftest.$ac_ext | |
36872 | cat >>conftest.$ac_ext <<_ACEOF | |
36873 | /* end confdefs.h. */ | |
36874 | #include <windows.h> | |
36875 | #include <ole2.h> | |
36876 | int | |
36877 | main () | |
36878 | { | |
36879 | ||
36880 | ; | |
36881 | return 0; | |
36882 | } | |
36883 | _ACEOF | |
36884 | rm -f conftest.$ac_objext | |
36885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36886 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36887 | ac_status=$? |
ac1cb8d3 VS |
36888 | grep -v '^ *+' conftest.er1 >conftest.err |
36889 | rm -f conftest.er1 | |
36890 | cat conftest.err >&5 | |
a848cd7e SC |
36891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36892 | (exit $ac_status); } && | |
5294a27e | 36893 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36895 | (eval $ac_try) 2>&5 | |
36896 | ac_status=$? | |
36897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36898 | (exit $ac_status); }; } && | |
36899 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36901 | (eval $ac_try) 2>&5 | |
36902 | ac_status=$? | |
36903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36904 | (exit $ac_status); }; }; then | |
36905 | echo "$as_me:$LINENO: result: no" >&5 | |
36906 | echo "${ECHO_T}no" >&6 | |
36907 | else | |
36908 | echo "$as_me: failed program was:" >&5 | |
36909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36910 | ||
36911 | echo "$as_me:$LINENO: result: yes" >&5 | |
36912 | echo "${ECHO_T}yes" >&6 | |
36913 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36914 | fi | |
ac1cb8d3 | 36915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36916 | ac_ext=c |
36917 | ac_cpp='$CPP $CPPFLAGS' | |
36918 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36919 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36920 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36921 | ||
a848cd7e SC |
36922 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
36923 | if test "$wxUSE_OLE" = "yes" ; then | |
36924 | cat >>confdefs.h <<\_ACEOF | |
36925 | #define wxUSE_OLE 1 | |
36926 | _ACEOF | |
36927 | ||
36928 | fi | |
36929 | fi | |
36930 | ||
36931 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36932 | cat >>confdefs.h <<\_ACEOF | |
36933 | #define wxUSE_DATAOBJ 1 | |
36934 | _ACEOF | |
36935 | ||
36936 | fi | |
36937 | else | |
36938 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36939 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36940 | ||
36941 | wxUSE_CLIPBOARD=no | |
36942 | wxUSE_DRAG_AND_DROP=no | |
36943 | wxUSE_DATAOBJ=no | |
36944 | wxUSE_OLE=no | |
36945 | fi | |
36946 | ||
36947 | if test "$wxUSE_METAFILE" = "yes"; then | |
36948 | cat >>confdefs.h <<\_ACEOF | |
36949 | #define wxUSE_METAFILE 1 | |
36950 | _ACEOF | |
36951 | ||
36952 | ||
36953 | cat >>confdefs.h <<\_ACEOF | |
36954 | #define wxUSE_ENH_METAFILE 1 | |
36955 | _ACEOF | |
36956 | ||
36957 | fi | |
36958 | fi | |
36959 | ||
36960 | if test "$wxUSE_IPC" = "yes"; then | |
36961 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36962 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36963 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36964 | fi |
36965 | ||
36966 | cat >>confdefs.h <<\_ACEOF | |
36967 | #define wxUSE_IPC 1 | |
36968 | _ACEOF | |
36969 | ||
36970 | fi | |
36971 | ||
36972 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36973 | if test "$wxUSE_MGL" = 1; then | |
36974 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36975 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36976 | wxUSE_CLIPBOARD=no | |
36977 | fi | |
36978 | ||
36979 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36980 | cat >>confdefs.h <<\_ACEOF | |
36981 | #define wxUSE_CLIPBOARD 1 | |
36982 | _ACEOF | |
36983 | ||
36984 | ||
36985 | cat >>confdefs.h <<\_ACEOF | |
36986 | #define wxUSE_DATAOBJ 1 | |
36987 | _ACEOF | |
36988 | ||
36989 | fi | |
36990 | fi | |
36991 | ||
36992 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36993 | if test "$wxUSE_GTK" = 1; then | |
36994 | if test "$WXGTK12" != 1; then | |
36995 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36996 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36997 | wxUSE_DRAG_AND_DROP=no | |
36998 | fi | |
36999 | fi | |
37000 | ||
37001 | if test "$wxUSE_MOTIF" = 1; then | |
37002 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
37003 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
37004 | wxUSE_DRAG_AND_DROP=no | |
37005 | fi | |
37006 | ||
37007 | if test "$wxUSE_X11" = 1; then | |
37008 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
37009 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
37010 | wxUSE_DRAG_AND_DROP=no | |
37011 | fi | |
37012 | ||
37013 | if test "$wxUSE_MGL" = 1; then | |
37014 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
37015 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
37016 | wxUSE_DRAG_AND_DROP=no | |
37017 | fi | |
37018 | ||
37019 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
37020 | cat >>confdefs.h <<\_ACEOF | |
37021 | #define wxUSE_DRAG_AND_DROP 1 | |
37022 | _ACEOF | |
37023 | ||
37024 | fi | |
37025 | ||
37026 | fi | |
37027 | ||
37028 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
37029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
37030 | fi | |
37031 | ||
37032 | if test "$wxUSE_SPLINES" = "yes" ; then | |
37033 | cat >>confdefs.h <<\_ACEOF | |
37034 | #define wxUSE_SPLINES 1 | |
37035 | _ACEOF | |
37036 | ||
37037 | fi | |
37038 | ||
37039 | ||
37040 | USES_CONTROLS=0 | |
37041 | if test "$wxUSE_CONTROLS" = "yes"; then | |
37042 | USES_CONTROLS=1 | |
37043 | fi | |
37044 | ||
37045 | if test "$wxUSE_ACCEL" = "yes"; then | |
37046 | cat >>confdefs.h <<\_ACEOF | |
37047 | #define wxUSE_ACCEL 1 | |
37048 | _ACEOF | |
37049 | ||
37050 | USES_CONTROLS=1 | |
37051 | fi | |
37052 | ||
37053 | if test "$wxUSE_BUTTON" = "yes"; then | |
37054 | cat >>confdefs.h <<\_ACEOF | |
37055 | #define wxUSE_BUTTON 1 | |
37056 | _ACEOF | |
37057 | ||
37058 | USES_CONTROLS=1 | |
37059 | fi | |
37060 | ||
37061 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
37062 | cat >>confdefs.h <<\_ACEOF | |
37063 | #define wxUSE_BMPBUTTON 1 | |
37064 | _ACEOF | |
37065 | ||
37066 | USES_CONTROLS=1 | |
37067 | fi | |
37068 | ||
37069 | if test "$wxUSE_CALCTRL" = "yes"; then | |
37070 | cat >>confdefs.h <<\_ACEOF | |
37071 | #define wxUSE_CALENDARCTRL 1 | |
37072 | _ACEOF | |
37073 | ||
37074 | USES_CONTROLS=1 | |
37075 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
37076 | fi | |
37077 | ||
37078 | if test "$wxUSE_CARET" = "yes"; then | |
37079 | cat >>confdefs.h <<\_ACEOF | |
37080 | #define wxUSE_CARET 1 | |
37081 | _ACEOF | |
37082 | ||
37083 | USES_CONTROLS=1 | |
37084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
37085 | fi | |
37086 | ||
37087 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
37088 | cat >>confdefs.h <<\_ACEOF | |
37089 | #define wxUSE_COMBOBOX 1 | |
37090 | _ACEOF | |
37091 | ||
37092 | USES_CONTROLS=1 | |
37093 | fi | |
37094 | ||
37095 | if test "$wxUSE_CHOICE" = "yes"; then | |
37096 | cat >>confdefs.h <<\_ACEOF | |
37097 | #define wxUSE_CHOICE 1 | |
37098 | _ACEOF | |
37099 | ||
37100 | USES_CONTROLS=1 | |
37101 | fi | |
37102 | ||
92bbdbcd WS |
37103 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
37104 | cat >>confdefs.h <<\_ACEOF | |
37105 | #define wxUSE_CHOICEBOOK 1 | |
37106 | _ACEOF | |
37107 | ||
37108 | USES_CONTROLS=1 | |
37109 | fi | |
37110 | ||
a848cd7e SC |
37111 | if test "$wxUSE_CHECKBOX" = "yes"; then |
37112 | cat >>confdefs.h <<\_ACEOF | |
37113 | #define wxUSE_CHECKBOX 1 | |
37114 | _ACEOF | |
37115 | ||
37116 | USES_CONTROLS=1 | |
37117 | fi | |
37118 | ||
37119 | if test "$wxUSE_CHECKLST" = "yes"; then | |
37120 | cat >>confdefs.h <<\_ACEOF | |
37121 | #define wxUSE_CHECKLISTBOX 1 | |
37122 | _ACEOF | |
37123 | ||
37124 | USES_CONTROLS=1 | |
37125 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
37126 | fi | |
37127 | ||
37128 | if test "$wxUSE_DISPLAY" = "yes"; then | |
37129 | cat >>confdefs.h <<\_ACEOF | |
37130 | #define wxUSE_DISPLAY 1 | |
37131 | _ACEOF | |
37132 | ||
37133 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
37134 | fi | |
37135 | ||
37136 | if test "$wxUSE_GAUGE" = "yes"; then | |
37137 | cat >>confdefs.h <<\_ACEOF | |
37138 | #define wxUSE_GAUGE 1 | |
37139 | _ACEOF | |
37140 | ||
37141 | USES_CONTROLS=1 | |
37142 | fi | |
37143 | ||
37144 | if test "$wxUSE_GRID" = "yes"; then | |
37145 | cat >>confdefs.h <<\_ACEOF | |
37146 | #define wxUSE_GRID 1 | |
37147 | _ACEOF | |
37148 | ||
37149 | USES_CONTROLS=1 | |
37150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
37151 | fi | |
37152 | ||
37153 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37154 | cat >>confdefs.h <<\_ACEOF | |
37155 | #define wxUSE_IMAGLIST 1 | |
37156 | _ACEOF | |
37157 | ||
37158 | fi | |
37159 | ||
37160 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
37161 | cat >>confdefs.h <<\_ACEOF | |
37162 | #define wxUSE_LISTBOOK 1 | |
37163 | _ACEOF | |
37164 | ||
37165 | USES_CONTROLS=1 | |
37166 | fi | |
37167 | ||
37168 | if test "$wxUSE_LISTBOX" = "yes"; then | |
37169 | cat >>confdefs.h <<\_ACEOF | |
37170 | #define wxUSE_LISTBOX 1 | |
37171 | _ACEOF | |
37172 | ||
37173 | USES_CONTROLS=1 | |
37174 | fi | |
37175 | ||
37176 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
37177 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37178 | cat >>confdefs.h <<\_ACEOF | |
37179 | #define wxUSE_LISTCTRL 1 | |
37180 | _ACEOF | |
37181 | ||
37182 | USES_CONTROLS=1 | |
37183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
37184 | else | |
37185 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
37186 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37187 | fi | |
37188 | fi | |
37189 | ||
37190 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
37191 | cat >>confdefs.h <<\_ACEOF | |
37192 | #define wxUSE_NOTEBOOK 1 | |
37193 | _ACEOF | |
37194 | ||
37195 | USES_CONTROLS=1 | |
37196 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
37197 | fi | |
37198 | ||
37199 | ||
37200 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
37201 | cat >>confdefs.h <<\_ACEOF | |
37202 | #define wxUSE_RADIOBOX 1 | |
37203 | _ACEOF | |
37204 | ||
37205 | USES_CONTROLS=1 | |
37206 | fi | |
37207 | ||
37208 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
37209 | cat >>confdefs.h <<\_ACEOF | |
37210 | #define wxUSE_RADIOBTN 1 | |
37211 | _ACEOF | |
37212 | ||
37213 | USES_CONTROLS=1 | |
37214 | fi | |
37215 | ||
37216 | if test "$wxUSE_SASH" = "yes"; then | |
37217 | cat >>confdefs.h <<\_ACEOF | |
37218 | #define wxUSE_SASH 1 | |
37219 | _ACEOF | |
37220 | ||
37221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
37222 | fi | |
37223 | ||
37224 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
37225 | cat >>confdefs.h <<\_ACEOF | |
37226 | #define wxUSE_SCROLLBAR 1 | |
37227 | _ACEOF | |
37228 | ||
37229 | USES_CONTROLS=1 | |
37230 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
37231 | fi | |
37232 | ||
37233 | if test "$wxUSE_SLIDER" = "yes"; then | |
37234 | cat >>confdefs.h <<\_ACEOF | |
37235 | #define wxUSE_SLIDER 1 | |
37236 | _ACEOF | |
37237 | ||
37238 | USES_CONTROLS=1 | |
37239 | fi | |
37240 | ||
37241 | if test "$wxUSE_SPINBTN" = "yes"; then | |
37242 | cat >>confdefs.h <<\_ACEOF | |
37243 | #define wxUSE_SPINBTN 1 | |
37244 | _ACEOF | |
37245 | ||
37246 | USES_CONTROLS=1 | |
37247 | fi | |
37248 | ||
37249 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
37250 | cat >>confdefs.h <<\_ACEOF | |
37251 | #define wxUSE_SPINCTRL 1 | |
37252 | _ACEOF | |
37253 | ||
37254 | USES_CONTROLS=1 | |
37255 | fi | |
37256 | ||
37257 | if test "$wxUSE_SPLITTER" = "yes"; then | |
37258 | cat >>confdefs.h <<\_ACEOF | |
37259 | #define wxUSE_SPLITTER 1 | |
37260 | _ACEOF | |
37261 | ||
37262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
37263 | fi | |
37264 | ||
37265 | if test "$wxUSE_STATBMP" = "yes"; then | |
37266 | cat >>confdefs.h <<\_ACEOF | |
37267 | #define wxUSE_STATBMP 1 | |
37268 | _ACEOF | |
37269 | ||
37270 | USES_CONTROLS=1 | |
37271 | fi | |
37272 | ||
37273 | if test "$wxUSE_STATBOX" = "yes"; then | |
37274 | cat >>confdefs.h <<\_ACEOF | |
37275 | #define wxUSE_STATBOX 1 | |
37276 | _ACEOF | |
37277 | ||
37278 | USES_CONTROLS=1 | |
37279 | fi | |
37280 | ||
37281 | if test "$wxUSE_STATTEXT" = "yes"; then | |
37282 | cat >>confdefs.h <<\_ACEOF | |
37283 | #define wxUSE_STATTEXT 1 | |
37284 | _ACEOF | |
37285 | ||
37286 | USES_CONTROLS=1 | |
37287 | fi | |
37288 | ||
37289 | if test "$wxUSE_STATLINE" = "yes"; then | |
37290 | cat >>confdefs.h <<\_ACEOF | |
37291 | #define wxUSE_STATLINE 1 | |
37292 | _ACEOF | |
37293 | ||
37294 | USES_CONTROLS=1 | |
37295 | fi | |
37296 | ||
37297 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
37298 | cat >>confdefs.h <<\_ACEOF | |
37299 | #define wxUSE_STATUSBAR 1 | |
37300 | _ACEOF | |
37301 | ||
37302 | USES_CONTROLS=1 | |
37303 | ||
37304 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
37305 | fi | |
37306 | ||
37307 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
37308 | cat >>confdefs.h <<\_ACEOF | |
37309 | #define wxUSE_TAB_DIALOG 1 | |
37310 | _ACEOF | |
37311 | ||
37312 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
37313 | fi | |
37314 | ||
37315 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
37316 | cat >>confdefs.h <<\_ACEOF | |
37317 | #define wxUSE_TEXTCTRL 1 | |
37318 | _ACEOF | |
37319 | ||
37320 | USES_CONTROLS=1 | |
37321 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
37322 | fi | |
37323 | ||
37324 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37325 | if test "$wxUSE_COCOA" = 1 ; then | |
37326 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
37327 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
37328 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
37329 | else |
37330 | if test "$wxUSE_PM" = 1; then | |
37331 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
37332 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
37333 | wxUSE_TOGGLEBTN=no | |
37334 | fi | |
a848cd7e SC |
37335 | fi |
37336 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37337 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
37338 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
37339 | wxUSE_TOGGLEBTN=no | |
37340 | fi | |
37341 | ||
37342 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37343 | cat >>confdefs.h <<\_ACEOF | |
37344 | #define wxUSE_TOGGLEBTN 1 | |
37345 | _ACEOF | |
37346 | ||
37347 | USES_CONTROLS=1 | |
37348 | fi | |
37349 | fi | |
37350 | ||
37351 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
37352 | cat >>confdefs.h <<\_ACEOF | |
37353 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
37354 | _ACEOF | |
37355 | ||
37356 | wxUSE_TOOLBAR="yes" | |
37357 | USES_CONTROLS=1 | |
37358 | fi | |
37359 | ||
37360 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
37361 | cat >>confdefs.h <<\_ACEOF | |
37362 | #define wxUSE_TOOLBAR 1 | |
37363 | _ACEOF | |
37364 | ||
37365 | USES_CONTROLS=1 | |
37366 | ||
37367 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
37368 | wxUSE_TOOLBAR_NATIVE="yes" | |
37369 | fi | |
37370 | ||
37371 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
37372 | cat >>confdefs.h <<\_ACEOF | |
37373 | #define wxUSE_TOOLBAR_NATIVE 1 | |
37374 | _ACEOF | |
37375 | ||
37376 | USES_CONTROLS=1 | |
37377 | fi | |
37378 | ||
37379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
37380 | fi | |
37381 | ||
37382 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
37383 | if test "$wxUSE_MOTIF" = 1; then | |
37384 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
37385 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
37386 | else | |
37387 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37388 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
37389 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
37390 | else | |
37391 | cat >>confdefs.h <<\_ACEOF | |
37392 | #define wxUSE_TOOLTIPS 1 | |
37393 | _ACEOF | |
37394 | ||
37395 | fi | |
37396 | fi | |
37397 | fi | |
37398 | ||
37399 | if test "$wxUSE_TREECTRL" = "yes"; then | |
37400 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37401 | cat >>confdefs.h <<\_ACEOF | |
37402 | #define wxUSE_TREECTRL 1 | |
37403 | _ACEOF | |
37404 | ||
37405 | USES_CONTROLS=1 | |
37406 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
37407 | else | |
37408 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
37409 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37410 | fi | |
37411 | fi | |
37412 | ||
37413 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
37414 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
37415 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
37416 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
37417 | else | |
37418 | if test "$wxUSE_PM" = 1; then | |
37419 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
37420 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
37421 | else | |
37422 | cat >>confdefs.h <<\_ACEOF | |
37423 | #define wxUSE_POPUPWIN 1 | |
37424 | _ACEOF | |
37425 | ||
37426 | ||
37427 | USES_CONTROLS=1 | |
37428 | fi | |
37429 | fi | |
37430 | fi | |
37431 | ||
37432 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
37433 | if test "$wxUSE_PM" = 1; then | |
37434 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
37435 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
37436 | else | |
37437 | cat >>confdefs.h <<\_ACEOF | |
37438 | #define wxUSE_TIPWINDOW 1 | |
37439 | _ACEOF | |
37440 | ||
37441 | fi | |
37442 | fi | |
37443 | ||
37444 | if test "$USES_CONTROLS" = 1; then | |
37445 | cat >>confdefs.h <<\_ACEOF | |
37446 | #define wxUSE_CONTROLS 1 | |
37447 | _ACEOF | |
37448 | ||
37449 | fi | |
37450 | ||
37451 | ||
37452 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
37453 | cat >>confdefs.h <<\_ACEOF | |
37454 | #define wxUSE_ACCESSIBILITY 1 | |
37455 | _ACEOF | |
37456 | ||
37457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
37458 | fi | |
37459 | ||
37460 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
37461 | cat >>confdefs.h <<\_ACEOF | |
37462 | #define wxUSE_DRAGIMAGE 1 | |
37463 | _ACEOF | |
37464 | ||
37465 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
37466 | fi | |
37467 | ||
37468 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
37469 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
37470 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
37471 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
37472 | else | |
37473 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37474 | #define wxUSE_EXCEPTIONS 1 |
37475 | _ACEOF | |
37476 | ||
07bea8f0 VS |
37477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
37478 | fi | |
a848cd7e SC |
37479 | fi |
37480 | ||
37481 | USE_HTML=0 | |
37482 | if test "$wxUSE_HTML" = "yes"; then | |
37483 | cat >>confdefs.h <<\_ACEOF | |
37484 | #define wxUSE_HTML 1 | |
37485 | _ACEOF | |
37486 | ||
37487 | USE_HTML=1 | |
37488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
37489 | if test "$wxUSE_MAC" = 1; then |
37490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
37491 | fi | |
a848cd7e | 37492 | fi |
646b6ec1 | 37493 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 37494 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
37495 | old_CPPFLAGS="$CPPFLAGS" |
37496 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
37497 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
37498 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
37499 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
37500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37501 | else | |
37502 | cat >conftest.$ac_ext <<_ACEOF | |
37503 | /* confdefs.h. */ | |
37504 | _ACEOF | |
37505 | cat confdefs.h >>conftest.$ac_ext | |
37506 | cat >>conftest.$ac_ext <<_ACEOF | |
37507 | /* end confdefs.h. */ | |
37508 | #include <Carbon/Carbon.h> | |
37509 | ||
37510 | #include <WebKit/HIWebView.h> | |
37511 | _ACEOF | |
37512 | rm -f conftest.$ac_objext | |
37513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37514 | (eval $ac_compile) 2>conftest.er1 | |
37515 | ac_status=$? | |
37516 | grep -v '^ *+' conftest.er1 >conftest.err | |
37517 | rm -f conftest.er1 | |
37518 | cat conftest.err >&5 | |
37519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37520 | (exit $ac_status); } && | |
5294a27e | 37521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
37522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37523 | (eval $ac_try) 2>&5 | |
37524 | ac_status=$? | |
37525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37526 | (exit $ac_status); }; } && | |
37527 | { ac_try='test -s conftest.$ac_objext' | |
37528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37529 | (eval $ac_try) 2>&5 | |
37530 | ac_status=$? | |
37531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37532 | (exit $ac_status); }; }; then | |
37533 | ac_cv_header_WebKit_HIWebView_h=yes | |
37534 | else | |
37535 | echo "$as_me: failed program was:" >&5 | |
37536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37537 | ||
37538 | ac_cv_header_WebKit_HIWebView_h=no | |
37539 | fi | |
37540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37541 | fi | |
37542 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
37543 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
37544 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
37545 | ||
37546 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
37547 | #define wxUSE_WEBKIT 1 |
37548 | _ACEOF | |
37549 | ||
07bea8f0 VS |
37550 | WEBKIT_LINK="-framework WebKit" |
37551 | ||
37552 | else | |
37553 | ||
37554 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
37555 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
37556 | wxUSE_WEBKIT=no | |
37557 | ||
646b6ec1 VS |
37558 | fi |
37559 | ||
07bea8f0 VS |
37560 | |
37561 | CPPFLAGS="$old_CPPFLAGS" | |
37562 | elif test "$wxUSE_COCOA" = 1; then | |
37563 | cat >>confdefs.h <<\_ACEOF | |
37564 | #define wxUSE_WEBKIT 1 | |
37565 | _ACEOF | |
37566 | ||
37567 | else | |
37568 | wxUSE_WEBKIT=no | |
37569 | fi | |
37570 | fi | |
37571 | ||
9a8f0513 VS |
37572 | USE_XRC=0 |
37573 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
37574 | if test "$wxUSE_XML" != "yes"; then |
37575 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
37576 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
37577 | wxUSE_XRC=no | |
37578 | else | |
37579 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
37580 | #define wxUSE_XRC 1 |
37581 | _ACEOF | |
37582 | ||
d2ebf0b7 VS |
37583 | USE_XRC=1 |
37584 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
37585 | fi | |
9a8f0513 | 37586 | fi |
07bea8f0 | 37587 | |
a848cd7e SC |
37588 | if test "$wxUSE_MENUS" = "yes"; then |
37589 | cat >>confdefs.h <<\_ACEOF | |
37590 | #define wxUSE_MENUS 1 | |
37591 | _ACEOF | |
37592 | ||
37593 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
37594 | fi | |
37595 | ||
37596 | if test "$wxUSE_METAFILE" = "yes"; then | |
37597 | cat >>confdefs.h <<\_ACEOF | |
37598 | #define wxUSE_METAFILE 1 | |
37599 | _ACEOF | |
37600 | ||
37601 | fi | |
37602 | ||
37603 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
37604 | cat >>confdefs.h <<\_ACEOF | |
37605 | #define wxUSE_MIMETYPE 1 | |
37606 | _ACEOF | |
37607 | ||
37608 | fi | |
37609 | ||
37610 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
37611 | cat >>confdefs.h <<\_ACEOF | |
37612 | #define wxUSE_MINIFRAME 1 | |
37613 | _ACEOF | |
37614 | ||
37615 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37616 | fi | |
37617 | ||
37618 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
37619 | cat >>confdefs.h <<\_ACEOF | |
37620 | #define wxUSE_SYSTEM_OPTIONS 1 | |
37621 | _ACEOF | |
37622 | ||
37623 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 37624 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
37625 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
37626 | fi | |
37627 | fi | |
37628 | ||
37629 | ||
37630 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
37631 | cat >>confdefs.h <<\_ACEOF | |
37632 | #define wxUSE_VALIDATORS 1 | |
37633 | _ACEOF | |
37634 | ||
37635 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
37636 | fi | |
37637 | ||
37638 | if test "$wxUSE_PALETTE" = "yes" ; then | |
37639 | cat >>confdefs.h <<\_ACEOF | |
37640 | #define wxUSE_PALETTE 1 | |
37641 | _ACEOF | |
37642 | ||
37643 | fi | |
37644 | ||
37645 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
37646 | LIBS=" -lunicows $LIBS" | |
37647 | fi | |
37648 | ||
37649 | ||
37650 | if test "$wxUSE_IMAGE" = "yes" ; then | |
37651 | cat >>confdefs.h <<\_ACEOF | |
37652 | #define wxUSE_IMAGE 1 | |
37653 | _ACEOF | |
37654 | ||
37655 | ||
37656 | if test "$wxUSE_GIF" = "yes" ; then | |
37657 | cat >>confdefs.h <<\_ACEOF | |
37658 | #define wxUSE_GIF 1 | |
37659 | _ACEOF | |
37660 | ||
37661 | fi | |
37662 | ||
37663 | if test "$wxUSE_PCX" = "yes" ; then | |
37664 | cat >>confdefs.h <<\_ACEOF | |
37665 | #define wxUSE_PCX 1 | |
37666 | _ACEOF | |
37667 | ||
37668 | fi | |
37669 | ||
37670 | if test "$wxUSE_IFF" = "yes" ; then | |
37671 | cat >>confdefs.h <<\_ACEOF | |
37672 | #define wxUSE_IFF 1 | |
37673 | _ACEOF | |
37674 | ||
37675 | fi | |
37676 | ||
37677 | if test "$wxUSE_PNM" = "yes" ; then | |
37678 | cat >>confdefs.h <<\_ACEOF | |
37679 | #define wxUSE_PNM 1 | |
37680 | _ACEOF | |
37681 | ||
37682 | fi | |
37683 | ||
37684 | if test "$wxUSE_XPM" = "yes" ; then | |
37685 | cat >>confdefs.h <<\_ACEOF | |
37686 | #define wxUSE_XPM 1 | |
37687 | _ACEOF | |
37688 | ||
37689 | fi | |
37690 | ||
37691 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37692 | cat >>confdefs.h <<\_ACEOF | |
37693 | #define wxUSE_ICO_CUR 1 | |
37694 | _ACEOF | |
37695 | ||
37696 | fi | |
37697 | fi | |
37698 | ||
37699 | ||
37700 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37701 | cat >>confdefs.h <<\_ACEOF | |
37702 | #define wxUSE_CHOICEDLG 1 | |
37703 | _ACEOF | |
37704 | ||
37705 | fi | |
37706 | ||
37707 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37708 | cat >>confdefs.h <<\_ACEOF | |
37709 | #define wxUSE_COLOURDLG 1 | |
37710 | _ACEOF | |
37711 | ||
37712 | fi | |
37713 | ||
37714 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37715 | cat >>confdefs.h <<\_ACEOF | |
37716 | #define wxUSE_FILEDLG 1 | |
37717 | _ACEOF | |
37718 | ||
37719 | fi | |
37720 | ||
37721 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37722 | cat >>confdefs.h <<\_ACEOF | |
37723 | #define wxUSE_FINDREPLDLG 1 | |
37724 | _ACEOF | |
37725 | ||
37726 | fi | |
37727 | ||
37728 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37729 | cat >>confdefs.h <<\_ACEOF | |
37730 | #define wxUSE_FONTDLG 1 | |
37731 | _ACEOF | |
37732 | ||
37733 | fi | |
37734 | ||
37735 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37736 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37737 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37738 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37739 | else | |
37740 | cat >>confdefs.h <<\_ACEOF | |
37741 | #define wxUSE_DIRDLG 1 | |
37742 | _ACEOF | |
37743 | ||
37744 | fi | |
37745 | fi | |
37746 | ||
37747 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37748 | cat >>confdefs.h <<\_ACEOF | |
37749 | #define wxUSE_MSGDLG 1 | |
37750 | _ACEOF | |
37751 | ||
37752 | fi | |
37753 | ||
37754 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37755 | cat >>confdefs.h <<\_ACEOF | |
37756 | #define wxUSE_NUMBERDLG 1 | |
37757 | _ACEOF | |
37758 | ||
37759 | fi | |
37760 | ||
37761 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37762 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37763 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37764 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37765 | else | |
37766 | cat >>confdefs.h <<\_ACEOF | |
37767 | #define wxUSE_PROGRESSDLG 1 | |
37768 | _ACEOF | |
37769 | ||
37770 | fi | |
37771 | fi | |
37772 | ||
37773 | if test "$wxUSE_SPLASH" = "yes"; then | |
37774 | cat >>confdefs.h <<\_ACEOF | |
37775 | #define wxUSE_SPLASH 1 | |
37776 | _ACEOF | |
37777 | ||
2057db16 | 37778 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37779 | fi |
37780 | ||
37781 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37782 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37783 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37784 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37785 | else | |
37786 | cat >>confdefs.h <<\_ACEOF | |
37787 | #define wxUSE_STARTUP_TIPS 1 | |
37788 | _ACEOF | |
37789 | ||
37790 | fi | |
37791 | fi | |
37792 | ||
37793 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37794 | cat >>confdefs.h <<\_ACEOF | |
37795 | #define wxUSE_TEXTDLG 1 | |
37796 | _ACEOF | |
37797 | ||
37798 | fi | |
37799 | ||
37800 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37801 | cat >>confdefs.h <<\_ACEOF | |
37802 | #define wxUSE_WIZARDDLG 1 | |
37803 | _ACEOF | |
37804 | ||
37805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37806 | fi | |
37807 | ||
37808 | ||
37809 | if test "$cross_compiling" = "yes"; then | |
37810 | OSINFO="\"$host\"" | |
37811 | else | |
37812 | OSINFO=`uname -s -r -m` | |
37813 | OSINFO="\"$OSINFO\"" | |
37814 | fi | |
37815 | ||
37816 | cat >>confdefs.h <<_ACEOF | |
37817 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37818 | _ACEOF | |
37819 | ||
37820 | ||
37821 | ||
37822 | if test "x$prefix" != "xNONE"; then | |
37823 | wxPREFIX=$prefix | |
37824 | else | |
37825 | wxPREFIX=$ac_default_prefix | |
37826 | fi | |
37827 | ||
37828 | cat >>confdefs.h <<_ACEOF | |
37829 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37830 | _ACEOF | |
37831 | ||
37832 | ||
a848cd7e SC |
37833 | |
37834 | ||
37835 | CORE_BASE_LIBS="net base" | |
37836 | CORE_GUI_LIBS="adv core" | |
37837 | ||
37838 | if test "$wxUSE_XML" = "yes" ; then | |
37839 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37840 | fi | |
37841 | if test "$wxUSE_ODBC" != "no" ; then | |
37842 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37843 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37844 | fi | |
37845 | if test "$wxUSE_HTML" = "yes" ; then | |
37846 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37847 | fi | |
9a8f0513 VS |
37848 | if test "$wxUSE_XRC" = "yes" ; then |
37849 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
37850 | fi | |
a848cd7e SC |
37851 | |
37852 | if test "$wxUSE_GUI" != "yes"; then | |
37853 | CORE_GUI_LIBS="" | |
37854 | fi | |
37855 | ||
37856 | ||
37857 | ||
37858 | ||
37859 | ||
37860 | ||
37861 | ||
37862 | ||
37863 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 37864 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
37865 | if test "$USE_DARWIN" = 1; then |
37866 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37867 | else | |
37868 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
37869 | fi | |
07bea8f0 | 37870 | fi |
5dcf30a0 | 37871 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
37872 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
37873 | else | |
37874 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 37875 | fi |
a848cd7e SC |
37876 | fi |
37877 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 37878 | LDFLAGS="$LDFLAGS -framework Cocoa" |
a848cd7e SC |
37879 | fi |
37880 | ||
37881 | ||
37882 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37883 | ||
37884 | have_cos=0 | |
37885 | have_floor=0 | |
37886 | ||
37887 | for ac_func in cos | |
37888 | do | |
37889 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37890 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37891 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37892 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37894 | else | |
37895 | cat >conftest.$ac_ext <<_ACEOF | |
37896 | /* confdefs.h. */ | |
37897 | _ACEOF | |
37898 | cat confdefs.h >>conftest.$ac_ext | |
37899 | cat >>conftest.$ac_ext <<_ACEOF | |
37900 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37901 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37903 | #define $ac_func innocuous_$ac_func | |
37904 | ||
a848cd7e SC |
37905 | /* System header to define __stub macros and hopefully few prototypes, |
37906 | which can conflict with char $ac_func (); below. | |
37907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37908 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37909 | |
a848cd7e SC |
37910 | #ifdef __STDC__ |
37911 | # include <limits.h> | |
37912 | #else | |
37913 | # include <assert.h> | |
37914 | #endif | |
ac1cb8d3 VS |
37915 | |
37916 | #undef $ac_func | |
37917 | ||
a848cd7e SC |
37918 | /* Override any gcc2 internal prototype to avoid an error. */ |
37919 | #ifdef __cplusplus | |
37920 | extern "C" | |
37921 | { | |
37922 | #endif | |
37923 | /* We use char because int might match the return type of a gcc2 | |
37924 | builtin and then its argument prototype would still apply. */ | |
37925 | char $ac_func (); | |
37926 | /* The GNU C library defines this for functions which it implements | |
37927 | to always fail with ENOSYS. Some functions are actually named | |
37928 | something starting with __ and the normal name is an alias. */ | |
37929 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37930 | choke me | |
37931 | #else | |
37932 | char (*f) () = $ac_func; | |
37933 | #endif | |
37934 | #ifdef __cplusplus | |
37935 | } | |
37936 | #endif | |
37937 | ||
37938 | int | |
37939 | main () | |
37940 | { | |
37941 | return f != $ac_func; | |
37942 | ; | |
37943 | return 0; | |
37944 | } | |
37945 | _ACEOF | |
37946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37948 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37949 | ac_status=$? |
ac1cb8d3 VS |
37950 | grep -v '^ *+' conftest.er1 >conftest.err |
37951 | rm -f conftest.er1 | |
37952 | cat conftest.err >&5 | |
a848cd7e SC |
37953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37954 | (exit $ac_status); } && | |
5294a27e | 37955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37957 | (eval $ac_try) 2>&5 | |
37958 | ac_status=$? | |
37959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37960 | (exit $ac_status); }; } && | |
37961 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37963 | (eval $ac_try) 2>&5 | |
37964 | ac_status=$? | |
37965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37966 | (exit $ac_status); }; }; then | |
37967 | eval "$as_ac_var=yes" | |
37968 | else | |
37969 | echo "$as_me: failed program was:" >&5 | |
37970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37971 | ||
37972 | eval "$as_ac_var=no" | |
37973 | fi | |
ac1cb8d3 VS |
37974 | rm -f conftest.err conftest.$ac_objext \ |
37975 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37976 | fi |
37977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37978 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37979 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37980 | cat >>confdefs.h <<_ACEOF | |
37981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37982 | _ACEOF | |
37983 | have_cos=1 | |
37984 | fi | |
37985 | done | |
37986 | ||
37987 | ||
37988 | for ac_func in floor | |
37989 | do | |
37990 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37991 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37992 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37993 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37995 | else | |
37996 | cat >conftest.$ac_ext <<_ACEOF | |
37997 | /* confdefs.h. */ | |
37998 | _ACEOF | |
37999 | cat confdefs.h >>conftest.$ac_ext | |
38000 | cat >>conftest.$ac_ext <<_ACEOF | |
38001 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38002 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38003 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38004 | #define $ac_func innocuous_$ac_func | |
38005 | ||
a848cd7e SC |
38006 | /* System header to define __stub macros and hopefully few prototypes, |
38007 | which can conflict with char $ac_func (); below. | |
38008 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38009 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38010 | |
a848cd7e SC |
38011 | #ifdef __STDC__ |
38012 | # include <limits.h> | |
38013 | #else | |
38014 | # include <assert.h> | |
38015 | #endif | |
ac1cb8d3 VS |
38016 | |
38017 | #undef $ac_func | |
38018 | ||
a848cd7e SC |
38019 | /* Override any gcc2 internal prototype to avoid an error. */ |
38020 | #ifdef __cplusplus | |
38021 | extern "C" | |
38022 | { | |
38023 | #endif | |
38024 | /* We use char because int might match the return type of a gcc2 | |
38025 | builtin and then its argument prototype would still apply. */ | |
38026 | char $ac_func (); | |
38027 | /* The GNU C library defines this for functions which it implements | |
38028 | to always fail with ENOSYS. Some functions are actually named | |
38029 | something starting with __ and the normal name is an alias. */ | |
38030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38031 | choke me | |
38032 | #else | |
38033 | char (*f) () = $ac_func; | |
38034 | #endif | |
38035 | #ifdef __cplusplus | |
38036 | } | |
38037 | #endif | |
38038 | ||
38039 | int | |
38040 | main () | |
38041 | { | |
38042 | return f != $ac_func; | |
38043 | ; | |
38044 | return 0; | |
38045 | } | |
38046 | _ACEOF | |
38047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38049 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38050 | ac_status=$? |
ac1cb8d3 VS |
38051 | grep -v '^ *+' conftest.er1 >conftest.err |
38052 | rm -f conftest.er1 | |
38053 | cat conftest.err >&5 | |
a848cd7e SC |
38054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38055 | (exit $ac_status); } && | |
5294a27e | 38056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38058 | (eval $ac_try) 2>&5 | |
38059 | ac_status=$? | |
38060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38061 | (exit $ac_status); }; } && | |
38062 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38064 | (eval $ac_try) 2>&5 | |
38065 | ac_status=$? | |
38066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38067 | (exit $ac_status); }; }; then | |
38068 | eval "$as_ac_var=yes" | |
38069 | else | |
38070 | echo "$as_me: failed program was:" >&5 | |
38071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38072 | ||
38073 | eval "$as_ac_var=no" | |
38074 | fi | |
ac1cb8d3 VS |
38075 | rm -f conftest.err conftest.$ac_objext \ |
38076 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38077 | fi |
38078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38079 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38080 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38081 | cat >>confdefs.h <<_ACEOF | |
38082 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38083 | _ACEOF | |
38084 | have_floor=1 | |
38085 | fi | |
38086 | done | |
38087 | ||
38088 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
38089 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
38090 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
38091 | echo "$as_me:$LINENO: result: yes" >&5 | |
38092 | echo "${ECHO_T}yes" >&6 | |
38093 | else | |
38094 | echo "$as_me:$LINENO: result: no" >&5 | |
38095 | echo "${ECHO_T}no" >&6 | |
38096 | LIBS="$LIBS -lm" | |
38097 | # use different functions to avoid configure caching | |
38098 | have_sin=0 | |
38099 | have_ceil=0 | |
38100 | ||
38101 | for ac_func in sin | |
38102 | do | |
38103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38104 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38106 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38108 | else | |
38109 | cat >conftest.$ac_ext <<_ACEOF | |
38110 | /* confdefs.h. */ | |
38111 | _ACEOF | |
38112 | cat confdefs.h >>conftest.$ac_ext | |
38113 | cat >>conftest.$ac_ext <<_ACEOF | |
38114 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38115 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38116 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38117 | #define $ac_func innocuous_$ac_func | |
38118 | ||
a848cd7e SC |
38119 | /* System header to define __stub macros and hopefully few prototypes, |
38120 | which can conflict with char $ac_func (); below. | |
38121 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38122 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38123 | |
a848cd7e SC |
38124 | #ifdef __STDC__ |
38125 | # include <limits.h> | |
38126 | #else | |
38127 | # include <assert.h> | |
38128 | #endif | |
ac1cb8d3 VS |
38129 | |
38130 | #undef $ac_func | |
38131 | ||
a848cd7e SC |
38132 | /* Override any gcc2 internal prototype to avoid an error. */ |
38133 | #ifdef __cplusplus | |
38134 | extern "C" | |
38135 | { | |
38136 | #endif | |
38137 | /* We use char because int might match the return type of a gcc2 | |
38138 | builtin and then its argument prototype would still apply. */ | |
38139 | char $ac_func (); | |
38140 | /* The GNU C library defines this for functions which it implements | |
38141 | to always fail with ENOSYS. Some functions are actually named | |
38142 | something starting with __ and the normal name is an alias. */ | |
38143 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38144 | choke me | |
38145 | #else | |
38146 | char (*f) () = $ac_func; | |
38147 | #endif | |
38148 | #ifdef __cplusplus | |
38149 | } | |
38150 | #endif | |
38151 | ||
38152 | int | |
38153 | main () | |
38154 | { | |
38155 | return f != $ac_func; | |
38156 | ; | |
38157 | return 0; | |
38158 | } | |
38159 | _ACEOF | |
38160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38162 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38163 | ac_status=$? |
ac1cb8d3 VS |
38164 | grep -v '^ *+' conftest.er1 >conftest.err |
38165 | rm -f conftest.er1 | |
38166 | cat conftest.err >&5 | |
a848cd7e SC |
38167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38168 | (exit $ac_status); } && | |
5294a27e | 38169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38171 | (eval $ac_try) 2>&5 | |
38172 | ac_status=$? | |
38173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38174 | (exit $ac_status); }; } && | |
38175 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38177 | (eval $ac_try) 2>&5 | |
38178 | ac_status=$? | |
38179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38180 | (exit $ac_status); }; }; then | |
38181 | eval "$as_ac_var=yes" | |
38182 | else | |
38183 | echo "$as_me: failed program was:" >&5 | |
38184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38185 | ||
38186 | eval "$as_ac_var=no" | |
38187 | fi | |
ac1cb8d3 VS |
38188 | rm -f conftest.err conftest.$ac_objext \ |
38189 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38190 | fi |
38191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38192 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38193 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38194 | cat >>confdefs.h <<_ACEOF | |
38195 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38196 | _ACEOF | |
38197 | have_sin=1 | |
38198 | fi | |
38199 | done | |
38200 | ||
38201 | ||
38202 | for ac_func in ceil | |
38203 | do | |
38204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38205 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38207 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38209 | else | |
38210 | cat >conftest.$ac_ext <<_ACEOF | |
38211 | /* confdefs.h. */ | |
38212 | _ACEOF | |
38213 | cat confdefs.h >>conftest.$ac_ext | |
38214 | cat >>conftest.$ac_ext <<_ACEOF | |
38215 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38218 | #define $ac_func innocuous_$ac_func | |
38219 | ||
a848cd7e SC |
38220 | /* System header to define __stub macros and hopefully few prototypes, |
38221 | which can conflict with char $ac_func (); below. | |
38222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38223 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38224 | |
a848cd7e SC |
38225 | #ifdef __STDC__ |
38226 | # include <limits.h> | |
38227 | #else | |
38228 | # include <assert.h> | |
38229 | #endif | |
ac1cb8d3 VS |
38230 | |
38231 | #undef $ac_func | |
38232 | ||
a848cd7e SC |
38233 | /* Override any gcc2 internal prototype to avoid an error. */ |
38234 | #ifdef __cplusplus | |
38235 | extern "C" | |
38236 | { | |
38237 | #endif | |
38238 | /* We use char because int might match the return type of a gcc2 | |
38239 | builtin and then its argument prototype would still apply. */ | |
38240 | char $ac_func (); | |
38241 | /* The GNU C library defines this for functions which it implements | |
38242 | to always fail with ENOSYS. Some functions are actually named | |
38243 | something starting with __ and the normal name is an alias. */ | |
38244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38245 | choke me | |
38246 | #else | |
38247 | char (*f) () = $ac_func; | |
38248 | #endif | |
38249 | #ifdef __cplusplus | |
38250 | } | |
38251 | #endif | |
38252 | ||
38253 | int | |
38254 | main () | |
38255 | { | |
38256 | return f != $ac_func; | |
38257 | ; | |
38258 | return 0; | |
38259 | } | |
38260 | _ACEOF | |
38261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38263 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38264 | ac_status=$? |
ac1cb8d3 VS |
38265 | grep -v '^ *+' conftest.er1 >conftest.err |
38266 | rm -f conftest.er1 | |
38267 | cat conftest.err >&5 | |
a848cd7e SC |
38268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38269 | (exit $ac_status); } && | |
5294a27e | 38270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38272 | (eval $ac_try) 2>&5 | |
38273 | ac_status=$? | |
38274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38275 | (exit $ac_status); }; } && | |
38276 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38278 | (eval $ac_try) 2>&5 | |
38279 | ac_status=$? | |
38280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38281 | (exit $ac_status); }; }; then | |
38282 | eval "$as_ac_var=yes" | |
38283 | else | |
38284 | echo "$as_me: failed program was:" >&5 | |
38285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38286 | ||
38287 | eval "$as_ac_var=no" | |
38288 | fi | |
ac1cb8d3 VS |
38289 | rm -f conftest.err conftest.$ac_objext \ |
38290 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38291 | fi |
38292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38293 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38294 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38295 | cat >>confdefs.h <<_ACEOF | |
38296 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38297 | _ACEOF | |
38298 | have_ceil=1 | |
38299 | fi | |
38300 | done | |
38301 | ||
38302 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
38303 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
38304 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
38305 | echo "$as_me:$LINENO: result: yes" >&5 | |
38306 | echo "${ECHO_T}yes" >&6 | |
38307 | else | |
38308 | echo "$as_me:$LINENO: result: no" >&5 | |
38309 | echo "${ECHO_T}no" >&6 | |
38310 | # not sure we should warn the user, crash, etc. | |
38311 | fi | |
38312 | fi | |
38313 | ||
38314 | if test "$wxUSE_GUI" = "yes"; then | |
38315 | ||
38316 | ||
38317 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
38318 | drawing dynamic erase event exec font image \ | |
38319 | minimal propsize rotate shaped widgets render" | |
38320 | ||
38321 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
38322 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
38323 | fi | |
38324 | else | |
38325 | SAMPLES_SUBDIRS="console" | |
38326 | fi | |
38327 | ||
38328 | ||
ceec2216 | 38329 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
38330 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
38331 | ||
38332 | if test "$GXX" = yes ; then | |
5294a27e VZ |
38333 | CWARNINGS="-Wall" |
38334 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
38335 | fi |
38336 | ||
38337 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
38338 | ||
0c3c69fc | 38339 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 38340 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 38341 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e SC |
38342 | |
38343 | ||
0c3c69fc | 38344 | LIBS=`echo $LIBS` |
a848cd7e SC |
38345 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
38346 | EXTRALIBS_XML="$EXPAT_LINK" | |
38347 | EXTRALIBS_HTML="$MSPACK_LINK" | |
38348 | EXTRALIBS_ODBC="$ODBC_LINK" | |
38349 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 38350 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
38351 | fi |
38352 | if test "$wxUSE_OPENGL" = "yes"; then | |
38353 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
38354 | fi | |
38355 | ||
38356 | LDFLAGS="$LDFLAGS $PROFILE" | |
38357 | ||
38358 | if test "$wxUSE_GTK" = 1; then | |
38359 | WXCONFIG_INCLUDE= | |
38360 | else | |
38361 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
38362 | fi | |
38363 | ||
38364 | WXCONFIG_EXTRALIBS="$LIBS" | |
38365 | ||
38366 | if test "$wxUSE_REGEX" = "builtin" ; then | |
38367 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
38368 | fi | |
38369 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
38370 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
38371 | fi | |
38372 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38373 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38374 | fi | |
38375 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
38376 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
38377 | fi | |
38378 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
38379 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
38380 | fi | |
38381 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
38382 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
38383 | fi | |
38384 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
38385 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
38386 | fi | |
38387 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38388 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38389 | fi | |
38390 | ||
38391 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 38392 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
38393 | done |
38394 | ||
38395 | ||
38396 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
38397 | WXUNIV=1 | |
38398 | else | |
38399 | WXUNIV=0 | |
38400 | fi | |
38401 | ||
38402 | ||
38403 | ||
38404 | ||
38405 | ||
38406 | ||
38407 | ||
38408 | ||
38409 | ||
38410 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
38411 | MONOLITHIC=1 | |
38412 | else | |
38413 | MONOLITHIC=0 | |
38414 | fi | |
38415 | ||
38416 | if test $wxUSE_PLUGINS = "yes" ; then | |
38417 | USE_PLUGINS=1 | |
38418 | else | |
38419 | USE_PLUGINS=0 | |
38420 | fi | |
38421 | ||
38422 | if test $wxUSE_ODBC != "no" ; then | |
38423 | USE_ODBC=1 | |
38424 | else | |
38425 | USE_ODBC=0 | |
38426 | fi | |
38427 | ||
38428 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
38429 | OFFICIAL_BUILD=1 | |
38430 | else | |
38431 | OFFICIAL_BUILD=0 | |
38432 | fi | |
38433 | ||
38434 | ||
38435 | ||
38436 | ||
38437 | ||
38438 | ||
38439 | ||
38440 | ||
38441 | ||
38442 | ||
38443 | ||
38444 | ||
38445 | ||
38446 | ||
38447 | ||
38448 | ||
38449 | ||
38450 | ||
38451 | ||
ceec2216 | 38452 | |
d1c38808 | 38453 | |
a848cd7e SC |
38454 | |
38455 | ||
38456 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
38457 | ||
38458 | ||
38459 | ||
38460 | ||
38461 | ||
38462 | ||
38463 | ||
38464 | ||
4d4ff94c VZ |
38465 | case "$TOOLKIT" in |
38466 | GTK) | |
38467 | TOOLKIT_USER="GTK+" | |
38468 | if test "$WXGTK20" = 1; then | |
38469 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
38470 | fi | |
9a8f0513 | 38471 | ;; |
4d4ff94c VZ |
38472 | |
38473 | *) | |
38474 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 38475 | ;; |
4d4ff94c | 38476 | esac |
a848cd7e | 38477 | |
9a8f0513 | 38478 | |
1e9e8aba DE |
38479 | |
38480 | ||
a848cd7e SC |
38481 | if test "x$BAKEFILE_HOST" = "x"; then |
38482 | BAKEFILE_HOST="${host}" | |
38483 | fi | |
38484 | ||
38485 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
38486 | ||
38487 | if test -n "$ac_tool_prefix"; then | |
38488 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
38489 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
38490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38492 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
38493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38494 | else | |
38495 | if test -n "$RANLIB"; then | |
38496 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
38497 | else | |
38498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38499 | for as_dir in $PATH | |
38500 | do | |
38501 | IFS=$as_save_IFS | |
38502 | test -z "$as_dir" && as_dir=. | |
38503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38505 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
38506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38507 | break 2 | |
38508 | fi | |
38509 | done | |
38510 | done | |
38511 | ||
38512 | fi | |
38513 | fi | |
38514 | RANLIB=$ac_cv_prog_RANLIB | |
38515 | if test -n "$RANLIB"; then | |
38516 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
38517 | echo "${ECHO_T}$RANLIB" >&6 | |
38518 | else | |
38519 | echo "$as_me:$LINENO: result: no" >&5 | |
38520 | echo "${ECHO_T}no" >&6 | |
38521 | fi | |
38522 | ||
38523 | fi | |
38524 | if test -z "$ac_cv_prog_RANLIB"; then | |
38525 | ac_ct_RANLIB=$RANLIB | |
38526 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38527 | set dummy ranlib; ac_word=$2 | |
38528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38530 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
38531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38532 | else | |
38533 | if test -n "$ac_ct_RANLIB"; then | |
38534 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38535 | else | |
38536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38537 | for as_dir in $PATH | |
38538 | do | |
38539 | IFS=$as_save_IFS | |
38540 | test -z "$as_dir" && as_dir=. | |
38541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38543 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
38544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38545 | break 2 | |
38546 | fi | |
38547 | done | |
38548 | done | |
38549 | ||
38550 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
38551 | fi | |
38552 | fi | |
38553 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
38554 | if test -n "$ac_ct_RANLIB"; then | |
38555 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
38556 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
38557 | else | |
38558 | echo "$as_me:$LINENO: result: no" >&5 | |
38559 | echo "${ECHO_T}no" >&6 | |
38560 | fi | |
38561 | ||
38562 | RANLIB=$ac_ct_RANLIB | |
38563 | else | |
38564 | RANLIB="$ac_cv_prog_RANLIB" | |
38565 | fi | |
38566 | ||
38567 | # Find a good install program. We prefer a C program (faster), | |
38568 | # so one script is as good as another. But avoid the broken or | |
38569 | # incompatible versions: | |
38570 | # SysV /etc/install, /usr/sbin/install | |
38571 | # SunOS /usr/etc/install | |
38572 | # IRIX /sbin/install | |
38573 | # AIX /bin/install | |
38574 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
38575 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
38576 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
38577 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 38578 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
38579 | # ./install, which can be erroneously created by make from ./install.sh. |
38580 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
38581 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
38582 | if test -z "$INSTALL"; then | |
38583 | if test "${ac_cv_path_install+set}" = set; then | |
38584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38585 | else | |
38586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38587 | for as_dir in $PATH | |
38588 | do | |
38589 | IFS=$as_save_IFS | |
38590 | test -z "$as_dir" && as_dir=. | |
38591 | # Account for people who put trailing slashes in PATH elements. | |
38592 | case $as_dir/ in | |
38593 | ./ | .// | /cC/* | \ | |
38594 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 38595 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
38596 | /usr/ucb/* ) ;; |
38597 | *) | |
38598 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
38599 | # Don't use installbsd from OSF since it installs stuff as root | |
38600 | # by default. | |
38601 | for ac_prog in ginstall scoinst install; do | |
38602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
38603 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
38604 | if test $ac_prog = install && | |
38605 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38606 | # AIX install. It has an incompatible calling convention. | |
38607 | : | |
38608 | elif test $ac_prog = install && | |
38609 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38610 | # program-specific install script used by HP pwplus--don't use. | |
38611 | : | |
38612 | else | |
38613 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
38614 | break 3 | |
38615 | fi | |
38616 | fi | |
a848cd7e SC |
38617 | done |
38618 | done | |
38619 | ;; | |
38620 | esac | |
38621 | done | |
38622 | ||
38623 | ||
38624 | fi | |
38625 | if test "${ac_cv_path_install+set}" = set; then | |
38626 | INSTALL=$ac_cv_path_install | |
38627 | else | |
38628 | # As a last resort, use the slow shell script. We don't cache a | |
38629 | # path for INSTALL within a source directory, because that will | |
38630 | # break other packages using the cache if that directory is | |
38631 | # removed, or if the path is relative. | |
38632 | INSTALL=$ac_install_sh | |
38633 | fi | |
38634 | fi | |
38635 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
38636 | echo "${ECHO_T}$INSTALL" >&6 | |
38637 | ||
38638 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38639 | # It thinks the first close brace ends the variable substitution. | |
38640 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38641 | ||
38642 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
38643 | ||
38644 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38645 | ||
38646 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
38647 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38648 | LN_S=$as_ln_s | |
38649 | if test "$LN_S" = "ln -s"; then | |
38650 | echo "$as_me:$LINENO: result: yes" >&5 | |
38651 | echo "${ECHO_T}yes" >&6 | |
38652 | else | |
38653 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
38654 | echo "${ECHO_T}no, using $LN_S" >&6 | |
38655 | fi | |
38656 | ||
38657 | ||
38658 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38659 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 38660 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
38661 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38663 | else | |
38664 | cat >conftest.make <<\_ACEOF | |
38665 | all: | |
38666 | @echo 'ac_maketemp="$(MAKE)"' | |
38667 | _ACEOF | |
38668 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38669 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38670 | if test -n "$ac_maketemp"; then | |
38671 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38672 | else | |
38673 | eval ac_cv_prog_make_${ac_make}_set=no | |
38674 | fi | |
38675 | rm -f conftest.make | |
38676 | fi | |
38677 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38678 | echo "$as_me:$LINENO: result: yes" >&5 | |
38679 | echo "${ECHO_T}yes" >&6 | |
38680 | SET_MAKE= | |
38681 | else | |
38682 | echo "$as_me:$LINENO: result: no" >&5 | |
38683 | echo "${ECHO_T}no" >&6 | |
38684 | SET_MAKE="MAKE=${MAKE-make}" | |
38685 | fi | |
38686 | ||
38687 | ||
38688 | ||
38689 | if test -n "$ac_tool_prefix"; then | |
38690 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38691 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
38692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38694 | if test "${ac_cv_prog_AR+set}" = set; then | |
38695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38696 | else | |
38697 | if test -n "$AR"; then | |
38698 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38699 | else | |
38700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38701 | for as_dir in $PATH | |
38702 | do | |
38703 | IFS=$as_save_IFS | |
38704 | test -z "$as_dir" && as_dir=. | |
38705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38707 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38709 | break 2 | |
38710 | fi | |
38711 | done | |
38712 | done | |
38713 | ||
38714 | fi | |
38715 | fi | |
38716 | AR=$ac_cv_prog_AR | |
38717 | if test -n "$AR"; then | |
38718 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38719 | echo "${ECHO_T}$AR" >&6 | |
38720 | else | |
38721 | echo "$as_me:$LINENO: result: no" >&5 | |
38722 | echo "${ECHO_T}no" >&6 | |
38723 | fi | |
38724 | ||
38725 | fi | |
38726 | if test -z "$ac_cv_prog_AR"; then | |
38727 | ac_ct_AR=$AR | |
38728 | # Extract the first word of "ar", so it can be a program name with args. | |
38729 | set dummy ar; ac_word=$2 | |
38730 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38732 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38734 | else | |
38735 | if test -n "$ac_ct_AR"; then | |
38736 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38737 | else | |
38738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38739 | for as_dir in $PATH | |
38740 | do | |
38741 | IFS=$as_save_IFS | |
38742 | test -z "$as_dir" && as_dir=. | |
38743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38744 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38745 | ac_cv_prog_ac_ct_AR="ar" | |
38746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38747 | break 2 | |
38748 | fi | |
38749 | done | |
38750 | done | |
38751 | ||
38752 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38753 | fi | |
38754 | fi | |
38755 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38756 | if test -n "$ac_ct_AR"; then | |
38757 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38758 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38759 | else | |
38760 | echo "$as_me:$LINENO: result: no" >&5 | |
38761 | echo "${ECHO_T}no" >&6 | |
38762 | fi | |
38763 | ||
38764 | AR=$ac_ct_AR | |
38765 | else | |
38766 | AR="$ac_cv_prog_AR" | |
38767 | fi | |
38768 | ||
38769 | if test -n "$ac_tool_prefix"; then | |
38770 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38771 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38774 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38776 | else | |
38777 | if test -n "$STRIP"; then | |
38778 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38779 | else | |
38780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38781 | for as_dir in $PATH | |
38782 | do | |
38783 | IFS=$as_save_IFS | |
38784 | test -z "$as_dir" && as_dir=. | |
38785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38786 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38787 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38789 | break 2 | |
38790 | fi | |
38791 | done | |
38792 | done | |
38793 | ||
38794 | fi | |
38795 | fi | |
38796 | STRIP=$ac_cv_prog_STRIP | |
38797 | if test -n "$STRIP"; then | |
38798 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38799 | echo "${ECHO_T}$STRIP" >&6 | |
38800 | else | |
38801 | echo "$as_me:$LINENO: result: no" >&5 | |
38802 | echo "${ECHO_T}no" >&6 | |
38803 | fi | |
38804 | ||
38805 | fi | |
38806 | if test -z "$ac_cv_prog_STRIP"; then | |
38807 | ac_ct_STRIP=$STRIP | |
38808 | # Extract the first word of "strip", so it can be a program name with args. | |
38809 | set dummy strip; ac_word=$2 | |
38810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38812 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38814 | else | |
38815 | if test -n "$ac_ct_STRIP"; then | |
38816 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38817 | else | |
38818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38819 | for as_dir in $PATH | |
38820 | do | |
38821 | IFS=$as_save_IFS | |
38822 | test -z "$as_dir" && as_dir=. | |
38823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38825 | ac_cv_prog_ac_ct_STRIP="strip" | |
38826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38827 | break 2 | |
38828 | fi | |
38829 | done | |
38830 | done | |
38831 | ||
38832 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38833 | fi | |
38834 | fi | |
38835 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38836 | if test -n "$ac_ct_STRIP"; then | |
38837 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38838 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38839 | else | |
38840 | echo "$as_me:$LINENO: result: no" >&5 | |
38841 | echo "${ECHO_T}no" >&6 | |
38842 | fi | |
38843 | ||
38844 | STRIP=$ac_ct_STRIP | |
38845 | else | |
38846 | STRIP="$ac_cv_prog_STRIP" | |
38847 | fi | |
38848 | ||
38849 | if test -n "$ac_tool_prefix"; then | |
38850 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38851 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38854 | if test "${ac_cv_prog_NM+set}" = set; then | |
38855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38856 | else | |
38857 | if test -n "$NM"; then | |
38858 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38859 | else | |
38860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38861 | for as_dir in $PATH | |
38862 | do | |
38863 | IFS=$as_save_IFS | |
38864 | test -z "$as_dir" && as_dir=. | |
38865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38867 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38869 | break 2 | |
38870 | fi | |
38871 | done | |
38872 | done | |
38873 | ||
38874 | fi | |
38875 | fi | |
38876 | NM=$ac_cv_prog_NM | |
38877 | if test -n "$NM"; then | |
38878 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38879 | echo "${ECHO_T}$NM" >&6 | |
38880 | else | |
38881 | echo "$as_me:$LINENO: result: no" >&5 | |
38882 | echo "${ECHO_T}no" >&6 | |
38883 | fi | |
38884 | ||
38885 | fi | |
38886 | if test -z "$ac_cv_prog_NM"; then | |
38887 | ac_ct_NM=$NM | |
38888 | # Extract the first word of "nm", so it can be a program name with args. | |
38889 | set dummy nm; ac_word=$2 | |
38890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38892 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38894 | else | |
38895 | if test -n "$ac_ct_NM"; then | |
38896 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38897 | else | |
38898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38899 | for as_dir in $PATH | |
38900 | do | |
38901 | IFS=$as_save_IFS | |
38902 | test -z "$as_dir" && as_dir=. | |
38903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38905 | ac_cv_prog_ac_ct_NM="nm" | |
38906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38907 | break 2 | |
38908 | fi | |
38909 | done | |
38910 | done | |
38911 | ||
38912 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38913 | fi | |
38914 | fi | |
38915 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38916 | if test -n "$ac_ct_NM"; then | |
38917 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38918 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38919 | else | |
38920 | echo "$as_me:$LINENO: result: no" >&5 | |
38921 | echo "${ECHO_T}no" >&6 | |
38922 | fi | |
38923 | ||
38924 | NM=$ac_ct_NM | |
38925 | else | |
38926 | NM="$ac_cv_prog_NM" | |
38927 | fi | |
38928 | ||
38929 | ||
38930 | case ${BAKEFILE_HOST} in | |
38931 | *-hp-hpux* ) | |
1e9e8aba | 38932 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38933 | ;; |
38934 | *) INSTALL_DIR="$INSTALL -d" | |
38935 | ;; | |
38936 | esac | |
38937 | ||
38938 | ||
38939 | LDFLAGS_GUI= | |
38940 | case ${BAKEFILE_HOST} in | |
38941 | *-*-cygwin* | *-*-mingw32* ) | |
38942 | LDFLAGS_GUI="-mwindows" | |
38943 | esac | |
38944 | ||
38945 | ||
38946 | fi | |
38947 | ||
38948 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38949 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38950 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38952 | else | |
38953 | ||
38954 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38955 | egrep -s GNU > /dev/null); then | |
38956 | bakefile_cv_prog_makeisgnu="yes" | |
38957 | else | |
38958 | bakefile_cv_prog_makeisgnu="no" | |
38959 | fi | |
38960 | ||
38961 | fi | |
38962 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38963 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38964 | ||
38965 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38966 | IF_GNU_MAKE="" | |
38967 | else | |
38968 | IF_GNU_MAKE="#" | |
38969 | fi | |
38970 | ||
38971 | ||
38972 | ||
38973 | PLATFORM_UNIX=0 | |
38974 | PLATFORM_WIN32=0 | |
38975 | PLATFORM_MSDOS=0 | |
38976 | PLATFORM_MAC=0 | |
1e9e8aba | 38977 | PLATFORM_MACOS=0 |
a848cd7e SC |
38978 | PLATFORM_MACOSX=0 |
38979 | PLATFORM_OS2=0 | |
1e9e8aba | 38980 | PLATFORM_BEOS=0 |
a848cd7e SC |
38981 | |
38982 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38983 | case "${BAKEFILE_HOST}" in | |
38984 | *-*-cygwin* | *-*-mingw32* ) | |
38985 | PLATFORM_WIN32=1 | |
38986 | ;; | |
38987 | *-pc-msdosdjgpp ) | |
38988 | PLATFORM_MSDOS=1 | |
38989 | ;; | |
38990 | *-pc-os2_emx | *-pc-os2-emx ) | |
38991 | PLATFORM_OS2=1 | |
38992 | ;; | |
38993 | powerpc-*-darwin* ) | |
38994 | PLATFORM_MAC=1 | |
38995 | PLATFORM_MACOSX=1 | |
38996 | ;; | |
1e9e8aba DE |
38997 | *-*-beos* ) |
38998 | PLATFORM_BEOS=1 | |
38999 | ;; | |
39000 | powerpc-apple-macos* ) | |
39001 | PLATFORM_MAC=1 | |
39002 | PLATFORM_MACOS=1 | |
39003 | ;; | |
a848cd7e SC |
39004 | * ) |
39005 | PLATFORM_UNIX=1 | |
39006 | ;; | |
39007 | esac | |
39008 | else | |
39009 | case "$BAKEFILE_FORCE_PLATFORM" in | |
39010 | win32 ) | |
39011 | PLATFORM_WIN32=1 | |
39012 | ;; | |
39013 | msdos ) | |
39014 | PLATFORM_MSDOS=1 | |
39015 | ;; | |
39016 | os2 ) | |
39017 | PLATFORM_OS2=1 | |
39018 | ;; | |
39019 | darwin ) | |
39020 | PLATFORM_MAC=1 | |
39021 | PLATFORM_MACOSX=1 | |
39022 | ;; | |
39023 | unix ) | |
39024 | PLATFORM_UNIX=1 | |
39025 | ;; | |
1e9e8aba DE |
39026 | beos ) |
39027 | PLATFORM_BEOS=1 | |
39028 | ;; | |
a848cd7e SC |
39029 | * ) |
39030 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
39031 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
39032 | { (exit 1); exit 1; }; } | |
39033 | ;; | |
39034 | esac | |
39035 | fi | |
39036 | ||
39037 | ||
39038 | ||
39039 | ||
39040 | ||
39041 | ||
39042 | ||
39043 | ||
39044 | ||
1e9e8aba DE |
39045 | |
39046 | ||
a848cd7e SC |
39047 | # Check whether --enable-omf or --disable-omf was given. |
39048 | if test "${enable_omf+set}" = set; then | |
39049 | enableval="$enable_omf" | |
39050 | bk_os2_use_omf="$enableval" | |
39051 | fi; | |
39052 | ||
39053 | case "${BAKEFILE_HOST}" in | |
39054 | *-*-darwin* ) | |
39055 | CFLAGS="$CFLAGS -fno-common" | |
39056 | CXXFLAGS="$CXXFLAGS -fno-common" | |
39057 | ;; | |
39058 | ||
39059 | *-pc-os2_emx | *-pc-os2-emx ) | |
39060 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
39061 | AR=emxomfar | |
39062 | RANLIB=: | |
39063 | LDFLAGS="-Zomf $LDFLAGS" | |
39064 | CFLAGS="-Zomf $CFLAGS" | |
39065 | CXXFLAGS="-Zomf $CXXFLAGS" | |
39066 | OS2_LIBEXT="lib" | |
39067 | else | |
39068 | OS2_LIBEXT="a" | |
39069 | fi | |
39070 | ;; | |
1e9e8aba DE |
39071 | |
39072 | i*86-*-beos* ) | |
39073 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
39074 | ;; | |
a848cd7e SC |
39075 | esac |
39076 | ||
39077 | ||
39078 | SO_SUFFIX="so" | |
39079 | SO_SUFFIX_MODULE="so" | |
39080 | EXEEXT="" | |
39081 | LIBPREFIX="lib" | |
39082 | LIBEXT=".a" | |
39083 | DLLPREFIX="lib" | |
39084 | DLLPREFIX_MODULE="" | |
39085 | DLLIMP_SUFFIX="" | |
39086 | ||
39087 | case "${BAKEFILE_HOST}" in | |
39088 | *-hp-hpux* ) | |
39089 | SO_SUFFIX="sl" | |
39090 | SO_SUFFIX_MODULE="sl" | |
39091 | ;; | |
39092 | *-*-aix* ) | |
39093 | SO_SUFFIX="a" | |
39094 | SO_SUFFIX_MODULE="a" | |
39095 | ;; | |
39096 | *-*-cygwin* | *-*-mingw32* ) | |
39097 | SO_SUFFIX="dll" | |
39098 | SO_SUFFIX_MODULE="dll" | |
39099 | DLLIMP_SUFFIX="dll.a" | |
39100 | EXEEXT=".exe" | |
39101 | DLLPREFIX="" | |
39102 | ;; | |
39103 | *-pc-msdosdjgpp ) | |
39104 | EXEEXT=".exe" | |
39105 | DLLPREFIX="" | |
39106 | ;; | |
39107 | *-pc-os2_emx | *-pc-os2-emx ) | |
39108 | SO_SUFFIX="dll" | |
39109 | SO_SUFFIX_MODULE="dll" | |
39110 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
39111 | EXEEXT=".exe" | |
39112 | DLLPREFIX="" | |
39113 | LIBPREFIX="" | |
39114 | LIBEXT=".$OS2_LIBEXT" | |
39115 | ;; | |
39116 | powerpc-*-darwin* ) | |
39117 | SO_SUFFIX="dylib" | |
39118 | SO_SUFFIX_MODULE="bundle" | |
39119 | ;; | |
39120 | esac | |
39121 | ||
39122 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
39123 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
39124 | fi | |
39125 | ||
39126 | ||
39127 | ||
39128 | ||
39129 | ||
39130 | ||
39131 | ||
39132 | ||
39133 | ||
39134 | ||
39135 | ||
1e9e8aba DE |
39136 | PIC_FLAG="" |
39137 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
39138 | PIC_FLAG="-fPIC" |
39139 | fi | |
39140 | ||
1e9e8aba DE |
39141 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
39142 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
39143 | ||
a848cd7e SC |
39144 | case "${BAKEFILE_HOST}" in |
39145 | *-hp-hpux* ) | |
1e9e8aba | 39146 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
39147 | LDFLAGS="$LDFLAGS -L/usr/lib" |
39148 | ||
39149 | SHARED_LD_CC="${CC} -b -o" | |
39150 | SHARED_LD_CXX="${CXX} -b -o" | |
39151 | PIC_FLAG="+Z" | |
39152 | fi | |
39153 | ;; | |
39154 | ||
39155 | *-*-linux* ) | |
39156 | if test "x$GCC" != "xyes"; then | |
39157 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
39158 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
39159 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
39160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39161 | else | |
39162 | ||
39163 | cat >conftest.$ac_ext <<_ACEOF | |
39164 | /* confdefs.h. */ | |
39165 | _ACEOF | |
39166 | cat confdefs.h >>conftest.$ac_ext | |
39167 | cat >>conftest.$ac_ext <<_ACEOF | |
39168 | /* end confdefs.h. */ | |
39169 | ||
39170 | int | |
39171 | main () | |
39172 | { | |
39173 | ||
39174 | #ifndef __INTEL_COMPILER | |
39175 | #error Not icc | |
39176 | #endif | |
39177 | ||
39178 | ; | |
39179 | return 0; | |
39180 | } | |
39181 | _ACEOF | |
39182 | rm -f conftest.$ac_objext | |
39183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39184 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39185 | ac_status=$? |
ac1cb8d3 VS |
39186 | grep -v '^ *+' conftest.er1 >conftest.err |
39187 | rm -f conftest.er1 | |
39188 | cat conftest.err >&5 | |
a848cd7e SC |
39189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39190 | (exit $ac_status); } && | |
5294a27e | 39191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39193 | (eval $ac_try) 2>&5 | |
39194 | ac_status=$? | |
39195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39196 | (exit $ac_status); }; } && | |
39197 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39199 | (eval $ac_try) 2>&5 | |
39200 | ac_status=$? | |
39201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39202 | (exit $ac_status); }; }; then | |
39203 | bakefile_cv_prog_icc=yes | |
39204 | else | |
39205 | echo "$as_me: failed program was:" >&5 | |
39206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39207 | ||
39208 | bakefile_cv_prog_icc=no | |
39209 | ||
39210 | fi | |
ac1cb8d3 | 39211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39212 | |
39213 | fi | |
39214 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
39215 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
39216 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
39217 | PIC_FLAG="-KPIC" | |
39218 | fi | |
39219 | fi | |
39220 | ;; | |
39221 | ||
39222 | *-*-solaris2* ) | |
39223 | if test "x$GCC" != xyes ; then | |
39224 | SHARED_LD_CC="${CC} -G -o" | |
39225 | SHARED_LD_CXX="${CXX} -G -o" | |
39226 | PIC_FLAG="-KPIC" | |
39227 | fi | |
39228 | ;; | |
39229 | ||
39230 | *-*-darwin* ) | |
39231 | ||
39232 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
39233 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
39234 | if test "${wx_cv_gcc31+set}" = set; then | |
39235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39236 | else | |
39237 | ||
39238 | cat >conftest.$ac_ext <<_ACEOF | |
39239 | /* confdefs.h. */ | |
39240 | _ACEOF | |
39241 | cat confdefs.h >>conftest.$ac_ext | |
39242 | cat >>conftest.$ac_ext <<_ACEOF | |
39243 | /* end confdefs.h. */ | |
39244 | ||
39245 | int | |
39246 | main () | |
39247 | { | |
39248 | ||
39249 | #if (__GNUC__ < 3) || \ | |
39250 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
39251 | #error old gcc | |
39252 | #endif | |
39253 | ||
39254 | ; | |
39255 | return 0; | |
39256 | } | |
39257 | _ACEOF | |
39258 | rm -f conftest.$ac_objext | |
39259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39261 | ac_status=$? |
ac1cb8d3 VS |
39262 | grep -v '^ *+' conftest.er1 >conftest.err |
39263 | rm -f conftest.er1 | |
39264 | cat conftest.err >&5 | |
a848cd7e SC |
39265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39266 | (exit $ac_status); } && | |
5294a27e | 39267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39269 | (eval $ac_try) 2>&5 | |
39270 | ac_status=$? | |
39271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39272 | (exit $ac_status); }; } && | |
39273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39275 | (eval $ac_try) 2>&5 | |
39276 | ac_status=$? | |
39277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39278 | (exit $ac_status); }; }; then | |
39279 | ||
39280 | wx_cv_gcc31=yes | |
39281 | ||
39282 | else | |
39283 | echo "$as_me: failed program was:" >&5 | |
39284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39285 | ||
39286 | ||
39287 | wx_cv_gcc31=no | |
39288 | ||
39289 | ||
39290 | fi | |
ac1cb8d3 | 39291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39292 | |
39293 | fi | |
39294 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
39295 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
39296 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
39297 | |
39298 | D='$' | |
39299 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
39300 | #!/bin/sh |
39301 | #----------------------------------------------------------------------------- | |
39302 | #-- Name: distrib/mac/shared-ld-sh | |
39303 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
39304 | #-- Author: Gilles Depeyrot | |
39305 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
39306 | #-- Licence: any use permitted | |
39307 | #----------------------------------------------------------------------------- | |
39308 | ||
39309 | verbose=0 | |
39310 | args="" | |
39311 | objects="" | |
39312 | linking_flag="-dynamiclib" | |
39313 | ||
473276a9 VS |
39314 | while test ${D}# -gt 0; do |
39315 | case ${D}1 in | |
a848cd7e SC |
39316 | |
39317 | -v) | |
39318 | verbose=1 | |
39319 | ;; | |
39320 | ||
39321 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
39322 | # collect these options and values | |
473276a9 | 39323 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
39324 | shift |
39325 | ;; | |
39326 | ||
39327 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
39328 | # collect these options | |
473276a9 | 39329 | args="${D}{args} ${D}1" |
a848cd7e SC |
39330 | ;; |
39331 | ||
39332 | -dynamiclib|-bundle) | |
473276a9 | 39333 | linking_flag="${D}1" |
a848cd7e SC |
39334 | ;; |
39335 | ||
39336 | -*) | |
473276a9 | 39337 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
39338 | exit 1 |
39339 | ;; | |
39340 | ||
39341 | *.o | *.a | *.dylib) | |
39342 | # collect object files | |
473276a9 | 39343 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
39344 | ;; |
39345 | ||
39346 | *) | |
473276a9 | 39347 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
39348 | exit 1 |
39349 | ;; | |
39350 | ||
39351 | esac | |
39352 | shift | |
39353 | done | |
39354 | ||
39355 | # | |
39356 | # Link one module containing all the others | |
39357 | # | |
473276a9 VS |
39358 | if test ${D}{verbose} = 1; then |
39359 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 39360 | fi |
473276a9 VS |
39361 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
39362 | status=${D}? | |
39363 | if test ${D}{status} != 0; then | |
39364 | exit ${D}{status} | |
a848cd7e SC |
39365 | fi |
39366 | ||
39367 | # | |
39368 | # Link the shared library from the single module created | |
39369 | # | |
473276a9 VS |
39370 | if test ${D}{verbose} = 1; then |
39371 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 39372 | fi |
473276a9 VS |
39373 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
39374 | status=${D}? | |
39375 | if test ${D}{status} != 0; then | |
39376 | exit ${D}{status} | |
a848cd7e SC |
39377 | fi |
39378 | ||
39379 | # | |
39380 | # Remove intermediate module | |
39381 | # | |
473276a9 | 39382 | rm -f master.${D}${D}.o |
a848cd7e SC |
39383 | |
39384 | exit 0 | |
39385 | EOF | |
473276a9 | 39386 | |
a848cd7e SC |
39387 | chmod +x shared-ld-sh |
39388 | ||
39389 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
39390 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
39391 | SHARED_LD_CXX="$SHARED_LD_CC" | |
39392 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
39393 | else | |
39394 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39395 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
39396 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39397 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
39398 | fi | |
39399 | ||
39400 | PIC_FLAG="-dynamic -fPIC" | |
39401 | ;; | |
39402 | ||
39403 | *-*-aix* ) | |
39404 | if test "x$GCC" != "xyes"; then | |
39405 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
39406 | set dummy makeC++SharedLib; ac_word=$2 | |
39407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39409 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
39410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39411 | else | |
39412 | if test -n "$AIX_CXX_LD"; then | |
39413 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
39414 | else | |
39415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39416 | for as_dir in $PATH | |
39417 | do | |
39418 | IFS=$as_save_IFS | |
39419 | test -z "$as_dir" && as_dir=. | |
39420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39422 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
39423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39424 | break 2 | |
39425 | fi | |
39426 | done | |
39427 | done | |
39428 | ||
39429 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
39430 | fi | |
39431 | fi | |
39432 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
39433 | if test -n "$AIX_CXX_LD"; then | |
39434 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
39435 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
39436 | else | |
39437 | echo "$as_me:$LINENO: result: no" >&5 | |
39438 | echo "${ECHO_T}no" >&6 | |
39439 | fi | |
39440 | ||
39441 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
39442 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
39443 | fi | |
39444 | ;; | |
39445 | ||
39446 | *-*-beos* ) | |
1e9e8aba DE |
39447 | SHARED_LD_CC="${LD} -nostart -o" |
39448 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
39449 | ;; |
39450 | ||
39451 | *-*-irix* ) | |
39452 | if test "x$GCC" != "xyes"; then | |
39453 | PIC_FLAG="-KPIC" | |
39454 | fi | |
39455 | ;; | |
39456 | ||
39457 | *-*-cygwin* | *-*-mingw32* ) | |
39458 | PIC_FLAG="" | |
1e9e8aba DE |
39459 | SHARED_LD_CC="\$(CC) -shared -o" |
39460 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
39461 | ;; |
39462 | ||
39463 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
39464 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
39465 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 39466 | PIC_FLAG="" |
473276a9 VS |
39467 | |
39468 | D='$' | |
39469 | cat <<EOF >dllar.sh | |
39470 | #!/bin/sh | |
39471 | # | |
39472 | # dllar - a tool to build both a .dll and an .a file | |
39473 | # from a set of object (.o) files for EMX/OS2. | |
39474 | # | |
39475 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
39476 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
39477 | # | |
39478 | # This script will accept a set of files on the command line. | |
39479 | # All the public symbols from the .o files will be exported into | |
39480 | # a .DEF file, then linker will be run (through gcc) against them to | |
39481 | # build a shared library consisting of all given .o files. All libraries | |
39482 | # (.a) will be first decompressed into component .o files then act as | |
39483 | # described above. You can optionally give a description (-d "description") | |
39484 | # which will be put into .DLL. To see the list of accepted options (as well | |
39485 | # as command-line format) simply run this program without options. The .DLL | |
39486 | # is built to be imported by name (there is no guarantee that new versions | |
39487 | # of the library you build will have same ordinals for same symbols). | |
39488 | # | |
39489 | # dllar is free software; you can redistribute it and/or modify | |
39490 | # it under the terms of the GNU General Public License as published by | |
39491 | # the Free Software Foundation; either version 2, or (at your option) | |
39492 | # any later version. | |
39493 | # | |
39494 | # dllar is distributed in the hope that it will be useful, | |
39495 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
39496 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39497 | # GNU General Public License for more details. | |
39498 | # | |
39499 | # You should have received a copy of the GNU General Public License | |
39500 | # along with dllar; see the file COPYING. If not, write to the Free | |
39501 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
39502 | # 02111-1307, USA. | |
39503 | ||
39504 | # To successfuly run this program you will need: | |
39505 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
39506 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
39507 | # - gcc | |
39508 | # (used to build the .dll) | |
39509 | # - emxexp | |
39510 | # (used to create .def file from .o files) | |
39511 | # - emximp | |
39512 | # (used to create .a file from .def file) | |
39513 | # - GNU text utilites (cat, sort, uniq) | |
39514 | # used to process emxexp output | |
39515 | # - GNU file utilities (mv, rm) | |
39516 | # - GNU sed | |
39517 | # - lxlite (optional, see flag below) | |
39518 | # (used for general .dll cleanup) | |
39519 | # | |
39520 | ||
39521 | flag_USE_LXLITE=1; | |
39522 | ||
39523 | # | |
39524 | # helper functions | |
39525 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
39526 | # second argument (suffix to remove) is given | |
39527 | basnam(){ | |
39528 | case ${D}# in | |
39529 | 1) | |
1e9e8aba | 39530 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
39531 | ;; |
39532 | 2) | |
39533 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
39534 | ;; | |
39535 | *) | |
39536 | echo "error in basnam ${D}*" | |
39537 | exit 8 | |
39538 | ;; | |
39539 | esac | |
39540 | } | |
39541 | ||
39542 | # Cleanup temporary files and output | |
39543 | CleanUp() { | |
39544 | cd ${D}curDir | |
39545 | for i in ${D}inputFiles ; do | |
39546 | case ${D}i in | |
39547 | *!) | |
39548 | rm -rf \`basnam ${D}i !\` | |
39549 | ;; | |
39550 | *) | |
39551 | ;; | |
39552 | esac | |
39553 | done | |
39554 | ||
39555 | # Kill result in case of failure as there is just to many stupid make/nmake | |
39556 | # things out there which doesn't do this. | |
1e9e8aba | 39557 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
39558 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
39559 | fi | |
39560 | } | |
39561 | ||
39562 | # Print usage and exit script with rc=1. | |
39563 | PrintHelp() { | |
1e9e8aba DE |
39564 | echo 'Usage: dllar [-o@<:${utput}:>@ output_file] [-i@<:${mport}:>@ importlib_name]' |
39565 | echo ' [-d@<:${escription}:>@ "dll descrption"] [-cc "CC"] [-f@<:${lags}:>@ "CFLAGS"]' | |
39566 | echo ' [-ord@<:${inals}:>@] -ex@<:${clude}:>@ "symbol(s)"' | |
39567 | echo ' [-libf@<:${lags}:>@ "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt@<:${dll}:>@] [-nolxl@<:${ite}:>@]' | |
39568 | echo ' [*.o] [*.a]' | |
473276a9 VS |
39569 | echo '*> "output_file" should have no extension.' |
39570 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
39571 | echo ' The import library name is derived from this and is set to "name".a,' | |
39572 | echo ' unless overridden by -import' | |
39573 | echo '*> "importlib_name" should have no extension.' | |
39574 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
39575 | echo ' This name is used as the import library name and may be longer and' | |
39576 | echo ' more descriptive than the DLL name which has to follow the old ' | |
39577 | echo ' 8.3 convention of FAT.' | |
39578 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
39579 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
39580 | echo ' These flags will be put at the start of GCC command line.' | |
1e9e8aba DE |
39581 | echo '*> -ord@<:${inals}:>@ tells dllar to export entries by ordinals. Be careful.' |
39582 | echo '*> -ex@<:${clude}:>@ defines symbols which will not be exported. You can define' | |
473276a9 VS |
39583 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
39584 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
39585 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
1e9e8aba | 39586 | echo '*> -libf@<:${lags}:>@ can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 39587 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
1e9e8aba | 39588 | echo '*> -nocrt@<:${dll}:>@ switch will disable linking the library against emx''s' |
473276a9 | 39589 | echo ' C runtime DLLs.' |
1e9e8aba | 39590 | echo '*> -nolxl@<:${ite}:>@ switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
39591 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
39592 | echo ' unchanged to GCC at the end of command line.' | |
39593 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
39594 | echo ' the basename for DLL and import library will be set to library name,' | |
39595 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
39596 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
39597 | echo ' library will be renamed into gcc_s.a.' | |
39598 | echo '--------' | |
39599 | echo 'Example:' | |
39600 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
39601 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
39602 | CleanUp | |
39603 | exit 1 | |
39604 | } | |
39605 | ||
39606 | # Execute a command. | |
39607 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
39608 | # @Uses Whatever CleanUp() uses. | |
39609 | doCommand() { | |
39610 | echo "${D}*" | |
39611 | eval ${D}* | |
39612 | rcCmd=${D}? | |
39613 | ||
1e9e8aba | 39614 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
39615 | echo "command failed, exit code="${D}rcCmd |
39616 | CleanUp | |
39617 | exit ${D}rcCmd | |
39618 | fi | |
39619 | } | |
39620 | ||
39621 | # main routine | |
39622 | # setup globals | |
39623 | cmdLine=${D}* | |
39624 | outFile="" | |
39625 | outimpFile="" | |
39626 | inputFiles="" | |
39627 | description="" | |
39628 | CC=gcc.exe | |
39629 | CFLAGS="-s -Zcrtdll" | |
39630 | EXTRA_CFLAGS="" | |
39631 | EXPORT_BY_ORDINALS=0 | |
39632 | exclude_symbols="" | |
39633 | library_flags="" | |
39634 | curDir=\`pwd\` | |
39635 | curDirS=curDir | |
39636 | case ${D}curDirS in | |
39637 | */) | |
39638 | ;; | |
39639 | *) | |
39640 | curDirS=${D}{curDirS}"/" | |
39641 | ;; | |
39642 | esac | |
39643 | # Parse commandline | |
39644 | libsToLink=0 | |
1e9e8aba | 39645 | while [ ${D}1 ]; do |
473276a9 VS |
39646 | case ${D}1 in |
39647 | -ord*) | |
39648 | EXPORT_BY_ORDINALS=1; | |
39649 | ;; | |
39650 | -o*) | |
39651 | shift | |
39652 | outFile=${D}1 | |
39653 | ;; | |
39654 | -i*) | |
39655 | shift | |
39656 | outimpFile=${D}1 | |
39657 | ;; | |
39658 | -d*) | |
39659 | shift | |
39660 | description=${D}1 | |
39661 | ;; | |
39662 | -f*) | |
39663 | shift | |
39664 | CFLAGS=${D}1 | |
39665 | ;; | |
39666 | -c*) | |
39667 | shift | |
39668 | CC=${D}1 | |
39669 | ;; | |
39670 | -h*) | |
39671 | PrintHelp | |
39672 | ;; | |
39673 | -ex*) | |
39674 | shift | |
39675 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39676 | ;; | |
39677 | -libf*) | |
39678 | shift | |
39679 | library_flags=${D}{library_flags}${D}1" " | |
39680 | ;; | |
39681 | -nocrt*) | |
39682 | CFLAGS="-s" | |
39683 | ;; | |
39684 | -nolxl*) | |
39685 | flag_USE_LXLITE=0 | |
39686 | ;; | |
39687 | -* | /*) | |
39688 | case ${D}1 in | |
39689 | -L* | -l*) | |
39690 | libsToLink=1 | |
39691 | ;; | |
39692 | *) | |
39693 | ;; | |
39694 | esac | |
39695 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39696 | ;; | |
39697 | *) | |
39698 | found=0; | |
1e9e8aba | 39699 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
39700 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39701 | else | |
39702 | for file in ${D}1 ; do | |
1e9e8aba | 39703 | if [ -f ${D}file ]; then |
473276a9 VS |
39704 | inputFiles="${D}{inputFiles} ${D}file" |
39705 | found=1 | |
39706 | fi | |
39707 | done | |
1e9e8aba | 39708 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
39709 | echo "ERROR: No file(s) found: "${D}1 |
39710 | exit 8 | |
39711 | fi | |
39712 | fi | |
39713 | ;; | |
39714 | esac | |
39715 | shift | |
39716 | done # iterate cmdline words | |
39717 | ||
39718 | # | |
1e9e8aba | 39719 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
39720 | echo "dllar: no input files" |
39721 | PrintHelp | |
39722 | fi | |
39723 | ||
39724 | # Now extract all .o files from .a files | |
39725 | newInputFiles="" | |
39726 | for file in ${D}inputFiles ; do | |
39727 | case ${D}file in | |
39728 | *.a | *.lib) | |
39729 | case ${D}file in | |
39730 | *.a) | |
39731 | suffix=".a" | |
39732 | AR="ar" | |
39733 | ;; | |
39734 | *.lib) | |
39735 | suffix=".lib" | |
39736 | AR="emxomfar" | |
39737 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39738 | ;; | |
39739 | *) | |
39740 | ;; | |
39741 | esac | |
39742 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39743 | mkdir ${D}dirname | |
1e9e8aba | 39744 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
39745 | echo "Failed to create subdirectory ./${D}dirname" |
39746 | CleanUp | |
39747 | exit 8; | |
39748 | fi | |
39749 | # Append '!' to indicate archive | |
39750 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39751 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39752 | cd ${D}curDir | |
39753 | found=0; | |
39754 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 39755 | if [ -f ${D}subfile ]; then |
473276a9 | 39756 | found=1 |
1e9e8aba | 39757 | if [ -s ${D}subfile ]; then |
473276a9 VS |
39758 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39759 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39760 | fi | |
39761 | fi | |
39762 | done | |
1e9e8aba DE |
39763 | if [ ${D}found -eq 0 ]; then |
39764 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
39765 | fi |
39766 | ;; | |
39767 | *) | |
39768 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39769 | ;; | |
39770 | esac | |
39771 | done | |
39772 | inputFiles="${D}newInputFiles" | |
39773 | ||
39774 | # Output filename(s). | |
39775 | do_backup=0; | |
1e9e8aba | 39776 | if [ -z ${D}outFile ]; then |
473276a9 VS |
39777 | do_backup=1; |
39778 | set outFile ${D}inputFiles; outFile=${D}2 | |
39779 | fi | |
39780 | ||
39781 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39782 | case ${D}outFile in | |
39783 | *_%!) | |
39784 | outFile=\`basnam ${D}outFile _%!\` | |
39785 | ;; | |
39786 | *) | |
39787 | ;; | |
39788 | esac | |
39789 | case ${D}outFile in | |
39790 | *.dll) | |
39791 | outFile=\`basnam ${D}outFile .dll\` | |
39792 | ;; | |
39793 | *.DLL) | |
39794 | outFile=\`basnam ${D}outFile .DLL\` | |
39795 | ;; | |
39796 | *.o) | |
39797 | outFile=\`basnam ${D}outFile .o\` | |
39798 | ;; | |
39799 | *.obj) | |
39800 | outFile=\`basnam ${D}outFile .obj\` | |
39801 | ;; | |
39802 | *.a) | |
39803 | outFile=\`basnam ${D}outFile .a\` | |
39804 | ;; | |
39805 | *.lib) | |
39806 | outFile=\`basnam ${D}outFile .lib\` | |
39807 | ;; | |
39808 | *) | |
39809 | ;; | |
39810 | esac | |
39811 | case ${D}outimpFile in | |
39812 | *.a) | |
39813 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39814 | ;; | |
39815 | *.lib) | |
39816 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39817 | ;; | |
39818 | *) | |
39819 | ;; | |
39820 | esac | |
1e9e8aba | 39821 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
39822 | outimpFile=${D}outFile |
39823 | fi | |
39824 | defFile="${D}{outFile}.def" | |
39825 | arcFile="${D}{outimpFile}.a" | |
39826 | arcFile2="${D}{outimpFile}.lib" | |
39827 | dllFile="${D}outFile" | |
39828 | # Add suffix to dllFile later, first we need a version to use as | |
39829 | # name in .def file. | |
39830 | ||
1e9e8aba DE |
39831 | if [ ${D}do_backup -ne 0 ] ; then |
39832 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
39833 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39834 | fi | |
1e9e8aba | 39835 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
39836 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39837 | fi | |
39838 | fi | |
39839 | ||
39840 | # Extract public symbols from all the object files. | |
39841 | tmpdefFile=${D}{defFile}_% | |
39842 | rm -f ${D}tmpdefFile | |
39843 | for file in ${D}inputFiles ; do | |
39844 | case ${D}file in | |
39845 | *!) | |
39846 | ;; | |
39847 | *) | |
39848 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39849 | ;; | |
39850 | esac | |
39851 | done | |
39852 | ||
39853 | # Create the def file. | |
39854 | rm -f ${D}defFile | |
39855 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39856 | dllFile="${D}dllFile.dll" | |
1e9e8aba DE |
39857 | if [ -n ${D}description ]; then |
39858 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile | |
473276a9 VS |
39859 | fi |
39860 | echo "EXPORTS" >> ${D}defFile | |
39861 | ||
39862 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39863 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39864 | ||
39865 | # Checks if the export is ok or not. | |
39866 | for word in ${D}exclude_symbols; do | |
39867 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39868 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39869 | done | |
39870 | ||
39871 | ||
1e9e8aba DE |
39872 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
39873 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
39874 | sed ' |
39875 | N | |
39876 | : loop | |
1e9e8aba | 39877 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
39878 | t loop |
39879 | ' > ${D}{tmpdefFile}% | |
39880 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39881 | else | |
39882 | rm -f ${D}{tmpdefFile}% | |
39883 | fi | |
39884 | cat ${D}tmpdefFile >> ${D}defFile | |
39885 | rm -f ${D}tmpdefFile | |
39886 | ||
39887 | # Do linking, create implib, and apply lxlite. | |
39888 | gccCmdl=""; | |
39889 | for file in ${D}inputFiles ; do | |
39890 | case ${D}file in | |
39891 | *!) | |
39892 | ;; | |
39893 | *) | |
39894 | gccCmdl="${D}gccCmdl ${D}file" | |
39895 | ;; | |
39896 | esac | |
39897 | done | |
39898 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39899 | touch "${D}{outFile}.dll" | |
39900 | ||
39901 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 39902 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 39903 | add_flags=""; |
1e9e8aba | 39904 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
39905 | add_flags="-ynd" |
39906 | fi | |
39907 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39908 | fi | |
39909 | doCommand "emxomf -s -l ${D}arcFile" | |
39910 | ||
39911 | # Successful exit. | |
39912 | CleanUp 1 | |
39913 | exit 0 | |
39914 | EOF | |
39915 | ||
39916 | chmod +x dllar.sh | |
a848cd7e SC |
39917 | ;; |
39918 | ||
1e9e8aba | 39919 | powerpc-apple-macos* | \ |
a848cd7e SC |
39920 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
39921 | *-*-sunos4* | \ | |
39922 | *-*-osf* | \ | |
39923 | *-*-dgux5* | \ | |
39924 | *-*-sysv5* ) | |
39925 | ;; | |
39926 | ||
39927 | *) | |
39928 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39929 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39930 | { (exit 1); exit 1; }; } | |
39931 | esac | |
39932 | ||
2057db16 VS |
39933 | if test "x$PIC_FLAG" != "x" ; then |
39934 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39935 | fi | |
39936 | ||
a848cd7e SC |
39937 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39938 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39939 | fi | |
39940 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39941 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39942 | fi | |
39943 | ||
39944 | ||
39945 | ||
39946 | ||
39947 | ||
39948 | ||
39949 | ||
39950 | ||
39951 | USE_SOVERSION=0 | |
39952 | USE_SOVERLINUX=0 | |
39953 | USE_SOVERSOLARIS=0 | |
39954 | USE_SOSYMLINKS=0 | |
39955 | USE_MACVERSION=0 | |
39956 | SONAME_FLAG= | |
39957 | ||
39958 | case "${BAKEFILE_HOST}" in | |
39959 | *-*-linux* ) | |
39960 | SONAME_FLAG="-Wl,-soname," | |
39961 | USE_SOVERSION=1 | |
39962 | USE_SOVERLINUX=1 | |
39963 | USE_SOSYMLINKS=1 | |
39964 | ;; | |
39965 | ||
5f652d0d VS |
39966 | *-*-freebsd* ) |
39967 | SONAME_FLAG="-Wl,-soname," | |
39968 | USE_SOVERSION=1 | |
39969 | USE_SOVERLINUX=1 | |
39970 | USE_SOSYMLINKS=1 | |
39971 | ;; | |
39972 | ||
a848cd7e SC |
39973 | *-*-solaris2* ) |
39974 | SONAME_FLAG="-h " | |
39975 | USE_SOVERSION=1 | |
39976 | USE_SOVERSOLARIS=1 | |
39977 | USE_SOSYMLINKS=1 | |
39978 | ;; | |
39979 | ||
39980 | *-*-darwin* ) | |
39981 | USE_MACVERSION=1 | |
39982 | USE_SOVERSION=1 | |
39983 | USE_SOSYMLINKS=1 | |
39984 | ;; | |
39985 | esac | |
39986 | ||
39987 | ||
39988 | ||
39989 | ||
39990 | ||
39991 | ||
39992 | ||
39993 | ||
39994 | ||
39995 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39996 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39997 | DEPS_TRACKING=0 | |
39998 | ||
39999 | if test "x$GCC" = "xyes"; then | |
40000 | DEPSMODE=gcc | |
40001 | DEPS_TRACKING=1 | |
40002 | case "${BAKEFILE_HOST}" in | |
40003 | powerpc-*-darwin* ) | |
40004 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
40005 | ;; | |
40006 | * ) | |
40007 | DEPSFLAG_GCC="-MMD" | |
40008 | ;; | |
40009 | esac | |
40010 | echo "$as_me:$LINENO: result: gcc" >&5 | |
40011 | echo "${ECHO_T}gcc" >&6 | |
40012 | else | |
40013 | echo "$as_me:$LINENO: result: none" >&5 | |
40014 | echo "${ECHO_T}none" >&6 | |
40015 | fi | |
40016 | ||
40017 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
40018 | |
40019 | D='$' | |
40020 | cat <<EOF >bk-deps | |
a848cd7e SC |
40021 | #!/bin/sh |
40022 | ||
40023 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40024 | # script. It is used to track C/C++ files dependencies in portable way. | |
40025 | # | |
40026 | # Permission is given to use this file in any way. | |
40027 | ||
473276a9 | 40028 | DEPSMODE=${DEPSMODE} |
a848cd7e | 40029 | DEPSDIR=.deps |
473276a9 | 40030 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 40031 | |
473276a9 | 40032 | mkdir -p ${D}DEPSDIR |
a848cd7e | 40033 | |
473276a9 VS |
40034 | if test ${D}DEPSMODE = gcc ; then |
40035 | ${D}* ${D}{DEPSFLAG_GCC} | |
40036 | status=${D}? | |
40037 | if test ${D}{status} != 0 ; then | |
40038 | exit ${D}{status} | |
a848cd7e SC |
40039 | fi |
40040 | # move created file to the location we want it in: | |
473276a9 VS |
40041 | while test ${D}# -gt 0; do |
40042 | case "${D}1" in | |
a848cd7e SC |
40043 | -o ) |
40044 | shift | |
473276a9 | 40045 | objfile=${D}1 |
a848cd7e SC |
40046 | ;; |
40047 | -* ) | |
40048 | ;; | |
40049 | * ) | |
473276a9 | 40050 | srcfile=${D}1 |
a848cd7e SC |
40051 | ;; |
40052 | esac | |
40053 | shift | |
40054 | done | |
1e9e8aba DE |
40055 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
40056 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
40057 | if test -f ${D}depfile ; then |
40058 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
40059 | rm -f ${D}depfile | |
a848cd7e | 40060 | else |
1e9e8aba | 40061 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
40062 | if test -f ${D}depfile ; then |
40063 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
40064 | rm -f ${D}depfile | |
a848cd7e SC |
40065 | fi |
40066 | fi | |
40067 | exit 0 | |
40068 | else | |
473276a9 VS |
40069 | ${D}* |
40070 | exit ${D}? | |
a848cd7e SC |
40071 | fi |
40072 | EOF | |
473276a9 | 40073 | |
a848cd7e SC |
40074 | chmod +x bk-deps |
40075 | fi | |
40076 | ||
40077 | ||
40078 | ||
40079 | ||
40080 | RESCOMP= | |
40081 | SETFILE= | |
40082 | ||
40083 | case ${BAKEFILE_HOST} in | |
40084 | *-*-cygwin* | *-*-mingw32* ) | |
40085 | if test "$build" != "$host" ; then | |
40086 | RESCOMP=$host_alias-windres | |
40087 | else | |
40088 | # Extract the first word of "windres", so it can be a program name with args. | |
40089 | set dummy windres; ac_word=$2 | |
40090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40092 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
40093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40094 | else | |
40095 | if test -n "$RESCOMP"; then | |
40096 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
40097 | else | |
40098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40099 | for as_dir in $PATH | |
40100 | do | |
40101 | IFS=$as_save_IFS | |
40102 | test -z "$as_dir" && as_dir=. | |
40103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40105 | ac_cv_prog_RESCOMP="windres" | |
40106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40107 | break 2 | |
40108 | fi | |
40109 | done | |
40110 | done | |
40111 | ||
40112 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
40113 | fi | |
40114 | fi | |
40115 | RESCOMP=$ac_cv_prog_RESCOMP | |
40116 | if test -n "$RESCOMP"; then | |
40117 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
40118 | echo "${ECHO_T}$RESCOMP" >&6 | |
40119 | else | |
40120 | echo "$as_me:$LINENO: result: no" >&5 | |
40121 | echo "${ECHO_T}no" >&6 | |
40122 | fi | |
40123 | ||
40124 | fi | |
40125 | ;; | |
40126 | ||
1e9e8aba | 40127 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
40128 | # Extract the first word of "Rez", so it can be a program name with args. |
40129 | set dummy Rez; ac_word=$2 | |
40130 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40132 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
40133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40134 | else | |
40135 | if test -n "$RESCOMP"; then | |
40136 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
40137 | else | |
40138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40139 | for as_dir in $PATH | |
40140 | do | |
40141 | IFS=$as_save_IFS | |
40142 | test -z "$as_dir" && as_dir=. | |
40143 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40144 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40145 | ac_cv_prog_RESCOMP="Rez" | |
40146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40147 | break 2 | |
40148 | fi | |
40149 | done | |
40150 | done | |
40151 | ||
40152 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
40153 | fi | |
40154 | fi | |
40155 | RESCOMP=$ac_cv_prog_RESCOMP | |
40156 | if test -n "$RESCOMP"; then | |
40157 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
40158 | echo "${ECHO_T}$RESCOMP" >&6 | |
40159 | else | |
40160 | echo "$as_me:$LINENO: result: no" >&5 | |
40161 | echo "${ECHO_T}no" >&6 | |
40162 | fi | |
40163 | ||
40164 | # Extract the first word of "SetFile", so it can be a program name with args. | |
40165 | set dummy SetFile; ac_word=$2 | |
40166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40168 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
40169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40170 | else | |
40171 | if test -n "$SETFILE"; then | |
40172 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
40173 | else | |
40174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40175 | for as_dir in $PATH | |
40176 | do | |
40177 | IFS=$as_save_IFS | |
40178 | test -z "$as_dir" && as_dir=. | |
40179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40181 | ac_cv_prog_SETFILE="SetFile" | |
40182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40183 | break 2 | |
40184 | fi | |
40185 | done | |
40186 | done | |
40187 | ||
40188 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
40189 | fi | |
40190 | fi | |
40191 | SETFILE=$ac_cv_prog_SETFILE | |
40192 | if test -n "$SETFILE"; then | |
40193 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
40194 | echo "${ECHO_T}$SETFILE" >&6 | |
40195 | else | |
40196 | echo "$as_me:$LINENO: result: no" >&5 | |
40197 | echo "${ECHO_T}no" >&6 | |
40198 | fi | |
40199 | ||
40200 | ;; | |
40201 | esac | |
40202 | ||
40203 | ||
40204 | ||
40205 | ||
40206 | ||
2057db16 | 40207 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 40208 | |
dcc1b6ad | 40209 | |
9f45f08e | 40210 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 40211 | |
646b6ec1 | 40212 | |
74b84332 | 40213 | |
a848cd7e SC |
40214 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
40215 | if test "${enable_precomp_headers+set}" = set; then | |
40216 | enableval="$enable_precomp_headers" | |
40217 | bk_use_pch="$enableval" | |
40218 | fi; | |
40219 | ||
40220 | GCC_PCH=0 | |
40221 | ||
40222 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
40223 | if test "x$GCC" = "xyes"; then | |
40224 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
40225 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
40226 | cat >conftest.$ac_ext <<_ACEOF | |
40227 | /* confdefs.h. */ | |
40228 | _ACEOF | |
40229 | cat confdefs.h >>conftest.$ac_ext | |
40230 | cat >>conftest.$ac_ext <<_ACEOF | |
40231 | /* end confdefs.h. */ | |
40232 | ||
40233 | int | |
40234 | main () | |
40235 | { | |
40236 | ||
40237 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
40238 | #error "no pch support" | |
40239 | #endif | |
40240 | #if (__GNUC__ < 3) | |
40241 | #error "no pch support" | |
40242 | #endif | |
40243 | #if (__GNUC__ == 3) && \ | |
40244 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
40245 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
40246 | #error "no pch support" | |
40247 | #endif | |
40248 | ||
40249 | ; | |
40250 | return 0; | |
40251 | } | |
40252 | _ACEOF | |
40253 | rm -f conftest.$ac_objext | |
40254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40255 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40256 | ac_status=$? |
ac1cb8d3 VS |
40257 | grep -v '^ *+' conftest.er1 >conftest.err |
40258 | rm -f conftest.er1 | |
40259 | cat conftest.err >&5 | |
a848cd7e SC |
40260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40261 | (exit $ac_status); } && | |
5294a27e | 40262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40264 | (eval $ac_try) 2>&5 | |
40265 | ac_status=$? | |
40266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40267 | (exit $ac_status); }; } && | |
40268 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40270 | (eval $ac_try) 2>&5 | |
40271 | ac_status=$? | |
40272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40273 | (exit $ac_status); }; }; then | |
40274 | ||
40275 | echo "$as_me:$LINENO: result: yes" >&5 | |
40276 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
40277 | GCC_PCH=1 |
40278 | ||
40279 | else | |
40280 | echo "$as_me: failed program was:" >&5 | |
40281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40282 | ||
40283 | ||
40284 | echo "$as_me:$LINENO: result: no" >&5 | |
40285 | echo "${ECHO_T}no" >&6 | |
40286 | ||
40287 | fi | |
ac1cb8d3 | 40288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 40289 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
40290 | |
40291 | D='$' | |
40292 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
40293 | #!/bin/sh |
40294 | ||
40295 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40296 | # script. It is used to generated precompiled headers. | |
40297 | # | |
40298 | # Permission is given to use this file in any way. | |
40299 | ||
1e9e8aba DE |
40300 | outfile="${D}{1}" |
40301 | header="${D}{2}" | |
a848cd7e SC |
40302 | shift |
40303 | shift | |
40304 | ||
40305 | compiler= | |
40306 | headerfile= | |
1e9e8aba DE |
40307 | while test ${D}{#} -gt 0; do |
40308 | case "${D}{1}" in | |
a848cd7e | 40309 | -I* ) |
1e9e8aba DE |
40310 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
40311 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
40312 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
40313 | fi |
40314 | ;; | |
40315 | esac | |
1e9e8aba | 40316 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
40317 | shift |
40318 | done | |
40319 | ||
1e9e8aba DE |
40320 | if test "x${D}{headerfile}" = "x" ; then |
40321 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 40322 | else |
1e9e8aba DE |
40323 | if test -f ${D}{outfile} ; then |
40324 | rm -f ${D}{outfile} | |
a848cd7e | 40325 | else |
1e9e8aba | 40326 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 40327 | fi |
1e9e8aba | 40328 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
40329 | mkdir -p .deps |
40330 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
40331 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
40332 | exit ${D}{?} | |
a848cd7e SC |
40333 | fi |
40334 | EOF | |
1e9e8aba | 40335 | |
a848cd7e SC |
40336 | chmod +x bk-make-pch |
40337 | fi | |
40338 | fi | |
40339 | fi | |
40340 | ||
40341 | ||
40342 | ||
40343 | ||
40344 | ||
dcc1b6ad VS |
40345 | |
40346 | ||
40347 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
40348 | if test "${enable_precomp_headers+set}" = set; then | |
40349 | enableval="$enable_precomp_headers" | |
40350 | bk_use_pch="$enableval" | |
40351 | fi; | |
40352 | ||
40353 | GCC_PCH=0 | |
40354 | ||
40355 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
40356 | if test "x$GCC" = "xyes"; then | |
40357 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
40358 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
40359 | cat >conftest.$ac_ext <<_ACEOF | |
40360 | /* confdefs.h. */ | |
40361 | _ACEOF | |
40362 | cat confdefs.h >>conftest.$ac_ext | |
40363 | cat >>conftest.$ac_ext <<_ACEOF | |
40364 | /* end confdefs.h. */ | |
40365 | ||
40366 | int | |
40367 | main () | |
40368 | { | |
40369 | ||
40370 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
40371 | #error "no pch support" | |
40372 | #endif | |
40373 | #if (__GNUC__ < 3) | |
40374 | #error "no pch support" | |
40375 | #endif | |
40376 | #if (__GNUC__ == 3) && \ | |
40377 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
40378 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
40379 | #error "no pch support" | |
40380 | #endif | |
40381 | ||
40382 | ; | |
40383 | return 0; | |
40384 | } | |
40385 | _ACEOF | |
40386 | rm -f conftest.$ac_objext | |
40387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40388 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 40389 | ac_status=$? |
ac1cb8d3 VS |
40390 | grep -v '^ *+' conftest.er1 >conftest.err |
40391 | rm -f conftest.er1 | |
40392 | cat conftest.err >&5 | |
dcc1b6ad VS |
40393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40394 | (exit $ac_status); } && | |
5294a27e | 40395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40397 | (eval $ac_try) 2>&5 | |
40398 | ac_status=$? | |
40399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40400 | (exit $ac_status); }; } && | |
40401 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
40402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40403 | (eval $ac_try) 2>&5 | |
40404 | ac_status=$? | |
40405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40406 | (exit $ac_status); }; }; then | |
40407 | ||
40408 | echo "$as_me:$LINENO: result: yes" >&5 | |
40409 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
40410 | GCC_PCH=1 |
40411 | ||
40412 | else | |
40413 | echo "$as_me: failed program was:" >&5 | |
40414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40415 | ||
40416 | ||
40417 | echo "$as_me:$LINENO: result: no" >&5 | |
40418 | echo "${ECHO_T}no" >&6 | |
40419 | ||
40420 | fi | |
ac1cb8d3 | 40421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad | 40422 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
40423 | |
40424 | D='$' | |
40425 | cat <<EOF >bk-make-pch | |
dcc1b6ad VS |
40426 | #!/bin/sh |
40427 | ||
40428 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40429 | # script. It is used to generated precompiled headers. | |
40430 | # | |
40431 | # Permission is given to use this file in any way. | |
40432 | ||
1e9e8aba DE |
40433 | outfile="${D}{1}" |
40434 | header="${D}{2}" | |
dcc1b6ad VS |
40435 | shift |
40436 | shift | |
40437 | ||
40438 | compiler= | |
40439 | headerfile= | |
1e9e8aba DE |
40440 | while test ${D}{#} -gt 0; do |
40441 | case "${D}{1}" in | |
dcc1b6ad | 40442 | -I* ) |
1e9e8aba DE |
40443 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
40444 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
40445 | headerfile="${D}{incdir}/${D}{header}" | |
dcc1b6ad VS |
40446 | fi |
40447 | ;; | |
40448 | esac | |
1e9e8aba | 40449 | compiler="${D}{compiler} ${D}{1}" |
dcc1b6ad VS |
40450 | shift |
40451 | done | |
40452 | ||
1e9e8aba DE |
40453 | if test "x${D}{headerfile}" = "x" ; then |
40454 | echo "error: can't find header ${D}{header} in include paths" >2 | |
dcc1b6ad | 40455 | else |
1e9e8aba DE |
40456 | if test -f ${D}{outfile} ; then |
40457 | rm -f ${D}{outfile} | |
dcc1b6ad | 40458 | else |
1e9e8aba | 40459 | mkdir -p \`dirname ${D}{outfile}\` |
dcc1b6ad | 40460 | fi |
1e9e8aba | 40461 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
dcc1b6ad VS |
40462 | mkdir -p .deps |
40463 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
40464 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
40465 | exit ${D}{?} | |
dcc1b6ad VS |
40466 | fi |
40467 | EOF | |
1e9e8aba | 40468 | |
dcc1b6ad VS |
40469 | chmod +x bk-make-pch |
40470 | fi | |
40471 | fi | |
40472 | fi | |
40473 | ||
40474 | ||
40475 | ||
a848cd7e SC |
40476 | COND_BUILD_DEBUG="#" |
40477 | if test "x$BUILD" = "xdebug" ; then | |
40478 | COND_BUILD_DEBUG="" | |
40479 | fi | |
40480 | ||
40481 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40482 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40483 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40484 | fi | |
40485 | ||
40486 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40487 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40488 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40489 | fi | |
40490 | ||
40491 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40492 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40493 | COND_BUILD_DEBUG_UNICODE_0="" | |
40494 | fi | |
40495 | ||
40496 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40497 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40498 | COND_BUILD_DEBUG_UNICODE_1="" | |
40499 | fi | |
40500 | ||
40501 | COND_BUILD_RELEASE="#" | |
40502 | if test "x$BUILD" = "xrelease" ; then | |
40503 | COND_BUILD_RELEASE="" | |
40504 | fi | |
40505 | ||
40506 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40507 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40508 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40509 | fi | |
40510 | ||
40511 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40512 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40513 | COND_BUILD_RELEASE_UNICODE_0="" | |
40514 | fi | |
40515 | ||
40516 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40517 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40518 | COND_BUILD_RELEASE_UNICODE_1="" | |
40519 | fi | |
40520 | ||
40521 | COND_DEBUG_FLAG_1="#" | |
40522 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40523 | COND_DEBUG_FLAG_1="" | |
40524 | fi | |
40525 | ||
40526 | COND_DEBUG_INFO_0="#" | |
40527 | if test "x$DEBUG_INFO" = "x0" ; then | |
40528 | COND_DEBUG_INFO_0="" | |
40529 | fi | |
40530 | ||
40531 | COND_DEBUG_INFO_1="#" | |
40532 | if test "x$DEBUG_INFO" = "x1" ; then | |
40533 | COND_DEBUG_INFO_1="" | |
40534 | fi | |
40535 | ||
40536 | COND_DEPS_TRACKING_0="#" | |
40537 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40538 | COND_DEPS_TRACKING_0="" | |
40539 | fi | |
40540 | ||
40541 | COND_DEPS_TRACKING_1="#" | |
40542 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40543 | COND_DEPS_TRACKING_1="" | |
40544 | fi | |
40545 | ||
40546 | COND_GCC_PCH_1="#" | |
40547 | if test "x$GCC_PCH" = "x1" ; then | |
40548 | COND_GCC_PCH_1="" | |
40549 | fi | |
40550 | ||
40551 | COND_MONOLITHIC_0="#" | |
40552 | if test "x$MONOLITHIC" = "x0" ; then | |
40553 | COND_MONOLITHIC_0="" | |
40554 | fi | |
40555 | ||
40556 | COND_MONOLITHIC_0_SHARED_0="#" | |
40557 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40558 | COND_MONOLITHIC_0_SHARED_0="" | |
40559 | fi | |
40560 | ||
40561 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40562 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40563 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40564 | fi | |
40565 | ||
40566 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40567 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40568 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40569 | fi | |
40570 | ||
40571 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40572 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40573 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40574 | fi | |
40575 | ||
40576 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40577 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40578 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40579 | fi | |
40580 | ||
ceec2216 RL |
40581 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40582 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40583 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40584 | fi | |
40585 | ||
a848cd7e SC |
40586 | COND_MONOLITHIC_0_SHARED_1="#" |
40587 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40588 | COND_MONOLITHIC_0_SHARED_1="" | |
40589 | fi | |
40590 | ||
40591 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40592 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40593 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40594 | fi | |
40595 | ||
40596 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40597 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40598 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40599 | fi | |
40600 | ||
40601 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40602 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40603 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40604 | fi | |
40605 | ||
40606 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40607 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40608 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40609 | fi | |
40610 | ||
ceec2216 RL |
40611 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40612 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40613 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40614 | fi | |
40615 | ||
a848cd7e SC |
40616 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40617 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40618 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40619 | fi | |
40620 | ||
40621 | COND_MONOLITHIC_1="#" | |
40622 | if test "x$MONOLITHIC" = "x1" ; then | |
40623 | COND_MONOLITHIC_1="" | |
40624 | fi | |
40625 | ||
40626 | COND_MONOLITHIC_1_SHARED_0="#" | |
40627 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40628 | COND_MONOLITHIC_1_SHARED_0="" | |
40629 | fi | |
40630 | ||
40631 | COND_MONOLITHIC_1_SHARED_1="#" | |
40632 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40633 | COND_MONOLITHIC_1_SHARED_1="" | |
40634 | fi | |
40635 | ||
40636 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40637 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40638 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40639 | fi | |
40640 | ||
40641 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40642 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40643 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40644 | fi | |
40645 | ||
40646 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40647 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40648 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40649 | fi | |
40650 | ||
40651 | COND_PLATFORM_MACOSX_1="#" | |
40652 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40653 | COND_PLATFORM_MACOSX_1="" | |
40654 | fi | |
40655 | ||
a30f955f VS |
40656 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
40657 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
40658 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
40659 | fi | |
40660 | ||
a848cd7e SC |
40661 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
40662 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40663 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40664 | fi | |
40665 | ||
40666 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40667 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40668 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40669 | fi | |
40670 | ||
40671 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40672 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40673 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40674 | fi | |
40675 | ||
fc480dc1 DE |
40676 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
40677 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40678 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
40679 | fi | |
40680 | ||
1e9e8aba DE |
40681 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
40682 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40683 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40684 | fi | |
40685 | ||
ebee3cd0 VS |
40686 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40687 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40688 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40689 | fi | |
40690 | ||
40691 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40692 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40693 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40694 | fi | |
40695 | ||
a848cd7e SC |
40696 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40697 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40698 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40699 | fi | |
40700 | ||
40701 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40702 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40703 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40704 | fi | |
40705 | ||
b48a2016 DE |
40706 | COND_PLATFORM_MACOS_1="#" |
40707 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
40708 | COND_PLATFORM_MACOS_1="" | |
40709 | fi | |
40710 | ||
a848cd7e SC |
40711 | COND_PLATFORM_MAC_1="#" |
40712 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40713 | COND_PLATFORM_MAC_1="" | |
40714 | fi | |
40715 | ||
40716 | COND_PLATFORM_OS2_1="#" | |
40717 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40718 | COND_PLATFORM_OS2_1="" | |
40719 | fi | |
40720 | ||
40721 | COND_PLATFORM_UNIX_0="#" | |
40722 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40723 | COND_PLATFORM_UNIX_0="" | |
40724 | fi | |
40725 | ||
40726 | COND_PLATFORM_UNIX_1="#" | |
40727 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40728 | COND_PLATFORM_UNIX_1="" | |
40729 | fi | |
40730 | ||
40731 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40732 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40733 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40734 | fi | |
40735 | ||
40736 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40737 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40738 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40739 | fi | |
40740 | ||
40741 | COND_PLATFORM_WIN32_0="#" | |
40742 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40743 | COND_PLATFORM_WIN32_0="" | |
40744 | fi | |
40745 | ||
40746 | COND_PLATFORM_WIN32_1="#" | |
40747 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40748 | COND_PLATFORM_WIN32_1="" | |
40749 | fi | |
40750 | ||
40751 | COND_SHARED_0="#" | |
40752 | if test "x$SHARED" = "x0" ; then | |
40753 | COND_SHARED_0="" | |
40754 | fi | |
40755 | ||
ceec2216 RL |
40756 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40757 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40758 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40759 | fi | |
40760 | ||
40761 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40762 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40763 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40764 | fi | |
40765 | ||
40766 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40767 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40768 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40769 | fi | |
40770 | ||
a848cd7e SC |
40771 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40772 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40773 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40774 | fi | |
40775 | ||
40776 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40777 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40778 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40779 | fi | |
40780 | ||
40781 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40782 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40783 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40784 | fi | |
40785 | ||
40786 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40787 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40788 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40789 | fi | |
40790 | ||
40791 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40792 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40793 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40794 | fi | |
40795 | ||
40796 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40797 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40798 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40799 | fi | |
40800 | ||
40801 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40802 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40803 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40804 | fi | |
40805 | ||
40806 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40807 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40808 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40809 | fi | |
40810 | ||
40811 | COND_SHARED_1="#" | |
40812 | if test "x$SHARED" = "x1" ; then | |
40813 | COND_SHARED_1="" | |
40814 | fi | |
40815 | ||
40816 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40817 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40818 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40819 | fi | |
40820 | ||
a30f955f VS |
40821 | COND_TOOLKIT_="#" |
40822 | if test "x$TOOLKIT" = "x" ; then | |
40823 | COND_TOOLKIT_="" | |
40824 | fi | |
40825 | ||
a848cd7e SC |
40826 | COND_TOOLKIT_COCOA="#" |
40827 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40828 | COND_TOOLKIT_COCOA="" | |
40829 | fi | |
40830 | ||
a49baeab DE |
40831 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
40832 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
40833 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
40834 | fi | |
40835 | ||
a848cd7e SC |
40836 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
40837 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40838 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40839 | fi | |
40840 | ||
40841 | COND_TOOLKIT_GTK="#" | |
40842 | if test "x$TOOLKIT" = "xGTK" ; then | |
40843 | COND_TOOLKIT_GTK="" | |
40844 | fi | |
40845 | ||
40846 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40847 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40848 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40849 | fi | |
40850 | ||
40851 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40852 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40853 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40854 | fi | |
40855 | ||
40856 | COND_TOOLKIT_MAC="#" | |
40857 | if test "x$TOOLKIT" = "xMAC" ; then | |
40858 | COND_TOOLKIT_MAC="" | |
40859 | fi | |
40860 | ||
40861 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40862 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40863 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40864 | fi | |
40865 | ||
40866 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40867 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40868 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40869 | fi | |
40870 | ||
40871 | COND_TOOLKIT_MGL="#" | |
40872 | if test "x$TOOLKIT" = "xMGL" ; then | |
40873 | COND_TOOLKIT_MGL="" | |
40874 | fi | |
40875 | ||
40876 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40877 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40878 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40879 | fi | |
40880 | ||
40881 | COND_TOOLKIT_MOTIF="#" | |
40882 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40883 | COND_TOOLKIT_MOTIF="" | |
40884 | fi | |
40885 | ||
40886 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40887 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40888 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40889 | fi | |
40890 | ||
40891 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40892 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40893 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40894 | fi | |
40895 | ||
40896 | COND_TOOLKIT_MSW="#" | |
40897 | if test "x$TOOLKIT" = "xMSW" ; then | |
40898 | COND_TOOLKIT_MSW="" | |
40899 | fi | |
40900 | ||
40901 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40902 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40903 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40904 | fi | |
40905 | ||
40906 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40907 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40908 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40909 | fi | |
40910 | ||
40911 | COND_TOOLKIT_PM="#" | |
40912 | if test "x$TOOLKIT" = "xPM" ; then | |
40913 | COND_TOOLKIT_PM="" | |
40914 | fi | |
40915 | ||
40916 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40917 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40918 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40919 | fi | |
40920 | ||
40921 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40922 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40923 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40924 | fi | |
40925 | ||
3fd9c298 DE |
40926 | COND_TOOLKIT_WINCE="#" |
40927 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40928 | COND_TOOLKIT_WINCE="" | |
40929 | fi | |
40930 | ||
40931 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40932 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40933 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40934 | fi | |
40935 | ||
40936 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40937 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40938 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40939 | fi | |
40940 | ||
a848cd7e SC |
40941 | COND_TOOLKIT_X11="#" |
40942 | if test "x$TOOLKIT" = "xX11" ; then | |
40943 | COND_TOOLKIT_X11="" | |
40944 | fi | |
40945 | ||
40946 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40947 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40948 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40949 | fi | |
40950 | ||
40951 | COND_UNICODE_1="#" | |
40952 | if test "x$UNICODE" = "x1" ; then | |
40953 | COND_UNICODE_1="" | |
40954 | fi | |
40955 | ||
40956 | COND_USE_EXCEPTIONS_0="#" | |
40957 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40958 | COND_USE_EXCEPTIONS_0="" | |
40959 | fi | |
40960 | ||
40961 | COND_USE_EXCEPTIONS_1="#" | |
40962 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40963 | COND_USE_EXCEPTIONS_1="" | |
40964 | fi | |
40965 | ||
40966 | COND_USE_GUI_0="#" | |
40967 | if test "x$USE_GUI" = "x0" ; then | |
40968 | COND_USE_GUI_0="" | |
40969 | fi | |
40970 | ||
40971 | COND_USE_GUI_1="#" | |
40972 | if test "x$USE_GUI" = "x1" ; then | |
40973 | COND_USE_GUI_1="" | |
40974 | fi | |
40975 | ||
40976 | COND_USE_GUI_1_WXUNIV_0="#" | |
40977 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40978 | COND_USE_GUI_1_WXUNIV_0="" | |
40979 | fi | |
40980 | ||
40981 | COND_USE_GUI_1_WXUNIV_1="#" | |
40982 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40983 | COND_USE_GUI_1_WXUNIV_1="" | |
40984 | fi | |
40985 | ||
40986 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40987 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40988 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40989 | fi | |
40990 | ||
40991 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40992 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40993 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40994 | fi | |
40995 | ||
40996 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40997 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40998 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40999 | fi | |
41000 | ||
ceec2216 RL |
41001 | COND_USE_ODBC_1="#" |
41002 | if test "x$USE_ODBC" = "x1" ; then | |
41003 | COND_USE_ODBC_1="" | |
41004 | fi | |
41005 | ||
ffa0583f RL |
41006 | COND_USE_OPENGL_1="#" |
41007 | if test "x$USE_OPENGL" = "x1" ; then | |
41008 | COND_USE_OPENGL_1="" | |
41009 | fi | |
41010 | ||
a848cd7e SC |
41011 | COND_USE_PLUGINS_0="#" |
41012 | if test "x$USE_PLUGINS" = "x0" ; then | |
41013 | COND_USE_PLUGINS_0="" | |
41014 | fi | |
41015 | ||
41016 | COND_USE_SOSYMLINKS_1="#" | |
41017 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41018 | COND_USE_SOSYMLINKS_1="" | |
41019 | fi | |
41020 | ||
41021 | COND_USE_SOVERLINUX_1="#" | |
41022 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41023 | COND_USE_SOVERLINUX_1="" | |
41024 | fi | |
41025 | ||
41026 | COND_USE_SOVERSION_0="#" | |
41027 | if test "x$USE_SOVERSION" = "x0" ; then | |
41028 | COND_USE_SOVERSION_0="" | |
41029 | fi | |
41030 | ||
41031 | COND_USE_SOVERSOLARIS_1="#" | |
41032 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41033 | COND_USE_SOVERSOLARIS_1="" | |
41034 | fi | |
41035 | ||
a13a7f89 RL |
41036 | COND_USE_XRC_1="#" |
41037 | if test "x$USE_XRC" = "x1" ; then | |
41038 | COND_USE_XRC_1="" | |
41039 | fi | |
41040 | ||
a848cd7e SC |
41041 | COND_WITH_PLUGIN_SDL_1="#" |
41042 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41043 | COND_WITH_PLUGIN_SDL_1="" | |
41044 | fi | |
41045 | ||
a848cd7e SC |
41046 | COND_WXUNIV_1="#" |
41047 | if test "x$WXUNIV" = "x1" ; then | |
41048 | COND_WXUNIV_1="" | |
41049 | fi | |
41050 | ||
41051 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41052 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41053 | COND_WXUSE_EXPAT_BUILTIN="" | |
41054 | fi | |
41055 | ||
41056 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41057 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41058 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41059 | fi | |
41060 | ||
41061 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41062 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41063 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41064 | fi | |
41065 | ||
41066 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41067 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41068 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41069 | fi | |
41070 | ||
41071 | COND_WXUSE_ODBC_BUILTIN="#" | |
41072 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41073 | COND_WXUSE_ODBC_BUILTIN="" | |
41074 | fi | |
41075 | ||
41076 | COND_WXUSE_REGEX_BUILTIN="#" | |
41077 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41078 | COND_WXUSE_REGEX_BUILTIN="" | |
41079 | fi | |
41080 | ||
41081 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41082 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41083 | COND_WXUSE_ZLIB_BUILTIN="" | |
41084 | fi | |
41085 | ||
dcc1b6ad VS |
41086 | COND_BUILD_DEBUG="#" |
41087 | if test "x$BUILD" = "xdebug" ; then | |
41088 | COND_BUILD_DEBUG="" | |
41089 | fi | |
41090 | ||
41091 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
41092 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
41093 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
41094 | fi | |
41095 | ||
41096 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
41097 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41098 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
41099 | fi | |
41100 | ||
41101 | COND_BUILD_DEBUG_UNICODE_0="#" | |
41102 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
41103 | COND_BUILD_DEBUG_UNICODE_0="" | |
41104 | fi | |
41105 | ||
41106 | COND_BUILD_DEBUG_UNICODE_1="#" | |
41107 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
41108 | COND_BUILD_DEBUG_UNICODE_1="" | |
41109 | fi | |
41110 | ||
41111 | COND_BUILD_RELEASE="#" | |
41112 | if test "x$BUILD" = "xrelease" ; then | |
41113 | COND_BUILD_RELEASE="" | |
41114 | fi | |
41115 | ||
41116 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
41117 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41118 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
41119 | fi | |
41120 | ||
41121 | COND_BUILD_RELEASE_UNICODE_0="#" | |
41122 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
41123 | COND_BUILD_RELEASE_UNICODE_0="" | |
41124 | fi | |
41125 | ||
41126 | COND_BUILD_RELEASE_UNICODE_1="#" | |
41127 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
41128 | COND_BUILD_RELEASE_UNICODE_1="" | |
41129 | fi | |
41130 | ||
41131 | COND_DEBUG_FLAG_1="#" | |
41132 | if test "x$DEBUG_FLAG" = "x1" ; then | |
41133 | COND_DEBUG_FLAG_1="" | |
41134 | fi | |
41135 | ||
41136 | COND_DEBUG_INFO_0="#" | |
41137 | if test "x$DEBUG_INFO" = "x0" ; then | |
41138 | COND_DEBUG_INFO_0="" | |
41139 | fi | |
41140 | ||
41141 | COND_DEBUG_INFO_1="#" | |
41142 | if test "x$DEBUG_INFO" = "x1" ; then | |
41143 | COND_DEBUG_INFO_1="" | |
41144 | fi | |
41145 | ||
41146 | COND_DEPS_TRACKING_0="#" | |
41147 | if test "x$DEPS_TRACKING" = "x0" ; then | |
41148 | COND_DEPS_TRACKING_0="" | |
41149 | fi | |
41150 | ||
41151 | COND_DEPS_TRACKING_1="#" | |
41152 | if test "x$DEPS_TRACKING" = "x1" ; then | |
41153 | COND_DEPS_TRACKING_1="" | |
41154 | fi | |
41155 | ||
41156 | COND_GCC_PCH_1="#" | |
41157 | if test "x$GCC_PCH" = "x1" ; then | |
41158 | COND_GCC_PCH_1="" | |
41159 | fi | |
41160 | ||
41161 | COND_MONOLITHIC_0="#" | |
41162 | if test "x$MONOLITHIC" = "x0" ; then | |
41163 | COND_MONOLITHIC_0="" | |
41164 | fi | |
41165 | ||
41166 | COND_MONOLITHIC_0_SHARED_0="#" | |
41167 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
41168 | COND_MONOLITHIC_0_SHARED_0="" | |
41169 | fi | |
41170 | ||
41171 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
41172 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
41173 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
41174 | fi | |
41175 | ||
6ab3c239 VZ |
41176 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
41177 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41178 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
41179 | fi | |
41180 | ||
dcc1b6ad VS |
41181 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
41182 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41183 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
41184 | fi | |
41185 | ||
41186 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
41187 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
41188 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
41189 | fi | |
41190 | ||
41191 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
41192 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41193 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
41194 | fi | |
41195 | ||
9a8f0513 VS |
41196 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
41197 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
41198 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
41199 | fi | |
41200 | ||
dcc1b6ad VS |
41201 | COND_MONOLITHIC_0_SHARED_1="#" |
41202 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
41203 | COND_MONOLITHIC_0_SHARED_1="" | |
41204 | fi | |
41205 | ||
41206 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
41207 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41208 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
41209 | fi | |
41210 | ||
6ab3c239 VZ |
41211 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
41212 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41213 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
41214 | fi | |
41215 | ||
dcc1b6ad VS |
41216 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
41217 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41218 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
41219 | fi | |
41220 | ||
41221 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
41222 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41223 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
41224 | fi | |
41225 | ||
41226 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
41227 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41228 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
41229 | fi | |
41230 | ||
9a8f0513 VS |
41231 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
41232 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
41233 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
41234 | fi | |
41235 | ||
dcc1b6ad VS |
41236 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
41237 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41238 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
41239 | fi | |
41240 | ||
41241 | COND_MONOLITHIC_1="#" | |
41242 | if test "x$MONOLITHIC" = "x1" ; then | |
41243 | COND_MONOLITHIC_1="" | |
41244 | fi | |
41245 | ||
41246 | COND_MONOLITHIC_1_SHARED_0="#" | |
41247 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
41248 | COND_MONOLITHIC_1_SHARED_0="" | |
41249 | fi | |
41250 | ||
41251 | COND_MONOLITHIC_1_SHARED_1="#" | |
41252 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
41253 | COND_MONOLITHIC_1_SHARED_1="" | |
41254 | fi | |
41255 | ||
41256 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
41257 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41258 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
41259 | fi | |
41260 | ||
41261 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
41262 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
41263 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
41264 | fi | |
41265 | ||
41266 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
41267 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
41268 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
41269 | fi | |
41270 | ||
41271 | COND_PLATFORM_MACOSX_1="#" | |
41272 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
41273 | COND_PLATFORM_MACOSX_1="" | |
41274 | fi | |
41275 | ||
6ab3c239 VZ |
41276 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
41277 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
41278 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
41279 | fi | |
41280 | ||
dcc1b6ad VS |
41281 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
41282 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
41283 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
41284 | fi | |
41285 | ||
41286 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
41287 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
41288 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
41289 | fi | |
41290 | ||
41291 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
41292 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
41293 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
41294 | fi | |
41295 | ||
6ab3c239 VZ |
41296 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
41297 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41298 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
41299 | fi | |
41300 | ||
41301 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41302 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41303 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41304 | fi | |
41305 | ||
9a8f0513 VS |
41306 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
41307 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
41308 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
41309 | fi | |
41310 | ||
41311 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
41312 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
41313 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
41314 | fi | |
41315 | ||
dcc1b6ad VS |
41316 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
41317 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41318 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
41319 | fi | |
41320 | ||
41321 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
41322 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
41323 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
41324 | fi | |
41325 | ||
6ab3c239 VZ |
41326 | COND_PLATFORM_MACOS_1="#" |
41327 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
41328 | COND_PLATFORM_MACOS_1="" | |
41329 | fi | |
41330 | ||
dcc1b6ad VS |
41331 | COND_PLATFORM_MAC_1="#" |
41332 | if test "x$PLATFORM_MAC" = "x1" ; then | |
41333 | COND_PLATFORM_MAC_1="" | |
41334 | fi | |
41335 | ||
41336 | COND_PLATFORM_OS2_1="#" | |
41337 | if test "x$PLATFORM_OS2" = "x1" ; then | |
41338 | COND_PLATFORM_OS2_1="" | |
41339 | fi | |
41340 | ||
41341 | COND_PLATFORM_UNIX_0="#" | |
41342 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
41343 | COND_PLATFORM_UNIX_0="" | |
41344 | fi | |
41345 | ||
41346 | COND_PLATFORM_UNIX_1="#" | |
41347 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
41348 | COND_PLATFORM_UNIX_1="" | |
41349 | fi | |
41350 | ||
41351 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
41352 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41353 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
41354 | fi | |
41355 | ||
41356 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
41357 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
41358 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
41359 | fi | |
41360 | ||
41361 | COND_PLATFORM_WIN32_0="#" | |
41362 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
41363 | COND_PLATFORM_WIN32_0="" | |
41364 | fi | |
41365 | ||
41366 | COND_PLATFORM_WIN32_1="#" | |
41367 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
41368 | COND_PLATFORM_WIN32_1="" | |
41369 | fi | |
41370 | ||
41371 | COND_SHARED_0="#" | |
41372 | if test "x$SHARED" = "x0" ; then | |
41373 | COND_SHARED_0="" | |
41374 | fi | |
41375 | ||
41376 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
41377 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41378 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41379 | fi | |
41380 | ||
41381 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41382 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41383 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41384 | fi | |
41385 | ||
41386 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41387 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41388 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41389 | fi | |
41390 | ||
41391 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41392 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41393 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41394 | fi | |
41395 | ||
41396 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41397 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41398 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41399 | fi | |
41400 | ||
41401 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41402 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41403 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41404 | fi | |
41405 | ||
41406 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41407 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41408 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41409 | fi | |
41410 | ||
41411 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41412 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41413 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41414 | fi | |
41415 | ||
41416 | COND_SHARED_1="#" | |
41417 | if test "x$SHARED" = "x1" ; then | |
41418 | COND_SHARED_1="" | |
41419 | fi | |
41420 | ||
41421 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41422 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41423 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41424 | fi | |
41425 | ||
6ab3c239 VZ |
41426 | COND_TOOLKIT_="#" |
41427 | if test "x$TOOLKIT" = "x" ; then | |
41428 | COND_TOOLKIT_="" | |
41429 | fi | |
41430 | ||
dcc1b6ad VS |
41431 | COND_TOOLKIT_COCOA="#" |
41432 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41433 | COND_TOOLKIT_COCOA="" | |
41434 | fi | |
41435 | ||
6ab3c239 VZ |
41436 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
41437 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
41438 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
41439 | fi | |
41440 | ||
dcc1b6ad VS |
41441 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
41442 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41443 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41444 | fi | |
41445 | ||
41446 | COND_TOOLKIT_GTK="#" | |
41447 | if test "x$TOOLKIT" = "xGTK" ; then | |
41448 | COND_TOOLKIT_GTK="" | |
41449 | fi | |
41450 | ||
41451 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41452 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41453 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41454 | fi | |
41455 | ||
41456 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41457 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41458 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41459 | fi | |
41460 | ||
41461 | COND_TOOLKIT_MAC="#" | |
41462 | if test "x$TOOLKIT" = "xMAC" ; then | |
41463 | COND_TOOLKIT_MAC="" | |
41464 | fi | |
41465 | ||
41466 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41467 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41468 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41469 | fi | |
41470 | ||
41471 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41472 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41473 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41474 | fi | |
41475 | ||
9a8f0513 VS |
41476 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
41477 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
41478 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
41479 | fi | |
41480 | ||
dcc1b6ad VS |
41481 | COND_TOOLKIT_MGL="#" |
41482 | if test "x$TOOLKIT" = "xMGL" ; then | |
41483 | COND_TOOLKIT_MGL="" | |
41484 | fi | |
41485 | ||
41486 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41487 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41488 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41489 | fi | |
41490 | ||
41491 | COND_TOOLKIT_MOTIF="#" | |
41492 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41493 | COND_TOOLKIT_MOTIF="" | |
41494 | fi | |
41495 | ||
41496 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41497 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41498 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41499 | fi | |
41500 | ||
41501 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41502 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41503 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41504 | fi | |
41505 | ||
41506 | COND_TOOLKIT_MSW="#" | |
41507 | if test "x$TOOLKIT" = "xMSW" ; then | |
41508 | COND_TOOLKIT_MSW="" | |
41509 | fi | |
41510 | ||
41511 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41512 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41513 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41514 | fi | |
41515 | ||
41516 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41517 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41518 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41519 | fi | |
41520 | ||
9a8f0513 VS |
41521 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
41522 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
41523 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
41524 | fi | |
41525 | ||
dcc1b6ad VS |
41526 | COND_TOOLKIT_PM="#" |
41527 | if test "x$TOOLKIT" = "xPM" ; then | |
41528 | COND_TOOLKIT_PM="" | |
41529 | fi | |
41530 | ||
41531 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41532 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41533 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41534 | fi | |
41535 | ||
41536 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41537 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41538 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41539 | fi | |
41540 | ||
9a8f0513 VS |
41541 | COND_TOOLKIT_PM_WXUNIV_0="#" |
41542 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
41543 | COND_TOOLKIT_PM_WXUNIV_0="" | |
41544 | fi | |
41545 | ||
dcc1b6ad VS |
41546 | COND_TOOLKIT_WINCE="#" |
41547 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41548 | COND_TOOLKIT_WINCE="" | |
41549 | fi | |
41550 | ||
41551 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41552 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41553 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41554 | fi | |
41555 | ||
41556 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41557 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41558 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41559 | fi | |
41560 | ||
41561 | COND_TOOLKIT_X11="#" | |
41562 | if test "x$TOOLKIT" = "xX11" ; then | |
41563 | COND_TOOLKIT_X11="" | |
41564 | fi | |
41565 | ||
41566 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41567 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41568 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41569 | fi | |
41570 | ||
41571 | COND_UNICODE_1="#" | |
41572 | if test "x$UNICODE" = "x1" ; then | |
41573 | COND_UNICODE_1="" | |
41574 | fi | |
41575 | ||
41576 | COND_USE_EXCEPTIONS_0="#" | |
41577 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41578 | COND_USE_EXCEPTIONS_0="" | |
41579 | fi | |
41580 | ||
41581 | COND_USE_EXCEPTIONS_1="#" | |
41582 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41583 | COND_USE_EXCEPTIONS_1="" | |
41584 | fi | |
41585 | ||
41586 | COND_USE_GUI_0="#" | |
41587 | if test "x$USE_GUI" = "x0" ; then | |
41588 | COND_USE_GUI_0="" | |
41589 | fi | |
41590 | ||
41591 | COND_USE_GUI_1="#" | |
41592 | if test "x$USE_GUI" = "x1" ; then | |
41593 | COND_USE_GUI_1="" | |
41594 | fi | |
41595 | ||
41596 | COND_USE_GUI_1_WXUNIV_0="#" | |
41597 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41598 | COND_USE_GUI_1_WXUNIV_0="" | |
41599 | fi | |
41600 | ||
41601 | COND_USE_GUI_1_WXUNIV_1="#" | |
41602 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41603 | COND_USE_GUI_1_WXUNIV_1="" | |
41604 | fi | |
41605 | ||
41606 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41607 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41608 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41609 | fi | |
41610 | ||
41611 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41612 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41613 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41614 | fi | |
41615 | ||
41616 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41617 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41618 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41619 | fi | |
41620 | ||
41621 | COND_USE_ODBC_1="#" | |
41622 | if test "x$USE_ODBC" = "x1" ; then | |
41623 | COND_USE_ODBC_1="" | |
41624 | fi | |
41625 | ||
41626 | COND_USE_PLUGINS_0="#" | |
41627 | if test "x$USE_PLUGINS" = "x0" ; then | |
41628 | COND_USE_PLUGINS_0="" | |
41629 | fi | |
41630 | ||
41631 | COND_USE_SOSYMLINKS_1="#" | |
41632 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41633 | COND_USE_SOSYMLINKS_1="" | |
41634 | fi | |
41635 | ||
41636 | COND_USE_SOVERLINUX_1="#" | |
41637 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41638 | COND_USE_SOVERLINUX_1="" | |
41639 | fi | |
41640 | ||
41641 | COND_USE_SOVERSION_0="#" | |
41642 | if test "x$USE_SOVERSION" = "x0" ; then | |
41643 | COND_USE_SOVERSION_0="" | |
41644 | fi | |
41645 | ||
41646 | COND_USE_SOVERSOLARIS_1="#" | |
41647 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41648 | COND_USE_SOVERSOLARIS_1="" | |
41649 | fi | |
41650 | ||
6ab3c239 VZ |
41651 | COND_USE_XRC_1="#" |
41652 | if test "x$USE_XRC" = "x1" ; then | |
41653 | COND_USE_XRC_1="" | |
41654 | fi | |
41655 | ||
dcc1b6ad VS |
41656 | COND_WITH_PLUGIN_SDL_1="#" |
41657 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41658 | COND_WITH_PLUGIN_SDL_1="" | |
41659 | fi | |
41660 | ||
41661 | COND_WXUNIV_1="#" | |
41662 | if test "x$WXUNIV" = "x1" ; then | |
41663 | COND_WXUNIV_1="" | |
41664 | fi | |
41665 | ||
41666 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41667 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41668 | COND_WXUSE_EXPAT_BUILTIN="" | |
41669 | fi | |
41670 | ||
41671 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41672 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41673 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41674 | fi | |
41675 | ||
41676 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41677 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41678 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41679 | fi | |
41680 | ||
41681 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41682 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41683 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41684 | fi | |
41685 | ||
41686 | COND_WXUSE_ODBC_BUILTIN="#" | |
41687 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41688 | COND_WXUSE_ODBC_BUILTIN="" | |
41689 | fi | |
41690 | ||
41691 | COND_WXUSE_REGEX_BUILTIN="#" | |
41692 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41693 | COND_WXUSE_REGEX_BUILTIN="" | |
41694 | fi | |
41695 | ||
41696 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41697 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41698 | COND_WXUSE_ZLIB_BUILTIN="" | |
41699 | fi | |
41700 | ||
a848cd7e SC |
41701 | |
41702 | ||
2057db16 VS |
41703 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
41704 | { { 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 | |
41705 | 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;} | |
41706 | { (exit 1); exit 1; }; } | |
41707 | fi | |
41708 | ||
a848cd7e | 41709 | |
ceec2216 RL |
41710 | if test "$wxUSE_SHARED" = "yes"; then |
41711 | ||
41712 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
41713 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
41714 | ||
5b674b9d DE |
41715 | case "${host}" in |
41716 | *-pc-os2_emx | *-pc-os2-emx ) | |
41717 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
41718 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
41719 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
41720 | cp -p ${srcdir}/src/os2/dllar.sh . | |
41721 | ;; | |
41722 | esac | |
ceec2216 RL |
41723 | else |
41724 | ||
41725 | EXE_LINKER="$CXX -o" | |
41726 | ||
41727 | fi | |
a848cd7e | 41728 | |
74b84332 | 41729 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 41730 | if test $GCC_PCH = 1 ; then |
74b84332 | 41731 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
41732 | else |
41733 | case "${host}" in | |
41734 | powerpc-*-darwin* ) | |
74b84332 | 41735 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 41736 | ;; |
bea8e651 | 41737 | *-*-mingw32* ) |
1f344abf VS |
41738 | if test "$wxUSE_STL" = "yes" -o \ |
41739 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41740 | "$wxUSE_NO_RTTI" != "yes"; then | |
41741 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41742 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41743 | cat >conftest.$ac_ext <<_ACEOF |
41744 | /* confdefs.h. */ | |
41745 | _ACEOF | |
41746 | cat confdefs.h >>conftest.$ac_ext | |
41747 | cat >>conftest.$ac_ext <<_ACEOF | |
41748 | /* end confdefs.h. */ | |
41749 | ||
3314e67b RR |
41750 | int |
41751 | main () | |
41752 | { | |
41753 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
41754 | #error "Not GCC 3.2 or greater" | |
41755 | #endif | |
41756 | ||
41757 | ; | |
41758 | return 0; | |
41759 | } | |
41760 | _ACEOF | |
41761 | rm -f conftest.$ac_objext | |
41762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41763 | (eval $ac_compile) 2>conftest.er1 | |
41764 | ac_status=$? | |
41765 | grep -v '^ *+' conftest.er1 >conftest.err | |
41766 | rm -f conftest.er1 | |
41767 | cat conftest.err >&5 | |
41768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41769 | (exit $ac_status); } && | |
5294a27e | 41770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3314e67b RR |
41771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41772 | (eval $ac_try) 2>&5 | |
41773 | ac_status=$? | |
41774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41775 | (exit $ac_status); }; } && | |
41776 | { ac_try='test -s conftest.$ac_objext' | |
41777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41778 | (eval $ac_try) 2>&5 | |
41779 | ac_status=$? | |
41780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41781 | (exit $ac_status); }; }; then | |
41782 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
41783 | echo "$as_me:$LINENO: result: yes" >&5 | |
41784 | echo "${ECHO_T}yes" >&6 | |
41785 | else | |
41786 | echo "$as_me: failed program was:" >&5 | |
41787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41788 | ||
41789 | echo "$as_me:$LINENO: result: no" >&5 | |
41790 | echo "${ECHO_T}no" >&6 | |
41791 | fi | |
41792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41793 | fi | |
41794 | ;; | |
41795 | *-pc-os2_emx | *-pc-os2-emx ) | |
41796 | if test "$wxUSE_STL" = "yes"; then | |
41797 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
41798 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
41799 | cat >conftest.$ac_ext <<_ACEOF | |
41800 | /* confdefs.h. */ | |
41801 | _ACEOF | |
41802 | cat confdefs.h >>conftest.$ac_ext | |
41803 | cat >>conftest.$ac_ext <<_ACEOF | |
41804 | /* end confdefs.h. */ | |
41805 | ||
bea8e651 MB |
41806 | int |
41807 | main () | |
41808 | { | |
1f344abf | 41809 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
41810 | #error "Not GCC 3.2 or greater" |
41811 | #endif | |
41812 | ||
41813 | ; | |
41814 | return 0; | |
41815 | } | |
41816 | _ACEOF | |
41817 | rm -f conftest.$ac_objext | |
41818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41819 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 41820 | ac_status=$? |
ac1cb8d3 VS |
41821 | grep -v '^ *+' conftest.er1 >conftest.err |
41822 | rm -f conftest.er1 | |
41823 | cat conftest.err >&5 | |
bea8e651 MB |
41824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41825 | (exit $ac_status); } && | |
5294a27e | 41826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41828 | (eval $ac_try) 2>&5 | |
41829 | ac_status=$? | |
41830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41831 | (exit $ac_status); }; } && | |
41832 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
41833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41834 | (eval $ac_try) 2>&5 | |
41835 | ac_status=$? | |
41836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41837 | (exit $ac_status); }; }; then | |
74b84332 | 41838 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
41839 | echo "$as_me:$LINENO: result: yes" >&5 |
41840 | echo "${ECHO_T}yes" >&6 | |
41841 | else | |
41842 | echo "$as_me: failed program was:" >&5 | |
41843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41844 | ||
41845 | echo "$as_me:$LINENO: result: no" >&5 | |
41846 | echo "${ECHO_T}no" >&6 | |
41847 | fi | |
ac1cb8d3 | 41848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41849 | fi |
41850 | ;; | |
a848cd7e SC |
41851 | esac |
41852 | fi | |
74b84332 | 41853 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41854 | |
41855 | ||
41856 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41857 | ||
41858 | ||
41859 | ||
41860 | ||
41861 | ||
41862 | ||
41863 | ||
41864 | ||
41865 | ||
41866 | ||
41867 | ||
41868 | ||
41869 | ||
41870 | ||
41871 | ||
41872 | ||
41873 | ||
41874 | ||
41875 | ||
41876 | ||
41877 | ||
41878 | ||
41879 | ||
41880 | ||
41881 | ||
41882 | ||
41883 | ||
41884 | ||
41885 | ||
41886 | ||
41887 | ||
41888 | ||
41889 | ||
41890 | ||
41891 | ||
41892 | ||
41893 | ||
41894 | ||
41895 | ||
41896 | ||
41897 | ||
41898 | ||
a848cd7e SC |
41899 | |
41900 | ||
41901 | ||
41902 | ||
41903 | ||
41904 | ||
41905 | ||
41906 | ||
41907 | ||
41908 | ||
41909 | ||
41910 | ||
41911 | ||
41912 | ||
41913 | ||
41914 | ||
41915 | ||
41916 | ||
74b84332 | 41917 | |
a848cd7e SC |
41918 | |
41919 | ||
41920 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41921 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41922 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41923 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41925 | else | |
41926 | cat >conftest.make <<\_ACEOF | |
41927 | all: | |
41928 | @echo 'ac_maketemp="$(MAKE)"' | |
41929 | _ACEOF | |
41930 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41931 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41932 | if test -n "$ac_maketemp"; then | |
41933 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41934 | else | |
41935 | eval ac_cv_prog_make_${ac_make}_set=no | |
41936 | fi | |
41937 | rm -f conftest.make | |
41938 | fi | |
41939 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41940 | echo "$as_me:$LINENO: result: yes" >&5 | |
41941 | echo "${ECHO_T}yes" >&6 | |
41942 | SET_MAKE= | |
41943 | else | |
41944 | echo "$as_me:$LINENO: result: no" >&5 | |
41945 | echo "${ECHO_T}no" >&6 | |
41946 | SET_MAKE="MAKE=${MAKE-make}" | |
41947 | fi | |
41948 | ||
41949 | ||
a848cd7e | 41950 | |
ceec2216 RL |
41951 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41952 | ||
a848cd7e | 41953 | |
ceec2216 | 41954 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41955 | |
a848cd7e | 41956 | |
ceec2216 | 41957 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41958 | |
ceec2216 RL |
41959 | |
41960 | ac_config_files="$ac_config_files version-script Makefile" | |
41961 | ||
41962 | ||
41963 | ac_config_commands="$ac_config_commands wx-config | |
41964 | " | |
a848cd7e SC |
41965 | |
41966 | ||
9103d280 RL |
41967 | |
41968 | ||
a848cd7e SC |
41969 | if test "$wxUSE_GUI" = "yes"; then |
41970 | SUBDIRS="samples demos utils contrib" | |
41971 | else SUBDIRS="samples utils" | |
41972 | fi | |
41973 | ||
41974 | ||
41975 | ||
41976 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41977 | if test "${with_cppunit_prefix+set}" = set; then | |
41978 | withval="$with_cppunit_prefix" | |
41979 | cppunit_config_prefix="$withval" | |
41980 | else | |
41981 | cppunit_config_prefix="" | |
41982 | fi; | |
41983 | ||
41984 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41985 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41986 | withval="$with_cppunit_exec_prefix" | |
41987 | cppunit_config_exec_prefix="$withval" | |
41988 | else | |
41989 | cppunit_config_exec_prefix="" | |
41990 | fi; | |
41991 | ||
41992 | if test x$cppunit_config_exec_prefix != x ; then | |
41993 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41994 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41995 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41996 | fi | |
41997 | fi | |
41998 | if test x$cppunit_config_prefix != x ; then | |
41999 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
42000 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42001 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
42002 | fi | |
42003 | fi | |
42004 | ||
42005 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
42006 | set dummy cppunit-config; ac_word=$2 | |
42007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42009 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
42010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42011 | else | |
42012 | case $CPPUNIT_CONFIG in | |
42013 | [\\/]* | ?:[\\/]*) | |
42014 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
42015 | ;; | |
42016 | *) | |
42017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42018 | for as_dir in $PATH | |
42019 | do | |
42020 | IFS=$as_save_IFS | |
42021 | test -z "$as_dir" && as_dir=. | |
42022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42023 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42024 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42025 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42026 | break 2 | |
42027 | fi | |
42028 | done | |
42029 | done | |
42030 | ||
42031 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
42032 | ;; | |
42033 | esac | |
42034 | fi | |
42035 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
42036 | ||
42037 | if test -n "$CPPUNIT_CONFIG"; then | |
42038 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
42039 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
42040 | else | |
42041 | echo "$as_me:$LINENO: result: no" >&5 | |
42042 | echo "${ECHO_T}no" >&6 | |
42043 | fi | |
42044 | ||
42045 | cppunit_version_min=1.8.0 | |
42046 | ||
42047 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
42048 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
42049 | no_cppunit="" | |
42050 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
42051 | no_cppunit=yes | |
42052 | else | |
42053 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
42054 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
42055 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
42056 | ||
42057 | cppunit_major_version=`echo $cppunit_version | \ | |
42058 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42059 | cppunit_minor_version=`echo $cppunit_version | \ | |
42060 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42061 | cppunit_micro_version=`echo $cppunit_version | \ | |
42062 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42063 | ||
42064 | cppunit_major_min=`echo $cppunit_version_min | \ | |
42065 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42066 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
42067 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42068 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
42069 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42070 | ||
42071 | cppunit_version_proper=`expr \ | |
42072 | $cppunit_major_version \> $cppunit_major_min \| \ | |
42073 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42074 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
42075 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42076 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
42077 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
42078 | ||
42079 | if test "$cppunit_version_proper" = "1" ; then | |
42080 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
42081 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
42082 | else | |
42083 | echo "$as_me:$LINENO: result: no" >&5 | |
42084 | echo "${ECHO_T}no" >&6 | |
42085 | no_cppunit=yes | |
42086 | fi | |
42087 | fi | |
42088 | ||
42089 | if test "x$no_cppunit" = x ; then | |
c2218763 | 42090 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
42091 | else |
42092 | CPPUNIT_CFLAGS="" | |
42093 | CPPUNIT_LIBS="" | |
c2218763 | 42094 | : |
a848cd7e SC |
42095 | fi |
42096 | ||
42097 | ||
42098 | ||
42099 | ||
42100 | ||
42101 | for subdir in `echo $SUBDIRS`; do | |
42102 | if test -d ${srcdir}/${subdir} ; then | |
42103 | if test "$wxUSE_GUI" = "yes"; then | |
42104 | if test ${subdir} = "samples"; then | |
42105 | makefiles="samples/Makefile.in $makefiles" | |
42106 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
42107 | if test -d $srcdir/samples/$sample; then | |
42108 | makefiles="samples/$sample/Makefile.in $makefiles" | |
42109 | fi | |
42110 | done | |
42111 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
42112 | fi | |
42113 | else if test ${subdir} = "samples"; then | |
42114 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
42115 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
42116 | makefiles="" |
42117 | for util in HelpGen tex2rtf ; do | |
42118 | if test -d $srcdir/utils/$util ; then | |
42119 | makefiles="utils/$util/Makefile.in \ | |
42120 | utils/$util/src/Makefile.in \ | |
42121 | $makefiles" | |
42122 | fi | |
42123 | done | |
a848cd7e SC |
42124 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
42125 | fi | |
42126 | fi | |
42127 | ||
42128 | for mkin in $makefiles ; do | |
42129 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
42130 | ac_config_files="$ac_config_files $mk" | |
42131 | ||
42132 | done | |
42133 | fi | |
42134 | done | |
42135 | ||
42136 | ||
42137 | cat >confcache <<\_ACEOF | |
42138 | # This file is a shell script that caches the results of configure | |
42139 | # tests run on this system so they can be shared between configure | |
42140 | # scripts and configure runs, see configure's option --config-cache. | |
42141 | # It is not useful on other systems. If it contains results you don't | |
42142 | # want to keep, you may remove or edit it. | |
42143 | # | |
42144 | # config.status only pays attention to the cache file if you give it | |
42145 | # the --recheck option to rerun configure. | |
42146 | # | |
42147 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
42148 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
42149 | # following values. | |
42150 | ||
42151 | _ACEOF | |
42152 | ||
42153 | # The following way of writing the cache mishandles newlines in values, | |
42154 | # but we know of no workaround that is simple, portable, and efficient. | |
42155 | # So, don't put newlines in cache variables' values. | |
42156 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
42157 | # and sets the high bit in the cache file unless we assign to the vars. | |
42158 | { | |
42159 | (set) 2>&1 | | |
42160 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
42161 | *ac_space=\ *) | |
42162 | # `set' does not quote correctly, so add quotes (double-quote | |
42163 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
42164 | sed -n \ | |
ac1cb8d3 VS |
42165 | "s/'/'\\\\''/g; |
42166 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
42167 | ;; |
42168 | *) | |
42169 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
42170 | sed -n \ | |
ac1cb8d3 | 42171 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
42172 | ;; |
42173 | esac; | |
42174 | } | | |
42175 | sed ' | |
42176 | t clear | |
42177 | : clear | |
42178 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
42179 | t end | |
42180 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
42181 | : end' >>confcache | |
42182 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
42183 | if test -w $cache_file; then | |
42184 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
42185 | cat confcache >$cache_file | |
42186 | else | |
42187 | echo "not updating unwritable cache $cache_file" | |
42188 | fi | |
42189 | fi | |
42190 | rm -f confcache | |
42191 | ||
42192 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
42193 | # Let make expand exec_prefix. | |
42194 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
42195 | ||
42196 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
42197 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
42198 | # trailing colons and then remove the whole line if VPATH becomes empty | |
42199 | # (actually we leave an empty line to preserve line numbers). | |
42200 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 42201 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
42202 | s/:*\$(srcdir):*/:/; |
42203 | s/:*\${srcdir}:*/:/; | |
42204 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 42205 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 42206 | s/:*$//; |
ac1cb8d3 | 42207 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
42208 | }' |
42209 | fi | |
42210 | ||
42211 | DEFS=-DHAVE_CONFIG_H | |
42212 | ||
42213 | ac_libobjs= | |
42214 | ac_ltlibobjs= | |
42215 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
42216 | # 1. Remove the extension, and $U if already installed. | |
42217 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 42218 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
42219 | # 2. Add them. |
42220 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
42221 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
42222 | done | |
42223 | LIBOBJS=$ac_libobjs | |
42224 | ||
42225 | LTLIBOBJS=$ac_ltlibobjs | |
42226 | ||
42227 | ||
42228 | ||
42229 | : ${CONFIG_STATUS=./config.status} | |
42230 | ac_clean_files_save=$ac_clean_files | |
42231 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
42232 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
42233 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
42234 | cat >$CONFIG_STATUS <<_ACEOF | |
42235 | #! $SHELL | |
42236 | # Generated by $as_me. | |
42237 | # Run this file to recreate the current configuration. | |
42238 | # Compiler output produced by configure, useful for debugging | |
42239 | # configure, is in config.log if it exists. | |
42240 | ||
42241 | debug=false | |
42242 | ac_cs_recheck=false | |
42243 | ac_cs_silent=false | |
42244 | SHELL=\${CONFIG_SHELL-$SHELL} | |
42245 | _ACEOF | |
42246 | ||
42247 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42248 | ## --------------------- ## | |
42249 | ## M4sh Initialization. ## | |
42250 | ## --------------------- ## | |
42251 | ||
42252 | # Be Bourne compatible | |
42253 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
42254 | emulate sh | |
42255 | NULLCMD=: | |
42256 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
42257 | # is contrary to our usage. Disable this feature. | |
42258 | alias -g '${1+"$@"}'='"$@"' | |
42259 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
42260 | set -o posix | |
42261 | fi | |
ac1cb8d3 | 42262 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
42263 | |
42264 | # Support unset when possible. | |
ac1cb8d3 | 42265 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
42266 | as_unset=unset |
42267 | else | |
42268 | as_unset=false | |
42269 | fi | |
42270 | ||
42271 | ||
42272 | # Work around bugs in pre-3.0 UWIN ksh. | |
42273 | $as_unset ENV MAIL MAILPATH | |
42274 | PS1='$ ' | |
42275 | PS2='> ' | |
42276 | PS4='+ ' | |
42277 | ||
42278 | # NLS nuisances. | |
42279 | for as_var in \ | |
42280 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
42281 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42282 | LC_TELEPHONE LC_TIME | |
42283 | do | |
ac1cb8d3 | 42284 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
42285 | eval $as_var=C; export $as_var |
42286 | else | |
42287 | $as_unset $as_var | |
42288 | fi | |
42289 | done | |
42290 | ||
42291 | # Required to use basename. | |
42292 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42293 | as_expr=expr | |
42294 | else | |
42295 | as_expr=false | |
42296 | fi | |
42297 | ||
42298 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
42299 | as_basename=basename | |
42300 | else | |
42301 | as_basename=false | |
42302 | fi | |
42303 | ||
42304 | ||
42305 | # Name of the executable. | |
42306 | as_me=`$as_basename "$0" || | |
42307 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
42308 | X"$0" : 'X\(//\)$' \| \ | |
42309 | X"$0" : 'X\(/\)$' \| \ | |
42310 | . : '\(.\)' 2>/dev/null || | |
42311 | echo X/"$0" | | |
42312 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
42313 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
42314 | /^X\/\(\/\).*/{ s//\1/; q; } | |
42315 | s/.*/./; q'` | |
42316 | ||
42317 | ||
42318 | # PATH needs CR, and LINENO needs CR and PATH. | |
42319 | # Avoid depending upon Character Ranges. | |
42320 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
42321 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
42322 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
42323 | as_cr_digits='0123456789' | |
42324 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42325 | ||
42326 | # The user is always right. | |
42327 | if test "${PATH_SEPARATOR+set}" != set; then | |
42328 | echo "#! /bin/sh" >conf$$.sh | |
42329 | echo "exit 0" >>conf$$.sh | |
42330 | chmod +x conf$$.sh | |
42331 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42332 | PATH_SEPARATOR=';' | |
42333 | else | |
42334 | PATH_SEPARATOR=: | |
42335 | fi | |
42336 | rm -f conf$$.sh | |
42337 | fi | |
42338 | ||
42339 | ||
42340 | as_lineno_1=$LINENO | |
42341 | as_lineno_2=$LINENO | |
42342 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42343 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42344 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
42345 | # Find who we are. Look in the path if we contain no path at all | |
42346 | # relative or not. | |
42347 | case $0 in | |
42348 | *[\\/]* ) as_myself=$0 ;; | |
42349 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42350 | for as_dir in $PATH | |
42351 | do | |
42352 | IFS=$as_save_IFS | |
42353 | test -z "$as_dir" && as_dir=. | |
42354 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
42355 | done | |
42356 | ||
42357 | ;; | |
42358 | esac | |
42359 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
42360 | # in which case we are not to be found in the path. | |
42361 | if test "x$as_myself" = x; then | |
42362 | as_myself=$0 | |
42363 | fi | |
42364 | if test ! -f "$as_myself"; then | |
42365 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
42366 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
42367 | { (exit 1); exit 1; }; } | |
42368 | fi | |
42369 | case $CONFIG_SHELL in | |
42370 | '') | |
42371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42372 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42373 | do | |
42374 | IFS=$as_save_IFS | |
42375 | test -z "$as_dir" && as_dir=. | |
42376 | for as_base in sh bash ksh sh5; do | |
42377 | case $as_dir in | |
42378 | /*) | |
42379 | if ("$as_dir/$as_base" -c ' | |
42380 | as_lineno_1=$LINENO | |
42381 | as_lineno_2=$LINENO | |
42382 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
42383 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
42384 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
42385 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
42386 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
42387 | CONFIG_SHELL=$as_dir/$as_base | |
42388 | export CONFIG_SHELL | |
42389 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
42390 | fi;; | |
42391 | esac | |
42392 | done | |
42393 | done | |
42394 | ;; | |
42395 | esac | |
42396 | ||
42397 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
42398 | # uniformly replaced by the line number. The first 'sed' inserts a | |
42399 | # line-number line before each line; the second 'sed' does the real | |
42400 | # work. The second script uses 'N' to pair each line-number line | |
42401 | # with the numbered line, and appends trailing '-' during | |
42402 | # substitution so that $LINENO is not a special case at line end. | |
42403 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
42404 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
42405 | sed '=' <$as_myself | | |
42406 | sed ' | |
42407 | N | |
42408 | s,$,-, | |
42409 | : loop | |
42410 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
42411 | t loop | |
42412 | s,-$,, | |
42413 | s,^['$as_cr_digits']*\n,, | |
42414 | ' >$as_me.lineno && | |
42415 | chmod +x $as_me.lineno || | |
42416 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
42417 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
42418 | { (exit 1); exit 1; }; } | |
42419 | ||
42420 | # Don't try to exec as it changes $[0], causing all sort of problems | |
42421 | # (the dirname of $[0] is not the place where we might find the | |
42422 | # original and so on. Autoconf is especially sensible to this). | |
42423 | . ./$as_me.lineno | |
42424 | # Exit status is that of the last command. | |
42425 | exit | |
42426 | } | |
42427 | ||
42428 | ||
42429 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
42430 | *c*,-n*) ECHO_N= ECHO_C=' | |
42431 | ' ECHO_T=' ' ;; | |
42432 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
42433 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
42434 | esac | |
42435 | ||
42436 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42437 | as_expr=expr | |
42438 | else | |
42439 | as_expr=false | |
42440 | fi | |
42441 | ||
42442 | rm -f conf$$ conf$$.exe conf$$.file | |
42443 | echo >conf$$.file | |
42444 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42445 | # We could just check for DJGPP; but this test a) works b) is more generic | |
42446 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
42447 | if test -f conf$$.exe; then | |
42448 | # Don't use ln at all; we don't have any links | |
42449 | as_ln_s='cp -p' | |
42450 | else | |
42451 | as_ln_s='ln -s' | |
42452 | fi | |
42453 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
42454 | as_ln_s=ln | |
42455 | else | |
42456 | as_ln_s='cp -p' | |
42457 | fi | |
42458 | rm -f conf$$ conf$$.exe conf$$.file | |
42459 | ||
42460 | if mkdir -p . 2>/dev/null; then | |
42461 | as_mkdir_p=: | |
42462 | else | |
ac1cb8d3 | 42463 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42464 | as_mkdir_p=false |
42465 | fi | |
42466 | ||
42467 | as_executable_p="test -f" | |
42468 | ||
42469 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42470 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42471 | |
42472 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42473 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42474 | |
42475 | ||
42476 | # IFS | |
42477 | # We need space, tab and new line, in precisely that order. | |
42478 | as_nl=' | |
42479 | ' | |
42480 | IFS=" $as_nl" | |
42481 | ||
42482 | # CDPATH. | |
42483 | $as_unset CDPATH | |
42484 | ||
42485 | exec 6>&1 | |
42486 | ||
42487 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
42488 | # report actual input values of CONFIG_FILES etc. instead of their | |
42489 | # values after options handling. Logging --version etc. is OK. | |
42490 | exec 5>>config.log | |
42491 | { | |
42492 | echo | |
42493 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42494 | ## Running $as_me. ## | |
42495 | _ASBOX | |
42496 | } >&5 | |
42497 | cat >&5 <<_CSEOF | |
42498 | ||
7714864e | 42499 | This file was extended by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 42500 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
42501 | |
42502 | CONFIG_FILES = $CONFIG_FILES | |
42503 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42504 | CONFIG_LINKS = $CONFIG_LINKS | |
42505 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42506 | $ $0 $@ | |
42507 | ||
42508 | _CSEOF | |
42509 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
42510 | echo >&5 | |
42511 | _ACEOF | |
42512 | ||
42513 | # Files that config.status was made for. | |
42514 | if test -n "$ac_config_files"; then | |
42515 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
42516 | fi | |
42517 | ||
42518 | if test -n "$ac_config_headers"; then | |
42519 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
42520 | fi | |
42521 | ||
42522 | if test -n "$ac_config_links"; then | |
42523 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
42524 | fi | |
42525 | ||
42526 | if test -n "$ac_config_commands"; then | |
42527 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
42528 | fi | |
42529 | ||
42530 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42531 | ||
42532 | ac_cs_usage="\ | |
42533 | \`$as_me' instantiates files from templates according to the | |
42534 | current configuration. | |
42535 | ||
42536 | Usage: $0 [OPTIONS] [FILE]... | |
42537 | ||
42538 | -h, --help print this help, then exit | |
42539 | -V, --version print version number, then exit | |
42540 | -q, --quiet do not print progress messages | |
42541 | -d, --debug don't remove temporary files | |
42542 | --recheck update $as_me by reconfiguring in the same conditions | |
42543 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 42544 | instantiate the configuration file FILE |
a848cd7e | 42545 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 42546 | instantiate the configuration header FILE |
a848cd7e SC |
42547 | |
42548 | Configuration files: | |
42549 | $config_files | |
42550 | ||
42551 | Configuration headers: | |
42552 | $config_headers | |
42553 | ||
42554 | Configuration commands: | |
42555 | $config_commands | |
42556 | ||
42557 | Report bugs to <bug-autoconf@gnu.org>." | |
42558 | _ACEOF | |
42559 | ||
42560 | cat >>$CONFIG_STATUS <<_ACEOF | |
42561 | ac_cs_version="\\ | |
7714864e | 42562 | wxWidgets config.status 2.5.3 |
ac1cb8d3 | 42563 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
42564 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
42565 | ||
ac1cb8d3 | 42566 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
42567 | This config.status script is free software; the Free Software Foundation |
42568 | gives unlimited permission to copy, distribute and modify it." | |
42569 | srcdir=$srcdir | |
42570 | INSTALL="$INSTALL" | |
42571 | _ACEOF | |
42572 | ||
42573 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42574 | # If no file are specified by the user, then we need to provide default | |
42575 | # value. By we need to know if files were specified by the user. | |
42576 | ac_need_defaults=: | |
42577 | while test $# != 0 | |
42578 | do | |
42579 | case $1 in | |
42580 | --*=*) | |
42581 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42582 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42583 | ac_shift=: | |
42584 | ;; | |
42585 | -*) | |
42586 | ac_option=$1 | |
42587 | ac_optarg=$2 | |
42588 | ac_shift=shift | |
42589 | ;; | |
42590 | *) # This is not an option, so the user has probably given explicit | |
42591 | # arguments. | |
42592 | ac_option=$1 | |
42593 | ac_need_defaults=false;; | |
42594 | esac | |
42595 | ||
42596 | case $ac_option in | |
42597 | # Handling of the options. | |
42598 | _ACEOF | |
42599 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42600 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42601 | ac_cs_recheck=: ;; | |
42602 | --version | --vers* | -V ) | |
42603 | echo "$ac_cs_version"; exit 0 ;; | |
42604 | --he | --h) | |
42605 | # Conflict between --help and --header | |
42606 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42607 | Try \`$0 --help' for more information." >&5 | |
42608 | echo "$as_me: error: ambiguous option: $1 | |
42609 | Try \`$0 --help' for more information." >&2;} | |
42610 | { (exit 1); exit 1; }; };; | |
42611 | --help | --hel | -h ) | |
42612 | echo "$ac_cs_usage"; exit 0 ;; | |
42613 | --debug | --d* | -d ) | |
42614 | debug=: ;; | |
42615 | --file | --fil | --fi | --f ) | |
42616 | $ac_shift | |
42617 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42618 | ac_need_defaults=false;; | |
42619 | --header | --heade | --head | --hea ) | |
42620 | $ac_shift | |
42621 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
42622 | ac_need_defaults=false;; | |
42623 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
42624 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42625 | ac_cs_silent=: ;; | |
42626 | ||
42627 | # This is an error. | |
42628 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
42629 | Try \`$0 --help' for more information." >&5 | |
42630 | echo "$as_me: error: unrecognized option: $1 | |
42631 | Try \`$0 --help' for more information." >&2;} | |
42632 | { (exit 1); exit 1; }; } ;; | |
42633 | ||
42634 | *) ac_config_targets="$ac_config_targets $1" ;; | |
42635 | ||
42636 | esac | |
42637 | shift | |
42638 | done | |
42639 | ||
42640 | ac_configure_extra_args= | |
42641 | ||
42642 | if $ac_cs_silent; then | |
42643 | exec 6>/dev/null | |
42644 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42645 | fi | |
42646 | ||
42647 | _ACEOF | |
42648 | cat >>$CONFIG_STATUS <<_ACEOF | |
42649 | if \$ac_cs_recheck; then | |
42650 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
42651 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
42652 | fi | |
42653 | ||
42654 | _ACEOF | |
42655 | ||
42656 | cat >>$CONFIG_STATUS <<_ACEOF | |
42657 | # | |
42658 | # INIT-COMMANDS section. | |
42659 | # | |
42660 | ||
ceec2216 RL |
42661 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
42662 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42663 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42664 | LN_S="${LN_S}" | |
a848cd7e SC |
42665 | |
42666 | ||
42667 | _ACEOF | |
42668 | ||
42669 | ||
42670 | ||
42671 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42672 | for ac_config_target in $ac_config_targets | |
42673 | do | |
42674 | case "$ac_config_target" in | |
42675 | # Handling of arguments. | |
ceec2216 RL |
42676 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
42677 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
42678 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
42679 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
42680 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
42681 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
42682 | "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 |
42683 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
42684 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
42685 | { (exit 1); exit 1; }; };; | |
42686 | esac | |
42687 | done | |
42688 | ||
42689 | # If the user did not use the arguments to specify the items to instantiate, | |
42690 | # then the envvar interface is used. Set only those that are not. | |
42691 | # We use the long form for the default assignment because of an extremely | |
42692 | # bizarre bug on SunOS 4.1.3. | |
42693 | if $ac_need_defaults; then | |
42694 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
42695 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
42696 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
42697 | fi | |
42698 | ||
42699 | # Have a temporary directory for convenience. Make it in the build tree | |
42700 | # simply because there is no reason to put it here, and in addition, | |
42701 | # creating and moving files from /tmp can sometimes cause problems. | |
42702 | # Create a temporary directory, and hook for its removal unless debugging. | |
42703 | $debug || | |
42704 | { | |
42705 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
42706 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
42707 | } | |
42708 | ||
42709 | # Create a (secure) tmp directory for tmp files. | |
42710 | ||
42711 | { | |
42712 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
42713 | test -n "$tmp" && test -d "$tmp" | |
42714 | } || | |
42715 | { | |
42716 | tmp=./confstat$$-$RANDOM | |
42717 | (umask 077 && mkdir $tmp) | |
42718 | } || | |
42719 | { | |
42720 | echo "$me: cannot create a temporary directory in ." >&2 | |
42721 | { (exit 1); exit 1; } | |
42722 | } | |
42723 | ||
42724 | _ACEOF | |
42725 | ||
42726 | cat >>$CONFIG_STATUS <<_ACEOF | |
42727 | ||
42728 | # | |
42729 | # CONFIG_FILES section. | |
42730 | # | |
42731 | ||
42732 | # No need to generate the scripts if there are no CONFIG_FILES. | |
42733 | # This happens for instance when ./config.status config.h | |
42734 | if test -n "\$CONFIG_FILES"; then | |
42735 | # Protect against being on the right side of a sed subst in config.status. | |
42736 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
42737 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
42738 | s,@SHELL@,$SHELL,;t t | |
42739 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
42740 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
42741 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
42742 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
42743 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
42744 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
42745 | s,@exec_prefix@,$exec_prefix,;t t | |
42746 | s,@prefix@,$prefix,;t t | |
42747 | s,@program_transform_name@,$program_transform_name,;t t | |
42748 | s,@bindir@,$bindir,;t t | |
42749 | s,@sbindir@,$sbindir,;t t | |
42750 | s,@libexecdir@,$libexecdir,;t t | |
42751 | s,@datadir@,$datadir,;t t | |
42752 | s,@sysconfdir@,$sysconfdir,;t t | |
42753 | s,@sharedstatedir@,$sharedstatedir,;t t | |
42754 | s,@localstatedir@,$localstatedir,;t t | |
42755 | s,@libdir@,$libdir,;t t | |
42756 | s,@includedir@,$includedir,;t t | |
42757 | s,@oldincludedir@,$oldincludedir,;t t | |
42758 | s,@infodir@,$infodir,;t t | |
42759 | s,@mandir@,$mandir,;t t | |
42760 | s,@build_alias@,$build_alias,;t t | |
42761 | s,@host_alias@,$host_alias,;t t | |
42762 | s,@target_alias@,$target_alias,;t t | |
42763 | s,@DEFS@,$DEFS,;t t | |
42764 | s,@ECHO_C@,$ECHO_C,;t t | |
42765 | s,@ECHO_N@,$ECHO_N,;t t | |
42766 | s,@ECHO_T@,$ECHO_T,;t t | |
42767 | s,@LIBS@,$LIBS,;t t | |
42768 | s,@build@,$build,;t t | |
42769 | s,@build_cpu@,$build_cpu,;t t | |
42770 | s,@build_vendor@,$build_vendor,;t t | |
42771 | s,@build_os@,$build_os,;t t | |
42772 | s,@host@,$host,;t t | |
42773 | s,@host_cpu@,$host_cpu,;t t | |
42774 | s,@host_vendor@,$host_vendor,;t t | |
42775 | s,@host_os@,$host_os,;t t | |
42776 | s,@target@,$target,;t t | |
42777 | s,@target_cpu@,$target_cpu,;t t | |
42778 | s,@target_vendor@,$target_vendor,;t t | |
42779 | s,@target_os@,$target_os,;t t | |
42780 | s,@CC@,$CC,;t t | |
42781 | s,@CFLAGS@,$CFLAGS,;t t | |
42782 | s,@LDFLAGS@,$LDFLAGS,;t t | |
42783 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
42784 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
42785 | s,@EXEEXT@,$EXEEXT,;t t | |
42786 | s,@OBJEXT@,$OBJEXT,;t t | |
42787 | s,@CPP@,$CPP,;t t | |
42788 | s,@EGREP@,$EGREP,;t t | |
42789 | s,@CXX@,$CXX,;t t | |
42790 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
42791 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
42792 | s,@RANLIB@,$RANLIB,;t t | |
42793 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
42794 | s,@AR@,$AR,;t t | |
42795 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
42796 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
42797 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
42798 | s,@STRIP@,$STRIP,;t t | |
42799 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
42800 | s,@LN_S@,$LN_S,;t t | |
42801 | s,@CXXCPP@,$CXXCPP,;t t | |
42802 | s,@subdirs@,$subdirs,;t t | |
42803 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
42804 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
42805 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
42806 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
42807 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
42808 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
42809 | s,@X_LIBS@,$X_LIBS,;t t | |
42810 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
42811 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
42812 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
42813 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
42814 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
42815 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
42816 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
42817 | s,@RESCOMP@,$RESCOMP,;t t | |
42818 | s,@DEREZ@,$DEREZ,;t t | |
42819 | s,@SETFILE@,$SETFILE,;t t | |
42820 | s,@LIBICONV@,$LIBICONV,;t t | |
42821 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42822 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42823 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42824 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
42825 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
42826 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
a848cd7e SC |
42827 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
42828 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42829 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42830 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42831 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42832 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42833 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42834 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42835 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42836 | s,@VENDOR@,$VENDOR,;t t | |
42837 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
42838 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
42839 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
42840 | s,@WXUNIV@,$WXUNIV,;t t |
42841 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42842 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42843 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42844 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42845 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42846 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42847 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42848 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42849 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42850 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 42851 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
42852 | s,@UNICODE@,$UNICODE,;t t |
42853 | s,@BUILD@,$BUILD,;t t | |
42854 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42855 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42856 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42857 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42858 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42859 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42860 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42861 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42862 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42863 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42864 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42865 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42866 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42867 | s,@NM@,$NM,;t t | |
42868 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42869 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42870 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42871 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42872 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42873 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42874 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 42875 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
42876 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
42877 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 42878 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
42879 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
42880 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42881 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42882 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42883 | s,@LIBEXT@,$LIBEXT,;t t | |
42884 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42885 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42886 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42887 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42888 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42889 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42890 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42891 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42892 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42893 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42894 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42895 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42896 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42897 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42898 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42899 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42900 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42901 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42902 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42903 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42904 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42905 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42906 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42907 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42908 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42909 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42910 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42911 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42912 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42913 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42914 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42915 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42916 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42917 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42918 | 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 | |
42919 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42920 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
ceec2216 | 42921 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42922 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42923 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42924 | 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 | |
42925 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42926 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
ceec2216 | 42927 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42928 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42929 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42930 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42931 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42932 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42933 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42934 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42935 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 42936 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
42937 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
42938 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42939 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 42940 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 42941 | 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 |
42942 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42943 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42944 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42945 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 42946 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
42947 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
42948 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42949 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42950 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42951 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42952 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42953 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42954 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42955 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42956 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42957 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42958 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42959 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42960 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42961 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42962 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42963 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42964 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42965 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42966 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42967 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42968 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 42969 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 42970 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 42971 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
42972 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
42973 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42974 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42975 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42976 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42977 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42978 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42979 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42980 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42981 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42982 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42983 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42984 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42985 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42986 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42987 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42988 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42989 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42990 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42991 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42992 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42993 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42994 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42995 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42996 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42997 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42998 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42999 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
43000 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
43001 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
43002 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43003 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43004 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 43005 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 43006 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
43007 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
43008 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
43009 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
43010 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
43011 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 43012 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 43013 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
a848cd7e SC |
43014 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
43015 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
43016 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
43017 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
43018 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
43019 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
43020 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
43021 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
6ab3c239 VZ |
43022 | 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 |
43023 | 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 | |
9a8f0513 VS |
43024 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
43025 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t | |
43026 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t | |
ceec2216 | 43027 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
43028 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
43029 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
43030 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
43031 | s,@USE_GUI@,$USE_GUI,;t t | |
43032 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
43033 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
43034 | s,@TOOLKIT@,$TOOLKIT,;t t | |
43035 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 43036 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 43037 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
43038 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
43039 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 43040 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
43041 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
43042 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
43043 | s,@WX_VERSION@,$WX_VERSION,;t t | |
43044 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
43045 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
43046 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 43047 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
43048 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
43049 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
43050 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
43051 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 43052 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
43053 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
43054 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 43055 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 43056 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
43057 | s,@DISTDIR@,$DISTDIR,;t t |
43058 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
43059 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
43060 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
43061 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
43062 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
43063 | s,@RESFLAGS@,$RESFLAGS,;t t | |
43064 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
43065 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
43066 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
43067 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
43068 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
43069 | s,@MACSETFILE@,$MACSETFILE,;t t | |
43070 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
43071 | s,@GCC@,$GCC,;t t | |
a848cd7e | 43072 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
43073 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
43074 | s,@LIBOBJS@,$LIBOBJS,;t t | |
43075 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
43076 | CEOF | |
43077 | ||
43078 | _ACEOF | |
43079 | ||
43080 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43081 | # Split the substitutions into bite-sized pieces for seds with | |
43082 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
43083 | ac_max_sed_lines=48 | |
43084 | ac_sed_frag=1 # Number of current file. | |
43085 | ac_beg=1 # First line for current file. | |
43086 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
43087 | ac_more_lines=: | |
43088 | ac_sed_cmds= | |
43089 | while $ac_more_lines; do | |
43090 | if test $ac_beg -gt 1; then | |
43091 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43092 | else | |
43093 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43094 | fi | |
43095 | if test ! -s $tmp/subs.frag; then | |
43096 | ac_more_lines=false | |
43097 | else | |
43098 | # The purpose of the label and of the branching condition is to | |
43099 | # speed up the sed processing (if there are no `@' at all, there | |
43100 | # is no need to browse any of the substitutions). | |
43101 | # These are the two extra sed commands mentioned above. | |
43102 | (echo ':t | |
43103 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
43104 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 43105 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 43106 | else |
ac1cb8d3 | 43107 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
43108 | fi |
43109 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
43110 | ac_beg=$ac_end | |
43111 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
43112 | fi | |
43113 | done | |
43114 | if test -z "$ac_sed_cmds"; then | |
43115 | ac_sed_cmds=cat | |
43116 | fi | |
43117 | fi # test -n "$CONFIG_FILES" | |
43118 | ||
43119 | _ACEOF | |
43120 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43121 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
43122 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43123 | case $ac_file in | |
43124 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43125 | cat >$tmp/stdin |
43126 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43127 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43128 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43129 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43130 | * ) ac_file_in=$ac_file.in ;; |
43131 | esac | |
43132 | ||
43133 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
43134 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43135 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43136 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43137 | X"$ac_file" : 'X\(//\)$' \| \ | |
43138 | X"$ac_file" : 'X\(/\)' \| \ | |
43139 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43140 | echo X"$ac_file" | |
43141 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43142 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43143 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43144 | /^X\(\/\).*/{ s//\1/; q; } | |
43145 | s/.*/./; q'` | |
43146 | { if $as_mkdir_p; then | |
43147 | mkdir -p "$ac_dir" | |
43148 | else | |
43149 | as_dir="$ac_dir" | |
43150 | as_dirs= | |
43151 | while test ! -d "$as_dir"; do | |
43152 | as_dirs="$as_dir $as_dirs" | |
43153 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43154 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43155 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43156 | X"$as_dir" : 'X\(//\)$' \| \ | |
43157 | X"$as_dir" : 'X\(/\)' \| \ | |
43158 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43159 | echo X"$as_dir" | |
43160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43161 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43162 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43163 | /^X\(\/\).*/{ s//\1/; q; } | |
43164 | s/.*/./; q'` | |
43165 | done | |
43166 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43167 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43168 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43169 | { (exit 1); exit 1; }; }; } | |
43170 | ||
43171 | ac_builddir=. | |
43172 | ||
43173 | if test "$ac_dir" != .; then | |
43174 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43175 | # A "../" for each directory in $ac_dir_suffix. | |
43176 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43177 | else | |
43178 | ac_dir_suffix= ac_top_builddir= | |
43179 | fi | |
43180 | ||
43181 | case $srcdir in | |
43182 | .) # No --srcdir option. We are building in place. | |
43183 | ac_srcdir=. | |
43184 | if test -z "$ac_top_builddir"; then | |
43185 | ac_top_srcdir=. | |
43186 | else | |
43187 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43188 | fi ;; | |
43189 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43190 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43191 | ac_top_srcdir=$srcdir ;; | |
43192 | *) # Relative path. | |
43193 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43194 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43195 | esac | |
ac1cb8d3 VS |
43196 | |
43197 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43198 | # the directories may not exist. | |
43199 | case `pwd` in | |
43200 | .) ac_abs_builddir="$ac_dir";; | |
43201 | *) | |
43202 | case "$ac_dir" in | |
43203 | .) ac_abs_builddir=`pwd`;; | |
43204 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43205 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43206 | esac;; | |
43207 | esac | |
43208 | case $ac_abs_builddir in | |
43209 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43210 | *) | |
43211 | case ${ac_top_builddir}. in | |
43212 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43213 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43214 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43215 | esac;; | |
43216 | esac | |
43217 | case $ac_abs_builddir in | |
43218 | .) ac_abs_srcdir=$ac_srcdir;; | |
43219 | *) | |
43220 | case $ac_srcdir in | |
43221 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43222 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43223 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43224 | esac;; | |
43225 | esac | |
43226 | case $ac_abs_builddir in | |
43227 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43228 | *) | |
43229 | case $ac_top_srcdir in | |
43230 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43231 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43232 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43233 | esac;; | |
43234 | esac | |
a848cd7e SC |
43235 | |
43236 | ||
43237 | case $INSTALL in | |
43238 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
43239 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
43240 | esac | |
43241 | ||
a848cd7e SC |
43242 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
43243 | # use $as_me), people would be surprised to read: | |
43244 | # /* config.h. Generated by config.status. */ | |
43245 | if test x"$ac_file" = x-; then | |
43246 | configure_input= | |
43247 | else | |
43248 | configure_input="$ac_file. " | |
43249 | fi | |
43250 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 43251 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
43252 | |
43253 | # First look for the input files in the build tree, otherwise in the | |
43254 | # src tree. | |
43255 | ac_file_inputs=`IFS=: | |
43256 | for f in $ac_file_in; do | |
43257 | case $f in | |
43258 | -) echo $tmp/stdin ;; | |
43259 | [\\/$]*) | |
ac1cb8d3 VS |
43260 | # Absolute (can't be DOS-style, as IFS=:) |
43261 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43262 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43263 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43264 | echo "$f";; |
a848cd7e | 43265 | *) # Relative |
ac1cb8d3 VS |
43266 | if test -f "$f"; then |
43267 | # Build tree | |
43268 | echo "$f" | |
43269 | elif test -f "$srcdir/$f"; then | |
43270 | # Source tree | |
43271 | echo "$srcdir/$f" | |
43272 | else | |
43273 | # /dev/null tree | |
43274 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43275 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43276 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43277 | fi;; |
a848cd7e SC |
43278 | esac |
43279 | done` || { (exit 1); exit 1; } | |
5294a27e VZ |
43280 | |
43281 | if test x"$ac_file" != x-; then | |
43282 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43283 | echo "$as_me: creating $ac_file" >&6;} | |
43284 | rm -f "$ac_file" | |
43285 | fi | |
a848cd7e SC |
43286 | _ACEOF |
43287 | cat >>$CONFIG_STATUS <<_ACEOF | |
43288 | sed "$ac_vpsub | |
43289 | $extrasub | |
43290 | _ACEOF | |
43291 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43292 | :t | |
43293 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
43294 | s,@configure_input@,$configure_input,;t t | |
43295 | s,@srcdir@,$ac_srcdir,;t t | |
43296 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
43297 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
43298 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
43299 | s,@builddir@,$ac_builddir,;t t | |
43300 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
43301 | s,@top_builddir@,$ac_top_builddir,;t t | |
43302 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
43303 | s,@INSTALL@,$ac_INSTALL,;t t | |
43304 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
43305 | rm -f $tmp/stdin | |
43306 | if test x"$ac_file" != x-; then | |
43307 | mv $tmp/out $ac_file | |
43308 | else | |
43309 | cat $tmp/out | |
43310 | rm -f $tmp/out | |
43311 | fi | |
43312 | ||
ceec2216 RL |
43313 | # Run the commands associated with the file. |
43314 | case $ac_file in | |
43315 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
43316 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
43317 | esac | |
a848cd7e SC |
43318 | done |
43319 | _ACEOF | |
43320 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43321 | ||
43322 | # | |
43323 | # CONFIG_HEADER section. | |
43324 | # | |
43325 | ||
43326 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
43327 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
43328 | # | |
43329 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
43330 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
43331 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
43332 | ac_dC=' ' |
43333 | ac_dD=',;t' | |
43334 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 43335 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
43336 | ac_uB='$,\1#\2define\3' |
43337 | ac_uC=' ' | |
43338 | ac_uD=',;t' | |
43339 | ||
43340 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
43341 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43342 | case $ac_file in | |
43343 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43344 | cat >$tmp/stdin |
43345 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43346 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43347 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43348 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43349 | * ) ac_file_in=$ac_file.in ;; |
43350 | esac | |
43351 | ||
43352 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
43353 | echo "$as_me: creating $ac_file" >&6;} | |
43354 | ||
43355 | # First look for the input files in the build tree, otherwise in the | |
43356 | # src tree. | |
43357 | ac_file_inputs=`IFS=: | |
43358 | for f in $ac_file_in; do | |
43359 | case $f in | |
43360 | -) echo $tmp/stdin ;; | |
43361 | [\\/$]*) | |
ac1cb8d3 VS |
43362 | # Absolute (can't be DOS-style, as IFS=:) |
43363 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43364 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43365 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
43366 | # Do quote $f, to prevent DOS paths from being IFS'd. |
43367 | echo "$f";; | |
a848cd7e | 43368 | *) # Relative |
ac1cb8d3 VS |
43369 | if test -f "$f"; then |
43370 | # Build tree | |
43371 | echo "$f" | |
43372 | elif test -f "$srcdir/$f"; then | |
43373 | # Source tree | |
43374 | echo "$srcdir/$f" | |
43375 | else | |
43376 | # /dev/null tree | |
43377 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
43378 | echo "$as_me: error: cannot find input file: $f" >&2;} |
43379 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 43380 | fi;; |
a848cd7e SC |
43381 | esac |
43382 | done` || { (exit 1); exit 1; } | |
43383 | # Remove the trailing spaces. | |
ac1cb8d3 | 43384 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
43385 | |
43386 | _ACEOF | |
43387 | ||
43388 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
43389 | # `conftest.undefs', that substitutes the proper values into | |
43390 | # config.h.in to produce config.h. The first handles `#define' | |
43391 | # templates, and the second `#undef' templates. | |
43392 | # And first: Protect against being on the right side of a sed subst in | |
43393 | # config.status. Protect against being in an unquoted here document | |
43394 | # in config.status. | |
43395 | rm -f conftest.defines conftest.undefs | |
43396 | # Using a here document instead of a string reduces the quoting nightmare. | |
43397 | # Putting comments in sed scripts is not portable. | |
43398 | # | |
43399 | # `end' is used to avoid that the second main sed command (meant for | |
43400 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
43401 | # See the Autoconf documentation for `clear'. | |
43402 | cat >confdef2sed.sed <<\_ACEOF | |
43403 | s/[\\&,]/\\&/g | |
43404 | s,[\\$`],\\&,g | |
43405 | t clear | |
43406 | : clear | |
ac1cb8d3 | 43407 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 43408 | t end |
ac1cb8d3 | 43409 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
43410 | : end |
43411 | _ACEOF | |
43412 | # If some macros were called several times there might be several times | |
43413 | # the same #defines, which is useless. Nevertheless, we may not want to | |
43414 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
43415 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
43416 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
43417 | rm -f confdef2sed.sed | |
43418 | ||
43419 | # This sed command replaces #undef with comments. This is necessary, for | |
43420 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
43421 | # on some systems where configure will not decide to define it. | |
43422 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 43423 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
43424 | _ACEOF |
43425 | ||
43426 | # Break up conftest.defines because some shells have a limit on the size | |
43427 | # of here documents, and old seds have small limits too (100 cmds). | |
43428 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 43429 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
43430 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
43431 | echo ' :' >>$CONFIG_STATUS | |
43432 | rm -f conftest.tail | |
43433 | while grep . conftest.defines >/dev/null | |
43434 | do | |
43435 | # Write a limited-size here document to $tmp/defines.sed. | |
43436 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
43437 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 43438 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43439 | # Work around the forget-to-reset-the-flag bug. |
43440 | echo 't clr' >>$CONFIG_STATUS | |
43441 | echo ': clr' >>$CONFIG_STATUS | |
43442 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
43443 | echo 'CEOF | |
43444 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
43445 | rm -f $tmp/in | |
43446 | mv $tmp/out $tmp/in | |
43447 | ' >>$CONFIG_STATUS | |
43448 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
43449 | rm -f conftest.defines | |
43450 | mv conftest.tail conftest.defines | |
43451 | done | |
43452 | rm -f conftest.defines | |
43453 | echo ' fi # grep' >>$CONFIG_STATUS | |
43454 | echo >>$CONFIG_STATUS | |
43455 | ||
43456 | # Break up conftest.undefs because some shells have a limit on the size | |
43457 | # of here documents, and old seds have small limits too (100 cmds). | |
43458 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
43459 | rm -f conftest.tail | |
43460 | while grep . conftest.undefs >/dev/null | |
43461 | do | |
43462 | # Write a limited-size here document to $tmp/undefs.sed. | |
43463 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
43464 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 43465 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43466 | # Work around the forget-to-reset-the-flag bug. |
43467 | echo 't clr' >>$CONFIG_STATUS | |
43468 | echo ': clr' >>$CONFIG_STATUS | |
43469 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
43470 | echo 'CEOF | |
43471 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
43472 | rm -f $tmp/in | |
43473 | mv $tmp/out $tmp/in | |
43474 | ' >>$CONFIG_STATUS | |
43475 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
43476 | rm -f conftest.undefs | |
43477 | mv conftest.tail conftest.undefs | |
43478 | done | |
43479 | rm -f conftest.undefs | |
43480 | ||
43481 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43482 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
43483 | # use $as_me), people would be surprised to read: | |
43484 | # /* config.h. Generated by config.status. */ | |
43485 | if test x"$ac_file" = x-; then | |
43486 | echo "/* Generated by configure. */" >$tmp/config.h | |
43487 | else | |
43488 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
43489 | fi | |
43490 | cat $tmp/in >>$tmp/config.h | |
43491 | rm -f $tmp/in | |
43492 | if test x"$ac_file" != x-; then | |
43493 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
43494 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
43495 | echo "$as_me: $ac_file is unchanged" >&6;} | |
43496 | else | |
43497 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43498 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43499 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43500 | X"$ac_file" : 'X\(//\)$' \| \ | |
43501 | X"$ac_file" : 'X\(/\)' \| \ | |
43502 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43503 | echo X"$ac_file" | |
43504 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43505 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43506 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43507 | /^X\(\/\).*/{ s//\1/; q; } | |
43508 | s/.*/./; q'` | |
43509 | { if $as_mkdir_p; then | |
43510 | mkdir -p "$ac_dir" | |
43511 | else | |
43512 | as_dir="$ac_dir" | |
43513 | as_dirs= | |
43514 | while test ! -d "$as_dir"; do | |
43515 | as_dirs="$as_dir $as_dirs" | |
43516 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43517 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43518 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43519 | X"$as_dir" : 'X\(//\)$' \| \ | |
43520 | X"$as_dir" : 'X\(/\)' \| \ | |
43521 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43522 | echo X"$as_dir" | |
43523 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43524 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43525 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43526 | /^X\(\/\).*/{ s//\1/; q; } | |
43527 | s/.*/./; q'` | |
43528 | done | |
43529 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43530 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43531 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43532 | { (exit 1); exit 1; }; }; } | |
43533 | ||
43534 | rm -f $ac_file | |
43535 | mv $tmp/config.h $ac_file | |
43536 | fi | |
43537 | else | |
43538 | cat $tmp/config.h | |
43539 | rm -f $tmp/config.h | |
43540 | fi | |
43541 | done | |
43542 | _ACEOF | |
43543 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43544 | ||
43545 | # | |
43546 | # CONFIG_COMMANDS section. | |
43547 | # | |
43548 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
43549 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
43550 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43551 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
43552 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43553 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
43554 | X"$ac_dest" : 'X\(//\)$' \| \ | |
43555 | X"$ac_dest" : 'X\(/\)' \| \ | |
43556 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43557 | echo X"$ac_dest" | |
43558 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43559 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43560 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43561 | /^X\(\/\).*/{ s//\1/; q; } | |
43562 | s/.*/./; q'` | |
ac1cb8d3 VS |
43563 | { if $as_mkdir_p; then |
43564 | mkdir -p "$ac_dir" | |
43565 | else | |
43566 | as_dir="$ac_dir" | |
43567 | as_dirs= | |
43568 | while test ! -d "$as_dir"; do | |
43569 | as_dirs="$as_dir $as_dirs" | |
43570 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43571 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
43572 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
43573 | X"$as_dir" : 'X\(//\)$' \| \ | |
43574 | X"$as_dir" : 'X\(/\)' \| \ | |
43575 | . : '\(.\)' 2>/dev/null || | |
43576 | echo X"$as_dir" | | |
43577 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43578 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43579 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43580 | /^X\(\/\).*/{ s//\1/; q; } | |
43581 | s/.*/./; q'` | |
43582 | done | |
43583 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43584 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43585 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43586 | { (exit 1); exit 1; }; }; } | |
43587 | ||
a848cd7e SC |
43588 | ac_builddir=. |
43589 | ||
43590 | if test "$ac_dir" != .; then | |
43591 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43592 | # A "../" for each directory in $ac_dir_suffix. | |
43593 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43594 | else | |
43595 | ac_dir_suffix= ac_top_builddir= | |
43596 | fi | |
43597 | ||
43598 | case $srcdir in | |
43599 | .) # No --srcdir option. We are building in place. | |
43600 | ac_srcdir=. | |
43601 | if test -z "$ac_top_builddir"; then | |
43602 | ac_top_srcdir=. | |
43603 | else | |
43604 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43605 | fi ;; | |
43606 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43607 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43608 | ac_top_srcdir=$srcdir ;; | |
43609 | *) # Relative path. | |
43610 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43611 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43612 | esac | |
ac1cb8d3 VS |
43613 | |
43614 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43615 | # the directories may not exist. | |
43616 | case `pwd` in | |
43617 | .) ac_abs_builddir="$ac_dir";; | |
43618 | *) | |
43619 | case "$ac_dir" in | |
43620 | .) ac_abs_builddir=`pwd`;; | |
43621 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43622 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43623 | esac;; | |
43624 | esac | |
43625 | case $ac_abs_builddir in | |
43626 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43627 | *) | |
43628 | case ${ac_top_builddir}. in | |
43629 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43630 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43631 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43632 | esac;; | |
43633 | esac | |
43634 | case $ac_abs_builddir in | |
43635 | .) ac_abs_srcdir=$ac_srcdir;; | |
43636 | *) | |
43637 | case $ac_srcdir in | |
43638 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43639 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43640 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43641 | esac;; | |
43642 | esac | |
43643 | case $ac_abs_builddir in | |
43644 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43645 | *) | |
43646 | case $ac_top_srcdir in | |
43647 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43648 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43649 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43650 | esac;; | |
43651 | esac | |
a848cd7e SC |
43652 | |
43653 | ||
43654 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
43655 | echo "$as_me: executing $ac_dest commands" >&6;} | |
43656 | case $ac_dest in | |
ceec2216 RL |
43657 | wx-config ) rm -f wx-config |
43658 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
43659 | ;; | |
a848cd7e SC |
43660 | esac |
43661 | done | |
43662 | _ACEOF | |
43663 | ||
43664 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43665 | ||
43666 | { (exit 0); exit 0; } | |
43667 | _ACEOF | |
43668 | chmod +x $CONFIG_STATUS | |
43669 | ac_clean_files=$ac_clean_files_save | |
43670 | ||
43671 | ||
43672 | # configure is writing to config.log, and then calls config.status. | |
43673 | # config.status does its own redirection, appending to config.log. | |
43674 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
43675 | # by configure, so config.status won't be able to write to it; its | |
43676 | # output is simply discarded. So we exec the FD to /dev/null, | |
43677 | # effectively closing config.log, so it can be properly (re)opened and | |
43678 | # appended to by config.status. When coming back to configure, we | |
43679 | # need to make the FD available again. | |
43680 | if test "$no_create" != yes; then | |
43681 | ac_cs_success=: | |
43682 | ac_config_status_args= | |
43683 | test "$silent" = yes && | |
43684 | ac_config_status_args="$ac_config_status_args --quiet" | |
43685 | exec 5>/dev/null | |
43686 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
43687 | exec 5>>config.log | |
43688 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
43689 | # would make configure fail if this is the last instruction. | |
43690 | $ac_cs_success || { (exit 1); exit 1; } | |
43691 | fi | |
43692 | ||
43693 | # | |
43694 | # CONFIG_SUBDIRS section. | |
43695 | # | |
43696 | if test "$no_recursion" != yes; then | |
43697 | ||
43698 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
43699 | ac_sub_configure_args= | |
43700 | ac_prev= | |
43701 | for ac_arg in $ac_configure_args; do | |
43702 | if test -n "$ac_prev"; then | |
43703 | ac_prev= | |
43704 | continue | |
43705 | fi | |
43706 | case $ac_arg in | |
43707 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
43708 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
43709 | ac_prev=cache_file ;; | |
43710 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
43711 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
43712 | | --c=*) | |
43713 | ;; | |
43714 | --config-cache | -C) | |
43715 | ;; | |
43716 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
43717 | ac_prev=srcdir ;; | |
43718 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
43719 | ;; | |
43720 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
43721 | ac_prev=prefix ;; | |
43722 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
43723 | ;; | |
43724 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
43725 | esac | |
43726 | done | |
43727 | ||
43728 | # Always prepend --prefix to ensure using the same prefix | |
43729 | # in subdir configurations. | |
43730 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
43731 | ||
43732 | ac_popdir=`pwd` | |
43733 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
43734 | ||
43735 | # Do not complain, so a configure script can configure whichever | |
43736 | # parts of a large source tree are present. | |
43737 | test -d $srcdir/$ac_dir || continue | |
43738 | ||
43739 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
43740 | echo "$as_me: configuring in $ac_dir" >&6;} | |
43741 | { if $as_mkdir_p; then | |
43742 | mkdir -p "$ac_dir" | |
43743 | else | |
43744 | as_dir="$ac_dir" | |
43745 | as_dirs= | |
43746 | while test ! -d "$as_dir"; do | |
43747 | as_dirs="$as_dir $as_dirs" | |
43748 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43749 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43750 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43751 | X"$as_dir" : 'X\(//\)$' \| \ | |
43752 | X"$as_dir" : 'X\(/\)' \| \ | |
43753 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43754 | echo X"$as_dir" | |
43755 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43756 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43757 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43758 | /^X\(\/\).*/{ s//\1/; q; } | |
43759 | s/.*/./; q'` | |
43760 | done | |
43761 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43762 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43763 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43764 | { (exit 1); exit 1; }; }; } | |
43765 | ||
43766 | ac_builddir=. | |
43767 | ||
43768 | if test "$ac_dir" != .; then | |
43769 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43770 | # A "../" for each directory in $ac_dir_suffix. | |
43771 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43772 | else | |
43773 | ac_dir_suffix= ac_top_builddir= | |
43774 | fi | |
43775 | ||
43776 | case $srcdir in | |
43777 | .) # No --srcdir option. We are building in place. | |
43778 | ac_srcdir=. | |
43779 | if test -z "$ac_top_builddir"; then | |
43780 | ac_top_srcdir=. | |
43781 | else | |
43782 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43783 | fi ;; | |
43784 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43785 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43786 | ac_top_srcdir=$srcdir ;; | |
43787 | *) # Relative path. | |
43788 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43789 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43790 | esac | |
ac1cb8d3 VS |
43791 | |
43792 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43793 | # the directories may not exist. | |
43794 | case `pwd` in | |
43795 | .) ac_abs_builddir="$ac_dir";; | |
43796 | *) | |
43797 | case "$ac_dir" in | |
43798 | .) ac_abs_builddir=`pwd`;; | |
43799 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43800 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43801 | esac;; | |
43802 | esac | |
43803 | case $ac_abs_builddir in | |
43804 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43805 | *) | |
43806 | case ${ac_top_builddir}. in | |
43807 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43808 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43809 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43810 | esac;; | |
43811 | esac | |
43812 | case $ac_abs_builddir in | |
43813 | .) ac_abs_srcdir=$ac_srcdir;; | |
43814 | *) | |
43815 | case $ac_srcdir in | |
43816 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43817 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43818 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43819 | esac;; | |
43820 | esac | |
43821 | case $ac_abs_builddir in | |
43822 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43823 | *) | |
43824 | case $ac_top_srcdir in | |
43825 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43826 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43827 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43828 | esac;; | |
43829 | esac | |
a848cd7e SC |
43830 | |
43831 | ||
43832 | cd $ac_dir | |
43833 | ||
43834 | # Check for guested configure; otherwise get Cygnus style configure. | |
43835 | if test -f $ac_srcdir/configure.gnu; then | |
43836 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43837 | elif test -f $ac_srcdir/configure; then | |
43838 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43839 | elif test -f $ac_srcdir/configure.in; then | |
43840 | ac_sub_configure=$ac_configure | |
43841 | else | |
43842 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43843 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43844 | ac_sub_configure= | |
43845 | fi | |
43846 | ||
43847 | # The recursion is here. | |
43848 | if test -n "$ac_sub_configure"; then | |
43849 | # Make the cache file name correct relative to the subdirectory. | |
43850 | case $cache_file in | |
43851 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43852 | *) # Relative path. | |
ac1cb8d3 | 43853 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43854 | esac |
43855 | ||
43856 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43857 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43858 | # The eval makes quoting arguments work. | |
43859 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43860 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43861 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43862 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43863 | { (exit 1); exit 1; }; } | |
43864 | fi | |
43865 | ||
5294a27e | 43866 | cd "$ac_popdir" |
a848cd7e SC |
43867 | done |
43868 | fi | |
43869 | ||
43870 | ||
43871 | echo | |
77ffb593 | 43872 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43873 | echo "" |
4d4ff94c | 43874 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43875 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43876 | |
77ffb593 JS |
43877 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43878 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43879 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43880 | |
77ffb593 JS |
43881 | echo " What level of wxWidgets compatibility should be enabled?" |
43882 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43883 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43884 | |
77ffb593 | 43885 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43886 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43887 | echo " png ${wxUSE_LIBPNG-none}" | |
43888 | echo " regex ${wxUSE_REGEX}" | |
43889 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43890 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43891 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43892 | fi | |
43893 | echo " zlib ${wxUSE_ZLIB}" | |
43894 | echo " odbc ${wxUSE_ODBC}" | |
43895 | echo " expat ${wxUSE_EXPAT}" | |
43896 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43897 | echo " sdl ${wxUSE_LIBSDL}" | |
d1c38808 | 43898 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}" |
a848cd7e SC |
43899 | |
43900 | echo "" | |
43901 |